@metamask-previews/bridge-controller 64.2.0-preview-a9886279 → 64.3.0-preview-cb897e9

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.
@@ -21,18 +21,6 @@ export declare const BridgeAssetSchema: import("@metamask/superstruct").Struct<{
21
21
  decimals: number;
22
22
  icon?: string | null | undefined;
23
23
  iconUrl?: string | null | undefined;
24
- rwaData?: {
25
- instrumentType: string;
26
- ticker: string;
27
- market: {
28
- nextOpen: string;
29
- nextClose: string;
30
- };
31
- nextPause: {
32
- start: string;
33
- end: string;
34
- };
35
- } | undefined;
36
24
  }, {
37
25
  /**
38
26
  * The chainId of the token
@@ -63,35 +51,6 @@ export declare const BridgeAssetSchema: import("@metamask/superstruct").Struct<{
63
51
  * URL for token icon
64
52
  */
65
53
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
66
- rwaData: import("@metamask/superstruct").Struct<{
67
- instrumentType: string;
68
- ticker: string;
69
- market: {
70
- nextOpen: string;
71
- nextClose: string;
72
- };
73
- nextPause: {
74
- start: string;
75
- end: string;
76
- };
77
- } | undefined, {
78
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
79
- ticker: import("@metamask/superstruct").Struct<string, null>;
80
- market: import("@metamask/superstruct").Struct<{
81
- nextOpen: string;
82
- nextClose: string;
83
- }, {
84
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
85
- nextClose: import("@metamask/superstruct").Struct<string, null>;
86
- }>;
87
- nextPause: import("@metamask/superstruct").Struct<{
88
- start: string;
89
- end: string;
90
- }, {
91
- start: import("@metamask/superstruct").Struct<string, null>;
92
- end: import("@metamask/superstruct").Struct<string, null>;
93
- }>;
94
- }>;
95
54
  }>;
96
55
  export declare const ChainConfigurationSchema: import("@metamask/superstruct").Struct<{
97
56
  isActiveSrc: boolean;
@@ -278,18 +237,6 @@ export declare const validateSwapsTokenObject: (data: unknown) => data is {
278
237
  decimals: number;
279
238
  icon?: string | null | undefined;
280
239
  iconUrl?: string | null | undefined;
281
- rwaData?: {
282
- instrumentType: string;
283
- ticker: string;
284
- market: {
285
- nextOpen: string;
286
- nextClose: string;
287
- };
288
- nextPause: {
289
- start: string;
290
- end: string;
291
- };
292
- } | undefined;
293
240
  };
294
241
  export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
295
242
  amount: string;
@@ -302,18 +249,6 @@ export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
302
249
  decimals: number;
303
250
  icon?: string | null | undefined;
304
251
  iconUrl?: string | null | undefined;
305
- rwaData?: {
306
- instrumentType: string;
307
- ticker: string;
308
- market: {
309
- nextOpen: string;
310
- nextClose: string;
311
- };
312
- nextPause: {
313
- start: string;
314
- end: string;
315
- };
316
- } | undefined;
317
252
  };
318
253
  }, {
319
254
  amount: import("@metamask/superstruct").Struct<string, null>;
@@ -326,18 +261,6 @@ export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
326
261
  decimals: number;
327
262
  icon?: string | null | undefined;
328
263
  iconUrl?: string | null | undefined;
329
- rwaData?: {
330
- instrumentType: string;
331
- ticker: string;
332
- market: {
333
- nextOpen: string;
334
- nextClose: string;
335
- };
336
- nextPause: {
337
- start: string;
338
- end: string;
339
- };
340
- } | undefined;
341
264
  }, {
342
265
  /**
343
266
  * The chainId of the token
@@ -368,35 +291,6 @@ export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
368
291
  * URL for token icon
369
292
  */
370
293
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
371
- rwaData: import("@metamask/superstruct").Struct<{
372
- instrumentType: string;
373
- ticker: string;
374
- market: {
375
- nextOpen: string;
376
- nextClose: string;
377
- };
378
- nextPause: {
379
- start: string;
380
- end: string;
381
- };
382
- } | undefined, {
383
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
384
- ticker: import("@metamask/superstruct").Struct<string, null>;
385
- market: import("@metamask/superstruct").Struct<{
386
- nextOpen: string;
387
- nextClose: string;
388
- }, {
389
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
390
- nextClose: import("@metamask/superstruct").Struct<string, null>;
391
- }>;
392
- nextPause: import("@metamask/superstruct").Struct<{
393
- start: string;
394
- end: string;
395
- }, {
396
- start: import("@metamask/superstruct").Struct<string, null>;
397
- end: import("@metamask/superstruct").Struct<string, null>;
398
- }>;
399
- }>;
400
294
  }>;
401
295
  }>;
402
296
  export declare const ProtocolSchema: import("@metamask/superstruct").Struct<{
@@ -420,18 +314,6 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
420
314
  decimals: number;
421
315
  icon?: string | null | undefined;
422
316
  iconUrl?: string | null | undefined;
423
- rwaData?: {
424
- instrumentType: string;
425
- ticker: string;
426
- market: {
427
- nextOpen: string;
428
- nextClose: string;
429
- };
430
- nextPause: {
431
- start: string;
432
- end: string;
433
- };
434
- } | undefined;
435
317
  };
436
318
  destAsset: {
437
319
  symbol: string;
@@ -442,18 +324,6 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
442
324
  decimals: number;
443
325
  icon?: string | null | undefined;
444
326
  iconUrl?: string | null | undefined;
445
- rwaData?: {
446
- instrumentType: string;
447
- ticker: string;
448
- market: {
449
- nextOpen: string;
450
- nextClose: string;
451
- };
452
- nextPause: {
453
- start: string;
454
- end: string;
455
- };
456
- } | undefined;
457
327
  };
458
328
  srcAmount: string;
459
329
  destAmount: string;
@@ -480,18 +350,6 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
480
350
  decimals: number;
481
351
  icon?: string | null | undefined;
482
352
  iconUrl?: string | null | undefined;
483
- rwaData?: {
484
- instrumentType: string;
485
- ticker: string;
486
- market: {
487
- nextOpen: string;
488
- nextClose: string;
489
- };
490
- nextPause: {
491
- start: string;
492
- end: string;
493
- };
494
- } | undefined;
495
353
  }, {
496
354
  /**
497
355
  * The chainId of the token
@@ -522,35 +380,6 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
522
380
  * URL for token icon
523
381
  */
524
382
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
525
- rwaData: import("@metamask/superstruct").Struct<{
526
- instrumentType: string;
527
- ticker: string;
528
- market: {
529
- nextOpen: string;
530
- nextClose: string;
531
- };
532
- nextPause: {
533
- start: string;
534
- end: string;
535
- };
536
- } | undefined, {
537
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
538
- ticker: import("@metamask/superstruct").Struct<string, null>;
539
- market: import("@metamask/superstruct").Struct<{
540
- nextOpen: string;
541
- nextClose: string;
542
- }, {
543
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
544
- nextClose: import("@metamask/superstruct").Struct<string, null>;
545
- }>;
546
- nextPause: import("@metamask/superstruct").Struct<{
547
- start: string;
548
- end: string;
549
- }, {
550
- start: import("@metamask/superstruct").Struct<string, null>;
551
- end: import("@metamask/superstruct").Struct<string, null>;
552
- }>;
553
- }>;
554
383
  }>;
555
384
  destAsset: import("@metamask/superstruct").Struct<{
556
385
  symbol: string;
@@ -561,18 +390,6 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
561
390
  decimals: number;
562
391
  icon?: string | null | undefined;
563
392
  iconUrl?: string | null | undefined;
564
- rwaData?: {
565
- instrumentType: string;
566
- ticker: string;
567
- market: {
568
- nextOpen: string;
569
- nextClose: string;
570
- };
571
- nextPause: {
572
- start: string;
573
- end: string;
574
- };
575
- } | undefined;
576
393
  }, {
577
394
  /**
578
395
  * The chainId of the token
@@ -603,35 +420,6 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
603
420
  * URL for token icon
604
421
  */
605
422
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
606
- rwaData: import("@metamask/superstruct").Struct<{
607
- instrumentType: string;
608
- ticker: string;
609
- market: {
610
- nextOpen: string;
611
- nextClose: string;
612
- };
613
- nextPause: {
614
- start: string;
615
- end: string;
616
- };
617
- } | undefined, {
618
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
619
- ticker: import("@metamask/superstruct").Struct<string, null>;
620
- market: import("@metamask/superstruct").Struct<{
621
- nextOpen: string;
622
- nextClose: string;
623
- }, {
624
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
625
- nextClose: import("@metamask/superstruct").Struct<string, null>;
626
- }>;
627
- nextPause: import("@metamask/superstruct").Struct<{
628
- start: string;
629
- end: string;
630
- }, {
631
- start: import("@metamask/superstruct").Struct<string, null>;
632
- end: import("@metamask/superstruct").Struct<string, null>;
633
- }>;
634
- }>;
635
423
  }>;
636
424
  srcAmount: import("@metamask/superstruct").Struct<string, null>;
637
425
  destAmount: import("@metamask/superstruct").Struct<string, null>;
@@ -645,6 +433,211 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
645
433
  icon: import("@metamask/superstruct").Struct<string | undefined, null>;
646
434
  }>;
647
435
  }>;
436
+ /**
437
+ * Schema for an intent-based order used for EIP-712 signing and submission.
438
+ *
439
+ * This represents the minimal subset of fields required by intent-based
440
+ * protocols (e.g. CoW Swap) to build, sign, and submit an order.
441
+ */
442
+ export declare const IntentOrderSchema: import("@metamask/superstruct").Struct<{
443
+ sellToken: string;
444
+ buyToken: string;
445
+ validTo: string | number;
446
+ appData: string;
447
+ appDataHash: string;
448
+ feeAmount: string;
449
+ kind: "sell" | "buy";
450
+ partiallyFillable: boolean;
451
+ receiver?: string | undefined;
452
+ sellAmount?: string | undefined;
453
+ buyAmount?: string | undefined;
454
+ from?: string | undefined;
455
+ }, {
456
+ /**
457
+ * Address of the token being sold.
458
+ */
459
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
460
+ /**
461
+ * Address of the token being bought.
462
+ */
463
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
464
+ /**
465
+ * Optional receiver of the bought tokens.
466
+ * If omitted, defaults to the signer / order owner.
467
+ */
468
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
469
+ /**
470
+ * Order expiration time.
471
+ *
472
+ * Can be provided as a UNIX timestamp in seconds, either as a number
473
+ * or as a digit string, depending on provider requirements.
474
+ */
475
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
476
+ /**
477
+ * Arbitrary application-specific data attached to the order.
478
+ */
479
+ appData: import("@metamask/superstruct").Struct<string, null>;
480
+ /**
481
+ * Hash of the `appData` field, used for EIP-712 signing.
482
+ */
483
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
484
+ /**
485
+ * Fee amount paid for order execution, expressed as a digit string.
486
+ */
487
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
488
+ /**
489
+ * Order kind.
490
+ *
491
+ * - `sell`: exact sell amount, variable buy amount
492
+ * - `buy`: exact buy amount, variable sell amount
493
+ */
494
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
495
+ sell: "sell";
496
+ buy: "buy";
497
+ }>;
498
+ /**
499
+ * Whether the order can be partially filled.
500
+ */
501
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
502
+ /**
503
+ * Exact amount of the sell token.
504
+ *
505
+ * Required for `sell` orders.
506
+ */
507
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
508
+ /**
509
+ * Exact amount of the buy token.
510
+ *
511
+ * Required for `buy` orders.
512
+ */
513
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
514
+ /**
515
+ * Optional order owner / sender address.
516
+ *
517
+ * Provided for convenience when building the EIP-712 domain and message.
518
+ */
519
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
520
+ }>;
521
+ /**
522
+ * Schema representing an intent submission payload.
523
+ *
524
+ * Wraps the intent order along with protocol and optional routing metadata
525
+ * required by the backend or relayer infrastructure.
526
+ */
527
+ export declare const IntentSchema: import("@metamask/superstruct").Struct<{
528
+ protocol: string;
529
+ order: {
530
+ sellToken: string;
531
+ buyToken: string;
532
+ validTo: string | number;
533
+ appData: string;
534
+ appDataHash: string;
535
+ feeAmount: string;
536
+ kind: "sell" | "buy";
537
+ partiallyFillable: boolean;
538
+ receiver?: string | undefined;
539
+ sellAmount?: string | undefined;
540
+ buyAmount?: string | undefined;
541
+ from?: string | undefined;
542
+ };
543
+ settlementContract?: string | undefined;
544
+ relayer?: string | undefined;
545
+ }, {
546
+ /**
547
+ * Identifier of the intent protocol used to interpret the order.
548
+ */
549
+ protocol: import("@metamask/superstruct").Struct<string, null>;
550
+ /**
551
+ * The intent order to be signed and submitted.
552
+ */
553
+ order: import("@metamask/superstruct").Struct<{
554
+ sellToken: string;
555
+ buyToken: string;
556
+ validTo: string | number;
557
+ appData: string;
558
+ appDataHash: string;
559
+ feeAmount: string;
560
+ kind: "sell" | "buy";
561
+ partiallyFillable: boolean;
562
+ receiver?: string | undefined;
563
+ sellAmount?: string | undefined;
564
+ buyAmount?: string | undefined;
565
+ from?: string | undefined;
566
+ }, {
567
+ /**
568
+ * Address of the token being sold.
569
+ */
570
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
571
+ /**
572
+ * Address of the token being bought.
573
+ */
574
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
575
+ /**
576
+ * Optional receiver of the bought tokens.
577
+ * If omitted, defaults to the signer / order owner.
578
+ */
579
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
580
+ /**
581
+ * Order expiration time.
582
+ *
583
+ * Can be provided as a UNIX timestamp in seconds, either as a number
584
+ * or as a digit string, depending on provider requirements.
585
+ */
586
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
587
+ /**
588
+ * Arbitrary application-specific data attached to the order.
589
+ */
590
+ appData: import("@metamask/superstruct").Struct<string, null>;
591
+ /**
592
+ * Hash of the `appData` field, used for EIP-712 signing.
593
+ */
594
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
595
+ /**
596
+ * Fee amount paid for order execution, expressed as a digit string.
597
+ */
598
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
599
+ /**
600
+ * Order kind.
601
+ *
602
+ * - `sell`: exact sell amount, variable buy amount
603
+ * - `buy`: exact buy amount, variable sell amount
604
+ */
605
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
606
+ sell: "sell";
607
+ buy: "buy";
608
+ }>;
609
+ /**
610
+ * Whether the order can be partially filled.
611
+ */
612
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
613
+ /**
614
+ * Exact amount of the sell token.
615
+ *
616
+ * Required for `sell` orders.
617
+ */
618
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
619
+ /**
620
+ * Exact amount of the buy token.
621
+ *
622
+ * Required for `buy` orders.
623
+ */
624
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
625
+ /**
626
+ * Optional order owner / sender address.
627
+ *
628
+ * Provided for convenience when building the EIP-712 domain and message.
629
+ */
630
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
631
+ }>;
632
+ /**
633
+ * Optional settlement contract address used for execution.
634
+ */
635
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
636
+ /**
637
+ * Optional relayer address responsible for order submission.
638
+ */
639
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
640
+ }>;
648
641
  export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
649
642
  srcChainId: number;
650
643
  destChainId: number;
@@ -657,18 +650,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
657
650
  decimals: number;
658
651
  icon?: string | null | undefined;
659
652
  iconUrl?: string | null | undefined;
660
- rwaData?: {
661
- instrumentType: string;
662
- ticker: string;
663
- market: {
664
- nextOpen: string;
665
- nextClose: string;
666
- };
667
- nextPause: {
668
- start: string;
669
- end: string;
670
- };
671
- } | undefined;
672
653
  };
673
654
  destAsset: {
674
655
  symbol: string;
@@ -679,18 +660,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
679
660
  decimals: number;
680
661
  icon?: string | null | undefined;
681
662
  iconUrl?: string | null | undefined;
682
- rwaData?: {
683
- instrumentType: string;
684
- ticker: string;
685
- market: {
686
- nextOpen: string;
687
- nextClose: string;
688
- };
689
- nextPause: {
690
- start: string;
691
- end: string;
692
- };
693
- } | undefined;
694
663
  };
695
664
  requestId: string;
696
665
  srcTokenAmount: string;
@@ -708,18 +677,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
708
677
  decimals: number;
709
678
  icon?: string | null | undefined;
710
679
  iconUrl?: string | null | undefined;
711
- rwaData?: {
712
- instrumentType: string;
713
- ticker: string;
714
- market: {
715
- nextOpen: string;
716
- nextClose: string;
717
- };
718
- nextPause: {
719
- start: string;
720
- end: string;
721
- };
722
- } | undefined;
723
680
  };
724
681
  };
725
682
  txFee?: ({
@@ -733,18 +690,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
733
690
  decimals: number;
734
691
  icon?: string | null | undefined;
735
692
  iconUrl?: string | null | undefined;
736
- rwaData?: {
737
- instrumentType: string;
738
- ticker: string;
739
- market: {
740
- nextOpen: string;
741
- nextClose: string;
742
- };
743
- nextPause: {
744
- start: string;
745
- end: string;
746
- };
747
- } | undefined;
748
693
  };
749
694
  } & {
750
695
  maxFeePerGas: string;
@@ -765,18 +710,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
765
710
  decimals: number;
766
711
  icon?: string | null | undefined;
767
712
  iconUrl?: string | null | undefined;
768
- rwaData?: {
769
- instrumentType: string;
770
- ticker: string;
771
- market: {
772
- nextOpen: string;
773
- nextClose: string;
774
- };
775
- nextPause: {
776
- start: string;
777
- end: string;
778
- };
779
- } | undefined;
780
713
  };
781
714
  destAsset: {
782
715
  symbol: string;
@@ -787,18 +720,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
787
720
  decimals: number;
788
721
  icon?: string | null | undefined;
789
722
  iconUrl?: string | null | undefined;
790
- rwaData?: {
791
- instrumentType: string;
792
- ticker: string;
793
- market: {
794
- nextOpen: string;
795
- nextClose: string;
796
- };
797
- nextPause: {
798
- start: string;
799
- end: string;
800
- };
801
- } | undefined;
802
723
  };
803
724
  srcAmount: string;
804
725
  destAmount: string;
@@ -821,18 +742,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
821
742
  decimals: number;
822
743
  icon?: string | null | undefined;
823
744
  iconUrl?: string | null | undefined;
824
- rwaData?: {
825
- instrumentType: string;
826
- ticker: string;
827
- market: {
828
- nextOpen: string;
829
- nextClose: string;
830
- };
831
- nextPause: {
832
- start: string;
833
- end: string;
834
- };
835
- } | undefined;
836
745
  };
837
746
  destAsset: {
838
747
  symbol: string;
@@ -843,18 +752,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
843
752
  decimals: number;
844
753
  icon?: string | null | undefined;
845
754
  iconUrl?: string | null | undefined;
846
- rwaData?: {
847
- instrumentType: string;
848
- ticker: string;
849
- market: {
850
- nextOpen: string;
851
- nextClose: string;
852
- };
853
- nextPause: {
854
- start: string;
855
- end: string;
856
- };
857
- } | undefined;
858
755
  };
859
756
  srcAmount: string;
860
757
  destAmount: string;
@@ -873,6 +770,25 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
873
770
  priceImpact?: string | undefined;
874
771
  totalFeeAmountUsd?: string | undefined;
875
772
  } | undefined;
773
+ intent?: {
774
+ protocol: string;
775
+ order: {
776
+ sellToken: string;
777
+ buyToken: string;
778
+ validTo: string | number;
779
+ appData: string;
780
+ appDataHash: string;
781
+ feeAmount: string;
782
+ kind: "sell" | "buy";
783
+ partiallyFillable: boolean;
784
+ receiver?: string | undefined;
785
+ sellAmount?: string | undefined;
786
+ buyAmount?: string | undefined;
787
+ from?: string | undefined;
788
+ };
789
+ settlementContract?: string | undefined;
790
+ relayer?: string | undefined;
791
+ } | undefined;
876
792
  gasSponsored?: boolean | undefined;
877
793
  }, {
878
794
  requestId: import("@metamask/superstruct").Struct<string, null>;
@@ -886,18 +802,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
886
802
  decimals: number;
887
803
  icon?: string | null | undefined;
888
804
  iconUrl?: string | null | undefined;
889
- rwaData?: {
890
- instrumentType: string;
891
- ticker: string;
892
- market: {
893
- nextOpen: string;
894
- nextClose: string;
895
- };
896
- nextPause: {
897
- start: string;
898
- end: string;
899
- };
900
- } | undefined;
901
805
  }, {
902
806
  /**
903
807
  * The chainId of the token
@@ -928,35 +832,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
928
832
  * URL for token icon
929
833
  */
930
834
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
931
- rwaData: import("@metamask/superstruct").Struct<{
932
- instrumentType: string;
933
- ticker: string;
934
- market: {
935
- nextOpen: string;
936
- nextClose: string;
937
- };
938
- nextPause: {
939
- start: string;
940
- end: string;
941
- };
942
- } | undefined, {
943
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
944
- ticker: import("@metamask/superstruct").Struct<string, null>;
945
- market: import("@metamask/superstruct").Struct<{
946
- nextOpen: string;
947
- nextClose: string;
948
- }, {
949
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
950
- nextClose: import("@metamask/superstruct").Struct<string, null>;
951
- }>;
952
- nextPause: import("@metamask/superstruct").Struct<{
953
- start: string;
954
- end: string;
955
- }, {
956
- start: import("@metamask/superstruct").Struct<string, null>;
957
- end: import("@metamask/superstruct").Struct<string, null>;
958
- }>;
959
- }>;
960
835
  }>;
961
836
  /**
962
837
  * The amount sent, in atomic amount: amount sent - fees
@@ -973,18 +848,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
973
848
  decimals: number;
974
849
  icon?: string | null | undefined;
975
850
  iconUrl?: string | null | undefined;
976
- rwaData?: {
977
- instrumentType: string;
978
- ticker: string;
979
- market: {
980
- nextOpen: string;
981
- nextClose: string;
982
- };
983
- nextPause: {
984
- start: string;
985
- end: string;
986
- };
987
- } | undefined;
988
851
  }, {
989
852
  /**
990
853
  * The chainId of the token
@@ -1015,35 +878,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1015
878
  * URL for token icon
1016
879
  */
1017
880
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1018
- rwaData: import("@metamask/superstruct").Struct<{
1019
- instrumentType: string;
1020
- ticker: string;
1021
- market: {
1022
- nextOpen: string;
1023
- nextClose: string;
1024
- };
1025
- nextPause: {
1026
- start: string;
1027
- end: string;
1028
- };
1029
- } | undefined, {
1030
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
1031
- ticker: import("@metamask/superstruct").Struct<string, null>;
1032
- market: import("@metamask/superstruct").Struct<{
1033
- nextOpen: string;
1034
- nextClose: string;
1035
- }, {
1036
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
1037
- nextClose: import("@metamask/superstruct").Struct<string, null>;
1038
- }>;
1039
- nextPause: import("@metamask/superstruct").Struct<{
1040
- start: string;
1041
- end: string;
1042
- }, {
1043
- start: import("@metamask/superstruct").Struct<string, null>;
1044
- end: import("@metamask/superstruct").Struct<string, null>;
1045
- }>;
1046
- }>;
1047
881
  }>;
1048
882
  /**
1049
883
  * The amount received, in atomic amount
@@ -1065,18 +899,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1065
899
  decimals: number;
1066
900
  icon?: string | null | undefined;
1067
901
  iconUrl?: string | null | undefined;
1068
- rwaData?: {
1069
- instrumentType: string;
1070
- ticker: string;
1071
- market: {
1072
- nextOpen: string;
1073
- nextClose: string;
1074
- };
1075
- nextPause: {
1076
- start: string;
1077
- end: string;
1078
- };
1079
- } | undefined;
1080
902
  };
1081
903
  };
1082
904
  txFee?: ({
@@ -1090,18 +912,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1090
912
  decimals: number;
1091
913
  icon?: string | null | undefined;
1092
914
  iconUrl?: string | null | undefined;
1093
- rwaData?: {
1094
- instrumentType: string;
1095
- ticker: string;
1096
- market: {
1097
- nextOpen: string;
1098
- nextClose: string;
1099
- };
1100
- nextPause: {
1101
- start: string;
1102
- end: string;
1103
- };
1104
- } | undefined;
1105
915
  };
1106
916
  } & {
1107
917
  maxFeePerGas: string;
@@ -1119,18 +929,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1119
929
  decimals: number;
1120
930
  icon?: string | null | undefined;
1121
931
  iconUrl?: string | null | undefined;
1122
- rwaData?: {
1123
- instrumentType: string;
1124
- ticker: string;
1125
- market: {
1126
- nextOpen: string;
1127
- nextClose: string;
1128
- };
1129
- nextPause: {
1130
- start: string;
1131
- end: string;
1132
- };
1133
- } | undefined;
1134
932
  };
1135
933
  }, {
1136
934
  amount: import("@metamask/superstruct").Struct<string, null>;
@@ -1143,18 +941,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1143
941
  decimals: number;
1144
942
  icon?: string | null | undefined;
1145
943
  iconUrl?: string | null | undefined;
1146
- rwaData?: {
1147
- instrumentType: string;
1148
- ticker: string;
1149
- market: {
1150
- nextOpen: string;
1151
- nextClose: string;
1152
- };
1153
- nextPause: {
1154
- start: string;
1155
- end: string;
1156
- };
1157
- } | undefined;
1158
944
  }, {
1159
945
  /**
1160
946
  * The chainId of the token
@@ -1185,35 +971,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1185
971
  * URL for token icon
1186
972
  */
1187
973
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1188
- rwaData: import("@metamask/superstruct").Struct<{
1189
- instrumentType: string;
1190
- ticker: string;
1191
- market: {
1192
- nextOpen: string;
1193
- nextClose: string;
1194
- };
1195
- nextPause: {
1196
- start: string;
1197
- end: string;
1198
- };
1199
- } | undefined, {
1200
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
1201
- ticker: import("@metamask/superstruct").Struct<string, null>;
1202
- market: import("@metamask/superstruct").Struct<{
1203
- nextOpen: string;
1204
- nextClose: string;
1205
- }, {
1206
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
1207
- nextClose: import("@metamask/superstruct").Struct<string, null>;
1208
- }>;
1209
- nextPause: import("@metamask/superstruct").Struct<{
1210
- start: string;
1211
- end: string;
1212
- }, {
1213
- start: import("@metamask/superstruct").Struct<string, null>;
1214
- end: import("@metamask/superstruct").Struct<string, null>;
1215
- }>;
1216
- }>;
1217
974
  }>;
1218
975
  }>;
1219
976
  /**
@@ -1231,18 +988,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1231
988
  decimals: number;
1232
989
  icon?: string | null | undefined;
1233
990
  iconUrl?: string | null | undefined;
1234
- rwaData?: {
1235
- instrumentType: string;
1236
- ticker: string;
1237
- market: {
1238
- nextOpen: string;
1239
- nextClose: string;
1240
- };
1241
- nextPause: {
1242
- start: string;
1243
- end: string;
1244
- };
1245
- } | undefined;
1246
991
  };
1247
992
  } & {
1248
993
  maxFeePerGas: string;
@@ -1268,18 +1013,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1268
1013
  decimals: number;
1269
1014
  icon?: string | null | undefined;
1270
1015
  iconUrl?: string | null | undefined;
1271
- rwaData?: {
1272
- instrumentType: string;
1273
- ticker: string;
1274
- market: {
1275
- nextOpen: string;
1276
- nextClose: string;
1277
- };
1278
- nextPause: {
1279
- start: string;
1280
- end: string;
1281
- };
1282
- } | undefined;
1283
1016
  };
1284
1017
  destAsset: {
1285
1018
  symbol: string;
@@ -1290,18 +1023,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1290
1023
  decimals: number;
1291
1024
  icon?: string | null | undefined;
1292
1025
  iconUrl?: string | null | undefined;
1293
- rwaData?: {
1294
- instrumentType: string;
1295
- ticker: string;
1296
- market: {
1297
- nextOpen: string;
1298
- nextClose: string;
1299
- };
1300
- nextPause: {
1301
- start: string;
1302
- end: string;
1303
- };
1304
- } | undefined;
1305
1026
  };
1306
1027
  srcAmount: string;
1307
1028
  destAmount: string;
@@ -1323,18 +1044,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1323
1044
  decimals: number;
1324
1045
  icon?: string | null | undefined;
1325
1046
  iconUrl?: string | null | undefined;
1326
- rwaData?: {
1327
- instrumentType: string;
1328
- ticker: string;
1329
- market: {
1330
- nextOpen: string;
1331
- nextClose: string;
1332
- };
1333
- nextPause: {
1334
- start: string;
1335
- end: string;
1336
- };
1337
- } | undefined;
1338
1047
  };
1339
1048
  destAsset: {
1340
1049
  symbol: string;
@@ -1345,18 +1054,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1345
1054
  decimals: number;
1346
1055
  icon?: string | null | undefined;
1347
1056
  iconUrl?: string | null | undefined;
1348
- rwaData?: {
1349
- instrumentType: string;
1350
- ticker: string;
1351
- market: {
1352
- nextOpen: string;
1353
- nextClose: string;
1354
- };
1355
- nextPause: {
1356
- start: string;
1357
- end: string;
1358
- };
1359
- } | undefined;
1360
1057
  };
1361
1058
  srcAmount: string;
1362
1059
  destAmount: string;
@@ -1383,18 +1080,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1383
1080
  decimals: number;
1384
1081
  icon?: string | null | undefined;
1385
1082
  iconUrl?: string | null | undefined;
1386
- rwaData?: {
1387
- instrumentType: string;
1388
- ticker: string;
1389
- market: {
1390
- nextOpen: string;
1391
- nextClose: string;
1392
- };
1393
- nextPause: {
1394
- start: string;
1395
- end: string;
1396
- };
1397
- } | undefined;
1398
1083
  }, {
1399
1084
  /**
1400
1085
  * The chainId of the token
@@ -1425,35 +1110,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1425
1110
  * URL for token icon
1426
1111
  */
1427
1112
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1428
- rwaData: import("@metamask/superstruct").Struct<{
1429
- instrumentType: string;
1430
- ticker: string;
1431
- market: {
1432
- nextOpen: string;
1433
- nextClose: string;
1434
- };
1435
- nextPause: {
1436
- start: string;
1437
- end: string;
1438
- };
1439
- } | undefined, {
1440
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
1441
- ticker: import("@metamask/superstruct").Struct<string, null>;
1442
- market: import("@metamask/superstruct").Struct<{
1443
- nextOpen: string;
1444
- nextClose: string;
1445
- }, {
1446
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
1447
- nextClose: import("@metamask/superstruct").Struct<string, null>;
1448
- }>;
1449
- nextPause: import("@metamask/superstruct").Struct<{
1450
- start: string;
1451
- end: string;
1452
- }, {
1453
- start: import("@metamask/superstruct").Struct<string, null>;
1454
- end: import("@metamask/superstruct").Struct<string, null>;
1455
- }>;
1456
- }>;
1457
1113
  }>;
1458
1114
  destAsset: import("@metamask/superstruct").Struct<{
1459
1115
  symbol: string;
@@ -1464,18 +1120,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1464
1120
  decimals: number;
1465
1121
  icon?: string | null | undefined;
1466
1122
  iconUrl?: string | null | undefined;
1467
- rwaData?: {
1468
- instrumentType: string;
1469
- ticker: string;
1470
- market: {
1471
- nextOpen: string;
1472
- nextClose: string;
1473
- };
1474
- nextPause: {
1475
- start: string;
1476
- end: string;
1477
- };
1478
- } | undefined;
1479
1123
  }, {
1480
1124
  /**
1481
1125
  * The chainId of the token
@@ -1506,35 +1150,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1506
1150
  * URL for token icon
1507
1151
  */
1508
1152
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1509
- rwaData: import("@metamask/superstruct").Struct<{
1510
- instrumentType: string;
1511
- ticker: string;
1512
- market: {
1513
- nextOpen: string;
1514
- nextClose: string;
1515
- };
1516
- nextPause: {
1517
- start: string;
1518
- end: string;
1519
- };
1520
- } | undefined, {
1521
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
1522
- ticker: import("@metamask/superstruct").Struct<string, null>;
1523
- market: import("@metamask/superstruct").Struct<{
1524
- nextOpen: string;
1525
- nextClose: string;
1526
- }, {
1527
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
1528
- nextClose: import("@metamask/superstruct").Struct<string, null>;
1529
- }>;
1530
- nextPause: import("@metamask/superstruct").Struct<{
1531
- start: string;
1532
- end: string;
1533
- }, {
1534
- start: import("@metamask/superstruct").Struct<string, null>;
1535
- end: import("@metamask/superstruct").Struct<string, null>;
1536
- }>;
1537
- }>;
1538
1153
  }>;
1539
1154
  srcAmount: import("@metamask/superstruct").Struct<string, null>;
1540
1155
  destAmount: import("@metamask/superstruct").Struct<string, null>;
@@ -1560,18 +1175,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1560
1175
  decimals: number;
1561
1176
  icon?: string | null | undefined;
1562
1177
  iconUrl?: string | null | undefined;
1563
- rwaData?: {
1564
- instrumentType: string;
1565
- ticker: string;
1566
- market: {
1567
- nextOpen: string;
1568
- nextClose: string;
1569
- };
1570
- nextPause: {
1571
- start: string;
1572
- end: string;
1573
- };
1574
- } | undefined;
1575
1178
  };
1576
1179
  destAsset: {
1577
1180
  symbol: string;
@@ -1582,18 +1185,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1582
1185
  decimals: number;
1583
1186
  icon?: string | null | undefined;
1584
1187
  iconUrl?: string | null | undefined;
1585
- rwaData?: {
1586
- instrumentType: string;
1587
- ticker: string;
1588
- market: {
1589
- nextOpen: string;
1590
- nextClose: string;
1591
- };
1592
- nextPause: {
1593
- start: string;
1594
- end: string;
1595
- };
1596
- } | undefined;
1597
1188
  };
1598
1189
  srcAmount: string;
1599
1190
  destAmount: string;
@@ -1620,18 +1211,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1620
1211
  decimals: number;
1621
1212
  icon?: string | null | undefined;
1622
1213
  iconUrl?: string | null | undefined;
1623
- rwaData?: {
1624
- instrumentType: string;
1625
- ticker: string;
1626
- market: {
1627
- nextOpen: string;
1628
- nextClose: string;
1629
- };
1630
- nextPause: {
1631
- start: string;
1632
- end: string;
1633
- };
1634
- } | undefined;
1635
1214
  }, {
1636
1215
  /**
1637
1216
  * The chainId of the token
@@ -1662,35 +1241,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1662
1241
  * URL for token icon
1663
1242
  */
1664
1243
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1665
- rwaData: import("@metamask/superstruct").Struct<{
1666
- instrumentType: string;
1667
- ticker: string;
1668
- market: {
1669
- nextOpen: string;
1670
- nextClose: string;
1671
- };
1672
- nextPause: {
1673
- start: string;
1674
- end: string;
1675
- };
1676
- } | undefined, {
1677
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
1678
- ticker: import("@metamask/superstruct").Struct<string, null>;
1679
- market: import("@metamask/superstruct").Struct<{
1680
- nextOpen: string;
1681
- nextClose: string;
1682
- }, {
1683
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
1684
- nextClose: import("@metamask/superstruct").Struct<string, null>;
1685
- }>;
1686
- nextPause: import("@metamask/superstruct").Struct<{
1687
- start: string;
1688
- end: string;
1689
- }, {
1690
- start: import("@metamask/superstruct").Struct<string, null>;
1691
- end: import("@metamask/superstruct").Struct<string, null>;
1692
- }>;
1693
- }>;
1694
1244
  }>;
1695
1245
  destAsset: import("@metamask/superstruct").Struct<{
1696
1246
  symbol: string;
@@ -1701,18 +1251,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1701
1251
  decimals: number;
1702
1252
  icon?: string | null | undefined;
1703
1253
  iconUrl?: string | null | undefined;
1704
- rwaData?: {
1705
- instrumentType: string;
1706
- ticker: string;
1707
- market: {
1708
- nextOpen: string;
1709
- nextClose: string;
1710
- };
1711
- nextPause: {
1712
- start: string;
1713
- end: string;
1714
- };
1715
- } | undefined;
1716
1254
  }, {
1717
1255
  /**
1718
1256
  * The chainId of the token
@@ -1743,35 +1281,6 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1743
1281
  * URL for token icon
1744
1282
  */
1745
1283
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1746
- rwaData: import("@metamask/superstruct").Struct<{
1747
- instrumentType: string;
1748
- ticker: string;
1749
- market: {
1750
- nextOpen: string;
1751
- nextClose: string;
1752
- };
1753
- nextPause: {
1754
- start: string;
1755
- end: string;
1756
- };
1757
- } | undefined, {
1758
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
1759
- ticker: import("@metamask/superstruct").Struct<string, null>;
1760
- market: import("@metamask/superstruct").Struct<{
1761
- nextOpen: string;
1762
- nextClose: string;
1763
- }, {
1764
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
1765
- nextClose: import("@metamask/superstruct").Struct<string, null>;
1766
- }>;
1767
- nextPause: import("@metamask/superstruct").Struct<{
1768
- start: string;
1769
- end: string;
1770
- }, {
1771
- start: import("@metamask/superstruct").Struct<string, null>;
1772
- end: import("@metamask/superstruct").Struct<string, null>;
1773
- }>;
1774
- }>;
1775
1284
  }>;
1776
1285
  srcAmount: import("@metamask/superstruct").Struct<string, null>;
1777
1286
  destAmount: import("@metamask/superstruct").Struct<string, null>;
@@ -1796,6 +1305,120 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1796
1305
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
1797
1306
  totalFeeAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
1798
1307
  }>;
1308
+ intent: import("@metamask/superstruct").Struct<{
1309
+ protocol: string;
1310
+ order: {
1311
+ sellToken: string;
1312
+ buyToken: string;
1313
+ validTo: string | number;
1314
+ appData: string;
1315
+ appDataHash: string;
1316
+ feeAmount: string;
1317
+ kind: "sell" | "buy";
1318
+ partiallyFillable: boolean;
1319
+ receiver?: string | undefined;
1320
+ sellAmount?: string | undefined;
1321
+ buyAmount?: string | undefined;
1322
+ from?: string | undefined;
1323
+ };
1324
+ settlementContract?: string | undefined;
1325
+ relayer?: string | undefined;
1326
+ } | undefined, {
1327
+ /**
1328
+ * Identifier of the intent protocol used to interpret the order.
1329
+ */
1330
+ protocol: import("@metamask/superstruct").Struct<string, null>;
1331
+ /**
1332
+ * The intent order to be signed and submitted.
1333
+ */
1334
+ order: import("@metamask/superstruct").Struct<{
1335
+ sellToken: string;
1336
+ buyToken: string;
1337
+ validTo: string | number;
1338
+ appData: string;
1339
+ appDataHash: string;
1340
+ feeAmount: string;
1341
+ kind: "sell" | "buy";
1342
+ partiallyFillable: boolean;
1343
+ receiver?: string | undefined;
1344
+ sellAmount?: string | undefined;
1345
+ buyAmount?: string | undefined;
1346
+ from?: string | undefined;
1347
+ }, {
1348
+ /**
1349
+ * Address of the token being sold.
1350
+ */
1351
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
1352
+ /**
1353
+ * Address of the token being bought.
1354
+ */
1355
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
1356
+ /**
1357
+ * Optional receiver of the bought tokens.
1358
+ * If omitted, defaults to the signer / order owner.
1359
+ */
1360
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
1361
+ /**
1362
+ * Order expiration time.
1363
+ *
1364
+ * Can be provided as a UNIX timestamp in seconds, either as a number
1365
+ * or as a digit string, depending on provider requirements.
1366
+ */
1367
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
1368
+ /**
1369
+ * Arbitrary application-specific data attached to the order.
1370
+ */
1371
+ appData: import("@metamask/superstruct").Struct<string, null>;
1372
+ /**
1373
+ * Hash of the `appData` field, used for EIP-712 signing.
1374
+ */
1375
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
1376
+ /**
1377
+ * Fee amount paid for order execution, expressed as a digit string.
1378
+ */
1379
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
1380
+ /**
1381
+ * Order kind.
1382
+ *
1383
+ * - `sell`: exact sell amount, variable buy amount
1384
+ * - `buy`: exact buy amount, variable sell amount
1385
+ */
1386
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
1387
+ sell: "sell";
1388
+ buy: "buy";
1389
+ }>;
1390
+ /**
1391
+ * Whether the order can be partially filled.
1392
+ */
1393
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
1394
+ /**
1395
+ * Exact amount of the sell token.
1396
+ *
1397
+ * Required for `sell` orders.
1398
+ */
1399
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1400
+ /**
1401
+ * Exact amount of the buy token.
1402
+ *
1403
+ * Required for `buy` orders.
1404
+ */
1405
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1406
+ /**
1407
+ * Optional order owner / sender address.
1408
+ *
1409
+ * Provided for convenience when building the EIP-712 domain and message.
1410
+ */
1411
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
1412
+ }>;
1413
+ /**
1414
+ * Optional settlement contract address used for execution.
1415
+ */
1416
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
1417
+ /**
1418
+ * Optional relayer address responsible for order submission.
1419
+ */
1420
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
1421
+ }>;
1799
1422
  /**
1800
1423
  * A third party sponsors the gas. If true, then gasIncluded7702 is also true.
1801
1424
  */
@@ -1803,8 +1426,8 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1803
1426
  }>;
1804
1427
  export declare const TxDataSchema: import("@metamask/superstruct").Struct<{
1805
1428
  chainId: number;
1806
- to: string;
1807
1429
  from: string;
1430
+ to: string;
1808
1431
  value: string;
1809
1432
  data: string;
1810
1433
  gasLimit: number | null;
@@ -1866,18 +1489,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1866
1489
  decimals: number;
1867
1490
  icon?: string | null | undefined;
1868
1491
  iconUrl?: string | null | undefined;
1869
- rwaData?: {
1870
- instrumentType: string;
1871
- ticker: string;
1872
- market: {
1873
- nextOpen: string;
1874
- nextClose: string;
1875
- };
1876
- nextPause: {
1877
- start: string;
1878
- end: string;
1879
- };
1880
- } | undefined;
1881
1492
  };
1882
1493
  destAsset: {
1883
1494
  symbol: string;
@@ -1888,18 +1499,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1888
1499
  decimals: number;
1889
1500
  icon?: string | null | undefined;
1890
1501
  iconUrl?: string | null | undefined;
1891
- rwaData?: {
1892
- instrumentType: string;
1893
- ticker: string;
1894
- market: {
1895
- nextOpen: string;
1896
- nextClose: string;
1897
- };
1898
- nextPause: {
1899
- start: string;
1900
- end: string;
1901
- };
1902
- } | undefined;
1903
1502
  };
1904
1503
  requestId: string;
1905
1504
  srcTokenAmount: string;
@@ -1917,18 +1516,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1917
1516
  decimals: number;
1918
1517
  icon?: string | null | undefined;
1919
1518
  iconUrl?: string | null | undefined;
1920
- rwaData?: {
1921
- instrumentType: string;
1922
- ticker: string;
1923
- market: {
1924
- nextOpen: string;
1925
- nextClose: string;
1926
- };
1927
- nextPause: {
1928
- start: string;
1929
- end: string;
1930
- };
1931
- } | undefined;
1932
1519
  };
1933
1520
  };
1934
1521
  txFee?: ({
@@ -1942,18 +1529,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1942
1529
  decimals: number;
1943
1530
  icon?: string | null | undefined;
1944
1531
  iconUrl?: string | null | undefined;
1945
- rwaData?: {
1946
- instrumentType: string;
1947
- ticker: string;
1948
- market: {
1949
- nextOpen: string;
1950
- nextClose: string;
1951
- };
1952
- nextPause: {
1953
- start: string;
1954
- end: string;
1955
- };
1956
- } | undefined;
1957
1532
  };
1958
1533
  } & {
1959
1534
  maxFeePerGas: string;
@@ -1974,18 +1549,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1974
1549
  decimals: number;
1975
1550
  icon?: string | null | undefined;
1976
1551
  iconUrl?: string | null | undefined;
1977
- rwaData?: {
1978
- instrumentType: string;
1979
- ticker: string;
1980
- market: {
1981
- nextOpen: string;
1982
- nextClose: string;
1983
- };
1984
- nextPause: {
1985
- start: string;
1986
- end: string;
1987
- };
1988
- } | undefined;
1989
1552
  };
1990
1553
  destAsset: {
1991
1554
  symbol: string;
@@ -1996,18 +1559,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1996
1559
  decimals: number;
1997
1560
  icon?: string | null | undefined;
1998
1561
  iconUrl?: string | null | undefined;
1999
- rwaData?: {
2000
- instrumentType: string;
2001
- ticker: string;
2002
- market: {
2003
- nextOpen: string;
2004
- nextClose: string;
2005
- };
2006
- nextPause: {
2007
- start: string;
2008
- end: string;
2009
- };
2010
- } | undefined;
2011
1562
  };
2012
1563
  srcAmount: string;
2013
1564
  destAmount: string;
@@ -2030,18 +1581,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2030
1581
  decimals: number;
2031
1582
  icon?: string | null | undefined;
2032
1583
  iconUrl?: string | null | undefined;
2033
- rwaData?: {
2034
- instrumentType: string;
2035
- ticker: string;
2036
- market: {
2037
- nextOpen: string;
2038
- nextClose: string;
2039
- };
2040
- nextPause: {
2041
- start: string;
2042
- end: string;
2043
- };
2044
- } | undefined;
2045
1584
  };
2046
1585
  destAsset: {
2047
1586
  symbol: string;
@@ -2052,18 +1591,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2052
1591
  decimals: number;
2053
1592
  icon?: string | null | undefined;
2054
1593
  iconUrl?: string | null | undefined;
2055
- rwaData?: {
2056
- instrumentType: string;
2057
- ticker: string;
2058
- market: {
2059
- nextOpen: string;
2060
- nextClose: string;
2061
- };
2062
- nextPause: {
2063
- start: string;
2064
- end: string;
2065
- };
2066
- } | undefined;
2067
1594
  };
2068
1595
  srcAmount: string;
2069
1596
  destAmount: string;
@@ -2082,13 +1609,32 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2082
1609
  priceImpact?: string | undefined;
2083
1610
  totalFeeAmountUsd?: string | undefined;
2084
1611
  } | undefined;
1612
+ intent?: {
1613
+ protocol: string;
1614
+ order: {
1615
+ sellToken: string;
1616
+ buyToken: string;
1617
+ validTo: string | number;
1618
+ appData: string;
1619
+ appDataHash: string;
1620
+ feeAmount: string;
1621
+ kind: "sell" | "buy";
1622
+ partiallyFillable: boolean;
1623
+ receiver?: string | undefined;
1624
+ sellAmount?: string | undefined;
1625
+ buyAmount?: string | undefined;
1626
+ from?: string | undefined;
1627
+ };
1628
+ settlementContract?: string | undefined;
1629
+ relayer?: string | undefined;
1630
+ } | undefined;
2085
1631
  gasSponsored?: boolean | undefined;
2086
1632
  };
2087
1633
  estimatedProcessingTimeInSeconds: number;
2088
1634
  trade: string | {
2089
1635
  chainId: number;
2090
- to: string;
2091
1636
  from: string;
1637
+ to: string;
2092
1638
  value: string;
2093
1639
  data: string;
2094
1640
  gasLimit: number | null;
@@ -2108,8 +1654,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2108
1654
  };
2109
1655
  approval?: {
2110
1656
  chainId: number;
2111
- to: string;
2112
1657
  from: string;
1658
+ to: string;
2113
1659
  value: string;
2114
1660
  data: string;
2115
1661
  gasLimit: number | null;
@@ -2137,18 +1683,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2137
1683
  decimals: number;
2138
1684
  icon?: string | null | undefined;
2139
1685
  iconUrl?: string | null | undefined;
2140
- rwaData?: {
2141
- instrumentType: string;
2142
- ticker: string;
2143
- market: {
2144
- nextOpen: string;
2145
- nextClose: string;
2146
- };
2147
- nextPause: {
2148
- start: string;
2149
- end: string;
2150
- };
2151
- } | undefined;
2152
1686
  };
2153
1687
  destAsset: {
2154
1688
  symbol: string;
@@ -2159,18 +1693,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2159
1693
  decimals: number;
2160
1694
  icon?: string | null | undefined;
2161
1695
  iconUrl?: string | null | undefined;
2162
- rwaData?: {
2163
- instrumentType: string;
2164
- ticker: string;
2165
- market: {
2166
- nextOpen: string;
2167
- nextClose: string;
2168
- };
2169
- nextPause: {
2170
- start: string;
2171
- end: string;
2172
- };
2173
- } | undefined;
2174
1696
  };
2175
1697
  requestId: string;
2176
1698
  srcTokenAmount: string;
@@ -2188,18 +1710,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2188
1710
  decimals: number;
2189
1711
  icon?: string | null | undefined;
2190
1712
  iconUrl?: string | null | undefined;
2191
- rwaData?: {
2192
- instrumentType: string;
2193
- ticker: string;
2194
- market: {
2195
- nextOpen: string;
2196
- nextClose: string;
2197
- };
2198
- nextPause: {
2199
- start: string;
2200
- end: string;
2201
- };
2202
- } | undefined;
2203
1713
  };
2204
1714
  };
2205
1715
  txFee?: ({
@@ -2213,18 +1723,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2213
1723
  decimals: number;
2214
1724
  icon?: string | null | undefined;
2215
1725
  iconUrl?: string | null | undefined;
2216
- rwaData?: {
2217
- instrumentType: string;
2218
- ticker: string;
2219
- market: {
2220
- nextOpen: string;
2221
- nextClose: string;
2222
- };
2223
- nextPause: {
2224
- start: string;
2225
- end: string;
2226
- };
2227
- } | undefined;
2228
1726
  };
2229
1727
  } & {
2230
1728
  maxFeePerGas: string;
@@ -2245,18 +1743,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2245
1743
  decimals: number;
2246
1744
  icon?: string | null | undefined;
2247
1745
  iconUrl?: string | null | undefined;
2248
- rwaData?: {
2249
- instrumentType: string;
2250
- ticker: string;
2251
- market: {
2252
- nextOpen: string;
2253
- nextClose: string;
2254
- };
2255
- nextPause: {
2256
- start: string;
2257
- end: string;
2258
- };
2259
- } | undefined;
2260
1746
  };
2261
1747
  destAsset: {
2262
1748
  symbol: string;
@@ -2267,18 +1753,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2267
1753
  decimals: number;
2268
1754
  icon?: string | null | undefined;
2269
1755
  iconUrl?: string | null | undefined;
2270
- rwaData?: {
2271
- instrumentType: string;
2272
- ticker: string;
2273
- market: {
2274
- nextOpen: string;
2275
- nextClose: string;
2276
- };
2277
- nextPause: {
2278
- start: string;
2279
- end: string;
2280
- };
2281
- } | undefined;
2282
1756
  };
2283
1757
  srcAmount: string;
2284
1758
  destAmount: string;
@@ -2301,18 +1775,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2301
1775
  decimals: number;
2302
1776
  icon?: string | null | undefined;
2303
1777
  iconUrl?: string | null | undefined;
2304
- rwaData?: {
2305
- instrumentType: string;
2306
- ticker: string;
2307
- market: {
2308
- nextOpen: string;
2309
- nextClose: string;
2310
- };
2311
- nextPause: {
2312
- start: string;
2313
- end: string;
2314
- };
2315
- } | undefined;
2316
1778
  };
2317
1779
  destAsset: {
2318
1780
  symbol: string;
@@ -2323,18 +1785,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2323
1785
  decimals: number;
2324
1786
  icon?: string | null | undefined;
2325
1787
  iconUrl?: string | null | undefined;
2326
- rwaData?: {
2327
- instrumentType: string;
2328
- ticker: string;
2329
- market: {
2330
- nextOpen: string;
2331
- nextClose: string;
2332
- };
2333
- nextPause: {
2334
- start: string;
2335
- end: string;
2336
- };
2337
- } | undefined;
2338
1788
  };
2339
1789
  srcAmount: string;
2340
1790
  destAmount: string;
@@ -2353,6 +1803,25 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2353
1803
  priceImpact?: string | undefined;
2354
1804
  totalFeeAmountUsd?: string | undefined;
2355
1805
  } | undefined;
1806
+ intent?: {
1807
+ protocol: string;
1808
+ order: {
1809
+ sellToken: string;
1810
+ buyToken: string;
1811
+ validTo: string | number;
1812
+ appData: string;
1813
+ appDataHash: string;
1814
+ feeAmount: string;
1815
+ kind: "sell" | "buy";
1816
+ partiallyFillable: boolean;
1817
+ receiver?: string | undefined;
1818
+ sellAmount?: string | undefined;
1819
+ buyAmount?: string | undefined;
1820
+ from?: string | undefined;
1821
+ };
1822
+ settlementContract?: string | undefined;
1823
+ relayer?: string | undefined;
1824
+ } | undefined;
2356
1825
  gasSponsored?: boolean | undefined;
2357
1826
  }, {
2358
1827
  requestId: import("@metamask/superstruct").Struct<string, null>;
@@ -2366,18 +1835,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2366
1835
  decimals: number;
2367
1836
  icon?: string | null | undefined;
2368
1837
  iconUrl?: string | null | undefined;
2369
- rwaData?: {
2370
- instrumentType: string;
2371
- ticker: string;
2372
- market: {
2373
- nextOpen: string;
2374
- nextClose: string;
2375
- };
2376
- nextPause: {
2377
- start: string;
2378
- end: string;
2379
- };
2380
- } | undefined;
2381
1838
  }, {
2382
1839
  /**
2383
1840
  * The chainId of the token
@@ -2408,35 +1865,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2408
1865
  * URL for token icon
2409
1866
  */
2410
1867
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2411
- rwaData: import("@metamask/superstruct").Struct<{
2412
- instrumentType: string;
2413
- ticker: string;
2414
- market: {
2415
- nextOpen: string;
2416
- nextClose: string;
2417
- };
2418
- nextPause: {
2419
- start: string;
2420
- end: string;
2421
- };
2422
- } | undefined, {
2423
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
2424
- ticker: import("@metamask/superstruct").Struct<string, null>;
2425
- market: import("@metamask/superstruct").Struct<{
2426
- nextOpen: string;
2427
- nextClose: string;
2428
- }, {
2429
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
2430
- nextClose: import("@metamask/superstruct").Struct<string, null>;
2431
- }>;
2432
- nextPause: import("@metamask/superstruct").Struct<{
2433
- start: string;
2434
- end: string;
2435
- }, {
2436
- start: import("@metamask/superstruct").Struct<string, null>;
2437
- end: import("@metamask/superstruct").Struct<string, null>;
2438
- }>;
2439
- }>;
2440
1868
  }>;
2441
1869
  /**
2442
1870
  * The amount sent, in atomic amount: amount sent - fees
@@ -2453,18 +1881,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2453
1881
  decimals: number;
2454
1882
  icon?: string | null | undefined;
2455
1883
  iconUrl?: string | null | undefined;
2456
- rwaData?: {
2457
- instrumentType: string;
2458
- ticker: string;
2459
- market: {
2460
- nextOpen: string;
2461
- nextClose: string;
2462
- };
2463
- nextPause: {
2464
- start: string;
2465
- end: string;
2466
- };
2467
- } | undefined;
2468
1884
  }, {
2469
1885
  /**
2470
1886
  * The chainId of the token
@@ -2495,35 +1911,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2495
1911
  * URL for token icon
2496
1912
  */
2497
1913
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2498
- rwaData: import("@metamask/superstruct").Struct<{
2499
- instrumentType: string;
2500
- ticker: string;
2501
- market: {
2502
- nextOpen: string;
2503
- nextClose: string;
2504
- };
2505
- nextPause: {
2506
- start: string;
2507
- end: string;
2508
- };
2509
- } | undefined, {
2510
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
2511
- ticker: import("@metamask/superstruct").Struct<string, null>;
2512
- market: import("@metamask/superstruct").Struct<{
2513
- nextOpen: string;
2514
- nextClose: string;
2515
- }, {
2516
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
2517
- nextClose: import("@metamask/superstruct").Struct<string, null>;
2518
- }>;
2519
- nextPause: import("@metamask/superstruct").Struct<{
2520
- start: string;
2521
- end: string;
2522
- }, {
2523
- start: import("@metamask/superstruct").Struct<string, null>;
2524
- end: import("@metamask/superstruct").Struct<string, null>;
2525
- }>;
2526
- }>;
2527
1914
  }>;
2528
1915
  /**
2529
1916
  * The amount received, in atomic amount
@@ -2545,18 +1932,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2545
1932
  decimals: number;
2546
1933
  icon?: string | null | undefined;
2547
1934
  iconUrl?: string | null | undefined;
2548
- rwaData?: {
2549
- instrumentType: string;
2550
- ticker: string;
2551
- market: {
2552
- nextOpen: string;
2553
- nextClose: string;
2554
- };
2555
- nextPause: {
2556
- start: string;
2557
- end: string;
2558
- };
2559
- } | undefined;
2560
1935
  };
2561
1936
  };
2562
1937
  txFee?: ({
@@ -2570,18 +1945,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2570
1945
  decimals: number;
2571
1946
  icon?: string | null | undefined;
2572
1947
  iconUrl?: string | null | undefined;
2573
- rwaData?: {
2574
- instrumentType: string;
2575
- ticker: string;
2576
- market: {
2577
- nextOpen: string;
2578
- nextClose: string;
2579
- };
2580
- nextPause: {
2581
- start: string;
2582
- end: string;
2583
- };
2584
- } | undefined;
2585
1948
  };
2586
1949
  } & {
2587
1950
  maxFeePerGas: string;
@@ -2599,18 +1962,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2599
1962
  decimals: number;
2600
1963
  icon?: string | null | undefined;
2601
1964
  iconUrl?: string | null | undefined;
2602
- rwaData?: {
2603
- instrumentType: string;
2604
- ticker: string;
2605
- market: {
2606
- nextOpen: string;
2607
- nextClose: string;
2608
- };
2609
- nextPause: {
2610
- start: string;
2611
- end: string;
2612
- };
2613
- } | undefined;
2614
1965
  };
2615
1966
  }, {
2616
1967
  amount: import("@metamask/superstruct").Struct<string, null>;
@@ -2623,18 +1974,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2623
1974
  decimals: number;
2624
1975
  icon?: string | null | undefined;
2625
1976
  iconUrl?: string | null | undefined;
2626
- rwaData?: {
2627
- instrumentType: string;
2628
- ticker: string;
2629
- market: {
2630
- nextOpen: string;
2631
- nextClose: string;
2632
- };
2633
- nextPause: {
2634
- start: string;
2635
- end: string;
2636
- };
2637
- } | undefined;
2638
1977
  }, {
2639
1978
  /**
2640
1979
  * The chainId of the token
@@ -2665,35 +2004,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2665
2004
  * URL for token icon
2666
2005
  */
2667
2006
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2668
- rwaData: import("@metamask/superstruct").Struct<{
2669
- instrumentType: string;
2670
- ticker: string;
2671
- market: {
2672
- nextOpen: string;
2673
- nextClose: string;
2674
- };
2675
- nextPause: {
2676
- start: string;
2677
- end: string;
2678
- };
2679
- } | undefined, {
2680
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
2681
- ticker: import("@metamask/superstruct").Struct<string, null>;
2682
- market: import("@metamask/superstruct").Struct<{
2683
- nextOpen: string;
2684
- nextClose: string;
2685
- }, {
2686
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
2687
- nextClose: import("@metamask/superstruct").Struct<string, null>;
2688
- }>;
2689
- nextPause: import("@metamask/superstruct").Struct<{
2690
- start: string;
2691
- end: string;
2692
- }, {
2693
- start: import("@metamask/superstruct").Struct<string, null>;
2694
- end: import("@metamask/superstruct").Struct<string, null>;
2695
- }>;
2696
- }>;
2697
2007
  }>;
2698
2008
  }>;
2699
2009
  /**
@@ -2711,18 +2021,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2711
2021
  decimals: number;
2712
2022
  icon?: string | null | undefined;
2713
2023
  iconUrl?: string | null | undefined;
2714
- rwaData?: {
2715
- instrumentType: string;
2716
- ticker: string;
2717
- market: {
2718
- nextOpen: string;
2719
- nextClose: string;
2720
- };
2721
- nextPause: {
2722
- start: string;
2723
- end: string;
2724
- };
2725
- } | undefined;
2726
2024
  };
2727
2025
  } & {
2728
2026
  maxFeePerGas: string;
@@ -2748,18 +2046,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2748
2046
  decimals: number;
2749
2047
  icon?: string | null | undefined;
2750
2048
  iconUrl?: string | null | undefined;
2751
- rwaData?: {
2752
- instrumentType: string;
2753
- ticker: string;
2754
- market: {
2755
- nextOpen: string;
2756
- nextClose: string;
2757
- };
2758
- nextPause: {
2759
- start: string;
2760
- end: string;
2761
- };
2762
- } | undefined;
2763
2049
  };
2764
2050
  destAsset: {
2765
2051
  symbol: string;
@@ -2770,18 +2056,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2770
2056
  decimals: number;
2771
2057
  icon?: string | null | undefined;
2772
2058
  iconUrl?: string | null | undefined;
2773
- rwaData?: {
2774
- instrumentType: string;
2775
- ticker: string;
2776
- market: {
2777
- nextOpen: string;
2778
- nextClose: string;
2779
- };
2780
- nextPause: {
2781
- start: string;
2782
- end: string;
2783
- };
2784
- } | undefined;
2785
2059
  };
2786
2060
  srcAmount: string;
2787
2061
  destAmount: string;
@@ -2803,18 +2077,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2803
2077
  decimals: number;
2804
2078
  icon?: string | null | undefined;
2805
2079
  iconUrl?: string | null | undefined;
2806
- rwaData?: {
2807
- instrumentType: string;
2808
- ticker: string;
2809
- market: {
2810
- nextOpen: string;
2811
- nextClose: string;
2812
- };
2813
- nextPause: {
2814
- start: string;
2815
- end: string;
2816
- };
2817
- } | undefined;
2818
2080
  };
2819
2081
  destAsset: {
2820
2082
  symbol: string;
@@ -2825,18 +2087,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2825
2087
  decimals: number;
2826
2088
  icon?: string | null | undefined;
2827
2089
  iconUrl?: string | null | undefined;
2828
- rwaData?: {
2829
- instrumentType: string;
2830
- ticker: string;
2831
- market: {
2832
- nextOpen: string;
2833
- nextClose: string;
2834
- };
2835
- nextPause: {
2836
- start: string;
2837
- end: string;
2838
- };
2839
- } | undefined;
2840
2090
  };
2841
2091
  srcAmount: string;
2842
2092
  destAmount: string;
@@ -2863,18 +2113,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2863
2113
  decimals: number;
2864
2114
  icon?: string | null | undefined;
2865
2115
  iconUrl?: string | null | undefined;
2866
- rwaData?: {
2867
- instrumentType: string;
2868
- ticker: string;
2869
- market: {
2870
- nextOpen: string;
2871
- nextClose: string;
2872
- };
2873
- nextPause: {
2874
- start: string;
2875
- end: string;
2876
- };
2877
- } | undefined;
2878
2116
  }, {
2879
2117
  /**
2880
2118
  * The chainId of the token
@@ -2905,35 +2143,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2905
2143
  * URL for token icon
2906
2144
  */
2907
2145
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2908
- rwaData: import("@metamask/superstruct").Struct<{
2909
- instrumentType: string;
2910
- ticker: string;
2911
- market: {
2912
- nextOpen: string;
2913
- nextClose: string;
2914
- };
2915
- nextPause: {
2916
- start: string;
2917
- end: string;
2918
- };
2919
- } | undefined, {
2920
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
2921
- ticker: import("@metamask/superstruct").Struct<string, null>;
2922
- market: import("@metamask/superstruct").Struct<{
2923
- nextOpen: string;
2924
- nextClose: string;
2925
- }, {
2926
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
2927
- nextClose: import("@metamask/superstruct").Struct<string, null>;
2928
- }>;
2929
- nextPause: import("@metamask/superstruct").Struct<{
2930
- start: string;
2931
- end: string;
2932
- }, {
2933
- start: import("@metamask/superstruct").Struct<string, null>;
2934
- end: import("@metamask/superstruct").Struct<string, null>;
2935
- }>;
2936
- }>;
2937
2146
  }>;
2938
2147
  destAsset: import("@metamask/superstruct").Struct<{
2939
2148
  symbol: string;
@@ -2944,18 +2153,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2944
2153
  decimals: number;
2945
2154
  icon?: string | null | undefined;
2946
2155
  iconUrl?: string | null | undefined;
2947
- rwaData?: {
2948
- instrumentType: string;
2949
- ticker: string;
2950
- market: {
2951
- nextOpen: string;
2952
- nextClose: string;
2953
- };
2954
- nextPause: {
2955
- start: string;
2956
- end: string;
2957
- };
2958
- } | undefined;
2959
2156
  }, {
2960
2157
  /**
2961
2158
  * The chainId of the token
@@ -2986,35 +2183,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
2986
2183
  * URL for token icon
2987
2184
  */
2988
2185
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2989
- rwaData: import("@metamask/superstruct").Struct<{
2990
- instrumentType: string;
2991
- ticker: string;
2992
- market: {
2993
- nextOpen: string;
2994
- nextClose: string;
2995
- };
2996
- nextPause: {
2997
- start: string;
2998
- end: string;
2999
- };
3000
- } | undefined, {
3001
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
3002
- ticker: import("@metamask/superstruct").Struct<string, null>;
3003
- market: import("@metamask/superstruct").Struct<{
3004
- nextOpen: string;
3005
- nextClose: string;
3006
- }, {
3007
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
3008
- nextClose: import("@metamask/superstruct").Struct<string, null>;
3009
- }>;
3010
- nextPause: import("@metamask/superstruct").Struct<{
3011
- start: string;
3012
- end: string;
3013
- }, {
3014
- start: import("@metamask/superstruct").Struct<string, null>;
3015
- end: import("@metamask/superstruct").Struct<string, null>;
3016
- }>;
3017
- }>;
3018
2186
  }>;
3019
2187
  srcAmount: import("@metamask/superstruct").Struct<string, null>;
3020
2188
  destAmount: import("@metamask/superstruct").Struct<string, null>;
@@ -3040,18 +2208,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3040
2208
  decimals: number;
3041
2209
  icon?: string | null | undefined;
3042
2210
  iconUrl?: string | null | undefined;
3043
- rwaData?: {
3044
- instrumentType: string;
3045
- ticker: string;
3046
- market: {
3047
- nextOpen: string;
3048
- nextClose: string;
3049
- };
3050
- nextPause: {
3051
- start: string;
3052
- end: string;
3053
- };
3054
- } | undefined;
3055
2211
  };
3056
2212
  destAsset: {
3057
2213
  symbol: string;
@@ -3062,18 +2218,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3062
2218
  decimals: number;
3063
2219
  icon?: string | null | undefined;
3064
2220
  iconUrl?: string | null | undefined;
3065
- rwaData?: {
3066
- instrumentType: string;
3067
- ticker: string;
3068
- market: {
3069
- nextOpen: string;
3070
- nextClose: string;
3071
- };
3072
- nextPause: {
3073
- start: string;
3074
- end: string;
3075
- };
3076
- } | undefined;
3077
2221
  };
3078
2222
  srcAmount: string;
3079
2223
  destAmount: string;
@@ -3100,18 +2244,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3100
2244
  decimals: number;
3101
2245
  icon?: string | null | undefined;
3102
2246
  iconUrl?: string | null | undefined;
3103
- rwaData?: {
3104
- instrumentType: string;
3105
- ticker: string;
3106
- market: {
3107
- nextOpen: string;
3108
- nextClose: string;
3109
- };
3110
- nextPause: {
3111
- start: string;
3112
- end: string;
3113
- };
3114
- } | undefined;
3115
2247
  }, {
3116
2248
  /**
3117
2249
  * The chainId of the token
@@ -3142,35 +2274,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3142
2274
  * URL for token icon
3143
2275
  */
3144
2276
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
3145
- rwaData: import("@metamask/superstruct").Struct<{
3146
- instrumentType: string;
3147
- ticker: string;
3148
- market: {
3149
- nextOpen: string;
3150
- nextClose: string;
3151
- };
3152
- nextPause: {
3153
- start: string;
3154
- end: string;
3155
- };
3156
- } | undefined, {
3157
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
3158
- ticker: import("@metamask/superstruct").Struct<string, null>;
3159
- market: import("@metamask/superstruct").Struct<{
3160
- nextOpen: string;
3161
- nextClose: string;
3162
- }, {
3163
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
3164
- nextClose: import("@metamask/superstruct").Struct<string, null>;
3165
- }>;
3166
- nextPause: import("@metamask/superstruct").Struct<{
3167
- start: string;
3168
- end: string;
3169
- }, {
3170
- start: import("@metamask/superstruct").Struct<string, null>;
3171
- end: import("@metamask/superstruct").Struct<string, null>;
3172
- }>;
3173
- }>;
3174
2277
  }>;
3175
2278
  destAsset: import("@metamask/superstruct").Struct<{
3176
2279
  symbol: string;
@@ -3181,18 +2284,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3181
2284
  decimals: number;
3182
2285
  icon?: string | null | undefined;
3183
2286
  iconUrl?: string | null | undefined;
3184
- rwaData?: {
3185
- instrumentType: string;
3186
- ticker: string;
3187
- market: {
3188
- nextOpen: string;
3189
- nextClose: string;
3190
- };
3191
- nextPause: {
3192
- start: string;
3193
- end: string;
3194
- };
3195
- } | undefined;
3196
2287
  }, {
3197
2288
  /**
3198
2289
  * The chainId of the token
@@ -3223,35 +2314,6 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3223
2314
  * URL for token icon
3224
2315
  */
3225
2316
  iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
3226
- rwaData: import("@metamask/superstruct").Struct<{
3227
- instrumentType: string;
3228
- ticker: string;
3229
- market: {
3230
- nextOpen: string;
3231
- nextClose: string;
3232
- };
3233
- nextPause: {
3234
- start: string;
3235
- end: string;
3236
- };
3237
- } | undefined, {
3238
- instrumentType: import("@metamask/superstruct").Struct<string, null>;
3239
- ticker: import("@metamask/superstruct").Struct<string, null>;
3240
- market: import("@metamask/superstruct").Struct<{
3241
- nextOpen: string;
3242
- nextClose: string;
3243
- }, {
3244
- nextOpen: import("@metamask/superstruct").Struct<string, null>;
3245
- nextClose: import("@metamask/superstruct").Struct<string, null>;
3246
- }>;
3247
- nextPause: import("@metamask/superstruct").Struct<{
3248
- start: string;
3249
- end: string;
3250
- }, {
3251
- start: import("@metamask/superstruct").Struct<string, null>;
3252
- end: import("@metamask/superstruct").Struct<string, null>;
3253
- }>;
3254
- }>;
3255
2317
  }>;
3256
2318
  srcAmount: import("@metamask/superstruct").Struct<string, null>;
3257
2319
  destAmount: import("@metamask/superstruct").Struct<string, null>;
@@ -3276,6 +2338,120 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3276
2338
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
3277
2339
  totalFeeAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
3278
2340
  }>;
2341
+ intent: import("@metamask/superstruct").Struct<{
2342
+ protocol: string;
2343
+ order: {
2344
+ sellToken: string;
2345
+ buyToken: string;
2346
+ validTo: string | number;
2347
+ appData: string;
2348
+ appDataHash: string;
2349
+ feeAmount: string;
2350
+ kind: "sell" | "buy";
2351
+ partiallyFillable: boolean;
2352
+ receiver?: string | undefined;
2353
+ sellAmount?: string | undefined;
2354
+ buyAmount?: string | undefined;
2355
+ from?: string | undefined;
2356
+ };
2357
+ settlementContract?: string | undefined;
2358
+ relayer?: string | undefined;
2359
+ } | undefined, {
2360
+ /**
2361
+ * Identifier of the intent protocol used to interpret the order.
2362
+ */
2363
+ protocol: import("@metamask/superstruct").Struct<string, null>;
2364
+ /**
2365
+ * The intent order to be signed and submitted.
2366
+ */
2367
+ order: import("@metamask/superstruct").Struct<{
2368
+ sellToken: string;
2369
+ buyToken: string;
2370
+ validTo: string | number;
2371
+ appData: string;
2372
+ appDataHash: string;
2373
+ feeAmount: string;
2374
+ kind: "sell" | "buy";
2375
+ partiallyFillable: boolean;
2376
+ receiver?: string | undefined;
2377
+ sellAmount?: string | undefined;
2378
+ buyAmount?: string | undefined;
2379
+ from?: string | undefined;
2380
+ }, {
2381
+ /**
2382
+ * Address of the token being sold.
2383
+ */
2384
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
2385
+ /**
2386
+ * Address of the token being bought.
2387
+ */
2388
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
2389
+ /**
2390
+ * Optional receiver of the bought tokens.
2391
+ * If omitted, defaults to the signer / order owner.
2392
+ */
2393
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
2394
+ /**
2395
+ * Order expiration time.
2396
+ *
2397
+ * Can be provided as a UNIX timestamp in seconds, either as a number
2398
+ * or as a digit string, depending on provider requirements.
2399
+ */
2400
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
2401
+ /**
2402
+ * Arbitrary application-specific data attached to the order.
2403
+ */
2404
+ appData: import("@metamask/superstruct").Struct<string, null>;
2405
+ /**
2406
+ * Hash of the `appData` field, used for EIP-712 signing.
2407
+ */
2408
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
2409
+ /**
2410
+ * Fee amount paid for order execution, expressed as a digit string.
2411
+ */
2412
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
2413
+ /**
2414
+ * Order kind.
2415
+ *
2416
+ * - `sell`: exact sell amount, variable buy amount
2417
+ * - `buy`: exact buy amount, variable sell amount
2418
+ */
2419
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
2420
+ sell: "sell";
2421
+ buy: "buy";
2422
+ }>;
2423
+ /**
2424
+ * Whether the order can be partially filled.
2425
+ */
2426
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
2427
+ /**
2428
+ * Exact amount of the sell token.
2429
+ *
2430
+ * Required for `sell` orders.
2431
+ */
2432
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2433
+ /**
2434
+ * Exact amount of the buy token.
2435
+ *
2436
+ * Required for `buy` orders.
2437
+ */
2438
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2439
+ /**
2440
+ * Optional order owner / sender address.
2441
+ *
2442
+ * Provided for convenience when building the EIP-712 domain and message.
2443
+ */
2444
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
2445
+ }>;
2446
+ /**
2447
+ * Optional settlement contract address used for execution.
2448
+ */
2449
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
2450
+ /**
2451
+ * Optional relayer address responsible for order submission.
2452
+ */
2453
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
2454
+ }>;
3279
2455
  /**
3280
2456
  * A third party sponsors the gas. If true, then gasIncluded7702 is also true.
3281
2457
  */
@@ -3284,8 +2460,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3284
2460
  estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
3285
2461
  approval: import("@metamask/superstruct").Struct<{
3286
2462
  chainId: number;
3287
- to: string;
3288
2463
  from: string;
2464
+ to: string;
3289
2465
  value: string;
3290
2466
  data: string;
3291
2467
  gasLimit: number | null;
@@ -3302,8 +2478,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
3302
2478
  } | undefined, null>;
3303
2479
  trade: import("@metamask/superstruct").Struct<string | {
3304
2480
  chainId: number;
3305
- to: string;
3306
2481
  from: string;
2482
+ to: string;
3307
2483
  value: string;
3308
2484
  data: string;
3309
2485
  gasLimit: number | null;
@@ -3335,18 +2511,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3335
2511
  decimals: number;
3336
2512
  icon?: string | null | undefined;
3337
2513
  iconUrl?: string | null | undefined;
3338
- rwaData?: {
3339
- instrumentType: string;
3340
- ticker: string;
3341
- market: {
3342
- nextOpen: string;
3343
- nextClose: string;
3344
- };
3345
- nextPause: {
3346
- start: string;
3347
- end: string;
3348
- };
3349
- } | undefined;
3350
2514
  };
3351
2515
  destAsset: {
3352
2516
  symbol: string;
@@ -3357,18 +2521,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3357
2521
  decimals: number;
3358
2522
  icon?: string | null | undefined;
3359
2523
  iconUrl?: string | null | undefined;
3360
- rwaData?: {
3361
- instrumentType: string;
3362
- ticker: string;
3363
- market: {
3364
- nextOpen: string;
3365
- nextClose: string;
3366
- };
3367
- nextPause: {
3368
- start: string;
3369
- end: string;
3370
- };
3371
- } | undefined;
3372
2524
  };
3373
2525
  requestId: string;
3374
2526
  srcTokenAmount: string;
@@ -3386,18 +2538,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3386
2538
  decimals: number;
3387
2539
  icon?: string | null | undefined;
3388
2540
  iconUrl?: string | null | undefined;
3389
- rwaData?: {
3390
- instrumentType: string;
3391
- ticker: string;
3392
- market: {
3393
- nextOpen: string;
3394
- nextClose: string;
3395
- };
3396
- nextPause: {
3397
- start: string;
3398
- end: string;
3399
- };
3400
- } | undefined;
3401
2541
  };
3402
2542
  };
3403
2543
  txFee?: ({
@@ -3411,18 +2551,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3411
2551
  decimals: number;
3412
2552
  icon?: string | null | undefined;
3413
2553
  iconUrl?: string | null | undefined;
3414
- rwaData?: {
3415
- instrumentType: string;
3416
- ticker: string;
3417
- market: {
3418
- nextOpen: string;
3419
- nextClose: string;
3420
- };
3421
- nextPause: {
3422
- start: string;
3423
- end: string;
3424
- };
3425
- } | undefined;
3426
2554
  };
3427
2555
  } & {
3428
2556
  maxFeePerGas: string;
@@ -3443,18 +2571,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3443
2571
  decimals: number;
3444
2572
  icon?: string | null | undefined;
3445
2573
  iconUrl?: string | null | undefined;
3446
- rwaData?: {
3447
- instrumentType: string;
3448
- ticker: string;
3449
- market: {
3450
- nextOpen: string;
3451
- nextClose: string;
3452
- };
3453
- nextPause: {
3454
- start: string;
3455
- end: string;
3456
- };
3457
- } | undefined;
3458
2574
  };
3459
2575
  destAsset: {
3460
2576
  symbol: string;
@@ -3465,18 +2581,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3465
2581
  decimals: number;
3466
2582
  icon?: string | null | undefined;
3467
2583
  iconUrl?: string | null | undefined;
3468
- rwaData?: {
3469
- instrumentType: string;
3470
- ticker: string;
3471
- market: {
3472
- nextOpen: string;
3473
- nextClose: string;
3474
- };
3475
- nextPause: {
3476
- start: string;
3477
- end: string;
3478
- };
3479
- } | undefined;
3480
2584
  };
3481
2585
  srcAmount: string;
3482
2586
  destAmount: string;
@@ -3499,18 +2603,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3499
2603
  decimals: number;
3500
2604
  icon?: string | null | undefined;
3501
2605
  iconUrl?: string | null | undefined;
3502
- rwaData?: {
3503
- instrumentType: string;
3504
- ticker: string;
3505
- market: {
3506
- nextOpen: string;
3507
- nextClose: string;
3508
- };
3509
- nextPause: {
3510
- start: string;
3511
- end: string;
3512
- };
3513
- } | undefined;
3514
2606
  };
3515
2607
  destAsset: {
3516
2608
  symbol: string;
@@ -3521,18 +2613,6 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3521
2613
  decimals: number;
3522
2614
  icon?: string | null | undefined;
3523
2615
  iconUrl?: string | null | undefined;
3524
- rwaData?: {
3525
- instrumentType: string;
3526
- ticker: string;
3527
- market: {
3528
- nextOpen: string;
3529
- nextClose: string;
3530
- };
3531
- nextPause: {
3532
- start: string;
3533
- end: string;
3534
- };
3535
- } | undefined;
3536
2616
  };
3537
2617
  srcAmount: string;
3538
2618
  destAmount: string;
@@ -3551,13 +2631,32 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3551
2631
  priceImpact?: string | undefined;
3552
2632
  totalFeeAmountUsd?: string | undefined;
3553
2633
  } | undefined;
2634
+ intent?: {
2635
+ protocol: string;
2636
+ order: {
2637
+ sellToken: string;
2638
+ buyToken: string;
2639
+ validTo: string | number;
2640
+ appData: string;
2641
+ appDataHash: string;
2642
+ feeAmount: string;
2643
+ kind: "sell" | "buy";
2644
+ partiallyFillable: boolean;
2645
+ receiver?: string | undefined;
2646
+ sellAmount?: string | undefined;
2647
+ buyAmount?: string | undefined;
2648
+ from?: string | undefined;
2649
+ };
2650
+ settlementContract?: string | undefined;
2651
+ relayer?: string | undefined;
2652
+ } | undefined;
3554
2653
  gasSponsored?: boolean | undefined;
3555
2654
  };
3556
2655
  estimatedProcessingTimeInSeconds: number;
3557
2656
  trade: string | {
3558
2657
  chainId: number;
3559
- to: string;
3560
2658
  from: string;
2659
+ to: string;
3561
2660
  value: string;
3562
2661
  data: string;
3563
2662
  gasLimit: number | null;
@@ -3577,8 +2676,8 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
3577
2676
  };
3578
2677
  approval?: {
3579
2678
  chainId: number;
3580
- to: string;
3581
2679
  from: string;
2680
+ to: string;
3582
2681
  value: string;
3583
2682
  data: string;
3584
2683
  gasLimit: number | null;