@onekeyfe/hd-core 1.2.0-alpha.34 → 1.2.0-alpha.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/__tests__/AllNetworkGetAddressBase.tracing.test.ts +74 -0
  2. package/__tests__/DeviceCommands.test.ts +84 -0
  3. package/__tests__/DeviceEventRegistration.test.ts +6 -0
  4. package/__tests__/device-settings.test.ts +3 -0
  5. package/__tests__/device-wallet-session-store.test.ts +80 -7
  6. package/__tests__/evmSignTransaction.test.ts +69 -0
  7. package/__tests__/get-device-state.test.ts +180 -40
  8. package/__tests__/open-wallet-session.test.ts +314 -55
  9. package/__tests__/protocol-v2-ui-lifecycle.test.ts +56 -0
  10. package/__tests__/protocol-v2.test.ts +768 -139
  11. package/dist/api/FirmwareUpdateV4.d.ts +1 -0
  12. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  13. package/dist/api/GetPassphraseState.d.ts.map +1 -1
  14. package/dist/api/OpenWalletSession.d.ts.map +1 -1
  15. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
  16. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  17. package/dist/api/evm/protocol.d.ts +3 -0
  18. package/dist/api/evm/protocol.d.ts.map +1 -0
  19. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +1 -1
  20. package/dist/api/protocol-v2/ProtocolInfoRequest.d.ts.map +1 -1
  21. package/dist/core/deviceEventRegistration.d.ts +2 -0
  22. package/dist/core/deviceEventRegistration.d.ts.map +1 -1
  23. package/dist/core/index.d.ts.map +1 -1
  24. package/dist/device/Device.d.ts +25 -6
  25. package/dist/device/Device.d.ts.map +1 -1
  26. package/dist/device/DeviceCommands.d.ts.map +1 -1
  27. package/dist/device/DeviceWalletSessionStore.d.ts +0 -1
  28. package/dist/device/DeviceWalletSessionStore.d.ts.map +1 -1
  29. package/dist/events/device.d.ts +4 -0
  30. package/dist/events/device.d.ts.map +1 -1
  31. package/dist/events/ui-request.d.ts +27 -2
  32. package/dist/events/ui-request.d.ts.map +1 -1
  33. package/dist/index.d.ts +63 -12
  34. package/dist/index.js +1164 -904
  35. package/dist/protocols/protocol-v2/features.d.ts +17 -6
  36. package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
  37. package/dist/protocols/protocol-v2/index.d.ts +2 -2
  38. package/dist/protocols/protocol-v2/index.d.ts.map +1 -1
  39. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts +1 -0
  40. package/dist/protocols/protocol-v2/settingsUnlockPolicy.d.ts.map +1 -1
  41. package/dist/protocols/protocol-v2/uiInteraction.d.ts +3 -3
  42. package/dist/protocols/protocol-v2/uiInteraction.d.ts.map +1 -1
  43. package/dist/protocols/protocol-v2/unlockRetry.d.ts.map +1 -1
  44. package/dist/protocols/protocol-v2/walletSession.d.ts +5 -1
  45. package/dist/protocols/protocol-v2/walletSession.d.ts.map +1 -1
  46. package/dist/types/api/openWalletSession.d.ts +1 -1
  47. package/dist/types/api/openWalletSession.d.ts.map +1 -1
  48. package/dist/types/api/protocolV2.d.ts +2 -2
  49. package/dist/types/api/protocolV2.d.ts.map +1 -1
  50. package/dist/types/device.d.ts +2 -1
  51. package/dist/types/device.d.ts.map +1 -1
  52. package/dist/utils/deviceFeaturesUtils.d.ts +2 -0
  53. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  54. package/dist/utils/patch.d.ts +1 -1
  55. package/dist/utils/patch.d.ts.map +1 -1
  56. package/package.json +4 -4
  57. package/src/api/BaseMethod.ts +1 -1
  58. package/src/api/FirmwareUpdateV4.ts +39 -14
  59. package/src/api/GetPassphraseState.ts +17 -0
  60. package/src/api/OpenWalletSession.ts +31 -8
  61. package/src/api/allnetwork/AllNetworkGetAddressBase.ts +24 -2
  62. package/src/api/device/DeviceUnlock.ts +1 -1
  63. package/src/api/evm/EVMGetAddress.ts +2 -2
  64. package/src/api/evm/EVMGetPublicKey.ts +2 -2
  65. package/src/api/evm/EVMSignMessage.ts +2 -2
  66. package/src/api/evm/EVMSignTransaction.ts +2 -2
  67. package/src/api/evm/EVMSignTypedData.ts +35 -45
  68. package/src/api/evm/EVMVerifyMessage.ts +2 -2
  69. package/src/api/evm/protocol.ts +6 -0
  70. package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +2 -2
  71. package/src/api/protocol-v2/DeviceUploadWallpaper.ts +1 -1
  72. package/src/api/protocol-v2/ProtocolInfoRequest.ts +3 -1
  73. package/src/core/deviceEventRegistration.ts +4 -0
  74. package/src/core/index.ts +46 -4
  75. package/src/data/messages/messages-protocol-v2.json +408 -485
  76. package/src/device/Device.ts +266 -43
  77. package/src/device/DeviceCommands.ts +12 -2
  78. package/src/device/DeviceWalletSessionStore.ts +0 -14
  79. package/src/deviceProfile/buildDeviceFeatures.ts +1 -1
  80. package/src/events/device.ts +4 -0
  81. package/src/events/ui-request.ts +32 -2
  82. package/src/protocols/protocol-v2/features.ts +65 -16
  83. package/src/protocols/protocol-v2/index.ts +5 -0
  84. package/src/protocols/protocol-v2/settingsUnlockPolicy.ts +8 -3
  85. package/src/protocols/protocol-v2/uiInteraction.ts +31 -5
  86. package/src/protocols/protocol-v2/unlockRetry.ts +51 -18
  87. package/src/protocols/protocol-v2/walletSession.ts +172 -64
  88. package/src/types/api/openWalletSession.ts +1 -1
  89. package/src/types/api/protocolV2.ts +2 -2
  90. package/src/types/device.ts +2 -0
  91. package/src/utils/deviceFeaturesUtils.ts +4 -0
@@ -79,8 +79,6 @@
79
79
  "MessageType_ResetDevice": 14,
80
80
  "MessageType_SetBusy": 16,
81
81
  "MessageType_Features": 17,
82
- "MessageType_PinMatrixRequest": 18,
83
- "MessageType_PinMatrixAck": 19,
84
82
  "MessageType_Cancel": 20,
85
83
  "MessageType_LockDevice": 24,
86
84
  "MessageType_ApplySettings": 25,
@@ -142,20 +140,6 @@
142
140
  "MessageType_CosiSignature": 74,
143
141
  "MessageType_BatchGetPublickeys": 10016,
144
142
  "MessageType_EcdsaPublicKeys": 10017,
145
- "MessageType_DebugLinkDecision": 100,
146
- "MessageType_DebugLinkGetState": 101,
147
- "MessageType_DebugLinkState": 102,
148
- "MessageType_DebugLinkStop": 103,
149
- "MessageType_DebugLinkLog": 104,
150
- "MessageType_DebugLinkMemoryRead": 110,
151
- "MessageType_DebugLinkMemory": 111,
152
- "MessageType_DebugLinkMemoryWrite": 112,
153
- "MessageType_DebugLinkFlashErase": 113,
154
- "MessageType_DebugLinkLayout": 9001,
155
- "MessageType_DebugLinkReseedRandom": 9002,
156
- "MessageType_DebugLinkRecordScreen": 9003,
157
- "MessageType_DebugLinkEraseSdCard": 9005,
158
- "MessageType_DebugLinkWatchLayout": 9006,
159
143
  "MessageType_EthereumGetPublicKey": 450,
160
144
  "MessageType_EthereumPublicKey": 451,
161
145
  "MessageType_EthereumGetAddress": 56,
@@ -419,13 +403,6 @@
419
403
  "MessageType_TonSignProof": 11905,
420
404
  "MessageType_TonSignedProof": 11906,
421
405
  "MessageType_TonTxAck": 11907,
422
- "MessageType_ScdoGetAddress": 12001,
423
- "MessageType_ScdoAddress": 12002,
424
- "MessageType_ScdoSignTx": 12003,
425
- "MessageType_ScdoSignedTx": 12004,
426
- "MessageType_ScdoTxAck": 12005,
427
- "MessageType_ScdoSignMessage": 12006,
428
- "MessageType_ScdoSignedMessage": 12007,
429
406
  "MessageType_AlephiumGetAddress": 12101,
430
407
  "MessageType_AlephiumAddress": 12102,
431
408
  "MessageType_AlephiumSignTx": 12103,
@@ -448,11 +425,6 @@
448
425
  "MessageType_NeoAddress": 12302,
449
426
  "MessageType_NeoSignTx": 12303,
450
427
  "MessageType_NeoSignedTx": 12304,
451
- "MessageType_UiviewShowAddressRequest": 30200,
452
- "MessageType_UiviewShowPublicKeyRequest": 30201,
453
- "MessageType_UiviewConfirmTxRequest": 30202,
454
- "MessageType_UiviewConfirmSignMessageRequest": 30203,
455
- "MessageType_UiviewResponse": 30204,
456
428
  "MessageType_DeviceFactoryInfoSet": 60000,
457
429
  "MessageType_DeviceFactoryInfoGet": 60001,
458
430
  "MessageType_DeviceFactoryInfo": 60002,
@@ -473,19 +445,11 @@
473
445
  "MessageType_DeviceCertificateRead": 60422,
474
446
  "MessageType_DeviceCertificateSignature": 60423,
475
447
  "MessageType_DeviceCertificateSign": 60424,
476
- "MessageType_SetWallpaper": 60430,
477
- "MessageType_GetWallpaper": 60431,
478
- "MessageType_Wallpaper": 60432,
448
+ "MessageType_DeviceMiscUsbMscControl": 60440,
479
449
  "MessageType_DeviceInfoGet": 60600,
480
450
  "MessageType_DeviceInfo": 60601,
481
451
  "MessageType_DeviceStatusGet": 60602,
482
452
  "MessageType_DeviceStatus": 60603,
483
- "MessageType_DevGetOnboardingStatus": 60604,
484
- "MessageType_DevOnboardingStatus": 60605,
485
- "MessageType_DeviceSessionGet": 60606,
486
- "MessageType_DeviceSession": 60607,
487
- "MessageType_DeviceSessionAskPin": 60608,
488
- "MessageType_DeviceSessionAskPassphrase": 60609,
489
453
  "MessageType_FilesystemPermissionFix": 60800,
490
454
  "MessageType_FilesystemPathInfo": 60801,
491
455
  "MessageType_FilesystemPathInfoQuery": 60802,
@@ -501,7 +465,13 @@
501
465
  "MessageType_DeviceFirmwareUpdateRequest": 61000,
502
466
  "MessageType_DeviceFirmwareUpdateStatusGet": 61001,
503
467
  "MessageType_DeviceFirmwareUpdateStatus": 61002,
504
- "MessageType_PortfolioUpdate": 61200
468
+ "MessageType_DeviceSessionGet": 61200,
469
+ "MessageType_DeviceSession": 61201,
470
+ "MessageType_DeviceSessionAskPin": 61202,
471
+ "MessageType_DeviceSessionAskPassphrase": 61203,
472
+ "MessageType_PortfolioUpdate": 61400,
473
+ "MessageType_OnboardingStatusGet": 61600,
474
+ "MessageType_OnboardingStatus": 61601
505
475
  },
506
476
  "reserved": [
507
477
  [90, 92],
@@ -5960,30 +5930,6 @@
5960
5930
  }
5961
5931
  }
5962
5932
  },
5963
- "InternalMyAddressRequest": {
5964
- "fields": {
5965
- "coin_type": {
5966
- "rule": "required",
5967
- "type": "uint32",
5968
- "id": 1
5969
- },
5970
- "chain_id": {
5971
- "rule": "required",
5972
- "type": "uint32",
5973
- "id": 2
5974
- },
5975
- "account_index": {
5976
- "rule": "required",
5977
- "type": "uint32",
5978
- "id": 3
5979
- },
5980
- "derive_type": {
5981
- "rule": "required",
5982
- "type": "uint32",
5983
- "id": 4
5984
- }
5985
- }
5986
- },
5987
5933
  "KaspaGetAddress": {
5988
5934
  "fields": {
5989
5935
  "address_n": {
@@ -6188,28 +6134,6 @@
6188
6134
  }
6189
6135
  }
6190
6136
  },
6191
- "StartSession": {
6192
- "fields": {
6193
- "session_id": {
6194
- "type": "bytes",
6195
- "id": 1
6196
- },
6197
- "_skip_passphrase": {
6198
- "type": "bool",
6199
- "id": 2,
6200
- "options": {
6201
- "deprecated": true
6202
- }
6203
- },
6204
- "derive_cardano": {
6205
- "type": "bool",
6206
- "id": 3
6207
- }
6208
- }
6209
- },
6210
- "EndSession": {
6211
- "fields": {}
6212
- },
6213
6137
  "GetFeatures": {
6214
6138
  "fields": {}
6215
6139
  },
@@ -7332,49 +7256,6 @@
7332
7256
  }
7333
7257
  }
7334
7258
  },
7335
- "WallpaperTarget": {
7336
- "values": {
7337
- "Home": 0,
7338
- "Lock": 1
7339
- }
7340
- },
7341
- "SetWallpaper": {
7342
- "fields": {
7343
- "target": {
7344
- "rule": "required",
7345
- "type": "WallpaperTarget",
7346
- "id": 1
7347
- },
7348
- "path": {
7349
- "rule": "required",
7350
- "type": "string",
7351
- "id": 2
7352
- }
7353
- }
7354
- },
7355
- "GetWallpaper": {
7356
- "fields": {
7357
- "target": {
7358
- "rule": "required",
7359
- "type": "WallpaperTarget",
7360
- "id": 1
7361
- }
7362
- }
7363
- },
7364
- "Wallpaper": {
7365
- "fields": {
7366
- "target": {
7367
- "rule": "required",
7368
- "type": "WallpaperTarget",
7369
- "id": 1
7370
- },
7371
- "path": {
7372
- "rule": "required",
7373
- "type": "string",
7374
- "id": 2
7375
- }
7376
- }
7377
- },
7378
7259
  "ResourceUpdate": {
7379
7260
  "fields": {
7380
7261
  "file_name": {
@@ -11533,162 +11414,6 @@
11533
11414
  }
11534
11415
  }
11535
11416
  },
11536
- "ViewAmount": {
11537
- "fields": {
11538
- "is_unlimited": {
11539
- "rule": "required",
11540
- "type": "bool",
11541
- "id": 1
11542
- },
11543
- "num": {
11544
- "rule": "required",
11545
- "type": "string",
11546
- "id": 2
11547
- }
11548
- }
11549
- },
11550
- "ViewDetail": {
11551
- "fields": {
11552
- "key": {
11553
- "rule": "required",
11554
- "type": "uint32",
11555
- "id": 1
11556
- },
11557
- "value": {
11558
- "rule": "required",
11559
- "type": "string",
11560
- "id": 2
11561
- },
11562
- "is_overview": {
11563
- "rule": "required",
11564
- "type": "bool",
11565
- "id": 3
11566
- },
11567
- "has_icon": {
11568
- "rule": "required",
11569
- "type": "bool",
11570
- "id": 4
11571
- }
11572
- }
11573
- },
11574
- "ViewTipType": {
11575
- "values": {
11576
- "Default": 0,
11577
- "Highlight": 1,
11578
- "Recommend": 2,
11579
- "Warning": 3,
11580
- "Danger": 4
11581
- }
11582
- },
11583
- "ViewTip": {
11584
- "fields": {
11585
- "type": {
11586
- "rule": "required",
11587
- "type": "ViewTipType",
11588
- "id": 1
11589
- },
11590
- "text": {
11591
- "rule": "required",
11592
- "type": "string",
11593
- "id": 2
11594
- }
11595
- }
11596
- },
11597
- "ViewRawData": {
11598
- "fields": {
11599
- "initial_data": {
11600
- "rule": "required",
11601
- "type": "string",
11602
- "id": 1
11603
- },
11604
- "placeholder": {
11605
- "rule": "required",
11606
- "type": "uint32",
11607
- "id": 2
11608
- }
11609
- }
11610
- },
11611
- "ViewSignLayout": {
11612
- "values": {
11613
- "LayoutDefault": 0,
11614
- "LayoutSafeTxCreate": 1,
11615
- "LayoutFinalConfirm": 2,
11616
- "Layout7702": 3,
11617
- "LayoutFlat": 4,
11618
- "LayoutEthApprove": 5
11619
- }
11620
- },
11621
- "ViewSignPage": {
11622
- "fields": {
11623
- "title": {
11624
- "rule": "required",
11625
- "type": "string",
11626
- "id": 1
11627
- },
11628
- "amount": {
11629
- "type": "ViewAmount",
11630
- "id": 2
11631
- },
11632
- "general": {
11633
- "rule": "repeated",
11634
- "type": "ViewDetail",
11635
- "id": 3
11636
- },
11637
- "tip": {
11638
- "type": "ViewTip",
11639
- "id": 4
11640
- },
11641
- "raw_data": {
11642
- "type": "ViewRawData",
11643
- "id": 5
11644
- },
11645
- "slide_to_confirm": {
11646
- "type": "bool",
11647
- "id": 6,
11648
- "options": {
11649
- "default": true
11650
- }
11651
- },
11652
- "layout": {
11653
- "type": "ViewSignLayout",
11654
- "id": 7,
11655
- "options": {
11656
- "default": "LayoutDefault"
11657
- }
11658
- }
11659
- }
11660
- },
11661
- "ViewVerifyPage": {
11662
- "fields": {
11663
- "title": {
11664
- "rule": "required",
11665
- "type": "string",
11666
- "id": 1
11667
- },
11668
- "address": {
11669
- "rule": "required",
11670
- "type": "string",
11671
- "id": 2
11672
- },
11673
- "path": {
11674
- "rule": "required",
11675
- "type": "string",
11676
- "id": 3
11677
- },
11678
- "network": {
11679
- "type": "string",
11680
- "id": 4
11681
- },
11682
- "derive_type": {
11683
- "type": "string",
11684
- "id": 5
11685
- },
11686
- "value_key": {
11687
- "type": "uint32",
11688
- "id": 6
11689
- }
11690
- }
11691
- },
11692
11417
  "WebAuthnListResidentCredentials": {
11693
11418
  "fields": {}
11694
11419
  },
@@ -11789,17 +11514,18 @@
11789
11514
  "type": "uint32",
11790
11515
  "id": 1
11791
11516
  },
11517
+ "build_fingerprint": {
11518
+ "rule": "required",
11519
+ "type": "string",
11520
+ "id": 2
11521
+ },
11792
11522
  "supported_messages": {
11793
11523
  "rule": "repeated",
11794
11524
  "type": "uint32",
11795
- "id": 2,
11525
+ "id": 3,
11796
11526
  "options": {
11797
11527
  "packed": false
11798
11528
  }
11799
- },
11800
- "protobuf_definition": {
11801
- "type": "string",
11802
- "id": 3
11803
11529
  }
11804
11530
  }
11805
11531
  },
@@ -12027,15 +11753,123 @@
12027
11753
  }
12028
11754
  }
12029
11755
  },
12030
- "DeviceFirmwareTargetType": {
11756
+ "DeviceMiscUsbMscControl": {
11757
+ "fields": {
11758
+ "enable": {
11759
+ "rule": "required",
11760
+ "type": "bool",
11761
+ "id": 1
11762
+ }
11763
+ }
11764
+ },
11765
+ "DeviceFactoryAck": {
12031
11766
  "values": {
12032
- "FW_MGMT_TARGET_INVALID": 0,
12033
- "FW_MGMT_TARGET_CRATE": 1,
12034
- "FW_MGMT_TARGET_ROMLOADER": 2,
12035
- "FW_MGMT_TARGET_BOOTLOADER": 3,
12036
- "FW_MGMT_TARGET_APPLICATION_P1": 4,
12037
- "FW_MGMT_TARGET_APPLICATION_P2": 5,
12038
- "FW_MGMT_TARGET_COPROCESSOR": 6,
11767
+ "FACTORY_ACK_SUCCESS": 0,
11768
+ "FACTORY_ACK_FAIL": 1
11769
+ }
11770
+ },
11771
+ "DeviceFactoryInfoManufactureTime": {
11772
+ "fields": {
11773
+ "year": {
11774
+ "rule": "required",
11775
+ "type": "uint32",
11776
+ "id": 1
11777
+ },
11778
+ "month": {
11779
+ "rule": "required",
11780
+ "type": "uint32",
11781
+ "id": 2
11782
+ },
11783
+ "day": {
11784
+ "rule": "required",
11785
+ "type": "uint32",
11786
+ "id": 3
11787
+ },
11788
+ "hour": {
11789
+ "rule": "required",
11790
+ "type": "uint32",
11791
+ "id": 4
11792
+ },
11793
+ "minute": {
11794
+ "rule": "required",
11795
+ "type": "uint32",
11796
+ "id": 5
11797
+ },
11798
+ "second": {
11799
+ "rule": "required",
11800
+ "type": "uint32",
11801
+ "id": 6
11802
+ }
11803
+ }
11804
+ },
11805
+ "DeviceFactoryInfo": {
11806
+ "fields": {
11807
+ "version": {
11808
+ "type": "uint32",
11809
+ "id": 1
11810
+ },
11811
+ "serial_number": {
11812
+ "type": "string",
11813
+ "id": 2
11814
+ },
11815
+ "burn_in_completed": {
11816
+ "type": "bool",
11817
+ "id": 3
11818
+ },
11819
+ "factory_test_completed": {
11820
+ "type": "bool",
11821
+ "id": 4
11822
+ },
11823
+ "manufacture_time": {
11824
+ "type": "DeviceFactoryInfoManufactureTime",
11825
+ "id": 5
11826
+ }
11827
+ }
11828
+ },
11829
+ "DeviceFactoryInfoSet": {
11830
+ "fields": {
11831
+ "info": {
11832
+ "rule": "required",
11833
+ "type": "DeviceFactoryInfo",
11834
+ "id": 1
11835
+ }
11836
+ }
11837
+ },
11838
+ "DeviceFactoryInfoGet": {
11839
+ "fields": {}
11840
+ },
11841
+ "DeviceFactoryPermanentLock": {
11842
+ "fields": {
11843
+ "check_a": {
11844
+ "rule": "required",
11845
+ "type": "bytes",
11846
+ "id": 1
11847
+ },
11848
+ "check_b": {
11849
+ "rule": "required",
11850
+ "type": "bytes",
11851
+ "id": 2
11852
+ }
11853
+ }
11854
+ },
11855
+ "DeviceFactoryTest": {
11856
+ "fields": {
11857
+ "burn_in_test": {
11858
+ "rule": "required",
11859
+ "type": "bool",
11860
+ "id": 1
11861
+ }
11862
+ }
11863
+ },
11864
+ "DeviceFirmwareTargetType": {
11865
+ "values": {
11866
+ "FW_MGMT_TARGET_INVALID": 0,
11867
+ "FW_MGMT_TARGET_CRATE": 1,
11868
+ "FW_MGMT_TARGET_ROMLOADER": 2,
11869
+ "FW_MGMT_TARGET_BOOTLOADER": 3,
11870
+ "FW_MGMT_TARGET_APPLICATION_P1": 4,
11871
+ "FW_MGMT_TARGET_APPLICATION_P2": 5,
11872
+ "FW_MGMT_TARGET_COPROCESSOR": 6,
12039
11873
  "FW_MGMT_TARGET_SE01": 7,
12040
11874
  "FW_MGMT_TARGET_SE02": 8,
12041
11875
  "FW_MGMT_TARGET_SE03": 9,
@@ -12134,105 +11968,6 @@
12134
11968
  }
12135
11969
  }
12136
11970
  },
12137
- "DeviceFactoryAck": {
12138
- "values": {
12139
- "FACTORY_ACK_SUCCESS": 0,
12140
- "FACTORY_ACK_FAIL": 1
12141
- }
12142
- },
12143
- "DeviceFactoryInfoManufactureTime": {
12144
- "fields": {
12145
- "year": {
12146
- "rule": "required",
12147
- "type": "uint32",
12148
- "id": 1
12149
- },
12150
- "month": {
12151
- "rule": "required",
12152
- "type": "uint32",
12153
- "id": 2
12154
- },
12155
- "day": {
12156
- "rule": "required",
12157
- "type": "uint32",
12158
- "id": 3
12159
- },
12160
- "hour": {
12161
- "rule": "required",
12162
- "type": "uint32",
12163
- "id": 4
12164
- },
12165
- "minute": {
12166
- "rule": "required",
12167
- "type": "uint32",
12168
- "id": 5
12169
- },
12170
- "second": {
12171
- "rule": "required",
12172
- "type": "uint32",
12173
- "id": 6
12174
- }
12175
- }
12176
- },
12177
- "DeviceFactoryInfo": {
12178
- "fields": {
12179
- "version": {
12180
- "type": "uint32",
12181
- "id": 1
12182
- },
12183
- "serial_number": {
12184
- "type": "string",
12185
- "id": 2
12186
- },
12187
- "burn_in_completed": {
12188
- "type": "bool",
12189
- "id": 3
12190
- },
12191
- "factory_test_completed": {
12192
- "type": "bool",
12193
- "id": 4
12194
- },
12195
- "manufacture_time": {
12196
- "type": "DeviceFactoryInfoManufactureTime",
12197
- "id": 5
12198
- }
12199
- }
12200
- },
12201
- "DeviceFactoryInfoSet": {
12202
- "fields": {
12203
- "info": {
12204
- "rule": "required",
12205
- "type": "DeviceFactoryInfo",
12206
- "id": 1
12207
- }
12208
- }
12209
- },
12210
- "DeviceFactoryInfoGet": {
12211
- "fields": {}
12212
- },
12213
- "DeviceFactoryPermanentLock": {
12214
- "fields": {
12215
- "check_a": {
12216
- "rule": "required",
12217
- "type": "bytes",
12218
- "id": 1
12219
- },
12220
- "check_b": {
12221
- "rule": "required",
12222
- "type": "bytes",
12223
- "id": 2
12224
- }
12225
- }
12226
- },
12227
- "DeviceFactoryTest": {
12228
- "fields": {
12229
- "burn_in_test": {
12230
- "rule": "required",
12231
- "type": "bool",
12232
- "id": 1
12233
- }
12234
- }
12235
- },
12236
11971
  "DeviceType": {
12237
11972
  "values": {
12238
11973
  "CLASSIC1": 0,
@@ -12383,10 +12118,6 @@
12383
12118
  "se4": {
12384
12119
  "type": "bool",
12385
12120
  "id": 430
12386
- },
12387
- "status": {
12388
- "type": "bool",
12389
- "id": 10000
12390
12121
  }
12391
12122
  }
12392
12123
  },
@@ -12456,10 +12187,6 @@
12456
12187
  "se4": {
12457
12188
  "type": "DeviceSEInfo",
12458
12189
  "id": 430
12459
- },
12460
- "status": {
12461
- "type": "DeviceStatus",
12462
- "id": 10000
12463
12190
  }
12464
12191
  }
12465
12192
  },
@@ -12473,11 +12200,26 @@
12473
12200
  "DeviceSessionError_Busy": 5
12474
12201
  }
12475
12202
  },
12203
+ "DeviceSessionSeedDomain": {
12204
+ "values": {
12205
+ "SeedDomain_Standard": 1,
12206
+ "SeedDomain_Cardano": 2
12207
+ }
12208
+ },
12476
12209
  "DeviceSessionGet": {
12477
12210
  "fields": {
12478
12211
  "session_id": {
12479
12212
  "type": "bytes",
12480
12213
  "id": 1
12214
+ },
12215
+ "btc_test_address": {
12216
+ "type": "string",
12217
+ "id": 2
12218
+ },
12219
+ "seed_domains": {
12220
+ "rule": "repeated",
12221
+ "type": "DeviceSessionSeedDomain",
12222
+ "id": 3
12481
12223
  }
12482
12224
  }
12483
12225
  },
@@ -12515,6 +12257,7 @@
12515
12257
  "id": 1
12516
12258
  },
12517
12259
  "on_device": {
12260
+ "rule": "required",
12518
12261
  "type": "bool",
12519
12262
  "id": 2
12520
12263
  }
@@ -12560,88 +12303,6 @@
12560
12303
  "DeviceStatusGet": {
12561
12304
  "fields": {}
12562
12305
  },
12563
- "DevOnboardingStep": {
12564
- "values": {
12565
- "DEV_ONBOARDING_STEP_UNKNOWN": 0,
12566
- "DEV_ONBOARDING_STEP_CHECKING": 1,
12567
- "DEV_ONBOARDING_STEP_PERSONALIZATION": 2,
12568
- "DEV_ONBOARDING_STEP_PIN": 3,
12569
- "DEV_ONBOARDING_STEP_SETUP": 4,
12570
- "DEV_ONBOARDING_STEP_DONE": 5
12571
- }
12572
- },
12573
- "DevOnboardingPhase": {
12574
- "values": {
12575
- "DEV_ONBOARDING_PHASE_UNKNOWN": 0,
12576
- "DEV_ONBOARDING_PHASE_SAFETY_CHECK": 1,
12577
- "DEV_ONBOARDING_PHASE_PIN_SETUP": 2,
12578
- "DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP": 3,
12579
- "DEV_ONBOARDING_PHASE_SETUP_CHOICE": 4,
12580
- "DEV_ONBOARDING_PHASE_WALLET_CREATE_START": 5,
12581
- "DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW": 6,
12582
- "DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM": 7,
12583
- "DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE": 8,
12584
- "DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE": 9,
12585
- "DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE": 10,
12586
- "DEV_ONBOARDING_PHASE_WALLET_READY": 11,
12587
- "DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT": 12,
12588
- "DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP": 13
12589
- }
12590
- },
12591
- "DevOnboardingSetupKind": {
12592
- "values": {
12593
- "DEV_ONBOARDING_SETUP_KIND_UNKNOWN": 0,
12594
- "DEV_ONBOARDING_SETUP_KIND_CHOICE": 1,
12595
- "DEV_ONBOARDING_SETUP_KIND_CREATE": 2,
12596
- "DEV_ONBOARDING_SETUP_KIND_RESTORE": 3
12597
- }
12598
- },
12599
- "DevOnboardingSetupMethod": {
12600
- "values": {
12601
- "DEV_ONBOARDING_SETUP_METHOD_UNKNOWN": 0,
12602
- "DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE": 1,
12603
- "DEV_ONBOARDING_SETUP_METHOD_SEEDCARD": 2
12604
- }
12605
- },
12606
- "DevOnboardingSetupStatus": {
12607
- "fields": {
12608
- "kind": {
12609
- "type": "DevOnboardingSetupKind",
12610
- "id": 1
12611
- },
12612
- "method": {
12613
- "type": "DevOnboardingSetupMethod",
12614
- "id": 2
12615
- }
12616
- }
12617
- },
12618
- "DevGetOnboardingStatus": {
12619
- "fields": {}
12620
- },
12621
- "DevOnboardingStatus": {
12622
- "fields": {
12623
- "step": {
12624
- "type": "DevOnboardingStep",
12625
- "id": 1
12626
- },
12627
- "phase": {
12628
- "type": "DevOnboardingPhase",
12629
- "id": 2
12630
- },
12631
- "setup": {
12632
- "type": "DevOnboardingSetupStatus",
12633
- "id": 3
12634
- },
12635
- "pin_set": {
12636
- "type": "bool",
12637
- "id": 4
12638
- },
12639
- "wallet_initialized": {
12640
- "type": "bool",
12641
- "id": 5
12642
- }
12643
- }
12644
- },
12645
12306
  "FilesystemPermissionFix": {
12646
12307
  "fields": {}
12647
12308
  },
@@ -12868,9 +12529,271 @@
12868
12529
  }
12869
12530
  }
12870
12531
  },
12532
+ "InternalMyAddressRequest": {
12533
+ "fields": {
12534
+ "coin_type": {
12535
+ "rule": "required",
12536
+ "type": "uint32",
12537
+ "id": 1
12538
+ },
12539
+ "chain_id": {
12540
+ "rule": "required",
12541
+ "type": "uint32",
12542
+ "id": 2
12543
+ },
12544
+ "account_index": {
12545
+ "rule": "required",
12546
+ "type": "uint32",
12547
+ "id": 3
12548
+ },
12549
+ "derive_type": {
12550
+ "rule": "required",
12551
+ "type": "uint32",
12552
+ "id": 4
12553
+ }
12554
+ }
12555
+ },
12556
+ "OnboardingStep": {
12557
+ "values": {
12558
+ "ONBOARDING_STEP_UNKNOWN": 0,
12559
+ "ONBOARDING_STEP_CHECKING": 1,
12560
+ "ONBOARDING_STEP_PERSONALIZATION": 2,
12561
+ "ONBOARDING_STEP_PIN": 3,
12562
+ "ONBOARDING_STEP_SETUP": 4,
12563
+ "ONBOARDING_STEP_DONE": 5
12564
+ }
12565
+ },
12566
+ "OnboardingPhase": {
12567
+ "values": {
12568
+ "ONBOARDING_PHASE_UNKNOWN": 0,
12569
+ "ONBOARDING_PHASE_SAFETY_CHECK": 1,
12570
+ "ONBOARDING_PHASE_PIN_SETUP": 2,
12571
+ "ONBOARDING_PHASE_FINGERPRINT_SETUP": 3,
12572
+ "ONBOARDING_PHASE_SETUP_CHOICE": 4,
12573
+ "ONBOARDING_PHASE_WALLET_CREATE_START": 5,
12574
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW": 6,
12575
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM": 7,
12576
+ "ONBOARDING_PHASE_RESTORE_METHOD_CHOICE": 8,
12577
+ "ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE": 9,
12578
+ "ONBOARDING_PHASE_SEEDCARD_RESTORE": 10,
12579
+ "ONBOARDING_PHASE_WALLET_READY": 11,
12580
+ "ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT": 12,
12581
+ "ONBOARDING_PHASE_SEEDCARD_BACKUP": 13
12582
+ }
12583
+ },
12584
+ "OnboardingSetupKind": {
12585
+ "values": {
12586
+ "ONBOARDING_SETUP_KIND_UNKNOWN": 0,
12587
+ "ONBOARDING_SETUP_KIND_CHOICE": 1,
12588
+ "ONBOARDING_SETUP_KIND_CREATE": 2,
12589
+ "ONBOARDING_SETUP_KIND_RESTORE": 3
12590
+ }
12591
+ },
12592
+ "OnboardingSetupMethod": {
12593
+ "values": {
12594
+ "ONBOARDING_SETUP_METHOD_UNKNOWN": 0,
12595
+ "ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE": 1,
12596
+ "ONBOARDING_SETUP_METHOD_SEEDCARD": 2
12597
+ }
12598
+ },
12599
+ "OnboardingSetupStatus": {
12600
+ "fields": {
12601
+ "kind": {
12602
+ "type": "OnboardingSetupKind",
12603
+ "id": 1
12604
+ },
12605
+ "method": {
12606
+ "type": "OnboardingSetupMethod",
12607
+ "id": 2
12608
+ }
12609
+ }
12610
+ },
12611
+ "OnboardingStatusGet": {
12612
+ "fields": {}
12613
+ },
12614
+ "OnboardingStatus": {
12615
+ "fields": {
12616
+ "step": {
12617
+ "type": "OnboardingStep",
12618
+ "id": 1
12619
+ },
12620
+ "phase": {
12621
+ "type": "OnboardingPhase",
12622
+ "id": 2
12623
+ },
12624
+ "setup": {
12625
+ "type": "OnboardingSetupStatus",
12626
+ "id": 3
12627
+ },
12628
+ "pin_set": {
12629
+ "type": "bool",
12630
+ "id": 4
12631
+ },
12632
+ "wallet_initialized": {
12633
+ "type": "bool",
12634
+ "id": 5
12635
+ }
12636
+ }
12637
+ },
12871
12638
  "PortfolioUpdate": {
12872
12639
  "fields": {}
12873
12640
  },
12641
+ "ViewAmount": {
12642
+ "fields": {
12643
+ "is_unlimited": {
12644
+ "rule": "required",
12645
+ "type": "bool",
12646
+ "id": 1
12647
+ },
12648
+ "num": {
12649
+ "rule": "required",
12650
+ "type": "string",
12651
+ "id": 2
12652
+ }
12653
+ }
12654
+ },
12655
+ "ViewDetail": {
12656
+ "fields": {
12657
+ "key": {
12658
+ "rule": "required",
12659
+ "type": "uint32",
12660
+ "id": 1
12661
+ },
12662
+ "value": {
12663
+ "rule": "required",
12664
+ "type": "string",
12665
+ "id": 2
12666
+ },
12667
+ "is_overview": {
12668
+ "rule": "required",
12669
+ "type": "bool",
12670
+ "id": 3
12671
+ },
12672
+ "has_icon": {
12673
+ "rule": "required",
12674
+ "type": "bool",
12675
+ "id": 4
12676
+ }
12677
+ }
12678
+ },
12679
+ "ViewTipType": {
12680
+ "values": {
12681
+ "Default": 0,
12682
+ "Highlight": 1,
12683
+ "Recommend": 2,
12684
+ "Warning": 3,
12685
+ "Danger": 4
12686
+ }
12687
+ },
12688
+ "ViewTip": {
12689
+ "fields": {
12690
+ "type": {
12691
+ "rule": "required",
12692
+ "type": "ViewTipType",
12693
+ "id": 1
12694
+ },
12695
+ "text": {
12696
+ "rule": "required",
12697
+ "type": "string",
12698
+ "id": 2
12699
+ }
12700
+ }
12701
+ },
12702
+ "ViewRawData": {
12703
+ "fields": {
12704
+ "initial_data": {
12705
+ "rule": "required",
12706
+ "type": "string",
12707
+ "id": 1
12708
+ },
12709
+ "placeholder": {
12710
+ "rule": "required",
12711
+ "type": "uint32",
12712
+ "id": 2
12713
+ }
12714
+ }
12715
+ },
12716
+ "ViewSignLayout": {
12717
+ "values": {
12718
+ "LayoutDefault": 0,
12719
+ "LayoutSafeTxCreate": 1,
12720
+ "LayoutFinalConfirm": 2,
12721
+ "Layout7702": 3,
12722
+ "LayoutFlat": 4,
12723
+ "LayoutEthApprove": 5
12724
+ }
12725
+ },
12726
+ "ViewSignPage": {
12727
+ "fields": {
12728
+ "title": {
12729
+ "rule": "required",
12730
+ "type": "string",
12731
+ "id": 1
12732
+ },
12733
+ "amount": {
12734
+ "type": "ViewAmount",
12735
+ "id": 2
12736
+ },
12737
+ "general": {
12738
+ "rule": "repeated",
12739
+ "type": "ViewDetail",
12740
+ "id": 3
12741
+ },
12742
+ "tip": {
12743
+ "type": "ViewTip",
12744
+ "id": 4
12745
+ },
12746
+ "raw_data": {
12747
+ "type": "ViewRawData",
12748
+ "id": 5
12749
+ },
12750
+ "slide_to_confirm": {
12751
+ "type": "bool",
12752
+ "id": 6,
12753
+ "options": {
12754
+ "default": true
12755
+ }
12756
+ },
12757
+ "layout": {
12758
+ "type": "ViewSignLayout",
12759
+ "id": 7,
12760
+ "options": {
12761
+ "default": "LayoutDefault"
12762
+ }
12763
+ }
12764
+ }
12765
+ },
12766
+ "ViewVerifyPage": {
12767
+ "fields": {
12768
+ "title": {
12769
+ "rule": "required",
12770
+ "type": "string",
12771
+ "id": 1
12772
+ },
12773
+ "address": {
12774
+ "rule": "required",
12775
+ "type": "string",
12776
+ "id": 2
12777
+ },
12778
+ "path": {
12779
+ "rule": "required",
12780
+ "type": "string",
12781
+ "id": 3
12782
+ },
12783
+ "network": {
12784
+ "type": "string",
12785
+ "id": 4
12786
+ },
12787
+ "derive_type": {
12788
+ "type": "string",
12789
+ "id": 5
12790
+ },
12791
+ "value_key": {
12792
+ "type": "uint32",
12793
+ "id": 6
12794
+ }
12795
+ }
12796
+ },
12874
12797
  "google": {
12875
12798
  "nested": {
12876
12799
  "protobuf": {