Supported coins

The pipeline

Do not change @trezor/connect-common/files/coins.json manually.

The one and only source of truth are *.json definitions declared and maintained in the firmware repository.

These are exported to a read-only trezor-common repository.

trezor-common is included as git submodule mounted at submodules/trezor-common.

Update and maintenance in @trezor/connect

Make sure that desired [coin].json definition is present in trezor-firmware repository and corresponding support for connect is enabled.

  1. Update trezor-common submodule:
 yarn update-submodules
  1. Build src/data/coins.json file using trezor-common/cointool:

You need to have a python3 environment setup in order to be able to run it.

Create a python virtualenv:

python3 -m venv .venv
. .venv/bin/activate

Then you run pip with the requirements.txt file form the trezor-common submodule:

pip install -r submodules/trezor-common/tools/requirements.txt

Now you have all the required dependencies install so you can finally run the script that will update the coins:

yarn update-coins