Skip to content

Commit

Permalink
support more networks
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jul 24, 2024
1 parent b0817f8 commit 6aab76f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ CREATE3Factory:
- optimism
- base
- scroll
- bsc
- gnosis
- avalanche
3 changes: 3 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ bytecode_hash = "none"
auto_detect_remappings = false

[rpc_endpoints]
avalanche = "https://rpc.ankr.com/avalanche"
gnosis = "https://rpc.ankr.com/gnosis"
bsc = "https://rpc.ankr.com/bsc"
arbitrum-goerli = "https://goerli-rollup.arbitrum.io/rpc"
arbitrum-sepolia = "https://sepolia-rollup.arbitrum.io/rpc"
goerli = "https://rpc.ankr.com/eth_goerli"
Expand Down
9 changes: 9 additions & 0 deletions script/Chains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ library Chains {
uint256 internal constant Crab = 44;
uint256 internal constant Pangoro = 45;
uint256 internal constant Darwinia = 46;
uint256 internal constant BSC = 56;
uint256 internal constant Gnosis = 100;
uint256 internal constant Polygon = 137;
uint256 internal constant Zksync = 324;
uint256 internal constant OptimismGoerli = 420;
uint256 internal constant Koi = 701;
uint256 internal constant Mantle = 5000;
uint256 internal constant Base = 8453;
uint256 internal constant Arbitrum = 42161;
uint256 internal constant Avalanche = 43114;
uint256 internal constant Mumbai = 80001;
uint256 internal constant Blast = 81457;
uint256 internal constant BaseSepolia = 84532;
Expand All @@ -41,6 +44,10 @@ library Chains {
return "pangoro";
} else if (chainid == Darwinia) {
return "darwinia";
} else if (chainid == BSC) {
return "bsc";
} else if (chainid == Gnosis) {
return "gnosis";
} else if (chainid == Polygon) {
return "polygon";
} else if (chainid == Zksync) {
Expand All @@ -55,6 +62,8 @@ library Chains {
return "base";
} else if (chainid == Arbitrum) {
return "arbitrum";
} else if (chainid == Avalanche) {
return "avalanche";
} else if (chainid == Mumbai) {
return "mumbai";
} else if (chainid == Blast) {
Expand Down

0 comments on commit 6aab76f

Please sign in to comment.