CosmWasm VM
This is an abstraction layer around the wasmer VM to expose just what we need to run cosmwasm contracts in a high-level manner. This is intended both for efficient writing of unit tests, as well as a public API to run contracts in eg. go-cosmwasm. As such it includes all glue code needed for typical actions, like fs caching.
Setup
There are demo files in testdata/contract*.wasm
. Those are compiled and
optimized versions of contracts/hackatom
run through cosmwasm-opt.
To rebuild the test contract, go to the repo root and do
Testing
By default, this repository is built and tested with the singlepass backend. This requires running Rust nighty:
To test with Rust stable, you need to switch to cranelift:
License
This package is part of the cosmwasm repository, licensed under the Apache License 2.0 (see NOTICE and LICENSE).