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 DelegateRequest ¶
type DelegateRequest struct { BaseReq rest.BaseReq `json:"base_req"` DelegatorAddress sdk.AccAddress `json:"delegator_address"` // in bech32 ValidatorAddress sdk.ValAddress `json:"validator_address"` // in bech32 Amount sdk.Coin `json:"amount"` }
DelegateRequest defines the properties of a delegation request's body.
type RedelegateRequest ¶
type RedelegateRequest struct { BaseReq rest.BaseReq `json:"base_req"` DelegatorAddress sdk.AccAddress `json:"delegator_address"` // in bech32 ValidatorSrcAddress sdk.ValAddress `json:"validator_src_address"` // in bech32 ValidatorDstAddress sdk.ValAddress `json:"validator_dst_address"` // in bech32 Amount sdk.Coin `json:"amount"` }
RedelegateRequest defines the properties of a redelegate request's body.
type UndelegateRequest ¶
type UndelegateRequest struct { BaseReq rest.BaseReq `json:"base_req"` DelegatorAddress sdk.AccAddress `json:"delegator_address"` // in bech32 ValidatorAddress sdk.ValAddress `json:"validator_address"` // in bech32 Amount sdk.Coin `json:"amount"` }
UndelegateRequest defines the properties of a undelegate request's body.
Click to show internal directories.
Click to hide internal directories.