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

chain integration prep #2298

Merged
merged 16 commits into from
Feb 5, 2025
6 changes: 6 additions & 0 deletions public/assets/chains/core.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/assets/chains/monad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/assets/chains/treasure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/QuickLinks/data/productChainLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,7 @@ export const chainNames: Record<string, string> = {
hashkey: "HashKey Chain",
botanix: "Botanix",
sei: "Sei Network",
core: "Core",
monad: "Monad",
treasure: "Treasure",
}
24 changes: 24 additions & 0 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 @@ -132,6 +135,12 @@ selectors:
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 @@ -185,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 @@ -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
6 changes: 5 additions & 1 deletion src/config/data/chain-to-technology.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,9 @@
"BOB_SEPOLIA": "BOB",
"BOTANIX_TESTNET": "BOTANIX",
"SEI_MAINNET": "SEI",
"SEI_TESTNET": "SEI"
"SEI_TESTNET": "SEI",
"MONAD_TESTNET": "MONAD",
"CORE_TESTNET": "CORE",
"TREASURE_MAINNET": "TREASURE",
"TREASURE_TOPAZ": "TREASURE"
}
66 changes: 66 additions & 0 deletions src/config/data/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1144,5 +1144,71 @@
}
}
}
},
"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": "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_TOPAZ": {
"chainId": 978658,
"title": "Treasure Topaz",
"explorer": {
"baseUrl": "https://topaz.treasurescan.io"
},
"nativeCurrency": {
"name": "Testnet Magic",
"symbol": "MAGIC",
"decimals": 18
}
}
}
}
}
7 changes: 7 additions & 0 deletions src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export type SupportedTechnology =
| "CORN"
| "BOTANIX"
| "SEI"
| "CORE"
| "MONAD"
| "TREASURE"

export type SupportedChain =
| "ETHEREUM_MAINNET"
Expand Down Expand Up @@ -111,6 +114,10 @@ export type SupportedChain =
| "BOTANIX_TESTNET"
| "SEI_MAINNET"
| "SEI_TESTNET"
| "CORE_TESTNET"
| "MONAD_TESTNET"
| "TREASURE_MAINNET"
| "TREASURE_TOPAZ"

export type ExplorerInfo = {
baseUrl: string
Expand Down
4 changes: 4 additions & 0 deletions src/config/web3Providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export const chainToProvider: Record<SupportedChain, () => providers.Provider> =
BOTANIX_TESTNET: () => new providers.JsonRpcProvider("https://node.botanixlabs.dev"),
SEI_MAINNET: () => new providers.JsonRpcProvider("https://evm-rpc.sei-apis.com"),
SEI_TESTNET: () => new providers.JsonRpcProvider("https://evm-rpc-testnet.sei-apis.com"),
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_TOPAZ: () => new providers.JsonRpcProvider("https://rpc.topaz.treasure.lol"),
}

export const getRpcUrlForChain = (chain: SupportedChain): string => {
Expand Down
20 changes: 16 additions & 4 deletions src/features/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ export const directoryToSupportedChain = (chainInRdd: string): SupportedChain =>
return "SEI_MAINNET"
case "sei-testnet-atlantic":
return "SEI_TESTNET"
case "monad-testnet":
return "MONAD_TESTNET"
case "core-testnet":
return "CORE_TESTNET"
case "treasure-mainnet":
return "TREASURE_MAINNET"
case "treasure-testnet-topaz":
return "TREASURE_TOPAZ"
default:
throw Error(`Chain not found ${chainInRdd}`)
}
Expand Down Expand Up @@ -417,10 +425,14 @@ export const supportedChainToChainInRdd = (supportedChain: SupportedChain): stri
return "ethereum-testnet-sepolia-polygon-zkevm-1"
case "BOTANIX_TESTNET":
return "bitcoin-testnet-botanix"
case "SEI_MAINNET":
return "sei-mainnet"
case "SEI_TESTNET":
return "sei-testnet-atlantic"
case "CORE_TESTNET":
return "core-testnet"
case "MONAD_TESTNET":
return "monad-testnet"
case "TREASURE_MAINNET":
return "treasure-mainnet"
case "TREASURE_TOPAZ":
return "treasure-testnet-topaz"
default:
throw Error(`Chain not found ${supportedChain}`)
}
Expand Down
73 changes: 73 additions & 0 deletions src/scripts/reference/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,23 @@
{ "name": "WEMIX Testnet Microscope", "url": "https://microscope.test.wemix.com", "standard": "EIP3091" }
]
},
{
"name": "Core Blockchain Testnet2",
"chain": "Core",
"icon": "core",
"rpc": ["https://rpc.test2.btcs.network/"],
"features": [{ "name": "EIP155" }, { "name": "EIP1559" }],
"faucets": ["https://scan.test2.btcs.network/faucet"],
"nativeCurrency": { "name": "Core Blockchain Testnet2 Native Token", "symbol": "tCORE2", "decimals": 18 },
"infoURL": "https://www.coredao.org",
"shortName": "tcore2",
"chainId": 1114,
"networkId": 1114,
"slip44": 1,
"explorers": [
{ "name": "Core Scan Testnet2", "url": "https://scan.test2.btcs.network", "icon": "core", "standard": "EIP3091" }
]
},
{
"name": "B2 Testnet",
"title": "B2 Testnet",
Expand Down Expand Up @@ -893,6 +910,21 @@
],
"status": "active"
},
{
"name": "Monad Testnet",
"chain": "MON",
"icon": "monad",
"rpc": [],
"features": [{ "name": "EIP155" }, { "name": "EIP1559" }],
"faucets": [],
"nativeCurrency": { "name": "Testnet MON Token", "symbol": "MON", "decimals": 18 },
"infoURL": "https://monad.xyz",
"shortName": "mon-testnet",
"chainId": 10143,
"networkId": 10143,
"slip44": 1,
"explorers": []
},
{
"name": "Gnosis Chiado Testnet",
"chain": "GNO",
Expand Down Expand Up @@ -1224,6 +1256,24 @@
"status": "active",
"parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://app.gobob.xyz" }] }
},
{
"name": "Treasure",
"chain": "Treasure",
"shortName": "treasure",
"chainId": 61166,
"networkId": 61166,
"nativeCurrency": { "name": "MAGIC", "symbol": "MAGIC", "decimals": 18 },
"slip44": 1,
"features": [{ "name": "EIP155" }, { "name": "EIP1559" }],
"infoURL": "https://app.treasure.lol",
"icon": "treasure",
"rpc": ["https://rpc.treasure.lol", "wss://rpc.treasure.lol/ws"],
"faucets": ["https://app.treasure.lol/chain/faucet", "https://thirdweb.com/treasure"],
"explorers": [
{ "name": "Treasure Block Explorer", "url": "https://treasurescan.io", "icon": "treasure", "standard": "EIP3091" }
],
"parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://app.treasure.lol/chain/bridge" }] }
},
{
"name": "Amoy",
"title": "Polygon Amoy Testnet",
Expand Down Expand Up @@ -1442,6 +1492,29 @@
"status": "active",
"parent": { "type": "L2", "chain": "eip155-11155111", "bridges": [{ "url": "https://bob-sepolia.gobob.xyz/" }] }
},
{
"name": "Treasure Topaz",
"chain": "Treasure Topaz",
"shortName": "treasure-topaz",
"chainId": 978658,
"networkId": 978658,
"nativeCurrency": { "name": "Testnet MAGIC", "symbol": "MAGIC", "decimals": 18 },
"slip44": 1,
"features": [{ "name": "EIP155" }, { "name": "EIP1559" }],
"infoURL": "https://app.treasure.lol",
"icon": "treasuretopaz",
"rpc": ["https://rpc.topaz.treasure.lol", "wss://rpc.topaz.treasure.lol/ws"],
"faucets": ["https://app.treasure.lol/chain/faucet", "https://thirdweb.com/treasure-topaz"],
"explorers": [
{
"name": "Treasure Topaz Block Explorer",
"url": "https://topaz.treasurescan.io",
"icon": "treasure",
"standard": "EIP3091"
}
],
"parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://app.treasure.lol/chain/bridge" }] }
},
{
"name": "Sepolia",
"title": "Ethereum Testnet Sepolia",
Expand Down
16 changes: 16 additions & 0 deletions src/scripts/reference/linkNameSymbol.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,5 +303,21 @@
"1329": {
"name": "ChainLink Token",
"symbol": "LINK"
},
"10143": {
"name": "ChainLink Token",
"symbol": "LINK"
},
"1114": {
"name": "ChainLink Token",
"symbol": "LINK"
},
"978658": {
"name": "ChainLink Token",
"symbol": "LINK"
},
"61166": {
"name": "ChainLink Token",
"symbol": "LINK"
}
}