This library provides standard functions used in the implementation of contracts:
- fungible token
- non fungible token
- multitoken
- etc
To use the default implementation you should include the packages in your Cargo.toml
file:
gear-lib = { git = "https://github.com/gear-dapps/gear-lib.git" }
gear-lib-derive = { git = "https://github.com/gear-dapps/gear-lib.git" }
use derive_traits::{NFTStateKeeper, NFTCore, NFTMetaState};
use gear_contract_libraries::non_fungible_token::{nft_core::*, state::*, token::*};
The source code is licensed under the MIT license.