Expand description

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

Modules

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

Contract ownership pattern

Contract method pausing/unpausing

Role-based access control

Utility functions for storage key generation, storage fee management

Macros

Implements the ownership pattern on a contract struct

Derive Macros

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

Creates a managed, lazily-loaded Ownership instance for the targeted #[near_bindgen] struct. Creates an externally-accessible Ownable implementation, as well as an internal-only OwnershipController implementation.

Makes the contract pausable. Provides an external implementation of the Pausable trait, and an internal-only implementation of the PausableController trait.