1.3.0 • Published 5 years ago

@aragon/templates-tokens v1.3.0

Weekly downloads
28
License
GPL-3.0-or-later
Repository
-
Last release
5 years ago

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

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago