From 470ad63ff2702fc6d85caadd88fc53879f8162a4 Mon Sep 17 00:00:00 2001 From: Daniela Chybisova Date: Wed, 1 Apr 2026 10:31:41 +0200 Subject: [PATCH 1/3] feat: add new chains Base Sepolia and Arbitrum Sepolia --- package.json | 2 +- pnpm-lock.yaml | 10 +++---- src/chains/foundry.ts | 2 ++ src/chains/supportedChains.evm.ts | 50 +++++++++++++++++++++++++++++++ src/coins/coins.ts | 30 +++++++++++++++++++ src/multicall.ts | 2 ++ 6 files changed, 90 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1df0e14..7d5e222 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ ] }, "dependencies": { - "@lifi/types": "17.72.0" + "@lifi/types": "17.73.0-alpha.0" }, "devDependencies": { "@commitlint/cli": "^19.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 139bde8..dfa4847 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@lifi/types': - specifier: 17.72.0 - version: 17.72.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + specifier: 17.73.0-alpha.0 + version: 17.73.0-alpha.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) 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@17.72.0': - resolution: {integrity: sha512-+6cStdP5O5i2aB3EbhToc3FKkC+Wa8Cvo0eVn7NfZ2BXKhXUEZe1mvvCbHlEVQ/vV8mLy6gEiWXibqoNB/QOeQ==} + '@lifi/types@17.73.0-alpha.0': + resolution: {integrity: sha512-1Fph3ArO3T6hvms2xgfYQ5AW2Mod501KyvB+mGvRUVAtsM79zgY5PEFzXrtBQQWoBC+3Ogd7DtrdwIvV389D1g==} '@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@17.72.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@lifi/types@17.73.0-alpha.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: viem: 2.46.3(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: diff --git a/src/chains/foundry.ts b/src/chains/foundry.ts index ea0acaf..81cd2c5 100644 --- a/src/chains/foundry.ts +++ b/src/chains/foundry.ts @@ -81,6 +81,8 @@ export const foundryChainNameMap: Record = { [ChainId.ARCT]: 'arctestnet', [ChainId.ZEROG]: '0g', [ChainId.OPST]: 'optimismsepolia', + [ChainId.BAST]: 'basesepolia', + [ChainId.ARBS]: 'arbitrumsepolia', // Custom chains [7777777 as ChainId]: 'zora', diff --git a/src/chains/supportedChains.evm.ts b/src/chains/supportedChains.evm.ts index d5a2d11..28e5e64 100644 --- a/src/chains/supportedChains.evm.ts +++ b/src/chains/supportedChains.evm.ts @@ -2047,4 +2047,54 @@ export const supportedEVMChains: EVMChain[] = [ ], }, }, + + // 84532 - Base Sepolia Testnet + { + key: ChainKey.BAST, + chainType: ChainType.EVM, + name: 'Base Sepolia Testnet', + coin: CoinKey.ETH, + id: ChainId.BAST, + mainnet: false, + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/base.svg', + relayerSupported: false, + multicallAddress: multicallAddresses[ChainId.BAST], + metamask: { + chainId: prefixChainId(ChainId.BAST), + blockExplorerUrls: ['https://sepolia.basescan.org'], + chainName: 'Base Sepolia Testnet', + nativeCurrency: { + name: 'Ether', + symbol: 'ETH', + decimals: 18, + }, + rpcUrls: ['https://sepolia.base.org'], + }, + }, + + // 421614 - Arbitrum Sepolia Testnet + { + key: ChainKey.ARBS, + chainType: ChainType.EVM, + name: 'Arbitrum Sepolia Testnet', + coin: CoinKey.ETH, + id: ChainId.ARBS, + mainnet: false, + logoURI: + 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum.svg', + relayerSupported: false, + multicallAddress: multicallAddresses[ChainId.ARBS], + metamask: { + chainId: prefixChainId(ChainId.ARBS), + blockExplorerUrls: ['https://sepolia.arbiscan.io'], + chainName: 'Arbitrum Sepolia Testnet', + nativeCurrency: { + name: 'Ether', + symbol: 'ETH', + decimals: 18, + }, + rpcUrls: ['https://sepolia-rollup.arbitrum.io/rpc'], + }, + }, ] diff --git a/src/coins/coins.ts b/src/coins/coins.ts index ac395eb..a61686a 100644 --- a/src/coins/coins.ts +++ b/src/coins/coins.ts @@ -199,6 +199,14 @@ export const basicCoins: BasicCoin[] = [ address: '0x0000000000000000000000000000000000000000', decimals: 18, }, + [ChainId.BAST]: { + address: '0x0000000000000000000000000000000000000000', + decimals: 18, + }, + [ChainId.ARBS]: { + address: '0x0000000000000000000000000000000000000000', + decimals: 18, + }, }, }, // > MATIC @@ -4472,6 +4480,28 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = { logoURI: 'https://static.debank.com/image/uni_token/logo_url/uni/48bfb74adddd170e936578aec422836d.png', }, + [ChainId.BAST]: { + // https://sepolia.basescan.org/token/0x4200000000000000000000000000000000000006 + address: '0x4200000000000000000000000000000000000006', + symbol: 'WETH', + decimals: 18, + chainId: ChainId.BAST, + coinKey: CoinKey.WETH, + name: 'Wrapped Ether', + logoURI: + 'https://static.debank.com/image/uni_token/logo_url/uni/48bfb74adddd170e936578aec422836d.png', + }, + [ChainId.ARBS]: { + // https://sepolia.arbiscan.io/token/0x2836ae2ea2c013acd38028fd0c77b92cccfa2ee4 + address: '0x2836ae2ea2c013acd38028fd0c77b92cccfa2ee4', + symbol: 'WETH', + decimals: 18, + chainId: ChainId.ARBS, + coinKey: CoinKey.WETH, + name: 'Wrapped Ether', + logoURI: + 'https://static.debank.com/image/uni_token/logo_url/uni/48bfb74adddd170e936578aec422836d.png', + }, } export const findDefaultCoin = (coinKey: CoinKey): Coin => { const coin = defaultCoins.find((coin) => coin.key === coinKey) diff --git a/src/multicall.ts b/src/multicall.ts index 67cc895..65ead82 100644 --- a/src/multicall.ts +++ b/src/multicall.ts @@ -87,6 +87,8 @@ export const multicallAddresses: { [ChainId: number]: string } = { [ChainId.ARCT]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.ZEROG]: '0xcA11bde05977b3631167028862bE2a173976CA11', [ChainId.OPST]: '0xcA11bde05977b3631167028862bE2a173976CA11', + [ChainId.BAST]: '0xcA11bde05977b3631167028862bE2a173976CA11', + [ChainId.ARBS]: '0xcA11bde05977b3631167028862bE2a173976CA11', // TODO // [ChainId.EXP]: '', // TODO From d46fd57dd7b920b3e7c6063c97ec2ab2003c02d7 Mon Sep 17 00:00:00 2001 From: Daniela Chybisova Date: Wed, 1 Apr 2026 10:32:05 +0200 Subject: [PATCH 2/3] chore(release): 6.76.0-alpha.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d5e222..b72d045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lifi/data-types", - "version": "6.75.0", + "version": "6.76.0-alpha.0", "description": "Data types for the LI.FI stack", "keywords": [ "sdk", From 7d7f5af0e596c54635b3d97054cdefc32a381851 Mon Sep 17 00:00:00 2001 From: Daniela Chybisova Date: Wed, 1 Apr 2026 11:46:23 +0200 Subject: [PATCH 3/3] chore: types version --- package.json | 4 ++-- pnpm-lock.yaml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b72d045..2399e2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lifi/data-types", - "version": "6.76.0-alpha.0", + "version": "6.75.0", "description": "Data types for the LI.FI stack", "keywords": [ "sdk", @@ -78,7 +78,7 @@ ] }, "dependencies": { - "@lifi/types": "17.73.0-alpha.0" + "@lifi/types": "17.73.0" }, "devDependencies": { "@commitlint/cli": "^19.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dfa4847..8c836ca 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@lifi/types': - specifier: 17.73.0-alpha.0 - version: 17.73.0-alpha.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + specifier: 17.73.0 + version: 17.73.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) 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@17.73.0-alpha.0': - resolution: {integrity: sha512-1Fph3ArO3T6hvms2xgfYQ5AW2Mod501KyvB+mGvRUVAtsM79zgY5PEFzXrtBQQWoBC+3Ogd7DtrdwIvV389D1g==} + '@lifi/types@17.73.0': + resolution: {integrity: sha512-Ts5G7109EjqTV3la+5LR5Aafd2ZLSy8Cc7HKK09JkK8o3wFfVXX6lILFau8BiFCcQ99fTOJSqQB4S9gWmQEllQ==} '@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@17.73.0-alpha.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@lifi/types@17.73.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: viem: 2.46.3(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: