-
Notifications
You must be signed in to change notification settings - Fork 95
Show proposals/validators #188
Comments
can you describe the interface? maybe like question: any other filters or options to include?
question: what is useful to show?
question: what is the returned shape of a proposal?
http post https://rpc.tatooine.nearprotocol.com/ method=query params:='["validators/", ""]' id=123 jsonrpc=2.0 is {
"id": "123",
"jsonrpc": "2.0",
"result": {
"current_proposals": [],
"current_validators": [
{
"account_id": "far",
"amount": "23753072163917273312",
"public_key": "ed25519:7WwXZVD8TGhj2DGtCPpgQhqcbLN6yB2YgLxW7CGuVWGw"
},
...
],
"next_validators": [
{
"account_id": "far",
"amount": "23785274317909681208",
"public_key": "ed25519:7WwXZVD8TGhj2DGtCPpgQhqcbLN6yB2YgLxW7CGuVWGw"
},
...
]
}
} |
I think it's best to just have |
i disagree on the basis that we're aiming to make it as easy as possible to learn and use our platform. today there are many related top level commands in NEAR Shell with potential for categorization into a command language that would make it much easier to understand at first glance. the same command language could be reused used throughout our interfaces. i'm not sure what this looks like exactly, it's more of an intuition at this point. here's a dart at the dartboard our primitives should be visible to help people learn to "think on our terms" so things like account, transaction and contract should be first class cli language # account management
near account login
near account create <account> <sponsor> <fund>
near account delete <account> <beneficiary>
near account transfer <fromAccount> <toAccount> <amount>
near account status <account>
near account keys <account> [--new]
near account stake <account> <publicKey>
# contract development and execution
near contract build
near contract deploy
near contract view <contract> <method> [args]
near contract call <contract> <method> [args]
near contract execute <contract> <method> [args] #(? do we need to surface view / call)
near contract new #(? generate stubs for new contract)
# transaction management
near transaction send <fromAccount> <toAccount> <amount> #(alias: near account transfer)
near transaction status <transaction>
# system visibility
near show validators [--next]
near show proposals
near show account <account> #(alias: near account status)
near show keys <account> #(alias: near account keys)
near show network #(output of /status, /metrics and /network_info)
# utility functions
near repl
near dash #(a fanciful idea i have) i know that's a lot of work. happy to chip away if it's a welcome effort |
Obviously there is no good answer here, but given your (and @damons near/NEPs#31) proposal of grouping
Especially given you yourself mostly used |
What does the term |
@mikedotexe yes you can think of them as the output of staking transactions. When you stake, you essentially send a proposal for becoming a validator. |
Great, thank you. |
Fixed in #328 |
Add an option to query validators from the node:
E.g. better output of
http post https://rpc.tatooine.nearprotocol.com/ method=query params:='["validators/", ""]' id=123 jsonrpc=2.0
commandFrom @jimmy3dita :
The text was updated successfully, but these errors were encountered: