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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRESTHandler

func ProposalRESTHandler(cliCtx context.CLIContext) external.GovProposalRESTHandler

ProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route.

Types

type PostProposalParamsReq

type PostProposalParamsReq struct {
	BaseReq        rest.BaseReq           `json:"base_req" yaml:"base_req"`
	Title          string                 `json:"title" yaml:"title"`                     // Title of the proposal
	Description    string                 `json:"description" yaml:"description"`         // Description of the proposal
	InitialDeposit string                 `json:"initial_deposit" yaml:"initial_deposit"` // Coins to add to the proposal's deposit
	ProposerAcc    string                 `json:"proposer_acc" yaml:"proposer_acc"`       // account of the proposer
	ParamChanges   []proposal.ParamChange `json:"param_changes" yaml:"param_changes"`
}

Jump to

Keyboard shortcuts

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