Skip to content

Commit

Permalink
more networks
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jun 4, 2024
1 parent 783aaa3 commit a4efe08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ CREATE3Factory:
- polygon
- mantle
- optimism
- base
- scroll
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mantle = "https://rpc.mantle.xyz"
blast = "https://rpc.blast.io"
optimism = "https://optimism-mainnet.infura.io/v3/${INFURA_KEY}"
base = "https://mainnet.base.org"
scroll = "https://rpc.scroll.io"

[etherscan]
blast = { key = "${ETHERSCAN_BLAST_KEY}", url = "https://api.blastscan.io/api"}
Expand Down
3 changes: 3 additions & 0 deletions script/Chains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ library Chains {
uint256 internal constant Blast = 81457;
uint256 internal constant ArbitrumGoerli = 421613;
uint256 internal constant ArbitrumSepolia = 421614;
uint256 internal constant Scroll = 534352;
uint256 internal constant Sepolia = 11155111;
uint256 internal constant OptimismSepolia = 11155420;
Vm constant vm = Vm(address(bytes20(uint160(uint256(keccak256("hevm cheat code"))))));
Expand Down Expand Up @@ -61,6 +62,8 @@ library Chains {
return "arbitrum-goerli";
} else if (chainid == ArbitrumSepolia) {
return "arbitrum-sepolia";
} else if (chainid == Scroll) {
return "scroll";
} else if (chainid == Sepolia) {
return "sepolia";
} else if (chainid == OptimismSepolia) {
Expand Down

0 comments on commit a4efe08

Please sign in to comment.