This package providing an easy way to create extendable AEX-9 fungible tokens in Sophia by using a simple API.
npm run build
npm run test
npm install aeternity-tokens
const aeternityTokens = require('aeternity-tokens');
var newToken = aeternityTokens.newToken([]);
import * as aeternityTokens from 'aeternity-tokens';
console.log(aeternityTokens.newToken([]))
Supported extensions
- allowances
- mintable
- burnable
- swappable
Example use:
import * as aeternityTokens from 'aeternity-tokens';
const tokenAllowances = aeternityTokens.newToken(['allowances']);
const tokenMintable = aeternityTokens.newToken(['mintable']);
const tokenBurnable = aeternityTokens.newToken(['burnable']);
const tokenSwappable = aeternityTokens.newToken(['burnable', 'swappable']);
...
const tokenMintableBurnable = aeternityTokens.newToken(['mintable', 'burnable']);
...
const tokenMintableBurnableAllowances = aeternityTokens.newToken(['mintable', 'burnable', 'allowances']);