rest

package
v0.0.0-...-25b3476 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTokenProposalRESTHandler

func AddTokenProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

func RegisterRoutes

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

func TokenParamsChangeProposalRESTHandler

func TokenParamsChangeProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

Types

type AddTokenProposalReq

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

	Title       string        `json:"title" yaml:"title"`
	Description string        `json:"description" yaml:"description"`
	TokenInfo   *sdk.IBCToken `json:"token_info" yaml:"token_info"`
	Deposit     sdk.Coins     `json:"deposit" yaml:"deposit"`
	Proposer    sdk.CUAddress `json:"proposer" yaml:"proposer"`
}

AddTokenProposalReq defines a add token proposal 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.CUAddress        `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