Skip to content

Latest commit

 

History

History

fungible-token

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fungible Token (FT)

Example implementation of a 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 as a base-10 string. E.g. "100".
  • This does not include escrow functionality, as ft_transfer_call provides a superior approach. An escrow system can, of course, be added as a separate contract.

Building

To build run:

./build.sh

Testing

To test run:

cargo test --package fungible-token -- --nocapture

Changelog

1.0.0

0.3.0

Breaking storage change

  • Switching UnorderedMap to LookupMap. It makes it cheaper and faster due to decreased storage access.