-
Notifications
You must be signed in to change notification settings - Fork 11
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 user staking features #1427
Conversation
3f8a26c
to
96b559d
Compare
add staking namespace with bond transaction to allow an account to bond POLYX
allow account to get the designated controller account
add getters to fetch nomination and staking information for an account
allow account to unbond POLYX with `Account.staking.unbond`
allow account to bond additional POLYX
allow a stash account to change its controller and a controller to change its reward destination
allow a controller to free unbonded POLYX for the stash account
add `account.staking.nominate` method to allow a controller to select validators
allow users to subscribe to an account's controller, nominations and eraInfo
remove staking methods from the `Account` namespace and attach them to the SDK staking namespace. `account.staking.bond` -> `sdk.staking.bond`. The signing account was always the acting account and the parent account was not relevant
make sure at least one nominator is set and ensure none are blocked
e1bd819
to
8403415
Compare
|
/fast-forward |
🎉 This PR is included in version 27.3.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 27.3.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 27.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Add SDK functions to allow for bonding and nominating validators
Breaking Changes
JIRA Link
Checklist