[][src]Crate near_bindgen

Re-exports

pub use near_bindgen_macros::near_bindgen;

Modules

collections

Structs

Environment

The methods that are available by the smart contracts to call. All methods below panic if their invocation causes smart contract to exceed guest memory or internal limits of the host (like number of registers). This is a safe wrapper around low-level BlockchainInterface.

MockedBlockchain

Mocked blockchain that can be used in the tests for the smart contracts. It implements BlockchainInterface by redirecting calls to VMLogic. It unwraps errors of VMLogic to cause panic during the unit test similarly to how errors of VMLogic would cause the termination of guest program execution. Unit tests can even assert the expected error message.

Traits

BlockchainInterface

A low-level interface of either real or mocked blockchain that contract interacts with.