Expand description

Helpful functions and macros for developing smart contracts on NEAR Protocol.

Modules

Helpers for #[derive(near_contract_tools::Event)]

Migrate default struct between two schemas

Owner pattern

Contract method pausing/unpausing

Role-based access control

Managed storage slots

Implementations of NEP standards

Utility functions for storage key generation, storage fee management

Derive Macros

Derives an NEP-297-compatible event emitting implementation of Event.

Implements NEP-141 and NEP-148 functionality, like #[derive(Nep141, Nep148)].

Migrate a contract’s default struct from one schema to another.

Adds NEP-141 fungible token core functionality to a contract. Exposes ft_* functions to the public blockchain, implements internal controller and receiver functionality (see: near_contract_tools::standard::nep141).

Adds NEP-148 fungible token metadata functionality to a contract. Metadata is hardcoded into the contract code, and is therefore not stored in storage.

Creates a managed, lazily-loaded Owner implementation for the targeted #[near_bindgen] struct.

Makes a contract pausable. Provides an implementation of the Pause trait.

Adds role-based access control. No external methods are exposed.