diff --git a/package.json b/package.json index 75f87e5..661c045 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ ] }, "dependencies": { - "@lifi/types": "18.2.0" + "@lifi/types": "18.4.0" }, "devDependencies": { "@commitlint/cli": "^19.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7aac009..e850346 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@lifi/types': - specifier: 18.2.0 - version: 18.2.0 + specifier: 18.4.0 + version: 18.4.0 devDependencies: '@commitlint/cli': specifier: ^19.7.1 @@ -440,8 +440,8 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@lifi/types@18.2.0': - resolution: {integrity: sha512-ap0p93xeLAMAnSQfGaeV6Gb2SLcgmyUOXav9w7fBHIcDK87Oio+On7WF4syknpwBd/JfbTV/gpH+Yfs2biQJcA==} + '@lifi/types@18.4.0': + resolution: {integrity: sha512-H0c2fwrS7fyPLVzEf8UydZ1rfNXCxW7TGfsqf0goGH2BiLIkcBAVIpiCzuIB+YBgKCwZ53wIvgBa+6AZe7Y5PQ==} '@mysten/bcs@1.9.2': resolution: {integrity: sha512-kBk5xrxV9OWR7i+JhL/plQrgQ2/KJhB2pB5gj+w6GXhbMQwS3DPpOvi/zN0Tj84jwPvHMllpEl0QHj6ywN7/eQ==} @@ -3141,7 +3141,7 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 - '@lifi/types@18.2.0': {} + '@lifi/types@18.4.0': {} '@mysten/bcs@1.9.2': dependencies: diff --git a/src/chains/foundry.ts b/src/chains/foundry.ts index 99580ba..b4abd9c 100644 --- a/src/chains/foundry.ts +++ b/src/chains/foundry.ts @@ -82,6 +82,7 @@ export const foundryChainNameMap: Record = { [ChainId.OPST]: 'optimismsepolia', [ChainId.BAST]: 'basesepolia', [ChainId.ARBS]: 'arbitrumsepolia', + [ChainId.ETHS]: 'sepolia', // Custom chains [7777777 as ChainId]: 'zora', diff --git a/src/chains/supportedChains.evm.ts b/src/chains/supportedChains.evm.ts index aa71564..990e74d 100644 --- a/src/chains/supportedChains.evm.ts +++ b/src/chains/supportedChains.evm.ts @@ -1998,6 +1998,31 @@ export const supportedEVMChains: EVMChain[] = [ }, }, + // 11155111 - Ethereum Sepolia Testnet + { + key: ChainKey.ETHS, + chainType: ChainType.EVM, + name: 'Ethereum Sepolia Testnet', + coin: CoinKey.ETH, + id: ChainId.ETHS, + mainnet: false, + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg', + relayerSupported: false, + multicallAddress: multicallAddresses[ChainId.ETHS], + metamask: { + chainId: prefixChainId(ChainId.ETHS), + blockExplorerUrls: ['https://sepolia.etherscan.io'], + chainName: 'Ethereum Sepolia Testnet', + nativeCurrency: { + name: 'Ether', + symbol: 'ETH', + decimals: 18, + }, + rpcUrls: ['https://ethereum-sepolia-rpc.publicnode.com'], + }, + }, + // 5031 - Somnia { key: ChainKey.SOM, diff --git a/src/coins/coins.ts b/src/coins/coins.ts index 37da14a..8d09816 100644 --- a/src/coins/coins.ts +++ b/src/coins/coins.ts @@ -195,6 +195,10 @@ export const basicCoins: BasicCoin[] = [ address: '0x0000000000000000000000000000000000000000', decimals: 18, }, + [ChainId.ETHS]: { + address: '0x0000000000000000000000000000000000000000', + decimals: 18, + }, [ChainId.LTR]: { address: '0x0000000000000000000000000000000000000000', decimals: 18, @@ -1144,6 +1148,10 @@ export const basicCoins: BasicCoin[] = [ address: '0x036CbD53842c5426634e7929541eC2318f3dCF7e', decimals: 6, }, + [ChainId.ETHS]: { + address: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', + decimals: 6, + }, [ChainId.PHR]: { address: '0xc879c018db60520f4355c26ed1a6d572cdac1815', decimals: 6, @@ -4547,8 +4555,8 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = { 'https://static.debank.com/image/uni_token/logo_url/uni/48bfb74adddd170e936578aec422836d.png', }, [ChainId.ARBS]: { - // https://sepolia.arbiscan.io/token/0x2836ae2ea2c013acd38028fd0c77b92cccfa2ee4 - address: '0x2836ae2ea2c013acd38028fd0c77b92cccfa2ee4', + // https://sepolia.arbiscan.io/token/0x980b62da83eff3d4576c647993b0c1d7faf17c73 + address: '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73', symbol: 'WETH', decimals: 18, chainId: ChainId.ARBS, @@ -4557,6 +4565,17 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = { logoURI: 'https://static.debank.com/image/uni_token/logo_url/uni/48bfb74adddd170e936578aec422836d.png', }, + [ChainId.ETHS]: { + // https://sepolia.etherscan.io/token/0xfff9976782d46cc05630d1f6ebab18b2324d6b14 + address: '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14', + symbol: 'WETH', + decimals: 18, + chainId: ChainId.ETHS, + coinKey: CoinKey.WETH, + name: 'Wrapped Ether', + logoURI: + 'https://static.debank.com/image/uni_token/logo_url/uni/48bfb74adddd170e936578aec422836d.png', + }, [ChainId.OUT]: { address: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73', symbol: 'WETH', diff --git a/src/multicall.ts b/src/multicall.ts index 972c118..5054945 100644 --- a/src/multicall.ts +++ b/src/multicall.ts @@ -89,6 +89,7 @@ export const multicallAddresses: { [ChainId: number]: string } = { [ChainId.OPST]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.BAST]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.ARBS]: '0xcA11bde05977b3631167028862bE2a173976CA11', + [ChainId.ETHS]: '0xcA11bde05977b3631167028862bE2a173976CA11', // TODO // [ChainId.EXP]: '', // TODO