Skip to content

Commit

Permalink
Merge pull request anoma#293 from anoma/bengt/validator-keys
Browse files Browse the repository at this point in the history
pos address stuff
  • Loading branch information
bengtlofgren authored Feb 20, 2024
2 parents 185696e + 04b82c6 commit e89fce8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
11 changes: 11 additions & 0 deletions packages/docs/pages/operators/validators/jailing.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Callout } from 'nextra-theme-docs'

# Jailed validators

Validators can be *jailed* for several reasons, such as double signing a block, signing an invalid block, or excessive downtime. Each of these reasons will have different ramifications for the validator.
Expand All @@ -20,6 +22,15 @@ Once jailed, validators remain jailed indefinitely. They can only be unjailed by
namadac unjail-validator --validator <validator_address>
```

<Callout type="info">
Because the validator alias sometimes clashes with the alias for the implicit account and or established account in the wallet, it is recommended to use the validator address instead of the alias.
In order to find the validator address, you can use the following command:
```bash copy
namadaw list --addr | grep <validator-alias>
```
then make sure it is the corresponding `tnam` address.
</Callout>

If the transaction is successful, then the validator will be reinstated into one of the validator sets at the pipeline length relative to the current epoch (typically 2 epochs in the future).

There may be certain restrictions on unjailing your validator depending on the original reason for jailing. These will be described below.
Expand Down
11 changes: 11 additions & 0 deletions packages/docs/pages/users/delegators.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Callout } from 'nextra-theme-docs'

# Bonding and proof-of-stake

## Bonded tokens
Expand All @@ -24,6 +26,15 @@ Once you've found the address of your favourite validator, you can bond to them
namadac bond --source <delegator-address> --validator <validator-address> --amount <amount>
```

<Callout type="info">
Because the validator alias sometimes clashes with the alias for the implicit account and or established account in the wallet, it is recommended to use the validator address instead of the alias.
In order to find the validator address, you can use the following command:
```bash copy
namadaw list --addr | grep <validator-alias>
```
then make sure it is the corresponding `tnam` address.
</Callout>

The `<delegator-address>` is your account address from which you would like to stake NAM tokens. Validators who would like to self-bond do not need to provide the `--source` argument.

If you have the alias for an address saved in your wallet, you can also pass it as an argument.
Expand Down
9 changes: 5 additions & 4 deletions packages/docs/pages/users/governance/on-chain-governance.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { info } from 'console'
import { SocketAddress } from 'net'
import { addHookAliases } from 'next/dist/server/require-hook'
import { Callout } from 'nextra-theme-docs'
import { f, t } from 'nextra/dist/types-fa5ec8b0'

# On-chain proposals

Expand Down Expand Up @@ -280,3 +276,8 @@ namadac init-proposal --data-path proposal.json --gas-limit 500000 --gas-price 0
<Callout type="info">
Hint: use the `--dry-run` feature to figure out how much gas will be needed and use `namadac query-protocol-paramters` to see the current minimum gas price.
</Callout>

## A video tutorial
Skip all the boring text and watch a video tutorial on how to submit a proposal:

<iframe src="https://player.vimeo.com/video/914426953?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" width="640" height="416" frameBorder="0" allow="autoplay; fullscreen; picture-in-picture" allowFullScreen></iframe>
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ The public-keys provided to the argument `--public-keys` will become the new sig

Skip all the boring reading and watch a video tutorial instead:

<iframe src="https://player.vimeo.com/video/873749851?h=ee68c142e2&title=0&byline=0&portrait=0" width="640" height="416" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>
<iframe src="https://player.vimeo.com/video/873749851?h=ee68c142e2&title=0&byline=0&portrait=0" width="640" height="416" frameBorder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>

0 comments on commit e89fce8

Please sign in to comment.