[−][src]Crate cosmwasm_vm
Modules
| testing |
Structs
| Backend | 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. |
| Cache | |
| CacheOptions | |
| 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. |
| GasInfo | |
| GasReport | |
| Instance | |
| InstanceOptions | |
| Size |
Enums
| BackendError | |
| CommunicationError | An error in the communcation between contract and host. Those happen around imports and exports. |
| 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
| BackendResult | A result type for calling into the backend. Such a call can cause non-negligible computational cost in both success and faiure case and must always have gas information attached. |
| CommunicationResult | |
| RegionValidationResult | |
| VmResult |