diff --git a/package-lock.json b/package-lock.json index 687b9a9b..22cf2934 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3273,9 +3273,9 @@ "link": true }, "node_modules/@cere/freeport-sc-sdk": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@cere/freeport-sc-sdk/-/freeport-sc-sdk-0.23.0.tgz", - "integrity": "sha512-hg3cUUiTapnAJPSZD+1wX9XYzRTt+TFsHBajxyghdLpRmWusSJDMqPZ0w39jMT11N44t7fvrk+T14l9rPK25DA==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@cere/freeport-sc-sdk/-/freeport-sc-sdk-0.26.0.tgz", + "integrity": "sha512-457zXc2auAYttUQvFsSkcyafPUwRX0qfYbm+uhF+uilRXN39F6CSbxxGNDmiYuuwsBMGbaQpZIeHiV8AZRxLIQ==", "dependencies": { "@biconomy/mexa": "^2.0.38", "@ethersproject/providers": "^5.7.2", @@ -37045,7 +37045,7 @@ "version": "0.0.0", "dependencies": { "@biconomy/mexa": "^3.0.6", - "@cere/freeport-sc-sdk": "0.23.0", + "@cere/freeport-sc-sdk": "0.26.0", "@polkadot/api": "^10.2.1", "@polkadot/keyring": "^11.1.2", "@polkadot/types": "^10.2.1", diff --git a/packages/communication/src/getChainConfig.ts b/packages/communication/src/getChainConfig.ts index 35350c73..c991bcad 100644 --- a/packages/communication/src/getChainConfig.ts +++ b/packages/communication/src/getChainConfig.ts @@ -19,6 +19,22 @@ const presets = { ticker: 'MATIC', tickerName: 'Matic', }, + baseSepolia: { + chainId: '84532', + rpcTarget: 'https://sepolia.base.org', + displayName: 'Base Sepolia Testnet', + blockExplorer: 'https://sepolia-explorer.base.org', + ticker: 'ETH', + tickerName: 'ETH', + }, + base: { + chainId: '8453', + rpcTarget: 'https://mainnet.base.org', + displayName: 'Base Mainnet', + blockExplorer: 'https://base.blockscout.com/', + ticker: 'ETH', + tickerName: 'ETH', + }, }; const isConfigReady = (config: Partial): config is ChainConfig => @@ -50,6 +66,14 @@ export const getChainConfig = (network: NetworkConfig): ChainConfig => { chainConfig = createChainConfig(network, 'amoy'); } + if (network.chainId === 8453 || network.host === 'base') { + chainConfig = createChainConfig(network, 'base'); + } + + if (network.chainId === 84532 || network.host === 'baseSepolia') { + chainConfig = createChainConfig(network, 'baseSepolia'); + } + if (!isConfigReady(chainConfig)) { throw new Error('Incorrect network configuration'); } diff --git a/packages/wallet-engine/package.json b/packages/wallet-engine/package.json index bd8e24a7..13323486 100644 --- a/packages/wallet-engine/package.json +++ b/packages/wallet-engine/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@biconomy/mexa": "^3.0.6", - "@cere/freeport-sc-sdk": "0.23.0", + "@cere/freeport-sc-sdk": "0.26.0", "@polkadot/api": "^10.2.1", "@polkadot/keyring": "^11.1.2", "@polkadot/types": "^10.2.1",