#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

#2512 in Magic Beans

Download history 1418/week @ 2024-03-13 1739/week @ 2024-03-20 1610/week @ 2024-03-27 1784/week @ 2024-04-03 1436/week @ 2024-04-10 1810/week @ 2024-04-17 1734/week @ 2024-04-24 1466/week @ 2024-05-01 1692/week @ 2024-05-08 1553/week @ 2024-05-15 1717/week @ 2024-05-22 1947/week @ 2024-05-29 1291/week @ 2024-06-05 1091/week @ 2024-06-12 1325/week @ 2024-06-19 1171/week @ 2024-06-26

5,154 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

~9.5MB
~162K SLoC