Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

gear-foundation/dapps-gear-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gear library for programs

Build License Docs

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::*};

License

The source code is licensed under the MIT license.