rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

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

REST Variable names nolint

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