@aragonone/erc20-faucet
ERC20 token faucet
Last updated 9 months ago by sohkai .
GPL-3.0 · Original npm · Tarball · package.json
$ cnpm install @aragonone/erc20-faucet 
SYNC missed versions from official npm registry.

ERC20 Token Faucet Travis branch

ERC20 token faucet contract that can be managed to fund accounts based on a periodic quota.

1. Set quotas

  /**
  * @notice Set a list of token quotas
  * @param _tokens List of ERC20 tokens to be set
  * @param _periods List of periods length for each ERC20 token quota
  * @param _amounts List of quota amounts for each ERC20 token
  */
  function setQuotas(ERC20[] calldata _tokens, uint256[] calldata _periods, uint256[] calldata _amounts) external onlyOwner;

2. Donate

  /**
  * @notice Donate `@tokenAmount(_token, _amount)`
  * @param _token ERC20 token being deposited
  * @param _token Amount being deposited
  */
  function donate(ERC20 _token, uint256 _amount) external;

3. Withdraw

  /**
  * @notice Withdraw `@tokenAmount(_token, _amount)`
  * @param _token ERC20 token being withdrawn
  * @param _token Amount being withdrawn
  */
  function withdraw(ERC20 _token, uint256 _amount) external;

Current Tags

  • 1.0.0                                ...           latest (9 months ago)

1 Versions

  • 1.0.0                                ...           9 months ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |