-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Split POST delegations endpoint #2191
Comments
In favor of such a design. Although I'd use this moment to also rename |
@alexanderbez well thinking it twice... the only one that can be updated is the Which name would you propose to replace |
@alexanderbez actually not sure about |
These are all excellent questions @fedekunze, all of which we will need to look into and discover the answers 😉 re; |
currently you can only have one unbond from a delegator at a time, as well as, only one redelegation at a time - it's unideal. This needs to be fixed and is a prelaunch issue see: #1402 |
Is this still an issue @fedekunze ? |
@jackzampolin still blocked on #1402 |
Unblocking as we can still split the endpoint and then implement #1402 |
Summary
Split the current
POST /stake/delegators/{delegatorAddr}/delegations
into 3 differentPOST
endpoints to match the 3 types of delegations:Delegation
,UnbondingDelegation
andRedelegation
Problem Definition
In
stake/rest/tx.go
there's a comment that says// TODO: Split this up into several smaller functions, and remove the above nolint
Currently there's a single POST endpoint to submit delegations that handles
Delegations
,Undelegations
andRedelegations
:Proposal
The proposal is to split the current implementation of
POST /stake/delegators/{delegatorAddr}/delegations
into the following:POST /stake/delegators/{delegatorAddr}/delegations
POST /stake/delegators/{delegatorAddr}/unbonding_delegations
POST /stake/delegators/{delegatorAddr}/redelegations
For Admin Use
The text was updated successfully, but these errors were encountered: