Skip to content

Commit

Permalink
sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jan 31, 2024
1 parent a415e5a commit 0392710
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
15 changes: 7 additions & 8 deletions bin/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ export PORT_CONFIG_FILE="ormp_port.c"
export PORT_DEPLOY_FILE="deploy_ormp_port.a"
export PORT_KEY=".ORMP_PORT"

# cid="QmPqyGBHxRCxZJEKf8WTeDZB2JDMrtfrPqxGcxN2scj64E"
cid="QmZkugpAG9Pfp52yjDAxyA7cVGcDAryMJUXPfFDUbp8iGo"
cid="QmRwznMkfrTWqoU77MH4Bd7bGFE2f5FzKbZqbHgRdtKGw8"
cid=$(ipfs cid format -v 1 -b base32 $cid)
uri="ipfs://$cid"
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[42161]" $uri --chain-id 46 --broadcast --slow
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[46]" $uri --chain-id 42161 --broadcast --slow --legacy
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[46]" $uri --chain-id 1 --broadcast --slow --legacy

# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[421614]" $uri --chain-id 44 --broadcast
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[11155111]" $uri --chain-id 44 --broadcast
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[11155111]" $uri --chain-id 421614 --broadcast --skip-simulation --legacy
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[44]" $uri --chain-id 421614 --broadcast --skip-simulation --legacy
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[44]" $uri --chain-id 11155111 --broadcast
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[421614]" $uri --chain-id 11155111 --broadcast
forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[421614]" $uri --chain-id 44 --broadcast
forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[11155111]" $uri --chain-id 44 --broadcast
forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[11155111]" $uri --chain-id 421614 --broadcast --skip-simulation --legacy
forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[44]" $uri --chain-id 421614 --broadcast --skip-simulation --legacy
forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[44]" $uri --chain-id 11155111 --broadcast
forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[421614]" $uri --chain-id 11155111 --broadcast

# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[11155111]" $uri --chain-id 44 --broadcast
# forge script script/config/PortConfig.s.sol:PortConfig --sig "run(uint256[],string)" "[44]" $uri --chain-id 11155111 --broadcast
4 changes: 2 additions & 2 deletions bin/dao.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ c3=$PWD/script/input/c3.json
deployer=$(jq -r ".DEPLOYER" $c3)
dao=$(jq -r ".MSGDAO" $c3)
registry=$(jq -r ".PORTREGISTRY_ADDR" $c3)
ormp_port=$(jq -r ".ORMPPORTEXT_ADDR" $c3)
ormp_port=$(jq -r ".ORMPPORT_ADDR" $c3)

# seth send -F $deployer $registry "transferOwnership(address)" $dao --chain darwinia
# seth send -F $deployer $registry "transferOwnership(address)" $dao --chain arbitrum
seth send -F $deployer $registry "transferOwnership(address)" $dao --chain ethereum
# seth send -F $deployer $registry "transferOwnership(address)" $dao --chain ethereum

# seth send -F $deployer $ormp_port "transferOwnership(address)" $dao --chain darwinia
# seth send -F $deployer $ormp_port "transferOwnership(address)" $dao --chain arbitrum
2 changes: 1 addition & 1 deletion script/config/PortConfig.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ contract PortConfig is Common {
function run(uint256[] memory chainIds, string memory uri) public {
require(dao == msg.sender, "!dao");
setPort(chainIds);
// setURI(uri);
setURI(uri);
}

function setPort(uint256[] memory chainIds) public broadcast {
Expand Down

0 comments on commit 0392710

Please sign in to comment.