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

add scroll alpha testnet #2316

Merged
merged 2 commits into from
Apr 10, 2023
Merged
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
12 changes: 10 additions & 2 deletions ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ pub enum Chain {
Poa = 99,
Sokol = 77,

ScrollAlphaTestnet = 534353,

#[strum(to_string = "xdai", serialize = "gnosis", serialize = "gnosis-chain")]
#[serde(alias = "xdai", alias = "gnosis", alias = "gnosis_chain")]
XDai = 100,
Expand Down Expand Up @@ -268,7 +270,7 @@ impl Chain {
Dev | AnvilHardhat => 200,
Celo | CeloAlfajores | CeloBaklava => 5_000,
FilecoinHyperspaceTestnet | FilecoinMainnet => 30_000,

ScrollAlphaTestnet => 3_000,
// Explicitly exhaustive. See NB above.
Morden | Ropsten | Rinkeby | Goerli | Kovan | XDai | Chiado | Sepolia | Moonbase |
MoonbeamDev | Optimism | OptimismGoerli | OptimismKovan | Poa | Sokol | Rsk |
Expand Down Expand Up @@ -327,7 +329,8 @@ impl Chain {
// Unknown / not applicable, default to false for backwards compatibility
Dev | AnvilHardhat | Morden | Ropsten | Rinkeby | Cronos | CronosTestnet | Kovan |
Sokol | Poa | XDai | Moonbeam | MoonbeamDev | Moonriver | Moonbase | Evmos |
EvmosTestnet | Chiado | Aurora | AuroraTestnet | Canto | CantoTestnet => false,
EvmosTestnet | Chiado | Aurora | AuroraTestnet | Canto | CantoTestnet |
ScrollAlphaTestnet => false,
}
}

Expand Down Expand Up @@ -412,6 +415,10 @@ impl Chain {
("https://blockscout.com/xdai/mainnet/api", "https://blockscout.com/xdai/mainnet")
}

ScrollAlphaTestnet => {
("https://blockscout.scroll.io/api", "https://blockscout.scroll.io/")
}
salman01zp marked this conversation as resolved.
Show resolved Hide resolved

Chiado => {
("https://blockscout.chiadochain.net/api", "https://blockscout.chiadochain.net")
}
Expand Down Expand Up @@ -521,6 +528,7 @@ impl Chain {

// Explicitly exhaustive. See NB above.
XDai |
ScrollAlphaTestnet |
Chiado |
Sepolia |
Rsk |
Expand Down