Skip to content

Commit

Permalink
Merge pull request #336 from anoma/merge/gov-pos
Browse files Browse the repository at this point in the history
merge improve/governance and improve/pos
  • Loading branch information
iskay committed Mar 26, 2024
2 parents 130c453 + d72d6b0 commit 059c452
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
50 changes: 50 additions & 0 deletions packages/docs/pages/operators/validators/proof-of-stake.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,54 @@ After updating the consensus key, validators can find out their new validator ad
namadaw find --alias <new-consensus-key>
```

## Commission

To query a validator's commission rate, the following command can be run:

```shell copy
namadac commission-rate --validator <validator-address>
```

To change a validator's commission rate, the following command can be run:

```shell copy
namadac change-commission-rate \
--validator <validator-address> \
--commission-rate <new-commission-rate>
```

## Change Metadata

To query a validator's metadata, the following command can be run:

```shell copy
namadac validator-metadata --validator <validator-address>
```

To change a validator's metadata, the following command can be run:

```shell copy
namadac change-metadata \
--validator <validator-address> \
--email <email> \
--avatar <avatar-url>\
--description <description> \
--website <website-url> \
--discord-handle <discord-handle>
```

## Deactivate

To deactivate a validator, the following command can be run:

```shell copy
namadac deactivate-validator --validator <validator-address>
```

## Reactivate

To reactivate a validator, the following command can be run:

```shell copy
namadac reactivate-validator --validator <validator-address>
```
19 changes: 19 additions & 0 deletions packages/docs/pages/users/public-goods-stewards/electing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,22 @@ namadac resign-steward --steward my-steward-address
```

Read more about the other methods of losing stewardship in the [specs](https://specs.namada.net/modules/goverance/public-goods-funding/becoming-a-steward#losing-stewardship-status).

## Update steward commissions

The `commissions.json` file contains the information about the reward distribution. It is a JSON file with the following structure:

```json
{
"reward_distribution": {
"tnam...": "1"
}
}
```

Update steward commissions can be done at any point.
Through the CLI it can be done with the command:

```shell copy
namadac update-steward-rewards --steward my-steward-address --data-path <path/to/commissions.json>
```
2 changes: 2 additions & 0 deletions packages/docs/pages/users/public-goods-stewards/voting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The CLI command for voting for a steward is:
```shell copy
namada client vote-proposal \
--proposal-id <proposal-id-of-steward-proposal> \
--address your-established-account \
--vote yay \
--signing-keys <your-alias>
```
Expand All @@ -22,6 +23,7 @@ Similarly, the command for voting for PGF proposals is:
```shell copy
namada client vote-proposal \
--proposal-id <proposal-id-of-steward-proposal> \
--address your-established-account \
--vote yay \
--signing-keys <your-alias>
```

0 comments on commit 059c452

Please sign in to comment.