rest

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProposalRESTHandler

func AddProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

AddProposalRESTHandler returns a ProposalRESTHandler that exposes add managed cellar IDs REST handler with a given sub-route.

func RemoveProposalRESTHandler

func RemoveProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

RemoveProposalRESTHandler returns a ProposalRESTHandler that exposes remove managed cellar IDs REST handler with a given sub-route.

Types

type AddManagedCellarIDsProposalReq

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

	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	CellarIDs   []string       `json:"cellar_ids" yaml:"cellar_ids"`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
	Deposit     sdk.Coins      `json:"deposit" yaml:"deposit"`
}

AddManagedCellarIDsProposalReq defines a managed cellar ID addition proposal request body.

type RemoveManagedCellarIDsProposalReq

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

	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	CellarIDs   []string       `json:"cellar_ids" yaml:"cellar_ids"`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
	Deposit     sdk.Coins      `json:"deposit" yaml:"deposit"`
}

RemoveManagedCellarIDsProposalReq defines a managed cellar ID removal proposal request body.

Jump to

Keyboard shortcuts

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