rest

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRequestHandlerFn

func CreateRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func IssueRequestHandlerFn

func IssueRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func LockRequestHandlerFn

func LockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func RegisterRoutes

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

RegisterRoutes registers the auth module REST routes.

func TransferRequestHandlerFn

func TransferRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func UnlockRequestHandlerFn

func UnlockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

Types

type CreateReq

type CreateReq struct {
	BaseReq       rest.BaseReq `json:"base_req" yaml:"base_req"`
	Creator       string       `json:"creator" yaml:"creator"`
	Symbol        string       `json:"symbol" yaml:"symbol"`
	MaxSupply     string       `json:"max_supply" yaml:"max_supply"`
	CanIssue      string       `json:"can_issue" yaml:"can_issue"`
	CanLock       string       `json:"can_lock" yaml:"can_lock"`
	IssueToHeight string       `json:"issue_to_height" yaml:"issue_to_height"`
	InitSupply    string       `json:"init_supply" yaml:"init_supply"`
	Desc          string       `json:"desc" yaml:"desc"`
}

type IssueReq

type IssueReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Creator string       `json:"creator" yaml:"creator"`
	Symbol  string       `json:"symbol" yaml:"symbol"`
	Amount  string       `json:"amount" yaml:"amount"`
}

type LockReq

type LockReq struct {
	BaseReq           rest.BaseReq `json:"base_req" yaml:"base_req"`
	Account           string       `json:"account" yaml:"account"`
	UnlockBlockHeight string       `json:"unlock_block_height" yaml:"unlock_block_height"`
	Amount            string       `json:"amount" yaml:"amount"`
}

type TransferReq

type TransferReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	From    string       `json:"from" yaml:"from"`
	To      string       `json:"to" yaml:"to"`
	Amount  string       `json:"amount" yaml:"amount"`
}

type UnlockReq

type UnlockReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Account string       `json:"account" yaml:"account"`
	Amount  string       `json:"amount" yaml:"amount"`
}

Jump to

Keyboard shortcuts

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