[][src]Crate near_bindgen

Modules

collections
env

The methods that are available by the smart contracts to call. This is a safe wrapper around low-level BlockchainInterface.

Macros

testing_env

Structs

Config
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.

Promise
VMContext

Context for the contract execution.

Enums

PromiseOrValue
PromiseResult

When there is a callback attached to one or more contract calls the execution results of these calls are available to the contract invoked through the callback.

ReturnData

Traits

BlockchainInterface

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

Type Definitions

AccountId
Balance
BlockIndex
Gas
IteratorIndex
PromiseIndex
PublicKey
ReceiptIndex
StorageUsage

Attribute Macros

callback_args

callback_args is a marker attribute it does not generate code by itself.

callback_args_vec

callback_args_vec is a marker attribute it does not generate code by itself.

ext_contract
near_bindgen