Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match <accountId> future references with 'prepare validator key step' #79

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/validator/compile-and-run-a-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ $ sed -i -e 's/private_key/secret_key/g' ~/.near/validator_key.json
To create a staking pool on the network, we need to call the create_staking_pool contract with required parameters and deploy it to the indicated accountId:

```bash
$ near call pool.f863973.m0 create_staking_pool '{"staking_pool_id": "<pool_name>", "owner_id": "<pool_owner_accountId>", "stake_public_key": "<public_key>", "reward_fee_fraction": {"numerator": <fee>, "denominator": 100}}' --accountId="<accountId>" --amount=30 --gas=300000000000000
$ near call pool.f863973.m0 create_staking_pool '{"staking_pool_id": "<pool_name>", "owner_id": "<pool_owner_accountId>.testnet", "stake_public_key": "<public_key>", "reward_fee_fraction": {"numerator": <fee>, "denominator": 100}}' --accountId="<accountId>.testnet" --amount=30 --gas=300000000000000
```

From the command above, you need to replace:
Expand Down Expand Up @@ -345,15 +345,15 @@ To note, a ping also updates the staking balances for your delegators. A ping sh

Deposit token to a pool (can be done using any account, not necessary the one created/used in steps above):
```bash
$ near call <staking_pool_id> deposit_and_stake --amount <amount> --accountId <accountId> --gas=300000000000000
$ near call <staking_pool_id> deposit_and_stake --amount <amount> --accountId <accountId>.testnet --gas=300000000000000
```

#### Ping
A ping issues a new proposal and updates the staking balances for your delegators. A ping should be issued each epoch to keep reported rewards current.

Command:
```bash
$ near call <staking_pool_id> ping '{}' --accountId <accountId> --gas=300000000000000
$ near call <staking_pool_id> ping '{}' --accountId <accountId>.testnet --gas=300000000000000
```

Once above is completed, verify your validator proposal status:
Expand Down Expand Up @@ -543,7 +543,7 @@ $ sed -i -e 's/private_key/secret_key/g' ~/.near/validator_key.json
To create a staking pool on the network, we need to call the create_staking_pool contract with required parameters and deploy it to the indicated accountId:

```bash
$ near call poolv1.near create_staking_pool '{"staking_pool_id": "<pool_name>", "owner_id": "<pool_owner_accountId>", "stake_public_key": "<public_key>", "reward_fee_fraction": {"numerator": <fee>, "denominator": 100}}' --accountId="<accountId>" --amount=30 --gas=300000000000000
$ near call poolv1.near create_staking_pool '{"staking_pool_id": "<pool_name>", "owner_id": "<pool_owner_accountId>.mainnet", "stake_public_key": "<public_key>", "reward_fee_fraction": {"numerator": <fee>, "denominator": 100}}' --accountId="<accountId>.mainnet" --amount=30 --gas=300000000000000
```

From the command above, you need to replace:
Expand Down Expand Up @@ -584,15 +584,15 @@ To note, a ping also updates the staking balances for your delegators. A ping sh

Deposit token to a pool (can be done using any account, not necessary the one created/used in steps above):
```
$ near call <staking_pool_id> deposit_and_stake --amount <amount> --accountId <accountId> --gas=300000000000000
$ near call <staking_pool_id> deposit_and_stake --amount <amount> --accountId <accountId>.mainnet --gas=300000000000000
```

#### Ping
A ping issues a new proposal and updates the staking balances for your delegators. A ping should be issued each epoch to keep reported rewards current.

Command:
```bash
$ near call <staking_pool_id> ping '{}' --accountId <accountId> --gas=300000000000000
$ near call <staking_pool_id> ping '{}' --accountId <accountId>.mainnet --gas=300000000000000
```

Once above is completed, verify your validator proposal status:
Expand Down