[−][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. |
GasInfo | |
GasReport | |
Instance |
Enums
CommunicationError | An error in the communcation between contract and host. Those happen around imports and exports. |
FfiError | |
RegionValidationError | An error validating a Region |
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 | |
Storage | Access to the VM's backend storage, i.e. the chain |
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_migrate | |
call_migrate_raw | Calls Wasm export "migrate" 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
CommunicationResult | |
FfiResult | A result type for calling into the backend via FFI. Such a call causes non-negligible computational cost and must always have gas information attached. In order to prevent new calls from forgetting such gas information to be passed, the inner success and failure types contain gas information. |
RegionValidationResult | |
VmResult |