@onekeyfe/hd-transport 0.0.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.
Files changed (56) hide show
  1. package/.eslintrc +21 -0
  2. package/README.md +3 -0
  3. package/dist/constants.d.ts +5 -0
  4. package/dist/constants.d.ts.map +1 -0
  5. package/dist/index.d.ts +2725 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +742 -0
  8. package/dist/serialization/index.d.ts +5 -0
  9. package/dist/serialization/index.d.ts.map +1 -0
  10. package/dist/serialization/protobuf/decode.d.ts +6 -0
  11. package/dist/serialization/protobuf/decode.d.ts.map +1 -0
  12. package/dist/serialization/protobuf/encode.d.ts +5 -0
  13. package/dist/serialization/protobuf/encode.d.ts.map +1 -0
  14. package/dist/serialization/protobuf/index.d.ts +4 -0
  15. package/dist/serialization/protobuf/index.d.ts.map +1 -0
  16. package/dist/serialization/protobuf/messages.d.ts +11 -0
  17. package/dist/serialization/protobuf/messages.d.ts.map +1 -0
  18. package/dist/serialization/protocol/decode.d.ts +11 -0
  19. package/dist/serialization/protocol/decode.d.ts.map +1 -0
  20. package/dist/serialization/protocol/encode.d.ts +11 -0
  21. package/dist/serialization/protocol/encode.d.ts.map +1 -0
  22. package/dist/serialization/protocol/index.d.ts +3 -0
  23. package/dist/serialization/protocol/index.d.ts.map +1 -0
  24. package/dist/serialization/receive.d.ts +8 -0
  25. package/dist/serialization/receive.d.ts.map +1 -0
  26. package/dist/serialization/send.d.ts +6 -0
  27. package/dist/serialization/send.d.ts.map +1 -0
  28. package/dist/types/index.d.ts +3 -0
  29. package/dist/types/index.d.ts.map +1 -0
  30. package/dist/types/messages.d.ts +1954 -0
  31. package/dist/types/messages.d.ts.map +1 -0
  32. package/dist/types/transport.d.ts +42 -0
  33. package/dist/types/transport.d.ts.map +1 -0
  34. package/dist/utils/highlevel-checks.d.ts +10 -0
  35. package/dist/utils/highlevel-checks.d.ts.map +1 -0
  36. package/dist/utils/protobuf.d.ts +2 -0
  37. package/dist/utils/protobuf.d.ts.map +1 -0
  38. package/package.json +27 -0
  39. package/src/constants.ts +4 -0
  40. package/src/index.ts +28 -0
  41. package/src/serialization/index.ts +6 -0
  42. package/src/serialization/protobuf/decode.ts +83 -0
  43. package/src/serialization/protobuf/encode.ts +79 -0
  44. package/src/serialization/protobuf/index.ts +3 -0
  45. package/src/serialization/protobuf/messages.ts +37 -0
  46. package/src/serialization/protocol/decode.ts +48 -0
  47. package/src/serialization/protocol/encode.ts +59 -0
  48. package/src/serialization/protocol/index.ts +2 -0
  49. package/src/serialization/receive.ts +18 -0
  50. package/src/serialization/send.ts +39 -0
  51. package/src/types/index.ts +2 -0
  52. package/src/types/messages.ts +2489 -0
  53. package/src/types/transport.ts +51 -0
  54. package/src/utils/highlevel-checks.ts +88 -0
  55. package/src/utils/protobuf.ts +24 -0
  56. package/tsconfig.json +7 -0
@@ -0,0 +1,1954 @@
1
+ /// <reference types="node" />
2
+ export declare type UintType = string | number;
3
+ declare type Empty = Record<string, never>;
4
+ export declare type BinanceGetAddress = {
5
+ address_n: number[];
6
+ show_display?: boolean;
7
+ };
8
+ export declare type BinanceAddress = {
9
+ address: string;
10
+ };
11
+ export declare type BinanceGetPublicKey = {
12
+ address_n: number[];
13
+ show_display?: boolean;
14
+ };
15
+ export declare type BinancePublicKey = {
16
+ public_key: string;
17
+ };
18
+ export declare type BinanceSignTx = {
19
+ address_n: number[];
20
+ msg_count: number;
21
+ account_number: number;
22
+ chain_id?: string;
23
+ memo?: string;
24
+ sequence: number;
25
+ source: number;
26
+ };
27
+ export declare type BinanceTxRequest = Record<string, never>;
28
+ export declare type BinanceCoin = {
29
+ amount: UintType;
30
+ denom: string;
31
+ };
32
+ export declare type BinanceInputOutput = {
33
+ address: string;
34
+ coins: BinanceCoin[];
35
+ };
36
+ export declare type BinanceTransferMsg = {
37
+ inputs: BinanceInputOutput[];
38
+ outputs: BinanceInputOutput[];
39
+ };
40
+ export declare enum BinanceOrderType {
41
+ OT_UNKNOWN = 0,
42
+ MARKET = 1,
43
+ LIMIT = 2,
44
+ OT_RESERVED = 3
45
+ }
46
+ export declare enum BinanceOrderSide {
47
+ SIDE_UNKNOWN = 0,
48
+ BUY = 1,
49
+ SELL = 2
50
+ }
51
+ export declare enum BinanceTimeInForce {
52
+ TIF_UNKNOWN = 0,
53
+ GTE = 1,
54
+ TIF_RESERVED = 2,
55
+ IOC = 3
56
+ }
57
+ export declare type BinanceOrderMsg = {
58
+ id?: string;
59
+ ordertype: BinanceOrderType;
60
+ price: number;
61
+ quantity: number;
62
+ sender?: string;
63
+ side: BinanceOrderSide;
64
+ symbol?: string;
65
+ timeinforce: BinanceTimeInForce;
66
+ };
67
+ export declare type BinanceCancelMsg = {
68
+ refid?: string;
69
+ sender?: string;
70
+ symbol?: string;
71
+ };
72
+ export declare type BinanceSignedTx = {
73
+ signature: string;
74
+ public_key: string;
75
+ };
76
+ export declare enum Enum_InputScriptType {
77
+ SPENDADDRESS = 0,
78
+ SPENDMULTISIG = 1,
79
+ EXTERNAL = 2,
80
+ SPENDWITNESS = 3,
81
+ SPENDP2SHWITNESS = 4,
82
+ SPENDTAPROOT = 5
83
+ }
84
+ export declare type InputScriptType = keyof typeof Enum_InputScriptType;
85
+ export declare enum Enum_OutputScriptType {
86
+ PAYTOADDRESS = 0,
87
+ PAYTOSCRIPTHASH = 1,
88
+ PAYTOMULTISIG = 2,
89
+ PAYTOOPRETURN = 3,
90
+ PAYTOWITNESS = 4,
91
+ PAYTOP2SHWITNESS = 5,
92
+ PAYTOTAPROOT = 6
93
+ }
94
+ export declare type OutputScriptType = keyof typeof Enum_OutputScriptType;
95
+ export declare enum DecredStakingSpendType {
96
+ SSGen = 0,
97
+ SSRTX = 1
98
+ }
99
+ export declare enum AmountUnit {
100
+ BITCOIN = 0,
101
+ MILLIBITCOIN = 1,
102
+ MICROBITCOIN = 2,
103
+ SATOSHI = 3
104
+ }
105
+ export declare type HDNodeType = {
106
+ depth: number;
107
+ fingerprint: number;
108
+ child_num: number;
109
+ chain_code: string;
110
+ private_key?: string;
111
+ public_key: string;
112
+ };
113
+ export declare type HDNodePathType = {
114
+ node: HDNodeType | string;
115
+ address_n: number[];
116
+ };
117
+ export declare type MultisigRedeemScriptType = {
118
+ pubkeys: HDNodePathType[];
119
+ signatures: string[];
120
+ m: number;
121
+ nodes?: HDNodeType[];
122
+ address_n?: number[];
123
+ };
124
+ export declare type GetPublicKey = {
125
+ address_n: number[];
126
+ ecdsa_curve_name?: string;
127
+ show_display?: boolean;
128
+ coin_name?: string;
129
+ script_type?: InputScriptType;
130
+ ignore_xpub_magic?: boolean;
131
+ };
132
+ export declare type PublicKey = {
133
+ node: HDNodeType;
134
+ xpub: string;
135
+ root_fingerprint?: number;
136
+ };
137
+ export declare type GetAddress = {
138
+ address_n: number[];
139
+ coin_name?: string;
140
+ show_display?: boolean;
141
+ multisig?: MultisigRedeemScriptType;
142
+ script_type?: InputScriptType;
143
+ ignore_xpub_magic?: boolean;
144
+ };
145
+ export declare type Address = {
146
+ address: string;
147
+ mac?: string;
148
+ };
149
+ export declare type GetOwnershipId = {
150
+ address_n: number[];
151
+ coin_name?: string;
152
+ multisig?: MultisigRedeemScriptType;
153
+ script_type?: InputScriptType;
154
+ };
155
+ export declare type OwnershipId = {
156
+ ownership_id: string;
157
+ };
158
+ export declare type SignMessage = {
159
+ address_n: number[];
160
+ message: string;
161
+ coin_name?: string;
162
+ script_type?: InputScriptType;
163
+ no_script_type?: boolean;
164
+ };
165
+ export declare type MessageSignature = {
166
+ address: string;
167
+ signature: string;
168
+ };
169
+ export declare type VerifyMessage = {
170
+ address: string;
171
+ signature: string;
172
+ message: string;
173
+ coin_name?: string;
174
+ };
175
+ export declare type SignTx = {
176
+ outputs_count: number;
177
+ inputs_count: number;
178
+ coin_name?: string;
179
+ version?: number;
180
+ lock_time?: number;
181
+ expiry?: number;
182
+ overwintered?: boolean;
183
+ version_group_id?: number;
184
+ timestamp?: number;
185
+ branch_id?: number;
186
+ amount_unit?: AmountUnit;
187
+ decred_staking_ticket?: boolean;
188
+ };
189
+ export declare enum Enum_RequestType {
190
+ TXINPUT = 0,
191
+ TXOUTPUT = 1,
192
+ TXMETA = 2,
193
+ TXFINISHED = 3,
194
+ TXEXTRADATA = 4,
195
+ TXORIGINPUT = 5,
196
+ TXORIGOUTPUT = 6,
197
+ TXPAYMENTREQ = 7
198
+ }
199
+ export declare type RequestType = keyof typeof Enum_RequestType;
200
+ export declare type TxRequestDetailsType = {
201
+ request_index: number;
202
+ tx_hash?: string;
203
+ extra_data_len?: number;
204
+ extra_data_offset?: number;
205
+ };
206
+ export declare type TxRequestSerializedType = {
207
+ signature_index?: number;
208
+ signature?: string;
209
+ serialized_tx?: string;
210
+ };
211
+ export declare type TxRequest = {
212
+ request_type: RequestType;
213
+ details: TxRequestDetailsType;
214
+ serialized?: TxRequestSerializedType;
215
+ };
216
+ export declare type InternalInputScriptType = Exclude<InputScriptType, 'EXTERNAL'>;
217
+ declare type CommonTxInputType = {
218
+ prev_hash: string;
219
+ prev_index: number;
220
+ amount: UintType;
221
+ sequence?: number;
222
+ multisig?: MultisigRedeemScriptType;
223
+ decred_tree?: number;
224
+ orig_hash?: string;
225
+ orig_index?: number;
226
+ decred_staking_spend?: DecredStakingSpendType;
227
+ script_pubkey?: string;
228
+ script_sig?: string;
229
+ witness?: string;
230
+ ownership_proof?: string;
231
+ commitment_data?: string;
232
+ };
233
+ export declare type TxInputType = (CommonTxInputType & {
234
+ address_n: number[];
235
+ script_type?: InternalInputScriptType;
236
+ }) | (CommonTxInputType & {
237
+ address_n?: typeof undefined;
238
+ script_type: 'EXTERNAL';
239
+ script_pubkey: string;
240
+ });
241
+ export declare type TxInput = TxInputType;
242
+ export declare type TxOutputBinType = {
243
+ amount: UintType;
244
+ script_pubkey: string;
245
+ decred_script_version?: number;
246
+ };
247
+ export declare type ChangeOutputScriptType = Exclude<OutputScriptType, 'PAYTOOPRETURN'>;
248
+ export declare type TxOutputType = {
249
+ address: string;
250
+ address_n?: typeof undefined;
251
+ script_type: 'PAYTOADDRESS';
252
+ amount: UintType;
253
+ multisig?: MultisigRedeemScriptType;
254
+ orig_hash?: string;
255
+ orig_index?: number;
256
+ payment_req_index?: number;
257
+ } | {
258
+ address?: typeof undefined;
259
+ address_n: number[];
260
+ script_type: ChangeOutputScriptType;
261
+ amount: UintType;
262
+ multisig?: MultisigRedeemScriptType;
263
+ orig_hash?: string;
264
+ orig_index?: number;
265
+ payment_req_index?: number;
266
+ } | {
267
+ address?: typeof undefined;
268
+ address_n?: typeof undefined;
269
+ amount: '0';
270
+ op_return_data: string;
271
+ script_type: 'PAYTOOPRETURN';
272
+ orig_hash?: string;
273
+ orig_index?: number;
274
+ payment_req_index?: number;
275
+ };
276
+ export declare type TxOutput = TxOutputType;
277
+ export declare type PrevTx = {
278
+ version: number;
279
+ lock_time: number;
280
+ inputs_count: number;
281
+ outputs_count: number;
282
+ extra_data_len?: number;
283
+ expiry?: number;
284
+ version_group_id?: number;
285
+ timestamp?: number;
286
+ branch_id?: number;
287
+ };
288
+ export declare type PrevInput = {
289
+ prev_hash: string;
290
+ prev_index: number;
291
+ script_sig: string;
292
+ sequence: number;
293
+ decred_tree?: number;
294
+ };
295
+ export declare type PrevOutput = {
296
+ amount: UintType;
297
+ script_pubkey: string;
298
+ decred_script_version?: number;
299
+ };
300
+ export declare type TextMemo = {
301
+ text: string;
302
+ };
303
+ export declare type RefundMemo = {
304
+ address: string;
305
+ mac: string;
306
+ };
307
+ export declare type CoinPurchaseMemo = {
308
+ coin_type: number;
309
+ amount: UintType;
310
+ address: string;
311
+ mac: string;
312
+ };
313
+ export declare type PaymentRequestMemo = {
314
+ text_memo?: TextMemo;
315
+ refund_memo?: RefundMemo;
316
+ coin_purchase_memo?: CoinPurchaseMemo;
317
+ };
318
+ export declare type TxAckPaymentRequest = {
319
+ nonce?: string;
320
+ recipient_name: string;
321
+ memos?: PaymentRequestMemo[];
322
+ amount?: UintType;
323
+ signature: string;
324
+ };
325
+ export declare type TxAckResponse = {
326
+ inputs: Array<TxInputType | PrevInput>;
327
+ } | {
328
+ bin_outputs: TxOutputBinType[];
329
+ } | {
330
+ outputs: TxOutputType[];
331
+ } | {
332
+ extra_data: string;
333
+ } | {
334
+ version?: number;
335
+ lock_time?: number;
336
+ inputs_cnt: number;
337
+ outputs_cnt: number;
338
+ extra_data?: string;
339
+ extra_data_len?: number;
340
+ timestamp?: number;
341
+ version_group_id?: number;
342
+ expiry?: number;
343
+ branch_id?: number;
344
+ };
345
+ export declare type TxAck = {
346
+ tx: TxAckResponse;
347
+ };
348
+ export declare type TxAckInputWrapper = {
349
+ input: TxInput;
350
+ };
351
+ export declare type TxAckInput = {
352
+ tx: TxAckInputWrapper;
353
+ };
354
+ export declare type TxAckOutputWrapper = {
355
+ output: TxOutput;
356
+ };
357
+ export declare type TxAckOutput = {
358
+ tx: TxAckOutputWrapper;
359
+ };
360
+ export declare type TxAckPrevMeta = {
361
+ tx: PrevTx;
362
+ };
363
+ export declare type TxAckPrevInputWrapper = {
364
+ input: PrevInput;
365
+ };
366
+ export declare type TxAckPrevInput = {
367
+ tx: TxAckPrevInputWrapper;
368
+ };
369
+ export declare type TxAckPrevOutputWrapper = {
370
+ output: PrevOutput;
371
+ };
372
+ export declare type TxAckPrevOutput = {
373
+ tx: TxAckPrevOutputWrapper;
374
+ };
375
+ export declare type TxAckPrevExtraDataWrapper = {
376
+ extra_data_chunk: string;
377
+ };
378
+ export declare type TxAckPrevExtraData = {
379
+ tx: TxAckPrevExtraDataWrapper;
380
+ };
381
+ export declare type GetOwnershipProof = {
382
+ address_n: number[];
383
+ coin_name?: string;
384
+ script_type?: InputScriptType;
385
+ multisig?: MultisigRedeemScriptType;
386
+ user_confirmation?: boolean;
387
+ ownership_ids?: string[];
388
+ commitment_data?: string;
389
+ };
390
+ export declare type OwnershipProof = {
391
+ ownership_proof: string;
392
+ signature: string;
393
+ };
394
+ export declare type AuthorizeCoinJoin = {
395
+ coordinator: string;
396
+ max_rounds: number;
397
+ max_coordinator_fee_rate: number;
398
+ max_fee_per_kvbyte: number;
399
+ address_n: number[];
400
+ coin_name?: string;
401
+ script_type?: InputScriptType;
402
+ amount_unit?: AmountUnit;
403
+ };
404
+ export declare type FirmwareErase = {
405
+ length?: number;
406
+ };
407
+ export declare type FirmwareRequest = {
408
+ offset?: number;
409
+ length?: number;
410
+ };
411
+ export declare type FirmwareUpload = {
412
+ payload: Buffer | ArrayBuffer;
413
+ hash?: string;
414
+ };
415
+ export declare type SelfTest = {
416
+ payload?: string;
417
+ };
418
+ export declare enum CardanoDerivationType {
419
+ LEDGER = 0,
420
+ ICARUS = 1,
421
+ ICARUS_TREZOR = 2
422
+ }
423
+ export declare enum CardanoAddressType {
424
+ BASE = 0,
425
+ BASE_SCRIPT_KEY = 1,
426
+ BASE_KEY_SCRIPT = 2,
427
+ BASE_SCRIPT_SCRIPT = 3,
428
+ POINTER = 4,
429
+ POINTER_SCRIPT = 5,
430
+ ENTERPRISE = 6,
431
+ ENTERPRISE_SCRIPT = 7,
432
+ BYRON = 8,
433
+ REWARD = 14,
434
+ REWARD_SCRIPT = 15
435
+ }
436
+ export declare enum CardanoNativeScriptType {
437
+ PUB_KEY = 0,
438
+ ALL = 1,
439
+ ANY = 2,
440
+ N_OF_K = 3,
441
+ INVALID_BEFORE = 4,
442
+ INVALID_HEREAFTER = 5
443
+ }
444
+ export declare enum CardanoNativeScriptHashDisplayFormat {
445
+ HIDE = 0,
446
+ BECH32 = 1,
447
+ POLICY_ID = 2
448
+ }
449
+ export declare enum CardanoCertificateType {
450
+ STAKE_REGISTRATION = 0,
451
+ STAKE_DEREGISTRATION = 1,
452
+ STAKE_DELEGATION = 2,
453
+ STAKE_POOL_REGISTRATION = 3
454
+ }
455
+ export declare enum CardanoPoolRelayType {
456
+ SINGLE_HOST_IP = 0,
457
+ SINGLE_HOST_NAME = 1,
458
+ MULTIPLE_HOST_NAME = 2
459
+ }
460
+ export declare enum CardanoTxAuxiliaryDataSupplementType {
461
+ NONE = 0,
462
+ CATALYST_REGISTRATION_SIGNATURE = 1
463
+ }
464
+ export declare enum CardanoTxSigningMode {
465
+ ORDINARY_TRANSACTION = 0,
466
+ POOL_REGISTRATION_AS_OWNER = 1,
467
+ MULTISIG_TRANSACTION = 2,
468
+ PLUTUS_TRANSACTION = 3
469
+ }
470
+ export declare enum CardanoTxWitnessType {
471
+ BYRON_WITNESS = 0,
472
+ SHELLEY_WITNESS = 1
473
+ }
474
+ export declare type CardanoBlockchainPointerType = {
475
+ block_index: number;
476
+ tx_index: number;
477
+ certificate_index: number;
478
+ };
479
+ export declare type CardanoNativeScript = {
480
+ type: CardanoNativeScriptType;
481
+ scripts?: CardanoNativeScript[];
482
+ key_hash?: string;
483
+ key_path?: number[];
484
+ required_signatures_count?: number;
485
+ invalid_before?: UintType;
486
+ invalid_hereafter?: UintType;
487
+ };
488
+ export declare type CardanoGetNativeScriptHash = {
489
+ script: CardanoNativeScript;
490
+ display_format: CardanoNativeScriptHashDisplayFormat;
491
+ derivation_type: CardanoDerivationType;
492
+ };
493
+ export declare type CardanoNativeScriptHash = {
494
+ script_hash: string;
495
+ };
496
+ export declare type CardanoAddressParametersType = {
497
+ address_type: CardanoAddressType;
498
+ address_n: number[];
499
+ address_n_staking: number[];
500
+ staking_key_hash?: string;
501
+ certificate_pointer?: CardanoBlockchainPointerType;
502
+ script_payment_hash?: string;
503
+ script_staking_hash?: string;
504
+ };
505
+ export declare type CardanoGetAddress = {
506
+ show_display?: boolean;
507
+ protocol_magic: number;
508
+ network_id: number;
509
+ address_parameters: CardanoAddressParametersType;
510
+ derivation_type: CardanoDerivationType;
511
+ };
512
+ export declare type CardanoAddress = {
513
+ address: string;
514
+ };
515
+ export declare type CardanoGetPublicKey = {
516
+ address_n: number[];
517
+ show_display?: boolean;
518
+ derivation_type: CardanoDerivationType;
519
+ };
520
+ export declare type CardanoPublicKey = {
521
+ xpub: string;
522
+ node: HDNodeType;
523
+ };
524
+ export declare type CardanoSignTxInit = {
525
+ signing_mode: CardanoTxSigningMode;
526
+ protocol_magic: number;
527
+ network_id: number;
528
+ inputs_count: number;
529
+ outputs_count: number;
530
+ fee: UintType;
531
+ ttl?: UintType;
532
+ certificates_count: number;
533
+ withdrawals_count: number;
534
+ has_auxiliary_data: boolean;
535
+ validity_interval_start?: UintType;
536
+ witness_requests_count: number;
537
+ minting_asset_groups_count: number;
538
+ derivation_type: CardanoDerivationType;
539
+ include_network_id?: boolean;
540
+ script_data_hash?: string;
541
+ collateral_inputs_count: number;
542
+ required_signers_count: number;
543
+ };
544
+ export declare type CardanoTxInput = {
545
+ prev_hash: string;
546
+ prev_index: number;
547
+ };
548
+ export declare type CardanoTxOutput = {
549
+ address?: string;
550
+ address_parameters?: CardanoAddressParametersType;
551
+ amount: UintType;
552
+ asset_groups_count: number;
553
+ datum_hash?: string;
554
+ };
555
+ export declare type CardanoAssetGroup = {
556
+ policy_id: string;
557
+ tokens_count: number;
558
+ };
559
+ export declare type CardanoToken = {
560
+ asset_name_bytes: string;
561
+ amount?: UintType;
562
+ mint_amount?: UintType;
563
+ };
564
+ export declare type CardanoPoolOwner = {
565
+ staking_key_path?: number[];
566
+ staking_key_hash?: string;
567
+ };
568
+ export declare type CardanoPoolRelayParameters = {
569
+ type: CardanoPoolRelayType;
570
+ ipv4_address?: string;
571
+ ipv6_address?: string;
572
+ host_name?: string;
573
+ port?: number;
574
+ };
575
+ export declare type CardanoPoolMetadataType = {
576
+ url: string;
577
+ hash: string;
578
+ };
579
+ export declare type CardanoPoolParametersType = {
580
+ pool_id: string;
581
+ vrf_key_hash: string;
582
+ pledge: UintType;
583
+ cost: UintType;
584
+ margin_numerator: UintType;
585
+ margin_denominator: UintType;
586
+ reward_account: string;
587
+ owners: CardanoPoolOwner[];
588
+ relays: CardanoPoolRelayParameters[];
589
+ metadata?: CardanoPoolMetadataType;
590
+ owners_count: number;
591
+ relays_count: number;
592
+ };
593
+ export declare type CardanoTxCertificate = {
594
+ type: CardanoCertificateType;
595
+ path?: number[];
596
+ pool?: string;
597
+ pool_parameters?: CardanoPoolParametersType;
598
+ script_hash?: string;
599
+ key_hash?: string;
600
+ };
601
+ export declare type CardanoTxWithdrawal = {
602
+ path?: number[];
603
+ amount: UintType;
604
+ script_hash?: string;
605
+ key_hash?: string;
606
+ };
607
+ export declare type CardanoCatalystRegistrationParametersType = {
608
+ voting_public_key: string;
609
+ staking_path: number[];
610
+ reward_address_parameters: CardanoAddressParametersType;
611
+ nonce: UintType;
612
+ };
613
+ export declare type CardanoTxAuxiliaryData = {
614
+ catalyst_registration_parameters?: CardanoCatalystRegistrationParametersType;
615
+ hash?: string;
616
+ };
617
+ export declare type CardanoTxMint = {
618
+ asset_groups_count: number;
619
+ };
620
+ export declare type CardanoTxCollateralInput = {
621
+ prev_hash: string;
622
+ prev_index: number;
623
+ };
624
+ export declare type CardanoTxRequiredSigner = {
625
+ key_hash?: string;
626
+ key_path?: number[];
627
+ };
628
+ export declare type CardanoTxItemAck = Empty;
629
+ export declare type CardanoTxAuxiliaryDataSupplement = {
630
+ type: CardanoTxAuxiliaryDataSupplementType;
631
+ auxiliary_data_hash?: string;
632
+ catalyst_signature?: string;
633
+ };
634
+ export declare type CardanoTxWitnessRequest = {
635
+ path: number[];
636
+ };
637
+ export declare type CardanoTxWitnessResponse = {
638
+ type: CardanoTxWitnessType;
639
+ pub_key: string;
640
+ signature: string;
641
+ chain_code?: string;
642
+ };
643
+ export declare type CardanoTxHostAck = Empty;
644
+ export declare type CardanoTxBodyHash = {
645
+ tx_hash: string;
646
+ };
647
+ export declare type CardanoSignTxFinished = Empty;
648
+ export declare type CardanoTxInputType = {
649
+ address_n?: number[];
650
+ prev_hash: string;
651
+ prev_index: number;
652
+ };
653
+ export declare type CardanoTokenType = {
654
+ asset_name_bytes: string;
655
+ amount: UintType;
656
+ };
657
+ export declare type CardanoAssetGroupType = {
658
+ policy_id: string;
659
+ tokens: CardanoTokenType[];
660
+ };
661
+ export declare type CardanoTxOutputType = {
662
+ address?: string;
663
+ amount: UintType;
664
+ address_parameters?: CardanoAddressParametersType;
665
+ token_bundle: CardanoAssetGroupType[];
666
+ };
667
+ export declare type CardanoPoolOwnerType = {
668
+ staking_key_path?: number[];
669
+ staking_key_hash?: string;
670
+ };
671
+ export declare type CardanoPoolRelayParametersType = {
672
+ type: CardanoPoolRelayType;
673
+ ipv4_address?: string;
674
+ ipv6_address?: string;
675
+ host_name?: string;
676
+ port?: number;
677
+ };
678
+ export declare type CardanoTxCertificateType = {
679
+ type: CardanoCertificateType;
680
+ path?: number[];
681
+ pool?: string;
682
+ pool_parameters?: CardanoPoolParametersType;
683
+ };
684
+ export declare type CardanoTxWithdrawalType = {
685
+ path: number[];
686
+ amount: UintType;
687
+ };
688
+ export declare type CardanoTxAuxiliaryDataType = {
689
+ blob?: string;
690
+ catalyst_registration_parameters?: CardanoCatalystRegistrationParametersType;
691
+ };
692
+ export declare type CardanoSignTx = {
693
+ inputs: CardanoTxInputType[];
694
+ outputs: CardanoTxOutputType[];
695
+ protocol_magic: number;
696
+ fee: UintType;
697
+ ttl?: UintType;
698
+ network_id: number;
699
+ certificates: CardanoTxCertificateType[];
700
+ withdrawals: CardanoTxWithdrawalType[];
701
+ validity_interval_start?: UintType;
702
+ auxiliary_data?: CardanoTxAuxiliaryDataType;
703
+ };
704
+ export declare type CardanoSignedTxChunk = {
705
+ signed_tx_chunk: string;
706
+ };
707
+ export declare type CardanoSignedTxChunkAck = Empty;
708
+ export declare type CardanoSignedTx = {
709
+ tx_hash: string;
710
+ serialized_tx?: string;
711
+ };
712
+ export declare type Success = {
713
+ message: string;
714
+ };
715
+ export declare enum FailureType {
716
+ Failure_UnexpectedMessage = 1,
717
+ Failure_ButtonExpected = 2,
718
+ Failure_DataError = 3,
719
+ Failure_ActionCancelled = 4,
720
+ Failure_PinExpected = 5,
721
+ Failure_PinCancelled = 6,
722
+ Failure_PinInvalid = 7,
723
+ Failure_InvalidSignature = 8,
724
+ Failure_ProcessError = 9,
725
+ Failure_NotEnoughFunds = 10,
726
+ Failure_NotInitialized = 11,
727
+ Failure_PinMismatch = 12,
728
+ Failure_WipeCodeMismatch = 13,
729
+ Failure_InvalidSession = 14,
730
+ Failure_FirmwareError = 99
731
+ }
732
+ export declare type Failure = {
733
+ code?: FailureType | string;
734
+ message?: string;
735
+ };
736
+ export declare enum Enum_ButtonRequestType {
737
+ ButtonRequest_Other = 1,
738
+ ButtonRequest_FeeOverThreshold = 2,
739
+ ButtonRequest_ConfirmOutput = 3,
740
+ ButtonRequest_ResetDevice = 4,
741
+ ButtonRequest_ConfirmWord = 5,
742
+ ButtonRequest_WipeDevice = 6,
743
+ ButtonRequest_ProtectCall = 7,
744
+ ButtonRequest_SignTx = 8,
745
+ ButtonRequest_FirmwareCheck = 9,
746
+ ButtonRequest_Address = 10,
747
+ ButtonRequest_PublicKey = 11,
748
+ ButtonRequest_MnemonicWordCount = 12,
749
+ ButtonRequest_MnemonicInput = 13,
750
+ _Deprecated_ButtonRequest_PassphraseType = 14,
751
+ ButtonRequest_UnknownDerivationPath = 15,
752
+ ButtonRequest_RecoveryHomepage = 16,
753
+ ButtonRequest_Success = 17,
754
+ ButtonRequest_Warning = 18,
755
+ ButtonRequest_PassphraseEntry = 19,
756
+ ButtonRequest_PinEntry = 20
757
+ }
758
+ export declare type ButtonRequestType = keyof typeof Enum_ButtonRequestType;
759
+ export declare type ButtonRequest = {
760
+ code?: ButtonRequestType;
761
+ pages?: number;
762
+ };
763
+ export declare type ButtonAck = Empty;
764
+ export declare enum Enum_PinMatrixRequestType {
765
+ PinMatrixRequestType_Current = 1,
766
+ PinMatrixRequestType_NewFirst = 2,
767
+ PinMatrixRequestType_NewSecond = 3,
768
+ PinMatrixRequestType_WipeCodeFirst = 4,
769
+ PinMatrixRequestType_WipeCodeSecond = 5
770
+ }
771
+ export declare type PinMatrixRequestType = keyof typeof Enum_PinMatrixRequestType;
772
+ export declare type PinMatrixRequest = {
773
+ type?: PinMatrixRequestType;
774
+ };
775
+ export declare type PinMatrixAck = {
776
+ pin: string;
777
+ };
778
+ export declare type PassphraseRequest = {
779
+ _on_device?: boolean;
780
+ };
781
+ export declare type PassphraseAck = {
782
+ passphrase?: string;
783
+ _state?: string;
784
+ on_device?: boolean;
785
+ };
786
+ export declare type Deprecated_PassphraseStateRequest = {
787
+ state?: string;
788
+ };
789
+ export declare type Deprecated_PassphraseStateAck = Empty;
790
+ export declare type CipherKeyValue = {
791
+ address_n: number[];
792
+ key: string;
793
+ value: string;
794
+ encrypt?: boolean;
795
+ ask_on_encrypt?: boolean;
796
+ ask_on_decrypt?: boolean;
797
+ iv?: string;
798
+ };
799
+ export declare type CipheredKeyValue = {
800
+ value: string;
801
+ };
802
+ export declare type IdentityType = {
803
+ proto?: string;
804
+ user?: string;
805
+ host?: string;
806
+ port?: string;
807
+ path?: string;
808
+ index?: number;
809
+ };
810
+ export declare type SignIdentity = {
811
+ identity: IdentityType;
812
+ challenge_hidden?: string;
813
+ challenge_visual?: string;
814
+ ecdsa_curve_name?: string;
815
+ };
816
+ export declare type SignedIdentity = {
817
+ address: string;
818
+ public_key: string;
819
+ signature: string;
820
+ };
821
+ export declare type GetECDHSessionKey = {
822
+ identity: IdentityType;
823
+ peer_public_key: string;
824
+ ecdsa_curve_name?: string;
825
+ };
826
+ export declare type ECDHSessionKey = {
827
+ session_key: string;
828
+ public_key?: string;
829
+ };
830
+ export declare enum DebugButton {
831
+ NO = 0,
832
+ YES = 1,
833
+ INFO = 2
834
+ }
835
+ export declare type EosGetPublicKey = {
836
+ address_n: number[];
837
+ show_display?: boolean;
838
+ };
839
+ export declare type EosPublicKey = {
840
+ wif_public_key: string;
841
+ raw_public_key: string;
842
+ };
843
+ export declare type EosTxHeader = {
844
+ expiration: number;
845
+ ref_block_num: number;
846
+ ref_block_prefix: number;
847
+ max_net_usage_words: number;
848
+ max_cpu_usage_ms: number;
849
+ delay_sec: number;
850
+ };
851
+ export declare type EosSignTx = {
852
+ address_n: number[];
853
+ chain_id: string;
854
+ header: EosTxHeader;
855
+ num_actions: number;
856
+ };
857
+ export declare type EosTxActionRequest = {
858
+ data_size?: number;
859
+ };
860
+ export declare type EosAsset = {
861
+ amount: UintType;
862
+ symbol: string;
863
+ };
864
+ export declare type EosPermissionLevel = {
865
+ actor: string;
866
+ permission: string;
867
+ };
868
+ export declare type EosAuthorizationKey = {
869
+ type?: number;
870
+ key: string;
871
+ address_n?: number[];
872
+ weight: number;
873
+ };
874
+ export declare type EosAuthorizationAccount = {
875
+ account: EosPermissionLevel;
876
+ weight: number;
877
+ };
878
+ export declare type EosAuthorizationWait = {
879
+ wait_sec: number;
880
+ weight: number;
881
+ };
882
+ export declare type EosAuthorization = {
883
+ threshold: number;
884
+ keys: EosAuthorizationKey[];
885
+ accounts: EosAuthorizationAccount[];
886
+ waits: EosAuthorizationWait[];
887
+ };
888
+ export declare type EosActionCommon = {
889
+ account: string;
890
+ name: string;
891
+ authorization: EosPermissionLevel[];
892
+ };
893
+ export declare type EosActionTransfer = {
894
+ sender: string;
895
+ receiver: string;
896
+ quantity: EosAsset;
897
+ memo: string;
898
+ };
899
+ export declare type EosActionDelegate = {
900
+ sender: string;
901
+ receiver: string;
902
+ net_quantity: EosAsset;
903
+ cpu_quantity: EosAsset;
904
+ transfer: boolean;
905
+ };
906
+ export declare type EosActionUndelegate = {
907
+ sender: string;
908
+ receiver: string;
909
+ net_quantity: EosAsset;
910
+ cpu_quantity: EosAsset;
911
+ };
912
+ export declare type EosActionRefund = {
913
+ owner: string;
914
+ };
915
+ export declare type EosActionBuyRam = {
916
+ payer: string;
917
+ receiver: string;
918
+ quantity: EosAsset;
919
+ };
920
+ export declare type EosActionBuyRamBytes = {
921
+ payer: string;
922
+ receiver: string;
923
+ bytes: number;
924
+ };
925
+ export declare type EosActionSellRam = {
926
+ account: string;
927
+ bytes: number;
928
+ };
929
+ export declare type EosActionVoteProducer = {
930
+ voter: string;
931
+ proxy: string;
932
+ producers: string[];
933
+ };
934
+ export declare type EosActionUpdateAuth = {
935
+ account: string;
936
+ permission: string;
937
+ parent: string;
938
+ auth: EosAuthorization;
939
+ };
940
+ export declare type EosActionDeleteAuth = {
941
+ account: string;
942
+ permission: string;
943
+ };
944
+ export declare type EosActionLinkAuth = {
945
+ account: string;
946
+ code: string;
947
+ type: string;
948
+ requirement: string;
949
+ };
950
+ export declare type EosActionUnlinkAuth = {
951
+ account: string;
952
+ code: string;
953
+ type: string;
954
+ };
955
+ export declare type EosActionNewAccount = {
956
+ creator: string;
957
+ name: string;
958
+ owner: EosAuthorization;
959
+ active: EosAuthorization;
960
+ };
961
+ export declare type EosActionUnknown = {
962
+ data_size: number;
963
+ data_chunk: string;
964
+ };
965
+ export declare type EosTxActionAck = {
966
+ common: EosActionCommon;
967
+ transfer?: EosActionTransfer;
968
+ delegate?: EosActionDelegate;
969
+ undelegate?: EosActionUndelegate;
970
+ refund?: EosActionRefund;
971
+ buy_ram?: EosActionBuyRam;
972
+ buy_ram_bytes?: EosActionBuyRamBytes;
973
+ sell_ram?: EosActionSellRam;
974
+ vote_producer?: EosActionVoteProducer;
975
+ update_auth?: EosActionUpdateAuth;
976
+ delete_auth?: EosActionDeleteAuth;
977
+ link_auth?: EosActionLinkAuth;
978
+ unlink_auth?: EosActionUnlinkAuth;
979
+ new_account?: EosActionNewAccount;
980
+ unknown?: EosActionUnknown;
981
+ };
982
+ export declare type EosSignedTx = {
983
+ signature: string;
984
+ };
985
+ export declare type EthereumSignTypedData = {
986
+ address_n: number[];
987
+ primary_type: string;
988
+ metamask_v4_compat?: boolean;
989
+ };
990
+ export declare type EthereumTypedDataStructRequest = {
991
+ name: string;
992
+ };
993
+ export declare enum EthereumDataType {
994
+ UINT = 1,
995
+ INT = 2,
996
+ BYTES = 3,
997
+ STRING = 4,
998
+ BOOL = 5,
999
+ ADDRESS = 6,
1000
+ ARRAY = 7,
1001
+ STRUCT = 8
1002
+ }
1003
+ export declare type EthereumFieldType = {
1004
+ data_type: EthereumDataType;
1005
+ size?: number;
1006
+ entry_type?: EthereumFieldType;
1007
+ struct_name?: string;
1008
+ };
1009
+ export declare type EthereumStructMember = {
1010
+ type: EthereumFieldType;
1011
+ name: string;
1012
+ };
1013
+ export declare type EthereumTypedDataStructAck = {
1014
+ members: EthereumStructMember[];
1015
+ };
1016
+ export declare type EthereumTypedDataValueRequest = {
1017
+ member_path: number[];
1018
+ };
1019
+ export declare type EthereumTypedDataValueAck = {
1020
+ value: string;
1021
+ };
1022
+ export declare type EthereumGetPublicKey = {
1023
+ address_n: number[];
1024
+ show_display?: boolean;
1025
+ };
1026
+ export declare type EthereumPublicKey = {
1027
+ node: HDNodeType;
1028
+ xpub: string;
1029
+ };
1030
+ export declare type EthereumGetAddress = {
1031
+ address_n: number[];
1032
+ show_display?: boolean;
1033
+ };
1034
+ export declare type EthereumAddress = {
1035
+ _old_address?: string;
1036
+ address: string;
1037
+ };
1038
+ export declare type EthereumSignTx = {
1039
+ address_n: number[];
1040
+ nonce?: string;
1041
+ gas_price: string;
1042
+ gas_limit: string;
1043
+ to?: string;
1044
+ value?: string;
1045
+ data_initial_chunk?: string;
1046
+ data_length?: number;
1047
+ chain_id: number;
1048
+ tx_type?: number;
1049
+ };
1050
+ export declare type EthereumAccessList = {
1051
+ address: string;
1052
+ storage_keys: string[];
1053
+ };
1054
+ export declare type EthereumSignTxEIP1559 = {
1055
+ address_n: number[];
1056
+ nonce: string;
1057
+ max_gas_fee: string;
1058
+ max_priority_fee: string;
1059
+ gas_limit: string;
1060
+ to?: string;
1061
+ value: string;
1062
+ data_initial_chunk?: string;
1063
+ data_length: number;
1064
+ chain_id: number;
1065
+ access_list: EthereumAccessList[];
1066
+ };
1067
+ export declare type EthereumTxRequest = {
1068
+ data_length?: number;
1069
+ signature_v?: number;
1070
+ signature_r?: string;
1071
+ signature_s?: string;
1072
+ };
1073
+ export declare type EthereumTxAck = {
1074
+ data_chunk: string;
1075
+ };
1076
+ export declare type EthereumSignMessage = {
1077
+ address_n: number[];
1078
+ message: string;
1079
+ };
1080
+ export declare type EthereumSignMessageEIP712 = {
1081
+ address_n: number[];
1082
+ domain_hash: string;
1083
+ message_hash: string;
1084
+ };
1085
+ export declare type EthereumMessageSignature = {
1086
+ signature: string;
1087
+ address: string;
1088
+ };
1089
+ export declare type EthereumVerifyMessage = {
1090
+ signature: string;
1091
+ message: string;
1092
+ address: string;
1093
+ };
1094
+ export declare type EthereumSignTypedHash = {
1095
+ address_n: number[];
1096
+ domain_separator_hash: string;
1097
+ message_hash?: string;
1098
+ };
1099
+ export declare type EthereumTypedDataSignature = {
1100
+ signature: string;
1101
+ address: string;
1102
+ };
1103
+ export declare enum Enum_BackupType {
1104
+ Bip39 = 0,
1105
+ Slip39_Basic = 1,
1106
+ Slip39_Advanced = 2
1107
+ }
1108
+ export declare type BackupType = keyof typeof Enum_BackupType;
1109
+ export declare enum Enum_SafetyCheckLevel {
1110
+ Strict = 0,
1111
+ PromptAlways = 1,
1112
+ PromptTemporarily = 2
1113
+ }
1114
+ export declare type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
1115
+ export declare type Initialize = {
1116
+ session_id?: string;
1117
+ _skip_passphrase?: boolean;
1118
+ derive_cardano?: boolean;
1119
+ };
1120
+ export declare type GetFeatures = Empty;
1121
+ export declare enum Enum_Capability {
1122
+ Capability_Bitcoin = 1,
1123
+ Capability_Bitcoin_like = 2,
1124
+ Capability_Binance = 3,
1125
+ Capability_Cardano = 4,
1126
+ Capability_Crypto = 5,
1127
+ Capability_EOS = 6,
1128
+ Capability_Ethereum = 7,
1129
+ Capability_Lisk = 8,
1130
+ Capability_Monero = 9,
1131
+ Capability_NEM = 10,
1132
+ Capability_Ripple = 11,
1133
+ Capability_Stellar = 12,
1134
+ Capability_Tezos = 13,
1135
+ Capability_U2F = 14,
1136
+ Capability_Shamir = 15,
1137
+ Capability_ShamirGroups = 16,
1138
+ Capability_PassphraseEntry = 17
1139
+ }
1140
+ export declare type Capability = keyof typeof Enum_Capability;
1141
+ export declare type Features = {
1142
+ vendor: string;
1143
+ onekey_serial: string;
1144
+ se_ver: string;
1145
+ serial_no: string;
1146
+ onekey_version: string;
1147
+ ble_ver: string;
1148
+ ble_enable: boolean;
1149
+ major_version: number;
1150
+ minor_version: number;
1151
+ patch_version: number;
1152
+ bootloader_mode: boolean | null;
1153
+ device_id: string | null;
1154
+ pin_protection: boolean | null;
1155
+ passphrase_protection: boolean | null;
1156
+ language: string | null;
1157
+ label: string | null;
1158
+ initialized: boolean | null;
1159
+ revision: string | null;
1160
+ bootloader_hash: string | null;
1161
+ imported: boolean | null;
1162
+ unlocked: boolean | null;
1163
+ _passphrase_cached?: boolean;
1164
+ firmware_present: boolean | null;
1165
+ needs_backup: boolean | null;
1166
+ flags: number | null;
1167
+ model: string;
1168
+ fw_major: number | null;
1169
+ fw_minor: number | null;
1170
+ fw_patch: number | null;
1171
+ fw_vendor: string | null;
1172
+ unfinished_backup: boolean | null;
1173
+ no_backup: boolean | null;
1174
+ recovery_mode: boolean | null;
1175
+ capabilities: Capability[];
1176
+ backup_type: BackupType | null;
1177
+ sd_card_present: boolean | null;
1178
+ sd_protection: boolean | null;
1179
+ wipe_code_protection: boolean | null;
1180
+ session_id: string | null;
1181
+ passphrase_always_on_device: boolean | null;
1182
+ safety_checks: SafetyCheckLevel | null;
1183
+ auto_lock_delay_ms: number | null;
1184
+ display_rotation: number | null;
1185
+ experimental_features: boolean | null;
1186
+ };
1187
+ export declare type LockDevice = Empty;
1188
+ export declare type EndSession = Empty;
1189
+ export declare type ApplySettings = {
1190
+ language?: string;
1191
+ label?: string;
1192
+ use_passphrase?: boolean;
1193
+ homescreen?: string;
1194
+ _passphrase_source?: number;
1195
+ auto_lock_delay_ms?: number;
1196
+ display_rotation?: number;
1197
+ passphrase_always_on_device?: boolean;
1198
+ safety_checks?: SafetyCheckLevel;
1199
+ experimental_features?: boolean;
1200
+ };
1201
+ export declare type ApplyFlags = {
1202
+ flags: number;
1203
+ };
1204
+ export declare type ChangePin = {
1205
+ remove?: boolean;
1206
+ };
1207
+ export declare type ChangeWipeCode = {
1208
+ remove?: boolean;
1209
+ };
1210
+ export declare enum SdProtectOperationType {
1211
+ DISABLE = 0,
1212
+ ENABLE = 1,
1213
+ REFRESH = 2
1214
+ }
1215
+ export declare type SdProtect = {
1216
+ operation: SdProtectOperationType;
1217
+ };
1218
+ export declare type Ping = {
1219
+ message?: string;
1220
+ button_protection?: boolean;
1221
+ };
1222
+ export declare type Cancel = Empty;
1223
+ export declare type GetEntropy = {
1224
+ size: number;
1225
+ };
1226
+ export declare type Entropy = {
1227
+ entropy: string;
1228
+ };
1229
+ export declare type GetFirmwareHash = {
1230
+ challenge?: string;
1231
+ };
1232
+ export declare type FirmwareHash = {
1233
+ hash: string;
1234
+ };
1235
+ export declare type GetFirmware = Empty;
1236
+ export declare type FirmwareChunk = {
1237
+ chunk: string;
1238
+ };
1239
+ export declare type FirmwareChunkAck = Empty;
1240
+ export declare type WipeDevice = Empty;
1241
+ export declare type ResetDevice = {
1242
+ display_random?: boolean;
1243
+ strength?: number;
1244
+ passphrase_protection?: boolean;
1245
+ pin_protection?: boolean;
1246
+ language?: string;
1247
+ label?: string;
1248
+ u2f_counter?: number;
1249
+ skip_backup?: boolean;
1250
+ no_backup?: boolean;
1251
+ backup_type?: string | number;
1252
+ };
1253
+ export declare type BackupDevice = Empty;
1254
+ export declare type EntropyRequest = Empty;
1255
+ export declare type EntropyAck = {
1256
+ entropy: string;
1257
+ };
1258
+ export declare enum RecoveryDeviceType {
1259
+ RecoveryDeviceType_ScrambledWords = 0,
1260
+ RecoveryDeviceType_Matrix = 1
1261
+ }
1262
+ export declare type RecoveryDevice = {
1263
+ word_count?: number;
1264
+ passphrase_protection?: boolean;
1265
+ pin_protection?: boolean;
1266
+ language?: string;
1267
+ label?: string;
1268
+ enforce_wordlist?: boolean;
1269
+ type?: RecoveryDeviceType;
1270
+ u2f_counter?: number;
1271
+ dry_run?: boolean;
1272
+ };
1273
+ export declare enum Enum_WordRequestType {
1274
+ WordRequestType_Plain = 0,
1275
+ WordRequestType_Matrix9 = 1,
1276
+ WordRequestType_Matrix6 = 2
1277
+ }
1278
+ export declare type WordRequestType = keyof typeof Enum_WordRequestType;
1279
+ export declare type WordRequest = {
1280
+ type: WordRequestType;
1281
+ };
1282
+ export declare type WordAck = {
1283
+ word: string;
1284
+ };
1285
+ export declare type SetU2FCounter = {
1286
+ u2f_counter: number;
1287
+ };
1288
+ export declare type GetNextU2FCounter = Empty;
1289
+ export declare type NextU2FCounter = {
1290
+ u2f_counter: number;
1291
+ };
1292
+ export declare type DoPreauthorized = Empty;
1293
+ export declare type PreauthorizedRequest = Empty;
1294
+ export declare type CancelAuthorization = Empty;
1295
+ export declare type BixinReboot = Empty;
1296
+ export declare type RebootToBootloader = Empty;
1297
+ export declare type GetNonce = Empty;
1298
+ export declare type Nonce = {
1299
+ nonce: string;
1300
+ };
1301
+ export declare type NEMGetAddress = {
1302
+ address_n: number[];
1303
+ network?: number;
1304
+ show_display?: boolean;
1305
+ };
1306
+ export declare type NEMAddress = {
1307
+ address: string;
1308
+ };
1309
+ export declare type NEMTransactionCommon = {
1310
+ address_n?: number[];
1311
+ network?: number;
1312
+ timestamp: number;
1313
+ fee: UintType;
1314
+ deadline: number;
1315
+ signer?: string;
1316
+ };
1317
+ export declare type NEMMosaic = {
1318
+ namespace: string;
1319
+ mosaic: string;
1320
+ quantity: number;
1321
+ };
1322
+ export declare type NEMTransfer = {
1323
+ recipient: string;
1324
+ amount: UintType;
1325
+ payload?: string;
1326
+ public_key?: string;
1327
+ mosaics?: NEMMosaic[];
1328
+ };
1329
+ export declare type NEMProvisionNamespace = {
1330
+ namespace: string;
1331
+ parent?: string;
1332
+ sink: string;
1333
+ fee: UintType;
1334
+ };
1335
+ export declare enum NEMMosaicLevy {
1336
+ MosaicLevy_Absolute = 1,
1337
+ MosaicLevy_Percentile = 2
1338
+ }
1339
+ export declare type NEMMosaicDefinition = {
1340
+ name?: string;
1341
+ ticker?: string;
1342
+ namespace: string;
1343
+ mosaic: string;
1344
+ divisibility?: number;
1345
+ levy?: NEMMosaicLevy;
1346
+ fee?: UintType;
1347
+ levy_address?: string;
1348
+ levy_namespace?: string;
1349
+ levy_mosaic?: string;
1350
+ supply?: number;
1351
+ mutable_supply?: boolean;
1352
+ transferable?: boolean;
1353
+ description: string;
1354
+ networks?: number[];
1355
+ };
1356
+ export declare type NEMMosaicCreation = {
1357
+ definition: NEMMosaicDefinition;
1358
+ sink: string;
1359
+ fee: UintType;
1360
+ };
1361
+ export declare enum NEMSupplyChangeType {
1362
+ SupplyChange_Increase = 1,
1363
+ SupplyChange_Decrease = 2
1364
+ }
1365
+ export declare type NEMMosaicSupplyChange = {
1366
+ namespace: string;
1367
+ mosaic: string;
1368
+ type: NEMSupplyChangeType;
1369
+ delta: number;
1370
+ };
1371
+ export declare enum NEMModificationType {
1372
+ CosignatoryModification_Add = 1,
1373
+ CosignatoryModification_Delete = 2
1374
+ }
1375
+ export declare type NEMCosignatoryModification = {
1376
+ type: NEMModificationType;
1377
+ public_key: string;
1378
+ };
1379
+ export declare type NEMAggregateModification = {
1380
+ modifications?: NEMCosignatoryModification[];
1381
+ relative_change?: number;
1382
+ };
1383
+ export declare enum NEMImportanceTransferMode {
1384
+ ImportanceTransfer_Activate = 1,
1385
+ ImportanceTransfer_Deactivate = 2
1386
+ }
1387
+ export declare type NEMImportanceTransfer = {
1388
+ mode: NEMImportanceTransferMode;
1389
+ public_key: string;
1390
+ };
1391
+ export declare type NEMSignTx = {
1392
+ transaction: NEMTransactionCommon;
1393
+ multisig?: NEMTransactionCommon;
1394
+ transfer?: NEMTransfer;
1395
+ cosigning?: boolean;
1396
+ provision_namespace?: NEMProvisionNamespace;
1397
+ mosaic_creation?: NEMMosaicCreation;
1398
+ supply_change?: NEMMosaicSupplyChange;
1399
+ aggregate_modification?: NEMAggregateModification;
1400
+ importance_transfer?: NEMImportanceTransfer;
1401
+ };
1402
+ export declare type NEMSignedTx = {
1403
+ data: string;
1404
+ signature: string;
1405
+ };
1406
+ export declare type NEMDecryptMessage = {
1407
+ address_n: number[];
1408
+ network?: number;
1409
+ public_key?: string;
1410
+ payload?: string;
1411
+ };
1412
+ export declare type NEMDecryptedMessage = {
1413
+ payload: string;
1414
+ };
1415
+ export declare type RippleGetAddress = {
1416
+ address_n: number[];
1417
+ show_display?: boolean;
1418
+ };
1419
+ export declare type RippleAddress = {
1420
+ address: string;
1421
+ };
1422
+ export declare type RipplePayment = {
1423
+ amount: UintType;
1424
+ destination: string;
1425
+ destination_tag?: number;
1426
+ };
1427
+ export declare type RippleSignTx = {
1428
+ address_n: number[];
1429
+ fee: UintType;
1430
+ flags?: number;
1431
+ sequence: number;
1432
+ last_ledger_sequence?: number;
1433
+ payment: RipplePayment;
1434
+ };
1435
+ export declare type RippleSignedTx = {
1436
+ signature: string;
1437
+ serialized_tx: string;
1438
+ };
1439
+ export declare enum StellarAssetType {
1440
+ NATIVE = 0,
1441
+ ALPHANUM4 = 1,
1442
+ ALPHANUM12 = 2
1443
+ }
1444
+ export declare type StellarAsset = {
1445
+ type: StellarAssetType;
1446
+ code?: string;
1447
+ issuer?: string;
1448
+ };
1449
+ export declare type StellarGetAddress = {
1450
+ address_n: number[];
1451
+ show_display?: boolean;
1452
+ };
1453
+ export declare type StellarAddress = {
1454
+ address: string;
1455
+ };
1456
+ export declare enum StellarMemoType {
1457
+ NONE = 0,
1458
+ TEXT = 1,
1459
+ ID = 2,
1460
+ HASH = 3,
1461
+ RETURN = 4
1462
+ }
1463
+ export declare type StellarSignTx = {
1464
+ address_n: number[];
1465
+ network_passphrase: string;
1466
+ source_account: string;
1467
+ fee: UintType;
1468
+ sequence_number: UintType;
1469
+ timebounds_start: number;
1470
+ timebounds_end: number;
1471
+ memo_type: StellarMemoType;
1472
+ memo_text?: string;
1473
+ memo_id?: string;
1474
+ memo_hash?: Buffer | string;
1475
+ num_operations: number;
1476
+ };
1477
+ export declare type StellarTxOpRequest = Empty;
1478
+ export declare type StellarPaymentOp = {
1479
+ source_account?: string;
1480
+ destination_account: string;
1481
+ asset: StellarAsset;
1482
+ amount: UintType;
1483
+ };
1484
+ export declare type StellarCreateAccountOp = {
1485
+ source_account?: string;
1486
+ new_account: string;
1487
+ starting_balance: UintType;
1488
+ };
1489
+ export declare type StellarPathPaymentStrictReceiveOp = {
1490
+ source_account?: string;
1491
+ send_asset: StellarAsset;
1492
+ send_max: UintType;
1493
+ destination_account: string;
1494
+ destination_asset: StellarAsset;
1495
+ destination_amount: UintType;
1496
+ paths?: StellarAsset[];
1497
+ };
1498
+ export declare type StellarPathPaymentStrictSendOp = {
1499
+ source_account?: string;
1500
+ send_asset: StellarAsset;
1501
+ send_amount: UintType;
1502
+ destination_account: string;
1503
+ destination_asset: StellarAsset;
1504
+ destination_min: UintType;
1505
+ paths?: StellarAsset[];
1506
+ };
1507
+ export declare type StellarManageSellOfferOp = {
1508
+ source_account?: string;
1509
+ selling_asset: StellarAsset;
1510
+ buying_asset: StellarAsset;
1511
+ amount: UintType;
1512
+ price_n: number;
1513
+ price_d: number;
1514
+ offer_id: UintType;
1515
+ };
1516
+ export declare type StellarManageBuyOfferOp = {
1517
+ source_account?: string;
1518
+ selling_asset: StellarAsset;
1519
+ buying_asset: StellarAsset;
1520
+ amount: UintType;
1521
+ price_n: number;
1522
+ price_d: number;
1523
+ offer_id: UintType;
1524
+ };
1525
+ export declare type StellarCreatePassiveSellOfferOp = {
1526
+ source_account?: string;
1527
+ selling_asset: StellarAsset;
1528
+ buying_asset: StellarAsset;
1529
+ amount: UintType;
1530
+ price_n: number;
1531
+ price_d: number;
1532
+ };
1533
+ export declare enum StellarSignerType {
1534
+ ACCOUNT = 0,
1535
+ PRE_AUTH = 1,
1536
+ HASH = 2
1537
+ }
1538
+ export declare type StellarSetOptionsOp = {
1539
+ source_account?: string;
1540
+ inflation_destination_account?: string;
1541
+ clear_flags?: number;
1542
+ set_flags?: number;
1543
+ master_weight?: UintType;
1544
+ low_threshold?: UintType;
1545
+ medium_threshold?: UintType;
1546
+ high_threshold?: UintType;
1547
+ home_domain?: string;
1548
+ signer_type?: StellarSignerType;
1549
+ signer_key?: Buffer | string;
1550
+ signer_weight?: number;
1551
+ };
1552
+ export declare type StellarChangeTrustOp = {
1553
+ source_account?: string;
1554
+ asset: StellarAsset;
1555
+ limit: UintType;
1556
+ };
1557
+ export declare type StellarAllowTrustOp = {
1558
+ source_account?: string;
1559
+ trusted_account: string;
1560
+ asset_type: StellarAssetType;
1561
+ asset_code?: string;
1562
+ is_authorized: boolean;
1563
+ };
1564
+ export declare type StellarAccountMergeOp = {
1565
+ source_account?: string;
1566
+ destination_account: string;
1567
+ };
1568
+ export declare type StellarManageDataOp = {
1569
+ source_account?: string;
1570
+ key: string;
1571
+ value?: Buffer | string;
1572
+ };
1573
+ export declare type StellarBumpSequenceOp = {
1574
+ source_account?: string;
1575
+ bump_to: UintType;
1576
+ };
1577
+ export declare type StellarSignedTx = {
1578
+ public_key: string;
1579
+ signature: string;
1580
+ };
1581
+ export declare type TezosGetAddress = {
1582
+ address_n: number[];
1583
+ show_display?: boolean;
1584
+ };
1585
+ export declare type TezosAddress = {
1586
+ address: string;
1587
+ };
1588
+ export declare type TezosGetPublicKey = {
1589
+ address_n: number[];
1590
+ show_display?: boolean;
1591
+ };
1592
+ export declare type TezosPublicKey = {
1593
+ public_key: string;
1594
+ };
1595
+ export declare enum TezosContractType {
1596
+ Implicit = 0,
1597
+ Originated = 1
1598
+ }
1599
+ export declare type TezosContractID = {
1600
+ tag: number;
1601
+ hash: Uint8Array;
1602
+ };
1603
+ export declare type TezosRevealOp = {
1604
+ source: Uint8Array;
1605
+ fee: UintType;
1606
+ counter: number;
1607
+ gas_limit: number;
1608
+ storage_limit: number;
1609
+ public_key: Uint8Array;
1610
+ };
1611
+ export declare type TezosManagerTransfer = {
1612
+ destination: TezosContractID;
1613
+ amount: UintType;
1614
+ };
1615
+ export declare type TezosParametersManager = {
1616
+ set_delegate?: Uint8Array;
1617
+ cancel_delegate?: boolean;
1618
+ transfer?: TezosManagerTransfer;
1619
+ };
1620
+ export declare type TezosTransactionOp = {
1621
+ source: Uint8Array;
1622
+ fee: UintType;
1623
+ counter: number;
1624
+ gas_limit: number;
1625
+ storage_limit: number;
1626
+ amount: UintType;
1627
+ destination: TezosContractID;
1628
+ parameters?: number[];
1629
+ parameters_manager?: TezosParametersManager;
1630
+ };
1631
+ export declare type TezosOriginationOp = {
1632
+ source: Uint8Array;
1633
+ fee: UintType;
1634
+ counter: number;
1635
+ gas_limit: number;
1636
+ storage_limit: number;
1637
+ manager_pubkey?: string;
1638
+ balance: number;
1639
+ spendable?: boolean;
1640
+ delegatable?: boolean;
1641
+ delegate?: Uint8Array;
1642
+ script: string | number[];
1643
+ };
1644
+ export declare type TezosDelegationOp = {
1645
+ source: Uint8Array;
1646
+ fee: UintType;
1647
+ counter: number;
1648
+ gas_limit: number;
1649
+ storage_limit: number;
1650
+ delegate: Uint8Array;
1651
+ };
1652
+ export declare type TezosProposalOp = {
1653
+ source: string;
1654
+ period: number;
1655
+ proposals: string[];
1656
+ };
1657
+ export declare enum TezosBallotType {
1658
+ Yay = 0,
1659
+ Nay = 1,
1660
+ Pass = 2
1661
+ }
1662
+ export declare type TezosBallotOp = {
1663
+ source: string;
1664
+ period: number;
1665
+ proposal: string;
1666
+ ballot: TezosBallotType;
1667
+ };
1668
+ export declare type TezosSignTx = {
1669
+ address_n: number[];
1670
+ branch: Uint8Array;
1671
+ reveal?: TezosRevealOp;
1672
+ transaction?: TezosTransactionOp;
1673
+ origination?: TezosOriginationOp;
1674
+ delegation?: TezosDelegationOp;
1675
+ proposal?: TezosProposalOp;
1676
+ ballot?: TezosBallotOp;
1677
+ };
1678
+ export declare type TezosSignedTx = {
1679
+ signature: string;
1680
+ sig_op_contents: string;
1681
+ operation_hash: string;
1682
+ };
1683
+ export declare type MessageType = {
1684
+ BinanceGetAddress: BinanceGetAddress;
1685
+ BinanceAddress: BinanceAddress;
1686
+ BinanceGetPublicKey: BinanceGetPublicKey;
1687
+ BinancePublicKey: BinancePublicKey;
1688
+ BinanceSignTx: BinanceSignTx;
1689
+ BinanceTxRequest: BinanceTxRequest;
1690
+ BinanceCoin: BinanceCoin;
1691
+ BinanceInputOutput: BinanceInputOutput;
1692
+ BinanceTransferMsg: BinanceTransferMsg;
1693
+ BinanceOrderMsg: BinanceOrderMsg;
1694
+ BinanceCancelMsg: BinanceCancelMsg;
1695
+ BinanceSignedTx: BinanceSignedTx;
1696
+ HDNodeType: HDNodeType;
1697
+ HDNodePathType: HDNodePathType;
1698
+ MultisigRedeemScriptType: MultisigRedeemScriptType;
1699
+ GetPublicKey: GetPublicKey;
1700
+ PublicKey: PublicKey;
1701
+ GetAddress: GetAddress;
1702
+ Address: Address;
1703
+ GetOwnershipId: GetOwnershipId;
1704
+ OwnershipId: OwnershipId;
1705
+ SignMessage: SignMessage;
1706
+ MessageSignature: MessageSignature;
1707
+ VerifyMessage: VerifyMessage;
1708
+ SignTx: SignTx;
1709
+ TxRequestDetailsType: TxRequestDetailsType;
1710
+ TxRequestSerializedType: TxRequestSerializedType;
1711
+ TxRequest: TxRequest;
1712
+ TxInputType: TxInputType;
1713
+ TxOutputBinType: TxOutputBinType;
1714
+ TxOutputType: TxOutputType;
1715
+ PrevTx: PrevTx;
1716
+ PrevInput: PrevInput;
1717
+ PrevOutput: PrevOutput;
1718
+ TextMemo: TextMemo;
1719
+ RefundMemo: RefundMemo;
1720
+ CoinPurchaseMemo: CoinPurchaseMemo;
1721
+ PaymentRequestMemo: PaymentRequestMemo;
1722
+ TxAckPaymentRequest: TxAckPaymentRequest;
1723
+ TxAck: TxAck;
1724
+ TxAckInputWrapper: TxAckInputWrapper;
1725
+ TxAckInput: TxAckInput;
1726
+ TxAckOutputWrapper: TxAckOutputWrapper;
1727
+ TxAckOutput: TxAckOutput;
1728
+ TxAckPrevMeta: TxAckPrevMeta;
1729
+ TxAckPrevInputWrapper: TxAckPrevInputWrapper;
1730
+ TxAckPrevInput: TxAckPrevInput;
1731
+ TxAckPrevOutputWrapper: TxAckPrevOutputWrapper;
1732
+ TxAckPrevOutput: TxAckPrevOutput;
1733
+ TxAckPrevExtraDataWrapper: TxAckPrevExtraDataWrapper;
1734
+ TxAckPrevExtraData: TxAckPrevExtraData;
1735
+ GetOwnershipProof: GetOwnershipProof;
1736
+ OwnershipProof: OwnershipProof;
1737
+ AuthorizeCoinJoin: AuthorizeCoinJoin;
1738
+ FirmwareErase: FirmwareErase;
1739
+ FirmwareRequest: FirmwareRequest;
1740
+ FirmwareUpload: FirmwareUpload;
1741
+ SelfTest: SelfTest;
1742
+ CardanoBlockchainPointerType: CardanoBlockchainPointerType;
1743
+ CardanoNativeScript: CardanoNativeScript;
1744
+ CardanoGetNativeScriptHash: CardanoGetNativeScriptHash;
1745
+ CardanoNativeScriptHash: CardanoNativeScriptHash;
1746
+ CardanoAddressParametersType: CardanoAddressParametersType;
1747
+ CardanoGetAddress: CardanoGetAddress;
1748
+ CardanoAddress: CardanoAddress;
1749
+ CardanoGetPublicKey: CardanoGetPublicKey;
1750
+ CardanoPublicKey: CardanoPublicKey;
1751
+ CardanoSignTxInit: CardanoSignTxInit;
1752
+ CardanoTxInput: CardanoTxInput;
1753
+ CardanoTxOutput: CardanoTxOutput;
1754
+ CardanoAssetGroup: CardanoAssetGroup;
1755
+ CardanoToken: CardanoToken;
1756
+ CardanoPoolOwner: CardanoPoolOwner;
1757
+ CardanoPoolRelayParameters: CardanoPoolRelayParameters;
1758
+ CardanoPoolMetadataType: CardanoPoolMetadataType;
1759
+ CardanoPoolParametersType: CardanoPoolParametersType;
1760
+ CardanoTxCertificate: CardanoTxCertificate;
1761
+ CardanoTxWithdrawal: CardanoTxWithdrawal;
1762
+ CardanoCatalystRegistrationParametersType: CardanoCatalystRegistrationParametersType;
1763
+ CardanoTxAuxiliaryData: CardanoTxAuxiliaryData;
1764
+ CardanoTxMint: CardanoTxMint;
1765
+ CardanoTxCollateralInput: CardanoTxCollateralInput;
1766
+ CardanoTxRequiredSigner: CardanoTxRequiredSigner;
1767
+ CardanoTxItemAck: CardanoTxItemAck;
1768
+ CardanoTxAuxiliaryDataSupplement: CardanoTxAuxiliaryDataSupplement;
1769
+ CardanoTxWitnessRequest: CardanoTxWitnessRequest;
1770
+ CardanoTxWitnessResponse: CardanoTxWitnessResponse;
1771
+ CardanoTxHostAck: CardanoTxHostAck;
1772
+ CardanoTxBodyHash: CardanoTxBodyHash;
1773
+ CardanoSignTxFinished: CardanoSignTxFinished;
1774
+ CardanoTxInputType: CardanoTxInputType;
1775
+ CardanoTokenType: CardanoTokenType;
1776
+ CardanoAssetGroupType: CardanoAssetGroupType;
1777
+ CardanoTxOutputType: CardanoTxOutputType;
1778
+ CardanoPoolOwnerType: CardanoPoolOwnerType;
1779
+ CardanoPoolRelayParametersType: CardanoPoolRelayParametersType;
1780
+ CardanoTxCertificateType: CardanoTxCertificateType;
1781
+ CardanoTxWithdrawalType: CardanoTxWithdrawalType;
1782
+ CardanoTxAuxiliaryDataType: CardanoTxAuxiliaryDataType;
1783
+ CardanoSignTx: CardanoSignTx;
1784
+ CardanoSignedTxChunk: CardanoSignedTxChunk;
1785
+ CardanoSignedTxChunkAck: CardanoSignedTxChunkAck;
1786
+ CardanoSignedTx: CardanoSignedTx;
1787
+ Success: Success;
1788
+ Failure: Failure;
1789
+ ButtonRequest: ButtonRequest;
1790
+ ButtonAck: ButtonAck;
1791
+ PinMatrixRequest: PinMatrixRequest;
1792
+ PinMatrixAck: PinMatrixAck;
1793
+ PassphraseRequest: PassphraseRequest;
1794
+ PassphraseAck: PassphraseAck;
1795
+ Deprecated_PassphraseStateRequest: Deprecated_PassphraseStateRequest;
1796
+ Deprecated_PassphraseStateAck: Deprecated_PassphraseStateAck;
1797
+ CipherKeyValue: CipherKeyValue;
1798
+ CipheredKeyValue: CipheredKeyValue;
1799
+ IdentityType: IdentityType;
1800
+ SignIdentity: SignIdentity;
1801
+ SignedIdentity: SignedIdentity;
1802
+ GetECDHSessionKey: GetECDHSessionKey;
1803
+ ECDHSessionKey: ECDHSessionKey;
1804
+ EosGetPublicKey: EosGetPublicKey;
1805
+ EosPublicKey: EosPublicKey;
1806
+ EosTxHeader: EosTxHeader;
1807
+ EosSignTx: EosSignTx;
1808
+ EosTxActionRequest: EosTxActionRequest;
1809
+ EosAsset: EosAsset;
1810
+ EosPermissionLevel: EosPermissionLevel;
1811
+ EosAuthorizationKey: EosAuthorizationKey;
1812
+ EosAuthorizationAccount: EosAuthorizationAccount;
1813
+ EosAuthorizationWait: EosAuthorizationWait;
1814
+ EosAuthorization: EosAuthorization;
1815
+ EosActionCommon: EosActionCommon;
1816
+ EosActionTransfer: EosActionTransfer;
1817
+ EosActionDelegate: EosActionDelegate;
1818
+ EosActionUndelegate: EosActionUndelegate;
1819
+ EosActionRefund: EosActionRefund;
1820
+ EosActionBuyRam: EosActionBuyRam;
1821
+ EosActionBuyRamBytes: EosActionBuyRamBytes;
1822
+ EosActionSellRam: EosActionSellRam;
1823
+ EosActionVoteProducer: EosActionVoteProducer;
1824
+ EosActionUpdateAuth: EosActionUpdateAuth;
1825
+ EosActionDeleteAuth: EosActionDeleteAuth;
1826
+ EosActionLinkAuth: EosActionLinkAuth;
1827
+ EosActionUnlinkAuth: EosActionUnlinkAuth;
1828
+ EosActionNewAccount: EosActionNewAccount;
1829
+ EosActionUnknown: EosActionUnknown;
1830
+ EosTxActionAck: EosTxActionAck;
1831
+ EosSignedTx: EosSignedTx;
1832
+ EthereumSignTypedData: EthereumSignTypedData;
1833
+ EthereumTypedDataStructRequest: EthereumTypedDataStructRequest;
1834
+ EthereumFieldType: EthereumFieldType;
1835
+ EthereumStructMember: EthereumStructMember;
1836
+ EthereumTypedDataStructAck: EthereumTypedDataStructAck;
1837
+ EthereumTypedDataValueRequest: EthereumTypedDataValueRequest;
1838
+ EthereumTypedDataValueAck: EthereumTypedDataValueAck;
1839
+ EthereumGetPublicKey: EthereumGetPublicKey;
1840
+ EthereumPublicKey: EthereumPublicKey;
1841
+ EthereumGetAddress: EthereumGetAddress;
1842
+ EthereumAddress: EthereumAddress;
1843
+ EthereumSignTx: EthereumSignTx;
1844
+ EthereumAccessList: EthereumAccessList;
1845
+ EthereumSignTxEIP1559: EthereumSignTxEIP1559;
1846
+ EthereumTxRequest: EthereumTxRequest;
1847
+ EthereumTxAck: EthereumTxAck;
1848
+ EthereumSignMessage: EthereumSignMessage;
1849
+ EthereumSignMessageEIP712: EthereumSignMessageEIP712;
1850
+ EthereumMessageSignature: EthereumMessageSignature;
1851
+ EthereumVerifyMessage: EthereumVerifyMessage;
1852
+ EthereumSignTypedHash: EthereumSignTypedHash;
1853
+ EthereumTypedDataSignature: EthereumTypedDataSignature;
1854
+ Initialize: Initialize;
1855
+ GetFeatures: GetFeatures;
1856
+ Features: Features;
1857
+ LockDevice: LockDevice;
1858
+ EndSession: EndSession;
1859
+ ApplySettings: ApplySettings;
1860
+ ApplyFlags: ApplyFlags;
1861
+ ChangePin: ChangePin;
1862
+ ChangeWipeCode: ChangeWipeCode;
1863
+ SdProtect: SdProtect;
1864
+ Ping: Ping;
1865
+ Cancel: Cancel;
1866
+ GetEntropy: GetEntropy;
1867
+ Entropy: Entropy;
1868
+ GetFirmwareHash: GetFirmwareHash;
1869
+ FirmwareHash: FirmwareHash;
1870
+ GetFirmware: GetFirmware;
1871
+ FirmwareChunk: FirmwareChunk;
1872
+ FirmwareChunkAck: FirmwareChunkAck;
1873
+ WipeDevice: WipeDevice;
1874
+ ResetDevice: ResetDevice;
1875
+ BackupDevice: BackupDevice;
1876
+ EntropyRequest: EntropyRequest;
1877
+ EntropyAck: EntropyAck;
1878
+ RecoveryDevice: RecoveryDevice;
1879
+ WordRequest: WordRequest;
1880
+ WordAck: WordAck;
1881
+ SetU2FCounter: SetU2FCounter;
1882
+ GetNextU2FCounter: GetNextU2FCounter;
1883
+ NextU2FCounter: NextU2FCounter;
1884
+ DoPreauthorized: DoPreauthorized;
1885
+ PreauthorizedRequest: PreauthorizedRequest;
1886
+ CancelAuthorization: CancelAuthorization;
1887
+ BixinReboot: BixinReboot;
1888
+ RebootToBootloader: RebootToBootloader;
1889
+ GetNonce: GetNonce;
1890
+ Nonce: Nonce;
1891
+ NEMGetAddress: NEMGetAddress;
1892
+ NEMAddress: NEMAddress;
1893
+ NEMTransactionCommon: NEMTransactionCommon;
1894
+ NEMMosaic: NEMMosaic;
1895
+ NEMTransfer: NEMTransfer;
1896
+ NEMProvisionNamespace: NEMProvisionNamespace;
1897
+ NEMMosaicDefinition: NEMMosaicDefinition;
1898
+ NEMMosaicCreation: NEMMosaicCreation;
1899
+ NEMMosaicSupplyChange: NEMMosaicSupplyChange;
1900
+ NEMCosignatoryModification: NEMCosignatoryModification;
1901
+ NEMAggregateModification: NEMAggregateModification;
1902
+ NEMImportanceTransfer: NEMImportanceTransfer;
1903
+ NEMSignTx: NEMSignTx;
1904
+ NEMSignedTx: NEMSignedTx;
1905
+ NEMDecryptMessage: NEMDecryptMessage;
1906
+ NEMDecryptedMessage: NEMDecryptedMessage;
1907
+ RippleGetAddress: RippleGetAddress;
1908
+ RippleAddress: RippleAddress;
1909
+ RipplePayment: RipplePayment;
1910
+ RippleSignTx: RippleSignTx;
1911
+ RippleSignedTx: RippleSignedTx;
1912
+ StellarAsset: StellarAsset;
1913
+ StellarGetAddress: StellarGetAddress;
1914
+ StellarAddress: StellarAddress;
1915
+ StellarSignTx: StellarSignTx;
1916
+ StellarTxOpRequest: StellarTxOpRequest;
1917
+ StellarPaymentOp: StellarPaymentOp;
1918
+ StellarCreateAccountOp: StellarCreateAccountOp;
1919
+ StellarPathPaymentStrictReceiveOp: StellarPathPaymentStrictReceiveOp;
1920
+ StellarPathPaymentStrictSendOp: StellarPathPaymentStrictSendOp;
1921
+ StellarManageSellOfferOp: StellarManageSellOfferOp;
1922
+ StellarManageBuyOfferOp: StellarManageBuyOfferOp;
1923
+ StellarCreatePassiveSellOfferOp: StellarCreatePassiveSellOfferOp;
1924
+ StellarSetOptionsOp: StellarSetOptionsOp;
1925
+ StellarChangeTrustOp: StellarChangeTrustOp;
1926
+ StellarAllowTrustOp: StellarAllowTrustOp;
1927
+ StellarAccountMergeOp: StellarAccountMergeOp;
1928
+ StellarManageDataOp: StellarManageDataOp;
1929
+ StellarBumpSequenceOp: StellarBumpSequenceOp;
1930
+ StellarSignedTx: StellarSignedTx;
1931
+ TezosGetAddress: TezosGetAddress;
1932
+ TezosAddress: TezosAddress;
1933
+ TezosGetPublicKey: TezosGetPublicKey;
1934
+ TezosPublicKey: TezosPublicKey;
1935
+ TezosContractID: TezosContractID;
1936
+ TezosRevealOp: TezosRevealOp;
1937
+ TezosManagerTransfer: TezosManagerTransfer;
1938
+ TezosParametersManager: TezosParametersManager;
1939
+ TezosTransactionOp: TezosTransactionOp;
1940
+ TezosOriginationOp: TezosOriginationOp;
1941
+ TezosDelegationOp: TezosDelegationOp;
1942
+ TezosProposalOp: TezosProposalOp;
1943
+ TezosBallotOp: TezosBallotOp;
1944
+ TezosSignTx: TezosSignTx;
1945
+ TezosSignedTx: TezosSignedTx;
1946
+ };
1947
+ export declare type MessageKey = keyof MessageType;
1948
+ export declare type MessageResponse<T extends MessageKey> = {
1949
+ type: T;
1950
+ message: MessageType[T];
1951
+ };
1952
+ export declare type TypedCall = <T extends MessageKey, R extends MessageKey>(type: T, resType: R, message?: MessageType[T]) => Promise<MessageResponse<R>>;
1953
+ export {};
1954
+ //# sourceMappingURL=messages.d.ts.map