Documentation ¶
Index ¶
- Constants
- func AsciiDecodeString(s string) ([]byte, error)
- func MakeClearContractAdminMsg(clearContractAdminMsg types.ClearContractAdminMsg, sender sdk.AccAddress) (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, sender sdk.AccAddress) (wasmtypes.MsgMigrateContract, error)
- func MakePinnedMsg() (wasmtypes.QueryPinnedCodesRequest, error)
- func MakeQueryMsg(queryMsg types.QueryMsg) (wasmtypes.QuerySmartContractStateRequest, error)
- func MakeSetContractAdmintMsg(setContractAdminMsg types.SetContractAdminMsg, sender sdk.AccAddress) (wasmtypes.MsgUpdateAdmin, error)
- func MakeStoreCodeMsg(storeMsg types.StoreMsg, addr sdk.AccAddress) (wasmtypes.MsgStoreCode, error)
- func NewCoreModule() core.CoreModule
- func QueryWasm(i core.QueryClient) (string, error)
- type ArgumentDecoder
- type WasmExternal
- func (e WasmExternal) ClearContractAdmin(clearContractAdminMsg types.ClearContractAdminMsg) provider.XplaClient
- func (e WasmExternal) CodeInfo(codeInfoMsg types.CodeInfoMsg) provider.XplaClient
- func (e WasmExternal) ContractHistory(contractHistoryMsg types.ContractHistoryMsg) provider.XplaClient
- func (e WasmExternal) ContractInfo(contractInfoMsg types.ContractInfoMsg) provider.XplaClient
- func (e WasmExternal) ContractStateAll(contractStateAllMsg types.ContractStateAllMsg) provider.XplaClient
- func (e WasmExternal) Download(downloadMsg types.DownloadMsg) provider.XplaClient
- func (e WasmExternal) ExecuteContract(executeMsg types.ExecuteMsg) provider.XplaClient
- func (e WasmExternal) InstantiateContract(instantiageMsg types.InstantiateMsg) provider.XplaClient
- func (e WasmExternal) LibwasmvmVersion() provider.XplaClient
- func (e WasmExternal) ListCode() provider.XplaClient
- func (e WasmExternal) ListContractByCode(listContractByCodeMsg types.ListContractByCodeMsg) provider.XplaClient
- func (e WasmExternal) Migrate(migrateMsg types.MigrateMsg) provider.XplaClient
- func (e WasmExternal) Pinned() provider.XplaClient
- func (e WasmExternal) QueryContract(queryMsg types.QueryMsg) provider.XplaClient
- func (e WasmExternal) SetContractAdmin(setContractAdminMsg types.SetContractAdminMsg) provider.XplaClient
- func (e WasmExternal) StoreCode(storeMsg types.StoreMsg) provider.XplaClient
Constants ¶
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, sender sdk.AccAddress) (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, sender sdk.AccAddress) (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, sender sdk.AccAddress) (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
func NewCoreModule ¶ added in v0.1.2
func NewCoreModule() core.CoreModule
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)
type WasmExternal ¶ added in v0.1.2
type WasmExternal struct {
Xplac provider.XplaClient
}
func NewWasmExternal ¶ added in v0.1.2
func NewWasmExternal(xplac provider.XplaClient) (e WasmExternal)
func (WasmExternal) ClearContractAdmin ¶ added in v0.1.2
func (e WasmExternal) ClearContractAdmin(clearContractAdminMsg types.ClearContractAdminMsg) provider.XplaClient
Clears admin for a contract to prevent further migrations.
func (WasmExternal) CodeInfo ¶ added in v0.1.2
func (e WasmExternal) CodeInfo(codeInfoMsg types.CodeInfoMsg) provider.XplaClient
Prints out metadata of a code ID.
func (WasmExternal) ContractHistory ¶ added in v0.1.2
func (e WasmExternal) ContractHistory(contractHistoryMsg types.ContractHistoryMsg) provider.XplaClient
Prints out the code history for a contract given its address.
func (WasmExternal) ContractInfo ¶ added in v0.1.2
func (e WasmExternal) ContractInfo(contractInfoMsg types.ContractInfoMsg) provider.XplaClient
Prints out metadata of a contract given its address.
func (WasmExternal) ContractStateAll ¶ added in v0.1.2
func (e WasmExternal) ContractStateAll(contractStateAllMsg types.ContractStateAllMsg) provider.XplaClient
Prints out all internal state of a contract given its address.
func (WasmExternal) Download ¶ added in v0.1.2
func (e WasmExternal) Download(downloadMsg types.DownloadMsg) provider.XplaClient
Downloads wasm bytecode for given code ID.
func (WasmExternal) ExecuteContract ¶ added in v0.1.2
func (e WasmExternal) ExecuteContract(executeMsg types.ExecuteMsg) provider.XplaClient
Execute a wasm contract.
func (WasmExternal) InstantiateContract ¶ added in v0.1.2
func (e WasmExternal) InstantiateContract(instantiageMsg types.InstantiateMsg) provider.XplaClient
Instantiate a wasm contract.
func (WasmExternal) LibwasmvmVersion ¶ added in v0.1.2
func (e WasmExternal) LibwasmvmVersion() provider.XplaClient
Get libwasmvm version.
func (WasmExternal) ListCode ¶ added in v0.1.2
func (e WasmExternal) ListCode() provider.XplaClient
Query list all wasm bytecode on the chain.
func (WasmExternal) ListContractByCode ¶ added in v0.1.2
func (e WasmExternal) ListContractByCode(listContractByCodeMsg types.ListContractByCodeMsg) provider.XplaClient
Query list wasm all bytecode on the chain for given code ID.
func (WasmExternal) Migrate ¶ added in v0.1.2
func (e WasmExternal) Migrate(migrateMsg types.MigrateMsg) provider.XplaClient
Migrate a wasm contract to a new code version.
func (WasmExternal) Pinned ¶ added in v0.1.2
func (e WasmExternal) Pinned() provider.XplaClient
Query list all pinned code IDs.
func (WasmExternal) QueryContract ¶ added in v0.1.2
func (e WasmExternal) QueryContract(queryMsg types.QueryMsg) provider.XplaClient
Calls contract with given address with query data and prints the returned result.
func (WasmExternal) SetContractAdmin ¶ added in v0.1.2
func (e WasmExternal) SetContractAdmin(setContractAdminMsg types.SetContractAdminMsg) provider.XplaClient
Set new admin for a contract.
func (WasmExternal) StoreCode ¶ added in v0.1.2
func (e WasmExternal) StoreCode(storeMsg types.StoreMsg) provider.XplaClient
Upload a wasm binary.