{"repo":"near/near-sdk-contract-tools","free":true,"listed":false,"github":"https://github.com/near/near-sdk-contract-tools","clone":"git clone https://github.com/near/near-sdk-contract-tools.git","description":"Helpful functions and macros for developing smart contracts on NEAR Protocol.","language":"Rust","stars":46,"topics":["blockchain","dapp","near","nearprotocol","smart-contracts","wasm","webassembly","rust"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"near-sdk-contract-tools NFT FT What is it? This package is a collection of common tools and patterns in NEAR smart contract development: - Storage fee management. - Escrow pattern and derive macro. - Owner pattern and derive macro. - Pause pattern and derive macro. - Role-based access control. - Derive macros for NEP standards: - [NEP-141][nep141] (fungible token), extension [NEP-148][nep148]. - [NEP-145][nep145] (storage management), and integrations for the fungible token and non-fungible token standards. - [NEP-171][nep171] (non-fungible token), extensions [NEP-177][nep177], [NEP-178][nep178], [NEP-181][nep181]. - [NEP-245][nep245] (multi token), extensions [Metadata][nep245metadata], [Events (integrated)][nep245events]. - [NEP-297][nep297] (events). Not to be confused with near-contract-standards , which contains official implementations of standardized NEPs. This crate is intended to be a complement to near-contract-standards . You can think of this collection of common tools and patterns (mostly in the form of derive macros) as a sort of OpenZeppelin for NEAR. Installation Examples See also: the full integration tests. Owner The Owner derive macro exposes the following methods to the blockchain: Events The #[event] macro can be applied to structs or enums. Fungible Token To create a contract that is compatible with the [NEP-141][nep141], [NEP-145][nep145], and [NEP-148][nep148] standards, that emits standard-compliant ([NEP-297][nep297]) events. Standalone macros for ea","default_branch":null,"files":null,"tree":[],"storefront":"/r/near","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/near/near-sdk-contract-tools/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}