@metamask-previews/keyring-api 21.5.0-25e4b24 → 21.5.0-cd75414

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 (48) hide show
  1. package/CHANGELOG.md +0 -1
  2. package/dist/api/account-options.cjs +4 -0
  3. package/dist/api/account-options.cjs.map +1 -1
  4. package/dist/api/account-options.d.cts +4 -0
  5. package/dist/api/account-options.d.cts.map +1 -1
  6. package/dist/api/account-options.d.mts +4 -0
  7. package/dist/api/account-options.d.mts.map +1 -1
  8. package/dist/api/account-options.mjs +4 -0
  9. package/dist/api/account-options.mjs.map +1 -1
  10. package/dist/api/account.d.cts +2 -2
  11. package/dist/api/account.d.mts +2 -2
  12. package/dist/api/asset.d.cts +2 -2
  13. package/dist/api/asset.d.mts +2 -2
  14. package/dist/api/request.d.cts +3 -3
  15. package/dist/api/request.d.mts +3 -3
  16. package/dist/api/response.d.cts +1 -1
  17. package/dist/api/response.d.mts +1 -1
  18. package/dist/api/transaction.d.cts +71 -71
  19. package/dist/api/transaction.d.mts +71 -71
  20. package/dist/api/v2/create-account/bip44.d.cts +1 -1
  21. package/dist/api/v2/create-account/bip44.d.mts +1 -1
  22. package/dist/api/v2/create-account/index.d.cts +1 -1
  23. package/dist/api/v2/create-account/index.d.mts +1 -1
  24. package/dist/api/v2/keyring-type.cjs +0 -4
  25. package/dist/api/v2/keyring-type.cjs.map +1 -1
  26. package/dist/api/v2/keyring-type.d.cts +1 -5
  27. package/dist/api/v2/keyring-type.d.cts.map +1 -1
  28. package/dist/api/v2/keyring-type.d.mts +1 -5
  29. package/dist/api/v2/keyring-type.d.mts.map +1 -1
  30. package/dist/api/v2/keyring-type.mjs +0 -4
  31. package/dist/api/v2/keyring-type.mjs.map +1 -1
  32. package/dist/btc/types.d.cts +8 -8
  33. package/dist/btc/types.d.mts +8 -8
  34. package/dist/eth/erc4337/types.d.cts +3 -3
  35. package/dist/eth/erc4337/types.d.mts +3 -3
  36. package/dist/eth/rpc/params.d.cts +29 -29
  37. package/dist/eth/rpc/params.d.mts +29 -29
  38. package/dist/eth/types.d.cts +4 -4
  39. package/dist/eth/types.d.mts +4 -4
  40. package/dist/events.d.cts +50 -50
  41. package/dist/events.d.mts +50 -50
  42. package/dist/rpc.d.cts +133 -133
  43. package/dist/rpc.d.mts +133 -133
  44. package/dist/sol/types.d.cts +2 -2
  45. package/dist/sol/types.d.mts +2 -2
  46. package/dist/trx/types.d.cts +2 -2
  47. package/dist/trx/types.d.mts +2 -2
  48. package/package.json +1 -1
@@ -226,13 +226,17 @@ export declare const TransactionEventStruct: import("@metamask/superstruct").Str
226
226
  * ```
227
227
  */
228
228
  export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
229
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
229
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
230
230
  id: string;
231
+ account: string;
232
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
233
+ timestamp: number | null;
234
+ chain: `${string}:${string}`;
231
235
  from: {
232
236
  address: string;
233
237
  asset: {
234
- unit: string;
235
238
  type: `${string}:${string}/${string}:${string}`;
239
+ unit: string;
236
240
  amount: string;
237
241
  fungible: true;
238
242
  } | {
@@ -240,19 +244,11 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
240
244
  fungible: false;
241
245
  } | null;
242
246
  }[];
243
- events: {
244
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
245
- timestamp: number | null;
246
- }[];
247
- chain: `${string}:${string}`;
248
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
249
- account: string;
250
- timestamp: number | null;
251
247
  to: {
252
248
  address: string;
253
249
  asset: {
254
- unit: string;
255
250
  type: `${string}:${string}/${string}:${string}`;
251
+ unit: string;
256
252
  amount: string;
257
253
  fungible: true;
258
254
  } | {
@@ -263,8 +259,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
263
259
  fees: {
264
260
  type: "base" | "priority";
265
261
  asset: {
266
- unit: string;
267
262
  type: `${string}:${string}/${string}:${string}`;
263
+ unit: string;
268
264
  amount: string;
269
265
  fungible: true;
270
266
  } | {
@@ -272,6 +268,10 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
272
268
  fungible: false;
273
269
  };
274
270
  }[];
271
+ events: {
272
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
273
+ timestamp: number | null;
274
+ }[];
275
275
  details?: {
276
276
  origin?: string;
277
277
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -308,8 +308,7 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
308
308
  * Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
309
309
  * details on the UI.
310
310
  */
311
- type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw", {
312
- unknown: "unknown";
311
+ type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown", {
313
312
  send: "send";
314
313
  receive: "receive";
315
314
  swap: "swap";
@@ -317,6 +316,7 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
317
316
  "bridge:receive": "bridge:receive";
318
317
  "stake:deposit": "stake:deposit";
319
318
  "stake:withdraw": "stake:withdraw";
319
+ unknown: "unknown";
320
320
  }>;
321
321
  /**
322
322
  * Transaction sender addresses and amounts.
@@ -324,8 +324,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
324
324
  from: import("@metamask/superstruct").Struct<{
325
325
  address: string;
326
326
  asset: {
327
- unit: string;
328
327
  type: `${string}:${string}/${string}:${string}`;
328
+ unit: string;
329
329
  amount: string;
330
330
  fungible: true;
331
331
  } | {
@@ -335,8 +335,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
335
335
  }[], import("@metamask/superstruct").Struct<{
336
336
  address: string;
337
337
  asset: {
338
- unit: string;
339
338
  type: `${string}:${string}/${string}:${string}`;
339
+ unit: string;
340
340
  amount: string;
341
341
  fungible: true;
342
342
  } | {
@@ -352,8 +352,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
352
352
  * Asset being transferred.
353
353
  */
354
354
  asset: import("@metamask/superstruct").Struct<{
355
- unit: string;
356
355
  type: `${string}:${string}/${string}:${string}`;
356
+ unit: string;
357
357
  amount: string;
358
358
  fungible: true;
359
359
  } | {
@@ -367,8 +367,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
367
367
  to: import("@metamask/superstruct").Struct<{
368
368
  address: string;
369
369
  asset: {
370
- unit: string;
371
370
  type: `${string}:${string}/${string}:${string}`;
371
+ unit: string;
372
372
  amount: string;
373
373
  fungible: true;
374
374
  } | {
@@ -378,8 +378,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
378
378
  }[], import("@metamask/superstruct").Struct<{
379
379
  address: string;
380
380
  asset: {
381
- unit: string;
382
381
  type: `${string}:${string}/${string}:${string}`;
382
+ unit: string;
383
383
  amount: string;
384
384
  fungible: true;
385
385
  } | {
@@ -395,8 +395,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
395
395
  * Asset being transferred.
396
396
  */
397
397
  asset: import("@metamask/superstruct").Struct<{
398
- unit: string;
399
398
  type: `${string}:${string}/${string}:${string}`;
399
+ unit: string;
400
400
  amount: string;
401
401
  fungible: true;
402
402
  } | {
@@ -410,8 +410,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
410
410
  fees: import("@metamask/superstruct").Struct<{
411
411
  type: "base" | "priority";
412
412
  asset: {
413
- unit: string;
414
413
  type: `${string}:${string}/${string}:${string}`;
414
+ unit: string;
415
415
  amount: string;
416
416
  fungible: true;
417
417
  } | {
@@ -421,8 +421,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
421
421
  }[], import("@metamask/superstruct").Struct<{
422
422
  type: "base" | "priority";
423
423
  asset: {
424
- unit: string;
425
424
  type: `${string}:${string}/${string}:${string}`;
425
+ unit: string;
426
426
  amount: string;
427
427
  fungible: true;
428
428
  } | {
@@ -441,8 +441,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
441
441
  * Asset used to pay for the fee.
442
442
  */
443
443
  asset: import("@metamask/superstruct").Struct<{
444
- unit: string;
445
444
  type: `${string}:${string}/${string}:${string}`;
445
+ unit: string;
446
446
  amount: string;
447
447
  fungible: true;
448
448
  } | {
@@ -546,14 +546,19 @@ export type Transaction = Infer<typeof TransactionStruct>;
546
546
  * ```
547
547
  */
548
548
  export declare const TransactionsPageStruct: import("@metamask/superstruct").Struct<{
549
+ next: string | null;
549
550
  data: {
550
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
551
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
551
552
  id: string;
553
+ account: string;
554
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
555
+ timestamp: number | null;
556
+ chain: `${string}:${string}`;
552
557
  from: {
553
558
  address: string;
554
559
  asset: {
555
- unit: string;
556
560
  type: `${string}:${string}/${string}:${string}`;
561
+ unit: string;
557
562
  amount: string;
558
563
  fungible: true;
559
564
  } | {
@@ -561,19 +566,11 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
561
566
  fungible: false;
562
567
  } | null;
563
568
  }[];
564
- events: {
565
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
566
- timestamp: number | null;
567
- }[];
568
- chain: `${string}:${string}`;
569
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
570
- account: string;
571
- timestamp: number | null;
572
569
  to: {
573
570
  address: string;
574
571
  asset: {
575
- unit: string;
576
572
  type: `${string}:${string}/${string}:${string}`;
573
+ unit: string;
577
574
  amount: string;
578
575
  fungible: true;
579
576
  } | {
@@ -584,8 +581,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
584
581
  fees: {
585
582
  type: "base" | "priority";
586
583
  asset: {
587
- unit: string;
588
584
  type: `${string}:${string}/${string}:${string}`;
585
+ unit: string;
589
586
  amount: string;
590
587
  fungible: true;
591
588
  } | {
@@ -593,24 +590,31 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
593
590
  fungible: false;
594
591
  };
595
592
  }[];
593
+ events: {
594
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
595
+ timestamp: number | null;
596
+ }[];
596
597
  details?: {
597
598
  origin?: string;
598
599
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
599
600
  };
600
601
  }[];
601
- next: string | null;
602
602
  }, {
603
603
  /**
604
604
  * List of transactions.
605
605
  */
606
606
  data: import("@metamask/superstruct").Struct<{
607
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
607
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
608
608
  id: string;
609
+ account: string;
610
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
611
+ timestamp: number | null;
612
+ chain: `${string}:${string}`;
609
613
  from: {
610
614
  address: string;
611
615
  asset: {
612
- unit: string;
613
616
  type: `${string}:${string}/${string}:${string}`;
617
+ unit: string;
614
618
  amount: string;
615
619
  fungible: true;
616
620
  } | {
@@ -618,19 +622,11 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
618
622
  fungible: false;
619
623
  } | null;
620
624
  }[];
621
- events: {
622
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
623
- timestamp: number | null;
624
- }[];
625
- chain: `${string}:${string}`;
626
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
627
- account: string;
628
- timestamp: number | null;
629
625
  to: {
630
626
  address: string;
631
627
  asset: {
632
- unit: string;
633
628
  type: `${string}:${string}/${string}:${string}`;
629
+ unit: string;
634
630
  amount: string;
635
631
  fungible: true;
636
632
  } | {
@@ -641,8 +637,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
641
637
  fees: {
642
638
  type: "base" | "priority";
643
639
  asset: {
644
- unit: string;
645
640
  type: `${string}:${string}/${string}:${string}`;
641
+ unit: string;
646
642
  amount: string;
647
643
  fungible: true;
648
644
  } | {
@@ -650,18 +646,26 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
650
646
  fungible: false;
651
647
  };
652
648
  }[];
649
+ events: {
650
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
651
+ timestamp: number | null;
652
+ }[];
653
653
  details?: {
654
654
  origin?: string;
655
655
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
656
656
  };
657
657
  }[], import("@metamask/superstruct").Struct<{
658
- type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw";
658
+ type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown";
659
659
  id: string;
660
+ account: string;
661
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
662
+ timestamp: number | null;
663
+ chain: `${string}:${string}`;
660
664
  from: {
661
665
  address: string;
662
666
  asset: {
663
- unit: string;
664
667
  type: `${string}:${string}/${string}:${string}`;
668
+ unit: string;
665
669
  amount: string;
666
670
  fungible: true;
667
671
  } | {
@@ -669,19 +673,11 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
669
673
  fungible: false;
670
674
  } | null;
671
675
  }[];
672
- events: {
673
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
674
- timestamp: number | null;
675
- }[];
676
- chain: `${string}:${string}`;
677
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
678
- account: string;
679
- timestamp: number | null;
680
676
  to: {
681
677
  address: string;
682
678
  asset: {
683
- unit: string;
684
679
  type: `${string}:${string}/${string}:${string}`;
680
+ unit: string;
685
681
  amount: string;
686
682
  fungible: true;
687
683
  } | {
@@ -692,8 +688,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
692
688
  fees: {
693
689
  type: "base" | "priority";
694
690
  asset: {
695
- unit: string;
696
691
  type: `${string}:${string}/${string}:${string}`;
692
+ unit: string;
697
693
  amount: string;
698
694
  fungible: true;
699
695
  } | {
@@ -701,6 +697,10 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
701
697
  fungible: false;
702
698
  };
703
699
  }[];
700
+ events: {
701
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
702
+ timestamp: number | null;
703
+ }[];
704
704
  details?: {
705
705
  origin?: string;
706
706
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -737,8 +737,7 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
737
737
  * Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
738
738
  * details on the UI.
739
739
  */
740
- type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw", {
741
- unknown: "unknown";
740
+ type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "unknown", {
742
741
  send: "send";
743
742
  receive: "receive";
744
743
  swap: "swap";
@@ -746,6 +745,7 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
746
745
  "bridge:receive": "bridge:receive";
747
746
  "stake:deposit": "stake:deposit";
748
747
  "stake:withdraw": "stake:withdraw";
748
+ unknown: "unknown";
749
749
  }>;
750
750
  /**
751
751
  * Transaction sender addresses and amounts.
@@ -753,8 +753,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
753
753
  from: import("@metamask/superstruct").Struct<{
754
754
  address: string;
755
755
  asset: {
756
- unit: string;
757
756
  type: `${string}:${string}/${string}:${string}`;
757
+ unit: string;
758
758
  amount: string;
759
759
  fungible: true;
760
760
  } | {
@@ -764,8 +764,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
764
764
  }[], import("@metamask/superstruct").Struct<{
765
765
  address: string;
766
766
  asset: {
767
- unit: string;
768
767
  type: `${string}:${string}/${string}:${string}`;
768
+ unit: string;
769
769
  amount: string;
770
770
  fungible: true;
771
771
  } | {
@@ -781,8 +781,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
781
781
  * Asset being transferred.
782
782
  */
783
783
  asset: import("@metamask/superstruct").Struct<{
784
- unit: string;
785
784
  type: `${string}:${string}/${string}:${string}`;
785
+ unit: string;
786
786
  amount: string;
787
787
  fungible: true;
788
788
  } | {
@@ -796,8 +796,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
796
796
  to: import("@metamask/superstruct").Struct<{
797
797
  address: string;
798
798
  asset: {
799
- unit: string;
800
799
  type: `${string}:${string}/${string}:${string}`;
800
+ unit: string;
801
801
  amount: string;
802
802
  fungible: true;
803
803
  } | {
@@ -807,8 +807,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
807
807
  }[], import("@metamask/superstruct").Struct<{
808
808
  address: string;
809
809
  asset: {
810
- unit: string;
811
810
  type: `${string}:${string}/${string}:${string}`;
811
+ unit: string;
812
812
  amount: string;
813
813
  fungible: true;
814
814
  } | {
@@ -824,8 +824,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
824
824
  * Asset being transferred.
825
825
  */
826
826
  asset: import("@metamask/superstruct").Struct<{
827
- unit: string;
828
827
  type: `${string}:${string}/${string}:${string}`;
828
+ unit: string;
829
829
  amount: string;
830
830
  fungible: true;
831
831
  } | {
@@ -839,8 +839,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
839
839
  fees: import("@metamask/superstruct").Struct<{
840
840
  type: "base" | "priority";
841
841
  asset: {
842
- unit: string;
843
842
  type: `${string}:${string}/${string}:${string}`;
843
+ unit: string;
844
844
  amount: string;
845
845
  fungible: true;
846
846
  } | {
@@ -850,8 +850,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
850
850
  }[], import("@metamask/superstruct").Struct<{
851
851
  type: "base" | "priority";
852
852
  asset: {
853
- unit: string;
854
853
  type: `${string}:${string}/${string}:${string}`;
854
+ unit: string;
855
855
  amount: string;
856
856
  fungible: true;
857
857
  } | {
@@ -870,8 +870,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
870
870
  * Asset used to pay for the fee.
871
871
  */
872
872
  asset: import("@metamask/superstruct").Struct<{
873
- unit: string;
874
873
  type: `${string}:${string}/${string}:${string}`;
874
+ unit: string;
875
875
  amount: string;
876
876
  fungible: true;
877
877
  } | {
@@ -85,11 +85,11 @@ export type CreateAccountBip44DiscoverOptions = Infer<typeof CreateAccountBip44D
85
85
  */
86
86
  export declare const CreateAccountBip44DeriveIndexRangeOptionsStruct: import("@metamask/superstruct").Struct<{
87
87
  type: "bip44:derive-index-range";
88
+ entropySource: string;
88
89
  range: {
89
90
  from: number;
90
91
  to: number;
91
92
  };
92
- entropySource: string;
93
93
  }, {
94
94
  /**
95
95
  * The type of the options.
@@ -85,11 +85,11 @@ export type CreateAccountBip44DiscoverOptions = Infer<typeof CreateAccountBip44D
85
85
  */
86
86
  export declare const CreateAccountBip44DeriveIndexRangeOptionsStruct: import("@metamask/superstruct").Struct<{
87
87
  type: "bip44:derive-index-range";
88
+ entropySource: string;
88
89
  range: {
89
90
  from: number;
90
91
  to: number;
91
92
  };
92
- entropySource: string;
93
93
  }, {
94
94
  /**
95
95
  * The type of the options.
@@ -63,11 +63,11 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
63
63
  entropySource: string;
64
64
  } | {
65
65
  type: "bip44:derive-index-range";
66
+ entropySource: string;
66
67
  range: {
67
68
  from: number;
68
69
  to: number;
69
70
  };
70
- entropySource: string;
71
71
  } | {
72
72
  type: "custom";
73
73
  } | {
@@ -63,11 +63,11 @@ export declare const CreateAccountOptionsStruct: import("@metamask/superstruct")
63
63
  entropySource: string;
64
64
  } | {
65
65
  type: "bip44:derive-index-range";
66
+ entropySource: string;
66
67
  range: {
67
68
  from: number;
68
69
  to: number;
69
70
  };
70
- entropySource: string;
71
71
  } | {
72
72
  type: "custom";
73
73
  } | {
@@ -40,9 +40,5 @@ var KeyringType;
40
40
  * Represents keyring backed by a OneKey hardware wallet.
41
41
  */
42
42
  KeyringType["OneKey"] = "onekey";
43
- /**
44
- * Represents keyring for cash accounts.
45
- */
46
- KeyringType["Cash"] = "cash";
47
43
  })(KeyringType || (exports.KeyringType = KeyringType = {}));
48
44
  //# sourceMappingURL=keyring-type.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-type.cjs","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,WA+CX;AA/CD,WAAY,WAAW;IACrB;;OAEG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,yCAA0B,CAAA;IAE1B;;;;OAIG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,kCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,4BAAa,CAAA;AACf,CAAC,EA/CW,WAAW,2BAAX,WAAW,QA+CtB","sourcesContent":["/**\n * Enum representing the different types of keyrings supported.\n */\nexport enum KeyringType {\n /**\n * Represents a hierarchical deterministic (HD) keyring.\n */\n Hd = 'hd',\n\n /**\n * Represents a keyring that directly stores private keys.\n */\n PrivateKey = 'private-key',\n\n /**\n * Represents a keyring that implements the QR protocol.\n *\n * See: https://eips.ethereum.org/EIPS/eip-4527\n */\n Qr = 'qr',\n\n /**\n * Represents keyring backed by a Snap.\n */\n Snap = 'snap',\n\n /**\n * Represents keyring backed by a Ledger hardware wallet.\n */\n Ledger = 'ledger',\n\n /**\n * Represents keyring backed by a Lattice hardware wallet.\n */\n Lattice = 'lattice',\n\n /**\n * Represents keyring backed by a Trezor hardware wallet.\n */\n Trezor = 'trezor',\n\n /**\n * Represents keyring backed by a OneKey hardware wallet.\n */\n OneKey = 'onekey',\n\n /**\n * Represents keyring for cash accounts.\n */\n Cash = 'cash',\n}\n"]}
1
+ {"version":3,"file":"keyring-type.cjs","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,WA0CX;AA1CD,WAAY,WAAW;IACrB;;OAEG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,yCAA0B,CAAA;IAE1B;;;;OAIG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,kCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,gCAAiB,CAAA;AACnB,CAAC,EA1CW,WAAW,2BAAX,WAAW,QA0CtB","sourcesContent":["/**\n * Enum representing the different types of keyrings supported.\n */\nexport enum KeyringType {\n /**\n * Represents a hierarchical deterministic (HD) keyring.\n */\n Hd = 'hd',\n\n /**\n * Represents a keyring that directly stores private keys.\n */\n PrivateKey = 'private-key',\n\n /**\n * Represents a keyring that implements the QR protocol.\n *\n * See: https://eips.ethereum.org/EIPS/eip-4527\n */\n Qr = 'qr',\n\n /**\n * Represents keyring backed by a Snap.\n */\n Snap = 'snap',\n\n /**\n * Represents keyring backed by a Ledger hardware wallet.\n */\n Ledger = 'ledger',\n\n /**\n * Represents keyring backed by a Lattice hardware wallet.\n */\n Lattice = 'lattice',\n\n /**\n * Represents keyring backed by a Trezor hardware wallet.\n */\n Trezor = 'trezor',\n\n /**\n * Represents keyring backed by a OneKey hardware wallet.\n */\n OneKey = 'onekey',\n}\n"]}
@@ -35,10 +35,6 @@ export declare enum KeyringType {
35
35
  /**
36
36
  * Represents keyring backed by a OneKey hardware wallet.
37
37
  */
38
- OneKey = "onekey",
39
- /**
40
- * Represents keyring for cash accounts.
41
- */
42
- Cash = "cash"
38
+ OneKey = "onekey"
43
39
  }
44
40
  //# sourceMappingURL=keyring-type.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-type.d.cts","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"keyring-type.d.cts","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;CAClB"}
@@ -35,10 +35,6 @@ export declare enum KeyringType {
35
35
  /**
36
36
  * Represents keyring backed by a OneKey hardware wallet.
37
37
  */
38
- OneKey = "onekey",
39
- /**
40
- * Represents keyring for cash accounts.
41
- */
42
- Cash = "cash"
38
+ OneKey = "onekey"
43
39
  }
44
40
  //# sourceMappingURL=keyring-type.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-type.d.mts","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"keyring-type.d.mts","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;CAClB"}
@@ -37,9 +37,5 @@ export var KeyringType;
37
37
  * Represents keyring backed by a OneKey hardware wallet.
38
38
  */
39
39
  KeyringType["OneKey"] = "onekey";
40
- /**
41
- * Represents keyring for cash accounts.
42
- */
43
- KeyringType["Cash"] = "cash";
44
40
  })(KeyringType || (KeyringType = {}));
45
41
  //# sourceMappingURL=keyring-type.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyring-type.mjs","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,WA+CX;AA/CD,WAAY,WAAW;IACrB;;OAEG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,yCAA0B,CAAA;IAE1B;;;;OAIG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,kCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,4BAAa,CAAA;AACf,CAAC,EA/CW,WAAW,KAAX,WAAW,QA+CtB","sourcesContent":["/**\n * Enum representing the different types of keyrings supported.\n */\nexport enum KeyringType {\n /**\n * Represents a hierarchical deterministic (HD) keyring.\n */\n Hd = 'hd',\n\n /**\n * Represents a keyring that directly stores private keys.\n */\n PrivateKey = 'private-key',\n\n /**\n * Represents a keyring that implements the QR protocol.\n *\n * See: https://eips.ethereum.org/EIPS/eip-4527\n */\n Qr = 'qr',\n\n /**\n * Represents keyring backed by a Snap.\n */\n Snap = 'snap',\n\n /**\n * Represents keyring backed by a Ledger hardware wallet.\n */\n Ledger = 'ledger',\n\n /**\n * Represents keyring backed by a Lattice hardware wallet.\n */\n Lattice = 'lattice',\n\n /**\n * Represents keyring backed by a Trezor hardware wallet.\n */\n Trezor = 'trezor',\n\n /**\n * Represents keyring backed by a OneKey hardware wallet.\n */\n OneKey = 'onekey',\n\n /**\n * Represents keyring for cash accounts.\n */\n Cash = 'cash',\n}\n"]}
1
+ {"version":3,"file":"keyring-type.mjs","sourceRoot":"","sources":["../../../src/api/v2/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,WA0CX;AA1CD,WAAY,WAAW;IACrB;;OAEG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,yCAA0B,CAAA;IAE1B;;;;OAIG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,kCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,gCAAiB,CAAA;AACnB,CAAC,EA1CW,WAAW,KAAX,WAAW,QA0CtB","sourcesContent":["/**\n * Enum representing the different types of keyrings supported.\n */\nexport enum KeyringType {\n /**\n * Represents a hierarchical deterministic (HD) keyring.\n */\n Hd = 'hd',\n\n /**\n * Represents a keyring that directly stores private keys.\n */\n PrivateKey = 'private-key',\n\n /**\n * Represents a keyring that implements the QR protocol.\n *\n * See: https://eips.ethereum.org/EIPS/eip-4527\n */\n Qr = 'qr',\n\n /**\n * Represents keyring backed by a Snap.\n */\n Snap = 'snap',\n\n /**\n * Represents keyring backed by a Ledger hardware wallet.\n */\n Ledger = 'ledger',\n\n /**\n * Represents keyring backed by a Lattice hardware wallet.\n */\n Lattice = 'lattice',\n\n /**\n * Represents keyring backed by a Trezor hardware wallet.\n */\n Trezor = 'trezor',\n\n /**\n * Represents keyring backed by a OneKey hardware wallet.\n */\n OneKey = 'onekey',\n}\n"]}
@@ -20,6 +20,8 @@ export declare enum BtcMethod {
20
20
  export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Struct<{
21
21
  type: "bip122:p2pkh";
22
22
  id: string;
23
+ address: string;
24
+ scopes: `${string}:${string}`[];
23
25
  options: Record<string, import("@metamask/utils").Json> & {
24
26
  entropy?: {
25
27
  type: "mnemonic";
@@ -33,8 +35,6 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
33
35
  };
34
36
  exportable?: boolean;
35
37
  };
36
- address: string;
37
- scopes: `${string}:${string}`[];
38
38
  methods: BtcMethod[];
39
39
  }, {
40
40
  /**
@@ -81,6 +81,8 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
81
81
  export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struct<{
82
82
  type: "bip122:p2sh";
83
83
  id: string;
84
+ address: string;
85
+ scopes: `${string}:${string}`[];
84
86
  options: Record<string, import("@metamask/utils").Json> & {
85
87
  entropy?: {
86
88
  type: "mnemonic";
@@ -94,8 +96,6 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
94
96
  };
95
97
  exportable?: boolean;
96
98
  };
97
- address: string;
98
- scopes: `${string}:${string}`[];
99
99
  methods: BtcMethod[];
100
100
  }, {
101
101
  /**
@@ -142,6 +142,8 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
142
142
  export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Struct<{
143
143
  type: "bip122:p2wpkh";
144
144
  id: string;
145
+ address: string;
146
+ scopes: `${string}:${string}`[];
145
147
  options: Record<string, import("@metamask/utils").Json> & {
146
148
  entropy?: {
147
149
  type: "mnemonic";
@@ -155,8 +157,6 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
155
157
  };
156
158
  exportable?: boolean;
157
159
  };
158
- address: string;
159
- scopes: `${string}:${string}`[];
160
160
  methods: BtcMethod[];
161
161
  }, {
162
162
  /**
@@ -203,6 +203,8 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
203
203
  export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struct<{
204
204
  type: "bip122:p2tr";
205
205
  id: string;
206
+ address: string;
207
+ scopes: `${string}:${string}`[];
206
208
  options: Record<string, import("@metamask/utils").Json> & {
207
209
  entropy?: {
208
210
  type: "mnemonic";
@@ -216,8 +218,6 @@ export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struc
216
218
  };
217
219
  exportable?: boolean;
218
220
  };
219
- address: string;
220
- scopes: `${string}:${string}`[];
221
221
  methods: BtcMethod[];
222
222
  }, {
223
223
  /**