Skip to content

Commit

Permalink
support blast (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 authored Mar 4, 2024
1 parent 3f56964 commit 97e7280
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 4 deletions.
2 changes: 2 additions & 0 deletions SUPPORTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
## Supported Chains
### Mainnet
- Arbitrum
- Blast
- Crab
- Darwinia
- Ethereum
Expand All @@ -19,6 +20,7 @@
## Supported Lines
### Mainnet
- Arbitrum <> Darwinia
- Arbiturm <> Blast
- Crab <> Darwinia
- Ethereum <> Darwinia
- Ethereum <> Arbitrum
Expand Down
1 change: 1 addition & 0 deletions bin/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ uri="ipfs://$cid"

# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[46]" $uri --chain-id 137 --broadcast --with-gas-price 150000000000
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[137]" $uri --chain-id 46 --broadcast
forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[42161]" $uri --chain-id 81457 --broadcast --legacy --with-gas-price 1060000
3 changes: 2 additions & 1 deletion bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ set -eo pipefail
# forge script script/deploy/DeployORMPPort.s.sol:DeployORMPPort --chain-id 1 --broadcast --verify --slow
# forge script script/deploy/DeployORMPPort.s.sol:DeployORMPPort --chain-id 44 --broadcast --verify --slow
# forge script script/deploy/DeployORMPPort.s.sol:DeployORMPPort --chain-id 46 --broadcast --verify --slow
forge script script/deploy/DeployORMPPort.s.sol:DeployORMPPort --chain-id 137 --broadcast --verify
# forge script script/deploy/DeployORMPPort.s.sol:DeployORMPPort --chain-id 137 --broadcast --verify
# forge script script/deploy/DeployORMPPort.s.sol:DeployORMPPort --chain-id 42161 --broadcast --verify --slow --legacy --skip-simulation
forge script script/deploy/DeployORMPPort.s.sol:DeployORMPPort --chain-id 81457 --broadcast --verify --legacy --with-gas-price 1060000
3 changes: 2 additions & 1 deletion bin/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ verify() {
# verify $ormp_port 42161 $(cast abi-encode "constructor(address,address,string)" $deployer $ormp $name) src/ports/ORMPPort.sol:ORMPPort
# verify $ormp_port 44 $(cast abi-encode "constructor(address,address,string)" $deployer $ormp $name) src/ports/ORMPPort.sol:ORMPPort
# verify $ormp_port 46 $(cast abi-encode "constructor(address,address,string)" $deployer $ormp $name) src/ports/ORMPPort.sol:ORMPPort
verify $ormp_port 137 $(cast abi-encode "constructor(address,address,string)" $deployer $ormp $name) src/ports/ORMPPort.sol:ORMPPort
# verify $ormp_port 137 $(cast abi-encode "constructor(address,address,string)" $deployer $ormp $name) src/ports/ORMPPort.sol:ORMPPort
# verify $ormp_port 1 $(cast abi-encode "constructor(address,address,string)" $deployer $ormp $name) src/ports/ORMPPort.sol:ORMPPort
verify $ormp_port 81457 $(cast abi-encode "constructor(address,address,string)" $deployer $ormp $name) src/ports/ORMPPort.sol:ORMPPort
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ arbitrum = "https://arb1.arbitrum.io/rpc"
sepolia = "https://sepolia.infura.io/v3/${INFURA_KEY}"
ethereum = "https://mainnet.infura.io/v3/${INFURA_KEY}"
polygon = "https://polygon-mainnet.infura.io/v3/${INFURA_KEY}"
blast = "https://rpc.blast.io"

[etherscan]
polygon = { key = "${ETHERSCAN_POLYGON_KEY}" }
Expand Down
2 changes: 1 addition & 1 deletion lib/create3-deploy
3 changes: 2 additions & 1 deletion script/input/42161/ormp_port.c.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1": "0x0000000005d961F950adA391C1511c92bbc64D9F",
"46": "0x0000000005d961F950adA391C1511c92bbc64D9F"
"46": "0x0000000005d961F950adA391C1511c92bbc64D9F",
"81457": "0x0000000005d961F950adA391C1511c92bbc64D9F"
}
7 changes: 7 additions & 0 deletions script/input/81457/deploy_ormp_port.c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"DAO": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec",
"DEPLOYER": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec",
"metadata": {
"name": "ORMP"
}
}
3 changes: 3 additions & 0 deletions script/input/81457/ormp_port.c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"42161": "0x0000000005d961F950adA391C1511c92bbc64D9F"
}
1 change: 1 addition & 0 deletions script/output/81457/ORMPPort.v.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions script/output/81457/deploy_ormp_port.a-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"DAO": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec",
"ORMP_PORT": "0x0000000005d961F950adA391C1511c92bbc64D9F"
}

0 comments on commit 97e7280

Please sign in to comment.