diff --git a/types/queries.go b/types/queries.go index 53e8daf..4ce335c 100644 --- a/types/queries.go +++ b/types/queries.go @@ -258,12 +258,13 @@ type ChannelResponse struct { } type StakingQuery struct { - AllValidators *AllValidatorsQuery `json:"all_validators,omitempty"` - Validator *ValidatorQuery `json:"validator,omitempty"` - AllDelegations *AllDelegationsQuery `json:"all_delegations,omitempty"` - Delegation *DelegationQuery `json:"delegation,omitempty"` - BondedDenom *struct{} `json:"bonded_denom,omitempty"` - UnbondingDelegation *UnbondingDelegationQuery `json:"unbonding_delegation,omitempty"` + AllValidators *AllValidatorsQuery `json:"all_validators,omitempty"` + Validator *ValidatorQuery `json:"validator,omitempty"` + AllDelegations *AllDelegationsQuery `json:"all_delegations,omitempty"` + Delegation *DelegationQuery `json:"delegation,omitempty"` + BondedDenom *struct{} `json:"bonded_denom,omitempty"` + UnbondingDelegation *UnbondingDelegationQuery `json:"unbonding_delegation,omitempty"` + UnbondingDelegations *UnbondingDelegationsQuery `json:"unbonding_delegations,omitempty"` } type AllValidatorsQuery struct{} @@ -443,6 +444,15 @@ type UnbondingDelegationResponse struct { Entries []UnbondingDelegationEntry `json:"entries"` } +type UnbondingDelegationsQuery struct { + Delegator string `json:"delegator"` + Validator string `json:"validator"` +} + +type UnbondingDelegationsResponse struct { + Entries []UnbondingDelegationEntry `json:"entries"` +} + type UnbondingDelegationEntry struct { CreationHeight int64 `json:"creation_height"` CompletionTime string `json:"completion_time"` // RFC3339 encoded