rest

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRESTHandler

func ProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

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

func ProposalUpgradeRESTHandler added in v1.7.0

func ProposalUpgradeRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

Types

type UpgradeProposalReq added in v1.7.0

type UpgradeProposalReq struct {
	BaseReq  rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"`

	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Deposit     sdk.SysCoins `json:"deposit" yaml:"deposit"`

	Name         string `json:"name" yaml:"name"`
	ExpectHeight uint64 `json:"expectHeight" yaml:"expectHeight"`
	Config       string `json:"config,omitempty" yaml:"config,omitempty"`
}

UpgradeProposalReq defines a upgrade proposal request body

Jump to

Keyboard shortcuts

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