#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

#2724 in Magic Beans

Download history 1781/week @ 2024-04-20 1614/week @ 2024-04-27 1611/week @ 2024-05-04 1588/week @ 2024-05-11 1726/week @ 2024-05-18 1846/week @ 2024-05-25 1594/week @ 2024-06-01 834/week @ 2024-06-08 1465/week @ 2024-06-15 1403/week @ 2024-06-22 726/week @ 2024-06-29 801/week @ 2024-07-06 1456/week @ 2024-07-13 1479/week @ 2024-07-20 1352/week @ 2024-07-27 1080/week @ 2024-08-03

5,441 downloads per month
Used in 16 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.5–9MB
~148K SLoC