Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit c94ee70

Browse files
[STABLE-5750] Add support for Sepolia (#27)
## Summary Update project configuration to use Sepolia addresses, links, etc.
1 parent 292fcbc commit c94ee70

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CCTP Sample App
22

3-
A sample app used to demonstrate CCTP step by step capabilities on testnet. The app currently supports Ethereum Goerli, Avalanche Fuji C-Chain, and Arbitrum Goerli testnets.
3+
A sample app used to demonstrate CCTP step by step capabilities on testnet. The app currently supports Ethereum Sepolia, Avalanche Fuji C-Chain, and Arbitrum Sepolia testnets.
44

55
![](./docs/screenshot.png)
66

src/constants/addresses.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ import { SupportedChainId } from 'constants/chains'
44
* Map of supported chains to USDC contract addresses
55
*/
66
export const CHAIN_IDS_TO_USDC_ADDRESSES = {
7-
[SupportedChainId.ETH_GOERLI]: '0x07865c6E87B9F70255377e024ace6630C1Eaa37F',
7+
[SupportedChainId.ETH_SEPOLIA]: '0x1c7d4b196cb0c7b01d743fbc6116a902379c7238',
88

99
[SupportedChainId.AVAX_FUJI]: '0x5425890298aed601595a70AB815c96711a31Bc65',
1010

11-
[SupportedChainId.ARB_GOERLI]: '0xfd064a18f3bf249cf1f87fc203e90d8f650f2d63',
11+
[SupportedChainId.ARB_SEPOLIA]: '0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d',
1212
}
1313

1414
/**
1515
* Map of supported chains to Token Messenger contract addresses
1616
*/
1717
export const CHAIN_IDS_TO_TOKEN_MESSENGER_ADDRESSES = {
18-
[SupportedChainId.ETH_GOERLI]: '0xd0c3da58f55358142b8d3e06c1c30c5c6114efe8',
18+
[SupportedChainId.ETH_SEPOLIA]: '0x9f3b8679c73c2fef8b59b4f3444d4e156fb70aa5',
1919

2020
[SupportedChainId.AVAX_FUJI]: '0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0',
2121

22-
[SupportedChainId.ARB_GOERLI]: '0x12dcfd3fe2e9eac2859fd1ed86d2ab8c5a2f9352',
22+
[SupportedChainId.ARB_SEPOLIA]: '0x9f3b8679c73c2fef8b59b4f3444d4e156fb70aa5',
2323
}
2424

2525
/**
2626
* Map of supported chains to Message Transmitter contract addresses
2727
*/
2828
export const CHAIN_IDS_TO_MESSAGE_TRANSMITTER_ADDRESSES = {
29-
[SupportedChainId.ETH_GOERLI]: '0x26413e8157cd32011e726065a5462e97dd4d03d9',
29+
[SupportedChainId.ETH_SEPOLIA]: '0x7865fafc2db2093669d92c0f33aeef291086befd',
3030

3131
[SupportedChainId.AVAX_FUJI]: '0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79',
3232

33-
[SupportedChainId.ARB_GOERLI]: '0x109bc137cb64eab7c0b1dddd1edf341467dc2d35',
33+
[SupportedChainId.ARB_SEPOLIA]: '0xacf1ceef35caac005e15888ddb8a3515c41b4872',
3434
}

src/constants/chains.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ export enum Chain {
1111
* List of all the chain/network IDs supported
1212
*/
1313
export enum SupportedChainId {
14-
ETH_GOERLI = 5,
14+
ETH_SEPOLIA = 11155111,
1515
AVAX_FUJI = 43113,
16-
ARB_GOERLI = 421613,
16+
ARB_SEPOLIA = 421614,
1717
}
1818

1919
/**
2020
* List of all the chain/network IDs supported in hexadecimals
2121
* TODO: Infer from SupportedChainId
2222
*/
2323
export const SupportedChainIdHex = {
24-
ETH_GOERLI: '0x5',
24+
ETH_SEPOLIA: '0xaa36a7',
2525
AVAX_FUJI: '0xa869',
26-
ARB_GOERLI: '0x66eed',
26+
ARB_SEPOLIA: '0x66eee',
2727
}
2828

2929
interface ChainToChainIdMap {
@@ -35,9 +35,9 @@ interface ChainToChainIdMap {
3535
*/
3636

3737
export const CHAIN_TO_CHAIN_ID: ChainToChainIdMap = {
38-
[Chain.ETH]: SupportedChainId.ETH_GOERLI,
38+
[Chain.ETH]: SupportedChainId.ETH_SEPOLIA,
3939
[Chain.AVAX]: SupportedChainId.AVAX_FUJI,
40-
[Chain.ARB]: SupportedChainId.ARB_GOERLI,
40+
[Chain.ARB]: SupportedChainId.ARB_SEPOLIA,
4141
}
4242

4343
interface ChainToChainNameMap {
@@ -83,20 +83,20 @@ interface AddEthereumChainParameter {
8383
rpcUrls?: string[]
8484
}
8585

86-
const ETH_GOERLI: AddEthereumChainParameter = {
87-
chainId: '0x5',
88-
blockExplorerUrls: ['https://goerli.etherscan.io'],
89-
chainName: 'Goerli Test Network',
86+
const ETH_SEPOLIA: AddEthereumChainParameter = {
87+
chainId: SupportedChainIdHex.ETH_SEPOLIA,
88+
blockExplorerUrls: ['https://sepolia.etherscan.io'],
89+
chainName: 'Sepolia Test Network',
9090
nativeCurrency: {
91-
name: 'Goerli ETH',
92-
symbol: 'gorETH',
91+
name: 'Ethereum',
92+
symbol: 'ETH',
9393
decimals: 18,
9494
},
95-
rpcUrls: ['https://goerli.infura.io/v3/'],
95+
rpcUrls: ['https://sepolia.infura.io/v3/'],
9696
}
9797

9898
const AVAX_FUJI: AddEthereumChainParameter = {
99-
chainId: '0xa869',
99+
chainId: SupportedChainIdHex.AVAX_FUJI,
100100
blockExplorerUrls: ['https://testnet.snowtrace.io/'],
101101
chainName: 'Avalanche FUJI C-Chain',
102102
nativeCurrency: {
@@ -107,24 +107,24 @@ const AVAX_FUJI: AddEthereumChainParameter = {
107107
rpcUrls: ['https://api.avax-test.network/ext/bc/C/rpc'],
108108
}
109109

110-
const ARB_GOERLI: AddEthereumChainParameter = {
111-
chainId: SupportedChainIdHex.ARB_GOERLI,
112-
blockExplorerUrls: ['https://goerli.arbiscan.io/'],
113-
chainName: 'Arbitrum Goerli Testnet',
110+
const ARB_SEPOLIA: AddEthereumChainParameter = {
111+
chainId: SupportedChainIdHex.ARB_SEPOLIA,
112+
blockExplorerUrls: ['https://sepolia.arbiscan.io/'],
113+
chainName: 'Arbitrum Sepolia Testnet',
114114
nativeCurrency: {
115115
name: 'Ethereum',
116116
symbol: 'ETH',
117117
decimals: 18,
118118
},
119-
rpcUrls: ['https://arb-goerli.g.alchemy.com/v2/demo'],
119+
rpcUrls: ['https://arb-sepolia.g.alchemy.com/v2/demo'],
120120
}
121121

122122
interface ChainIdToChainParameters {
123123
[key: string]: AddEthereumChainParameter
124124
}
125125

126126
export const CHAIN_ID_HEXES_TO_PARAMETERS: ChainIdToChainParameters = {
127-
[SupportedChainIdHex.ETH_GOERLI]: ETH_GOERLI,
127+
[SupportedChainIdHex.ETH_SEPOLIA]: ETH_SEPOLIA,
128128
[SupportedChainIdHex.AVAX_FUJI]: AVAX_FUJI,
129-
[SupportedChainIdHex.ARB_GOERLI]: ARB_GOERLI,
129+
[SupportedChainIdHex.ARB_SEPOLIA]: ARB_SEPOLIA,
130130
}

0 commit comments

Comments
 (0)