rest

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 11 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)

RegisterRoutes registers staking-related REST handlers to a router

Types

type DelegateRequest

type DelegateRequest struct {
	BaseReq      rest.BaseReq `json:"base_req" yaml:"base_req"`
	DelegatorAcc string       `json:"delegator_acc" yaml:"delegator_acc"`
	ValidatorAcc string       `json:"validator_acc" yaml:"validator_acc"`
	Amount       string       `json:"amount" yaml:"amount"`
}

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

type RedelegateRequest

type RedelegateRequest struct {
	BaseReq         rest.BaseReq `json:"base_req" yaml:"base_req"`
	DelegatorAcc    string       `json:"delegator_acc" yaml:"delegator_acc"`
	ValidatorSrcAcc string       `json:"validator_src_acc" yaml:"validator_src_acc"`
	ValidatorDstAcc string       `json:"validator_dst_acc" yaml:"validator_dst_acc"`
	Amount          string       `json:"amount" yaml:"amount"`
}

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

type UndelegateRequest

type UndelegateRequest struct {
	BaseReq      rest.BaseReq `json:"base_req" yaml:"base_req"`
	DelegatorAcc string       `json:"delegator_acc" yaml:"delegator_acc"`
	ValidatorAcc string       `json:"validator_acc" yaml:"validator_acc"`
	Amount       string       `json:"amount" yaml:"amount"`
}

UndelegateRequest 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