rest

package
v0.0.0-...-2c3f891 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableTokenProposalRESTHandler

func DisableTokenProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

ProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool spend REST handler with a given sub-route.

func RegisterRoutes

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

RegisterRoutes registers staking-related REST handlers to a router

func TokenParamsChangeProposalRESTHandler

func TokenParamsChangeProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

Types

type DisableTokenProposalReq

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

	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	Symbol      string         `json:"symbol" yaml:"symbol"`
	Deposit     sdk.Coins      `json:"deposit" yaml:"deposit`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
}

DisableTokenProposalReq defines a disable token request body.

type TokenParamsChangeProposalReq

type TokenParamsChangeProposalReq struct {
	BaseReq     rest.BaseReq         `json:"base_req" yaml:"base_req"`
	Title       string               `json:"title" yaml:"title"`
	Description string               `json:"description" yaml:"description"`
	Symbol      string               `json:"symbol" yaml:"symbol"`
	Changes     cli.ParamChangesJSON `json:"changes" yaml:"changes"`
	Deposit     sdk.Coins            `json:"deposit" yaml:"deposit"`
	Proposer    sdk.AccAddress       `json:"proposer" yaml:"proposer"`
}

TokenParamsChangeProposalReq defines a token params change request body.

Jump to

Keyboard shortcuts

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