-
Notifications
You must be signed in to change notification settings - Fork 170
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
epoching: CLI for delegating/undelegating/redelegating requests #138
Conversation
This reverts commit ca17450.
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.
Nice! Since you wrote those useful instructions, maybe you can add them in an .md
file under x/epoching/docs
or something. Also, please include the instruction for redelegation.
x/epoching/client/cli/tx.go
Outdated
fmt.Sprintf(`Delegate an amount of liquid coins to a validator from your wallet. | ||
|
||
Example: | ||
$ %s tx epoching delegate %s1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 1000stake --from mykey |
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.
Should we replace the hardcoded stake
with the sdk.DefaultCoinDenom
variable?
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.
Will make easier to identify once we upgrade the denoms.
x/epoching/client/cli/tx.go
Outdated
fmt.Sprintf(`Redelegate an amount of illiquid staking tokens from one validator to another. | ||
|
||
Example: | ||
$ %s tx epoching redelegate %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj %s1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 100stake --from mykey |
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.
Same here.
x/epoching/client/cli/tx.go
Outdated
fmt.Sprintf(`Unbond an amount of bonded shares from a validator. | ||
|
||
Example: | ||
$ %s tx epoching unbond %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj 100stake --from mykey |
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.
Same.
Fixes BM-172
This PR introduces CLI for submitting delegation/undelegation/redelegation requests from CLI. The code is almost identical to their counterparts in https://github.com/cosmos/cosmos-sdk/blob/v0.45.5/x/staking/client/cli/tx.go.
Example CLIs for delegating stakes
so that we get
Examples CLIs for undelegating stakes
so that we get
Cosmos calls this command
unbond
rather thanundelegate
and I follow this convention.