rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 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

func ProposalUpgradeRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

Types

type UpgradeProposalReq

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