Registry / crypto / cosmwasm-vm

cosmwasm-vm

JSON →
library3.0.7rscratesunverified

VM bindings to run CosmWasm smart contracts in a sandboxed environment.

# Cargo.toml [dependencies] cosmwasm-vm = "3.0.7"
INSTALL
IMPORT
SIG · COSMWASM-VM
C
cosmwasm-vm
cryptorustv3.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Instance
use cosmwasm_vm::Instance;

Loads a CosmWasm contract and creates a VM instance for execution.

use cosmwasm_vm::Instance; use cosmwasm_std::Empty; fn main() -> Result<(), Box<dyn std::error::Error>> { let wasm = std::fs::read("contract.wasm")?; let instance = Instance::<Empty, Empty>::new(&wasm)?; // Execute contract calls Ok(()) }
Debug
Known issues
gotchaRequires the wasmer runtime and may have platform-specific dependencies.
fix
Ensure wasmer is properly installed and linked.
affects: >=1.0.0
Upgrade
Version history
3.0.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
Resources
cosmwasm-vm — cargo add cosmwasm-vm · libregistry