#vm #unit-tests

cosmwasm-vm

VM bindings to run cosmwams contracts

10 releases (4 breaking)

✓ Uses Rust 2018 edition

new 0.5.2 Dec 2, 2019
0.5.1 Nov 29, 2019
0.4.2 Nov 21, 2019
0.4.1 Oct 27, 2019
0.1.0 Oct 8, 2019
Download history 16/week @ 2019-10-06 3/week @ 2019-10-13 56/week @ 2019-10-20 106/week @ 2019-10-27 16/week @ 2019-11-03 8/week @ 2019-11-10 32/week @ 2019-11-17 67/week @ 2019-11-24

107 downloads per month

Apache-2.0

69KB
1.5K SLoC

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 is a demo file in testdata/contract.wasm - this is a compiled and optimized version of contracts/hackatom run through cosmwasm-opt.

Dependencies

~5–6.5MB
~135K SLoC