rest

package
v11.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRemoveCodeAuthorizationHandler

func ProposalRemoveCodeAuthorizationHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func ProposalRemoveContractAuthorizationHandler

func ProposalRemoveContractAuthorizationHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func ProposalSetCodeAuthorizationHandler

func ProposalSetCodeAuthorizationHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func ProposalSetContractAuthorizationHandler

func ProposalSetContractAuthorizationHandler(cliCtx client.Context) govrest.ProposalRESTHandler

Types

type RemoveCodeAuthorizationProposalJSONReq

type RemoveCodeAuthorizationProposalJSONReq 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"`

	CodeID uint64 `json:"code_id" yaml:"code_id"`
}

func (RemoveCodeAuthorizationProposalJSONReq) Content

func (RemoveCodeAuthorizationProposalJSONReq) GetBaseReq

func (RemoveCodeAuthorizationProposalJSONReq) GetDeposit

func (RemoveCodeAuthorizationProposalJSONReq) GetProposer

type RemoveContractAuthorizationProposalJSONReq

type RemoveContractAuthorizationProposalJSONReq 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"`

	ContractAddress string `json:"contract_address" yaml:"contract_address"`
}

func (RemoveContractAuthorizationProposalJSONReq) Content

func (RemoveContractAuthorizationProposalJSONReq) GetBaseReq

func (RemoveContractAuthorizationProposalJSONReq) GetDeposit

func (RemoveContractAuthorizationProposalJSONReq) GetProposer

type SetCodeAuthorizationProposalJSONReq

type SetCodeAuthorizationProposalJSONReq 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"`

	CodeID  uint64   `json:"code_id" yaml:"code_id"`
	Methods []string `json:"methods" yaml:"methods"`
}

func (SetCodeAuthorizationProposalJSONReq) Content

func (SetCodeAuthorizationProposalJSONReq) GetBaseReq

func (SetCodeAuthorizationProposalJSONReq) GetDeposit

func (SetCodeAuthorizationProposalJSONReq) GetProposer

type SetContractAuthorizationProposalJSONReq

type SetContractAuthorizationProposalJSONReq 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"`

	ContractAddress string   `json:"contract_address" yaml:"contract_address"`
	Methods         []string `json:"methods" yaml:"methods"`
}

func (SetContractAuthorizationProposalJSONReq) Content

func (SetContractAuthorizationProposalJSONReq) GetBaseReq

func (SetContractAuthorizationProposalJSONReq) GetDeposit

func (SetContractAuthorizationProposalJSONReq) GetProposer

Jump to

Keyboard shortcuts

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