[][src]Crate cosmwasm_vm

Modules

testing

Structs

Checksum

A SHA-256 checksum of a Wasm blob, used to identify a Wasm code. This must remain stable since this checksum is stored in the blockchain state.

CosmCache
Extern

Holds all external dependencies of the contract. Designed to allow easy dependency injection at runtime. This cannot be copied or cloned since it would behave differently for mock storages and a bridge storage in the VM.

FileSystemCache

Representation of a directory that contains compiled Wasm artifacts.

Instance

Enums

FfiError
VmError

Traits

Api

Api are callbacks to system functions defined outside of the wasm modules. This is a trait to allow Mocks in the test code.

Querier
ReadonlyStorage

ReadonlyStorage is access to the contracts persistent data store

Storage

Functions

call_handle
call_handle_raw

Calls Wasm export "handle" and returns raw data from the contract. The result is length limited to prevent abuse but otherwise unchecked.

call_init
call_init_raw

Calls Wasm export "init" and returns raw data from the contract. The result is length limited to prevent abuse but otherwise unchecked.

call_query
call_query_raw

Calls Wasm export "query" and returns raw data from the contract. The result is length limited to prevent abuse but otherwise unchecked.

features_from_csv

Takes a comma-separated string, splits it by commas, removes empty elements and returns a set of features. This can be used e.g. to initialize the cache.

from_slice
to_vec

Type Definitions

FfiResult
QuerierResult

A short-hand alias for the three-level query result

VmResult