rest

package
v0.45.17 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers added in v0.45.10

func RegisterHandlers(clientCtx client.Context, rtr *mux.Router)

Types

type DelegateRequest added in v0.45.10

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 added in v0.45.10

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 added in v0.45.10

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