Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Models

The pipeline

Do not change @trezor/connect/src/data/models.ts manually.

The one and only source of truth is models.json definition 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

  1. Update trezor-common submodule:
 yarn update-submodules
  1. Copy models.json to trezor/connect/src/data/models.ts:
yarn update-models