Documentation ¶
Index ¶
- Constants
- func AsciiDecodeString(s string) ([]byte, error)
- func MakeClearContractAdminMsg(clearContractAdminMsg types.ClearContractAdminMsg, privKey key.PrivateKey) (wasmtypes.MsgClearAdmin, error)
- func MakeCodeInfoMsg(codeInfoMsg types.CodeInfoMsg) (wasmtypes.QueryCodeRequest, error)
- func MakeContractHistoryMsg(contractHistoryMsg types.ContractHistoryMsg) (wasmtypes.QueryContractHistoryRequest, error)
- func MakeContractInfoMsg(contractInfoMsg types.ContractInfoMsg) (wasmtypes.QueryContractInfoRequest, error)
- func MakeContractStateAllMsg(contractStateAllMsg types.ContractStateAllMsg) (wasmtypes.QueryAllContractStateRequest, error)
- func MakeDownloadMsg(downloadMsg types.DownloadMsg) ([]interface{}, error)
- func MakeExecuteMsg(executeMsg types.ExecuteMsg, addr sdk.AccAddress) (wasmtypes.MsgExecuteContract, error)
- func MakeInstantiateMsg(instantiateMsg types.InstantiateMsg, addr sdk.AccAddress) (wasmtypes.MsgInstantiateContract, error)
- func MakeLibwasmvmVersionMsg() (string, error)
- func MakeListContractByCodeMsg(listContractByCodeMsg types.ListContractByCodeMsg) (wasmtypes.QueryContractsByCodeRequest, error)
- func MakeListcodeMsg() (wasmtypes.QueryCodesRequest, error)
- func MakeMigrateMsg(migrateMsg types.MigrateMsg, privKey key.PrivateKey) (wasmtypes.MsgMigrateContract, error)
- func MakePinnedMsg() (wasmtypes.QueryPinnedCodesRequest, error)
- func MakeQueryMsg(queryMsg types.QueryMsg) (wasmtypes.QuerySmartContractStateRequest, error)
- func MakeSetContractAdmintMsg(setContractAdminMsg types.SetContractAdminMsg, privKey key.PrivateKey) (wasmtypes.MsgUpdateAdmin, error)
- func MakeStoreCodeMsg(storeMsg types.StoreMsg, addr sdk.AccAddress) (wasmtypes.MsgStoreCode, error)
- type ArgumentDecoder
Constants ¶
View Source
const ( WasmModule = "wasm" WasmStoreMsgType = "store-code" WasmInstantiateMsgType = "instantiate-contract" WasmExecuteMsgType = "execute-contract" WasmClearContractAdminMsgType = "clear-contract-admin" WasmSetContractAdminMsgType = "set-contract-admin" WasmMigrateMsgType = "migrate" WasmQueryContractMsgType = "query-contract" WasmListCodeMsgType = "list-code" WasmListContractByCodeMsgType = "list-contract-by-code" WasmDownloadMsgType = "download" WasmCodeInfoMsgType = "code-info" WasmContractInfoMsgType = "contract-info" WasmContractStateAllMsgType = "contract-state-all" WasmContractHistoryMsgType = "contract-history" WasmPinnedMsgType = "pinned" WasmLibwasmvmVersionMsgType = "libwasmvm-version" )
Variables ¶
This section is empty.
Functions ¶
func AsciiDecodeString ¶
func MakeClearContractAdminMsg ¶
func MakeClearContractAdminMsg(clearContractAdminMsg types.ClearContractAdminMsg, privKey key.PrivateKey) (wasmtypes.MsgClearAdmin, error)
(Tx) make msg - clear contract admin
func MakeCodeInfoMsg ¶
func MakeCodeInfoMsg(codeInfoMsg types.CodeInfoMsg) (wasmtypes.QueryCodeRequest, error)
(Query) make msg - code info
func MakeContractHistoryMsg ¶
func MakeContractHistoryMsg(contractHistoryMsg types.ContractHistoryMsg) (wasmtypes.QueryContractHistoryRequest, error)
(Query) make msg - history
func MakeContractInfoMsg ¶
func MakeContractInfoMsg(contractInfoMsg types.ContractInfoMsg) (wasmtypes.QueryContractInfoRequest, error)
(Query) make msg - contract info
func MakeContractStateAllMsg ¶
func MakeContractStateAllMsg(contractStateAllMsg types.ContractStateAllMsg) (wasmtypes.QueryAllContractStateRequest, error)
(Query) make msg - contract state all
func MakeDownloadMsg ¶
func MakeDownloadMsg(downloadMsg types.DownloadMsg) ([]interface{}, error)
(Query) make msg - download
func MakeExecuteMsg ¶
func MakeExecuteMsg(executeMsg types.ExecuteMsg, addr sdk.AccAddress) (wasmtypes.MsgExecuteContract, error)
(Tx) make msg - execute
func MakeInstantiateMsg ¶
func MakeInstantiateMsg(instantiateMsg types.InstantiateMsg, addr sdk.AccAddress) (wasmtypes.MsgInstantiateContract, error)
(Tx) make msg - instantiate
func MakeLibwasmvmVersionMsg ¶
(Query) make msg - libwasmvm version
func MakeListContractByCodeMsg ¶
func MakeListContractByCodeMsg(listContractByCodeMsg types.ListContractByCodeMsg) (wasmtypes.QueryContractsByCodeRequest, error)
(Query) make msg - list contract by code
func MakeListcodeMsg ¶
func MakeListcodeMsg() (wasmtypes.QueryCodesRequest, error)
(Query) make msg - list code
func MakeMigrateMsg ¶
func MakeMigrateMsg(migrateMsg types.MigrateMsg, privKey key.PrivateKey) (wasmtypes.MsgMigrateContract, error)
(Tx) make msg - migrate
func MakePinnedMsg ¶
func MakePinnedMsg() (wasmtypes.QueryPinnedCodesRequest, error)
(Query) make msg - pinned
func MakeQueryMsg ¶
func MakeQueryMsg(queryMsg types.QueryMsg) (wasmtypes.QuerySmartContractStateRequest, error)
(Query) make msg - query contract
func MakeSetContractAdmintMsg ¶
func MakeSetContractAdmintMsg(setContractAdminMsg types.SetContractAdminMsg, privKey key.PrivateKey) (wasmtypes.MsgUpdateAdmin, error)
(Tx) make msg - set contract admin
func MakeStoreCodeMsg ¶
func MakeStoreCodeMsg(storeMsg types.StoreMsg, addr sdk.AccAddress) (wasmtypes.MsgStoreCode, error)
(Tx) make msg - store code
Types ¶
type ArgumentDecoder ¶
type ArgumentDecoder struct {
// contains filtered or unexported fields
}
func NewArgDecoder ¶
func NewArgDecoder(def func(string) ([]byte, error)) *ArgumentDecoder
Make new query decoder.
func (*ArgumentDecoder) DecodeString ¶
func (a *ArgumentDecoder) DecodeString(s string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.