@onekeyfe/hd-transport 1.2.0-alpha.1 → 1.2.0-alpha.2

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.
@@ -450,6 +450,11 @@
450
450
  "MessageType_NeoAddress": 12302,
451
451
  "MessageType_NeoSignTx": 12303,
452
452
  "MessageType_NeoSignedTx": 12304,
453
+ "MessageType_UiviewShowAddressRequest": 30200,
454
+ "MessageType_UiviewShowPublicKeyRequest": 30201,
455
+ "MessageType_UiviewConfirmTxRequest": 30202,
456
+ "MessageType_UiviewConfirmSignMessageRequest": 30203,
457
+ "MessageType_UiviewResponse": 30204,
453
458
  "MessageType_ReadSEPublicKey": 10004,
454
459
  "MessageType_SEPublicKey": 10005,
455
460
  "MessageType_WriteSEPublicCert": 10006,
@@ -460,9 +465,6 @@
460
465
  "MessageType_ResourceUpload": 10018,
461
466
  "MessageType_ZoomRequest": 10019,
462
467
  "MessageType_BlurRequest": 10032,
463
- "MessageType_SetWallpaper": 10033,
464
- "MessageType_GetWallpaper": 10034,
465
- "MessageType_Wallpaper": 10035,
466
468
  "MessageType_ResourceRequest": 10020,
467
469
  "MessageType_ResourceAck": 10021,
468
470
  "MessageType_ResourceUpdate": 10022,
@@ -504,7 +506,13 @@
504
506
  "MessageType_DevFirmwareUpdate": 61000,
505
507
  "MessageType_DevFirmwareInstallProgress": 61001,
506
508
  "MessageType_DevGetFirmwareUpdateStatus": 61002,
507
- "MessageType_DevFirmwareUpdateStatus": 61003
509
+ "MessageType_DevFirmwareUpdateStatus": 61003,
510
+ "MessageType_DeviceReboot": 60400,
511
+ "MessageType_DeviceGetDeviceInfo": 60600,
512
+ "MessageType_DeviceFirmwareUpdate": 61000,
513
+ "MessageType_DeviceFirmwareInstallProgress": 61001,
514
+ "MessageType_DeviceGetFirmwareUpdateStatus": 61002,
515
+ "MessageType_DeviceFirmwareUpdateStatus": 61003
508
516
  }
509
517
  },
510
518
  "AlephiumGetAddress": {
@@ -4094,207 +4102,6 @@
4094
4102
  }
4095
4103
  }
4096
4104
  },
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
- },
4298
4105
  "EosGetPublicKey": {
4299
4106
  "fields": {
4300
4107
  "address_n": {
@@ -6127,30 +5934,6 @@
6127
5934
  }
6128
5935
  }
6129
5936
  },
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
- },
6154
5937
  "KaspaGetAddress": {
6155
5938
  "fields": {
6156
5939
  "address_n": {
@@ -7480,49 +7263,6 @@
7480
7263
  }
7481
7264
  }
7482
7265
  },
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
- },
7526
7266
  "ResourceUpdate": {
7527
7267
  "fields": {
7528
7268
  "file_name": {
@@ -9697,6 +9437,142 @@
9697
9437
  }
9698
9438
  }
9699
9439
  },
9440
+ "ScdoGetAddress": {
9441
+ "fields": {
9442
+ "address_n": {
9443
+ "rule": "repeated",
9444
+ "type": "uint32",
9445
+ "id": 1,
9446
+ "options": {
9447
+ "packed": false
9448
+ }
9449
+ },
9450
+ "show_display": {
9451
+ "type": "bool",
9452
+ "id": 2
9453
+ }
9454
+ }
9455
+ },
9456
+ "ScdoAddress": {
9457
+ "fields": {
9458
+ "address": {
9459
+ "rule": "required",
9460
+ "type": "string",
9461
+ "id": 1
9462
+ }
9463
+ }
9464
+ },
9465
+ "ScdoSignTx": {
9466
+ "fields": {
9467
+ "address_n": {
9468
+ "rule": "repeated",
9469
+ "type": "uint32",
9470
+ "id": 1,
9471
+ "options": {
9472
+ "packed": false
9473
+ }
9474
+ },
9475
+ "nonce": {
9476
+ "rule": "required",
9477
+ "type": "bytes",
9478
+ "id": 2
9479
+ },
9480
+ "gas_price": {
9481
+ "rule": "required",
9482
+ "type": "bytes",
9483
+ "id": 3
9484
+ },
9485
+ "gas_limit": {
9486
+ "rule": "required",
9487
+ "type": "bytes",
9488
+ "id": 4
9489
+ },
9490
+ "to": {
9491
+ "rule": "required",
9492
+ "type": "string",
9493
+ "id": 5
9494
+ },
9495
+ "value": {
9496
+ "rule": "required",
9497
+ "type": "bytes",
9498
+ "id": 6
9499
+ },
9500
+ "timestamp": {
9501
+ "rule": "required",
9502
+ "type": "bytes",
9503
+ "id": 7
9504
+ },
9505
+ "data_initial_chunk": {
9506
+ "type": "bytes",
9507
+ "id": 8,
9508
+ "options": {
9509
+ "default": ""
9510
+ }
9511
+ },
9512
+ "data_length": {
9513
+ "type": "uint32",
9514
+ "id": 9,
9515
+ "options": {
9516
+ "default": 0
9517
+ }
9518
+ },
9519
+ "tx_type": {
9520
+ "type": "uint32",
9521
+ "id": 10,
9522
+ "options": {
9523
+ "default": 0
9524
+ }
9525
+ }
9526
+ }
9527
+ },
9528
+ "ScdoSignedTx": {
9529
+ "fields": {
9530
+ "data_length": {
9531
+ "type": "uint32",
9532
+ "id": 1
9533
+ },
9534
+ "signature": {
9535
+ "type": "bytes",
9536
+ "id": 2
9537
+ }
9538
+ }
9539
+ },
9540
+ "ScdoTxAck": {
9541
+ "fields": {
9542
+ "data_chunk": {
9543
+ "type": "bytes",
9544
+ "id": 1
9545
+ }
9546
+ }
9547
+ },
9548
+ "ScdoSignMessage": {
9549
+ "fields": {
9550
+ "address_n": {
9551
+ "rule": "repeated",
9552
+ "type": "uint32",
9553
+ "id": 1,
9554
+ "options": {
9555
+ "packed": false
9556
+ }
9557
+ },
9558
+ "message": {
9559
+ "type": "bytes",
9560
+ "id": 2
9561
+ }
9562
+ }
9563
+ },
9564
+ "ScdoSignedMessage": {
9565
+ "fields": {
9566
+ "signature": {
9567
+ "type": "bytes",
9568
+ "id": 1
9569
+ },
9570
+ "address": {
9571
+ "type": "string",
9572
+ "id": 2
9573
+ }
9574
+ }
9575
+ },
9700
9576
  "SolanaOffChainMessageVersion": {
9701
9577
  "values": {
9702
9578
  "MESSAGE_VERSION_0": 0
@@ -11662,105 +11538,114 @@
11662
11538
  }
11663
11539
  }
11664
11540
  },
11665
- "ViewAmount": {
11541
+ "TxDetailsAmount": {
11666
11542
  "fields": {
11667
- "is_unlimited": {
11543
+ "num": {
11668
11544
  "rule": "required",
11669
- "type": "bool",
11545
+ "type": "string",
11670
11546
  "id": 1
11671
11547
  },
11672
- "num": {
11548
+ "decimals": {
11673
11549
  "rule": "required",
11674
- "type": "string",
11550
+ "type": "uint32",
11675
11551
  "id": 2
11552
+ },
11553
+ "symbol": {
11554
+ "rule": "required",
11555
+ "type": "string",
11556
+ "id": 3
11676
11557
  }
11677
11558
  }
11678
11559
  },
11679
- "ViewDetail": {
11560
+ "TxDetailsAddress": {
11680
11561
  "fields": {
11681
11562
  "key": {
11682
11563
  "rule": "required",
11683
11564
  "type": "uint32",
11684
11565
  "id": 1
11685
11566
  },
11686
- "value": {
11567
+ "address": {
11687
11568
  "rule": "required",
11688
11569
  "type": "string",
11689
11570
  "id": 2
11690
11571
  },
11691
- "is_overview": {
11692
- "rule": "required",
11693
- "type": "bool",
11572
+ "owner": {
11573
+ "type": "string",
11694
11574
  "id": 3
11695
11575
  },
11696
- "has_icon": {
11697
- "rule": "required",
11698
- "type": "bool",
11576
+ "icon": {
11577
+ "type": "string",
11699
11578
  "id": 4
11700
11579
  }
11701
11580
  }
11702
11581
  },
11703
- "ViewTipType": {
11704
- "values": {
11705
- "Default": 0,
11706
- "Highlight": 1,
11707
- "Recommend": 2,
11708
- "Warning": 3,
11709
- "Danger": 4
11710
- }
11711
- },
11712
- "ViewTip": {
11582
+ "TxDetailsNetwork": {
11713
11583
  "fields": {
11714
- "type": {
11584
+ "coin_type": {
11715
11585
  "rule": "required",
11716
- "type": "ViewTipType",
11586
+ "type": "uint64",
11717
11587
  "id": 1
11718
11588
  },
11719
- "text": {
11720
- "rule": "required",
11721
- "type": "string",
11589
+ "chain_id": {
11590
+ "type": "uint64",
11722
11591
  "id": 2
11723
11592
  }
11724
11593
  }
11725
11594
  },
11726
- "ViewSignPage": {
11595
+ "TxDetailsGeneral": {
11727
11596
  "fields": {
11728
- "title": {
11597
+ "key": {
11729
11598
  "rule": "required",
11730
- "type": "string",
11599
+ "type": "uint32",
11731
11600
  "id": 1
11732
11601
  },
11733
- "amount": {
11734
- "type": "ViewAmount",
11602
+ "value": {
11603
+ "rule": "required",
11604
+ "type": "string",
11735
11605
  "id": 2
11736
11606
  },
11737
- "general": {
11738
- "rule": "repeated",
11739
- "type": "ViewDetail",
11607
+ "is_overview": {
11608
+ "rule": "required",
11609
+ "type": "bool",
11740
11610
  "id": 3
11741
- },
11742
- "tip": {
11743
- "type": "ViewTip",
11744
- "id": 4
11745
11611
  }
11746
11612
  }
11747
11613
  },
11748
- "ViewVerifyPage": {
11614
+ "TxDetailsDisplayType": {
11615
+ "values": {
11616
+ "DISPLAY_TYPE_INFO": 0,
11617
+ "DISPLAY_TYPE_SIGN": 1
11618
+ }
11619
+ },
11620
+ "TxDetailsPage": {
11749
11621
  "fields": {
11750
11622
  "title": {
11751
11623
  "rule": "required",
11752
11624
  "type": "string",
11753
11625
  "id": 1
11754
11626
  },
11755
- "address": {
11627
+ "display_type": {
11756
11628
  "rule": "required",
11757
- "type": "string",
11629
+ "type": "TxDetailsDisplayType",
11758
11630
  "id": 2
11759
11631
  },
11760
- "path": {
11761
- "rule": "required",
11762
- "type": "string",
11632
+ "amount": {
11633
+ "type": "TxDetailsAmount",
11763
11634
  "id": 3
11635
+ },
11636
+ "network": {
11637
+ "type": "TxDetailsNetwork",
11638
+ "id": 4
11639
+ },
11640
+ "address": {
11641
+ "rule": "repeated",
11642
+ "type": "TxDetailsAddress",
11643
+ "id": 5
11644
+ },
11645
+ "general": {
11646
+ "rule": "repeated",
11647
+ "type": "TxDetailsGeneral",
11648
+ "id": 6
11764
11649
  }
11765
11650
  }
11766
11651
  },
@@ -12074,10 +11959,6 @@
12074
11959
  "type": "string",
12075
11960
  "id": 11
12076
11961
  },
12077
- "device_id": {
12078
- "type": "string",
12079
- "id": 12
12080
- },
12081
11962
  "hardware_version": {
12082
11963
  "type": "string",
12083
11964
  "id": 100
@@ -12283,13 +12164,16 @@
12283
12164
  },
12284
12165
  "DevFirmwareTargetType": {
12285
12166
  "values": {
12286
- "TARGET_MAIN_APP": 0,
12287
- "TARGET_MAIN_BOOT": 1,
12288
- "TARGET_BT": 2,
12289
- "TARGET_SE1": 3,
12290
- "TARGET_SE2": 4,
12291
- "TARGET_SE3": 5,
12292
- "TARGET_SE4": 6,
12167
+ "TARGET_INVALID": 0,
12168
+ "TARGET_ROMLOADER": 1,
12169
+ "TARGET_BOOTLOADER": 2,
12170
+ "TARGET_APPLICATION_P1": 3,
12171
+ "TARGET_APPLICATION_P2": 4,
12172
+ "TARGET_COPROCESSOR": 5,
12173
+ "TARGET_SE01": 6,
12174
+ "TARGET_SE02": 7,
12175
+ "TARGET_SE03": 8,
12176
+ "TARGET_SE04": 9,
12293
12177
  "TARGET_RESOURCE": 10
12294
12178
  }
12295
12179
  },
@@ -13370,6 +13254,116 @@
13370
13254
  }
13371
13255
  }
13372
13256
  }
13257
+ },
13258
+ "DeviceRebootType": {
13259
+ "values": {
13260
+ "Normal": 0,
13261
+ "Romloader": 1,
13262
+ "Bootloader": 2
13263
+ }
13264
+ },
13265
+ "DeviceReboot": {
13266
+ "fields": {
13267
+ "reboot_type": {
13268
+ "rule": "required",
13269
+ "type": "DeviceRebootType",
13270
+ "id": 1
13271
+ }
13272
+ }
13273
+ },
13274
+ "DeviceGetDeviceInfo": {
13275
+ "fields": {
13276
+ "targets": {
13277
+ "type": "DevInfoTargets",
13278
+ "id": 1
13279
+ },
13280
+ "types": {
13281
+ "type": "DevInfoTypes",
13282
+ "id": 2
13283
+ }
13284
+ }
13285
+ },
13286
+ "DeviceFirmwareTargetType": {
13287
+ "values": {
13288
+ "TARGET_INVALID": 0,
13289
+ "TARGET_ROMLOADER": 1,
13290
+ "TARGET_BOOTLOADER": 2,
13291
+ "TARGET_APPLICATION_P1": 3,
13292
+ "TARGET_APPLICATION_P2": 4,
13293
+ "TARGET_COPROCESSOR": 5,
13294
+ "TARGET_SE01": 6,
13295
+ "TARGET_SE02": 7,
13296
+ "TARGET_SE03": 8,
13297
+ "TARGET_SE04": 9,
13298
+ "TARGET_RESOURCE": 10
13299
+ }
13300
+ },
13301
+ "DeviceFirmwareTarget": {
13302
+ "fields": {
13303
+ "target_id": {
13304
+ "rule": "required",
13305
+ "type": "DeviceFirmwareTargetType",
13306
+ "id": 1
13307
+ },
13308
+ "path": {
13309
+ "rule": "required",
13310
+ "type": "string",
13311
+ "id": 2
13312
+ }
13313
+ }
13314
+ },
13315
+ "DeviceFirmwareUpdate": {
13316
+ "fields": {
13317
+ "targets": {
13318
+ "rule": "repeated",
13319
+ "type": "DeviceFirmwareTarget",
13320
+ "id": 1
13321
+ }
13322
+ }
13323
+ },
13324
+ "DeviceFirmwareInstallProgress": {
13325
+ "fields": {
13326
+ "target_id": {
13327
+ "rule": "required",
13328
+ "type": "DeviceFirmwareTargetType",
13329
+ "id": 1
13330
+ },
13331
+ "progress": {
13332
+ "rule": "required",
13333
+ "type": "uint32",
13334
+ "id": 2
13335
+ },
13336
+ "stage": {
13337
+ "type": "string",
13338
+ "id": 3
13339
+ }
13340
+ }
13341
+ },
13342
+ "DeviceFirmwareUpdateStatusEntry": {
13343
+ "fields": {
13344
+ "target_id": {
13345
+ "rule": "required",
13346
+ "type": "DeviceFirmwareTargetType",
13347
+ "id": 1
13348
+ },
13349
+ "status": {
13350
+ "rule": "required",
13351
+ "type": "uint32",
13352
+ "id": 2
13353
+ }
13354
+ }
13355
+ },
13356
+ "DeviceGetFirmwareUpdateStatus": {
13357
+ "fields": {}
13358
+ },
13359
+ "DeviceFirmwareUpdateStatus": {
13360
+ "fields": {
13361
+ "targets": {
13362
+ "rule": "repeated",
13363
+ "type": "DeviceFirmwareUpdateStatusEntry",
13364
+ "id": 1
13365
+ }
13366
+ }
13373
13367
  }
13374
13368
  }
13375
13369
  }