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

Add user staking features #1427

Merged
merged 11 commits into from
Jan 22, 2025
Merged

Add user staking features #1427

merged 11 commits into from
Jan 22, 2025

Conversation

polymath-eric
Copy link
Collaborator

Description

Add SDK functions to allow for bonding and nominating validators

Breaking Changes

JIRA Link

Checklist

  • Updated the Readme.md (if required) ?

@polymath-eric polymath-eric requested a review from a team as a code owner January 20, 2025 21:35
@polymath-eric polymath-eric marked this pull request as draft January 20, 2025 22:29
@polymath-eric polymath-eric marked this pull request as ready for review January 21, 2025 21:26
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
@polymath-eric
Copy link
Collaborator Author

/fast-forward

@prashantasdeveloper prashantasdeveloper merged commit 8403415 into alpha Jan 22, 2025
12 checks passed
@prashantasdeveloper prashantasdeveloper deleted the staking branch January 22, 2025 18:11
@prashantasdeveloper
Copy link
Collaborator

🎉 This PR is included in version 27.3.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@prashantasdeveloper
Copy link
Collaborator

🎉 This PR is included in version 27.3.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@prashantasdeveloper
Copy link
Collaborator

🎉 This PR is included in version 27.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants