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

feat(arb-sepolia): Add arbitrum sepolia to chain definitions #2657

Merged
merged 2 commits into from
Oct 31, 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
8 changes: 7 additions & 1 deletion ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pub enum Chain {
Arbitrum = 42161,
ArbitrumTestnet = 421611,
ArbitrumGoerli = 421613,
ArbitrumSepolia = 421614,
ArbitrumNova = 42170,

Cronos = 25,
Expand Down Expand Up @@ -289,7 +290,7 @@ impl Chain {

let ms = match self {
Mainnet => 12_000,
Arbitrum | ArbitrumTestnet | ArbitrumGoerli | ArbitrumNova => 1_300,
Arbitrum | ArbitrumTestnet | ArbitrumGoerli | ArbitrumSepolia | ArbitrumNova => 1_300,
Optimism | OptimismGoerli => 2_000,
Polygon | PolygonMumbai => 2_100,
Moonbeam | Moonriver => 12_500,
Expand Down Expand Up @@ -368,6 +369,7 @@ impl Chain {
AvalancheFuji |
Arbitrum |
ArbitrumGoerli |
ArbitrumSepolia |
ArbitrumNova |
FilecoinMainnet |
Linea |
Expand Down Expand Up @@ -469,6 +471,9 @@ impl Chain {
("https://api-testnet.arbiscan.io/api", "https://testnet.arbiscan.io")
}
ArbitrumGoerli => ("https://api-goerli.arbiscan.io/api", "https://goerli.arbiscan.io"),
ArbitrumSepolia => {
("https://api-sepolia.arbiscan.io/api", "https://sepolia.arbiscan.io")
}
ArbitrumNova => ("https://api-nova.arbiscan.io/api", "https://nova.arbiscan.io/"),

Cronos => ("https://api.cronoscan.com/api", "https://cronoscan.com"),
Expand Down Expand Up @@ -599,6 +604,7 @@ impl Chain {
Arbitrum |
ArbitrumTestnet |
ArbitrumGoerli |
ArbitrumSepolia |
ArbitrumNova |
Cronos |
CronosTestnet |
Expand Down