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

Commit 59f0df0

Browse files
dghelmmattsse
andauthored
update: add Scroll Sepolia and update Scroll and Scroll Alpha Testnets (#2692)
* update: add Scroll Sepolia and update Scroll and Scroll Alpha Testnet URLs * chore: fmt --------- Co-authored-by: Matthias Seitz <[email protected]>
1 parent 2e93fa7 commit 59f0df0

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

ethers-core/src/types/chain.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ pub enum Chain {
9090
Poa = 99,
9191
Sokol = 77,
9292

93+
#[serde(alias = "scroll_sepolia", alias = "scroll_sepolia_testnet")]
94+
ScrollSepolia = 534351,
9395
Scroll = 534352,
9496
ScrollAlphaTestnet = 534353,
9597

@@ -310,7 +312,7 @@ impl Chain {
310312
Dev | AnvilHardhat => 200,
311313
Celo | CeloAlfajores | CeloBaklava => 5_000,
312314
FilecoinCalibrationTestnet | FilecoinMainnet => 30_000,
313-
Scroll | ScrollAlphaTestnet => 3_000,
315+
Scroll | ScrollSepolia | ScrollAlphaTestnet => 3_000,
314316
Gnosis | Chiado => 5_000,
315317
// Explicitly exhaustive. See NB above.
316318
Morden | Ropsten | Rinkeby | Goerli | Kovan | Sepolia | Holesky | Moonbase |
@@ -360,7 +362,8 @@ impl Chain {
360362
PolygonZkEvm |
361363
PolygonZkEvmTestnet |
362364
Metis |
363-
Scroll => true,
365+
Scroll |
366+
ScrollSepolia => true,
364367

365368
// Known EIP-1559 chains
366369
Mainnet |
@@ -504,9 +507,12 @@ impl Chain {
504507

505508
Gnosis => ("https://api.gnosisscan.io/api", "https://gnosisscan.io"),
506509

507-
Scroll => ("https://api.scrollscan.com", "https://scrollscan.com"),
510+
Scroll => ("https://api.scrollscan.com/api", "https://scrollscan.com"),
511+
ScrollSepolia => {
512+
("https://api-sepolia.scrollscan.com/api", "https://sepolia.scrollscan.com")
513+
}
508514
ScrollAlphaTestnet => {
509-
("https://blockscout.scroll.io/api", "https://blockscout.scroll.io/")
515+
("https://alpha-blockscout.scroll.io/api", "https://alpha-blockscout.scroll.io/")
510516
}
511517

512518
Metis => {
@@ -645,7 +651,8 @@ impl Chain {
645651
MantleTestnet |
646652
BaseGoerli |
647653
Gnosis |
648-
Scroll => "ETHERSCAN_API_KEY",
654+
Scroll |
655+
ScrollSepolia => "ETHERSCAN_API_KEY",
649656

650657
Avalanche | AvalancheFuji => "SNOWTRACE_API_KEY",
651658

0 commit comments

Comments
 (0)