Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProposeValidatorProposalRESTHandler ¶
func ProposeValidatorProposalRESTHandler(context.CLIContext) govRest.ProposalRESTHandler
ProposeValidatorProposalRESTHandler defines propose validator proposal handler
func RegisterOriginRPCRoutersForGRPC ¶
func RegisterOriginRPCRoutersForGRPC(cliCtx context.CLIContext, r *mux.Router)
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers staking-related REST handlers to a router
Types ¶
type DelegateRequest ¶
type DelegateRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"` // in bech32 ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"` // in bech32 Amount sdk.SysCoin `json:"amount" yaml:"amount"` }
DelegateRequest defines the properties of a delegation request's body.
type WithdrawRequest ¶
type WithdrawRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"` // in bech32 ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"` // in bech32 Amount sdk.SysCoin `json:"amount" yaml:"amount"` }
WithdrawRequest defines the properties of a withdraw request's body.
Click to show internal directories.
Click to hide internal directories.