CLI
A user can query and interact with the08-wasm
module using the CLI. Use the --help
flag to discover the available commands:
Transactions
Thetx
commands allow users to interact with the 08-wasm
submodule.
store-code
The store-code
command allows users to submit a governance proposal with a MsgStoreCode
to store the byte code of a Wasm light client contract.
path/to/wasm-file
is the path to the .wasm
or .wasm.gz
file.
migrate-contract
The migrate-contract
command allows users to broadcast a transaction with a MsgMigrateContract
to migrate the contract for a given light client to a new byte code denoted by the given checksum.
Query
Thequery
commands allow users to query 08-wasm
state.
checksums
The checksums
command allows users to query the list of checksums of Wasm light client contracts stored in the Wasm VM via the MsgStoreCode
. The checksums are hex-encoded.
code
The code
command allows users to query the Wasm byte code of a light client contract given the provided input checksum.
gRPC
A user can query the08-wasm
module using gRPC endpoints.
Checksums
The Checksums
endpoint allows users to query the list of checksums of Wasm light client contracts stored in the Wasm VM via the MsgStoreCode
.
Code
The Code
endpoint allows users to query the Wasm byte code of a light client contract given the provided input checksum.