rest

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"` // in bech32
	ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"` // in bech32
	Amount           sdk.Coin       `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"`
	DelegatorAddress    sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"`         // in bech32
	ValidatorSrcAddress sdk.ValAddress `json:"validator_src_address" yaml:"validator_src_address"` // in bech32
	ValidatorDstAddress sdk.ValAddress `json:"validator_dst_address" yaml:"validator_dst_address"` // in bech32
	Amount              sdk.Coin       `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"`
	DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"` // in bech32
	ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"` // in bech32
	Amount           sdk.Coin       `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