The Agama desktop code comprises of two parts. Backend and UI. This assetchain adding guide will cover both. All the files needs changing are linked. If you want to add Bitcoin compatible coins follow this guide.
Backend
- Add a default asset chain port /routes/ports.js@dev
- Add an electrum server for your asset (optional) /routes/electrumjs/electrumServers.js@dev
- Add an asset chain to the list of kmd assets /routes/shepherd/electrum/network.js@dev#L6
- Submit a PR
UI:
- Add asset chain entries to this file KomodoPlatform/EasyDEX-GUI:react/src/components/addcoin/payload.js@dev#L45
- Add an asset chain to UI coin helper file KomodoPlatform/EasyDEX-GUI:react/src/util/coinHelper.js@dev#L9
- Add an asset chain to Add Coin component render KomodoPlatform/EasyDEX-GUI:react/src/components/addcoin/addcoinOptionsAC.js@dev#L28
- Drop a 100 x 100 px (better 200 x 200 px) logo into KomodoPlatform/EasyDEX-GUI:react/src/assets/images/cryptologo@dev
- Add an asset chain explorer KomodoPlatform/EasyDEX-GUI:react/src/util/explorerList.js@dev#L4
- Add asset chain name to EN translation file KomodoPlatform/EasyDEX-GUI:react/src/translate/en.js@dev#L828
- Submit a PR
Please make sure an asset chain is working in Agama before making a commit. Pull requests containing partial information or not working assets/servers will remain unmerged until all requirements are fulfilled.
Source: https://docs.komodoplatform.com/en/latest/agama/add-Komodo-Assetchains-Agama-Desktop.html