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

improve delegation return type #106

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

jeremy-babylonlabs
Copy link
Contributor

@jeremy-babylonlabs jeremy-babylonlabs commented Nov 13, 2024

#104

will update the return type here and simple staking after merging

UnbondingTx string `json:"unbonding_tx"`
FinalityProviderBtcPksHex []string `json:"finality_provider_btc_pks_hex"`
DelegationStaking DelegationStaking `json:"delegation_staking"`
DelegationUnbonding DelegationUnbonding `json:"delegation_unbonding"`
State indexertypes.DelegationState `json:"state"`
StartHeight uint32 `json:"start_height"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the start time is the staking start time right? should it be part of the DelegationStaking?
could u also remind me what is endTime?
also i think this two are optional, so u might wanna put json omit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only have end_height, do you mean unbonding_time?

@jrwbabylonlab
Copy link
Collaborator

the FE is now using the v2 endpoint. please make sure raise PR against simple-staking to avoid the broken UI

@jeremy-babylonlabs jeremy-babylonlabs merged commit a839cdd into main Nov 14, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants