@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,2725 @@
1
+ import * as ByteBuffer from 'bytebuffer';
2
+ import * as protobuf from 'protobufjs/light';
3
+ import { Root } from 'protobufjs/light';
4
+
5
+ declare function parseConfigure(data: protobuf.INamespace): protobuf.Root;
6
+
7
+ declare function buildOne(messages: Root, name: string, data: Record<string, unknown>): Buffer;
8
+
9
+ declare function receiveOne(messages: Root, data: string): {
10
+ message: {
11
+ [key: string]: any;
12
+ };
13
+ type: string;
14
+ };
15
+
16
+ declare type OneKeyUsbDeviceInfo = {
17
+ path: string;
18
+ };
19
+ declare type OneKeyDeviceInfoWithSession = OneKeyUsbDeviceInfo & {
20
+ session?: string | null;
21
+ debugSession?: string | null;
22
+ debug: boolean;
23
+ };
24
+ declare type OneKeyMobileDeviceInfo = {
25
+ id: string;
26
+ name: string | null;
27
+ };
28
+ declare type OneKeyDeviceInfo = OneKeyDeviceInfoWithSession & OneKeyMobileDeviceInfo;
29
+ declare type AcquireInput = {
30
+ path?: string;
31
+ previous?: string | null;
32
+ uuid?: string;
33
+ };
34
+ declare type MessageFromOneKey = {
35
+ type: string;
36
+ message: Record<string, any>;
37
+ };
38
+ declare type Transport = {
39
+ enumerate(): Promise<Array<OneKeyDeviceInfo>>;
40
+ listen(old?: Array<OneKeyDeviceInfo>): Promise<Array<OneKeyDeviceInfo>>;
41
+ acquire(input: AcquireInput): Promise<string>;
42
+ release(session: string, onclose: boolean): Promise<void>;
43
+ configure(signedData: JSON | string): Promise<void>;
44
+ call(session: string, name: string, data: Record<string, any>): Promise<MessageFromOneKey>;
45
+ post(session: string, name: string, data: Record<string, any>): Promise<void>;
46
+ read(session: string): Promise<MessageFromOneKey>;
47
+ init(): Promise<string>;
48
+ stop(): void;
49
+ configured: boolean;
50
+ version: string;
51
+ name: string;
52
+ activeName?: string;
53
+ requestDevice: () => Promise<void>;
54
+ requestNeeded: boolean;
55
+ isOutdated: boolean;
56
+ };
57
+
58
+ declare type UintType = string | number;
59
+ declare type Empty = Record<string, never>;
60
+ declare type BinanceGetAddress = {
61
+ address_n: number[];
62
+ show_display?: boolean;
63
+ };
64
+ declare type BinanceAddress = {
65
+ address: string;
66
+ };
67
+ declare type BinanceGetPublicKey = {
68
+ address_n: number[];
69
+ show_display?: boolean;
70
+ };
71
+ declare type BinancePublicKey = {
72
+ public_key: string;
73
+ };
74
+ declare type BinanceSignTx = {
75
+ address_n: number[];
76
+ msg_count: number;
77
+ account_number: number;
78
+ chain_id?: string;
79
+ memo?: string;
80
+ sequence: number;
81
+ source: number;
82
+ };
83
+ declare type BinanceTxRequest = Record<string, never>;
84
+ declare type BinanceCoin = {
85
+ amount: UintType;
86
+ denom: string;
87
+ };
88
+ declare type BinanceInputOutput = {
89
+ address: string;
90
+ coins: BinanceCoin[];
91
+ };
92
+ declare type BinanceTransferMsg = {
93
+ inputs: BinanceInputOutput[];
94
+ outputs: BinanceInputOutput[];
95
+ };
96
+ declare enum BinanceOrderType {
97
+ OT_UNKNOWN = 0,
98
+ MARKET = 1,
99
+ LIMIT = 2,
100
+ OT_RESERVED = 3
101
+ }
102
+ declare enum BinanceOrderSide {
103
+ SIDE_UNKNOWN = 0,
104
+ BUY = 1,
105
+ SELL = 2
106
+ }
107
+ declare enum BinanceTimeInForce {
108
+ TIF_UNKNOWN = 0,
109
+ GTE = 1,
110
+ TIF_RESERVED = 2,
111
+ IOC = 3
112
+ }
113
+ declare type BinanceOrderMsg = {
114
+ id?: string;
115
+ ordertype: BinanceOrderType;
116
+ price: number;
117
+ quantity: number;
118
+ sender?: string;
119
+ side: BinanceOrderSide;
120
+ symbol?: string;
121
+ timeinforce: BinanceTimeInForce;
122
+ };
123
+ declare type BinanceCancelMsg = {
124
+ refid?: string;
125
+ sender?: string;
126
+ symbol?: string;
127
+ };
128
+ declare type BinanceSignedTx = {
129
+ signature: string;
130
+ public_key: string;
131
+ };
132
+ declare enum Enum_InputScriptType {
133
+ SPENDADDRESS = 0,
134
+ SPENDMULTISIG = 1,
135
+ EXTERNAL = 2,
136
+ SPENDWITNESS = 3,
137
+ SPENDP2SHWITNESS = 4,
138
+ SPENDTAPROOT = 5
139
+ }
140
+ declare type InputScriptType = keyof typeof Enum_InputScriptType;
141
+ declare enum Enum_OutputScriptType {
142
+ PAYTOADDRESS = 0,
143
+ PAYTOSCRIPTHASH = 1,
144
+ PAYTOMULTISIG = 2,
145
+ PAYTOOPRETURN = 3,
146
+ PAYTOWITNESS = 4,
147
+ PAYTOP2SHWITNESS = 5,
148
+ PAYTOTAPROOT = 6
149
+ }
150
+ declare type OutputScriptType = keyof typeof Enum_OutputScriptType;
151
+ declare enum DecredStakingSpendType {
152
+ SSGen = 0,
153
+ SSRTX = 1
154
+ }
155
+ declare enum AmountUnit {
156
+ BITCOIN = 0,
157
+ MILLIBITCOIN = 1,
158
+ MICROBITCOIN = 2,
159
+ SATOSHI = 3
160
+ }
161
+ declare type HDNodeType = {
162
+ depth: number;
163
+ fingerprint: number;
164
+ child_num: number;
165
+ chain_code: string;
166
+ private_key?: string;
167
+ public_key: string;
168
+ };
169
+ declare type HDNodePathType = {
170
+ node: HDNodeType | string;
171
+ address_n: number[];
172
+ };
173
+ declare type MultisigRedeemScriptType = {
174
+ pubkeys: HDNodePathType[];
175
+ signatures: string[];
176
+ m: number;
177
+ nodes?: HDNodeType[];
178
+ address_n?: number[];
179
+ };
180
+ declare type GetPublicKey = {
181
+ address_n: number[];
182
+ ecdsa_curve_name?: string;
183
+ show_display?: boolean;
184
+ coin_name?: string;
185
+ script_type?: InputScriptType;
186
+ ignore_xpub_magic?: boolean;
187
+ };
188
+ declare type PublicKey = {
189
+ node: HDNodeType;
190
+ xpub: string;
191
+ root_fingerprint?: number;
192
+ };
193
+ declare type GetAddress = {
194
+ address_n: number[];
195
+ coin_name?: string;
196
+ show_display?: boolean;
197
+ multisig?: MultisigRedeemScriptType;
198
+ script_type?: InputScriptType;
199
+ ignore_xpub_magic?: boolean;
200
+ };
201
+ declare type Address = {
202
+ address: string;
203
+ mac?: string;
204
+ };
205
+ declare type GetOwnershipId = {
206
+ address_n: number[];
207
+ coin_name?: string;
208
+ multisig?: MultisigRedeemScriptType;
209
+ script_type?: InputScriptType;
210
+ };
211
+ declare type OwnershipId = {
212
+ ownership_id: string;
213
+ };
214
+ declare type SignMessage = {
215
+ address_n: number[];
216
+ message: string;
217
+ coin_name?: string;
218
+ script_type?: InputScriptType;
219
+ no_script_type?: boolean;
220
+ };
221
+ declare type MessageSignature = {
222
+ address: string;
223
+ signature: string;
224
+ };
225
+ declare type VerifyMessage = {
226
+ address: string;
227
+ signature: string;
228
+ message: string;
229
+ coin_name?: string;
230
+ };
231
+ declare type SignTx = {
232
+ outputs_count: number;
233
+ inputs_count: number;
234
+ coin_name?: string;
235
+ version?: number;
236
+ lock_time?: number;
237
+ expiry?: number;
238
+ overwintered?: boolean;
239
+ version_group_id?: number;
240
+ timestamp?: number;
241
+ branch_id?: number;
242
+ amount_unit?: AmountUnit;
243
+ decred_staking_ticket?: boolean;
244
+ };
245
+ declare enum Enum_RequestType {
246
+ TXINPUT = 0,
247
+ TXOUTPUT = 1,
248
+ TXMETA = 2,
249
+ TXFINISHED = 3,
250
+ TXEXTRADATA = 4,
251
+ TXORIGINPUT = 5,
252
+ TXORIGOUTPUT = 6,
253
+ TXPAYMENTREQ = 7
254
+ }
255
+ declare type RequestType = keyof typeof Enum_RequestType;
256
+ declare type TxRequestDetailsType = {
257
+ request_index: number;
258
+ tx_hash?: string;
259
+ extra_data_len?: number;
260
+ extra_data_offset?: number;
261
+ };
262
+ declare type TxRequestSerializedType = {
263
+ signature_index?: number;
264
+ signature?: string;
265
+ serialized_tx?: string;
266
+ };
267
+ declare type TxRequest = {
268
+ request_type: RequestType;
269
+ details: TxRequestDetailsType;
270
+ serialized?: TxRequestSerializedType;
271
+ };
272
+ declare type InternalInputScriptType = Exclude<InputScriptType, 'EXTERNAL'>;
273
+ declare type CommonTxInputType = {
274
+ prev_hash: string;
275
+ prev_index: number;
276
+ amount: UintType;
277
+ sequence?: number;
278
+ multisig?: MultisigRedeemScriptType;
279
+ decred_tree?: number;
280
+ orig_hash?: string;
281
+ orig_index?: number;
282
+ decred_staking_spend?: DecredStakingSpendType;
283
+ script_pubkey?: string;
284
+ script_sig?: string;
285
+ witness?: string;
286
+ ownership_proof?: string;
287
+ commitment_data?: string;
288
+ };
289
+ declare type TxInputType = (CommonTxInputType & {
290
+ address_n: number[];
291
+ script_type?: InternalInputScriptType;
292
+ }) | (CommonTxInputType & {
293
+ address_n?: typeof undefined;
294
+ script_type: 'EXTERNAL';
295
+ script_pubkey: string;
296
+ });
297
+ declare type TxInput = TxInputType;
298
+ declare type TxOutputBinType = {
299
+ amount: UintType;
300
+ script_pubkey: string;
301
+ decred_script_version?: number;
302
+ };
303
+ declare type ChangeOutputScriptType = Exclude<OutputScriptType, 'PAYTOOPRETURN'>;
304
+ declare type TxOutputType = {
305
+ address: string;
306
+ address_n?: typeof undefined;
307
+ script_type: 'PAYTOADDRESS';
308
+ amount: UintType;
309
+ multisig?: MultisigRedeemScriptType;
310
+ orig_hash?: string;
311
+ orig_index?: number;
312
+ payment_req_index?: number;
313
+ } | {
314
+ address?: typeof undefined;
315
+ address_n: number[];
316
+ script_type: ChangeOutputScriptType;
317
+ amount: UintType;
318
+ multisig?: MultisigRedeemScriptType;
319
+ orig_hash?: string;
320
+ orig_index?: number;
321
+ payment_req_index?: number;
322
+ } | {
323
+ address?: typeof undefined;
324
+ address_n?: typeof undefined;
325
+ amount: '0';
326
+ op_return_data: string;
327
+ script_type: 'PAYTOOPRETURN';
328
+ orig_hash?: string;
329
+ orig_index?: number;
330
+ payment_req_index?: number;
331
+ };
332
+ declare type TxOutput = TxOutputType;
333
+ declare type PrevTx = {
334
+ version: number;
335
+ lock_time: number;
336
+ inputs_count: number;
337
+ outputs_count: number;
338
+ extra_data_len?: number;
339
+ expiry?: number;
340
+ version_group_id?: number;
341
+ timestamp?: number;
342
+ branch_id?: number;
343
+ };
344
+ declare type PrevInput = {
345
+ prev_hash: string;
346
+ prev_index: number;
347
+ script_sig: string;
348
+ sequence: number;
349
+ decred_tree?: number;
350
+ };
351
+ declare type PrevOutput = {
352
+ amount: UintType;
353
+ script_pubkey: string;
354
+ decred_script_version?: number;
355
+ };
356
+ declare type TextMemo = {
357
+ text: string;
358
+ };
359
+ declare type RefundMemo = {
360
+ address: string;
361
+ mac: string;
362
+ };
363
+ declare type CoinPurchaseMemo = {
364
+ coin_type: number;
365
+ amount: UintType;
366
+ address: string;
367
+ mac: string;
368
+ };
369
+ declare type PaymentRequestMemo = {
370
+ text_memo?: TextMemo;
371
+ refund_memo?: RefundMemo;
372
+ coin_purchase_memo?: CoinPurchaseMemo;
373
+ };
374
+ declare type TxAckPaymentRequest = {
375
+ nonce?: string;
376
+ recipient_name: string;
377
+ memos?: PaymentRequestMemo[];
378
+ amount?: UintType;
379
+ signature: string;
380
+ };
381
+ declare type TxAckResponse = {
382
+ inputs: Array<TxInputType | PrevInput>;
383
+ } | {
384
+ bin_outputs: TxOutputBinType[];
385
+ } | {
386
+ outputs: TxOutputType[];
387
+ } | {
388
+ extra_data: string;
389
+ } | {
390
+ version?: number;
391
+ lock_time?: number;
392
+ inputs_cnt: number;
393
+ outputs_cnt: number;
394
+ extra_data?: string;
395
+ extra_data_len?: number;
396
+ timestamp?: number;
397
+ version_group_id?: number;
398
+ expiry?: number;
399
+ branch_id?: number;
400
+ };
401
+ declare type TxAck = {
402
+ tx: TxAckResponse;
403
+ };
404
+ declare type TxAckInputWrapper = {
405
+ input: TxInput;
406
+ };
407
+ declare type TxAckInput = {
408
+ tx: TxAckInputWrapper;
409
+ };
410
+ declare type TxAckOutputWrapper = {
411
+ output: TxOutput;
412
+ };
413
+ declare type TxAckOutput = {
414
+ tx: TxAckOutputWrapper;
415
+ };
416
+ declare type TxAckPrevMeta = {
417
+ tx: PrevTx;
418
+ };
419
+ declare type TxAckPrevInputWrapper = {
420
+ input: PrevInput;
421
+ };
422
+ declare type TxAckPrevInput = {
423
+ tx: TxAckPrevInputWrapper;
424
+ };
425
+ declare type TxAckPrevOutputWrapper = {
426
+ output: PrevOutput;
427
+ };
428
+ declare type TxAckPrevOutput = {
429
+ tx: TxAckPrevOutputWrapper;
430
+ };
431
+ declare type TxAckPrevExtraDataWrapper = {
432
+ extra_data_chunk: string;
433
+ };
434
+ declare type TxAckPrevExtraData = {
435
+ tx: TxAckPrevExtraDataWrapper;
436
+ };
437
+ declare type GetOwnershipProof = {
438
+ address_n: number[];
439
+ coin_name?: string;
440
+ script_type?: InputScriptType;
441
+ multisig?: MultisigRedeemScriptType;
442
+ user_confirmation?: boolean;
443
+ ownership_ids?: string[];
444
+ commitment_data?: string;
445
+ };
446
+ declare type OwnershipProof = {
447
+ ownership_proof: string;
448
+ signature: string;
449
+ };
450
+ declare type AuthorizeCoinJoin = {
451
+ coordinator: string;
452
+ max_rounds: number;
453
+ max_coordinator_fee_rate: number;
454
+ max_fee_per_kvbyte: number;
455
+ address_n: number[];
456
+ coin_name?: string;
457
+ script_type?: InputScriptType;
458
+ amount_unit?: AmountUnit;
459
+ };
460
+ declare type FirmwareErase = {
461
+ length?: number;
462
+ };
463
+ declare type FirmwareRequest = {
464
+ offset?: number;
465
+ length?: number;
466
+ };
467
+ declare type FirmwareUpload = {
468
+ payload: Buffer | ArrayBuffer;
469
+ hash?: string;
470
+ };
471
+ declare type SelfTest = {
472
+ payload?: string;
473
+ };
474
+ declare enum CardanoDerivationType {
475
+ LEDGER = 0,
476
+ ICARUS = 1,
477
+ ICARUS_TREZOR = 2
478
+ }
479
+ declare enum CardanoAddressType {
480
+ BASE = 0,
481
+ BASE_SCRIPT_KEY = 1,
482
+ BASE_KEY_SCRIPT = 2,
483
+ BASE_SCRIPT_SCRIPT = 3,
484
+ POINTER = 4,
485
+ POINTER_SCRIPT = 5,
486
+ ENTERPRISE = 6,
487
+ ENTERPRISE_SCRIPT = 7,
488
+ BYRON = 8,
489
+ REWARD = 14,
490
+ REWARD_SCRIPT = 15
491
+ }
492
+ declare enum CardanoNativeScriptType {
493
+ PUB_KEY = 0,
494
+ ALL = 1,
495
+ ANY = 2,
496
+ N_OF_K = 3,
497
+ INVALID_BEFORE = 4,
498
+ INVALID_HEREAFTER = 5
499
+ }
500
+ declare enum CardanoNativeScriptHashDisplayFormat {
501
+ HIDE = 0,
502
+ BECH32 = 1,
503
+ POLICY_ID = 2
504
+ }
505
+ declare enum CardanoCertificateType {
506
+ STAKE_REGISTRATION = 0,
507
+ STAKE_DEREGISTRATION = 1,
508
+ STAKE_DELEGATION = 2,
509
+ STAKE_POOL_REGISTRATION = 3
510
+ }
511
+ declare enum CardanoPoolRelayType {
512
+ SINGLE_HOST_IP = 0,
513
+ SINGLE_HOST_NAME = 1,
514
+ MULTIPLE_HOST_NAME = 2
515
+ }
516
+ declare enum CardanoTxAuxiliaryDataSupplementType {
517
+ NONE = 0,
518
+ CATALYST_REGISTRATION_SIGNATURE = 1
519
+ }
520
+ declare enum CardanoTxSigningMode {
521
+ ORDINARY_TRANSACTION = 0,
522
+ POOL_REGISTRATION_AS_OWNER = 1,
523
+ MULTISIG_TRANSACTION = 2,
524
+ PLUTUS_TRANSACTION = 3
525
+ }
526
+ declare enum CardanoTxWitnessType {
527
+ BYRON_WITNESS = 0,
528
+ SHELLEY_WITNESS = 1
529
+ }
530
+ declare type CardanoBlockchainPointerType = {
531
+ block_index: number;
532
+ tx_index: number;
533
+ certificate_index: number;
534
+ };
535
+ declare type CardanoNativeScript = {
536
+ type: CardanoNativeScriptType;
537
+ scripts?: CardanoNativeScript[];
538
+ key_hash?: string;
539
+ key_path?: number[];
540
+ required_signatures_count?: number;
541
+ invalid_before?: UintType;
542
+ invalid_hereafter?: UintType;
543
+ };
544
+ declare type CardanoGetNativeScriptHash = {
545
+ script: CardanoNativeScript;
546
+ display_format: CardanoNativeScriptHashDisplayFormat;
547
+ derivation_type: CardanoDerivationType;
548
+ };
549
+ declare type CardanoNativeScriptHash = {
550
+ script_hash: string;
551
+ };
552
+ declare type CardanoAddressParametersType = {
553
+ address_type: CardanoAddressType;
554
+ address_n: number[];
555
+ address_n_staking: number[];
556
+ staking_key_hash?: string;
557
+ certificate_pointer?: CardanoBlockchainPointerType;
558
+ script_payment_hash?: string;
559
+ script_staking_hash?: string;
560
+ };
561
+ declare type CardanoGetAddress = {
562
+ show_display?: boolean;
563
+ protocol_magic: number;
564
+ network_id: number;
565
+ address_parameters: CardanoAddressParametersType;
566
+ derivation_type: CardanoDerivationType;
567
+ };
568
+ declare type CardanoAddress = {
569
+ address: string;
570
+ };
571
+ declare type CardanoGetPublicKey = {
572
+ address_n: number[];
573
+ show_display?: boolean;
574
+ derivation_type: CardanoDerivationType;
575
+ };
576
+ declare type CardanoPublicKey = {
577
+ xpub: string;
578
+ node: HDNodeType;
579
+ };
580
+ declare type CardanoSignTxInit = {
581
+ signing_mode: CardanoTxSigningMode;
582
+ protocol_magic: number;
583
+ network_id: number;
584
+ inputs_count: number;
585
+ outputs_count: number;
586
+ fee: UintType;
587
+ ttl?: UintType;
588
+ certificates_count: number;
589
+ withdrawals_count: number;
590
+ has_auxiliary_data: boolean;
591
+ validity_interval_start?: UintType;
592
+ witness_requests_count: number;
593
+ minting_asset_groups_count: number;
594
+ derivation_type: CardanoDerivationType;
595
+ include_network_id?: boolean;
596
+ script_data_hash?: string;
597
+ collateral_inputs_count: number;
598
+ required_signers_count: number;
599
+ };
600
+ declare type CardanoTxInput = {
601
+ prev_hash: string;
602
+ prev_index: number;
603
+ };
604
+ declare type CardanoTxOutput = {
605
+ address?: string;
606
+ address_parameters?: CardanoAddressParametersType;
607
+ amount: UintType;
608
+ asset_groups_count: number;
609
+ datum_hash?: string;
610
+ };
611
+ declare type CardanoAssetGroup = {
612
+ policy_id: string;
613
+ tokens_count: number;
614
+ };
615
+ declare type CardanoToken = {
616
+ asset_name_bytes: string;
617
+ amount?: UintType;
618
+ mint_amount?: UintType;
619
+ };
620
+ declare type CardanoPoolOwner = {
621
+ staking_key_path?: number[];
622
+ staking_key_hash?: string;
623
+ };
624
+ declare type CardanoPoolRelayParameters = {
625
+ type: CardanoPoolRelayType;
626
+ ipv4_address?: string;
627
+ ipv6_address?: string;
628
+ host_name?: string;
629
+ port?: number;
630
+ };
631
+ declare type CardanoPoolMetadataType = {
632
+ url: string;
633
+ hash: string;
634
+ };
635
+ declare type CardanoPoolParametersType = {
636
+ pool_id: string;
637
+ vrf_key_hash: string;
638
+ pledge: UintType;
639
+ cost: UintType;
640
+ margin_numerator: UintType;
641
+ margin_denominator: UintType;
642
+ reward_account: string;
643
+ owners: CardanoPoolOwner[];
644
+ relays: CardanoPoolRelayParameters[];
645
+ metadata?: CardanoPoolMetadataType;
646
+ owners_count: number;
647
+ relays_count: number;
648
+ };
649
+ declare type CardanoTxCertificate = {
650
+ type: CardanoCertificateType;
651
+ path?: number[];
652
+ pool?: string;
653
+ pool_parameters?: CardanoPoolParametersType;
654
+ script_hash?: string;
655
+ key_hash?: string;
656
+ };
657
+ declare type CardanoTxWithdrawal = {
658
+ path?: number[];
659
+ amount: UintType;
660
+ script_hash?: string;
661
+ key_hash?: string;
662
+ };
663
+ declare type CardanoCatalystRegistrationParametersType = {
664
+ voting_public_key: string;
665
+ staking_path: number[];
666
+ reward_address_parameters: CardanoAddressParametersType;
667
+ nonce: UintType;
668
+ };
669
+ declare type CardanoTxAuxiliaryData = {
670
+ catalyst_registration_parameters?: CardanoCatalystRegistrationParametersType;
671
+ hash?: string;
672
+ };
673
+ declare type CardanoTxMint = {
674
+ asset_groups_count: number;
675
+ };
676
+ declare type CardanoTxCollateralInput = {
677
+ prev_hash: string;
678
+ prev_index: number;
679
+ };
680
+ declare type CardanoTxRequiredSigner = {
681
+ key_hash?: string;
682
+ key_path?: number[];
683
+ };
684
+ declare type CardanoTxItemAck = Empty;
685
+ declare type CardanoTxAuxiliaryDataSupplement = {
686
+ type: CardanoTxAuxiliaryDataSupplementType;
687
+ auxiliary_data_hash?: string;
688
+ catalyst_signature?: string;
689
+ };
690
+ declare type CardanoTxWitnessRequest = {
691
+ path: number[];
692
+ };
693
+ declare type CardanoTxWitnessResponse = {
694
+ type: CardanoTxWitnessType;
695
+ pub_key: string;
696
+ signature: string;
697
+ chain_code?: string;
698
+ };
699
+ declare type CardanoTxHostAck = Empty;
700
+ declare type CardanoTxBodyHash = {
701
+ tx_hash: string;
702
+ };
703
+ declare type CardanoSignTxFinished = Empty;
704
+ declare type CardanoTxInputType = {
705
+ address_n?: number[];
706
+ prev_hash: string;
707
+ prev_index: number;
708
+ };
709
+ declare type CardanoTokenType = {
710
+ asset_name_bytes: string;
711
+ amount: UintType;
712
+ };
713
+ declare type CardanoAssetGroupType = {
714
+ policy_id: string;
715
+ tokens: CardanoTokenType[];
716
+ };
717
+ declare type CardanoTxOutputType = {
718
+ address?: string;
719
+ amount: UintType;
720
+ address_parameters?: CardanoAddressParametersType;
721
+ token_bundle: CardanoAssetGroupType[];
722
+ };
723
+ declare type CardanoPoolOwnerType = {
724
+ staking_key_path?: number[];
725
+ staking_key_hash?: string;
726
+ };
727
+ declare type CardanoPoolRelayParametersType = {
728
+ type: CardanoPoolRelayType;
729
+ ipv4_address?: string;
730
+ ipv6_address?: string;
731
+ host_name?: string;
732
+ port?: number;
733
+ };
734
+ declare type CardanoTxCertificateType = {
735
+ type: CardanoCertificateType;
736
+ path?: number[];
737
+ pool?: string;
738
+ pool_parameters?: CardanoPoolParametersType;
739
+ };
740
+ declare type CardanoTxWithdrawalType = {
741
+ path: number[];
742
+ amount: UintType;
743
+ };
744
+ declare type CardanoTxAuxiliaryDataType = {
745
+ blob?: string;
746
+ catalyst_registration_parameters?: CardanoCatalystRegistrationParametersType;
747
+ };
748
+ declare type CardanoSignTx = {
749
+ inputs: CardanoTxInputType[];
750
+ outputs: CardanoTxOutputType[];
751
+ protocol_magic: number;
752
+ fee: UintType;
753
+ ttl?: UintType;
754
+ network_id: number;
755
+ certificates: CardanoTxCertificateType[];
756
+ withdrawals: CardanoTxWithdrawalType[];
757
+ validity_interval_start?: UintType;
758
+ auxiliary_data?: CardanoTxAuxiliaryDataType;
759
+ };
760
+ declare type CardanoSignedTxChunk = {
761
+ signed_tx_chunk: string;
762
+ };
763
+ declare type CardanoSignedTxChunkAck = Empty;
764
+ declare type CardanoSignedTx = {
765
+ tx_hash: string;
766
+ serialized_tx?: string;
767
+ };
768
+ declare type Success = {
769
+ message: string;
770
+ };
771
+ declare enum FailureType {
772
+ Failure_UnexpectedMessage = 1,
773
+ Failure_ButtonExpected = 2,
774
+ Failure_DataError = 3,
775
+ Failure_ActionCancelled = 4,
776
+ Failure_PinExpected = 5,
777
+ Failure_PinCancelled = 6,
778
+ Failure_PinInvalid = 7,
779
+ Failure_InvalidSignature = 8,
780
+ Failure_ProcessError = 9,
781
+ Failure_NotEnoughFunds = 10,
782
+ Failure_NotInitialized = 11,
783
+ Failure_PinMismatch = 12,
784
+ Failure_WipeCodeMismatch = 13,
785
+ Failure_InvalidSession = 14,
786
+ Failure_FirmwareError = 99
787
+ }
788
+ declare type Failure = {
789
+ code?: FailureType | string;
790
+ message?: string;
791
+ };
792
+ declare enum Enum_ButtonRequestType {
793
+ ButtonRequest_Other = 1,
794
+ ButtonRequest_FeeOverThreshold = 2,
795
+ ButtonRequest_ConfirmOutput = 3,
796
+ ButtonRequest_ResetDevice = 4,
797
+ ButtonRequest_ConfirmWord = 5,
798
+ ButtonRequest_WipeDevice = 6,
799
+ ButtonRequest_ProtectCall = 7,
800
+ ButtonRequest_SignTx = 8,
801
+ ButtonRequest_FirmwareCheck = 9,
802
+ ButtonRequest_Address = 10,
803
+ ButtonRequest_PublicKey = 11,
804
+ ButtonRequest_MnemonicWordCount = 12,
805
+ ButtonRequest_MnemonicInput = 13,
806
+ _Deprecated_ButtonRequest_PassphraseType = 14,
807
+ ButtonRequest_UnknownDerivationPath = 15,
808
+ ButtonRequest_RecoveryHomepage = 16,
809
+ ButtonRequest_Success = 17,
810
+ ButtonRequest_Warning = 18,
811
+ ButtonRequest_PassphraseEntry = 19,
812
+ ButtonRequest_PinEntry = 20
813
+ }
814
+ declare type ButtonRequestType = keyof typeof Enum_ButtonRequestType;
815
+ declare type ButtonRequest = {
816
+ code?: ButtonRequestType;
817
+ pages?: number;
818
+ };
819
+ declare type ButtonAck = Empty;
820
+ declare enum Enum_PinMatrixRequestType {
821
+ PinMatrixRequestType_Current = 1,
822
+ PinMatrixRequestType_NewFirst = 2,
823
+ PinMatrixRequestType_NewSecond = 3,
824
+ PinMatrixRequestType_WipeCodeFirst = 4,
825
+ PinMatrixRequestType_WipeCodeSecond = 5
826
+ }
827
+ declare type PinMatrixRequestType = keyof typeof Enum_PinMatrixRequestType;
828
+ declare type PinMatrixRequest = {
829
+ type?: PinMatrixRequestType;
830
+ };
831
+ declare type PinMatrixAck = {
832
+ pin: string;
833
+ };
834
+ declare type PassphraseRequest = {
835
+ _on_device?: boolean;
836
+ };
837
+ declare type PassphraseAck = {
838
+ passphrase?: string;
839
+ _state?: string;
840
+ on_device?: boolean;
841
+ };
842
+ declare type Deprecated_PassphraseStateRequest = {
843
+ state?: string;
844
+ };
845
+ declare type Deprecated_PassphraseStateAck = Empty;
846
+ declare type CipherKeyValue = {
847
+ address_n: number[];
848
+ key: string;
849
+ value: string;
850
+ encrypt?: boolean;
851
+ ask_on_encrypt?: boolean;
852
+ ask_on_decrypt?: boolean;
853
+ iv?: string;
854
+ };
855
+ declare type CipheredKeyValue = {
856
+ value: string;
857
+ };
858
+ declare type IdentityType = {
859
+ proto?: string;
860
+ user?: string;
861
+ host?: string;
862
+ port?: string;
863
+ path?: string;
864
+ index?: number;
865
+ };
866
+ declare type SignIdentity = {
867
+ identity: IdentityType;
868
+ challenge_hidden?: string;
869
+ challenge_visual?: string;
870
+ ecdsa_curve_name?: string;
871
+ };
872
+ declare type SignedIdentity = {
873
+ address: string;
874
+ public_key: string;
875
+ signature: string;
876
+ };
877
+ declare type GetECDHSessionKey = {
878
+ identity: IdentityType;
879
+ peer_public_key: string;
880
+ ecdsa_curve_name?: string;
881
+ };
882
+ declare type ECDHSessionKey = {
883
+ session_key: string;
884
+ public_key?: string;
885
+ };
886
+ declare enum DebugButton {
887
+ NO = 0,
888
+ YES = 1,
889
+ INFO = 2
890
+ }
891
+ declare type EosGetPublicKey = {
892
+ address_n: number[];
893
+ show_display?: boolean;
894
+ };
895
+ declare type EosPublicKey = {
896
+ wif_public_key: string;
897
+ raw_public_key: string;
898
+ };
899
+ declare type EosTxHeader = {
900
+ expiration: number;
901
+ ref_block_num: number;
902
+ ref_block_prefix: number;
903
+ max_net_usage_words: number;
904
+ max_cpu_usage_ms: number;
905
+ delay_sec: number;
906
+ };
907
+ declare type EosSignTx = {
908
+ address_n: number[];
909
+ chain_id: string;
910
+ header: EosTxHeader;
911
+ num_actions: number;
912
+ };
913
+ declare type EosTxActionRequest = {
914
+ data_size?: number;
915
+ };
916
+ declare type EosAsset = {
917
+ amount: UintType;
918
+ symbol: string;
919
+ };
920
+ declare type EosPermissionLevel = {
921
+ actor: string;
922
+ permission: string;
923
+ };
924
+ declare type EosAuthorizationKey = {
925
+ type?: number;
926
+ key: string;
927
+ address_n?: number[];
928
+ weight: number;
929
+ };
930
+ declare type EosAuthorizationAccount = {
931
+ account: EosPermissionLevel;
932
+ weight: number;
933
+ };
934
+ declare type EosAuthorizationWait = {
935
+ wait_sec: number;
936
+ weight: number;
937
+ };
938
+ declare type EosAuthorization = {
939
+ threshold: number;
940
+ keys: EosAuthorizationKey[];
941
+ accounts: EosAuthorizationAccount[];
942
+ waits: EosAuthorizationWait[];
943
+ };
944
+ declare type EosActionCommon = {
945
+ account: string;
946
+ name: string;
947
+ authorization: EosPermissionLevel[];
948
+ };
949
+ declare type EosActionTransfer = {
950
+ sender: string;
951
+ receiver: string;
952
+ quantity: EosAsset;
953
+ memo: string;
954
+ };
955
+ declare type EosActionDelegate = {
956
+ sender: string;
957
+ receiver: string;
958
+ net_quantity: EosAsset;
959
+ cpu_quantity: EosAsset;
960
+ transfer: boolean;
961
+ };
962
+ declare type EosActionUndelegate = {
963
+ sender: string;
964
+ receiver: string;
965
+ net_quantity: EosAsset;
966
+ cpu_quantity: EosAsset;
967
+ };
968
+ declare type EosActionRefund = {
969
+ owner: string;
970
+ };
971
+ declare type EosActionBuyRam = {
972
+ payer: string;
973
+ receiver: string;
974
+ quantity: EosAsset;
975
+ };
976
+ declare type EosActionBuyRamBytes = {
977
+ payer: string;
978
+ receiver: string;
979
+ bytes: number;
980
+ };
981
+ declare type EosActionSellRam = {
982
+ account: string;
983
+ bytes: number;
984
+ };
985
+ declare type EosActionVoteProducer = {
986
+ voter: string;
987
+ proxy: string;
988
+ producers: string[];
989
+ };
990
+ declare type EosActionUpdateAuth = {
991
+ account: string;
992
+ permission: string;
993
+ parent: string;
994
+ auth: EosAuthorization;
995
+ };
996
+ declare type EosActionDeleteAuth = {
997
+ account: string;
998
+ permission: string;
999
+ };
1000
+ declare type EosActionLinkAuth = {
1001
+ account: string;
1002
+ code: string;
1003
+ type: string;
1004
+ requirement: string;
1005
+ };
1006
+ declare type EosActionUnlinkAuth = {
1007
+ account: string;
1008
+ code: string;
1009
+ type: string;
1010
+ };
1011
+ declare type EosActionNewAccount = {
1012
+ creator: string;
1013
+ name: string;
1014
+ owner: EosAuthorization;
1015
+ active: EosAuthorization;
1016
+ };
1017
+ declare type EosActionUnknown = {
1018
+ data_size: number;
1019
+ data_chunk: string;
1020
+ };
1021
+ declare type EosTxActionAck = {
1022
+ common: EosActionCommon;
1023
+ transfer?: EosActionTransfer;
1024
+ delegate?: EosActionDelegate;
1025
+ undelegate?: EosActionUndelegate;
1026
+ refund?: EosActionRefund;
1027
+ buy_ram?: EosActionBuyRam;
1028
+ buy_ram_bytes?: EosActionBuyRamBytes;
1029
+ sell_ram?: EosActionSellRam;
1030
+ vote_producer?: EosActionVoteProducer;
1031
+ update_auth?: EosActionUpdateAuth;
1032
+ delete_auth?: EosActionDeleteAuth;
1033
+ link_auth?: EosActionLinkAuth;
1034
+ unlink_auth?: EosActionUnlinkAuth;
1035
+ new_account?: EosActionNewAccount;
1036
+ unknown?: EosActionUnknown;
1037
+ };
1038
+ declare type EosSignedTx = {
1039
+ signature: string;
1040
+ };
1041
+ declare type EthereumSignTypedData = {
1042
+ address_n: number[];
1043
+ primary_type: string;
1044
+ metamask_v4_compat?: boolean;
1045
+ };
1046
+ declare type EthereumTypedDataStructRequest = {
1047
+ name: string;
1048
+ };
1049
+ declare enum EthereumDataType {
1050
+ UINT = 1,
1051
+ INT = 2,
1052
+ BYTES = 3,
1053
+ STRING = 4,
1054
+ BOOL = 5,
1055
+ ADDRESS = 6,
1056
+ ARRAY = 7,
1057
+ STRUCT = 8
1058
+ }
1059
+ declare type EthereumFieldType = {
1060
+ data_type: EthereumDataType;
1061
+ size?: number;
1062
+ entry_type?: EthereumFieldType;
1063
+ struct_name?: string;
1064
+ };
1065
+ declare type EthereumStructMember = {
1066
+ type: EthereumFieldType;
1067
+ name: string;
1068
+ };
1069
+ declare type EthereumTypedDataStructAck = {
1070
+ members: EthereumStructMember[];
1071
+ };
1072
+ declare type EthereumTypedDataValueRequest = {
1073
+ member_path: number[];
1074
+ };
1075
+ declare type EthereumTypedDataValueAck = {
1076
+ value: string;
1077
+ };
1078
+ declare type EthereumGetPublicKey = {
1079
+ address_n: number[];
1080
+ show_display?: boolean;
1081
+ };
1082
+ declare type EthereumPublicKey = {
1083
+ node: HDNodeType;
1084
+ xpub: string;
1085
+ };
1086
+ declare type EthereumGetAddress = {
1087
+ address_n: number[];
1088
+ show_display?: boolean;
1089
+ };
1090
+ declare type EthereumAddress = {
1091
+ _old_address?: string;
1092
+ address: string;
1093
+ };
1094
+ declare type EthereumSignTx = {
1095
+ address_n: number[];
1096
+ nonce?: string;
1097
+ gas_price: string;
1098
+ gas_limit: string;
1099
+ to?: string;
1100
+ value?: string;
1101
+ data_initial_chunk?: string;
1102
+ data_length?: number;
1103
+ chain_id: number;
1104
+ tx_type?: number;
1105
+ };
1106
+ declare type EthereumAccessList = {
1107
+ address: string;
1108
+ storage_keys: string[];
1109
+ };
1110
+ declare type EthereumSignTxEIP1559 = {
1111
+ address_n: number[];
1112
+ nonce: string;
1113
+ max_gas_fee: string;
1114
+ max_priority_fee: string;
1115
+ gas_limit: string;
1116
+ to?: string;
1117
+ value: string;
1118
+ data_initial_chunk?: string;
1119
+ data_length: number;
1120
+ chain_id: number;
1121
+ access_list: EthereumAccessList[];
1122
+ };
1123
+ declare type EthereumTxRequest = {
1124
+ data_length?: number;
1125
+ signature_v?: number;
1126
+ signature_r?: string;
1127
+ signature_s?: string;
1128
+ };
1129
+ declare type EthereumTxAck = {
1130
+ data_chunk: string;
1131
+ };
1132
+ declare type EthereumSignMessage = {
1133
+ address_n: number[];
1134
+ message: string;
1135
+ };
1136
+ declare type EthereumSignMessageEIP712 = {
1137
+ address_n: number[];
1138
+ domain_hash: string;
1139
+ message_hash: string;
1140
+ };
1141
+ declare type EthereumMessageSignature = {
1142
+ signature: string;
1143
+ address: string;
1144
+ };
1145
+ declare type EthereumVerifyMessage = {
1146
+ signature: string;
1147
+ message: string;
1148
+ address: string;
1149
+ };
1150
+ declare type EthereumSignTypedHash = {
1151
+ address_n: number[];
1152
+ domain_separator_hash: string;
1153
+ message_hash?: string;
1154
+ };
1155
+ declare type EthereumTypedDataSignature = {
1156
+ signature: string;
1157
+ address: string;
1158
+ };
1159
+ declare enum Enum_BackupType {
1160
+ Bip39 = 0,
1161
+ Slip39_Basic = 1,
1162
+ Slip39_Advanced = 2
1163
+ }
1164
+ declare type BackupType = keyof typeof Enum_BackupType;
1165
+ declare enum Enum_SafetyCheckLevel {
1166
+ Strict = 0,
1167
+ PromptAlways = 1,
1168
+ PromptTemporarily = 2
1169
+ }
1170
+ declare type SafetyCheckLevel = keyof typeof Enum_SafetyCheckLevel;
1171
+ declare type Initialize = {
1172
+ session_id?: string;
1173
+ _skip_passphrase?: boolean;
1174
+ derive_cardano?: boolean;
1175
+ };
1176
+ declare type GetFeatures = Empty;
1177
+ declare enum Enum_Capability {
1178
+ Capability_Bitcoin = 1,
1179
+ Capability_Bitcoin_like = 2,
1180
+ Capability_Binance = 3,
1181
+ Capability_Cardano = 4,
1182
+ Capability_Crypto = 5,
1183
+ Capability_EOS = 6,
1184
+ Capability_Ethereum = 7,
1185
+ Capability_Lisk = 8,
1186
+ Capability_Monero = 9,
1187
+ Capability_NEM = 10,
1188
+ Capability_Ripple = 11,
1189
+ Capability_Stellar = 12,
1190
+ Capability_Tezos = 13,
1191
+ Capability_U2F = 14,
1192
+ Capability_Shamir = 15,
1193
+ Capability_ShamirGroups = 16,
1194
+ Capability_PassphraseEntry = 17
1195
+ }
1196
+ declare type Capability = keyof typeof Enum_Capability;
1197
+ declare type Features = {
1198
+ vendor: string;
1199
+ onekey_serial: string;
1200
+ se_ver: string;
1201
+ serial_no: string;
1202
+ onekey_version: string;
1203
+ ble_ver: string;
1204
+ ble_enable: boolean;
1205
+ major_version: number;
1206
+ minor_version: number;
1207
+ patch_version: number;
1208
+ bootloader_mode: boolean | null;
1209
+ device_id: string | null;
1210
+ pin_protection: boolean | null;
1211
+ passphrase_protection: boolean | null;
1212
+ language: string | null;
1213
+ label: string | null;
1214
+ initialized: boolean | null;
1215
+ revision: string | null;
1216
+ bootloader_hash: string | null;
1217
+ imported: boolean | null;
1218
+ unlocked: boolean | null;
1219
+ _passphrase_cached?: boolean;
1220
+ firmware_present: boolean | null;
1221
+ needs_backup: boolean | null;
1222
+ flags: number | null;
1223
+ model: string;
1224
+ fw_major: number | null;
1225
+ fw_minor: number | null;
1226
+ fw_patch: number | null;
1227
+ fw_vendor: string | null;
1228
+ unfinished_backup: boolean | null;
1229
+ no_backup: boolean | null;
1230
+ recovery_mode: boolean | null;
1231
+ capabilities: Capability[];
1232
+ backup_type: BackupType | null;
1233
+ sd_card_present: boolean | null;
1234
+ sd_protection: boolean | null;
1235
+ wipe_code_protection: boolean | null;
1236
+ session_id: string | null;
1237
+ passphrase_always_on_device: boolean | null;
1238
+ safety_checks: SafetyCheckLevel | null;
1239
+ auto_lock_delay_ms: number | null;
1240
+ display_rotation: number | null;
1241
+ experimental_features: boolean | null;
1242
+ };
1243
+ declare type LockDevice = Empty;
1244
+ declare type EndSession = Empty;
1245
+ declare type ApplySettings = {
1246
+ language?: string;
1247
+ label?: string;
1248
+ use_passphrase?: boolean;
1249
+ homescreen?: string;
1250
+ _passphrase_source?: number;
1251
+ auto_lock_delay_ms?: number;
1252
+ display_rotation?: number;
1253
+ passphrase_always_on_device?: boolean;
1254
+ safety_checks?: SafetyCheckLevel;
1255
+ experimental_features?: boolean;
1256
+ };
1257
+ declare type ApplyFlags = {
1258
+ flags: number;
1259
+ };
1260
+ declare type ChangePin = {
1261
+ remove?: boolean;
1262
+ };
1263
+ declare type ChangeWipeCode = {
1264
+ remove?: boolean;
1265
+ };
1266
+ declare enum SdProtectOperationType {
1267
+ DISABLE = 0,
1268
+ ENABLE = 1,
1269
+ REFRESH = 2
1270
+ }
1271
+ declare type SdProtect = {
1272
+ operation: SdProtectOperationType;
1273
+ };
1274
+ declare type Ping = {
1275
+ message?: string;
1276
+ button_protection?: boolean;
1277
+ };
1278
+ declare type Cancel = Empty;
1279
+ declare type GetEntropy = {
1280
+ size: number;
1281
+ };
1282
+ declare type Entropy = {
1283
+ entropy: string;
1284
+ };
1285
+ declare type GetFirmwareHash = {
1286
+ challenge?: string;
1287
+ };
1288
+ declare type FirmwareHash = {
1289
+ hash: string;
1290
+ };
1291
+ declare type GetFirmware = Empty;
1292
+ declare type FirmwareChunk = {
1293
+ chunk: string;
1294
+ };
1295
+ declare type FirmwareChunkAck = Empty;
1296
+ declare type WipeDevice = Empty;
1297
+ declare type ResetDevice = {
1298
+ display_random?: boolean;
1299
+ strength?: number;
1300
+ passphrase_protection?: boolean;
1301
+ pin_protection?: boolean;
1302
+ language?: string;
1303
+ label?: string;
1304
+ u2f_counter?: number;
1305
+ skip_backup?: boolean;
1306
+ no_backup?: boolean;
1307
+ backup_type?: string | number;
1308
+ };
1309
+ declare type BackupDevice = Empty;
1310
+ declare type EntropyRequest = Empty;
1311
+ declare type EntropyAck = {
1312
+ entropy: string;
1313
+ };
1314
+ declare enum RecoveryDeviceType {
1315
+ RecoveryDeviceType_ScrambledWords = 0,
1316
+ RecoveryDeviceType_Matrix = 1
1317
+ }
1318
+ declare type RecoveryDevice = {
1319
+ word_count?: number;
1320
+ passphrase_protection?: boolean;
1321
+ pin_protection?: boolean;
1322
+ language?: string;
1323
+ label?: string;
1324
+ enforce_wordlist?: boolean;
1325
+ type?: RecoveryDeviceType;
1326
+ u2f_counter?: number;
1327
+ dry_run?: boolean;
1328
+ };
1329
+ declare enum Enum_WordRequestType {
1330
+ WordRequestType_Plain = 0,
1331
+ WordRequestType_Matrix9 = 1,
1332
+ WordRequestType_Matrix6 = 2
1333
+ }
1334
+ declare type WordRequestType = keyof typeof Enum_WordRequestType;
1335
+ declare type WordRequest = {
1336
+ type: WordRequestType;
1337
+ };
1338
+ declare type WordAck = {
1339
+ word: string;
1340
+ };
1341
+ declare type SetU2FCounter = {
1342
+ u2f_counter: number;
1343
+ };
1344
+ declare type GetNextU2FCounter = Empty;
1345
+ declare type NextU2FCounter = {
1346
+ u2f_counter: number;
1347
+ };
1348
+ declare type DoPreauthorized = Empty;
1349
+ declare type PreauthorizedRequest = Empty;
1350
+ declare type CancelAuthorization = Empty;
1351
+ declare type BixinReboot = Empty;
1352
+ declare type RebootToBootloader = Empty;
1353
+ declare type GetNonce = Empty;
1354
+ declare type Nonce = {
1355
+ nonce: string;
1356
+ };
1357
+ declare type NEMGetAddress = {
1358
+ address_n: number[];
1359
+ network?: number;
1360
+ show_display?: boolean;
1361
+ };
1362
+ declare type NEMAddress = {
1363
+ address: string;
1364
+ };
1365
+ declare type NEMTransactionCommon = {
1366
+ address_n?: number[];
1367
+ network?: number;
1368
+ timestamp: number;
1369
+ fee: UintType;
1370
+ deadline: number;
1371
+ signer?: string;
1372
+ };
1373
+ declare type NEMMosaic = {
1374
+ namespace: string;
1375
+ mosaic: string;
1376
+ quantity: number;
1377
+ };
1378
+ declare type NEMTransfer = {
1379
+ recipient: string;
1380
+ amount: UintType;
1381
+ payload?: string;
1382
+ public_key?: string;
1383
+ mosaics?: NEMMosaic[];
1384
+ };
1385
+ declare type NEMProvisionNamespace = {
1386
+ namespace: string;
1387
+ parent?: string;
1388
+ sink: string;
1389
+ fee: UintType;
1390
+ };
1391
+ declare enum NEMMosaicLevy {
1392
+ MosaicLevy_Absolute = 1,
1393
+ MosaicLevy_Percentile = 2
1394
+ }
1395
+ declare type NEMMosaicDefinition = {
1396
+ name?: string;
1397
+ ticker?: string;
1398
+ namespace: string;
1399
+ mosaic: string;
1400
+ divisibility?: number;
1401
+ levy?: NEMMosaicLevy;
1402
+ fee?: UintType;
1403
+ levy_address?: string;
1404
+ levy_namespace?: string;
1405
+ levy_mosaic?: string;
1406
+ supply?: number;
1407
+ mutable_supply?: boolean;
1408
+ transferable?: boolean;
1409
+ description: string;
1410
+ networks?: number[];
1411
+ };
1412
+ declare type NEMMosaicCreation = {
1413
+ definition: NEMMosaicDefinition;
1414
+ sink: string;
1415
+ fee: UintType;
1416
+ };
1417
+ declare enum NEMSupplyChangeType {
1418
+ SupplyChange_Increase = 1,
1419
+ SupplyChange_Decrease = 2
1420
+ }
1421
+ declare type NEMMosaicSupplyChange = {
1422
+ namespace: string;
1423
+ mosaic: string;
1424
+ type: NEMSupplyChangeType;
1425
+ delta: number;
1426
+ };
1427
+ declare enum NEMModificationType {
1428
+ CosignatoryModification_Add = 1,
1429
+ CosignatoryModification_Delete = 2
1430
+ }
1431
+ declare type NEMCosignatoryModification = {
1432
+ type: NEMModificationType;
1433
+ public_key: string;
1434
+ };
1435
+ declare type NEMAggregateModification = {
1436
+ modifications?: NEMCosignatoryModification[];
1437
+ relative_change?: number;
1438
+ };
1439
+ declare enum NEMImportanceTransferMode {
1440
+ ImportanceTransfer_Activate = 1,
1441
+ ImportanceTransfer_Deactivate = 2
1442
+ }
1443
+ declare type NEMImportanceTransfer = {
1444
+ mode: NEMImportanceTransferMode;
1445
+ public_key: string;
1446
+ };
1447
+ declare type NEMSignTx = {
1448
+ transaction: NEMTransactionCommon;
1449
+ multisig?: NEMTransactionCommon;
1450
+ transfer?: NEMTransfer;
1451
+ cosigning?: boolean;
1452
+ provision_namespace?: NEMProvisionNamespace;
1453
+ mosaic_creation?: NEMMosaicCreation;
1454
+ supply_change?: NEMMosaicSupplyChange;
1455
+ aggregate_modification?: NEMAggregateModification;
1456
+ importance_transfer?: NEMImportanceTransfer;
1457
+ };
1458
+ declare type NEMSignedTx = {
1459
+ data: string;
1460
+ signature: string;
1461
+ };
1462
+ declare type NEMDecryptMessage = {
1463
+ address_n: number[];
1464
+ network?: number;
1465
+ public_key?: string;
1466
+ payload?: string;
1467
+ };
1468
+ declare type NEMDecryptedMessage = {
1469
+ payload: string;
1470
+ };
1471
+ declare type RippleGetAddress = {
1472
+ address_n: number[];
1473
+ show_display?: boolean;
1474
+ };
1475
+ declare type RippleAddress = {
1476
+ address: string;
1477
+ };
1478
+ declare type RipplePayment = {
1479
+ amount: UintType;
1480
+ destination: string;
1481
+ destination_tag?: number;
1482
+ };
1483
+ declare type RippleSignTx = {
1484
+ address_n: number[];
1485
+ fee: UintType;
1486
+ flags?: number;
1487
+ sequence: number;
1488
+ last_ledger_sequence?: number;
1489
+ payment: RipplePayment;
1490
+ };
1491
+ declare type RippleSignedTx = {
1492
+ signature: string;
1493
+ serialized_tx: string;
1494
+ };
1495
+ declare enum StellarAssetType {
1496
+ NATIVE = 0,
1497
+ ALPHANUM4 = 1,
1498
+ ALPHANUM12 = 2
1499
+ }
1500
+ declare type StellarAsset = {
1501
+ type: StellarAssetType;
1502
+ code?: string;
1503
+ issuer?: string;
1504
+ };
1505
+ declare type StellarGetAddress = {
1506
+ address_n: number[];
1507
+ show_display?: boolean;
1508
+ };
1509
+ declare type StellarAddress = {
1510
+ address: string;
1511
+ };
1512
+ declare enum StellarMemoType {
1513
+ NONE = 0,
1514
+ TEXT = 1,
1515
+ ID = 2,
1516
+ HASH = 3,
1517
+ RETURN = 4
1518
+ }
1519
+ declare type StellarSignTx = {
1520
+ address_n: number[];
1521
+ network_passphrase: string;
1522
+ source_account: string;
1523
+ fee: UintType;
1524
+ sequence_number: UintType;
1525
+ timebounds_start: number;
1526
+ timebounds_end: number;
1527
+ memo_type: StellarMemoType;
1528
+ memo_text?: string;
1529
+ memo_id?: string;
1530
+ memo_hash?: Buffer | string;
1531
+ num_operations: number;
1532
+ };
1533
+ declare type StellarTxOpRequest = Empty;
1534
+ declare type StellarPaymentOp = {
1535
+ source_account?: string;
1536
+ destination_account: string;
1537
+ asset: StellarAsset;
1538
+ amount: UintType;
1539
+ };
1540
+ declare type StellarCreateAccountOp = {
1541
+ source_account?: string;
1542
+ new_account: string;
1543
+ starting_balance: UintType;
1544
+ };
1545
+ declare type StellarPathPaymentStrictReceiveOp = {
1546
+ source_account?: string;
1547
+ send_asset: StellarAsset;
1548
+ send_max: UintType;
1549
+ destination_account: string;
1550
+ destination_asset: StellarAsset;
1551
+ destination_amount: UintType;
1552
+ paths?: StellarAsset[];
1553
+ };
1554
+ declare type StellarPathPaymentStrictSendOp = {
1555
+ source_account?: string;
1556
+ send_asset: StellarAsset;
1557
+ send_amount: UintType;
1558
+ destination_account: string;
1559
+ destination_asset: StellarAsset;
1560
+ destination_min: UintType;
1561
+ paths?: StellarAsset[];
1562
+ };
1563
+ declare type StellarManageSellOfferOp = {
1564
+ source_account?: string;
1565
+ selling_asset: StellarAsset;
1566
+ buying_asset: StellarAsset;
1567
+ amount: UintType;
1568
+ price_n: number;
1569
+ price_d: number;
1570
+ offer_id: UintType;
1571
+ };
1572
+ declare type StellarManageBuyOfferOp = {
1573
+ source_account?: string;
1574
+ selling_asset: StellarAsset;
1575
+ buying_asset: StellarAsset;
1576
+ amount: UintType;
1577
+ price_n: number;
1578
+ price_d: number;
1579
+ offer_id: UintType;
1580
+ };
1581
+ declare type StellarCreatePassiveSellOfferOp = {
1582
+ source_account?: string;
1583
+ selling_asset: StellarAsset;
1584
+ buying_asset: StellarAsset;
1585
+ amount: UintType;
1586
+ price_n: number;
1587
+ price_d: number;
1588
+ };
1589
+ declare enum StellarSignerType {
1590
+ ACCOUNT = 0,
1591
+ PRE_AUTH = 1,
1592
+ HASH = 2
1593
+ }
1594
+ declare type StellarSetOptionsOp = {
1595
+ source_account?: string;
1596
+ inflation_destination_account?: string;
1597
+ clear_flags?: number;
1598
+ set_flags?: number;
1599
+ master_weight?: UintType;
1600
+ low_threshold?: UintType;
1601
+ medium_threshold?: UintType;
1602
+ high_threshold?: UintType;
1603
+ home_domain?: string;
1604
+ signer_type?: StellarSignerType;
1605
+ signer_key?: Buffer | string;
1606
+ signer_weight?: number;
1607
+ };
1608
+ declare type StellarChangeTrustOp = {
1609
+ source_account?: string;
1610
+ asset: StellarAsset;
1611
+ limit: UintType;
1612
+ };
1613
+ declare type StellarAllowTrustOp = {
1614
+ source_account?: string;
1615
+ trusted_account: string;
1616
+ asset_type: StellarAssetType;
1617
+ asset_code?: string;
1618
+ is_authorized: boolean;
1619
+ };
1620
+ declare type StellarAccountMergeOp = {
1621
+ source_account?: string;
1622
+ destination_account: string;
1623
+ };
1624
+ declare type StellarManageDataOp = {
1625
+ source_account?: string;
1626
+ key: string;
1627
+ value?: Buffer | string;
1628
+ };
1629
+ declare type StellarBumpSequenceOp = {
1630
+ source_account?: string;
1631
+ bump_to: UintType;
1632
+ };
1633
+ declare type StellarSignedTx = {
1634
+ public_key: string;
1635
+ signature: string;
1636
+ };
1637
+ declare type TezosGetAddress = {
1638
+ address_n: number[];
1639
+ show_display?: boolean;
1640
+ };
1641
+ declare type TezosAddress = {
1642
+ address: string;
1643
+ };
1644
+ declare type TezosGetPublicKey = {
1645
+ address_n: number[];
1646
+ show_display?: boolean;
1647
+ };
1648
+ declare type TezosPublicKey = {
1649
+ public_key: string;
1650
+ };
1651
+ declare enum TezosContractType {
1652
+ Implicit = 0,
1653
+ Originated = 1
1654
+ }
1655
+ declare type TezosContractID = {
1656
+ tag: number;
1657
+ hash: Uint8Array;
1658
+ };
1659
+ declare type TezosRevealOp = {
1660
+ source: Uint8Array;
1661
+ fee: UintType;
1662
+ counter: number;
1663
+ gas_limit: number;
1664
+ storage_limit: number;
1665
+ public_key: Uint8Array;
1666
+ };
1667
+ declare type TezosManagerTransfer = {
1668
+ destination: TezosContractID;
1669
+ amount: UintType;
1670
+ };
1671
+ declare type TezosParametersManager = {
1672
+ set_delegate?: Uint8Array;
1673
+ cancel_delegate?: boolean;
1674
+ transfer?: TezosManagerTransfer;
1675
+ };
1676
+ declare type TezosTransactionOp = {
1677
+ source: Uint8Array;
1678
+ fee: UintType;
1679
+ counter: number;
1680
+ gas_limit: number;
1681
+ storage_limit: number;
1682
+ amount: UintType;
1683
+ destination: TezosContractID;
1684
+ parameters?: number[];
1685
+ parameters_manager?: TezosParametersManager;
1686
+ };
1687
+ declare type TezosOriginationOp = {
1688
+ source: Uint8Array;
1689
+ fee: UintType;
1690
+ counter: number;
1691
+ gas_limit: number;
1692
+ storage_limit: number;
1693
+ manager_pubkey?: string;
1694
+ balance: number;
1695
+ spendable?: boolean;
1696
+ delegatable?: boolean;
1697
+ delegate?: Uint8Array;
1698
+ script: string | number[];
1699
+ };
1700
+ declare type TezosDelegationOp = {
1701
+ source: Uint8Array;
1702
+ fee: UintType;
1703
+ counter: number;
1704
+ gas_limit: number;
1705
+ storage_limit: number;
1706
+ delegate: Uint8Array;
1707
+ };
1708
+ declare type TezosProposalOp = {
1709
+ source: string;
1710
+ period: number;
1711
+ proposals: string[];
1712
+ };
1713
+ declare enum TezosBallotType {
1714
+ Yay = 0,
1715
+ Nay = 1,
1716
+ Pass = 2
1717
+ }
1718
+ declare type TezosBallotOp = {
1719
+ source: string;
1720
+ period: number;
1721
+ proposal: string;
1722
+ ballot: TezosBallotType;
1723
+ };
1724
+ declare type TezosSignTx = {
1725
+ address_n: number[];
1726
+ branch: Uint8Array;
1727
+ reveal?: TezosRevealOp;
1728
+ transaction?: TezosTransactionOp;
1729
+ origination?: TezosOriginationOp;
1730
+ delegation?: TezosDelegationOp;
1731
+ proposal?: TezosProposalOp;
1732
+ ballot?: TezosBallotOp;
1733
+ };
1734
+ declare type TezosSignedTx = {
1735
+ signature: string;
1736
+ sig_op_contents: string;
1737
+ operation_hash: string;
1738
+ };
1739
+ declare type MessageType = {
1740
+ BinanceGetAddress: BinanceGetAddress;
1741
+ BinanceAddress: BinanceAddress;
1742
+ BinanceGetPublicKey: BinanceGetPublicKey;
1743
+ BinancePublicKey: BinancePublicKey;
1744
+ BinanceSignTx: BinanceSignTx;
1745
+ BinanceTxRequest: BinanceTxRequest;
1746
+ BinanceCoin: BinanceCoin;
1747
+ BinanceInputOutput: BinanceInputOutput;
1748
+ BinanceTransferMsg: BinanceTransferMsg;
1749
+ BinanceOrderMsg: BinanceOrderMsg;
1750
+ BinanceCancelMsg: BinanceCancelMsg;
1751
+ BinanceSignedTx: BinanceSignedTx;
1752
+ HDNodeType: HDNodeType;
1753
+ HDNodePathType: HDNodePathType;
1754
+ MultisigRedeemScriptType: MultisigRedeemScriptType;
1755
+ GetPublicKey: GetPublicKey;
1756
+ PublicKey: PublicKey;
1757
+ GetAddress: GetAddress;
1758
+ Address: Address;
1759
+ GetOwnershipId: GetOwnershipId;
1760
+ OwnershipId: OwnershipId;
1761
+ SignMessage: SignMessage;
1762
+ MessageSignature: MessageSignature;
1763
+ VerifyMessage: VerifyMessage;
1764
+ SignTx: SignTx;
1765
+ TxRequestDetailsType: TxRequestDetailsType;
1766
+ TxRequestSerializedType: TxRequestSerializedType;
1767
+ TxRequest: TxRequest;
1768
+ TxInputType: TxInputType;
1769
+ TxOutputBinType: TxOutputBinType;
1770
+ TxOutputType: TxOutputType;
1771
+ PrevTx: PrevTx;
1772
+ PrevInput: PrevInput;
1773
+ PrevOutput: PrevOutput;
1774
+ TextMemo: TextMemo;
1775
+ RefundMemo: RefundMemo;
1776
+ CoinPurchaseMemo: CoinPurchaseMemo;
1777
+ PaymentRequestMemo: PaymentRequestMemo;
1778
+ TxAckPaymentRequest: TxAckPaymentRequest;
1779
+ TxAck: TxAck;
1780
+ TxAckInputWrapper: TxAckInputWrapper;
1781
+ TxAckInput: TxAckInput;
1782
+ TxAckOutputWrapper: TxAckOutputWrapper;
1783
+ TxAckOutput: TxAckOutput;
1784
+ TxAckPrevMeta: TxAckPrevMeta;
1785
+ TxAckPrevInputWrapper: TxAckPrevInputWrapper;
1786
+ TxAckPrevInput: TxAckPrevInput;
1787
+ TxAckPrevOutputWrapper: TxAckPrevOutputWrapper;
1788
+ TxAckPrevOutput: TxAckPrevOutput;
1789
+ TxAckPrevExtraDataWrapper: TxAckPrevExtraDataWrapper;
1790
+ TxAckPrevExtraData: TxAckPrevExtraData;
1791
+ GetOwnershipProof: GetOwnershipProof;
1792
+ OwnershipProof: OwnershipProof;
1793
+ AuthorizeCoinJoin: AuthorizeCoinJoin;
1794
+ FirmwareErase: FirmwareErase;
1795
+ FirmwareRequest: FirmwareRequest;
1796
+ FirmwareUpload: FirmwareUpload;
1797
+ SelfTest: SelfTest;
1798
+ CardanoBlockchainPointerType: CardanoBlockchainPointerType;
1799
+ CardanoNativeScript: CardanoNativeScript;
1800
+ CardanoGetNativeScriptHash: CardanoGetNativeScriptHash;
1801
+ CardanoNativeScriptHash: CardanoNativeScriptHash;
1802
+ CardanoAddressParametersType: CardanoAddressParametersType;
1803
+ CardanoGetAddress: CardanoGetAddress;
1804
+ CardanoAddress: CardanoAddress;
1805
+ CardanoGetPublicKey: CardanoGetPublicKey;
1806
+ CardanoPublicKey: CardanoPublicKey;
1807
+ CardanoSignTxInit: CardanoSignTxInit;
1808
+ CardanoTxInput: CardanoTxInput;
1809
+ CardanoTxOutput: CardanoTxOutput;
1810
+ CardanoAssetGroup: CardanoAssetGroup;
1811
+ CardanoToken: CardanoToken;
1812
+ CardanoPoolOwner: CardanoPoolOwner;
1813
+ CardanoPoolRelayParameters: CardanoPoolRelayParameters;
1814
+ CardanoPoolMetadataType: CardanoPoolMetadataType;
1815
+ CardanoPoolParametersType: CardanoPoolParametersType;
1816
+ CardanoTxCertificate: CardanoTxCertificate;
1817
+ CardanoTxWithdrawal: CardanoTxWithdrawal;
1818
+ CardanoCatalystRegistrationParametersType: CardanoCatalystRegistrationParametersType;
1819
+ CardanoTxAuxiliaryData: CardanoTxAuxiliaryData;
1820
+ CardanoTxMint: CardanoTxMint;
1821
+ CardanoTxCollateralInput: CardanoTxCollateralInput;
1822
+ CardanoTxRequiredSigner: CardanoTxRequiredSigner;
1823
+ CardanoTxItemAck: CardanoTxItemAck;
1824
+ CardanoTxAuxiliaryDataSupplement: CardanoTxAuxiliaryDataSupplement;
1825
+ CardanoTxWitnessRequest: CardanoTxWitnessRequest;
1826
+ CardanoTxWitnessResponse: CardanoTxWitnessResponse;
1827
+ CardanoTxHostAck: CardanoTxHostAck;
1828
+ CardanoTxBodyHash: CardanoTxBodyHash;
1829
+ CardanoSignTxFinished: CardanoSignTxFinished;
1830
+ CardanoTxInputType: CardanoTxInputType;
1831
+ CardanoTokenType: CardanoTokenType;
1832
+ CardanoAssetGroupType: CardanoAssetGroupType;
1833
+ CardanoTxOutputType: CardanoTxOutputType;
1834
+ CardanoPoolOwnerType: CardanoPoolOwnerType;
1835
+ CardanoPoolRelayParametersType: CardanoPoolRelayParametersType;
1836
+ CardanoTxCertificateType: CardanoTxCertificateType;
1837
+ CardanoTxWithdrawalType: CardanoTxWithdrawalType;
1838
+ CardanoTxAuxiliaryDataType: CardanoTxAuxiliaryDataType;
1839
+ CardanoSignTx: CardanoSignTx;
1840
+ CardanoSignedTxChunk: CardanoSignedTxChunk;
1841
+ CardanoSignedTxChunkAck: CardanoSignedTxChunkAck;
1842
+ CardanoSignedTx: CardanoSignedTx;
1843
+ Success: Success;
1844
+ Failure: Failure;
1845
+ ButtonRequest: ButtonRequest;
1846
+ ButtonAck: ButtonAck;
1847
+ PinMatrixRequest: PinMatrixRequest;
1848
+ PinMatrixAck: PinMatrixAck;
1849
+ PassphraseRequest: PassphraseRequest;
1850
+ PassphraseAck: PassphraseAck;
1851
+ Deprecated_PassphraseStateRequest: Deprecated_PassphraseStateRequest;
1852
+ Deprecated_PassphraseStateAck: Deprecated_PassphraseStateAck;
1853
+ CipherKeyValue: CipherKeyValue;
1854
+ CipheredKeyValue: CipheredKeyValue;
1855
+ IdentityType: IdentityType;
1856
+ SignIdentity: SignIdentity;
1857
+ SignedIdentity: SignedIdentity;
1858
+ GetECDHSessionKey: GetECDHSessionKey;
1859
+ ECDHSessionKey: ECDHSessionKey;
1860
+ EosGetPublicKey: EosGetPublicKey;
1861
+ EosPublicKey: EosPublicKey;
1862
+ EosTxHeader: EosTxHeader;
1863
+ EosSignTx: EosSignTx;
1864
+ EosTxActionRequest: EosTxActionRequest;
1865
+ EosAsset: EosAsset;
1866
+ EosPermissionLevel: EosPermissionLevel;
1867
+ EosAuthorizationKey: EosAuthorizationKey;
1868
+ EosAuthorizationAccount: EosAuthorizationAccount;
1869
+ EosAuthorizationWait: EosAuthorizationWait;
1870
+ EosAuthorization: EosAuthorization;
1871
+ EosActionCommon: EosActionCommon;
1872
+ EosActionTransfer: EosActionTransfer;
1873
+ EosActionDelegate: EosActionDelegate;
1874
+ EosActionUndelegate: EosActionUndelegate;
1875
+ EosActionRefund: EosActionRefund;
1876
+ EosActionBuyRam: EosActionBuyRam;
1877
+ EosActionBuyRamBytes: EosActionBuyRamBytes;
1878
+ EosActionSellRam: EosActionSellRam;
1879
+ EosActionVoteProducer: EosActionVoteProducer;
1880
+ EosActionUpdateAuth: EosActionUpdateAuth;
1881
+ EosActionDeleteAuth: EosActionDeleteAuth;
1882
+ EosActionLinkAuth: EosActionLinkAuth;
1883
+ EosActionUnlinkAuth: EosActionUnlinkAuth;
1884
+ EosActionNewAccount: EosActionNewAccount;
1885
+ EosActionUnknown: EosActionUnknown;
1886
+ EosTxActionAck: EosTxActionAck;
1887
+ EosSignedTx: EosSignedTx;
1888
+ EthereumSignTypedData: EthereumSignTypedData;
1889
+ EthereumTypedDataStructRequest: EthereumTypedDataStructRequest;
1890
+ EthereumFieldType: EthereumFieldType;
1891
+ EthereumStructMember: EthereumStructMember;
1892
+ EthereumTypedDataStructAck: EthereumTypedDataStructAck;
1893
+ EthereumTypedDataValueRequest: EthereumTypedDataValueRequest;
1894
+ EthereumTypedDataValueAck: EthereumTypedDataValueAck;
1895
+ EthereumGetPublicKey: EthereumGetPublicKey;
1896
+ EthereumPublicKey: EthereumPublicKey;
1897
+ EthereumGetAddress: EthereumGetAddress;
1898
+ EthereumAddress: EthereumAddress;
1899
+ EthereumSignTx: EthereumSignTx;
1900
+ EthereumAccessList: EthereumAccessList;
1901
+ EthereumSignTxEIP1559: EthereumSignTxEIP1559;
1902
+ EthereumTxRequest: EthereumTxRequest;
1903
+ EthereumTxAck: EthereumTxAck;
1904
+ EthereumSignMessage: EthereumSignMessage;
1905
+ EthereumSignMessageEIP712: EthereumSignMessageEIP712;
1906
+ EthereumMessageSignature: EthereumMessageSignature;
1907
+ EthereumVerifyMessage: EthereumVerifyMessage;
1908
+ EthereumSignTypedHash: EthereumSignTypedHash;
1909
+ EthereumTypedDataSignature: EthereumTypedDataSignature;
1910
+ Initialize: Initialize;
1911
+ GetFeatures: GetFeatures;
1912
+ Features: Features;
1913
+ LockDevice: LockDevice;
1914
+ EndSession: EndSession;
1915
+ ApplySettings: ApplySettings;
1916
+ ApplyFlags: ApplyFlags;
1917
+ ChangePin: ChangePin;
1918
+ ChangeWipeCode: ChangeWipeCode;
1919
+ SdProtect: SdProtect;
1920
+ Ping: Ping;
1921
+ Cancel: Cancel;
1922
+ GetEntropy: GetEntropy;
1923
+ Entropy: Entropy;
1924
+ GetFirmwareHash: GetFirmwareHash;
1925
+ FirmwareHash: FirmwareHash;
1926
+ GetFirmware: GetFirmware;
1927
+ FirmwareChunk: FirmwareChunk;
1928
+ FirmwareChunkAck: FirmwareChunkAck;
1929
+ WipeDevice: WipeDevice;
1930
+ ResetDevice: ResetDevice;
1931
+ BackupDevice: BackupDevice;
1932
+ EntropyRequest: EntropyRequest;
1933
+ EntropyAck: EntropyAck;
1934
+ RecoveryDevice: RecoveryDevice;
1935
+ WordRequest: WordRequest;
1936
+ WordAck: WordAck;
1937
+ SetU2FCounter: SetU2FCounter;
1938
+ GetNextU2FCounter: GetNextU2FCounter;
1939
+ NextU2FCounter: NextU2FCounter;
1940
+ DoPreauthorized: DoPreauthorized;
1941
+ PreauthorizedRequest: PreauthorizedRequest;
1942
+ CancelAuthorization: CancelAuthorization;
1943
+ BixinReboot: BixinReboot;
1944
+ RebootToBootloader: RebootToBootloader;
1945
+ GetNonce: GetNonce;
1946
+ Nonce: Nonce;
1947
+ NEMGetAddress: NEMGetAddress;
1948
+ NEMAddress: NEMAddress;
1949
+ NEMTransactionCommon: NEMTransactionCommon;
1950
+ NEMMosaic: NEMMosaic;
1951
+ NEMTransfer: NEMTransfer;
1952
+ NEMProvisionNamespace: NEMProvisionNamespace;
1953
+ NEMMosaicDefinition: NEMMosaicDefinition;
1954
+ NEMMosaicCreation: NEMMosaicCreation;
1955
+ NEMMosaicSupplyChange: NEMMosaicSupplyChange;
1956
+ NEMCosignatoryModification: NEMCosignatoryModification;
1957
+ NEMAggregateModification: NEMAggregateModification;
1958
+ NEMImportanceTransfer: NEMImportanceTransfer;
1959
+ NEMSignTx: NEMSignTx;
1960
+ NEMSignedTx: NEMSignedTx;
1961
+ NEMDecryptMessage: NEMDecryptMessage;
1962
+ NEMDecryptedMessage: NEMDecryptedMessage;
1963
+ RippleGetAddress: RippleGetAddress;
1964
+ RippleAddress: RippleAddress;
1965
+ RipplePayment: RipplePayment;
1966
+ RippleSignTx: RippleSignTx;
1967
+ RippleSignedTx: RippleSignedTx;
1968
+ StellarAsset: StellarAsset;
1969
+ StellarGetAddress: StellarGetAddress;
1970
+ StellarAddress: StellarAddress;
1971
+ StellarSignTx: StellarSignTx;
1972
+ StellarTxOpRequest: StellarTxOpRequest;
1973
+ StellarPaymentOp: StellarPaymentOp;
1974
+ StellarCreateAccountOp: StellarCreateAccountOp;
1975
+ StellarPathPaymentStrictReceiveOp: StellarPathPaymentStrictReceiveOp;
1976
+ StellarPathPaymentStrictSendOp: StellarPathPaymentStrictSendOp;
1977
+ StellarManageSellOfferOp: StellarManageSellOfferOp;
1978
+ StellarManageBuyOfferOp: StellarManageBuyOfferOp;
1979
+ StellarCreatePassiveSellOfferOp: StellarCreatePassiveSellOfferOp;
1980
+ StellarSetOptionsOp: StellarSetOptionsOp;
1981
+ StellarChangeTrustOp: StellarChangeTrustOp;
1982
+ StellarAllowTrustOp: StellarAllowTrustOp;
1983
+ StellarAccountMergeOp: StellarAccountMergeOp;
1984
+ StellarManageDataOp: StellarManageDataOp;
1985
+ StellarBumpSequenceOp: StellarBumpSequenceOp;
1986
+ StellarSignedTx: StellarSignedTx;
1987
+ TezosGetAddress: TezosGetAddress;
1988
+ TezosAddress: TezosAddress;
1989
+ TezosGetPublicKey: TezosGetPublicKey;
1990
+ TezosPublicKey: TezosPublicKey;
1991
+ TezosContractID: TezosContractID;
1992
+ TezosRevealOp: TezosRevealOp;
1993
+ TezosManagerTransfer: TezosManagerTransfer;
1994
+ TezosParametersManager: TezosParametersManager;
1995
+ TezosTransactionOp: TezosTransactionOp;
1996
+ TezosOriginationOp: TezosOriginationOp;
1997
+ TezosDelegationOp: TezosDelegationOp;
1998
+ TezosProposalOp: TezosProposalOp;
1999
+ TezosBallotOp: TezosBallotOp;
2000
+ TezosSignTx: TezosSignTx;
2001
+ TezosSignedTx: TezosSignedTx;
2002
+ };
2003
+ declare type MessageKey = keyof MessageType;
2004
+ declare type MessageResponse<T extends MessageKey> = {
2005
+ type: T;
2006
+ message: MessageType[T];
2007
+ };
2008
+ declare type TypedCall = <T extends MessageKey, R extends MessageKey>(type: T, resType: R, message?: MessageType[T]) => Promise<MessageResponse<R>>;
2009
+
2010
+ type messages_UintType = UintType;
2011
+ type messages_BinanceGetAddress = BinanceGetAddress;
2012
+ type messages_BinanceAddress = BinanceAddress;
2013
+ type messages_BinanceGetPublicKey = BinanceGetPublicKey;
2014
+ type messages_BinancePublicKey = BinancePublicKey;
2015
+ type messages_BinanceSignTx = BinanceSignTx;
2016
+ type messages_BinanceTxRequest = BinanceTxRequest;
2017
+ type messages_BinanceCoin = BinanceCoin;
2018
+ type messages_BinanceInputOutput = BinanceInputOutput;
2019
+ type messages_BinanceTransferMsg = BinanceTransferMsg;
2020
+ type messages_BinanceOrderType = BinanceOrderType;
2021
+ declare const messages_BinanceOrderType: typeof BinanceOrderType;
2022
+ type messages_BinanceOrderSide = BinanceOrderSide;
2023
+ declare const messages_BinanceOrderSide: typeof BinanceOrderSide;
2024
+ type messages_BinanceTimeInForce = BinanceTimeInForce;
2025
+ declare const messages_BinanceTimeInForce: typeof BinanceTimeInForce;
2026
+ type messages_BinanceOrderMsg = BinanceOrderMsg;
2027
+ type messages_BinanceCancelMsg = BinanceCancelMsg;
2028
+ type messages_BinanceSignedTx = BinanceSignedTx;
2029
+ type messages_Enum_InputScriptType = Enum_InputScriptType;
2030
+ declare const messages_Enum_InputScriptType: typeof Enum_InputScriptType;
2031
+ type messages_InputScriptType = InputScriptType;
2032
+ type messages_Enum_OutputScriptType = Enum_OutputScriptType;
2033
+ declare const messages_Enum_OutputScriptType: typeof Enum_OutputScriptType;
2034
+ type messages_OutputScriptType = OutputScriptType;
2035
+ type messages_DecredStakingSpendType = DecredStakingSpendType;
2036
+ declare const messages_DecredStakingSpendType: typeof DecredStakingSpendType;
2037
+ type messages_AmountUnit = AmountUnit;
2038
+ declare const messages_AmountUnit: typeof AmountUnit;
2039
+ type messages_HDNodeType = HDNodeType;
2040
+ type messages_HDNodePathType = HDNodePathType;
2041
+ type messages_MultisigRedeemScriptType = MultisigRedeemScriptType;
2042
+ type messages_GetPublicKey = GetPublicKey;
2043
+ type messages_PublicKey = PublicKey;
2044
+ type messages_GetAddress = GetAddress;
2045
+ type messages_Address = Address;
2046
+ type messages_GetOwnershipId = GetOwnershipId;
2047
+ type messages_OwnershipId = OwnershipId;
2048
+ type messages_SignMessage = SignMessage;
2049
+ type messages_MessageSignature = MessageSignature;
2050
+ type messages_VerifyMessage = VerifyMessage;
2051
+ type messages_SignTx = SignTx;
2052
+ type messages_Enum_RequestType = Enum_RequestType;
2053
+ declare const messages_Enum_RequestType: typeof Enum_RequestType;
2054
+ type messages_RequestType = RequestType;
2055
+ type messages_TxRequestDetailsType = TxRequestDetailsType;
2056
+ type messages_TxRequestSerializedType = TxRequestSerializedType;
2057
+ type messages_TxRequest = TxRequest;
2058
+ type messages_InternalInputScriptType = InternalInputScriptType;
2059
+ type messages_TxInputType = TxInputType;
2060
+ type messages_TxInput = TxInput;
2061
+ type messages_TxOutputBinType = TxOutputBinType;
2062
+ type messages_ChangeOutputScriptType = ChangeOutputScriptType;
2063
+ type messages_TxOutputType = TxOutputType;
2064
+ type messages_TxOutput = TxOutput;
2065
+ type messages_PrevTx = PrevTx;
2066
+ type messages_PrevInput = PrevInput;
2067
+ type messages_PrevOutput = PrevOutput;
2068
+ type messages_TextMemo = TextMemo;
2069
+ type messages_RefundMemo = RefundMemo;
2070
+ type messages_CoinPurchaseMemo = CoinPurchaseMemo;
2071
+ type messages_PaymentRequestMemo = PaymentRequestMemo;
2072
+ type messages_TxAckPaymentRequest = TxAckPaymentRequest;
2073
+ type messages_TxAckResponse = TxAckResponse;
2074
+ type messages_TxAck = TxAck;
2075
+ type messages_TxAckInputWrapper = TxAckInputWrapper;
2076
+ type messages_TxAckInput = TxAckInput;
2077
+ type messages_TxAckOutputWrapper = TxAckOutputWrapper;
2078
+ type messages_TxAckOutput = TxAckOutput;
2079
+ type messages_TxAckPrevMeta = TxAckPrevMeta;
2080
+ type messages_TxAckPrevInputWrapper = TxAckPrevInputWrapper;
2081
+ type messages_TxAckPrevInput = TxAckPrevInput;
2082
+ type messages_TxAckPrevOutputWrapper = TxAckPrevOutputWrapper;
2083
+ type messages_TxAckPrevOutput = TxAckPrevOutput;
2084
+ type messages_TxAckPrevExtraDataWrapper = TxAckPrevExtraDataWrapper;
2085
+ type messages_TxAckPrevExtraData = TxAckPrevExtraData;
2086
+ type messages_GetOwnershipProof = GetOwnershipProof;
2087
+ type messages_OwnershipProof = OwnershipProof;
2088
+ type messages_AuthorizeCoinJoin = AuthorizeCoinJoin;
2089
+ type messages_FirmwareErase = FirmwareErase;
2090
+ type messages_FirmwareRequest = FirmwareRequest;
2091
+ type messages_FirmwareUpload = FirmwareUpload;
2092
+ type messages_SelfTest = SelfTest;
2093
+ type messages_CardanoDerivationType = CardanoDerivationType;
2094
+ declare const messages_CardanoDerivationType: typeof CardanoDerivationType;
2095
+ type messages_CardanoAddressType = CardanoAddressType;
2096
+ declare const messages_CardanoAddressType: typeof CardanoAddressType;
2097
+ type messages_CardanoNativeScriptType = CardanoNativeScriptType;
2098
+ declare const messages_CardanoNativeScriptType: typeof CardanoNativeScriptType;
2099
+ type messages_CardanoNativeScriptHashDisplayFormat = CardanoNativeScriptHashDisplayFormat;
2100
+ declare const messages_CardanoNativeScriptHashDisplayFormat: typeof CardanoNativeScriptHashDisplayFormat;
2101
+ type messages_CardanoCertificateType = CardanoCertificateType;
2102
+ declare const messages_CardanoCertificateType: typeof CardanoCertificateType;
2103
+ type messages_CardanoPoolRelayType = CardanoPoolRelayType;
2104
+ declare const messages_CardanoPoolRelayType: typeof CardanoPoolRelayType;
2105
+ type messages_CardanoTxAuxiliaryDataSupplementType = CardanoTxAuxiliaryDataSupplementType;
2106
+ declare const messages_CardanoTxAuxiliaryDataSupplementType: typeof CardanoTxAuxiliaryDataSupplementType;
2107
+ type messages_CardanoTxSigningMode = CardanoTxSigningMode;
2108
+ declare const messages_CardanoTxSigningMode: typeof CardanoTxSigningMode;
2109
+ type messages_CardanoTxWitnessType = CardanoTxWitnessType;
2110
+ declare const messages_CardanoTxWitnessType: typeof CardanoTxWitnessType;
2111
+ type messages_CardanoBlockchainPointerType = CardanoBlockchainPointerType;
2112
+ type messages_CardanoNativeScript = CardanoNativeScript;
2113
+ type messages_CardanoGetNativeScriptHash = CardanoGetNativeScriptHash;
2114
+ type messages_CardanoNativeScriptHash = CardanoNativeScriptHash;
2115
+ type messages_CardanoAddressParametersType = CardanoAddressParametersType;
2116
+ type messages_CardanoGetAddress = CardanoGetAddress;
2117
+ type messages_CardanoAddress = CardanoAddress;
2118
+ type messages_CardanoGetPublicKey = CardanoGetPublicKey;
2119
+ type messages_CardanoPublicKey = CardanoPublicKey;
2120
+ type messages_CardanoSignTxInit = CardanoSignTxInit;
2121
+ type messages_CardanoTxInput = CardanoTxInput;
2122
+ type messages_CardanoTxOutput = CardanoTxOutput;
2123
+ type messages_CardanoAssetGroup = CardanoAssetGroup;
2124
+ type messages_CardanoToken = CardanoToken;
2125
+ type messages_CardanoPoolOwner = CardanoPoolOwner;
2126
+ type messages_CardanoPoolRelayParameters = CardanoPoolRelayParameters;
2127
+ type messages_CardanoPoolMetadataType = CardanoPoolMetadataType;
2128
+ type messages_CardanoPoolParametersType = CardanoPoolParametersType;
2129
+ type messages_CardanoTxCertificate = CardanoTxCertificate;
2130
+ type messages_CardanoTxWithdrawal = CardanoTxWithdrawal;
2131
+ type messages_CardanoCatalystRegistrationParametersType = CardanoCatalystRegistrationParametersType;
2132
+ type messages_CardanoTxAuxiliaryData = CardanoTxAuxiliaryData;
2133
+ type messages_CardanoTxMint = CardanoTxMint;
2134
+ type messages_CardanoTxCollateralInput = CardanoTxCollateralInput;
2135
+ type messages_CardanoTxRequiredSigner = CardanoTxRequiredSigner;
2136
+ type messages_CardanoTxItemAck = CardanoTxItemAck;
2137
+ type messages_CardanoTxAuxiliaryDataSupplement = CardanoTxAuxiliaryDataSupplement;
2138
+ type messages_CardanoTxWitnessRequest = CardanoTxWitnessRequest;
2139
+ type messages_CardanoTxWitnessResponse = CardanoTxWitnessResponse;
2140
+ type messages_CardanoTxHostAck = CardanoTxHostAck;
2141
+ type messages_CardanoTxBodyHash = CardanoTxBodyHash;
2142
+ type messages_CardanoSignTxFinished = CardanoSignTxFinished;
2143
+ type messages_CardanoTxInputType = CardanoTxInputType;
2144
+ type messages_CardanoTokenType = CardanoTokenType;
2145
+ type messages_CardanoAssetGroupType = CardanoAssetGroupType;
2146
+ type messages_CardanoTxOutputType = CardanoTxOutputType;
2147
+ type messages_CardanoPoolOwnerType = CardanoPoolOwnerType;
2148
+ type messages_CardanoPoolRelayParametersType = CardanoPoolRelayParametersType;
2149
+ type messages_CardanoTxCertificateType = CardanoTxCertificateType;
2150
+ type messages_CardanoTxWithdrawalType = CardanoTxWithdrawalType;
2151
+ type messages_CardanoTxAuxiliaryDataType = CardanoTxAuxiliaryDataType;
2152
+ type messages_CardanoSignTx = CardanoSignTx;
2153
+ type messages_CardanoSignedTxChunk = CardanoSignedTxChunk;
2154
+ type messages_CardanoSignedTxChunkAck = CardanoSignedTxChunkAck;
2155
+ type messages_CardanoSignedTx = CardanoSignedTx;
2156
+ type messages_Success = Success;
2157
+ type messages_FailureType = FailureType;
2158
+ declare const messages_FailureType: typeof FailureType;
2159
+ type messages_Failure = Failure;
2160
+ type messages_Enum_ButtonRequestType = Enum_ButtonRequestType;
2161
+ declare const messages_Enum_ButtonRequestType: typeof Enum_ButtonRequestType;
2162
+ type messages_ButtonRequestType = ButtonRequestType;
2163
+ type messages_ButtonRequest = ButtonRequest;
2164
+ type messages_ButtonAck = ButtonAck;
2165
+ type messages_Enum_PinMatrixRequestType = Enum_PinMatrixRequestType;
2166
+ declare const messages_Enum_PinMatrixRequestType: typeof Enum_PinMatrixRequestType;
2167
+ type messages_PinMatrixRequestType = PinMatrixRequestType;
2168
+ type messages_PinMatrixRequest = PinMatrixRequest;
2169
+ type messages_PinMatrixAck = PinMatrixAck;
2170
+ type messages_PassphraseRequest = PassphraseRequest;
2171
+ type messages_PassphraseAck = PassphraseAck;
2172
+ type messages_Deprecated_PassphraseStateRequest = Deprecated_PassphraseStateRequest;
2173
+ type messages_Deprecated_PassphraseStateAck = Deprecated_PassphraseStateAck;
2174
+ type messages_CipherKeyValue = CipherKeyValue;
2175
+ type messages_CipheredKeyValue = CipheredKeyValue;
2176
+ type messages_IdentityType = IdentityType;
2177
+ type messages_SignIdentity = SignIdentity;
2178
+ type messages_SignedIdentity = SignedIdentity;
2179
+ type messages_GetECDHSessionKey = GetECDHSessionKey;
2180
+ type messages_ECDHSessionKey = ECDHSessionKey;
2181
+ type messages_DebugButton = DebugButton;
2182
+ declare const messages_DebugButton: typeof DebugButton;
2183
+ type messages_EosGetPublicKey = EosGetPublicKey;
2184
+ type messages_EosPublicKey = EosPublicKey;
2185
+ type messages_EosTxHeader = EosTxHeader;
2186
+ type messages_EosSignTx = EosSignTx;
2187
+ type messages_EosTxActionRequest = EosTxActionRequest;
2188
+ type messages_EosAsset = EosAsset;
2189
+ type messages_EosPermissionLevel = EosPermissionLevel;
2190
+ type messages_EosAuthorizationKey = EosAuthorizationKey;
2191
+ type messages_EosAuthorizationAccount = EosAuthorizationAccount;
2192
+ type messages_EosAuthorizationWait = EosAuthorizationWait;
2193
+ type messages_EosAuthorization = EosAuthorization;
2194
+ type messages_EosActionCommon = EosActionCommon;
2195
+ type messages_EosActionTransfer = EosActionTransfer;
2196
+ type messages_EosActionDelegate = EosActionDelegate;
2197
+ type messages_EosActionUndelegate = EosActionUndelegate;
2198
+ type messages_EosActionRefund = EosActionRefund;
2199
+ type messages_EosActionBuyRam = EosActionBuyRam;
2200
+ type messages_EosActionBuyRamBytes = EosActionBuyRamBytes;
2201
+ type messages_EosActionSellRam = EosActionSellRam;
2202
+ type messages_EosActionVoteProducer = EosActionVoteProducer;
2203
+ type messages_EosActionUpdateAuth = EosActionUpdateAuth;
2204
+ type messages_EosActionDeleteAuth = EosActionDeleteAuth;
2205
+ type messages_EosActionLinkAuth = EosActionLinkAuth;
2206
+ type messages_EosActionUnlinkAuth = EosActionUnlinkAuth;
2207
+ type messages_EosActionNewAccount = EosActionNewAccount;
2208
+ type messages_EosActionUnknown = EosActionUnknown;
2209
+ type messages_EosTxActionAck = EosTxActionAck;
2210
+ type messages_EosSignedTx = EosSignedTx;
2211
+ type messages_EthereumSignTypedData = EthereumSignTypedData;
2212
+ type messages_EthereumTypedDataStructRequest = EthereumTypedDataStructRequest;
2213
+ type messages_EthereumDataType = EthereumDataType;
2214
+ declare const messages_EthereumDataType: typeof EthereumDataType;
2215
+ type messages_EthereumFieldType = EthereumFieldType;
2216
+ type messages_EthereumStructMember = EthereumStructMember;
2217
+ type messages_EthereumTypedDataStructAck = EthereumTypedDataStructAck;
2218
+ type messages_EthereumTypedDataValueRequest = EthereumTypedDataValueRequest;
2219
+ type messages_EthereumTypedDataValueAck = EthereumTypedDataValueAck;
2220
+ type messages_EthereumGetPublicKey = EthereumGetPublicKey;
2221
+ type messages_EthereumPublicKey = EthereumPublicKey;
2222
+ type messages_EthereumGetAddress = EthereumGetAddress;
2223
+ type messages_EthereumAddress = EthereumAddress;
2224
+ type messages_EthereumSignTx = EthereumSignTx;
2225
+ type messages_EthereumAccessList = EthereumAccessList;
2226
+ type messages_EthereumSignTxEIP1559 = EthereumSignTxEIP1559;
2227
+ type messages_EthereumTxRequest = EthereumTxRequest;
2228
+ type messages_EthereumTxAck = EthereumTxAck;
2229
+ type messages_EthereumSignMessage = EthereumSignMessage;
2230
+ type messages_EthereumSignMessageEIP712 = EthereumSignMessageEIP712;
2231
+ type messages_EthereumMessageSignature = EthereumMessageSignature;
2232
+ type messages_EthereumVerifyMessage = EthereumVerifyMessage;
2233
+ type messages_EthereumSignTypedHash = EthereumSignTypedHash;
2234
+ type messages_EthereumTypedDataSignature = EthereumTypedDataSignature;
2235
+ type messages_Enum_BackupType = Enum_BackupType;
2236
+ declare const messages_Enum_BackupType: typeof Enum_BackupType;
2237
+ type messages_BackupType = BackupType;
2238
+ type messages_Enum_SafetyCheckLevel = Enum_SafetyCheckLevel;
2239
+ declare const messages_Enum_SafetyCheckLevel: typeof Enum_SafetyCheckLevel;
2240
+ type messages_SafetyCheckLevel = SafetyCheckLevel;
2241
+ type messages_Initialize = Initialize;
2242
+ type messages_GetFeatures = GetFeatures;
2243
+ type messages_Enum_Capability = Enum_Capability;
2244
+ declare const messages_Enum_Capability: typeof Enum_Capability;
2245
+ type messages_Capability = Capability;
2246
+ type messages_Features = Features;
2247
+ type messages_LockDevice = LockDevice;
2248
+ type messages_EndSession = EndSession;
2249
+ type messages_ApplySettings = ApplySettings;
2250
+ type messages_ApplyFlags = ApplyFlags;
2251
+ type messages_ChangePin = ChangePin;
2252
+ type messages_ChangeWipeCode = ChangeWipeCode;
2253
+ type messages_SdProtectOperationType = SdProtectOperationType;
2254
+ declare const messages_SdProtectOperationType: typeof SdProtectOperationType;
2255
+ type messages_SdProtect = SdProtect;
2256
+ type messages_Ping = Ping;
2257
+ type messages_Cancel = Cancel;
2258
+ type messages_GetEntropy = GetEntropy;
2259
+ type messages_Entropy = Entropy;
2260
+ type messages_GetFirmwareHash = GetFirmwareHash;
2261
+ type messages_FirmwareHash = FirmwareHash;
2262
+ type messages_GetFirmware = GetFirmware;
2263
+ type messages_FirmwareChunk = FirmwareChunk;
2264
+ type messages_FirmwareChunkAck = FirmwareChunkAck;
2265
+ type messages_WipeDevice = WipeDevice;
2266
+ type messages_ResetDevice = ResetDevice;
2267
+ type messages_BackupDevice = BackupDevice;
2268
+ type messages_EntropyRequest = EntropyRequest;
2269
+ type messages_EntropyAck = EntropyAck;
2270
+ type messages_RecoveryDeviceType = RecoveryDeviceType;
2271
+ declare const messages_RecoveryDeviceType: typeof RecoveryDeviceType;
2272
+ type messages_RecoveryDevice = RecoveryDevice;
2273
+ type messages_Enum_WordRequestType = Enum_WordRequestType;
2274
+ declare const messages_Enum_WordRequestType: typeof Enum_WordRequestType;
2275
+ type messages_WordRequestType = WordRequestType;
2276
+ type messages_WordRequest = WordRequest;
2277
+ type messages_WordAck = WordAck;
2278
+ type messages_SetU2FCounter = SetU2FCounter;
2279
+ type messages_GetNextU2FCounter = GetNextU2FCounter;
2280
+ type messages_NextU2FCounter = NextU2FCounter;
2281
+ type messages_DoPreauthorized = DoPreauthorized;
2282
+ type messages_PreauthorizedRequest = PreauthorizedRequest;
2283
+ type messages_CancelAuthorization = CancelAuthorization;
2284
+ type messages_BixinReboot = BixinReboot;
2285
+ type messages_RebootToBootloader = RebootToBootloader;
2286
+ type messages_GetNonce = GetNonce;
2287
+ type messages_Nonce = Nonce;
2288
+ type messages_NEMGetAddress = NEMGetAddress;
2289
+ type messages_NEMAddress = NEMAddress;
2290
+ type messages_NEMTransactionCommon = NEMTransactionCommon;
2291
+ type messages_NEMMosaic = NEMMosaic;
2292
+ type messages_NEMTransfer = NEMTransfer;
2293
+ type messages_NEMProvisionNamespace = NEMProvisionNamespace;
2294
+ type messages_NEMMosaicLevy = NEMMosaicLevy;
2295
+ declare const messages_NEMMosaicLevy: typeof NEMMosaicLevy;
2296
+ type messages_NEMMosaicDefinition = NEMMosaicDefinition;
2297
+ type messages_NEMMosaicCreation = NEMMosaicCreation;
2298
+ type messages_NEMSupplyChangeType = NEMSupplyChangeType;
2299
+ declare const messages_NEMSupplyChangeType: typeof NEMSupplyChangeType;
2300
+ type messages_NEMMosaicSupplyChange = NEMMosaicSupplyChange;
2301
+ type messages_NEMModificationType = NEMModificationType;
2302
+ declare const messages_NEMModificationType: typeof NEMModificationType;
2303
+ type messages_NEMCosignatoryModification = NEMCosignatoryModification;
2304
+ type messages_NEMAggregateModification = NEMAggregateModification;
2305
+ type messages_NEMImportanceTransferMode = NEMImportanceTransferMode;
2306
+ declare const messages_NEMImportanceTransferMode: typeof NEMImportanceTransferMode;
2307
+ type messages_NEMImportanceTransfer = NEMImportanceTransfer;
2308
+ type messages_NEMSignTx = NEMSignTx;
2309
+ type messages_NEMSignedTx = NEMSignedTx;
2310
+ type messages_NEMDecryptMessage = NEMDecryptMessage;
2311
+ type messages_NEMDecryptedMessage = NEMDecryptedMessage;
2312
+ type messages_RippleGetAddress = RippleGetAddress;
2313
+ type messages_RippleAddress = RippleAddress;
2314
+ type messages_RipplePayment = RipplePayment;
2315
+ type messages_RippleSignTx = RippleSignTx;
2316
+ type messages_RippleSignedTx = RippleSignedTx;
2317
+ type messages_StellarAssetType = StellarAssetType;
2318
+ declare const messages_StellarAssetType: typeof StellarAssetType;
2319
+ type messages_StellarAsset = StellarAsset;
2320
+ type messages_StellarGetAddress = StellarGetAddress;
2321
+ type messages_StellarAddress = StellarAddress;
2322
+ type messages_StellarMemoType = StellarMemoType;
2323
+ declare const messages_StellarMemoType: typeof StellarMemoType;
2324
+ type messages_StellarSignTx = StellarSignTx;
2325
+ type messages_StellarTxOpRequest = StellarTxOpRequest;
2326
+ type messages_StellarPaymentOp = StellarPaymentOp;
2327
+ type messages_StellarCreateAccountOp = StellarCreateAccountOp;
2328
+ type messages_StellarPathPaymentStrictReceiveOp = StellarPathPaymentStrictReceiveOp;
2329
+ type messages_StellarPathPaymentStrictSendOp = StellarPathPaymentStrictSendOp;
2330
+ type messages_StellarManageSellOfferOp = StellarManageSellOfferOp;
2331
+ type messages_StellarManageBuyOfferOp = StellarManageBuyOfferOp;
2332
+ type messages_StellarCreatePassiveSellOfferOp = StellarCreatePassiveSellOfferOp;
2333
+ type messages_StellarSignerType = StellarSignerType;
2334
+ declare const messages_StellarSignerType: typeof StellarSignerType;
2335
+ type messages_StellarSetOptionsOp = StellarSetOptionsOp;
2336
+ type messages_StellarChangeTrustOp = StellarChangeTrustOp;
2337
+ type messages_StellarAllowTrustOp = StellarAllowTrustOp;
2338
+ type messages_StellarAccountMergeOp = StellarAccountMergeOp;
2339
+ type messages_StellarManageDataOp = StellarManageDataOp;
2340
+ type messages_StellarBumpSequenceOp = StellarBumpSequenceOp;
2341
+ type messages_StellarSignedTx = StellarSignedTx;
2342
+ type messages_TezosGetAddress = TezosGetAddress;
2343
+ type messages_TezosAddress = TezosAddress;
2344
+ type messages_TezosGetPublicKey = TezosGetPublicKey;
2345
+ type messages_TezosPublicKey = TezosPublicKey;
2346
+ type messages_TezosContractType = TezosContractType;
2347
+ declare const messages_TezosContractType: typeof TezosContractType;
2348
+ type messages_TezosContractID = TezosContractID;
2349
+ type messages_TezosRevealOp = TezosRevealOp;
2350
+ type messages_TezosManagerTransfer = TezosManagerTransfer;
2351
+ type messages_TezosParametersManager = TezosParametersManager;
2352
+ type messages_TezosTransactionOp = TezosTransactionOp;
2353
+ type messages_TezosOriginationOp = TezosOriginationOp;
2354
+ type messages_TezosDelegationOp = TezosDelegationOp;
2355
+ type messages_TezosProposalOp = TezosProposalOp;
2356
+ type messages_TezosBallotType = TezosBallotType;
2357
+ declare const messages_TezosBallotType: typeof TezosBallotType;
2358
+ type messages_TezosBallotOp = TezosBallotOp;
2359
+ type messages_TezosSignTx = TezosSignTx;
2360
+ type messages_TezosSignedTx = TezosSignedTx;
2361
+ type messages_MessageType = MessageType;
2362
+ type messages_MessageKey = MessageKey;
2363
+ type messages_MessageResponse<T extends MessageKey> = MessageResponse<T>;
2364
+ type messages_TypedCall = TypedCall;
2365
+ declare namespace messages {
2366
+ export {
2367
+ messages_UintType as UintType,
2368
+ messages_BinanceGetAddress as BinanceGetAddress,
2369
+ messages_BinanceAddress as BinanceAddress,
2370
+ messages_BinanceGetPublicKey as BinanceGetPublicKey,
2371
+ messages_BinancePublicKey as BinancePublicKey,
2372
+ messages_BinanceSignTx as BinanceSignTx,
2373
+ messages_BinanceTxRequest as BinanceTxRequest,
2374
+ messages_BinanceCoin as BinanceCoin,
2375
+ messages_BinanceInputOutput as BinanceInputOutput,
2376
+ messages_BinanceTransferMsg as BinanceTransferMsg,
2377
+ messages_BinanceOrderType as BinanceOrderType,
2378
+ messages_BinanceOrderSide as BinanceOrderSide,
2379
+ messages_BinanceTimeInForce as BinanceTimeInForce,
2380
+ messages_BinanceOrderMsg as BinanceOrderMsg,
2381
+ messages_BinanceCancelMsg as BinanceCancelMsg,
2382
+ messages_BinanceSignedTx as BinanceSignedTx,
2383
+ messages_Enum_InputScriptType as Enum_InputScriptType,
2384
+ messages_InputScriptType as InputScriptType,
2385
+ messages_Enum_OutputScriptType as Enum_OutputScriptType,
2386
+ messages_OutputScriptType as OutputScriptType,
2387
+ messages_DecredStakingSpendType as DecredStakingSpendType,
2388
+ messages_AmountUnit as AmountUnit,
2389
+ messages_HDNodeType as HDNodeType,
2390
+ messages_HDNodePathType as HDNodePathType,
2391
+ messages_MultisigRedeemScriptType as MultisigRedeemScriptType,
2392
+ messages_GetPublicKey as GetPublicKey,
2393
+ messages_PublicKey as PublicKey,
2394
+ messages_GetAddress as GetAddress,
2395
+ messages_Address as Address,
2396
+ messages_GetOwnershipId as GetOwnershipId,
2397
+ messages_OwnershipId as OwnershipId,
2398
+ messages_SignMessage as SignMessage,
2399
+ messages_MessageSignature as MessageSignature,
2400
+ messages_VerifyMessage as VerifyMessage,
2401
+ messages_SignTx as SignTx,
2402
+ messages_Enum_RequestType as Enum_RequestType,
2403
+ messages_RequestType as RequestType,
2404
+ messages_TxRequestDetailsType as TxRequestDetailsType,
2405
+ messages_TxRequestSerializedType as TxRequestSerializedType,
2406
+ messages_TxRequest as TxRequest,
2407
+ messages_InternalInputScriptType as InternalInputScriptType,
2408
+ messages_TxInputType as TxInputType,
2409
+ messages_TxInput as TxInput,
2410
+ messages_TxOutputBinType as TxOutputBinType,
2411
+ messages_ChangeOutputScriptType as ChangeOutputScriptType,
2412
+ messages_TxOutputType as TxOutputType,
2413
+ messages_TxOutput as TxOutput,
2414
+ messages_PrevTx as PrevTx,
2415
+ messages_PrevInput as PrevInput,
2416
+ messages_PrevOutput as PrevOutput,
2417
+ messages_TextMemo as TextMemo,
2418
+ messages_RefundMemo as RefundMemo,
2419
+ messages_CoinPurchaseMemo as CoinPurchaseMemo,
2420
+ messages_PaymentRequestMemo as PaymentRequestMemo,
2421
+ messages_TxAckPaymentRequest as TxAckPaymentRequest,
2422
+ messages_TxAckResponse as TxAckResponse,
2423
+ messages_TxAck as TxAck,
2424
+ messages_TxAckInputWrapper as TxAckInputWrapper,
2425
+ messages_TxAckInput as TxAckInput,
2426
+ messages_TxAckOutputWrapper as TxAckOutputWrapper,
2427
+ messages_TxAckOutput as TxAckOutput,
2428
+ messages_TxAckPrevMeta as TxAckPrevMeta,
2429
+ messages_TxAckPrevInputWrapper as TxAckPrevInputWrapper,
2430
+ messages_TxAckPrevInput as TxAckPrevInput,
2431
+ messages_TxAckPrevOutputWrapper as TxAckPrevOutputWrapper,
2432
+ messages_TxAckPrevOutput as TxAckPrevOutput,
2433
+ messages_TxAckPrevExtraDataWrapper as TxAckPrevExtraDataWrapper,
2434
+ messages_TxAckPrevExtraData as TxAckPrevExtraData,
2435
+ messages_GetOwnershipProof as GetOwnershipProof,
2436
+ messages_OwnershipProof as OwnershipProof,
2437
+ messages_AuthorizeCoinJoin as AuthorizeCoinJoin,
2438
+ messages_FirmwareErase as FirmwareErase,
2439
+ messages_FirmwareRequest as FirmwareRequest,
2440
+ messages_FirmwareUpload as FirmwareUpload,
2441
+ messages_SelfTest as SelfTest,
2442
+ messages_CardanoDerivationType as CardanoDerivationType,
2443
+ messages_CardanoAddressType as CardanoAddressType,
2444
+ messages_CardanoNativeScriptType as CardanoNativeScriptType,
2445
+ messages_CardanoNativeScriptHashDisplayFormat as CardanoNativeScriptHashDisplayFormat,
2446
+ messages_CardanoCertificateType as CardanoCertificateType,
2447
+ messages_CardanoPoolRelayType as CardanoPoolRelayType,
2448
+ messages_CardanoTxAuxiliaryDataSupplementType as CardanoTxAuxiliaryDataSupplementType,
2449
+ messages_CardanoTxSigningMode as CardanoTxSigningMode,
2450
+ messages_CardanoTxWitnessType as CardanoTxWitnessType,
2451
+ messages_CardanoBlockchainPointerType as CardanoBlockchainPointerType,
2452
+ messages_CardanoNativeScript as CardanoNativeScript,
2453
+ messages_CardanoGetNativeScriptHash as CardanoGetNativeScriptHash,
2454
+ messages_CardanoNativeScriptHash as CardanoNativeScriptHash,
2455
+ messages_CardanoAddressParametersType as CardanoAddressParametersType,
2456
+ messages_CardanoGetAddress as CardanoGetAddress,
2457
+ messages_CardanoAddress as CardanoAddress,
2458
+ messages_CardanoGetPublicKey as CardanoGetPublicKey,
2459
+ messages_CardanoPublicKey as CardanoPublicKey,
2460
+ messages_CardanoSignTxInit as CardanoSignTxInit,
2461
+ messages_CardanoTxInput as CardanoTxInput,
2462
+ messages_CardanoTxOutput as CardanoTxOutput,
2463
+ messages_CardanoAssetGroup as CardanoAssetGroup,
2464
+ messages_CardanoToken as CardanoToken,
2465
+ messages_CardanoPoolOwner as CardanoPoolOwner,
2466
+ messages_CardanoPoolRelayParameters as CardanoPoolRelayParameters,
2467
+ messages_CardanoPoolMetadataType as CardanoPoolMetadataType,
2468
+ messages_CardanoPoolParametersType as CardanoPoolParametersType,
2469
+ messages_CardanoTxCertificate as CardanoTxCertificate,
2470
+ messages_CardanoTxWithdrawal as CardanoTxWithdrawal,
2471
+ messages_CardanoCatalystRegistrationParametersType as CardanoCatalystRegistrationParametersType,
2472
+ messages_CardanoTxAuxiliaryData as CardanoTxAuxiliaryData,
2473
+ messages_CardanoTxMint as CardanoTxMint,
2474
+ messages_CardanoTxCollateralInput as CardanoTxCollateralInput,
2475
+ messages_CardanoTxRequiredSigner as CardanoTxRequiredSigner,
2476
+ messages_CardanoTxItemAck as CardanoTxItemAck,
2477
+ messages_CardanoTxAuxiliaryDataSupplement as CardanoTxAuxiliaryDataSupplement,
2478
+ messages_CardanoTxWitnessRequest as CardanoTxWitnessRequest,
2479
+ messages_CardanoTxWitnessResponse as CardanoTxWitnessResponse,
2480
+ messages_CardanoTxHostAck as CardanoTxHostAck,
2481
+ messages_CardanoTxBodyHash as CardanoTxBodyHash,
2482
+ messages_CardanoSignTxFinished as CardanoSignTxFinished,
2483
+ messages_CardanoTxInputType as CardanoTxInputType,
2484
+ messages_CardanoTokenType as CardanoTokenType,
2485
+ messages_CardanoAssetGroupType as CardanoAssetGroupType,
2486
+ messages_CardanoTxOutputType as CardanoTxOutputType,
2487
+ messages_CardanoPoolOwnerType as CardanoPoolOwnerType,
2488
+ messages_CardanoPoolRelayParametersType as CardanoPoolRelayParametersType,
2489
+ messages_CardanoTxCertificateType as CardanoTxCertificateType,
2490
+ messages_CardanoTxWithdrawalType as CardanoTxWithdrawalType,
2491
+ messages_CardanoTxAuxiliaryDataType as CardanoTxAuxiliaryDataType,
2492
+ messages_CardanoSignTx as CardanoSignTx,
2493
+ messages_CardanoSignedTxChunk as CardanoSignedTxChunk,
2494
+ messages_CardanoSignedTxChunkAck as CardanoSignedTxChunkAck,
2495
+ messages_CardanoSignedTx as CardanoSignedTx,
2496
+ messages_Success as Success,
2497
+ messages_FailureType as FailureType,
2498
+ messages_Failure as Failure,
2499
+ messages_Enum_ButtonRequestType as Enum_ButtonRequestType,
2500
+ messages_ButtonRequestType as ButtonRequestType,
2501
+ messages_ButtonRequest as ButtonRequest,
2502
+ messages_ButtonAck as ButtonAck,
2503
+ messages_Enum_PinMatrixRequestType as Enum_PinMatrixRequestType,
2504
+ messages_PinMatrixRequestType as PinMatrixRequestType,
2505
+ messages_PinMatrixRequest as PinMatrixRequest,
2506
+ messages_PinMatrixAck as PinMatrixAck,
2507
+ messages_PassphraseRequest as PassphraseRequest,
2508
+ messages_PassphraseAck as PassphraseAck,
2509
+ messages_Deprecated_PassphraseStateRequest as Deprecated_PassphraseStateRequest,
2510
+ messages_Deprecated_PassphraseStateAck as Deprecated_PassphraseStateAck,
2511
+ messages_CipherKeyValue as CipherKeyValue,
2512
+ messages_CipheredKeyValue as CipheredKeyValue,
2513
+ messages_IdentityType as IdentityType,
2514
+ messages_SignIdentity as SignIdentity,
2515
+ messages_SignedIdentity as SignedIdentity,
2516
+ messages_GetECDHSessionKey as GetECDHSessionKey,
2517
+ messages_ECDHSessionKey as ECDHSessionKey,
2518
+ messages_DebugButton as DebugButton,
2519
+ messages_EosGetPublicKey as EosGetPublicKey,
2520
+ messages_EosPublicKey as EosPublicKey,
2521
+ messages_EosTxHeader as EosTxHeader,
2522
+ messages_EosSignTx as EosSignTx,
2523
+ messages_EosTxActionRequest as EosTxActionRequest,
2524
+ messages_EosAsset as EosAsset,
2525
+ messages_EosPermissionLevel as EosPermissionLevel,
2526
+ messages_EosAuthorizationKey as EosAuthorizationKey,
2527
+ messages_EosAuthorizationAccount as EosAuthorizationAccount,
2528
+ messages_EosAuthorizationWait as EosAuthorizationWait,
2529
+ messages_EosAuthorization as EosAuthorization,
2530
+ messages_EosActionCommon as EosActionCommon,
2531
+ messages_EosActionTransfer as EosActionTransfer,
2532
+ messages_EosActionDelegate as EosActionDelegate,
2533
+ messages_EosActionUndelegate as EosActionUndelegate,
2534
+ messages_EosActionRefund as EosActionRefund,
2535
+ messages_EosActionBuyRam as EosActionBuyRam,
2536
+ messages_EosActionBuyRamBytes as EosActionBuyRamBytes,
2537
+ messages_EosActionSellRam as EosActionSellRam,
2538
+ messages_EosActionVoteProducer as EosActionVoteProducer,
2539
+ messages_EosActionUpdateAuth as EosActionUpdateAuth,
2540
+ messages_EosActionDeleteAuth as EosActionDeleteAuth,
2541
+ messages_EosActionLinkAuth as EosActionLinkAuth,
2542
+ messages_EosActionUnlinkAuth as EosActionUnlinkAuth,
2543
+ messages_EosActionNewAccount as EosActionNewAccount,
2544
+ messages_EosActionUnknown as EosActionUnknown,
2545
+ messages_EosTxActionAck as EosTxActionAck,
2546
+ messages_EosSignedTx as EosSignedTx,
2547
+ messages_EthereumSignTypedData as EthereumSignTypedData,
2548
+ messages_EthereumTypedDataStructRequest as EthereumTypedDataStructRequest,
2549
+ messages_EthereumDataType as EthereumDataType,
2550
+ messages_EthereumFieldType as EthereumFieldType,
2551
+ messages_EthereumStructMember as EthereumStructMember,
2552
+ messages_EthereumTypedDataStructAck as EthereumTypedDataStructAck,
2553
+ messages_EthereumTypedDataValueRequest as EthereumTypedDataValueRequest,
2554
+ messages_EthereumTypedDataValueAck as EthereumTypedDataValueAck,
2555
+ messages_EthereumGetPublicKey as EthereumGetPublicKey,
2556
+ messages_EthereumPublicKey as EthereumPublicKey,
2557
+ messages_EthereumGetAddress as EthereumGetAddress,
2558
+ messages_EthereumAddress as EthereumAddress,
2559
+ messages_EthereumSignTx as EthereumSignTx,
2560
+ messages_EthereumAccessList as EthereumAccessList,
2561
+ messages_EthereumSignTxEIP1559 as EthereumSignTxEIP1559,
2562
+ messages_EthereumTxRequest as EthereumTxRequest,
2563
+ messages_EthereumTxAck as EthereumTxAck,
2564
+ messages_EthereumSignMessage as EthereumSignMessage,
2565
+ messages_EthereumSignMessageEIP712 as EthereumSignMessageEIP712,
2566
+ messages_EthereumMessageSignature as EthereumMessageSignature,
2567
+ messages_EthereumVerifyMessage as EthereumVerifyMessage,
2568
+ messages_EthereumSignTypedHash as EthereumSignTypedHash,
2569
+ messages_EthereumTypedDataSignature as EthereumTypedDataSignature,
2570
+ messages_Enum_BackupType as Enum_BackupType,
2571
+ messages_BackupType as BackupType,
2572
+ messages_Enum_SafetyCheckLevel as Enum_SafetyCheckLevel,
2573
+ messages_SafetyCheckLevel as SafetyCheckLevel,
2574
+ messages_Initialize as Initialize,
2575
+ messages_GetFeatures as GetFeatures,
2576
+ messages_Enum_Capability as Enum_Capability,
2577
+ messages_Capability as Capability,
2578
+ messages_Features as Features,
2579
+ messages_LockDevice as LockDevice,
2580
+ messages_EndSession as EndSession,
2581
+ messages_ApplySettings as ApplySettings,
2582
+ messages_ApplyFlags as ApplyFlags,
2583
+ messages_ChangePin as ChangePin,
2584
+ messages_ChangeWipeCode as ChangeWipeCode,
2585
+ messages_SdProtectOperationType as SdProtectOperationType,
2586
+ messages_SdProtect as SdProtect,
2587
+ messages_Ping as Ping,
2588
+ messages_Cancel as Cancel,
2589
+ messages_GetEntropy as GetEntropy,
2590
+ messages_Entropy as Entropy,
2591
+ messages_GetFirmwareHash as GetFirmwareHash,
2592
+ messages_FirmwareHash as FirmwareHash,
2593
+ messages_GetFirmware as GetFirmware,
2594
+ messages_FirmwareChunk as FirmwareChunk,
2595
+ messages_FirmwareChunkAck as FirmwareChunkAck,
2596
+ messages_WipeDevice as WipeDevice,
2597
+ messages_ResetDevice as ResetDevice,
2598
+ messages_BackupDevice as BackupDevice,
2599
+ messages_EntropyRequest as EntropyRequest,
2600
+ messages_EntropyAck as EntropyAck,
2601
+ messages_RecoveryDeviceType as RecoveryDeviceType,
2602
+ messages_RecoveryDevice as RecoveryDevice,
2603
+ messages_Enum_WordRequestType as Enum_WordRequestType,
2604
+ messages_WordRequestType as WordRequestType,
2605
+ messages_WordRequest as WordRequest,
2606
+ messages_WordAck as WordAck,
2607
+ messages_SetU2FCounter as SetU2FCounter,
2608
+ messages_GetNextU2FCounter as GetNextU2FCounter,
2609
+ messages_NextU2FCounter as NextU2FCounter,
2610
+ messages_DoPreauthorized as DoPreauthorized,
2611
+ messages_PreauthorizedRequest as PreauthorizedRequest,
2612
+ messages_CancelAuthorization as CancelAuthorization,
2613
+ messages_BixinReboot as BixinReboot,
2614
+ messages_RebootToBootloader as RebootToBootloader,
2615
+ messages_GetNonce as GetNonce,
2616
+ messages_Nonce as Nonce,
2617
+ messages_NEMGetAddress as NEMGetAddress,
2618
+ messages_NEMAddress as NEMAddress,
2619
+ messages_NEMTransactionCommon as NEMTransactionCommon,
2620
+ messages_NEMMosaic as NEMMosaic,
2621
+ messages_NEMTransfer as NEMTransfer,
2622
+ messages_NEMProvisionNamespace as NEMProvisionNamespace,
2623
+ messages_NEMMosaicLevy as NEMMosaicLevy,
2624
+ messages_NEMMosaicDefinition as NEMMosaicDefinition,
2625
+ messages_NEMMosaicCreation as NEMMosaicCreation,
2626
+ messages_NEMSupplyChangeType as NEMSupplyChangeType,
2627
+ messages_NEMMosaicSupplyChange as NEMMosaicSupplyChange,
2628
+ messages_NEMModificationType as NEMModificationType,
2629
+ messages_NEMCosignatoryModification as NEMCosignatoryModification,
2630
+ messages_NEMAggregateModification as NEMAggregateModification,
2631
+ messages_NEMImportanceTransferMode as NEMImportanceTransferMode,
2632
+ messages_NEMImportanceTransfer as NEMImportanceTransfer,
2633
+ messages_NEMSignTx as NEMSignTx,
2634
+ messages_NEMSignedTx as NEMSignedTx,
2635
+ messages_NEMDecryptMessage as NEMDecryptMessage,
2636
+ messages_NEMDecryptedMessage as NEMDecryptedMessage,
2637
+ messages_RippleGetAddress as RippleGetAddress,
2638
+ messages_RippleAddress as RippleAddress,
2639
+ messages_RipplePayment as RipplePayment,
2640
+ messages_RippleSignTx as RippleSignTx,
2641
+ messages_RippleSignedTx as RippleSignedTx,
2642
+ messages_StellarAssetType as StellarAssetType,
2643
+ messages_StellarAsset as StellarAsset,
2644
+ messages_StellarGetAddress as StellarGetAddress,
2645
+ messages_StellarAddress as StellarAddress,
2646
+ messages_StellarMemoType as StellarMemoType,
2647
+ messages_StellarSignTx as StellarSignTx,
2648
+ messages_StellarTxOpRequest as StellarTxOpRequest,
2649
+ messages_StellarPaymentOp as StellarPaymentOp,
2650
+ messages_StellarCreateAccountOp as StellarCreateAccountOp,
2651
+ messages_StellarPathPaymentStrictReceiveOp as StellarPathPaymentStrictReceiveOp,
2652
+ messages_StellarPathPaymentStrictSendOp as StellarPathPaymentStrictSendOp,
2653
+ messages_StellarManageSellOfferOp as StellarManageSellOfferOp,
2654
+ messages_StellarManageBuyOfferOp as StellarManageBuyOfferOp,
2655
+ messages_StellarCreatePassiveSellOfferOp as StellarCreatePassiveSellOfferOp,
2656
+ messages_StellarSignerType as StellarSignerType,
2657
+ messages_StellarSetOptionsOp as StellarSetOptionsOp,
2658
+ messages_StellarChangeTrustOp as StellarChangeTrustOp,
2659
+ messages_StellarAllowTrustOp as StellarAllowTrustOp,
2660
+ messages_StellarAccountMergeOp as StellarAccountMergeOp,
2661
+ messages_StellarManageDataOp as StellarManageDataOp,
2662
+ messages_StellarBumpSequenceOp as StellarBumpSequenceOp,
2663
+ messages_StellarSignedTx as StellarSignedTx,
2664
+ messages_TezosGetAddress as TezosGetAddress,
2665
+ messages_TezosAddress as TezosAddress,
2666
+ messages_TezosGetPublicKey as TezosGetPublicKey,
2667
+ messages_TezosPublicKey as TezosPublicKey,
2668
+ messages_TezosContractType as TezosContractType,
2669
+ messages_TezosContractID as TezosContractID,
2670
+ messages_TezosRevealOp as TezosRevealOp,
2671
+ messages_TezosManagerTransfer as TezosManagerTransfer,
2672
+ messages_TezosParametersManager as TezosParametersManager,
2673
+ messages_TezosTransactionOp as TezosTransactionOp,
2674
+ messages_TezosOriginationOp as TezosOriginationOp,
2675
+ messages_TezosDelegationOp as TezosDelegationOp,
2676
+ messages_TezosProposalOp as TezosProposalOp,
2677
+ messages_TezosBallotType as TezosBallotType,
2678
+ messages_TezosBallotOp as TezosBallotOp,
2679
+ messages_TezosSignTx as TezosSignTx,
2680
+ messages_TezosSignedTx as TezosSignedTx,
2681
+ messages_MessageType as MessageType,
2682
+ messages_MessageKey as MessageKey,
2683
+ messages_MessageResponse as MessageResponse,
2684
+ messages_TypedCall as TypedCall,
2685
+ };
2686
+ }
2687
+
2688
+ declare function info(res: any): {
2689
+ version: string;
2690
+ configured: boolean;
2691
+ };
2692
+ declare function version(version: any): string;
2693
+ declare function devices(res: any): Array<OneKeyDeviceInfoWithSession>;
2694
+ declare function acquire(res: any): string;
2695
+ declare function call(res: any): MessageFromOneKey;
2696
+
2697
+ declare const check_info: typeof info;
2698
+ declare const check_version: typeof version;
2699
+ declare const check_devices: typeof devices;
2700
+ declare const check_acquire: typeof acquire;
2701
+ declare const check_call: typeof call;
2702
+ declare namespace check {
2703
+ export {
2704
+ check_info as info,
2705
+ check_version as version,
2706
+ check_devices as devices,
2707
+ check_acquire as acquire,
2708
+ check_call as call,
2709
+ };
2710
+ }
2711
+
2712
+ declare const MESSAGE_TOP_CHAR = 63;
2713
+ declare const MESSAGE_HEADER_BYTE = 35;
2714
+ declare const HEADER_SIZE: number;
2715
+ declare const BUFFER_SIZE = 63;
2716
+
2717
+ declare const _default: {
2718
+ check: typeof check;
2719
+ buildOne: typeof buildOne;
2720
+ buildBuffer: (messages: protobuf.Root, name: string, data: Record<string, unknown>) => ByteBuffer;
2721
+ receiveOne: typeof receiveOne;
2722
+ parseConfigure: typeof parseConfigure;
2723
+ };
2724
+
2725
+ export { AcquireInput, BUFFER_SIZE, HEADER_SIZE, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, messages as Messages, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyMobileDeviceInfo, Transport, _default as default };