@aragon/templates-tokens

Test token deployer for Aragon apps

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@aragon/templates-tokens
Minified + gzip package size for @aragon/templates-tokens in KB

Readme

Tokens template

Note: the contracts in this package are unmaintained and should not be used for real token deployments!

Used for creating test tokens in test networks (testnet Aragon organizations are still using these fake tokens).

A Factory can mint unlimited tokens of any of its created tokens.

Results of a deployment are manually saved in index.js, which allows the following:

Getting test tokens

const testTokens = require('@aragon/templates-tokens')
const network = 'rinkeby'

const promisedTickers = testTokens[network].tokens.map(addr => (
    Token.at(addr).symbol.call() // or however the contract is instantiated
))

const tickers = Promise.all(promisedTickers)

Minting tokens

const testTokens = require('@aragon/templates-tokens')
const network = 'rinkeby'

factory = TokenFactory.at(testTokens[rinkeby]) // or however the contract is instantiated
await factory.mint(testTokens[network].tokens[0], recipient, 100000)

Example mint tx in rinkeby

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.