Documentation ¶
Overview ¶
Deprecated: the rest package will be removed. You can use the GRPC gateway instead
Index ¶
- func ClearContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func EmptyRestHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func ExecuteProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func InstantiateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func MigrateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func PinCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func RegisterRoutes(cliCtx client.Context, r *mux.Router)
- func StoreCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func SudoProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func UnpinCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func UpdateContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- func UpdateInstantiateConfigProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
- type ClearAdminJSONReq
- type ExecuteProposalJSONReq
- type InstantiateProposalJSONReq
- type MigrateProposalJSONReq
- type PinCodeJSONReq
- type StoreCodeProposalJSONReq
- type SudoProposalJSONReq
- type UnpinCodeJSONReq
- type UpdateAdminJSONReq
- type UpdateInstantiateConfigProposalJSONReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearContractAdminProposalHandler ¶ added in v0.10.0
func ClearContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func EmptyRestHandler ¶ added in v0.30.0
func EmptyRestHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func ExecuteProposalHandler ¶ added in v0.22.0
func ExecuteProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func InstantiateProposalHandler ¶ added in v0.10.0
func InstantiateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func MigrateProposalHandler ¶ added in v0.10.0
func MigrateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func PinCodeProposalHandler ¶ added in v0.22.0
func PinCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func RegisterRoutes ¶
RegisterRoutes registers staking-related REST handlers to a router Deprecated: the rest package will be removed. You can use the GRPC gateway instead
func StoreCodeProposalHandler ¶ added in v0.10.0
func StoreCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func SudoProposalHandler ¶ added in v0.22.0
func SudoProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func UnpinCodeProposalHandler ¶ added in v0.22.0
func UnpinCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func UpdateContractAdminProposalHandler ¶ added in v0.10.0
func UpdateContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
func UpdateInstantiateConfigProposalHandler ¶ added in v0.27.0
func UpdateInstantiateConfigProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler
Types ¶
type ClearAdminJSONReq ¶ added in v0.21.0
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 ¶ added in v0.21.0
func (s ClearAdminJSONReq) Content() govtypes.Content
func (ClearAdminJSONReq) GetBaseReq ¶ added in v0.21.0
func (s ClearAdminJSONReq) GetBaseReq() rest.BaseReq
func (ClearAdminJSONReq) GetDeposit ¶ added in v0.21.0
func (s ClearAdminJSONReq) GetDeposit() sdk.Coins
func (ClearAdminJSONReq) GetProposer ¶ added in v0.21.0
func (s ClearAdminJSONReq) GetProposer() string
type ExecuteProposalJSONReq ¶ added in v0.22.0
type ExecuteProposalJSONReq 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"` 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"` Funds sdk.Coins `json:"funds" yaml:"funds"` }
func (ExecuteProposalJSONReq) Content ¶ added in v0.22.0
func (s ExecuteProposalJSONReq) Content() govtypes.Content
func (ExecuteProposalJSONReq) GetBaseReq ¶ added in v0.22.0
func (s ExecuteProposalJSONReq) GetBaseReq() rest.BaseReq
func (ExecuteProposalJSONReq) GetDeposit ¶ added in v0.22.0
func (s ExecuteProposalJSONReq) GetDeposit() sdk.Coins
func (ExecuteProposalJSONReq) GetProposer ¶ added in v0.22.0
func (s ExecuteProposalJSONReq) GetProposer() string
type InstantiateProposalJSONReq ¶ added in v0.21.0
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 ¶ added in v0.21.0
func (s InstantiateProposalJSONReq) Content() govtypes.Content
func (InstantiateProposalJSONReq) GetBaseReq ¶ added in v0.21.0
func (s InstantiateProposalJSONReq) GetBaseReq() rest.BaseReq
func (InstantiateProposalJSONReq) GetDeposit ¶ added in v0.21.0
func (s InstantiateProposalJSONReq) GetDeposit() sdk.Coins
func (InstantiateProposalJSONReq) GetProposer ¶ added in v0.21.0
func (s InstantiateProposalJSONReq) GetProposer() string
type MigrateProposalJSONReq ¶ added in v0.21.0
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"` }
func (MigrateProposalJSONReq) Content ¶ added in v0.21.0
func (s MigrateProposalJSONReq) Content() govtypes.Content
func (MigrateProposalJSONReq) GetBaseReq ¶ added in v0.21.0
func (s MigrateProposalJSONReq) GetBaseReq() rest.BaseReq
func (MigrateProposalJSONReq) GetDeposit ¶ added in v0.21.0
func (s MigrateProposalJSONReq) GetDeposit() sdk.Coins
func (MigrateProposalJSONReq) GetProposer ¶ added in v0.21.0
func (s MigrateProposalJSONReq) GetProposer() string
type PinCodeJSONReq ¶ added in v0.22.0
type PinCodeJSONReq 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"` CodeIDs []uint64 `json:"code_ids" yaml:"code_ids"` }
func (PinCodeJSONReq) Content ¶ added in v0.22.0
func (s PinCodeJSONReq) Content() govtypes.Content
func (PinCodeJSONReq) GetBaseReq ¶ added in v0.22.0
func (s PinCodeJSONReq) GetBaseReq() rest.BaseReq
func (PinCodeJSONReq) GetDeposit ¶ added in v0.22.0
func (s PinCodeJSONReq) GetDeposit() sdk.Coins
func (PinCodeJSONReq) GetProposer ¶ added in v0.22.0
func (s PinCodeJSONReq) GetProposer() string
type StoreCodeProposalJSONReq ¶ added in v0.21.0
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"` // UnpinCode indicates if the code should not be pinned as part of the proposal. UnpinCode bool `json:"unpin_code" yaml:"unpin_code"` // Source is the URL where the code is hosted Source string `json:"source" yaml:"source"` // Builder is the docker image used to build the code deterministically, used for smart // contract verification Builder string `json:"builder" yaml:"builder"` // CodeHash is the SHA256 sum of the code outputted by optimizer, used for smart contract verification CodeHash []byte `json:"code_hash" yaml:"code_hash"` }
func (StoreCodeProposalJSONReq) Content ¶ added in v0.21.0
func (s StoreCodeProposalJSONReq) Content() govtypes.Content
func (StoreCodeProposalJSONReq) GetBaseReq ¶ added in v0.21.0
func (s StoreCodeProposalJSONReq) GetBaseReq() rest.BaseReq
func (StoreCodeProposalJSONReq) GetDeposit ¶ added in v0.21.0
func (s StoreCodeProposalJSONReq) GetDeposit() sdk.Coins
func (StoreCodeProposalJSONReq) GetProposer ¶ added in v0.21.0
func (s StoreCodeProposalJSONReq) GetProposer() string
type SudoProposalJSONReq ¶ added in v0.22.0
type SudoProposalJSONReq 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"` Msg json.RawMessage `json:"msg" yaml:"msg"` }
func (SudoProposalJSONReq) Content ¶ added in v0.22.0
func (s SudoProposalJSONReq) Content() govtypes.Content
func (SudoProposalJSONReq) GetBaseReq ¶ added in v0.22.0
func (s SudoProposalJSONReq) GetBaseReq() rest.BaseReq
func (SudoProposalJSONReq) GetDeposit ¶ added in v0.22.0
func (s SudoProposalJSONReq) GetDeposit() sdk.Coins
func (SudoProposalJSONReq) GetProposer ¶ added in v0.22.0
func (s SudoProposalJSONReq) GetProposer() string
type UnpinCodeJSONReq ¶ added in v0.22.0
type UnpinCodeJSONReq 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"` CodeIDs []uint64 `json:"code_ids" yaml:"code_ids"` }
func (UnpinCodeJSONReq) Content ¶ added in v0.22.0
func (s UnpinCodeJSONReq) Content() govtypes.Content
func (UnpinCodeJSONReq) GetBaseReq ¶ added in v0.22.0
func (s UnpinCodeJSONReq) GetBaseReq() rest.BaseReq
func (UnpinCodeJSONReq) GetDeposit ¶ added in v0.22.0
func (s UnpinCodeJSONReq) GetDeposit() sdk.Coins
func (UnpinCodeJSONReq) GetProposer ¶ added in v0.22.0
func (s UnpinCodeJSONReq) GetProposer() string
type UpdateAdminJSONReq ¶ added in v0.21.0
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 ¶ added in v0.21.0
func (s UpdateAdminJSONReq) Content() govtypes.Content
func (UpdateAdminJSONReq) GetBaseReq ¶ added in v0.21.0
func (s UpdateAdminJSONReq) GetBaseReq() rest.BaseReq
func (UpdateAdminJSONReq) GetDeposit ¶ added in v0.21.0
func (s UpdateAdminJSONReq) GetDeposit() sdk.Coins
func (UpdateAdminJSONReq) GetProposer ¶ added in v0.21.0
func (s UpdateAdminJSONReq) GetProposer() string
type UpdateInstantiateConfigProposalJSONReq ¶ added in v0.27.0
type UpdateInstantiateConfigProposalJSONReq 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"` AccessConfigUpdates []types.AccessConfigUpdate `json:"access_config_updates" yaml:"access_config_updates"` }
func (UpdateInstantiateConfigProposalJSONReq) Content ¶ added in v0.27.0
func (s UpdateInstantiateConfigProposalJSONReq) Content() govtypes.Content
func (UpdateInstantiateConfigProposalJSONReq) GetBaseReq ¶ added in v0.27.0
func (s UpdateInstantiateConfigProposalJSONReq) GetBaseReq() rest.BaseReq
func (UpdateInstantiateConfigProposalJSONReq) GetDeposit ¶ added in v0.27.0
func (s UpdateInstantiateConfigProposalJSONReq) GetDeposit() sdk.Coins
func (UpdateInstantiateConfigProposalJSONReq) GetProposer ¶ added in v0.27.0
func (s UpdateInstantiateConfigProposalJSONReq) GetProposer() string
Click to show internal directories.
Click to hide internal directories.