rest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestGranter = "granter"
	RestGrantee = "grantee"
	RestMsgType = "msg_type"
)

nolint

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

RegisterRoutes register routes for querier and tx broadcast

Types

type ExecuteRequest

type ExecuteRequest struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Msgs    []sdk.Msg    `json:"msgs" yaml:"msgs"`
}

ExecuteRequest defines the properties of a execute request's body.

type GrantRequest

type GrantRequest struct {
	BaseReq rest.BaseReq  `json:"base_req" yaml:"base_req"`
	Period  time.Duration `json:"period"`
	Limit   sdk.Coins     `json:"limit,omitempty"`
}

GrantRequest defines the properties of a grant request's body.

type RevokeRequest

type RevokeRequest struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
}

RevokeRequest defines the properties of a revoke request's body.

Jump to

Keyboard shortcuts

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