Casper Fungible Tokens (ERC-20 Standard)
A library for developing fungible tokens (ERC-20 Tokens) tokens for the Casper Network.
The main functionality is provided via the ERC-20 struct, and is intended to be consumed by a smart contract written to be deployed on the Casper Network.
Usage
To create an example fungible token contract which uses this library, use the cargo-casper
tool:
cargo install cargo-casper
cargo casper --erc20 <PATH TO NEW PROJECT>
This command will generate a new project structure with an example token contract based on an example project.
Development
Make sure the wasm32-unknown-unknown
Rust target is installed.
make prepare
Build Smart Contracts
To build the example fungible token contract and supporting test contracts:
make build-contracts
Test
make test
JavaScript Client SDK
A JavaScript client SDK can be used to interact with the fungible token contract.
Documentation
For more information, visit the below guides:
- Casper Fungible Token Tutorial - An illustrated guide on how to implement, deploy, and test an fungible token contract.
- Casper Fungible Token How-To Guide - An example-driven guide on how to setup, query, transfer, approve, and check the balance of an fungible token contract.
- Casper Fungible Token Quick Deploying Guide - A quick guide on how to deploy the Casper fungible token to the Casper Network.