Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ccip 1.2 mainnet #1722

Merged
merged 6 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"blockscout",
"CBOR",
"ccip",
"CCTP",
"CELO",
"chainlink",
"commify",
Expand All @@ -39,6 +40,8 @@
"MOVR",
"Numberish",
"NUON",
"offchain",
"offramp",
"preact",
"preconfigured",
"quickstarts",
Expand Down
Binary file added public/images/ccip/detailed-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ccip/usdc-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion src/config/data/ccip/data.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { ChainsConfig, LanesConfig, TokensConfig, Environment, Version } from "./types"

// For mainnet
import chainsMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/chains.json"
import lanesMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/lanes.json"
import tokensMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/tokens.json"

import chainsMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/chains.json"
import lanesMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/lanes.json"
import tokensMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/tokens.json"
Expand All @@ -22,7 +26,11 @@ export const loadReferenceData = ({ environment, version }: { environment: Envir
let lanesReferenceData: LanesConfig
let tokensReferenceData: TokensConfig

if (environment === Environment.Mainnet && version === Version.V1_0_0) {
if (environment === Environment.Mainnet && version === Version.V1_2_0) {
chainsReferenceData = chainsMainnetv120 as unknown as ChainsConfig
lanesReferenceData = lanesMainnetv120 as unknown as LanesConfig
tokensReferenceData = tokensMainnetv120 as unknown as TokensConfig
} else if (environment === Environment.Mainnet && version === Version.V1_0_0) {
chainsReferenceData = chainsMainnetv100 as unknown as ChainsConfig
lanesReferenceData = lanesMainnetv100 as unknown as LanesConfig
tokensReferenceData = tokensMainnetv100 as unknown as TokensConfig
Expand Down Expand Up @@ -52,6 +60,9 @@ export const getAllChains = ({
let chainsTestnetKeys: string[] = []

switch (mainnetVersion) {
case Version.V1_2_0:
chainsMainnetKeys = Object.keys(chainsMainnetv120)
break
case Version.V1_0_0:
chainsMainnetKeys = Object.keys(chainsMainnetv100)
break
Expand Down
14 changes: 0 additions & 14 deletions src/config/data/ccip/v1_0_0/mainnet/lanes.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,6 @@
},
"mainnet": {
"supportedTokens": {
"R": {
"rateLimiterConfig": {
"capacity": "500000000000000000000000",
"isEnabled": true,
"rate": "139000000000000000000"
}
},
"NUON": {
"rateLimiterConfig": {
"capacity": "100000000000000000000000",
Expand Down Expand Up @@ -439,13 +432,6 @@
},
"ethereum-mainnet-base-1": {
"supportedTokens": {
"R": {
"rateLimiterConfig": {
"capacity": "500000000000000000000000",
"isEnabled": true,
"rate": "139000000000000000000"
}
},
"NUON": {
"rateLimiterConfig": {
"capacity": "100000000000000000000000",
Expand Down
20 changes: 0 additions & 20 deletions src/config/data/ccip/v1_0_0/mainnet/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,26 +353,6 @@
"decimals": 18
}
},
"R": {
"ethereum-mainnet-base-1": {
"tokenAddress": "0xaFB2820316e7Bc5Ef78d295AB9b8Bb2257534576",
"allowListEnabled": false,
"poolAddress": "0x19ef16366Ec4D8c8F022A3708735289538ef6D16",
"poolType": "burnMint",
"name": "R Stablecoin",
"symbol": "R",
"decimals": 18
},
"mainnet": {
"tokenAddress": "0x183015a9bA6fF60230fdEaDc3F43b3D788b13e21",
"allowListEnabled": false,
"poolAddress": "0xD0b84F42b3B88eeF7AA88c48Ac8EC08130d48595",
"poolType": "lockRelease",
"name": "R Stablecoin",
"symbol": "R",
"decimals": 18
}
},
"snxUSD": {
"ethereum-mainnet-optimism-1": {
"tokenAddress": "0xb2F30A7C980f052f02563fb518dcc39e6bf38175",
Expand Down
37 changes: 37 additions & 0 deletions src/config/data/ccip/v1_2_0/mainnet/chains.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"mainnet": {
"chainSelector": "5009297550715157269",
"router": "0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D",
"feeTokens": ["LINK", "WETH"]
},
"ethereum-mainnet-optimism-1": {
"chainSelector": "3734403246176062136",
"router": "0x3206695CaE29952f4b0c22a169725a865bc8Ce0f",
"feeTokens": ["LINK", "WETH"]
},
"ethereum-mainnet-arbitrum-1": {
"chainSelector": "4949039107694359620",
"router": "0x141fa059441E0ca23ce184B6A78bafD2A517DdE8",
"feeTokens": ["LINK", "WETH"]
},
"matic-mainnet": {
"chainSelector": "4051577828743386545",
"router": "0x849c5ED5a80F5B408Dd4969b78c2C8fdf0565Bfe",
"feeTokens": ["LINK", "WMATIC"]
},
"avalanche-mainnet": {
"chainSelector": "6433500567565415381",
"router": "0xF4c7E640EdA248ef95972845a62bdC74237805dB",
"feeTokens": ["LINK", "WAVAX"]
},
"bsc-mainnet": {
"chainSelector": "11344663589394136015",
"router": "0x34B03Cb9086d7D758AC55af71584F81A598759FE",
"feeTokens": ["LINK", "WBNB"]
},
"ethereum-mainnet-base-1": {
"chainSelector": "15971525489660198786",
"router": "0x881e3A65B4d4a04dD529061dd0071cf975F58bCD",
"feeTokens": ["LINK", "WETH"]
}
}
Loading
Loading