rest

package
v12.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalDemotePrivilegeContractHandler

func ProposalDemotePrivilegeContractHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func ProposalSetPrivilegeContractHandler

func ProposalSetPrivilegeContractHandler(cliCtx client.Context) govrest.ProposalRESTHandler

Types

type SetPrivilegeProposalJSONReq

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

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	Contract string `json:"contract" yaml:"contract"`
}

func (SetPrivilegeProposalJSONReq) Content

func (SetPrivilegeProposalJSONReq) GetBaseReq

func (s SetPrivilegeProposalJSONReq) GetBaseReq() rest.BaseReq

func (SetPrivilegeProposalJSONReq) GetDeposit

func (s SetPrivilegeProposalJSONReq) GetDeposit() sdk.Coins

func (SetPrivilegeProposalJSONReq) GetProposer

func (s SetPrivilegeProposalJSONReq) GetProposer() string

type UnsetPrivilegeProposalJSONReq

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

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	Contract string `json:"contract" yaml:"contract"`
}

func (UnsetPrivilegeProposalJSONReq) Content

func (UnsetPrivilegeProposalJSONReq) GetBaseReq

func (UnsetPrivilegeProposalJSONReq) GetDeposit

func (s UnsetPrivilegeProposalJSONReq) GetDeposit() sdk.Coins

func (UnsetPrivilegeProposalJSONReq) GetProposer

func (s UnsetPrivilegeProposalJSONReq) GetProposer() string

Jump to

Keyboard shortcuts

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