Skip to content

Commit 771f5f6

Browse files
authored
ccip 1.2 mainnet (#1722)
1 parent 1ba1ff1 commit 771f5f6

34 files changed

+1663
-148
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"blockscout",
2929
"CBOR",
3030
"ccip",
31+
"CCTP",
3132
"CELO",
3233
"chainlink",
3334
"commify",
@@ -39,6 +40,8 @@
3940
"MOVR",
4041
"Numberish",
4142
"NUON",
43+
"offchain",
44+
"offramp",
4245
"preact",
4346
"preconfigured",
4447
"quickstarts",
425 KB
Loading
Loading
Loading

public/images/ccip/usdc-diagram.png

234 KB
Loading

src/config/data/ccip/data.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { ChainsConfig, LanesConfig, TokensConfig, Environment, Version } from "./types"
22

33
// For mainnet
4+
import chainsMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/chains.json"
5+
import lanesMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/lanes.json"
6+
import tokensMainnetv120 from "@config/data/ccip/v1_2_0/mainnet/tokens.json"
7+
48
import chainsMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/chains.json"
59
import lanesMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/lanes.json"
610
import tokensMainnetv100 from "@config/data/ccip/v1_0_0/mainnet/tokens.json"
@@ -22,7 +26,11 @@ export const loadReferenceData = ({ environment, version }: { environment: Envir
2226
let lanesReferenceData: LanesConfig
2327
let tokensReferenceData: TokensConfig
2428

25-
if (environment === Environment.Mainnet && version === Version.V1_0_0) {
29+
if (environment === Environment.Mainnet && version === Version.V1_2_0) {
30+
chainsReferenceData = chainsMainnetv120 as unknown as ChainsConfig
31+
lanesReferenceData = lanesMainnetv120 as unknown as LanesConfig
32+
tokensReferenceData = tokensMainnetv120 as unknown as TokensConfig
33+
} else if (environment === Environment.Mainnet && version === Version.V1_0_0) {
2634
chainsReferenceData = chainsMainnetv100 as unknown as ChainsConfig
2735
lanesReferenceData = lanesMainnetv100 as unknown as LanesConfig
2836
tokensReferenceData = tokensMainnetv100 as unknown as TokensConfig
@@ -52,6 +60,9 @@ export const getAllChains = ({
5260
let chainsTestnetKeys: string[] = []
5361

5462
switch (mainnetVersion) {
63+
case Version.V1_2_0:
64+
chainsMainnetKeys = Object.keys(chainsMainnetv120)
65+
break
5566
case Version.V1_0_0:
5667
chainsMainnetKeys = Object.keys(chainsMainnetv100)
5768
break

src/config/data/ccip/v1_0_0/mainnet/lanes.json

-14
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,6 @@
264264
},
265265
"mainnet": {
266266
"supportedTokens": {
267-
"R": {
268-
"rateLimiterConfig": {
269-
"capacity": "500000000000000000000000",
270-
"isEnabled": true,
271-
"rate": "139000000000000000000"
272-
}
273-
},
274267
"NUON": {
275268
"rateLimiterConfig": {
276269
"capacity": "100000000000000000000000",
@@ -439,13 +432,6 @@
439432
},
440433
"ethereum-mainnet-base-1": {
441434
"supportedTokens": {
442-
"R": {
443-
"rateLimiterConfig": {
444-
"capacity": "500000000000000000000000",
445-
"isEnabled": true,
446-
"rate": "139000000000000000000"
447-
}
448-
},
449435
"NUON": {
450436
"rateLimiterConfig": {
451437
"capacity": "100000000000000000000000",

src/config/data/ccip/v1_0_0/mainnet/tokens.json

-20
Original file line numberDiff line numberDiff line change
@@ -353,26 +353,6 @@
353353
"decimals": 18
354354
}
355355
},
356-
"R": {
357-
"ethereum-mainnet-base-1": {
358-
"tokenAddress": "0xaFB2820316e7Bc5Ef78d295AB9b8Bb2257534576",
359-
"allowListEnabled": false,
360-
"poolAddress": "0x19ef16366Ec4D8c8F022A3708735289538ef6D16",
361-
"poolType": "burnMint",
362-
"name": "R Stablecoin",
363-
"symbol": "R",
364-
"decimals": 18
365-
},
366-
"mainnet": {
367-
"tokenAddress": "0x183015a9bA6fF60230fdEaDc3F43b3D788b13e21",
368-
"allowListEnabled": false,
369-
"poolAddress": "0xD0b84F42b3B88eeF7AA88c48Ac8EC08130d48595",
370-
"poolType": "lockRelease",
371-
"name": "R Stablecoin",
372-
"symbol": "R",
373-
"decimals": 18
374-
}
375-
},
376356
"snxUSD": {
377357
"ethereum-mainnet-optimism-1": {
378358
"tokenAddress": "0xb2F30A7C980f052f02563fb518dcc39e6bf38175",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"mainnet": {
3+
"chainSelector": "5009297550715157269",
4+
"router": "0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D",
5+
"feeTokens": ["LINK", "WETH"]
6+
},
7+
"ethereum-mainnet-optimism-1": {
8+
"chainSelector": "3734403246176062136",
9+
"router": "0x3206695CaE29952f4b0c22a169725a865bc8Ce0f",
10+
"feeTokens": ["LINK", "WETH"]
11+
},
12+
"ethereum-mainnet-arbitrum-1": {
13+
"chainSelector": "4949039107694359620",
14+
"router": "0x141fa059441E0ca23ce184B6A78bafD2A517DdE8",
15+
"feeTokens": ["LINK", "WETH"]
16+
},
17+
"matic-mainnet": {
18+
"chainSelector": "4051577828743386545",
19+
"router": "0x849c5ED5a80F5B408Dd4969b78c2C8fdf0565Bfe",
20+
"feeTokens": ["LINK", "WMATIC"]
21+
},
22+
"avalanche-mainnet": {
23+
"chainSelector": "6433500567565415381",
24+
"router": "0xF4c7E640EdA248ef95972845a62bdC74237805dB",
25+
"feeTokens": ["LINK", "WAVAX"]
26+
},
27+
"bsc-mainnet": {
28+
"chainSelector": "11344663589394136015",
29+
"router": "0x34B03Cb9086d7D758AC55af71584F81A598759FE",
30+
"feeTokens": ["LINK", "WBNB"]
31+
},
32+
"ethereum-mainnet-base-1": {
33+
"chainSelector": "15971525489660198786",
34+
"router": "0x881e3A65B4d4a04dD529061dd0071cf975F58bCD",
35+
"feeTokens": ["LINK", "WETH"]
36+
}
37+
}

0 commit comments

Comments
 (0)