@metamask-previews/keyring-api 23.2.0-023fc63 → 23.2.0-7540e4c

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.
@@ -230,17 +230,13 @@ export declare const TransactionEventStruct: import("@metamask/superstruct").Str
230
230
  * ```
231
231
  */
232
232
  export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
233
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
233
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
234
234
  id: string;
235
- account: string;
236
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
237
- timestamp: number | null;
238
- chain: `${string}:${string}`;
239
235
  from: {
240
236
  address: string;
241
237
  asset: {
242
- type: `${string}:${string}/${string}:${string}`;
243
238
  unit: string;
239
+ type: `${string}:${string}/${string}:${string}`;
244
240
  amount: string;
245
241
  fungible: true;
246
242
  } | {
@@ -248,11 +244,19 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
248
244
  fungible: false;
249
245
  } | null;
250
246
  }[];
247
+ events: {
248
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
249
+ timestamp: number | null;
250
+ }[];
251
+ chain: `${string}:${string}`;
252
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
253
+ account: string;
254
+ timestamp: number | null;
251
255
  to: {
252
256
  address: string;
253
257
  asset: {
254
- type: `${string}:${string}/${string}:${string}`;
255
258
  unit: string;
259
+ type: `${string}:${string}/${string}:${string}`;
256
260
  amount: string;
257
261
  fungible: true;
258
262
  } | {
@@ -263,8 +267,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
263
267
  fees: {
264
268
  type: "base" | "priority";
265
269
  asset: {
266
- type: `${string}:${string}/${string}:${string}`;
267
270
  unit: string;
271
+ type: `${string}:${string}/${string}:${string}`;
268
272
  amount: string;
269
273
  fungible: true;
270
274
  } | {
@@ -272,10 +276,6 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
272
276
  fungible: false;
273
277
  };
274
278
  }[];
275
- events: {
276
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
277
- timestamp: number | null;
278
- }[];
279
279
  details?: {
280
280
  origin?: string;
281
281
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -312,7 +312,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
312
312
  * Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
313
313
  * details on the UI.
314
314
  */
315
- type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown", {
315
+ type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve", {
316
+ unknown: "unknown";
316
317
  send: "send";
317
318
  receive: "receive";
318
319
  swap: "swap";
@@ -321,7 +322,6 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
321
322
  "stake:deposit": "stake:deposit";
322
323
  "stake:withdraw": "stake:withdraw";
323
324
  "token:approve": "token:approve";
324
- unknown: "unknown";
325
325
  }>;
326
326
  /**
327
327
  * Transaction sender addresses and amounts.
@@ -329,8 +329,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
329
329
  from: import("@metamask/superstruct").Struct<{
330
330
  address: string;
331
331
  asset: {
332
- type: `${string}:${string}/${string}:${string}`;
333
332
  unit: string;
333
+ type: `${string}:${string}/${string}:${string}`;
334
334
  amount: string;
335
335
  fungible: true;
336
336
  } | {
@@ -340,8 +340,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
340
340
  }[], import("@metamask/superstruct").Struct<{
341
341
  address: string;
342
342
  asset: {
343
- type: `${string}:${string}/${string}:${string}`;
344
343
  unit: string;
344
+ type: `${string}:${string}/${string}:${string}`;
345
345
  amount: string;
346
346
  fungible: true;
347
347
  } | {
@@ -357,8 +357,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
357
357
  * Asset being transferred.
358
358
  */
359
359
  asset: import("@metamask/superstruct").Struct<{
360
- type: `${string}:${string}/${string}:${string}`;
361
360
  unit: string;
361
+ type: `${string}:${string}/${string}:${string}`;
362
362
  amount: string;
363
363
  fungible: true;
364
364
  } | {
@@ -372,8 +372,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
372
372
  to: import("@metamask/superstruct").Struct<{
373
373
  address: string;
374
374
  asset: {
375
- type: `${string}:${string}/${string}:${string}`;
376
375
  unit: string;
376
+ type: `${string}:${string}/${string}:${string}`;
377
377
  amount: string;
378
378
  fungible: true;
379
379
  } | {
@@ -383,8 +383,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
383
383
  }[], import("@metamask/superstruct").Struct<{
384
384
  address: string;
385
385
  asset: {
386
- type: `${string}:${string}/${string}:${string}`;
387
386
  unit: string;
387
+ type: `${string}:${string}/${string}:${string}`;
388
388
  amount: string;
389
389
  fungible: true;
390
390
  } | {
@@ -400,8 +400,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
400
400
  * Asset being transferred.
401
401
  */
402
402
  asset: import("@metamask/superstruct").Struct<{
403
- type: `${string}:${string}/${string}:${string}`;
404
403
  unit: string;
404
+ type: `${string}:${string}/${string}:${string}`;
405
405
  amount: string;
406
406
  fungible: true;
407
407
  } | {
@@ -415,8 +415,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
415
415
  fees: import("@metamask/superstruct").Struct<{
416
416
  type: "base" | "priority";
417
417
  asset: {
418
- type: `${string}:${string}/${string}:${string}`;
419
418
  unit: string;
419
+ type: `${string}:${string}/${string}:${string}`;
420
420
  amount: string;
421
421
  fungible: true;
422
422
  } | {
@@ -426,8 +426,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
426
426
  }[], import("@metamask/superstruct").Struct<{
427
427
  type: "base" | "priority";
428
428
  asset: {
429
- type: `${string}:${string}/${string}:${string}`;
430
429
  unit: string;
430
+ type: `${string}:${string}/${string}:${string}`;
431
431
  amount: string;
432
432
  fungible: true;
433
433
  } | {
@@ -446,8 +446,8 @@ export declare const TransactionStruct: import("@metamask/superstruct").Struct<{
446
446
  * Asset used to pay for the fee.
447
447
  */
448
448
  asset: import("@metamask/superstruct").Struct<{
449
- type: `${string}:${string}/${string}:${string}`;
450
449
  unit: string;
450
+ type: `${string}:${string}/${string}:${string}`;
451
451
  amount: string;
452
452
  fungible: true;
453
453
  } | {
@@ -551,19 +551,14 @@ export type Transaction = Infer<typeof TransactionStruct>;
551
551
  * ```
552
552
  */
553
553
  export declare const TransactionsPageStruct: import("@metamask/superstruct").Struct<{
554
- next: string | null;
555
554
  data: {
556
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
555
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
557
556
  id: string;
558
- account: string;
559
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
560
- timestamp: number | null;
561
- chain: `${string}:${string}`;
562
557
  from: {
563
558
  address: string;
564
559
  asset: {
565
- type: `${string}:${string}/${string}:${string}`;
566
560
  unit: string;
561
+ type: `${string}:${string}/${string}:${string}`;
567
562
  amount: string;
568
563
  fungible: true;
569
564
  } | {
@@ -571,11 +566,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
571
566
  fungible: false;
572
567
  } | null;
573
568
  }[];
569
+ events: {
570
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
571
+ timestamp: number | null;
572
+ }[];
573
+ chain: `${string}:${string}`;
574
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
575
+ account: string;
576
+ timestamp: number | null;
574
577
  to: {
575
578
  address: string;
576
579
  asset: {
577
- type: `${string}:${string}/${string}:${string}`;
578
580
  unit: string;
581
+ type: `${string}:${string}/${string}:${string}`;
579
582
  amount: string;
580
583
  fungible: true;
581
584
  } | {
@@ -586,8 +589,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
586
589
  fees: {
587
590
  type: "base" | "priority";
588
591
  asset: {
589
- type: `${string}:${string}/${string}:${string}`;
590
592
  unit: string;
593
+ type: `${string}:${string}/${string}:${string}`;
591
594
  amount: string;
592
595
  fungible: true;
593
596
  } | {
@@ -595,31 +598,24 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
595
598
  fungible: false;
596
599
  };
597
600
  }[];
598
- events: {
599
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
600
- timestamp: number | null;
601
- }[];
602
601
  details?: {
603
602
  origin?: string;
604
603
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
605
604
  };
606
605
  }[];
606
+ next: string | null;
607
607
  }, {
608
608
  /**
609
609
  * List of transactions.
610
610
  */
611
611
  data: import("@metamask/superstruct").Struct<{
612
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
612
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
613
613
  id: string;
614
- account: string;
615
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
616
- timestamp: number | null;
617
- chain: `${string}:${string}`;
618
614
  from: {
619
615
  address: string;
620
616
  asset: {
621
- type: `${string}:${string}/${string}:${string}`;
622
617
  unit: string;
618
+ type: `${string}:${string}/${string}:${string}`;
623
619
  amount: string;
624
620
  fungible: true;
625
621
  } | {
@@ -627,11 +623,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
627
623
  fungible: false;
628
624
  } | null;
629
625
  }[];
626
+ events: {
627
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
628
+ timestamp: number | null;
629
+ }[];
630
+ chain: `${string}:${string}`;
631
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
632
+ account: string;
633
+ timestamp: number | null;
630
634
  to: {
631
635
  address: string;
632
636
  asset: {
633
- type: `${string}:${string}/${string}:${string}`;
634
637
  unit: string;
638
+ type: `${string}:${string}/${string}:${string}`;
635
639
  amount: string;
636
640
  fungible: true;
637
641
  } | {
@@ -642,8 +646,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
642
646
  fees: {
643
647
  type: "base" | "priority";
644
648
  asset: {
645
- type: `${string}:${string}/${string}:${string}`;
646
649
  unit: string;
650
+ type: `${string}:${string}/${string}:${string}`;
647
651
  amount: string;
648
652
  fungible: true;
649
653
  } | {
@@ -651,26 +655,18 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
651
655
  fungible: false;
652
656
  };
653
657
  }[];
654
- events: {
655
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
656
- timestamp: number | null;
657
- }[];
658
658
  details?: {
659
659
  origin?: string;
660
660
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
661
661
  };
662
662
  }[], import("@metamask/superstruct").Struct<{
663
- type: "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown";
663
+ type: "unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve";
664
664
  id: string;
665
- account: string;
666
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
667
- timestamp: number | null;
668
- chain: `${string}:${string}`;
669
665
  from: {
670
666
  address: string;
671
667
  asset: {
672
- type: `${string}:${string}/${string}:${string}`;
673
668
  unit: string;
669
+ type: `${string}:${string}/${string}:${string}`;
674
670
  amount: string;
675
671
  fungible: true;
676
672
  } | {
@@ -678,11 +674,19 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
678
674
  fungible: false;
679
675
  } | null;
680
676
  }[];
677
+ events: {
678
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
679
+ timestamp: number | null;
680
+ }[];
681
+ chain: `${string}:${string}`;
682
+ status: "submitted" | "unconfirmed" | "confirmed" | "failed";
683
+ account: string;
684
+ timestamp: number | null;
681
685
  to: {
682
686
  address: string;
683
687
  asset: {
684
- type: `${string}:${string}/${string}:${string}`;
685
688
  unit: string;
689
+ type: `${string}:${string}/${string}:${string}`;
686
690
  amount: string;
687
691
  fungible: true;
688
692
  } | {
@@ -693,8 +697,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
693
697
  fees: {
694
698
  type: "base" | "priority";
695
699
  asset: {
696
- type: `${string}:${string}/${string}:${string}`;
697
700
  unit: string;
701
+ type: `${string}:${string}/${string}:${string}`;
698
702
  amount: string;
699
703
  fungible: true;
700
704
  } | {
@@ -702,10 +706,6 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
702
706
  fungible: false;
703
707
  };
704
708
  }[];
705
- events: {
706
- status: "submitted" | "unconfirmed" | "confirmed" | "failed";
707
- timestamp: number | null;
708
- }[];
709
709
  details?: {
710
710
  origin?: string;
711
711
  securityAlertResponse?: "Benign" | "Warning" | "Malicious";
@@ -742,7 +742,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
742
742
  * Transaction type {@see TransactionType}. This will be used by MetaMask to enrich the transaction
743
743
  * details on the UI.
744
744
  */
745
- type: import("@metamask/superstruct").Struct<"send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve" | "unknown", {
745
+ type: import("@metamask/superstruct").Struct<"unknown" | "send" | "receive" | "swap" | "bridge:send" | "bridge:receive" | "stake:deposit" | "stake:withdraw" | "token:approve", {
746
+ unknown: "unknown";
746
747
  send: "send";
747
748
  receive: "receive";
748
749
  swap: "swap";
@@ -751,7 +752,6 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
751
752
  "stake:deposit": "stake:deposit";
752
753
  "stake:withdraw": "stake:withdraw";
753
754
  "token:approve": "token:approve";
754
- unknown: "unknown";
755
755
  }>;
756
756
  /**
757
757
  * Transaction sender addresses and amounts.
@@ -759,8 +759,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
759
759
  from: import("@metamask/superstruct").Struct<{
760
760
  address: string;
761
761
  asset: {
762
- type: `${string}:${string}/${string}:${string}`;
763
762
  unit: string;
763
+ type: `${string}:${string}/${string}:${string}`;
764
764
  amount: string;
765
765
  fungible: true;
766
766
  } | {
@@ -770,8 +770,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
770
770
  }[], import("@metamask/superstruct").Struct<{
771
771
  address: string;
772
772
  asset: {
773
- type: `${string}:${string}/${string}:${string}`;
774
773
  unit: string;
774
+ type: `${string}:${string}/${string}:${string}`;
775
775
  amount: string;
776
776
  fungible: true;
777
777
  } | {
@@ -787,8 +787,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
787
787
  * Asset being transferred.
788
788
  */
789
789
  asset: import("@metamask/superstruct").Struct<{
790
- type: `${string}:${string}/${string}:${string}`;
791
790
  unit: string;
791
+ type: `${string}:${string}/${string}:${string}`;
792
792
  amount: string;
793
793
  fungible: true;
794
794
  } | {
@@ -802,8 +802,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
802
802
  to: import("@metamask/superstruct").Struct<{
803
803
  address: string;
804
804
  asset: {
805
- type: `${string}:${string}/${string}:${string}`;
806
805
  unit: string;
806
+ type: `${string}:${string}/${string}:${string}`;
807
807
  amount: string;
808
808
  fungible: true;
809
809
  } | {
@@ -813,8 +813,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
813
813
  }[], import("@metamask/superstruct").Struct<{
814
814
  address: string;
815
815
  asset: {
816
- type: `${string}:${string}/${string}:${string}`;
817
816
  unit: string;
817
+ type: `${string}:${string}/${string}:${string}`;
818
818
  amount: string;
819
819
  fungible: true;
820
820
  } | {
@@ -830,8 +830,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
830
830
  * Asset being transferred.
831
831
  */
832
832
  asset: import("@metamask/superstruct").Struct<{
833
- type: `${string}:${string}/${string}:${string}`;
834
833
  unit: string;
834
+ type: `${string}:${string}/${string}:${string}`;
835
835
  amount: string;
836
836
  fungible: true;
837
837
  } | {
@@ -845,8 +845,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
845
845
  fees: import("@metamask/superstruct").Struct<{
846
846
  type: "base" | "priority";
847
847
  asset: {
848
- type: `${string}:${string}/${string}:${string}`;
849
848
  unit: string;
849
+ type: `${string}:${string}/${string}:${string}`;
850
850
  amount: string;
851
851
  fungible: true;
852
852
  } | {
@@ -856,8 +856,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
856
856
  }[], import("@metamask/superstruct").Struct<{
857
857
  type: "base" | "priority";
858
858
  asset: {
859
- type: `${string}:${string}/${string}:${string}`;
860
859
  unit: string;
860
+ type: `${string}:${string}/${string}:${string}`;
861
861
  amount: string;
862
862
  fungible: true;
863
863
  } | {
@@ -876,8 +876,8 @@ export declare const TransactionsPageStruct: import("@metamask/superstruct").Str
876
876
  * Asset used to pay for the fee.
877
877
  */
878
878
  asset: import("@metamask/superstruct").Struct<{
879
- type: `${string}:${string}/${string}:${string}`;
880
879
  unit: string;
880
+ type: `${string}:${string}/${string}:${string}`;
881
881
  amount: string;
882
882
  fungible: true;
883
883
  } | {
@@ -20,8 +20,6 @@ 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}`[];
25
23
  options: Record<string, import("@metamask/utils").Json> & {
26
24
  entropy?: {
27
25
  type: "mnemonic";
@@ -35,6 +33,8 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
35
33
  };
36
34
  exportable?: boolean;
37
35
  };
36
+ address: string;
37
+ scopes: `${string}:${string}`[];
38
38
  methods: BtcMethod[];
39
39
  }, {
40
40
  /**
@@ -81,8 +81,6 @@ 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}`[];
86
84
  options: Record<string, import("@metamask/utils").Json> & {
87
85
  entropy?: {
88
86
  type: "mnemonic";
@@ -96,6 +94,8 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
96
94
  };
97
95
  exportable?: boolean;
98
96
  };
97
+ address: string;
98
+ scopes: `${string}:${string}`[];
99
99
  methods: BtcMethod[];
100
100
  }, {
101
101
  /**
@@ -142,8 +142,6 @@ 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}`[];
147
145
  options: Record<string, import("@metamask/utils").Json> & {
148
146
  entropy?: {
149
147
  type: "mnemonic";
@@ -157,6 +155,8 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
157
155
  };
158
156
  exportable?: boolean;
159
157
  };
158
+ address: string;
159
+ scopes: `${string}:${string}`[];
160
160
  methods: BtcMethod[];
161
161
  }, {
162
162
  /**
@@ -203,8 +203,6 @@ 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}`[];
208
206
  options: Record<string, import("@metamask/utils").Json> & {
209
207
  entropy?: {
210
208
  type: "mnemonic";
@@ -218,6 +216,8 @@ export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struc
218
216
  };
219
217
  exportable?: boolean;
220
218
  };
219
+ address: string;
220
+ scopes: `${string}:${string}`[];
221
221
  methods: BtcMethod[];
222
222
  }, {
223
223
  /**
@@ -20,8 +20,6 @@ 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}`[];
25
23
  options: Record<string, import("@metamask/utils").Json> & {
26
24
  entropy?: {
27
25
  type: "mnemonic";
@@ -35,6 +33,8 @@ export declare const BtcP2pkhAccountStruct: import("@metamask/superstruct").Stru
35
33
  };
36
34
  exportable?: boolean;
37
35
  };
36
+ address: string;
37
+ scopes: `${string}:${string}`[];
38
38
  methods: BtcMethod[];
39
39
  }, {
40
40
  /**
@@ -81,8 +81,6 @@ 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}`[];
86
84
  options: Record<string, import("@metamask/utils").Json> & {
87
85
  entropy?: {
88
86
  type: "mnemonic";
@@ -96,6 +94,8 @@ export declare const BtcP2shAccountStruct: import("@metamask/superstruct").Struc
96
94
  };
97
95
  exportable?: boolean;
98
96
  };
97
+ address: string;
98
+ scopes: `${string}:${string}`[];
99
99
  methods: BtcMethod[];
100
100
  }, {
101
101
  /**
@@ -142,8 +142,6 @@ 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}`[];
147
145
  options: Record<string, import("@metamask/utils").Json> & {
148
146
  entropy?: {
149
147
  type: "mnemonic";
@@ -157,6 +155,8 @@ export declare const BtcP2wpkhAccountStruct: import("@metamask/superstruct").Str
157
155
  };
158
156
  exportable?: boolean;
159
157
  };
158
+ address: string;
159
+ scopes: `${string}:${string}`[];
160
160
  methods: BtcMethod[];
161
161
  }, {
162
162
  /**
@@ -203,8 +203,6 @@ 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}`[];
208
206
  options: Record<string, import("@metamask/utils").Json> & {
209
207
  entropy?: {
210
208
  type: "mnemonic";
@@ -218,6 +216,8 @@ export declare const BtcP2trAccountStruct: import("@metamask/superstruct").Struc
218
216
  };
219
217
  exportable?: boolean;
220
218
  };
219
+ address: string;
220
+ scopes: `${string}:${string}`[];
221
221
  methods: BtcMethod[];
222
222
  }, {
223
223
  /**
@@ -5,8 +5,8 @@ import type { Infer } from "@metamask/superstruct";
5
5
  * @see https://eips.ethereum.org/EIPS/eip-4337#definitions
6
6
  */
7
7
  export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
8
- sender: string;
9
8
  nonce: string;
9
+ sender: string;
10
10
  initCode: string;
11
11
  callData: string;
12
12
  callGasLimit: string;
@@ -35,9 +35,9 @@ export type EthUserOperation = Infer<typeof EthUserOperationStruct>;
35
35
  * construct a UserOperation.
36
36
  */
37
37
  export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
38
- to: string;
39
- data: string;
40
38
  value: string;
39
+ data: string;
40
+ to: string;
41
41
  }, {
42
42
  /**
43
43
  * Address of the transaction recipient.
@@ -5,8 +5,8 @@ import type { Infer } from "@metamask/superstruct";
5
5
  * @see https://eips.ethereum.org/EIPS/eip-4337#definitions
6
6
  */
7
7
  export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
8
- sender: string;
9
8
  nonce: string;
9
+ sender: string;
10
10
  initCode: string;
11
11
  callData: string;
12
12
  callGasLimit: string;
@@ -35,9 +35,9 @@ export type EthUserOperation = Infer<typeof EthUserOperationStruct>;
35
35
  * construct a UserOperation.
36
36
  */
37
37
  export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
38
- to: string;
39
- data: string;
40
38
  value: string;
39
+ data: string;
40
+ to: string;
41
41
  }, {
42
42
  /**
43
43
  * Address of the transaction recipient.