20 releases (7 breaking)

✓ Uses Rust 2018 edition

new 0.9.1 May 22, 2020
0.8.0 Apr 3, 2020
0.7.0 Mar 26, 2020
0.4.3 Dec 18, 2019
0.4.2 Nov 21, 2019
Download history 136/week @ 2020-02-06 342/week @ 2020-02-13 237/week @ 2020-02-20 403/week @ 2020-02-27 185/week @ 2020-03-05 110/week @ 2020-03-12 405/week @ 2020-03-19 991/week @ 2020-03-26 611/week @ 2020-04-02 512/week @ 2020-04-09 228/week @ 2020-04-16 478/week @ 2020-04-23 1136/week @ 2020-04-30 443/week @ 2020-05-07 438/week @ 2020-05-14 450/week @ 2020-05-21

2,103 downloads per month
Used in 4 crates

Apache-2.0

190KB
3K SLoC

near-vm-logic

This crate implements the specification of the interface that Near blockchain exposes to the smart contracts. It is not dependent on the specific way the smart contract code is executed, e.g. through Wasmer or whatnot, and therefore can be used for unit tests in smart contracts.

Note, this logic assumes the little endian byte ordering of the memory used by the smart contract.

Run tests

cargo test --features mocks

Dependencies

~3MB
~56K SLoC