Skip to content

Commit

Permalink
Support blast. (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud10240 authored Mar 8, 2024
1 parent 48917a8 commit faba351
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/evm/onchain/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub enum Chain {
CELO,
ZKEVM,
ZkevmTestnet,
BLAST,
LOCAL,
}

Expand Down Expand Up @@ -75,6 +76,7 @@ impl FromStr for Chain {
"CELO" | "celo" => Ok(Self::CELO),
"ZKEVM" | "zkevm" => Ok(Self::ZKEVM),
"ZKEVM_TESTNET" | "zkevm_testnet" => Ok(Self::ZkevmTestnet),
"BLAST" | "blast" => Ok(Self::BLAST),
"LOCAL" | "local" => Ok(Self::LOCAL),
_ => Err(()),
}
Expand All @@ -100,6 +102,7 @@ impl Chain {
Chain::CELO => 42220,
Chain::ZKEVM => 1101,
Chain::ZkevmTestnet => 1442,
Chain::BLAST => 81457,
Chain::LOCAL => 31337,
}
}
Expand All @@ -122,6 +125,7 @@ impl Chain {
Chain::CELO => "celo",
Chain::ZKEVM => "zkevm",
Chain::ZkevmTestnet => "zkevm_testnet",
Chain::BLAST => "blast",
Chain::LOCAL => "local",
}
.to_string()
Expand All @@ -148,6 +152,7 @@ impl Chain {
Chain::CELO => "https://rpc.ankr.com/celo",
Chain::ZKEVM => "https://rpc.ankr.com/polygon_zkevm",
Chain::ZkevmTestnet => "https://rpc.ankr.com/polygon_zkevm_testnet",
Chain::BLAST => "https://rpc.ankr.com/blast",
Chain::LOCAL => "http://localhost:8545",
}
.to_string()
Expand All @@ -171,6 +176,7 @@ impl Chain {
Chain::CELO => "https://api.celoscan.io/api",
Chain::ZKEVM => "https://api-zkevm.polygonscan.com/api",
Chain::ZkevmTestnet => "https://api-testnet-zkevm.polygonscan.com/api",
Chain::BLAST => "https://api.routescan.io/v2/network/mainnet/evm/81457/etherscan",
Chain::LOCAL => "http://localhost:8080/abi/",
}
.to_string()
Expand Down

0 comments on commit faba351

Please sign in to comment.