Skip to content

Commit

Permalink
supoort more networks
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jul 29, 2024
1 parent 6aab76f commit 027fdd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all :; @forge build --force
fmt :; @forge fmt
clean :; @forge clean
test :; @forge test
deploy :; @forge script script/Deploy.s.sol:Deploy --chain-id ${chain-id} --legacy --broadcast --verify
deploy :; @forge script script/Deploy.s.sol:Deploy --chain-id ${chain-id} --legacy --broadcast # --verify
install:; @cargo install --path ./cli
sync :; @git submodule update --recursive

Expand Down
4 changes: 4 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ optimism = "https://optimism-mainnet.infura.io/v3/${INFURA_KEY}"
base = "https://mainnet.base.org"
base-sepolia = "https://sepolia.base.org"
scroll = "https://rpc.scroll.io"
moonbeam = "https://rpc.api.moonbeam.network"
linea = "https://1rpc.io/linea"
astar = "https://rpc.startale.com/astar-zkevm"

[etherscan]
blast = { key = "${ETHERSCAN_BLAST_KEY}", url = "https://api.blastscan.io/api"}
Expand All @@ -45,3 +48,4 @@ crab = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://crab.api.subscan.io/a
optimism = { key = "${ETHERSCAN_OPTIMISM_KEY}" }
base = { key = "${ETHERSCAN_BASE_KEY}" }
base-sepolia = { key = "${ETHERSCAN_BASE_KEY}" }
astar = { key = "${ETHERSCAN_API_KEY}"}
9 changes: 9 additions & 0 deletions script/Chains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ library Chains {
uint256 internal constant Zksync = 324;
uint256 internal constant OptimismGoerli = 420;
uint256 internal constant Koi = 701;
uint256 internal constant Moonbeam = 1284;
uint256 internal constant Astar = 3776;
uint256 internal constant Mantle = 5000;
uint256 internal constant Base = 8453;
uint256 internal constant Arbitrum = 42161;
uint256 internal constant Avalanche = 43114;
uint256 internal constant Linea = 59144;
uint256 internal constant Mumbai = 80001;
uint256 internal constant Blast = 81457;
uint256 internal constant BaseSepolia = 84532;
Expand Down Expand Up @@ -56,6 +59,10 @@ library Chains {
return "optimism-goerli";
} else if (chainid == Koi) {
return "koi";
} else if (chainid == Moonbeam) {
return "moonbeam";
} else if (chainid == Astar) {
return "astar";
} else if (chainid == Mantle) {
return "mantle";
} else if (chainid == Base) {
Expand All @@ -64,6 +71,8 @@ library Chains {
return "arbitrum";
} else if (chainid == Avalanche) {
return "avalanche";
} else if (chainid == Linea) {
return "linea";
} else if (chainid == Mumbai) {
return "mumbai";
} else if (chainid == Blast) {
Expand Down

0 comments on commit 027fdd9

Please sign in to comment.