#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

#99 in Magic Beans

Download history 1775/week @ 2023-12-07 2029/week @ 2023-12-14 1574/week @ 2023-12-21 944/week @ 2023-12-28 1624/week @ 2024-01-04 2453/week @ 2024-01-11 1869/week @ 2024-01-18 1517/week @ 2024-01-25 937/week @ 2024-02-01 1483/week @ 2024-02-08 1933/week @ 2024-02-15 1719/week @ 2024-02-22 1422/week @ 2024-02-29 1671/week @ 2024-03-07 1449/week @ 2024-03-14 1412/week @ 2024-03-21

6,249 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
~160K SLoC