Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes registers staking-related REST handlers to a router
Types ¶
type DelegationSummary ¶ added in v0.24.0
type DelegationSummary struct { Delegations []DelegationWithoutRat `json:"delegations"` UnbondingDelegations []stake.UnbondingDelegation `json:"unbonding_delegations"` Redelegations []stake.Redelegation `json:"redelegations"` }
aggregation of all delegations, unbondings and redelegations
type DelegationWithoutRat ¶ added in v0.24.0
type DelegationWithoutRat struct { DelegatorAddr sdk.AccAddress `json:"delegator_addr"` ValidatorAddr sdk.AccAddress `json:"validator_addr"` Height int64 `json:"height"` }
defines a delegation without type Rat for shares
type EditDelegationsBody ¶ added in v0.20.0
type EditDelegationsBody struct { LocalAccountName string `json:"name"` Password string `json:"password"` ChainID string `json:"chain_id"` AccountNumber int64 `json:"account_number"` Sequence int64 `json:"sequence"` Gas int64 `json:"gas"` Delegations []msgDelegationsInput `json:"delegations"` BeginUnbondings []msgBeginUnbondingInput `json:"begin_unbondings"` CompleteUnbondings []msgCompleteUnbondingInput `json:"complete_unbondings"` BeginRedelegates []msgBeginRedelegateInput `json:"begin_redelegates"` CompleteRedelegates []msgCompleteRedelegateInput `json:"complete_redelegates"` }
the request body for edit delegations
Click to show internal directories.
Click to hide internal directories.