rest

package
v16.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LockID           = "lock-id"
	RestOwnerAddress = "owner"
	RestDenom        = "denom"
	RestTimestamp    = "timestamp"
	RestDuration     = "duration"
)

Variables

This section is empty.

Functions

func RegisterRoutes

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

RegisterRoutes register query and tx rest routes.

Types

type LockTokensReq

type LockTokensReq struct {
	BaseReq  rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Owner    sdk.AccAddress `json:"owner,omitempty" yaml:"owner"`
	Duration string         `json:"duration,omitempty" yaml:"duration"`
	Coins    sdk.Coins      `json:"coins" yaml:"coins"`
}

LockTokensReq defines the properties of a MsgLockTokens request.

Jump to

Keyboard shortcuts

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