-
Notifications
You must be signed in to change notification settings - Fork 6
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: granular delegation states #135
Conversation
StakingOutputIdx uint32 `bson:"staking_output_idx"` | ||
UnbondingTime uint32 `bson:"unbonding_time"` | ||
UnbondingTx string `bson:"unbonding_tx"` | ||
State indexertypes.DelegationState `bson:"state"` |
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.
@gusin13 I thought you were planning to store a list of the states this delegation has gone through? Or are you planning to address that in a separate PR later?
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.
yep that will be separate task
babylonlabs-io/babylon-staking-indexer#70
btw although after above ticket is done full list will be available in indexer db, but api won't access or return to fe? or do you think we should return this info to fe?
// Slashed states | ||
StateTimelockSlashed DelegationState = "TIMELOCK_SLASHED" | ||
StateEarlyUnbondingSlashed DelegationState = "EARLY_UNBONDING_SLASHED" | ||
) |
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.
fyi @totraev the states that API will return
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.
Amazing!
This PR makes some changes in v2 delegations endpoint