From b45276666a1090c05aaee0b744ed82fbacadc5eb Mon Sep 17 00:00:00 2001 From: aelmanaa Date: Thu, 22 Feb 2024 19:27:16 +0100 Subject: [PATCH 1/2] add base sepolia --- .../data/ccip/v1_2_0/testnet/chains.json | 5 + .../data/ccip/v1_2_0/testnet/lanes.json | 298 ++++++++++++++++++ .../data/ccip/v1_2_0/testnet/tokens.json | 42 +++ src/config/types.ts | 1 + src/config/web3Providers.ts | 1 + src/features/utils/index.ts | 4 + 6 files changed, 351 insertions(+) diff --git a/src/config/data/ccip/v1_2_0/testnet/chains.json b/src/config/data/ccip/v1_2_0/testnet/chains.json index 6d24c070e26..62257109651 100644 --- a/src/config/data/ccip/v1_2_0/testnet/chains.json +++ b/src/config/data/ccip/v1_2_0/testnet/chains.json @@ -28,5 +28,10 @@ "chainSelector": "3478487238524512106", "router": "0x2a9C5afB0d0e4BAb2BCdaE109EC4b0c4Be15a165", "feeTokens": ["LINK", "WETH"] + }, + "ethereum-testnet-sepolia-base-1": { + "chainSelector": "10344971235874465080", + "router": "0xD3b06cEbF099CE7DA4AcCf578aaebFDBd6e88a93", + "feeTokens": ["LINK", "WETH"] } } diff --git a/src/config/data/ccip/v1_2_0/testnet/lanes.json b/src/config/data/ccip/v1_2_0/testnet/lanes.json index d747e7d725a..6cbd79ad170 100644 --- a/src/config/data/ccip/v1_2_0/testnet/lanes.json +++ b/src/config/data/ccip/v1_2_0/testnet/lanes.json @@ -62,6 +62,37 @@ "rate": "277000000000000000000" } }, + "ethereum-testnet-sepolia-base-1": { + "onRamp": "0xe284D2315a28c4d62C419e8474dC457b219DB969", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, "matic-testnet": { "onRamp": "0xcA2C3196047FE0E31547B7214E5B7c49413fE9a8", "supportedTokens": { @@ -190,6 +221,30 @@ "isEnabled": true, "rate": "167000000000000000000" } + }, + "ethereum-testnet-sepolia-base-1": { + "onRamp": "0x3E807220Ca84b997c0d1928162227b46C618e0c5", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + } + }, + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } } }, "ethereum-testnet-sepolia-optimism-1": { @@ -316,6 +371,37 @@ "isEnabled": true, "rate": "277000000000000000000" } + }, + "ethereum-testnet-sepolia-base-1": { + "onRamp": "0xe284D2315a28c4d62C419e8474dC457b219DB969", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } } }, "ethereum-testnet-sepolia": { @@ -473,6 +559,37 @@ "isEnabled": true, "rate": "1000000000000000000000000000000000000" } + }, + "ethereum-testnet-sepolia-base-1": { + "onRamp": "0x2B70a05320cB069e0fB55084D402343F832556E7", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } } }, "matic-testnet": { @@ -663,6 +780,187 @@ "isEnabled": true, "rate": "277000000000000000000" } + }, + "ethereum-testnet-sepolia-base-1": { + "onRamp": "0x4205E1Ca0202A248A5D42F5975A8FE56F3E302e9", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + } + }, + "ethereum-testnet-sepolia-base-1": { + "ethereum-testnet-sepolia": { + "onRamp": "0x6486906bB2d85A6c0cCEf2A2831C11A2059ebfea", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, + "ethereum-testnet-sepolia-optimism-1": { + "onRamp": "0x3b39Cd9599137f892Ad57A4f54158198D445D147", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, + "ethereum-testnet-sepolia-arbitrum-1": { + "onRamp": "0x58622a80c6DdDc072F2b527a99BE1D0934eb2b50", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, + "bsc-testnet": { + "onRamp": "0xD806966beAB5A3C75E5B90CDA4a6922C6A9F0c9d", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + } + }, + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "avalanche-fuji-testnet": { + "onRamp": "0xAbA09a1b7b9f13E05A6241292a66793Ec7d43357", + "supportedTokens": { + "CCIP-BnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "CCIP-LnM": { + "rateLimiterConfig": { + "capacity": "100000000000000000000000", + "isEnabled": true, + "rate": "167000000000000000000" + } + }, + "USDC": { + "rateLimiterConfig": { + "capacity": "0", + "isEnabled": false, + "rate": "0" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } } } } diff --git a/src/config/data/ccip/v1_2_0/testnet/tokens.json b/src/config/data/ccip/v1_2_0/testnet/tokens.json index da4c6542e8d..3a59042be18 100644 --- a/src/config/data/ccip/v1_2_0/testnet/tokens.json +++ b/src/config/data/ccip/v1_2_0/testnet/tokens.json @@ -26,6 +26,15 @@ "symbol": "LINK", "decimals": 18 }, + "ethereum-testnet-sepolia-base-1": { + "tokenAddress": "0xE4aB69C077896252FAFBD49EFD26B5D171A32410", + "allowListEnabled": false, + "poolAddress": "0x99685281Ec520a003F1A726A5a8078c2124c1477", + "poolType": "lockRelease", + "name": "ChainLink Token", + "symbol": "LINK", + "decimals": 18 + }, "ethereum-testnet-sepolia": { "tokenAddress": "0x779877A7B0D9E8603169DdbD7836e478b4624789", "allowListEnabled": false, @@ -92,6 +101,13 @@ "name": "Wrapped Ether", "symbol": "WETH", "decimals": 18 + }, + "ethereum-testnet-sepolia-base-1": { + "tokenAddress": "0x4200000000000000000000000000000000000006", + "allowListEnabled": false, + "name": "Wrapped Ether", + "symbol": "WETH", + "decimals": 18 } }, "WMATIC": { @@ -144,6 +160,14 @@ "name": "USD Coin", "symbol": "USDC", "decimals": 6 + }, + "ethereum-testnet-sepolia-base-1": { + "tokenAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", + "allowListEnabled": false, + "poolAddress": "0x4d57C6d8037C65fa66D6231844785a428310a735", + "name": "USD Coin", + "symbol": "USDC", + "decimals": 6 } }, "GHO": { @@ -220,6 +244,15 @@ "name": "CCIP-BnM", "symbol": "CCIP-BnM", "decimals": 18 + }, + "ethereum-testnet-sepolia-base-1": { + "tokenAddress": "0x88A2d74F47a237a62e7A51cdDa67270CE381555e", + "allowListEnabled": false, + "poolAddress": "0x477099a1E7812c09D4DF5a9158f97Fb7b7105dC5", + "poolType": "burnMint", + "name": "CCIP-BnM", + "symbol": "CCIP-BnM", + "decimals": 18 } }, "CCIP-LnM": { @@ -276,6 +309,15 @@ "name": "CCIP_LnM", "symbol": "clCCIP-LnM", "decimals": 18 + }, + "ethereum-testnet-sepolia-base-1": { + "tokenAddress": "0xA98FA8A008371b9408195e52734b1768c0d1Cb5c", + "allowListEnabled": false, + "poolAddress": "0xb2958D1Bd07448865E555FeeFf32b58D254ffB4C", + "poolType": "lockRelease", + "name": "CCIP_LnM", + "symbol": "clCCIP-LnM", + "decimals": 18 } } } diff --git a/src/config/types.ts b/src/config/types.ts index 107519799f5..f3033890679 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -40,6 +40,7 @@ export type SupportedChain = | "METIS_MAINNET" | "BASE_MAINNET" | "BASE_GOERLI" + | "BASE_SEPOLIA" | "CELO_MAINNET" | "CELO_ALFAJORES" | "SCROLL_MAINNET" diff --git a/src/config/web3Providers.ts b/src/config/web3Providers.ts index e31643d0f6b..30743662c5b 100644 --- a/src/config/web3Providers.ts +++ b/src/config/web3Providers.ts @@ -29,6 +29,7 @@ export const chainToProvider: Record providers.Provider> = METIS_MAINNET: () => new providers.JsonRpcProvider("https://andromeda.metis.io/?owner=1088"), BASE_MAINNET: () => new providers.JsonRpcProvider("https://mainnet.base.org"), BASE_GOERLI: () => new providers.JsonRpcProvider("https://goerli.base.org"), + BASE_SEPOLIA: () => new providers.JsonRpcProvider("https://base-sepolia-rpc.publicnode.com"), SCROLL_MAINNET: () => new providers.JsonRpcProvider("https://rpc.scroll.io"), SCROLL_SEPOLIA: () => new providers.JsonRpcProvider("https://sepolia-rpc.scroll.io"), CELO_MAINNET: () => new providers.JsonRpcProvider("https://alfajores-forno.celo-testnet.org"), diff --git a/src/features/utils/index.ts b/src/features/utils/index.ts index b8c902edc76..2669b5f183e 100644 --- a/src/features/utils/index.ts +++ b/src/features/utils/index.ts @@ -134,6 +134,8 @@ export const directoryToSupportedChain = (chainInRdd: string): SupportedChain => return "BASE_MAINNET" case "ethereum-testnet-goerli-base-1": return "BASE_GOERLI" + case "ethereum-testnet-sepolia-base-1": + return "BASE_SEPOLIA" default: throw Error(`Chain not found ${chainInRdd}`) } @@ -173,6 +175,8 @@ export const supportedChainToChainInRdd = (supportedChain: SupportedChain): stri return "ethereum-mainnet-base-1" case "BASE_GOERLI": return "ethereum-testnet-goerli-base-1" + case "BASE_SEPOLIA": + return "ethereum-testnet-sepolia-base-1" default: throw Error(`Chain not found ${supportedChain}`) } From b376669a38825b524d520e63ecbab3870460b859 Mon Sep 17 00:00:00 2001 From: aelmanaa Date: Thu, 22 Feb 2024 22:47:35 +0100 Subject: [PATCH 2/2] adjust rate limits --- .../data/ccip/v1_2_0/testnet/lanes.json | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/src/config/data/ccip/v1_2_0/testnet/lanes.json b/src/config/data/ccip/v1_2_0/testnet/lanes.json index 6cbd79ad170..2cfcd463fd6 100644 --- a/src/config/data/ccip/v1_2_0/testnet/lanes.json +++ b/src/config/data/ccip/v1_2_0/testnet/lanes.json @@ -26,9 +26,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-optimism-1": { @@ -57,9 +57,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-base-1": { @@ -88,9 +88,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "matic-testnet": { @@ -119,9 +119,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "bsc-testnet": { @@ -274,9 +274,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "avalanche-fuji-testnet": { @@ -305,9 +305,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-arbitrum-1": { @@ -336,9 +336,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "matic-testnet": { @@ -367,9 +367,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-base-1": { @@ -398,9 +398,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } } }, @@ -431,9 +431,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-optimism-1": { @@ -462,9 +462,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "matic-testnet": { @@ -493,9 +493,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "bsc-testnet": { @@ -586,9 +586,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } } }, @@ -619,9 +619,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "avalanche-fuji-testnet": { @@ -650,9 +650,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-optimism-1": { @@ -681,9 +681,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "bsc-testnet": { @@ -776,9 +776,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-base-1": { @@ -807,9 +807,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } } }, @@ -840,9 +840,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-optimism-1": { @@ -871,9 +871,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "ethereum-testnet-sepolia-arbitrum-1": { @@ -902,9 +902,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } }, "bsc-testnet": { @@ -957,9 +957,9 @@ } }, "rateLimiterConfig": { - "capacity": "1000000000000000000000000", + "capacity": "100000000000000000000000", "isEnabled": true, - "rate": "277000000000000000000" + "rate": "167000000000000000000" } } }