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

Download history 1381/week @ 2024-07-21 1348/week @ 2024-07-28 1186/week @ 2024-08-04 1900/week @ 2024-08-11 1235/week @ 2024-08-18 1375/week @ 2024-08-25 1297/week @ 2024-09-01 1129/week @ 2024-09-08 1189/week @ 2024-09-15 1678/week @ 2024-09-22 1293/week @ 2024-09-29 580/week @ 2024-10-06 1088/week @ 2024-10-13 975/week @ 2024-10-20 1316/week @ 2024-10-27 1122/week @ 2024-11-03

4,524 downloads per month
Used in 15 crates (5 directly)

Apache-2.0

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