- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control. - Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities. - Created .gitmodules to include OpenZeppelin contracts as a submodule. - Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment. - Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks. - Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring. - Created scripts for resource import and usage validation across non-US regions. - Added tests for CCIP error handling and integration to ensure robust functionality. - Included various new files and directories for the orchestration portal and deployment scripts.
42 lines
942 B
TypeScript
42 lines
942 B
TypeScript
/**
|
|
* MetaMask integration helpers for ChainID 138
|
|
* Integrated into the main SDK
|
|
*
|
|
* Note: MetaMask SDK is browser-only. In Node.js environments, only configuration exports are available.
|
|
*/
|
|
|
|
// Always export configuration (available in both browser and Node.js)
|
|
export {
|
|
CHAIN_ID,
|
|
CHAIN_ID_HEX,
|
|
CHAIN_NAME,
|
|
RPC_URLS,
|
|
BLOCK_EXPLORER_URL,
|
|
NETWORK_METADATA,
|
|
CAIP2_IDENTIFIER,
|
|
} from '../../metamask-sdk/src/config';
|
|
|
|
export type {
|
|
EthereumProvider,
|
|
AddEthereumChainParameter,
|
|
WatchAssetParameters,
|
|
MetaMaskError,
|
|
} from '../../metamask-sdk/src/types';
|
|
|
|
// Browser-only exports (conditional)
|
|
if (typeof window !== 'undefined') {
|
|
// Browser environment - export MetaMask SDK functions
|
|
export {
|
|
addNetwork,
|
|
addOrSwitchNetwork,
|
|
isNetworkAdded,
|
|
getEthereumProvider,
|
|
switchNetwork,
|
|
getCurrentChainId,
|
|
isOnChain138,
|
|
addToken,
|
|
addTokenFromList,
|
|
} from '../../metamask-sdk/src';
|
|
}
|
|
|