rest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterQueryRoutes

func RegisterQueryRoutes(cliCtx client.Context, r *mux.Router)

func RegisterRoutes

func RegisterRoutes(cliCtx client.Context, r *mux.Router)

func RegisterTxRoutes

func RegisterTxRoutes(clientCtx client.Context, r *mux.Router)

Types

type MarkerAccessRequest

type MarkerAccessRequest struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Address sdk.AccAddress `json:"address" yaml:"address"`
	Grant   string         `json:"grant" yaml:"grant"`
}

MarkerAccessRequest is used for grant/revoke permissions for a given address on a marker

type NewMarkerRequest

type NewMarkerRequest struct {
	BaseReq    rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Supply     sdk.Int        `json:"supply" yaml:"supply"`
	Manager    sdk.AccAddress `json:"manager" yaml:"manager"`
	MarkerType string         `json:"marker_type" yaml:"marker_type"`
}

NewMarkerRequest defines the basic properties to create a marker

type StatusChangeRequest

type StatusChangeRequest struct {
	BaseReq   rest.BaseReq `json:"base_req" yaml:"base_req"`
	NewStatus string       `json:"new_status" yaml:"new_status"`
}

StatusChangeRequest attempts to update the status of a marker

type SupplyRequest

type SupplyRequest struct {
	BaseReq   rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Recipient sdk.AccAddress `json:"recipient" yaml:"recipient"`
	Amount    sdk.Coin       `json:"amount" yaml:"amount"`
}

SupplyRequest defines the properties of a request to mint/burn supply for a marker

Jump to

Keyboard shortcuts

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