-
Notifications
You must be signed in to change notification settings - Fork 383
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
Add near-validator extension #2493
base: master
Are you sure you want to change the base?
Add near-validator extension #2493
Conversation
…tension-and-documentation-for-near-rust-cli
…tension-and-documentation-for-near-rust-cli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's fix these few minor things and we're ready to merge
<TabItem value="Short"> | ||
|
||
```sh | ||
near call <my_validator> deposit '{}' --accountId <user-account.near> --deposit 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no need to take deposit and stake actions apart, as it can be done within a single function call
near staking delegation <user-account.near> deposit-and-stake
<TabItem value="Full"> | ||
|
||
```sh | ||
near staking delegation <user-account.near> unstake '1 NEAR' <my_validator> network-config mainnet sign-with-keychain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's worth mentioning, that as an alternative a user can unstake all NEAR tokens at once by calling unstake_all
<TabItem value="Full"> | ||
|
||
```sh | ||
near staking delegation <user-account.near> withdraw '1 NEAR' <my_validator> network-config mainnet sign-with-keychain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same as above, a user can withdraw everything at once
near staking delegation <user-account.near> withdraw-all
@@ -45,6 +45,37 @@ The NEAR [Command Line Interface](https://github.com/near/near-cli-rs) (CLI) is | |||
</TabItem> | |||
</Tabs> | |||
|
|||
### Validator Extension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move the installation guide down to the "Validators" section, as it's the only place on this page where it's actually needed
No description provided.