-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat(tendermint): unstaking/undelegation #2330
Conversation
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
525c015
to
7f5f68a
Compare
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.
Great work! very minor changes.
Signed-off-by: onur-ozkan <work@onurozkan.dev>
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.
lgtm 🚀
@@ -38,6 +38,7 @@ const IBC_SEND_EVENT: &str = "ibc_transfer"; | |||
const IBC_RECEIVE_EVENT: &str = "fungible_token_packet"; | |||
const IBC_NFT_RECEIVE_EVENT: &str = "non_fungible_token_packet"; | |||
const DELEGATE_EVENT: &str = "delegate"; | |||
const UNDELEGATE_EVENT: &str = "unbond"; |
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.
Isn't this a typo by a chance (not 'unbound')?
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.
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.
LGTM
@onur-ozkan please open docs issue for this change. |
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.
Thanks for the PR. Only one non-blocker comment for the future.
if req.withdraw_from.is_some() { | ||
return MmError::err(DelegationError::InvalidPayload { | ||
reason: "Can't use `withdraw_from` field on 'remove_delegation' RPC for Cosmos.".to_owned(), | ||
}); | ||
} |
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.
Non blocker but for docs and maybe future implementations. We should support HD wallet for all delegate/undelegate/etc.. operations. For now such mention in docs that this is done for the enabled address only.
Adds tendermint protocol support on remove_delegation RPC, and extends tendermint transaction history implementation to support undelegate transactions.
I will once we consider whole staking functionality is implemented. I didn't do this yet as things can change a little bit while implementing remaining parts. |
Adds tendermint protocol support on
remove_delegation
RPC, and extends tendermint transaction history implementation to support undelegate transactions.Next is to add staking listing RPCs for delegations, undelegations (with claiming period informations), rewards, etc.