Skip to content

Commit

Permalink
set dao (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 authored Nov 13, 2023
1 parent 0fbcdf0 commit e4b359f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Oracle and Relayer based Message Protocol.
| ORMP | 0x00000000001523057a05d6293C1e5171eE33eE0A |
| Oracle | 0x0000000000ba03146Cc235509E802873D418a6bc |
| Relayer | 0x0000000000808fE9bDCc1d180EfbF5C53552a6b1 |
| MsgDAO | 0x000000000879926D12aF396788C0785B7e581e53 |

## Usage
To install with [**Foundry**](https://github.com/gakonst/foundry):
Expand Down
20 changes: 20 additions & 0 deletions bin/dao.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

set -eo pipefail

c3=$PWD/script/input/c3.json

deployer=$(jq -r ".DEPLOYER" $c3)
dao=$(jq -r ".MSGDAO" $c3)
ormp=$(jq -r ".ORMP_ADDR" $c3)
oracle=$(jq -r ".ORACLE_ADDR" $c3)
relayer=$(jq -r ".RELAYER_ADDR" $c3)

seth send -F $deployer $ormp "changeSetter(address)" $dao --chain darwinia
seth send -F $deployer $ormp "changeSetter(address)" $dao --chain arbitrum

seth send -F $deployer $oracle "changeOwner(address)" $dao --chain darwinia
seth send -F $deployer $oracle "changeOwner(address)" $dao --chain arbitrum

seth send -F $deployer $relayer "changeOwner(address)" $dao --chain darwinia
seth send -F $deployer $relayer "changeOwner(address)" $dao --chain arbitrum
1 change: 1 addition & 0 deletions script/input/c3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"DEPLOYER": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec",
"MSGDAO": "0x000000000879926D12aF396788C0785B7e581e53",
"ORMP_ADDR": "0x00000000001523057a05d6293C1e5171eE33eE0A",
"ORMP_SALT": "0x4d629bbdb40d29206f12a51aa81faf14553b218f96845742a89e02e55ecfcef6",
"ORACLE_ADDR": "0x0000000000ba03146Cc235509E802873D418a6bc",
Expand Down

0 comments on commit e4b359f

Please sign in to comment.