Skip to content
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
4 changes: 4 additions & 0 deletions public/assets/chains/ton.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 src/components/CCIP/Chain/Chain.astro
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const chainStructuredData = generateChainStructuredData(
<div class="ccip-heading">
<h2>Tokens <span>({allTokens.length})</span></h2>
{
network.chainType !== "solana" && network.chainType !== "aptos" && (
network.chainType !== "solana" && network.chainType !== "aptos" && network.chainType !== "ton" && (
<a class="button secondary" href="/ccip/tutorials/evm/token-manager#verifying-your-token">
<img
src="/assets/icons/plus.svg"
Expand Down
2 changes: 2 additions & 0 deletions src/components/QuickLinks/data/productChainLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const productChainLinks: ProductChainLinks = {
"adi-network": "/ccip/directory/testnet/chain/adi-testnet",
edge: "/ccip/directory/mainnet/chain/edge-mainnet",
robinhood: "/ccip/directory/testnet/chain/robinhood-testnet",
ton: "/ccip/directory/testnet/chain/ton-testnet",
},
},
CRE: {
Expand Down Expand Up @@ -458,4 +459,5 @@ export const chainNames: Record<string, string> = {
dogeos: "DogeOS",
edge: "Edge",
robinhood: "Robinhood Chain",
ton: "TON",
}
4 changes: 4 additions & 0 deletions src/config/data/ccip/selectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1074,3 +1074,7 @@ selectors:
selector: "1091131740251125869"
name: "ethereum-testnet-sepolia-ronin-1"
network_type: testnet
-3:
name: ton-testnet
selector: "1399300952838017768"
network_type: testnet
16 changes: 16 additions & 0 deletions src/config/data/ccip/v1_2_0/testnet/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,22 @@
"version": "1.5.1"
}
},
"ton-testnet": {
"armProxy": {
"address": "EQB9QIw22sgwNKMfqsMKGepkhnjXYJmXlzCgcBSAlaiF9VCj",
"version": "1.6.0"
},
"chainSelector": "1399300952838017768",
"feeTokens": ["TON"],
"router": {
"address": "EQB9QIw22sgwNKMfqsMKGepkhnjXYJmXlzCgcBSAlaiF9VCj",
"version": "1.6.0"
},
"tokenAdminRegistry": {
"address": "",
"version": ""
}
},
"treasure-testnet-topaz": {
"armProxy": {
"address": "0x43f7b33Aee99208A38e4384655d35D8F0dCe7C51",
Expand Down
46 changes: 46 additions & 0 deletions src/config/data/ccip/v1_2_0/testnet/lanes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3589,6 +3589,17 @@
}
}
},
"ton-testnet": {
"offRamp": {
"address": "0x0820f975ce90EE5c508657F0C58b71D1fcc85cE0",
"version": "1.6.0"
},
"onRamp": {
"address": "0x23a5084Fa78104F3DF11C63Ae59fcac4f6AD9DeE",
"enforceOutOfOrder": true,
"version": "1.6.0"
}
},
"treasure-testnet-topaz": {
"offRamp": {
"address": "0x25bDd16cD2721baB3D81043ed9742CD8F1f5bF6b",
Expand Down Expand Up @@ -4184,6 +4195,17 @@
}
}
},
"ton-testnet": {
"offRamp": {
"address": "0xF4EbCC2c077d3939434C7Ab0572660c5A45e4df5",
"version": "1.6.0"
},
"onRamp": {
"address": "0x28A025d34c830BF212f5D2357C8DcAB32dD92A20",
"enforceOutOfOrder": true,
"version": "1.6.0"
}
},
"treasure-testnet-topaz": {
"offRamp": {
"address": "0xc3d4057a56bA7E05f6A753d200d7053fE672d151",
Expand Down Expand Up @@ -7627,6 +7649,30 @@
}
}
},
"ton-testnet": {
"ethereum-testnet-sepolia": {
"offRamp": {
"address": "EQDPuQ0nydRXyQPWFr_d4w-tzfQMXwovke0TaIPLlCBdgAed",
"version": "1.6.0"
},
"onRamp": {
"address": "EQDioi9PI32Wo1oBwkUp0pj1AhwvAHiKiZCfgrr0iDqu3lTA",
"enforceOutOfOrder": true,
"version": "1.6.0"
}
},
"ethereum-testnet-sepolia-arbitrum-1": {
"offRamp": {
"address": "EQDPuQ0nydRXyQPWFr_d4w-tzfQMXwovke0TaIPLlCBdgAed",
"version": "1.6.0"
},
"onRamp": {
"address": "EQDioi9PI32Wo1oBwkUp0pj1AhwvAHiKiZCfgrr0iDqu3lTA",
"enforceOutOfOrder": true,
"version": "1.6.0"
}
}
},
"treasure-testnet-topaz": {
"ethereum-testnet-sepolia": {
"offRamp": {
Expand Down
10 changes: 10 additions & 0 deletions src/config/data/ccip/v1_2_0/testnet/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,16 @@
"tokenAddress": "0x20C0000000000000000000000000000000000003"
}
},
"TON": {
"ton-testnet": {
"allowListEnabled": false,
"decimals": 9,
"name": "TON",
"poolType": "feeTokenOnly",
"symbol": "TON",
"tokenAddress": "EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd99"
}
},
"USDC": {
"avalanche-fuji-testnet": {
"allowListEnabled": false,
Expand Down
3 changes: 2 additions & 1 deletion src/config/data/chain-to-technology.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,6 @@
"ADI_NETWORK_MAINNET": "ADI_NETWORK",
"EDGE_MAINNET": "EDGE",
"EDGE_TESTNET": "EDGE",
"ROBINHOOD_TESTNET": "ROBINHOOD_CHAIN"
"ROBINHOOD_TESTNET": "ROBINHOOD_CHAIN",
"TON_TESTNET": "TON"
}
19 changes: 19 additions & 0 deletions src/config/data/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -2781,5 +2781,24 @@
}
}
}
},
"TON": {
"title": "TON",
"icon": "/assets/chains/ton.svg",
"chainType": "ton",
"chains": {
"TON_TESTNET": {
"chainId": -3,
"title": "TON Testnet",
"explorer": {
"baseUrl": "https://testnet.tonviewer.com"
},
"nativeCurrency": {
"name": "TON",
"symbol": "TON",
"decimals": 9
}
}
}
}
}
1 change: 1 addition & 0 deletions src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export type SupportedChain =
| "EDGE_MAINNET"
| "EDGE_TESTNET"
| "ROBINHOOD_TESTNET"
| "TON_TESTNET"

export type ExplorerInfo = {
baseUrl: string
Expand Down
1 change: 1 addition & 0 deletions src/config/web3Providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export const chainToProvider: Record<SupportedChain, () => Provider> = {
EDGE_TESTNET: () => new JsonRpcProvider("https://edge-testnet.g.alchemy.com/public"),
EDGE_MAINNET: () => new JsonRpcProvider("https://edge-mainnet.g.alchemy.com/public"),
ROBINHOOD_TESTNET: () => new JsonRpcProvider("https://rpc.testnet.chain.robinhood.com"),
TON_TESTNET: () => new JsonRpcProvider("https://ton-testnet.api.onfinality.io/public"),
}

export const getRpcUrlForChain = (chain: SupportedChain): string => {
Expand Down
4 changes: 4 additions & 0 deletions src/features/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ export const directoryToSupportedChain = (chainInRdd: string): SupportedChain =>
return "EDGE_MAINNET"
case "robinhood-testnet":
return "ROBINHOOD_TESTNET"
case "ton-testnet":
return "TON_TESTNET"
default:
throw Error(`Chain not found ${chainInRdd}`)
}
Expand Down Expand Up @@ -914,6 +916,8 @@ export const supportedChainToChainInRdd = (supportedChain: SupportedChain): stri
return "edge-mainnet"
case "ROBINHOOD_TESTNET":
return "robinhood-testnet"
case "TON_TESTNET":
return "ton-testnet"
default:
throw Error(`Chain not found ${supportedChain}`)
}
Expand Down
Loading