Skip to content

Commit

Permalink
feat(message-system): target user by device fw revision and bl version
Browse files Browse the repository at this point in the history
(cherry picked from commit 2aa5f33)
  • Loading branch information
tomasklim authored and vdovhanych committed Apr 26, 2022
1 parent 33df244 commit 1a1572b
Show file tree
Hide file tree
Showing 6 changed files with 434 additions and 8 deletions.
9 changes: 8 additions & 1 deletion docs/misc/message_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,16 @@ Structure of config, types and optionality of specific keys can be found in the
{
// Possible values: "1" or "T"
"model": "1",
"firmware": "1.9.4",
/*
Beware
- firmware version in bootloader mode is unavailable on model 1
- bootloader version is available only in bootloader mode
*/
"firmware": "2.4.1",
"bootloader": "2.0.4",
// Possible values: "*", "bitcoin-only", and "regular"
"variant": "bitcoin-only",
"firmwareRevision": "*",
"vendor": "trezor.io"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,30 @@
"items": {
"title": "Device",
"type": "object",
"required": ["model", "firmware", "variant", "vendor"],
"required": [
"model",
"firmwareRevision",
"firmware",
"bootloader",
"variant",
"vendor"
],
"properties": {
"model": {
"title": "Model",
"type": "string",
"enum": ["T", "1"]
},
"firmwareRevision": {
"title": "Firmware Revision",
"type": "string"
},
"firmware": {
"$ref": "#/definitions/version"
},
"bootloader": {
"$ref": "#/definitions/version"
},
"variant": {
"title": "Firmware Variant",
"type": "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/suite/src/support/tests/setupJest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ const getMessageSystemConfig = (
{
model: 'T',
firmware: '2.1.1',
bootloader: '*',
firmwareRevision: '*',
variant: 'regular',
vendor: 'trezor.io',
},
Expand Down
Loading

0 comments on commit 1a1572b

Please sign in to comment.