@aragon/templates-tokens

Test token deployer for Aragon apps

Hey! ๐Ÿ‘‹ templates-tokens is an outdated package and should not be used anymore\!
Last updated a year ago by sohkai .
GPL-3.0-or-later ยท Original npm ยท Tarball ยท package.json
$ cnpm install @aragon/templates-tokens 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.3.0                                ...           latest (a year ago)

6 Versions

  • 1.3.0 [deprecated]           ...           a year ago
  • 1.2.1 [deprecated]           ...           a year ago
  • 1.2.0 [deprecated]           ...           2 years ago
  • 1.1.1 [deprecated]           ...           3 years ago
  • 1.1.0 [deprecated]           ...           3 years ago
  • 1.0.0 [deprecated]           ...           3 years ago
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 7
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 ยฉ taobao.org |