Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit 88095ba

Browse files
authored
feat: add Base Sepolia as a chain (#2708)
1 parent 9bf2f90 commit 88095ba

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ethers-contract/src/multicall/constants.rs

+2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ pub const MULTICALL_SUPPORTED_CHAIN_IDS: &[u64] = {
2323
Optimism as u64, // Optimism
2424
OptimismKovan as u64, // Optimism Kovan
2525
OptimismGoerli as u64, // Optimism Görli
26+
OptimismSepolia as u64, // Optimism Sepolia
2627
Base as u64, // Base
2728
BaseGoerli as u64, // Base Görli
29+
BaseSepolia as u64, // Base Sepolia
2830
Arbitrum as u64, // Arbitrum
2931
ArbitrumNova as u64, // Arbitrum Nova
3032
ArbitrumGoerli as u64, // Arbitrum Görli

ethers-core/src/types/chain.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ pub enum Chain {
159159

160160
Base = 8453,
161161
BaseGoerli = 84531,
162+
BaseSepolia = 84532,
162163

163164
Linea = 59144,
164165
LineaTestnet = 59140,
@@ -320,10 +321,9 @@ impl Chain {
320321
// Explicitly exhaustive. See NB above.
321322
Morden | Ropsten | Rinkeby | Goerli | Kovan | Sepolia | Holesky | Moonbase |
322323
MoonbeamDev | OptimismKovan | Poa | Sokol | Rsk | EmeraldTestnet | Boba | Base |
323-
BaseGoerli | ZkSync | ZkSyncTestnet | PolygonZkEvm | PolygonZkEvmTestnet | Metis |
324-
Linea | LineaTestnet | Mantle | MantleTestnet | Zora | ZoraGoerli | ZoraSepolia => {
325-
return None
326-
}
324+
BaseGoerli | BaseSepolia | ZkSync | ZkSyncTestnet | PolygonZkEvm |
325+
PolygonZkEvmTestnet | Metis | Linea | LineaTestnet | Mantle | MantleTestnet |
326+
Zora | ZoraGoerli | ZoraSepolia => return None,
327327
};
328328

329329
Some(Duration::from_millis(ms))
@@ -376,6 +376,7 @@ impl Chain {
376376
Holesky |
377377
Base |
378378
BaseGoerli |
379+
BaseSepolia |
379380
Optimism |
380381
OptimismGoerli |
381382
OptimismSepolia |
@@ -576,6 +577,7 @@ impl Chain {
576577
Base => ("https://api.basescan.org/api", "https://basescan.org"),
577578

578579
BaseGoerli => ("https://api-goerli.basescan.org/api", "https://goerli.basescan.org"),
580+
BaseSepolia => ("https://api-sepolia.basescan.org/api", "https://sepolia.basescan.org"),
579581

580582
ZkSync => {
581583
("https://zksync2-mainnet-explorer.zksync.io/", "https://explorer.zksync.io/")
@@ -656,6 +658,7 @@ impl Chain {
656658
Mantle |
657659
MantleTestnet |
658660
BaseGoerli |
661+
BaseSepolia |
659662
Gnosis |
660663
Scroll |
661664
ScrollSepolia => "ETHERSCAN_API_KEY",

0 commit comments

Comments
 (0)