37 releases (6 stable)
4.0.0-pre.1 | Mar 5, 2021 |
---|---|
3.0.0 | Feb 10, 2021 |
2.2.0 | Sep 3, 2020 |
1.2.0 | Aug 18, 2020 |
0.4.2 | Nov 21, 2019 |
#59 in #near
4,524 downloads per month
Used in 15 crates
(5 directly)
270KB
4.5K
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
~6–8.5MB
~145K SLoC