rest

package
v3.0.1-0...-844edf2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 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"
)

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

type UnlockTokensByIDReq

type UnlockTokensByIDReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Owner   sdk.AccAddress `json:"owner,omitempty" yaml:"owner"`
}

UnlockTokensByIDReq defines the properties of a MsgUnlockTokens request.

type UnlockTokensReq

type UnlockTokensReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Owner   sdk.AccAddress `json:"owner,omitempty" yaml:"owner"`
}

UnlockTokensReq defines the properties of a MsgUnlockTokens request.

Jump to

Keyboard shortcuts

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