Documentation ¶
Index ¶
- func ClearContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func InstantiateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func MigrateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func RegisterRoutes(cliCtx client.Context, r *mux.Router)
- func StoreCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func UpdateContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- type ClearAdminJSONReq
- type InstantiateProposalJSONReq
- type MigrateProposalJSONReq
- type StoreCodeProposalJSONReq
- type UpdateAdminJSONReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearContractAdminProposalHandler ¶
func ClearContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func InstantiateProposalHandler ¶
func InstantiateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func MigrateProposalHandler ¶
func MigrateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func RegisterRoutes ¶
RegisterRoutes registers staking-related REST handlers to a router
func StoreCodeProposalHandler ¶
func StoreCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func UpdateContractAdminProposalHandler ¶
func UpdateContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
Types ¶
type ClearAdminJSONReq ¶
type ClearAdminJSONReq 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 (ClearAdminJSONReq) Content ¶
func (s ClearAdminJSONReq) Content() govtypes.Content
func (ClearAdminJSONReq) GetBaseReq ¶
func (s ClearAdminJSONReq) GetBaseReq() rest.BaseReq
func (ClearAdminJSONReq) GetDeposit ¶
func (s ClearAdminJSONReq) GetDeposit() sdk.Coins
func (ClearAdminJSONReq) GetProposer ¶
func (s ClearAdminJSONReq) GetProposer() string
type InstantiateProposalJSONReq ¶
type InstantiateProposalJSONReq 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"` RunAs string `json:"run_as" yaml:"run_as"` // Admin is an optional address that can execute migrations Admin string `json:"admin,omitempty" yaml:"admin"` Code uint64 `json:"code_id" yaml:"code_id"` Label string `json:"label" yaml:"label"` Msg json.RawMessage `json:"msg" yaml:"msg"` Funds sdk.Coins `json:"funds" yaml:"funds"` }
func (InstantiateProposalJSONReq) Content ¶
func (s InstantiateProposalJSONReq) Content() govtypes.Content
func (InstantiateProposalJSONReq) GetBaseReq ¶
func (s InstantiateProposalJSONReq) GetBaseReq() rest.BaseReq
func (InstantiateProposalJSONReq) GetDeposit ¶
func (s InstantiateProposalJSONReq) GetDeposit() sdk.Coins
func (InstantiateProposalJSONReq) GetProposer ¶
func (s InstantiateProposalJSONReq) GetProposer() string
type MigrateProposalJSONReq ¶
type MigrateProposalJSONReq 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"` Code uint64 `json:"code_id" yaml:"code_id"` Msg json.RawMessage `json:"msg" yaml:"msg"` // RunAs is the role that is passed to the contract's environment RunAs string `json:"run_as" yaml:"run_as"` }
func (MigrateProposalJSONReq) Content ¶
func (s MigrateProposalJSONReq) Content() govtypes.Content
func (MigrateProposalJSONReq) GetBaseReq ¶
func (s MigrateProposalJSONReq) GetBaseReq() rest.BaseReq
func (MigrateProposalJSONReq) GetDeposit ¶
func (s MigrateProposalJSONReq) GetDeposit() sdk.Coins
func (MigrateProposalJSONReq) GetProposer ¶
func (s MigrateProposalJSONReq) GetProposer() string
type StoreCodeProposalJSONReq ¶
type StoreCodeProposalJSONReq 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"` RunAs string `json:"run_as" yaml:"run_as"` // WASMByteCode can be raw or gzip compressed WASMByteCode []byte `json:"wasm_byte_code" yaml:"wasm_byte_code"` // InstantiatePermission to apply on contract creation, optional InstantiatePermission *types.AccessConfig `json:"instantiate_permission" yaml:"instantiate_permission"` }
func (StoreCodeProposalJSONReq) Content ¶
func (s StoreCodeProposalJSONReq) Content() govtypes.Content
func (StoreCodeProposalJSONReq) GetBaseReq ¶
func (s StoreCodeProposalJSONReq) GetBaseReq() rest.BaseReq
func (StoreCodeProposalJSONReq) GetDeposit ¶
func (s StoreCodeProposalJSONReq) GetDeposit() sdk.Coins
func (StoreCodeProposalJSONReq) GetProposer ¶
func (s StoreCodeProposalJSONReq) GetProposer() string
type UpdateAdminJSONReq ¶
type UpdateAdminJSONReq 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"` NewAdmin string `json:"new_admin" yaml:"new_admin"` Contract string `json:"contract" yaml:"contract"` }
func (UpdateAdminJSONReq) Content ¶
func (s UpdateAdminJSONReq) Content() govtypes.Content
func (UpdateAdminJSONReq) GetBaseReq ¶
func (s UpdateAdminJSONReq) GetBaseReq() rest.BaseReq
func (UpdateAdminJSONReq) GetDeposit ¶
func (s UpdateAdminJSONReq) GetDeposit() sdk.Coins
func (UpdateAdminJSONReq) GetProposer ¶
func (s UpdateAdminJSONReq) GetProposer() string
Click to show internal directories.
Click to hide internal directories.