forked from SuperNETorg/Agama
-
Notifications
You must be signed in to change notification settings - Fork 46
Add ERC20 token to Agama Desktop App
pbca26 edited this page Mar 15, 2019
·
3 revisions
The Agama desktop code comprises of two parts. Backend and UI. This ERC20 token adding guide will cover both. All the files needs changing are linked.
- Add a contract ID
https://github.com/pbca26/agama-wallet-lib/blob/dev/src/eth-erc20-contract-id.js
- Add token decimals (optional, only if it's different from default 18 value)
https://github.com/pbca26/agama-wallet-lib/blob/dev/src/eth-erc20-decimals.js
- Submit a PR, use dev branch!
- Drop a 100 x 100 px (better 200 x 200 px) logo into
https://github.com/KomodoPlatform/EasyDEX-GUI/tree/dev/react/src/assets/images/cryptologo/eth
- Add ERC20 token name to coins translation file
https://github.com/KomodoPlatform/EasyDEX-GUI/blob/dev/react/src/translate/coins.js#L183
, look for "CRYPTO". - Submit a PR, use dev branch!
Search for your token on Etherscan.io or use a direct link with your contract ID
example: https://etherscan.io/token/0x5ca9a71b1d01849c0a95490cc00559717fcf0d1d
After you open the page you should see number of decimals used for a contract.
Please make sure an ERC20 token is working in Agama before making a PR. Pull requests containing partial information or not working assets will remain unmerged until all requirements are fulfilled.