-
Notifications
You must be signed in to change notification settings - Fork 98
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
base: dev
Are you sure you want to change the base?
Conversation
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
let tx_details = block_on(tendermint_remove_delegation(&mm, coin_ticker, VALIDATOR_ADDRESS, "0.5")); | ||
|
||
assert_eq!(tx_details.from, vec![MY_ADDRESS.to_owned()]); | ||
assert!(tx_details.to.is_empty()); | ||
assert_eq!(tx_details.transaction_type, TransactionType::RemoveDelegation); |
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.
TODO: add coverage for "undelegating more than the delegated amount".
#[test] | ||
fn test_tendermint_remove_delegation() { |
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.
Self note: may need to lock these tests to avoid account sequence number race conditions
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.