This package has been deprecated

Author message:

Hey! πŸ‘‹ templates-tokens is an outdated package and should not be used anymore\!

@aragon/templates-tokens

1.3.0Β β€’Β PublicΒ β€’Β Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @aragon/templates-tokens

Weekly Downloads

19

Version

1.3.0

License

GPL-3.0-or-later

Unpacked Size

14.8 kB

Total Files

16

Last publish

Collaborators

  • chilcano
  • heuer
  • brickpop
  • arabot-1
  • hack0
  • aragon-ci