Skip to content

Commit

Permalink
support l2 blast
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Mar 4, 2024
1 parent c956de8 commit 398cd35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CREATE3Factory:

### Support Chains
- arbitrum
- blast
- crab
- darwinia
- ethereum
Expand Down
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ arbitrum = "https://arb1.arbitrum.io/rpc"
polygon = "https://polygon-rpc.com"
ethereum = "https://mainnet.infura.io/v3/${INFURA_KEY}"
mantle = "https://rpc.mantle.xyz"
blast = "https://rpc.blast.io"

[etherscan]
blast = { key = "${ETHERSCAN_BLAST_KEY}", url = "https://api.blastscan.io/api"}
ethereum = { key = "${ETHERSCAN_API_KEY}" }
polygon = { key = "${ETHERSCAN_POLYGON_KEY}" }
arbitrum = { key = "${ETHERSCAN_ARBITRUM_KEY}" }
Expand Down
5 changes: 4 additions & 1 deletion script/Chains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ library Chains {
uint256 internal constant Mantle = 5000;
uint256 internal constant Arbitrum = 42161;
uint256 internal constant Mumbai = 80001;
uint256 internal constant Blast = 81457;

This comment has been minimized.

Copy link
@jiguantong

jiguantong Mar 4, 2024

Member

format

uint256 internal constant ArbitrumGoerli = 421613;
uint256 internal constant ArbitrumSepolia = 421614;
uint256 internal constant Sepolia = 11155111;
Expand Down Expand Up @@ -51,6 +52,8 @@ library Chains {
return "arbitrum";
} else if (chainid == Mumbai) {
return "mumbai";
} else if (chainid == Blast) {
return "blast";
} else if (chainid == ArbitrumGoerli) {
return "arbitrum-goerli";
} else if (chainid == ArbitrumSepolia) {
Expand All @@ -68,7 +71,7 @@ library Chains {
if (
chainid == Optimism || chainid == OptimismGoerli || chainid == OptimismSepolia || chainid == Arbitrum
|| chainid == ArbitrumGoerli || chainid == ArbitrumSepolia || chainid == Mantle || chainid == Zksync
|| chainid == Polygon
|| chainid == Polygon || chainid == Blast
) {
return true;
} else {
Expand Down

0 comments on commit 398cd35

Please sign in to comment.