rest

package
v0.0.0-...-b5e13e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec, kb keys.Keybase)

RegisterRoutes registers staking-related REST handlers to a router

Types

type MsgBeginRedelegateInput

type MsgBeginRedelegateInput 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
	SharesAmount        sdk.Dec        `json:"shares"`
}

MsgBeginRedelegateInput defines the properties of a redelegate request's body.

type MsgDelegationsInput

type MsgDelegationsInput struct {
	BaseReq          rest.BaseReq   `json:"base_req"`
	DelegatorAddress sdk.AccAddress `json:"delegator_address"` // in bech32
	ValidatorAddress sdk.ValAddress `json:"validator_address"` // in bech32
	Delegation       sdk.Coin       `json:"delegation"`
}

MsgBeginRedelegateInput defines the properties of a delegation request's body.

type MsgUndelegateInput

type MsgUndelegateInput struct {
	BaseReq          rest.BaseReq   `json:"base_req"`
	DelegatorAddress sdk.AccAddress `json:"delegator_address"` // in bech32
	ValidatorAddress sdk.ValAddress `json:"validator_address"` // in bech32
	SharesAmount     sdk.Dec        `json:"shares"`
}

MsgUndelegateInput defines the properties of a undelegate request's body.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL