Skip to content

Commit

Permalink
Updated the README for Governance Interaction Script
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Mar 12, 2021
1 parent abad084 commit 85edfd5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/governance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pip3 install -r requirements.txt
brownie accounts new rskdeployer
```

2. Add network Rsk-testnet
2. Add network rsk-testnet

```
brownie networks add rsk rsk-testnet host=https://testnet.sovryn.app/rpc chainid=31
Expand Down Expand Up @@ -73,9 +73,21 @@ brownie run scripts/governance/create_proposal.py --network rsk-testnet
brownie run scripts/governance/last_proposal_created.py --network rsk-testnet
```

## Values.json

- account : This is the account address used for checking the current voting power of that account, last proposal created by an account and also the account used for staking.
- delegatee : The address of the delegatee (who will have the right to vote for the staked token).
- SOV_Amount_To_Stake : This is the SOV amount to be staked. So, if you want to stake 1 SOV, then you only need to write `1`, not `1000000000000000000` (i.e. 1 * 10^18). The internal function will multiple the value passed here with `10^18`.
- Time_To_Stake : This is the time in seconds to stake the tokens. Even though you pass a particular time, based on the closest two week block will be the stake time.
- Proposal_Target : The address where the proposal will be executed.
- Proposal_Signature : The function signature which will be called when the proposal is executed.
- Proposal_Data : The data parameters used in the function call when the proposal is executed.
- Proposal_Description : The description of the proposal with its ID, Name, Github Link and SHA256 of the Github Description Content.

## Things To Remember:

- Don't forget to edit the values at [values.json](./values.json)
- The proposal will be created by the address which you created using the `brownie` command in Step 1 at **Interacting with RSK Testnet**. The staking will also be done by this account.
- Only one proposal can be created at a time by a single staked address.
- The voting power has to be higher than proposal threshold to create a proposal.
- Only unique proposals are allowed at a particular time. Uniqueness is dependent on the target, signature and data. (All of which you can edit in [values.json](./values.json))
Expand Down

0 comments on commit 85edfd5

Please sign in to comment.