#near #mocking #logic #smart-contracts #expose #interface #specification

near-vm-logic

This crate implements the specification of the interface that Near blockchain exposes to the smart contracts

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

#1647 in Magic Beans

Download history 1174/week @ 2024-01-02 2335/week @ 2024-01-09 2140/week @ 2024-01-16 1491/week @ 2024-01-23 1124/week @ 2024-01-30 1376/week @ 2024-02-06 1815/week @ 2024-02-13 1631/week @ 2024-02-20 1812/week @ 2024-02-27 1527/week @ 2024-03-05 1374/week @ 2024-03-12 1777/week @ 2024-03-19 1583/week @ 2024-03-26 1952/week @ 2024-04-02 1249/week @ 2024-04-09 1664/week @ 2024-04-16

6,716 downloads per month
Used in 17 crates (5 directly)

Apache-2.0

250KB
4K 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

~9MB
~159K SLoC