Skip to content

Commit

Permalink
support polygon (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 authored Feb 28, 2024
1 parent 0aa8496 commit 66736c1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 9 deletions.
9 changes: 5 additions & 4 deletions bin/multisig_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ set -eo pipefail
# forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 421614 --broadcast --verify --skip-simulation
# forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 11155111 --broadcast --verify --skip-simulation

forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 1 --broadcast --verify --legacy --with-gas-price 31000000000
forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 44 --broadcast --verify
forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 46 --broadcast --verify
forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 42161 --legacy --broadcast --verify --skip-simulation
# forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 1 --broadcast --verify --legacy --with-gas-price 31000000000
# forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 44 --broadcast --verify
# forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 46 --broadcast --verify
forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 137 --broadcast --verify --with-gas-price 150000000000
# forge script script/MultiSigDeploy.s.sol:MultiSigDeploy --chain-id 42161 --legacy --broadcast --verify --skip-simulation
9 changes: 5 additions & 4 deletions bin/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ parameters=0x0000000000000000000000000000000000000000000000000000000000000040000
# verify $subapi 43 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
# verify $subapi 421614 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig

verify $subapi 1 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
verify $subapi 44 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
verify $subapi 46 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
verify $subapi 42161 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
# verify $subapi 1 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
# verify $subapi 44 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
# verify $subapi 46 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
verify $subapi 137 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
# verify $subapi 42161 $parameters src/SubAPIMultiSig.sol:SubAPIMultiSig
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ darwinia = "https://rpc.darwinia.network"
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}"

[etherscan]
polygon = { key = "${ETHERSCAN_POLYGON_KEY}" }
arbitrum = { key = "${ETHERSCAN_ARBITRUM_KEY}" }
arbitrum-goerli = { key = "${ETHERSCAN_ARBITRUM_KEY}" }
arbitrum-sepolia = { key = "${ETHERSCAN_ARBITRUM_KEY}" }
Expand Down
2 changes: 1 addition & 1 deletion lib/create3-deploy
11 changes: 11 additions & 0 deletions script/input/137/multisig_deploy.c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"DEPLOYER": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec",
"SIGNERS": [
"0x178E699c9a6bB2Cd624557Fbd85ed219e6faBa77",
"0x9F33a4809aA708d7a399fedBa514e0A0d15EfA85",
"0xA4bE619E8C0E3889f5fA28bb0393A4862Cad35ad",
"0xB9a0CaDD13C5d534b034d878b2fcA9E5a6e1e3A4",
"0xFa5727bE643dba6599fC7F812fE60dA3264A8205"
],
"QUORUM": 3
}
1 change: 1 addition & 0 deletions script/output/137/SubAPIMultiSig.v.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions script/output/137/multisig_deploy.a-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"SUBAPI_MULTISIG": "0x000000000d60704384100A29efb6C9cf8cD72820"
}

0 comments on commit 66736c1

Please sign in to comment.