@onekeyfe/hd-core 1.1.27-alpha.41 → 1.1.27-alpha.43

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 (176) hide show
  1. package/__tests__/DeviceCommands.test.ts +99 -0
  2. package/__tests__/evmLedgerLegacySafety.test.ts +261 -0
  3. package/__tests__/logBlockEvent.test.ts +37 -0
  4. package/__tests__/preInitialize.test.ts +22 -0
  5. package/__tests__/protocol-v2.test.ts +139 -27
  6. package/dist/api/BaseMethod.d.ts +7 -1
  7. package/dist/api/BaseMethod.d.ts.map +1 -1
  8. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  9. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  10. package/dist/api/GetPassphraseState.d.ts.map +1 -1
  11. package/dist/api/alephium/AlephiumSignMessage.d.ts.map +1 -1
  12. package/dist/api/alephium/AlephiumSignTransaction.d.ts.map +1 -1
  13. package/dist/api/algo/AlgoSignTransaction.d.ts.map +1 -1
  14. package/dist/api/allnetwork/AllNetworkGetAddressBase.d.ts.map +1 -1
  15. package/dist/api/aptos/AptosSignInMessage.d.ts.map +1 -1
  16. package/dist/api/aptos/AptosSignMessage.d.ts.map +1 -1
  17. package/dist/api/aptos/AptosSignTransaction.d.ts.map +1 -1
  18. package/dist/api/benfen/BenfenSignMessage.d.ts.map +1 -1
  19. package/dist/api/benfen/BenfenSignTransaction.d.ts.map +1 -1
  20. package/dist/api/btc/BTCSignMessage.d.ts.map +1 -1
  21. package/dist/api/btc/BTCSignPsbt.d.ts.map +1 -1
  22. package/dist/api/btc/BTCSignTransaction.d.ts.map +1 -1
  23. package/dist/api/cardano/CardanoSignMessage.d.ts.map +1 -1
  24. package/dist/api/cardano/CardanoSignTransaction.d.ts.map +1 -1
  25. package/dist/api/conflux/ConfluxSignMessage.d.ts.map +1 -1
  26. package/dist/api/conflux/ConfluxSignMessageCIP23.d.ts.map +1 -1
  27. package/dist/api/conflux/ConfluxSignTransaction.d.ts.map +1 -1
  28. package/dist/api/cosmos/CosmosSignTransaction.d.ts.map +1 -1
  29. package/dist/api/device/DeviceLock.d.ts.map +1 -1
  30. package/dist/api/device/PreInitialize.d.ts +6 -0
  31. package/dist/api/device/PreInitialize.d.ts.map +1 -0
  32. package/dist/api/dynex/DnxSignTransaction.d.ts.map +1 -1
  33. package/dist/api/evm/EVMSignMessage.d.ts.map +1 -1
  34. package/dist/api/evm/EVMSignMessageEIP712.d.ts.map +1 -1
  35. package/dist/api/evm/EVMSignTransaction.d.ts.map +1 -1
  36. package/dist/api/evm/EVMSignTypedData.d.ts.map +1 -1
  37. package/dist/api/filecoin/FilecoinSignTransaction.d.ts.map +1 -1
  38. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts +2 -10
  39. package/dist/api/firmware/FirmwareUpdateBaseMethod.d.ts.map +1 -1
  40. package/dist/api/index.d.ts +1 -0
  41. package/dist/api/index.d.ts.map +1 -1
  42. package/dist/api/kaspa/KaspaSignTransaction.d.ts.map +1 -1
  43. package/dist/api/near/NearSignTransaction.d.ts.map +1 -1
  44. package/dist/api/nem/NEMSignTransaction.d.ts.map +1 -1
  45. package/dist/api/neo/NeoSignTransaction.d.ts.map +1 -1
  46. package/dist/api/nervos/NervosSignTransaction.d.ts.map +1 -1
  47. package/dist/api/nexa/NexaSignTransaction.d.ts.map +1 -1
  48. package/dist/api/nostr/NostrSignEvent.d.ts.map +1 -1
  49. package/dist/api/nostr/NostrSignSchnorr.d.ts.map +1 -1
  50. package/dist/api/polkadot/PolkadotSignTransaction.d.ts.map +1 -1
  51. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts +1 -1
  52. package/dist/api/protocol-v2/DeviceGetOnboardingStatus.d.ts.map +1 -1
  53. package/dist/api/protocol-v2/FilesystemDiskControl.d.ts +1 -1
  54. package/dist/api/scdo/ScdoSignMessage.d.ts.map +1 -1
  55. package/dist/api/scdo/ScdoSignTransaction.d.ts.map +1 -1
  56. package/dist/api/solana/SolSignMessage.d.ts.map +1 -1
  57. package/dist/api/solana/SolSignOffchainMessage.d.ts.map +1 -1
  58. package/dist/api/solana/SolSignTransaction.d.ts.map +1 -1
  59. package/dist/api/starcoin/StarcoinSignMessage.d.ts.map +1 -1
  60. package/dist/api/starcoin/StarcoinSignTransaction.d.ts.map +1 -1
  61. package/dist/api/stellar/StellarSignTransaction.d.ts.map +1 -1
  62. package/dist/api/sui/SuiGetAddress.d.ts +3 -0
  63. package/dist/api/sui/SuiGetAddress.d.ts.map +1 -1
  64. package/dist/api/sui/SuiGetPublicKey.d.ts +3 -0
  65. package/dist/api/sui/SuiGetPublicKey.d.ts.map +1 -1
  66. package/dist/api/sui/SuiSignMessage.d.ts +3 -0
  67. package/dist/api/sui/SuiSignMessage.d.ts.map +1 -1
  68. package/dist/api/sui/SuiSignTransaction.d.ts +3 -0
  69. package/dist/api/sui/SuiSignTransaction.d.ts.map +1 -1
  70. package/dist/api/ton/TonGetAddress.d.ts +3 -0
  71. package/dist/api/ton/TonGetAddress.d.ts.map +1 -1
  72. package/dist/api/ton/TonSignData.d.ts +5 -0
  73. package/dist/api/ton/TonSignData.d.ts.map +1 -1
  74. package/dist/api/ton/TonSignMessage.d.ts +3 -0
  75. package/dist/api/ton/TonSignMessage.d.ts.map +1 -1
  76. package/dist/api/ton/TonSignProof.d.ts +3 -0
  77. package/dist/api/ton/TonSignProof.d.ts.map +1 -1
  78. package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
  79. package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
  80. package/dist/api/xrp/XrpSignTransaction.d.ts.map +1 -1
  81. package/dist/core/PollingStateManager.d.ts +8 -0
  82. package/dist/core/PollingStateManager.d.ts.map +1 -0
  83. package/dist/core/RequestQueue.d.ts +1 -1
  84. package/dist/core/RequestQueue.d.ts.map +1 -1
  85. package/dist/core/index.d.ts.map +1 -1
  86. package/dist/device/Device.d.ts +17 -2
  87. package/dist/device/Device.d.ts.map +1 -1
  88. package/dist/events/logBlockEvent.d.ts +1 -0
  89. package/dist/events/logBlockEvent.d.ts.map +1 -1
  90. package/dist/index.d.ts +25 -5
  91. package/dist/index.js +928 -407
  92. package/dist/types/api/index.d.ts +2 -0
  93. package/dist/types/api/index.d.ts.map +1 -1
  94. package/dist/types/api/preInitialize.d.ts +3 -0
  95. package/dist/types/api/preInitialize.d.ts.map +1 -0
  96. package/dist/types/api/protocolV2.d.ts +2 -2
  97. package/dist/types/api/protocolV2.d.ts.map +1 -1
  98. package/dist/types/params.d.ts +1 -0
  99. package/dist/types/params.d.ts.map +1 -1
  100. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  101. package/dist/utils/patch.d.ts +1 -1
  102. package/dist/utils/patch.d.ts.map +1 -1
  103. package/package.json +4 -4
  104. package/src/api/BaseMethod.ts +82 -2
  105. package/src/api/FirmwareUpdateV3.ts +0 -4
  106. package/src/api/FirmwareUpdateV4.ts +1 -19
  107. package/src/api/GetPassphraseState.ts +4 -3
  108. package/src/api/alephium/AlephiumSignMessage.ts +1 -0
  109. package/src/api/alephium/AlephiumSignTransaction.ts +1 -0
  110. package/src/api/algo/AlgoSignTransaction.ts +1 -0
  111. package/src/api/allnetwork/AllNetworkGetAddressBase.ts +8 -0
  112. package/src/api/aptos/AptosSignInMessage.ts +1 -0
  113. package/src/api/aptos/AptosSignMessage.ts +1 -0
  114. package/src/api/aptos/AptosSignTransaction.ts +1 -0
  115. package/src/api/benfen/BenfenSignMessage.ts +1 -0
  116. package/src/api/benfen/BenfenSignTransaction.ts +1 -0
  117. package/src/api/btc/BTCSignMessage.ts +1 -0
  118. package/src/api/btc/BTCSignPsbt.ts +1 -0
  119. package/src/api/btc/BTCSignTransaction.ts +1 -0
  120. package/src/api/cardano/CardanoSignMessage.ts +1 -0
  121. package/src/api/cardano/CardanoSignTransaction.ts +1 -0
  122. package/src/api/conflux/ConfluxSignMessage.ts +1 -0
  123. package/src/api/conflux/ConfluxSignMessageCIP23.ts +1 -0
  124. package/src/api/conflux/ConfluxSignTransaction.ts +1 -0
  125. package/src/api/cosmos/CosmosSignTransaction.ts +1 -0
  126. package/src/api/device/DeviceLock.ts +1 -3
  127. package/src/api/device/PreInitialize.ts +41 -0
  128. package/src/api/dynex/DnxSignTransaction.ts +1 -0
  129. package/src/api/evm/EVMSignMessage.ts +2 -0
  130. package/src/api/evm/EVMSignMessageEIP712.ts +1 -0
  131. package/src/api/evm/EVMSignTransaction.ts +2 -0
  132. package/src/api/evm/EVMSignTypedData.ts +3 -1
  133. package/src/api/filecoin/FilecoinSignTransaction.ts +1 -0
  134. package/src/api/firmware/FirmwareUpdateBaseMethod.ts +4 -27
  135. package/src/api/index.ts +1 -0
  136. package/src/api/kaspa/KaspaSignTransaction.ts +1 -0
  137. package/src/api/near/NearSignTransaction.ts +1 -0
  138. package/src/api/nem/NEMSignTransaction.ts +1 -0
  139. package/src/api/neo/NeoSignTransaction.ts +1 -0
  140. package/src/api/nervos/NervosSignTransaction.ts +1 -0
  141. package/src/api/nexa/NexaSignTransaction.ts +2 -0
  142. package/src/api/nostr/NostrSignEvent.ts +1 -0
  143. package/src/api/nostr/NostrSignSchnorr.ts +1 -0
  144. package/src/api/polkadot/PolkadotSignTransaction.ts +1 -0
  145. package/src/api/protocol-v2/DeviceGetOnboardingStatus.ts +1 -5
  146. package/src/api/scdo/ScdoSignMessage.ts +1 -0
  147. package/src/api/scdo/ScdoSignTransaction.ts +1 -0
  148. package/src/api/solana/SolSignMessage.ts +1 -0
  149. package/src/api/solana/SolSignOffchainMessage.ts +1 -0
  150. package/src/api/solana/SolSignTransaction.ts +1 -0
  151. package/src/api/starcoin/StarcoinSignMessage.ts +1 -0
  152. package/src/api/starcoin/StarcoinSignTransaction.ts +1 -0
  153. package/src/api/stellar/StellarSignTransaction.ts +1 -0
  154. package/src/api/sui/SuiGetAddress.ts +3 -0
  155. package/src/api/sui/SuiGetPublicKey.ts +3 -0
  156. package/src/api/sui/SuiSignMessage.ts +4 -0
  157. package/src/api/sui/SuiSignTransaction.ts +4 -0
  158. package/src/api/ton/TonGetAddress.ts +3 -0
  159. package/src/api/ton/TonSignData.ts +11 -3
  160. package/src/api/ton/TonSignMessage.ts +4 -0
  161. package/src/api/ton/TonSignProof.ts +4 -0
  162. package/src/api/tron/TronSignMessage.ts +1 -0
  163. package/src/api/tron/TronSignTransaction.ts +1 -0
  164. package/src/api/xrp/XrpSignTransaction.ts +1 -0
  165. package/src/core/PollingStateManager.ts +47 -0
  166. package/src/core/RequestQueue.ts +10 -3
  167. package/src/core/index.ts +153 -34
  168. package/src/data/messages/messages-protocol-v2.json +489 -268
  169. package/src/device/Device.ts +73 -16
  170. package/src/events/logBlockEvent.ts +23 -0
  171. package/src/inject.ts +1 -1
  172. package/src/types/api/index.ts +2 -0
  173. package/src/types/api/preInitialize.ts +3 -0
  174. package/src/types/api/protocolV2.ts +2 -2
  175. package/src/types/params.ts +5 -0
  176. package/src/utils/deviceFeaturesUtils.ts +8 -17
@@ -419,6 +419,8 @@
419
419
  "MessageType_TonSignProof": 11905,
420
420
  "MessageType_TonSignedProof": 11906,
421
421
  "MessageType_TonTxAck": 11907,
422
+ "MessageType_TonSignData": 11908,
423
+ "MessageType_TonSignedData": 11909,
422
424
  "MessageType_ScdoGetAddress": 12001,
423
425
  "MessageType_ScdoAddress": 12002,
424
426
  "MessageType_ScdoSignTx": 12003,
@@ -448,11 +450,6 @@
448
450
  "MessageType_NeoAddress": 12302,
449
451
  "MessageType_NeoSignTx": 12303,
450
452
  "MessageType_NeoSignedTx": 12304,
451
- "MessageType_UiviewShowAddressRequest": 30200,
452
- "MessageType_UiviewShowPublicKeyRequest": 30201,
453
- "MessageType_UiviewConfirmTxRequest": 30202,
454
- "MessageType_UiviewConfirmSignMessageRequest": 30203,
455
- "MessageType_UiviewResponse": 30204,
456
453
  "MessageType_ReadSEPublicKey": 10004,
457
454
  "MessageType_SEPublicKey": 10005,
458
455
  "MessageType_WriteSEPublicCert": 10006,
@@ -463,6 +460,9 @@
463
460
  "MessageType_ResourceUpload": 10018,
464
461
  "MessageType_ZoomRequest": 10019,
465
462
  "MessageType_BlurRequest": 10032,
463
+ "MessageType_SetWallpaper": 10033,
464
+ "MessageType_GetWallpaper": 10034,
465
+ "MessageType_Wallpaper": 10035,
466
466
  "MessageType_ResourceRequest": 10020,
467
467
  "MessageType_ResourceAck": 10021,
468
468
  "MessageType_ResourceUpdate": 10022,
@@ -487,8 +487,8 @@
487
487
  "MessageType_DeviceReboot": 60400,
488
488
  "MessageType_DeviceGetDeviceInfo": 60600,
489
489
  "MessageType_DeviceInfo": 60601,
490
- "MessageType_DeviceGetOnboardingStatus": 60602,
491
- "MessageType_DeviceOnboardingStatus": 60603,
490
+ "MessageType_GetOnboardingStatus": 60602,
491
+ "MessageType_OnboardingStatus": 60603,
492
492
  "MessageType_FilesystemFixPermission": 60800,
493
493
  "MessageType_FilesystemPathInfo": 60801,
494
494
  "MessageType_FilesystemPathInfoQuery": 60802,
@@ -501,7 +501,6 @@
501
501
  "MessageType_FilesystemDirMake": 60809,
502
502
  "MessageType_FilesystemDirRemove": 60810,
503
503
  "MessageType_FilesystemFormat": 60811,
504
- "MessageType_FilesystemDiskControl": 60812,
505
504
  "MessageType_DeviceFirmwareUpdate": 61000,
506
505
  "MessageType_DeviceFirmwareInstallProgress": 61001,
507
506
  "MessageType_DeviceGetFirmwareUpdateStatus": 61002,
@@ -4095,6 +4094,207 @@
4095
4094
  }
4096
4095
  }
4097
4096
  },
4097
+ "DebugLinkInput": {
4098
+ "fields": {
4099
+ "x": {
4100
+ "type": "uint32",
4101
+ "id": 1
4102
+ },
4103
+ "y": {
4104
+ "type": "uint32",
4105
+ "id": 2
4106
+ },
4107
+ "duration_ms": {
4108
+ "type": "uint32",
4109
+ "id": 3
4110
+ },
4111
+ "x_end": {
4112
+ "type": "uint32",
4113
+ "id": 4
4114
+ },
4115
+ "y_end": {
4116
+ "type": "uint32",
4117
+ "id": 5
4118
+ }
4119
+ }
4120
+ },
4121
+ "DebugLinkLayout": {
4122
+ "fields": {
4123
+ "lines": {
4124
+ "rule": "repeated",
4125
+ "type": "string",
4126
+ "id": 1
4127
+ }
4128
+ }
4129
+ },
4130
+ "DebugLinkReseedRandom": {
4131
+ "fields": {
4132
+ "value": {
4133
+ "type": "uint32",
4134
+ "id": 1
4135
+ }
4136
+ }
4137
+ },
4138
+ "DebugLinkRecordScreen": {
4139
+ "fields": {
4140
+ "target_directory": {
4141
+ "type": "string",
4142
+ "id": 1
4143
+ }
4144
+ }
4145
+ },
4146
+ "DebugLinkGetState": {
4147
+ "fields": {
4148
+ "wait_word_list": {
4149
+ "type": "bool",
4150
+ "id": 1
4151
+ },
4152
+ "wait_word_pos": {
4153
+ "type": "bool",
4154
+ "id": 2
4155
+ },
4156
+ "wait_layout": {
4157
+ "type": "bool",
4158
+ "id": 3
4159
+ }
4160
+ }
4161
+ },
4162
+ "DebugLinkState": {
4163
+ "fields": {
4164
+ "layout": {
4165
+ "type": "bytes",
4166
+ "id": 1
4167
+ },
4168
+ "pin": {
4169
+ "type": "string",
4170
+ "id": 2
4171
+ },
4172
+ "matrix": {
4173
+ "type": "string",
4174
+ "id": 3
4175
+ },
4176
+ "mnemonic_secret": {
4177
+ "type": "bytes",
4178
+ "id": 4
4179
+ },
4180
+ "node": {
4181
+ "type": "HDNodeType",
4182
+ "id": 5
4183
+ },
4184
+ "passphrase_protection": {
4185
+ "type": "bool",
4186
+ "id": 6
4187
+ },
4188
+ "reset_word": {
4189
+ "type": "string",
4190
+ "id": 7
4191
+ },
4192
+ "reset_entropy": {
4193
+ "type": "bytes",
4194
+ "id": 8
4195
+ },
4196
+ "recovery_fake_word": {
4197
+ "type": "string",
4198
+ "id": 9
4199
+ },
4200
+ "recovery_word_pos": {
4201
+ "type": "uint32",
4202
+ "id": 10
4203
+ },
4204
+ "reset_word_pos": {
4205
+ "type": "uint32",
4206
+ "id": 11
4207
+ },
4208
+ "mnemonic_type": {
4209
+ "type": "BackupType",
4210
+ "id": 12
4211
+ },
4212
+ "layout_lines": {
4213
+ "rule": "repeated",
4214
+ "type": "string",
4215
+ "id": 13
4216
+ }
4217
+ }
4218
+ },
4219
+ "DebugLinkStop": {
4220
+ "fields": {}
4221
+ },
4222
+ "DebugLinkLog": {
4223
+ "fields": {
4224
+ "level": {
4225
+ "type": "uint32",
4226
+ "id": 1
4227
+ },
4228
+ "bucket": {
4229
+ "type": "string",
4230
+ "id": 2
4231
+ },
4232
+ "text": {
4233
+ "type": "string",
4234
+ "id": 3
4235
+ }
4236
+ }
4237
+ },
4238
+ "DebugLinkMemoryRead": {
4239
+ "fields": {
4240
+ "address": {
4241
+ "type": "uint32",
4242
+ "id": 1
4243
+ },
4244
+ "length": {
4245
+ "type": "uint32",
4246
+ "id": 2
4247
+ }
4248
+ }
4249
+ },
4250
+ "DebugLinkMemory": {
4251
+ "fields": {
4252
+ "memory": {
4253
+ "type": "bytes",
4254
+ "id": 1
4255
+ }
4256
+ }
4257
+ },
4258
+ "DebugLinkMemoryWrite": {
4259
+ "fields": {
4260
+ "address": {
4261
+ "type": "uint32",
4262
+ "id": 1
4263
+ },
4264
+ "memory": {
4265
+ "type": "bytes",
4266
+ "id": 2
4267
+ },
4268
+ "flash": {
4269
+ "type": "bool",
4270
+ "id": 3
4271
+ }
4272
+ }
4273
+ },
4274
+ "DebugLinkFlashErase": {
4275
+ "fields": {
4276
+ "sector": {
4277
+ "type": "uint32",
4278
+ "id": 1
4279
+ }
4280
+ }
4281
+ },
4282
+ "DebugLinkEraseSdCard": {
4283
+ "fields": {
4284
+ "format": {
4285
+ "type": "bool",
4286
+ "id": 1
4287
+ }
4288
+ }
4289
+ },
4290
+ "DebugLinkWatchLayout": {
4291
+ "fields": {
4292
+ "watch": {
4293
+ "type": "bool",
4294
+ "id": 1
4295
+ }
4296
+ }
4297
+ },
4098
4298
  "EosGetPublicKey": {
4099
4299
  "fields": {
4100
4300
  "address_n": {
@@ -5927,6 +6127,30 @@
5927
6127
  }
5928
6128
  }
5929
6129
  },
6130
+ "InternalMyAddressRequest": {
6131
+ "fields": {
6132
+ "coin_type": {
6133
+ "rule": "required",
6134
+ "type": "uint32",
6135
+ "id": 1
6136
+ },
6137
+ "chain_id": {
6138
+ "rule": "required",
6139
+ "type": "uint32",
6140
+ "id": 2
6141
+ },
6142
+ "account_index": {
6143
+ "rule": "required",
6144
+ "type": "uint32",
6145
+ "id": 3
6146
+ },
6147
+ "derive_type": {
6148
+ "rule": "required",
6149
+ "type": "uint32",
6150
+ "id": 4
6151
+ }
6152
+ }
6153
+ },
5930
6154
  "KaspaGetAddress": {
5931
6155
  "fields": {
5932
6156
  "address_n": {
@@ -7256,6 +7480,49 @@
7256
7480
  }
7257
7481
  }
7258
7482
  },
7483
+ "WallpaperTarget": {
7484
+ "values": {
7485
+ "Home": 0,
7486
+ "Lock": 1
7487
+ }
7488
+ },
7489
+ "SetWallpaper": {
7490
+ "fields": {
7491
+ "target": {
7492
+ "rule": "required",
7493
+ "type": "WallpaperTarget",
7494
+ "id": 1
7495
+ },
7496
+ "path": {
7497
+ "rule": "required",
7498
+ "type": "string",
7499
+ "id": 2
7500
+ }
7501
+ }
7502
+ },
7503
+ "GetWallpaper": {
7504
+ "fields": {
7505
+ "target": {
7506
+ "rule": "required",
7507
+ "type": "WallpaperTarget",
7508
+ "id": 1
7509
+ }
7510
+ }
7511
+ },
7512
+ "Wallpaper": {
7513
+ "fields": {
7514
+ "target": {
7515
+ "rule": "required",
7516
+ "type": "WallpaperTarget",
7517
+ "id": 1
7518
+ },
7519
+ "path": {
7520
+ "rule": "required",
7521
+ "type": "string",
7522
+ "id": 2
7523
+ }
7524
+ }
7525
+ },
7259
7526
  "ResourceUpdate": {
7260
7527
  "fields": {
7261
7528
  "file_name": {
@@ -9430,7 +9697,18 @@
9430
9697
  }
9431
9698
  }
9432
9699
  },
9433
- "ScdoGetAddress": {
9700
+ "SolanaOffChainMessageVersion": {
9701
+ "values": {
9702
+ "MESSAGE_VERSION_0": 0
9703
+ }
9704
+ },
9705
+ "SolanaOffChainMessageFormat": {
9706
+ "values": {
9707
+ "V0_RESTRICTED_ASCII": 0,
9708
+ "V0_LIMITED_UTF8": 1
9709
+ }
9710
+ },
9711
+ "SolanaGetAddress": {
9434
9712
  "fields": {
9435
9713
  "address_n": {
9436
9714
  "rule": "repeated",
@@ -9446,7 +9724,7 @@
9446
9724
  }
9447
9725
  }
9448
9726
  },
9449
- "ScdoAddress": {
9727
+ "SolanaAddress": {
9450
9728
  "fields": {
9451
9729
  "address": {
9452
9730
  "rule": "required",
@@ -9455,7 +9733,7 @@
9455
9733
  }
9456
9734
  }
9457
9735
  },
9458
- "ScdoSignTx": {
9736
+ "SolanaSignTx": {
9459
9737
  "fields": {
9460
9738
  "address_n": {
9461
9739
  "rule": "repeated",
@@ -9465,183 +9743,36 @@
9465
9743
  "packed": false
9466
9744
  }
9467
9745
  },
9468
- "nonce": {
9746
+ "raw_tx": {
9469
9747
  "rule": "required",
9470
9748
  "type": "bytes",
9471
9749
  "id": 2
9472
- },
9473
- "gas_price": {
9750
+ }
9751
+ }
9752
+ },
9753
+ "SolanaSignedTx": {
9754
+ "fields": {
9755
+ "signature": {
9474
9756
  "rule": "required",
9475
9757
  "type": "bytes",
9476
- "id": 3
9758
+ "id": 1
9759
+ }
9760
+ }
9761
+ },
9762
+ "SolanaSignOffChainMessage": {
9763
+ "fields": {
9764
+ "address_n": {
9765
+ "rule": "repeated",
9766
+ "type": "uint32",
9767
+ "id": 1,
9768
+ "options": {
9769
+ "packed": false
9770
+ }
9477
9771
  },
9478
- "gas_limit": {
9772
+ "message": {
9479
9773
  "rule": "required",
9480
9774
  "type": "bytes",
9481
- "id": 4
9482
- },
9483
- "to": {
9484
- "rule": "required",
9485
- "type": "string",
9486
- "id": 5
9487
- },
9488
- "value": {
9489
- "rule": "required",
9490
- "type": "bytes",
9491
- "id": 6
9492
- },
9493
- "timestamp": {
9494
- "rule": "required",
9495
- "type": "bytes",
9496
- "id": 7
9497
- },
9498
- "data_initial_chunk": {
9499
- "type": "bytes",
9500
- "id": 8,
9501
- "options": {
9502
- "default": ""
9503
- }
9504
- },
9505
- "data_length": {
9506
- "type": "uint32",
9507
- "id": 9,
9508
- "options": {
9509
- "default": 0
9510
- }
9511
- },
9512
- "tx_type": {
9513
- "type": "uint32",
9514
- "id": 10,
9515
- "options": {
9516
- "default": 0
9517
- }
9518
- }
9519
- }
9520
- },
9521
- "ScdoSignedTx": {
9522
- "fields": {
9523
- "data_length": {
9524
- "type": "uint32",
9525
- "id": 1
9526
- },
9527
- "signature": {
9528
- "type": "bytes",
9529
- "id": 2
9530
- }
9531
- }
9532
- },
9533
- "ScdoTxAck": {
9534
- "fields": {
9535
- "data_chunk": {
9536
- "type": "bytes",
9537
- "id": 1
9538
- }
9539
- }
9540
- },
9541
- "ScdoSignMessage": {
9542
- "fields": {
9543
- "address_n": {
9544
- "rule": "repeated",
9545
- "type": "uint32",
9546
- "id": 1,
9547
- "options": {
9548
- "packed": false
9549
- }
9550
- },
9551
- "message": {
9552
- "type": "bytes",
9553
- "id": 2
9554
- }
9555
- }
9556
- },
9557
- "ScdoSignedMessage": {
9558
- "fields": {
9559
- "signature": {
9560
- "type": "bytes",
9561
- "id": 1
9562
- },
9563
- "address": {
9564
- "type": "string",
9565
- "id": 2
9566
- }
9567
- }
9568
- },
9569
- "SolanaOffChainMessageVersion": {
9570
- "values": {
9571
- "MESSAGE_VERSION_0": 0
9572
- }
9573
- },
9574
- "SolanaOffChainMessageFormat": {
9575
- "values": {
9576
- "V0_RESTRICTED_ASCII": 0,
9577
- "V0_LIMITED_UTF8": 1
9578
- }
9579
- },
9580
- "SolanaGetAddress": {
9581
- "fields": {
9582
- "address_n": {
9583
- "rule": "repeated",
9584
- "type": "uint32",
9585
- "id": 1,
9586
- "options": {
9587
- "packed": false
9588
- }
9589
- },
9590
- "show_display": {
9591
- "type": "bool",
9592
- "id": 2
9593
- }
9594
- }
9595
- },
9596
- "SolanaAddress": {
9597
- "fields": {
9598
- "address": {
9599
- "rule": "required",
9600
- "type": "string",
9601
- "id": 1
9602
- }
9603
- }
9604
- },
9605
- "SolanaSignTx": {
9606
- "fields": {
9607
- "address_n": {
9608
- "rule": "repeated",
9609
- "type": "uint32",
9610
- "id": 1,
9611
- "options": {
9612
- "packed": false
9613
- }
9614
- },
9615
- "raw_tx": {
9616
- "rule": "required",
9617
- "type": "bytes",
9618
- "id": 2
9619
- }
9620
- }
9621
- },
9622
- "SolanaSignedTx": {
9623
- "fields": {
9624
- "signature": {
9625
- "rule": "required",
9626
- "type": "bytes",
9627
- "id": 1
9628
- }
9629
- }
9630
- },
9631
- "SolanaSignOffChainMessage": {
9632
- "fields": {
9633
- "address_n": {
9634
- "rule": "repeated",
9635
- "type": "uint32",
9636
- "id": 1,
9637
- "options": {
9638
- "packed": false
9639
- }
9640
- },
9641
- "message": {
9642
- "rule": "required",
9643
- "type": "bytes",
9644
- "id": 2
9775
+ "id": 2
9645
9776
  },
9646
9777
  "message_version": {
9647
9778
  "type": "SolanaOffChainMessageVersion",
@@ -11531,16 +11662,16 @@
11531
11662
  }
11532
11663
  }
11533
11664
  },
11534
- "TxDetailsAmount": {
11665
+ "ViewAmount": {
11535
11666
  "fields": {
11536
- "num": {
11667
+ "is_unlimited": {
11537
11668
  "rule": "required",
11538
- "type": "string",
11669
+ "type": "bool",
11539
11670
  "id": 1
11540
11671
  },
11541
- "decimals": {
11672
+ "num": {
11542
11673
  "rule": "required",
11543
- "type": "uint32",
11674
+ "type": "string",
11544
11675
  "id": 2
11545
11676
  },
11546
11677
  "symbol": {
@@ -11550,95 +11681,64 @@
11550
11681
  }
11551
11682
  }
11552
11683
  },
11553
- "TxDetailsAddress": {
11684
+ "ViewDetail": {
11554
11685
  "fields": {
11555
11686
  "key": {
11556
11687
  "rule": "required",
11557
11688
  "type": "uint32",
11558
11689
  "id": 1
11559
11690
  },
11560
- "address": {
11691
+ "value": {
11561
11692
  "rule": "required",
11562
11693
  "type": "string",
11563
11694
  "id": 2
11564
11695
  },
11565
- "owner": {
11566
- "type": "string",
11696
+ "is_overview": {
11697
+ "rule": "required",
11698
+ "type": "bool",
11567
11699
  "id": 3
11568
11700
  },
11569
- "icon": {
11570
- "type": "string",
11571
- "id": 4
11572
- }
11573
- }
11574
- },
11575
- "TxDetailsNetwork": {
11576
- "fields": {
11577
- "coin_type": {
11701
+ "has_icon": {
11578
11702
  "rule": "required",
11579
- "type": "uint64",
11580
- "id": 1
11581
- },
11582
- "chain_id": {
11583
- "type": "uint64",
11584
- "id": 2
11703
+ "type": "bool",
11704
+ "id": 4
11585
11705
  }
11586
11706
  }
11587
11707
  },
11588
- "TxDetailsGeneral": {
11708
+ "ViewSignPage": {
11589
11709
  "fields": {
11590
- "key": {
11710
+ "title": {
11591
11711
  "rule": "required",
11592
- "type": "uint32",
11712
+ "type": "string",
11593
11713
  "id": 1
11594
11714
  },
11595
- "value": {
11596
- "rule": "required",
11597
- "type": "string",
11715
+ "amount": {
11716
+ "type": "ViewAmount",
11598
11717
  "id": 2
11599
11718
  },
11600
- "is_overview": {
11601
- "rule": "required",
11602
- "type": "bool",
11719
+ "general": {
11720
+ "rule": "repeated",
11721
+ "type": "ViewDetail",
11603
11722
  "id": 3
11604
11723
  }
11605
11724
  }
11606
11725
  },
11607
- "TxDetailsDisplayType": {
11608
- "values": {
11609
- "DISPLAY_TYPE_INFO": 0,
11610
- "DISPLAY_TYPE_SIGN": 1
11611
- }
11612
- },
11613
- "TxDetailsPage": {
11726
+ "ViewVerifyPage": {
11614
11727
  "fields": {
11615
11728
  "title": {
11616
11729
  "rule": "required",
11617
11730
  "type": "string",
11618
11731
  "id": 1
11619
11732
  },
11620
- "display_type": {
11733
+ "address": {
11621
11734
  "rule": "required",
11622
- "type": "TxDetailsDisplayType",
11735
+ "type": "string",
11623
11736
  "id": 2
11624
11737
  },
11625
- "amount": {
11626
- "type": "TxDetailsAmount",
11738
+ "path": {
11739
+ "rule": "required",
11740
+ "type": "string",
11627
11741
  "id": 3
11628
- },
11629
- "network": {
11630
- "type": "TxDetailsNetwork",
11631
- "id": 4
11632
- },
11633
- "address": {
11634
- "rule": "repeated",
11635
- "type": "TxDetailsAddress",
11636
- "id": 5
11637
- },
11638
- "general": {
11639
- "rule": "repeated",
11640
- "type": "TxDetailsGeneral",
11641
- "id": 6
11642
11742
  }
11643
11743
  }
11644
11744
  },
@@ -11724,6 +11824,102 @@
11724
11824
  }
11725
11825
  }
11726
11826
  },
11827
+ "TonSignData": {
11828
+ "fields": {
11829
+ "address_n": {
11830
+ "rule": "repeated",
11831
+ "type": "uint32",
11832
+ "id": 1,
11833
+ "options": {
11834
+ "packed": false
11835
+ }
11836
+ },
11837
+ "type": {
11838
+ "rule": "required",
11839
+ "type": "TonSignDataType",
11840
+ "id": 2
11841
+ },
11842
+ "payload": {
11843
+ "rule": "required",
11844
+ "type": "bytes",
11845
+ "id": 3
11846
+ },
11847
+ "schema": {
11848
+ "type": "string",
11849
+ "id": 4
11850
+ },
11851
+ "appdomain": {
11852
+ "rule": "required",
11853
+ "type": "string",
11854
+ "id": 5
11855
+ },
11856
+ "timestamp": {
11857
+ "rule": "required",
11858
+ "type": "uint64",
11859
+ "id": 6
11860
+ },
11861
+ "from_address": {
11862
+ "type": "string",
11863
+ "id": 7
11864
+ },
11865
+ "wallet_version": {
11866
+ "type": "TonWalletVersion",
11867
+ "id": 8,
11868
+ "options": {
11869
+ "default": "V4R2"
11870
+ }
11871
+ },
11872
+ "wallet_id": {
11873
+ "type": "uint32",
11874
+ "id": 9,
11875
+ "options": {
11876
+ "default": 698983191
11877
+ }
11878
+ },
11879
+ "workchain": {
11880
+ "type": "TonWorkChain",
11881
+ "id": 10,
11882
+ "options": {
11883
+ "default": "BASECHAIN"
11884
+ }
11885
+ },
11886
+ "is_bounceable": {
11887
+ "type": "bool",
11888
+ "id": 11,
11889
+ "options": {
11890
+ "default": false
11891
+ }
11892
+ },
11893
+ "is_testnet_only": {
11894
+ "type": "bool",
11895
+ "id": 12,
11896
+ "options": {
11897
+ "default": false
11898
+ }
11899
+ }
11900
+ },
11901
+ "nested": {
11902
+ "TonSignDataType": {
11903
+ "values": {
11904
+ "TEXT": 0,
11905
+ "BINARY": 1,
11906
+ "CELL": 2
11907
+ }
11908
+ }
11909
+ }
11910
+ },
11911
+ "TonSignedData": {
11912
+ "fields": {
11913
+ "signature": {
11914
+ "type": "bytes",
11915
+ "id": 1
11916
+ },
11917
+ "digest": {
11918
+ "type": "bytes",
11919
+ "id": 2
11920
+ }
11921
+ }
11922
+ },
11727
11923
  "GetProtoVersion": {
11728
11924
  "fields": {}
11729
11925
  },
@@ -11848,7 +12044,7 @@
11848
12044
  },
11849
12045
  "DeviceHardwareInfo": {
11850
12046
  "fields": {
11851
- "Device_type": {
12047
+ "device_type": {
11852
12048
  "type": "DeviceType",
11853
12049
  "id": 10
11854
12050
  },
@@ -12091,10 +12287,6 @@
12091
12287
  "rule": "repeated",
12092
12288
  "type": "DeviceFirmwareTarget",
12093
12289
  "id": 1
12094
- },
12095
- "max_concurrent": {
12096
- "type": "uint32",
12097
- "id": 2
12098
12290
  }
12099
12291
  }
12100
12292
  },
@@ -12404,43 +12596,72 @@
12404
12596
  "FilesystemFormat": {
12405
12597
  "fields": {}
12406
12598
  },
12407
- "FilesystemDiskControl": {
12408
- "fields": {
12409
- "enable": {
12410
- "rule": "required",
12411
- "type": "uint32",
12412
- "id": 1
12413
- }
12414
- }
12415
- },
12416
12599
  "OnboardingStep": {
12417
12600
  "values": {
12418
12601
  "ONBOARDING_STEP_UNKNOWN": 0,
12419
- "ONBOARDING_STEP_SECURITY_CHECK": 1,
12420
- "ONBOARDING_STEP_PIN": 2,
12421
- "ONBOARDING_STEP_SETUP_CHOICE": 3,
12422
- "ONBOARDING_STEP_CREATE_NEW": 4,
12423
- "ONBOARDING_STEP_SEEDCARD_BACKUP": 5,
12424
- "ONBOARDING_STEP_RESTORE_CHOICE": 6,
12425
- "ONBOARDING_STEP_RESTORE_MNEMONIC": 7,
12426
- "ONBOARDING_STEP_RESTORE_MNEMONIC_SEEDCARD_BACKUP": 8,
12427
- "ONBOARDING_STEP_RESTORE_SEEDCARD": 9,
12428
- "ONBOARDING_STEP_DONE": 100
12429
- }
12430
- },
12431
- "DeviceGetOnboardingStatus": {
12602
+ "ONBOARDING_STEP_DEVICE_VERIFICATION": 1,
12603
+ "ONBOARDING_STEP_PERSONALIZATION": 2,
12604
+ "ONBOARDING_STEP_SETUP": 3,
12605
+ "ONBOARDING_STEP_FIRMWARE": 4
12606
+ }
12607
+ },
12608
+ "GetOnboardingStatus": {
12432
12609
  "fields": {}
12433
12610
  },
12434
- "DeviceOnboardingStatus": {
12611
+ "OnboardingStatus": {
12435
12612
  "fields": {
12436
12613
  "step": {
12437
12614
  "rule": "required",
12438
12615
  "type": "OnboardingStep",
12439
12616
  "id": 1
12440
12617
  },
12441
- "page_name": {
12442
- "type": "string",
12618
+ "setup": {
12619
+ "type": "Setup",
12443
12620
  "id": 2
12621
+ },
12622
+ "detail_code": {
12623
+ "type": "uint32",
12624
+ "id": 3
12625
+ },
12626
+ "detail_str": {
12627
+ "type": "string",
12628
+ "id": 4
12629
+ }
12630
+ },
12631
+ "nested": {
12632
+ "Setup": {
12633
+ "fields": {
12634
+ "new_device": {
12635
+ "type": "NewDevice",
12636
+ "id": 1
12637
+ },
12638
+ "restore": {
12639
+ "type": "Restore",
12640
+ "id": 2
12641
+ }
12642
+ },
12643
+ "nested": {
12644
+ "NewDevice": {
12645
+ "fields": {
12646
+ "seedcard_backup": {
12647
+ "type": "bool",
12648
+ "id": 1
12649
+ }
12650
+ }
12651
+ },
12652
+ "Restore": {
12653
+ "fields": {
12654
+ "mnemonic": {
12655
+ "type": "bool",
12656
+ "id": 1
12657
+ },
12658
+ "seedcard": {
12659
+ "type": "bool",
12660
+ "id": 2
12661
+ }
12662
+ }
12663
+ }
12664
+ }
12444
12665
  }
12445
12666
  }
12446
12667
  },