This repository contains a reference contract implementation and tests for fungible tokens on a Casper network, following the CEP-18 standard.
Install the wasm32-unknown-unknown
Rust target with the following command.
make prepare
To build the reference fungible token contract and supporting tests, run this command:
make test
Find the Wasm for the contract in the following directory:
casper/cep18/target/wasm32-unknown-unknown/release/cep18.wasm
A JavaScript client SDK has been provided to interact with the fungible token contract.
For more information, visit the links below:
- 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 quick start guide for launching a CEP-18 token on a Casper network using the Casper CLI client.
- Exploring the CEP18 Contracts - A guide for finding the necessary values to interact with a CEP-18 instance after installation in global state.
- CEP-18 Token Transfers and Allowances - A guide to transferring CEP-18 tokens and approving allowances.