Skip to content

Commit

Permalink
support base
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Apr 10, 2024
1 parent 69ace06 commit 783aaa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ethereum = "https://mainnet.infura.io/v3/${INFURA_KEY}"
mantle = "https://rpc.mantle.xyz"
blast = "https://rpc.blast.io"
optimism = "https://optimism-mainnet.infura.io/v3/${INFURA_KEY}"
base = "https://mainnet.base.org"

[etherscan]
blast = { key = "${ETHERSCAN_BLAST_KEY}", url = "https://api.blastscan.io/api"}
Expand All @@ -37,3 +38,4 @@ darwinia = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://darwinia.api.subs
pangolin = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://pangolin.api.subscan.io/api/scan/evm/contract/verifysource" }
crab = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://crab.api.subscan.io/api/scan/evm/contract/verifysource" }
optimism = { key = "${ETHERSCAN_OPTIMISM_KEY}" }
base = { key = "${ETHERSCAN_BASE_KEY}" }
3 changes: 3 additions & 0 deletions script/Chains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ library Chains {
uint256 internal constant Zksync = 324;
uint256 internal constant OptimismGoerli = 420;
uint256 internal constant Mantle = 5000;
uint256 internal constant Base = 8453;
uint256 internal constant Arbitrum = 42161;
uint256 internal constant Mumbai = 80001;
uint256 internal constant Blast = 81457;
Expand Down Expand Up @@ -48,6 +49,8 @@ library Chains {
return "optimism-goerli";
} else if (chainid == Mantle) {
return "mantle";
} else if (chainid == Base) {
return "base";
} else if (chainid == Arbitrum) {
return "arbitrum";
} else if (chainid == Mumbai) {
Expand Down

0 comments on commit 783aaa3

Please sign in to comment.