Skip to content

Commit

Permalink
update selectors and fix jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa committed Feb 2, 2025
1 parent 4b51fdb commit 8751035
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 60 deletions.
36 changes: 30 additions & 6 deletions src/config/data/ccip/selectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ selectors:
195:
selector: "2066098519157881736"
name: "ethereum-testnet-sepolia-xlayer-1"
240:
selector: "16487132492576884721"
name: "cronos-zkevm-testnet-sepolia"
280:
selector: "6802309497652714138"
name: "ethereum-testnet-goerli-zksync-1"
Expand Down Expand Up @@ -66,6 +69,9 @@ selectors:
1112:
selector: "9284632837123596123"
name: "wemix-testnet"
1114:
selector: "4264732132125536123"
name: "core-testnet"
1123:
selector: "1948510578179542068"
name: "bitcoin-testnet-bsquared-1"
Expand Down Expand Up @@ -123,9 +129,18 @@ selectors:
9559:
selector: "1113014352258747600"
name: "neonlink-testnet"
10143:
selector: "2183018362218727504"
name: "monad-testnet"
13473:
selector: "4526165231216331901"
name: "ethereum-testnet-sepolia-immutable-zkevm-1"
16600:
selector: "16088006396410204581"
name: "0g-testnet-newton"
33111:
selector: "9900119385908781505"
name: "apechain-testnet-curtis"
43113:
selector: "14767482510784806043"
name: "avalanche-testnet-fuji"
Expand Down Expand Up @@ -179,6 +194,9 @@ selectors:
717160:
selector: "4418231248214522936"
name: "ethereum-testnet-sepolia-polygon-validium-1"
743111:
selector: "16126893759944359622"
name: "hemi-testnet-sepolia"
763373:
selector: "9763904284804119144"
name: "ink-testnet-sepolia"
Expand Down Expand Up @@ -260,12 +278,6 @@ selectors:
4801:
selector: "5299555114858065850"
name: "ethereum-testnet-sepolia-worldchain-1"
10143:
selector: 2183018362218727504
name: "monad-testnet"
1114:
selector: 4264732132125536123
name: "core-testnet"

# Mainnets
1:
Expand All @@ -277,6 +289,9 @@ selectors:
25:
selector: "1456215246176062136"
name: "cronos-mainnet"
30:
selector: "11964252391146578476"
name: "rootstock-mainnet"
40:
selector: "1477345371608778000"
name: "telos-evm-mainnet"
Expand Down Expand Up @@ -334,6 +349,9 @@ selectors:
324:
selector: "1562403441176082196"
name: "ethereum-mainnet-zksync-1"
388:
selector: "8788096068760390840"
name: "cronos-zkevm-mainnet"
397:
selector: "2039744413822257700"
name: "near-mainnet"
Expand Down Expand Up @@ -394,6 +412,9 @@ selectors:
13371:
selector: "1237925231416731909"
name: "ethereum-mainnet-immutable-zkevm-1"
33139:
selector: "14894068710063348487"
name: "apechain-mainnet"
34443:
selector: "7264351850409363825"
name: "ethereum-mainnet-mode-1"
Expand All @@ -406,6 +427,9 @@ selectors:
43114:
selector: "6433500567565415381"
name: "avalanche-mainnet"
98865:
selector: "3208172210661564830"
name: "plume-mainnet"
432204:
selector: "5463201557265485081"
name: "avalanche-subnet-dexalot-mainnet"
Expand Down
4 changes: 2 additions & 2 deletions src/config/data/chain-to-technology.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"SEI_MAINNET": "SEI",
"SEI_TESTNET": "SEI",
"MONAD_TESTNET": "MONAD",
"CORE_TESTNET": "CORE"
"CORE_TESTNET": "CORE",
"TREASURE_MAINNET": "TREASURE",
"TREASURE_TESTNET": "TREASURE"
"TREASURE_TOPAZ": "TREASURE"
}
97 changes: 49 additions & 48 deletions src/config/data/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1143,69 +1143,70 @@
"decimals": 18
}
}
},
"CORE": {
"title": "Core",
"icon": "/assets/chains/core.svg",
"chains": {
"CORE_TESTNET": {
"chainId": 1114,
"title": "Core Blockchain Testnet2",
"explorer": {
"baseUrl": "https://scan.test2.btcs.network"
}
}
},
"CORE": {
"title": "Core",
"icon": "/assets/chains/core.svg",
"chains": {
"CORE_TESTNET": {
"chainId": 1114,
"title": "Core Blockchain Testnet2",
"explorer": {
"baseUrl": "https://scan.test2.btcs.network"
},
"nativeCurrency": {
"name": "Core Blockchain Testnet2 Native Token",
"symbol": "tCORE2",
"decimals": 18
}
}
},
"MONAD": {
"title": "Monad",
"icon": "/assets/chains/monad.svg",
"chains": {
"MONAD_TESTNET": {
"chainId": 10143,
"title": "Monad Testnet",
"explorer": {
"baseUrl": ""
}
}
},
"MONAD": {
"title": "Monad",
"icon": "/assets/chains/monad.svg",
"chains": {
"MONAD_TESTNET": {
"chainId": 10143,
"title": "Monad Testnet",
"explorer": {
"baseUrl": "https://testnet.monadexplorer.com"
},
"nativeCurrency": {
"name": "Testnet MON Token",
"symbol": "MON2",
"decimals": 18
}
}
}
},
"TREASURE": {
"title": "Treasure",
"icon": "/assets/chains/treasure.svg",
"chains": {
"TREASURE_MAINNET": {
"chainId": 61166,
"title": "Treasure",
"explorer": {
"baseUrl": "https://treasurescan.io"
},
"nativeCurrency": {
"name": "Magic",
"symbol": "MAGIC",
"decimals": 18
}
},
"TREASURE": {
"title": "Treasure",
"icon": "/assets/chains/treasure.svg",
"chains": {
"TREASURE_MAINNET": {
"chainId": 61166,
"title": "Treasure",
"explorer": {
"baseUrl": "https://treasurescan.io"
},
"nativeCurrency": {
"name": "Magic",
"symbol": "MAGIC",
"decimals": 18
}
"TREASURE_TOPAZ": {
"chainId": 978658,
"title": "Treasure Topaz",
"explorer": {
"baseUrl": "https://topaz.treasurescan.io"
},
"TREASURE_TESTNET": {
"chainId": 978658,
"title": "Treasure Topaz",
"explorer": {
"baseUrl": "https://topaz.treasurescan.io"
},
"nativeCurrency": {
"name": "Testnet Magic",
"symbol": "MAGIC",
"decimals": 18
}
"nativeCurrency": {
"name": "Testnet Magic",
"symbol": "MAGIC",
"decimals": 18
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export type SupportedChain =
| "CORE_TESTNET"
| "MONAD_TESTNET"
| "TREASURE_MAINNET"
| "TREASURE_TESTNET"
| "TREASURE_TOPAZ"

export type ExplorerInfo = {
baseUrl: string
Expand Down
2 changes: 1 addition & 1 deletion src/config/web3Providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const chainToProvider: Record<SupportedChain, () => providers.Provider> =
CORE_TESTNET: () => new providers.JsonRpcProvider("https://rpc.test2.btcs.network/"),
MONAD_TESTNET: () => new providers.JsonRpcProvider("https://monad.xyz"),
TREASURE_MAINNET: () => new providers.JsonRpcProvider("https://rpc.treasure.lol"),
TREASURE_TESTNET: () => new providers.JsonRpcProvider("https://rpc.topaz.treasure.lol"),
TREASURE_TOPAZ: () => new providers.JsonRpcProvider("https://rpc.topaz.treasure.lol"),
}

export const getRpcUrlForChain = (chain: SupportedChain): string => {
Expand Down
4 changes: 2 additions & 2 deletions src/features/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const directoryToSupportedChain = (chainInRdd: string): SupportedChain =>
case "treasure-mainnet":
return "TREASURE_MAINNET"
case "treasure-testnet-topaz":
return "TREASURE_TESTNET"
return "TREASURE_TOPAZ"
default:
throw Error(`Chain not found ${chainInRdd}`)
}
Expand Down Expand Up @@ -431,7 +431,7 @@ export const supportedChainToChainInRdd = (supportedChain: SupportedChain): stri
return "monad-testnet"
case "TREASURE_MAINNET":
return "treasure-mainnet"
case "TREASURE_TESTNET":
case "TREASURE_TOPAZ":
return "treasure-testnet-topaz"
default:
throw Error(`Chain not found ${supportedChain}`)
Expand Down

0 comments on commit 8751035

Please sign in to comment.