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

Commit

Permalink
feat(chain): add Optimism Sepolia (#2665)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickGT authored Nov 6, 2023
1 parent e0e79df commit 4f7b354
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub enum Chain {
Optimism = 10,
OptimismKovan = 69,
OptimismGoerli = 420,
OptimismSepolia = 11155420,

Arbitrum = 42161,
ArbitrumTestnet = 421611,
Expand Down Expand Up @@ -291,7 +292,7 @@ impl Chain {
let ms = match self {
Mainnet => 12_000,
Arbitrum | ArbitrumTestnet | ArbitrumGoerli | ArbitrumSepolia | ArbitrumNova => 1_300,
Optimism | OptimismGoerli => 2_000,
Optimism | OptimismGoerli | OptimismSepolia => 2_000,
Polygon | PolygonMumbai => 2_100,
Moonbeam | Moonriver => 12_500,
BinanceSmartChain | BinanceSmartChainTestnet => 3_000,
Expand Down Expand Up @@ -363,6 +364,7 @@ impl Chain {
BaseGoerli |
Optimism |
OptimismGoerli |
OptimismSepolia |
Polygon |
PolygonMumbai |
Avalanche |
Expand Down Expand Up @@ -457,6 +459,10 @@ impl Chain {
"https://api-kovan-optimistic.etherscan.io/api",
"https://kovan-optimistic.etherscan.io",
),
OptimismSepolia => (
"https://api-sepolia-optimistic.etherscan.io/api",
"https://sepolia-optimism.etherscan.io",
),

Fantom => ("https://api.ftmscan.com/api", "https://ftmscan.com"),
FantomTestnet => ("https://api-testnet.ftmscan.com/api", "https://testnet.ftmscan.com"),
Expand Down Expand Up @@ -599,6 +605,7 @@ impl Chain {
Optimism |
OptimismGoerli |
OptimismKovan |
OptimismSepolia |
BinanceSmartChain |
BinanceSmartChainTestnet |
Arbitrum |
Expand Down

0 comments on commit 4f7b354

Please sign in to comment.