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