Skip to content

Latest commit

 

History

History
 
 

non-fungible-token

Non-fungible Token (NFT)

Example implementation of a non-fungible token contract which uses near-contract-standards.

NOTES:

  • The maximum balance value is limited by U128 (2**128 - 1).
  • JSON calls should pass U128 or U64 as a base-10 string. E.g. "100".
  • The core NFT standard does not include escrow/approval functionality, as nft_transfer_call provides a superior approach. Please see the approval management standard if this is the desired approach.

Building

To build run:

./build.sh

Testing

To test run:

cargo test --workspace --package non-fungible-token -- --nocapture