rest

package
v0.0.2-0...-13a971e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAllowance

func CheckAllowance(
	cliCtx context.CLIContext,
	issueID string,
	owner sdk.AccAddress,
	spender sdk.AccAddress,
	amount sdk.Int,
) error

func CheckFreeze

func CheckFreeze(cliCtx context.CLIContext, issueID string, from sdk.AccAddress, to sdk.AccAddress) error

func GetBurnMsg

func GetBurnMsg(
	cliCtx context.CLIContext,
	sender sdk.AccAddress,
	burnFrom sdk.AccAddress,
	issueID string,
	amount sdk.Int,
	burnFromType string,
	cli bool,
) (sdk.Msg, error)

func GetIssueApproveMsg

func GetIssueApproveMsg(
	cliCtx context.CLIContext,
	issueID string,
	account sdk.AccAddress,
	accAddress sdk.AccAddress,
	approveType string,
	amount sdk.Int,
	cli bool,
) (sdk.Msg, error)

func GetIssueByID

func GetIssueByID(cliCtx context.CLIContext, issueID string) (types.Issue, error)

func GetIssueFreezeMsg

func GetIssueFreezeMsg(
	cliCtx context.CLIContext,
	account sdk.AccAddress,
	freezeType string,
	issueID string,
	address string,
	freeze bool,
) (sdk.Msg, error)

func RegisterRoutes

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

RegisterRoutes register distribution REST routes.

Types

type PostDescriptionReq

type PostDescriptionReq struct {
	BaseReq     rest.BaseReq `json:"base_req"`
	Description string       `json:"description"`
}

type PostIssueBaseReq

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

type PostIssueReq

type PostIssueReq struct {
	BaseReq           rest.BaseReq `json:"base_req"`
	types.IssueParams `json:"issue"`
}

Jump to

Keyboard shortcuts

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