This is a fork of fungible-token-example that adapts it to this library's #[contract] attribute.
Example implementation of a Fungible Token contract which uses contract-standards and simulation tests.
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_callprovides a superior approach. An escrow system can, of course, be added as a separate contract.
To build run:
./build.shTo test run:
cargo test --all
cargo run --example heavyTo see the doc:
cargo doc --no-deps --open -p contract-interface -p contract-standards -p fungible-token -p defiThen on the bottom-left you can choose the package.