Skip to content

Test ERC20 Token

Constance Shi edited this page Nov 6, 2020 · 10 revisions

Overview

To manually test our write/privileged operations, we have deployed a test token to Ropsten using this github repo. After you're done, add the test token information (contract address, token name, etherscan link, etc.) to the wiki so that other people know how to use it.

Test Token Information

Contract Address

0xfc7e3a2554e2d4b23e41c81b14065ee31009cc31
Also found in our utils/constants.js file as TEST_TOKEN_CONTRACT_ADDRESS

Etherscan Link

https://ropsten.etherscan.io/address/0xfc7e3a2554e2d4b23e41c81b14065ee31009cc31

Proxy Contract Address (decompile bytecode for methods available) https://ropsten.etherscan.io/address/0xe9404c75d0c2c6fc9fe5c07f36b5ae15547b546c

To Test Write Operations

Follow the below instructions for specific write operations
All of these involve waiting for the transfers to go through, and you must approve the metamask connection and transfer events and have enough eth to do so
You can decrease the gas price in metamask when the extension pops up, but the lower the gas price, the slower the event will be processed
To check if the event is processed, check the events tab of the first etherscan link above

To Add a Minter

Ask Tetsu to add you as the MasterMinter Then navigate to pages/test-token/index and uncomment the minting section to add minters and corresponding allowances

To Mint

See above to become the MasterMinter first or ask Tetsu to add you as a minter Then navigate to pages/test-token/index and uncomment the minting section and mint

To Burn

See above to become the MasterMinter first or ask Tetsu to add you as a minter Then navigate to pages/test-token/index and uncomment the burning action and burn

To Pause/Unpause

Ask Tetsu to add you as the pauser Then navigate to pages/test-token/index and uncomment the pausing section and pause/unpause

To BlackList/UnBlackList

Ask Tetsu to add you as the blacklister Then navigate to pages/test-token/index and uncomment the blacklisting section and blacklist/unblacklist

Adding the Test Token to Metamask

  1. Open Metamask
  2. Scroll down to find and click the Add Token button
  3. Navigate to the right tab Custom Token
  4. Enter the test token contract address (0xe9404c75D0c2C6FC9FE5c07f36b5aE15547B546c)
  5. Enter a name for the test token to show up as in Metamask (e.g. test token)
  6. Press Next and Add Tokens to confirm
  7. The token should now show up in Metamask under Assets and can be used when on the Ropsten network

More Information

For more documentation on methods, please visit the docs folder of the centre tokens github repo
To view methods and implementations of these methods, visit the etherscan link, navigate right to the Contract tab, and Decompile Bytecode

Clone this wiki locally