rest

package
v0.45.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalCancelRESTHandler added in v0.40.0

func ProposalCancelRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func ProposalRESTHandler

func ProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func RegisterRoutes

func RegisterRoutes(clientCtx client.Context, rtr *mux.Router)

RegisterRoutes registers REST routes for the upgrade module under the path specified by routeName.

Types

type CancelRequest

type CancelRequest struct {
	BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Deposit     sdk.Coins    `json:"deposit" yaml:"deposit"`
}

CancelRequest defines a proposal to cancel a current plan.

type PlanRequest

type PlanRequest struct {
	BaseReq       rest.BaseReq `json:"base_req" yaml:"base_req"`
	Title         string       `json:"title" yaml:"title"`
	Description   string       `json:"description" yaml:"description"`
	Deposit       sdk.Coins    `json:"deposit" yaml:"deposit"`
	UpgradeName   string       `json:"upgrade_name" yaml:"upgrade_name"`
	UpgradeHeight int64        `json:"upgrade_height" yaml:"upgrade_height"`
	UpgradeInfo   string       `json:"upgrade_info" yaml:"upgrade_info"`
}

PlanRequest defines a proposal for a new upgrade plan.

Jump to

Keyboard shortcuts

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