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

Feat: Add Blast Sepolia as a chain #2726

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions ethers-contract/src/multicall/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub const MULTICALL_SUPPORTED_CHAIN_IDS: &[u64] = {
Base as u64, // Base
BaseGoerli as u64, // Base Görli
BaseSepolia as u64, // Base Sepolia
BlastSepolia as u64, // Blast Sepolia
Arbitrum as u64, // Arbitrum
ArbitrumNova as u64, // Arbitrum Nova
ArbitrumGoerli as u64, // Arbitrum Görli
Expand Down
11 changes: 10 additions & 1 deletion ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ pub enum Chain {
BaseGoerli = 84531,
BaseSepolia = 84532,

BlastSepolia = 168587773,

Linea = 59144,
LineaTestnet = 59140,

Expand Down Expand Up @@ -325,7 +327,7 @@ impl Chain {
// Explicitly exhaustive. See NB above.
Morden | Ropsten | Rinkeby | Goerli | Kovan | Sepolia | Holesky | Moonbase |
MoonbeamDev | OptimismKovan | Poa | Sokol | Rsk | EmeraldTestnet | Boba | Base |
BaseGoerli | BaseSepolia | ZkSync | ZkSyncTestnet | PolygonZkEvm |
BaseGoerli | BaseSepolia | BlastSepolia | ZkSync | ZkSyncTestnet | PolygonZkEvm |
PolygonZkEvmTestnet | Metis | Linea | LineaTestnet | Mantle | MantleTestnet |
Zora | ZoraGoerli | ZoraSepolia => return None,
};
Expand Down Expand Up @@ -381,6 +383,7 @@ impl Chain {
Base |
BaseGoerli |
BaseSepolia |
BlastSepolia |
Optimism |
OptimismGoerli |
OptimismSepolia |
Expand Down Expand Up @@ -585,6 +588,11 @@ impl Chain {
BaseGoerli => ("https://api-goerli.basescan.org/api", "https://goerli.basescan.org"),
BaseSepolia => ("https://api-sepolia.basescan.org/api", "https://sepolia.basescan.org"),

BlastSepolia => (
"https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan",
"https://testnet.blastscan.io",
),

ZkSync => {
("https://zksync2-mainnet-explorer.zksync.io/", "https://explorer.zksync.io/")
}
Expand Down Expand Up @@ -671,6 +679,7 @@ impl Chain {
MantleTestnet |
BaseGoerli |
BaseSepolia |
BlastSepolia |
Gnosis |
Scroll |
ScrollSepolia => "ETHERSCAN_API_KEY",
Expand Down
Loading