We currently recognize six categories of coins: bitcoin, eth, erc20, nem, trx, misc. See defs
You can add new coin/token/network to the official Onekey firmware.
If the coin you are adding is a fork of Bitcoin or other cryptocurrency we already support (in other words, new app is not needed) you can modify the definitions in the onekey-firmware repository and file a PR. In such case the coin does not have to be in TOP30 (see below), but we still reserve the right not to include the coin. The location depends on the type of the asset to be added:
- Bitcoin clones should be added to the common/defs/bitcoin subdirectory as separate .json files
- Ethereum networks/chains should be added to the ethereum-lists/chains
- Ethereum tokens should be added to the ethereum-lists/tokens repository
- NEM mosaics should be added to the common/defs/nem/nem_mosaics.json file
- TRON token should be added to the common/defs/tron/tron_tokens.json file
- Other coins should be added to the common/defs/misc/misc.json file.
You can add a new coin to misc.json by following the steps below
- Protobuf Definitions
- Implementation of user-facing features app
- Command line client
- Unit tests
- Device tests
In addition to the steps to add a coin to misc, coin_info.py needs to be modified and you can refer to here
See CONTRIBUTING.md