@onekeyfe/hd-transport 1.2.0-alpha.0 → 1.2.0-alpha.1
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.
- package/__tests__/protocol-v2.test.js +3 -3
- package/dist/index.d.ts +95 -124
- package/dist/index.js +28 -44
- package/dist/types/messages.d.ts +68 -88
- package/dist/types/messages.d.ts.map +1 -1
- package/messages-protocol-v2.json +329 -323
- package/package.json +2 -2
- package/src/protocols/v2/session.ts +6 -6
- package/src/types/messages.ts +86 -113
|
@@ -450,11 +450,6 @@
|
|
|
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,
|
|
458
453
|
"MessageType_ReadSEPublicKey": 10004,
|
|
459
454
|
"MessageType_SEPublicKey": 10005,
|
|
460
455
|
"MessageType_WriteSEPublicCert": 10006,
|
|
@@ -465,6 +460,9 @@
|
|
|
465
460
|
"MessageType_ResourceUpload": 10018,
|
|
466
461
|
"MessageType_ZoomRequest": 10019,
|
|
467
462
|
"MessageType_BlurRequest": 10032,
|
|
463
|
+
"MessageType_SetWallpaper": 10033,
|
|
464
|
+
"MessageType_GetWallpaper": 10034,
|
|
465
|
+
"MessageType_Wallpaper": 10035,
|
|
468
466
|
"MessageType_ResourceRequest": 10020,
|
|
469
467
|
"MessageType_ResourceAck": 10021,
|
|
470
468
|
"MessageType_ResourceUpdate": 10022,
|
|
@@ -506,13 +504,7 @@
|
|
|
506
504
|
"MessageType_DevFirmwareUpdate": 61000,
|
|
507
505
|
"MessageType_DevFirmwareInstallProgress": 61001,
|
|
508
506
|
"MessageType_DevGetFirmwareUpdateStatus": 61002,
|
|
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
|
|
507
|
+
"MessageType_DevFirmwareUpdateStatus": 61003
|
|
516
508
|
}
|
|
517
509
|
},
|
|
518
510
|
"AlephiumGetAddress": {
|
|
@@ -4102,6 +4094,207 @@
|
|
|
4102
4094
|
}
|
|
4103
4095
|
}
|
|
4104
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
|
+
},
|
|
4105
4298
|
"EosGetPublicKey": {
|
|
4106
4299
|
"fields": {
|
|
4107
4300
|
"address_n": {
|
|
@@ -5934,6 +6127,30 @@
|
|
|
5934
6127
|
}
|
|
5935
6128
|
}
|
|
5936
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
|
+
},
|
|
5937
6154
|
"KaspaGetAddress": {
|
|
5938
6155
|
"fields": {
|
|
5939
6156
|
"address_n": {
|
|
@@ -7263,6 +7480,49 @@
|
|
|
7263
7480
|
}
|
|
7264
7481
|
}
|
|
7265
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
|
+
},
|
|
7266
7526
|
"ResourceUpdate": {
|
|
7267
7527
|
"fields": {
|
|
7268
7528
|
"file_name": {
|
|
@@ -9437,142 +9697,6 @@
|
|
|
9437
9697
|
}
|
|
9438
9698
|
}
|
|
9439
9699
|
},
|
|
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
|
-
},
|
|
9576
9700
|
"SolanaOffChainMessageVersion": {
|
|
9577
9701
|
"values": {
|
|
9578
9702
|
"MESSAGE_VERSION_0": 0
|
|
@@ -11538,114 +11662,105 @@
|
|
|
11538
11662
|
}
|
|
11539
11663
|
}
|
|
11540
11664
|
},
|
|
11541
|
-
"
|
|
11665
|
+
"ViewAmount": {
|
|
11542
11666
|
"fields": {
|
|
11543
|
-
"
|
|
11667
|
+
"is_unlimited": {
|
|
11544
11668
|
"rule": "required",
|
|
11545
|
-
"type": "
|
|
11669
|
+
"type": "bool",
|
|
11546
11670
|
"id": 1
|
|
11547
11671
|
},
|
|
11548
|
-
"
|
|
11549
|
-
"rule": "required",
|
|
11550
|
-
"type": "uint32",
|
|
11551
|
-
"id": 2
|
|
11552
|
-
},
|
|
11553
|
-
"symbol": {
|
|
11672
|
+
"num": {
|
|
11554
11673
|
"rule": "required",
|
|
11555
11674
|
"type": "string",
|
|
11556
|
-
"id":
|
|
11675
|
+
"id": 2
|
|
11557
11676
|
}
|
|
11558
11677
|
}
|
|
11559
11678
|
},
|
|
11560
|
-
"
|
|
11679
|
+
"ViewDetail": {
|
|
11561
11680
|
"fields": {
|
|
11562
11681
|
"key": {
|
|
11563
11682
|
"rule": "required",
|
|
11564
11683
|
"type": "uint32",
|
|
11565
11684
|
"id": 1
|
|
11566
11685
|
},
|
|
11567
|
-
"
|
|
11686
|
+
"value": {
|
|
11568
11687
|
"rule": "required",
|
|
11569
11688
|
"type": "string",
|
|
11570
11689
|
"id": 2
|
|
11571
11690
|
},
|
|
11572
|
-
"
|
|
11573
|
-
"
|
|
11691
|
+
"is_overview": {
|
|
11692
|
+
"rule": "required",
|
|
11693
|
+
"type": "bool",
|
|
11574
11694
|
"id": 3
|
|
11575
11695
|
},
|
|
11576
|
-
"
|
|
11577
|
-
"
|
|
11696
|
+
"has_icon": {
|
|
11697
|
+
"rule": "required",
|
|
11698
|
+
"type": "bool",
|
|
11578
11699
|
"id": 4
|
|
11579
11700
|
}
|
|
11580
11701
|
}
|
|
11581
11702
|
},
|
|
11582
|
-
"
|
|
11703
|
+
"ViewTipType": {
|
|
11704
|
+
"values": {
|
|
11705
|
+
"Default": 0,
|
|
11706
|
+
"Highlight": 1,
|
|
11707
|
+
"Recommend": 2,
|
|
11708
|
+
"Warning": 3,
|
|
11709
|
+
"Danger": 4
|
|
11710
|
+
}
|
|
11711
|
+
},
|
|
11712
|
+
"ViewTip": {
|
|
11583
11713
|
"fields": {
|
|
11584
|
-
"
|
|
11714
|
+
"type": {
|
|
11585
11715
|
"rule": "required",
|
|
11586
|
-
"type": "
|
|
11716
|
+
"type": "ViewTipType",
|
|
11587
11717
|
"id": 1
|
|
11588
11718
|
},
|
|
11589
|
-
"
|
|
11590
|
-
"
|
|
11719
|
+
"text": {
|
|
11720
|
+
"rule": "required",
|
|
11721
|
+
"type": "string",
|
|
11591
11722
|
"id": 2
|
|
11592
11723
|
}
|
|
11593
11724
|
}
|
|
11594
11725
|
},
|
|
11595
|
-
"
|
|
11726
|
+
"ViewSignPage": {
|
|
11596
11727
|
"fields": {
|
|
11597
|
-
"
|
|
11728
|
+
"title": {
|
|
11598
11729
|
"rule": "required",
|
|
11599
|
-
"type": "
|
|
11730
|
+
"type": "string",
|
|
11600
11731
|
"id": 1
|
|
11601
11732
|
},
|
|
11602
|
-
"
|
|
11603
|
-
"
|
|
11604
|
-
"type": "string",
|
|
11733
|
+
"amount": {
|
|
11734
|
+
"type": "ViewAmount",
|
|
11605
11735
|
"id": 2
|
|
11606
11736
|
},
|
|
11607
|
-
"
|
|
11608
|
-
"rule": "
|
|
11609
|
-
"type": "
|
|
11737
|
+
"general": {
|
|
11738
|
+
"rule": "repeated",
|
|
11739
|
+
"type": "ViewDetail",
|
|
11610
11740
|
"id": 3
|
|
11741
|
+
},
|
|
11742
|
+
"tip": {
|
|
11743
|
+
"type": "ViewTip",
|
|
11744
|
+
"id": 4
|
|
11611
11745
|
}
|
|
11612
11746
|
}
|
|
11613
11747
|
},
|
|
11614
|
-
"
|
|
11615
|
-
"values": {
|
|
11616
|
-
"DISPLAY_TYPE_INFO": 0,
|
|
11617
|
-
"DISPLAY_TYPE_SIGN": 1
|
|
11618
|
-
}
|
|
11619
|
-
},
|
|
11620
|
-
"TxDetailsPage": {
|
|
11748
|
+
"ViewVerifyPage": {
|
|
11621
11749
|
"fields": {
|
|
11622
11750
|
"title": {
|
|
11623
11751
|
"rule": "required",
|
|
11624
11752
|
"type": "string",
|
|
11625
11753
|
"id": 1
|
|
11626
11754
|
},
|
|
11627
|
-
"
|
|
11755
|
+
"address": {
|
|
11628
11756
|
"rule": "required",
|
|
11629
|
-
"type": "
|
|
11757
|
+
"type": "string",
|
|
11630
11758
|
"id": 2
|
|
11631
11759
|
},
|
|
11632
|
-
"
|
|
11633
|
-
"
|
|
11760
|
+
"path": {
|
|
11761
|
+
"rule": "required",
|
|
11762
|
+
"type": "string",
|
|
11634
11763
|
"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
|
|
11649
11764
|
}
|
|
11650
11765
|
}
|
|
11651
11766
|
},
|
|
@@ -11959,6 +12074,10 @@
|
|
|
11959
12074
|
"type": "string",
|
|
11960
12075
|
"id": 11
|
|
11961
12076
|
},
|
|
12077
|
+
"device_id": {
|
|
12078
|
+
"type": "string",
|
|
12079
|
+
"id": 12
|
|
12080
|
+
},
|
|
11962
12081
|
"hardware_version": {
|
|
11963
12082
|
"type": "string",
|
|
11964
12083
|
"id": 100
|
|
@@ -12164,16 +12283,13 @@
|
|
|
12164
12283
|
},
|
|
12165
12284
|
"DevFirmwareTargetType": {
|
|
12166
12285
|
"values": {
|
|
12167
|
-
"
|
|
12168
|
-
"
|
|
12169
|
-
"
|
|
12170
|
-
"
|
|
12171
|
-
"
|
|
12172
|
-
"
|
|
12173
|
-
"
|
|
12174
|
-
"TARGET_SE02": 7,
|
|
12175
|
-
"TARGET_SE03": 8,
|
|
12176
|
-
"TARGET_SE04": 9,
|
|
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,
|
|
12177
12293
|
"TARGET_RESOURCE": 10
|
|
12178
12294
|
}
|
|
12179
12295
|
},
|
|
@@ -13254,116 +13370,6 @@
|
|
|
13254
13370
|
}
|
|
13255
13371
|
}
|
|
13256
13372
|
}
|
|
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
|
-
}
|
|
13367
13373
|
}
|
|
13368
13374
|
}
|
|
13369
13375
|
}
|