@metamask/bridge-controller 55.0.0 → 56.0.0

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.
@@ -14,13 +14,13 @@ export declare enum ActionTypes {
14
14
  export declare const truthyString: (s: string) => boolean;
15
15
  export declare const BridgeAssetSchema: import("@metamask/superstruct").Struct<{
16
16
  symbol: string;
17
+ chainId: number;
17
18
  address: string;
19
+ assetId: `${string}:${string}/${string}:${string}`;
18
20
  name: string;
19
- chainId: number;
20
21
  decimals: number;
21
- assetId: `${string}:${string}/${string}:${string}`;
22
- iconUrl?: string | null | undefined;
23
22
  icon?: string | null | undefined;
23
+ iconUrl?: string | null | undefined;
24
24
  }, {
25
25
  /**
26
26
  * The chainId of the token
@@ -93,8 +93,8 @@ export declare const ChainConfigurationSchema: import("@metamask/superstruct").S
93
93
  }>;
94
94
  }>;
95
95
  export declare const PriceImpactThresholdSchema: import("@metamask/superstruct").Struct<{
96
- normal: number;
97
96
  gasless: number;
97
+ normal: number;
98
98
  }, {
99
99
  gasless: import("@metamask/superstruct").Struct<number, null>;
100
100
  normal: import("@metamask/superstruct").Struct<number, null>;
@@ -103,6 +103,9 @@ export declare const PriceImpactThresholdSchema: import("@metamask/superstruct")
103
103
  * This is the schema for the feature flags response from the RemoteFeatureFlagController
104
104
  */
105
105
  export declare const PlatformConfigSchema: import("@metamask/superstruct").Struct<{
106
+ refreshRate: number;
107
+ minimumVersion: string;
108
+ maxRefreshCount: number;
106
109
  support: boolean;
107
110
  chains: Record<string, {
108
111
  isActiveSrc: boolean;
@@ -119,12 +122,9 @@ export declare const PlatformConfigSchema: import("@metamask/superstruct").Struc
119
122
  other: Record<string, string>;
120
123
  } | undefined;
121
124
  }>;
122
- refreshRate: number;
123
- minimumVersion: string;
124
- maxRefreshCount: number;
125
125
  priceImpactThreshold?: {
126
- normal: number;
127
126
  gasless: number;
127
+ normal: number;
128
128
  } | undefined;
129
129
  quoteRequestOverrides?: Record<FeatureId, {
130
130
  aggIds?: string[] | undefined;
@@ -136,13 +136,13 @@ export declare const PlatformConfigSchema: import("@metamask/superstruct").Struc
136
136
  other: Record<string, string>;
137
137
  } | undefined> | undefined;
138
138
  sse?: {
139
- enabled: boolean;
140
139
  minimumVersion: string;
140
+ enabled: boolean;
141
141
  } | undefined;
142
142
  }, {
143
143
  priceImpactThreshold: import("@metamask/superstruct").Struct<{
144
- normal: number;
145
144
  gasless: number;
145
+ normal: number;
146
146
  } | undefined, {
147
147
  gasless: import("@metamask/superstruct").Struct<number, null>;
148
148
  normal: import("@metamask/superstruct").Struct<number, null>;
@@ -180,8 +180,8 @@ export declare const PlatformConfigSchema: import("@metamask/superstruct").Struc
180
180
  other: Record<string, string>;
181
181
  } | undefined> | undefined, null>;
182
182
  sse: import("@metamask/superstruct").Struct<{
183
- enabled: boolean;
184
183
  minimumVersion: string;
184
+ enabled: boolean;
185
185
  } | undefined, {
186
186
  enabled: import("@metamask/superstruct").Struct<boolean, null>;
187
187
  /**
@@ -191,6 +191,9 @@ export declare const PlatformConfigSchema: import("@metamask/superstruct").Struc
191
191
  }>;
192
192
  }>;
193
193
  export declare const validateFeatureFlagsResponse: (data: unknown) => data is {
194
+ refreshRate: number;
195
+ minimumVersion: string;
196
+ maxRefreshCount: number;
194
197
  support: boolean;
195
198
  chains: Record<string, {
196
199
  isActiveSrc: boolean;
@@ -207,12 +210,9 @@ export declare const validateFeatureFlagsResponse: (data: unknown) => data is {
207
210
  other: Record<string, string>;
208
211
  } | undefined;
209
212
  }>;
210
- refreshRate: number;
211
- minimumVersion: string;
212
- maxRefreshCount: number;
213
213
  priceImpactThreshold?: {
214
- normal: number;
215
214
  gasless: number;
215
+ normal: number;
216
216
  } | undefined;
217
217
  quoteRequestOverrides?: Record<FeatureId, {
218
218
  aggIds?: string[] | undefined;
@@ -224,43 +224,43 @@ export declare const validateFeatureFlagsResponse: (data: unknown) => data is {
224
224
  other: Record<string, string>;
225
225
  } | undefined> | undefined;
226
226
  sse?: {
227
- enabled: boolean;
228
227
  minimumVersion: string;
228
+ enabled: boolean;
229
229
  } | undefined;
230
230
  };
231
231
  export declare const validateSwapsTokenObject: (data: unknown) => data is {
232
232
  symbol: string;
233
+ chainId: number;
233
234
  address: string;
235
+ assetId: `${string}:${string}/${string}:${string}`;
234
236
  name: string;
235
- chainId: number;
236
237
  decimals: number;
237
- assetId: `${string}:${string}/${string}:${string}`;
238
- iconUrl?: string | null | undefined;
239
238
  icon?: string | null | undefined;
239
+ iconUrl?: string | null | undefined;
240
240
  };
241
241
  export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
242
242
  amount: string;
243
243
  asset: {
244
244
  symbol: string;
245
+ chainId: number;
245
246
  address: string;
247
+ assetId: `${string}:${string}/${string}:${string}`;
246
248
  name: string;
247
- chainId: number;
248
249
  decimals: number;
249
- assetId: `${string}:${string}/${string}:${string}`;
250
- iconUrl?: string | null | undefined;
251
250
  icon?: string | null | undefined;
251
+ iconUrl?: string | null | undefined;
252
252
  };
253
253
  }, {
254
254
  amount: import("@metamask/superstruct").Struct<string, null>;
255
255
  asset: import("@metamask/superstruct").Struct<{
256
256
  symbol: string;
257
+ chainId: number;
257
258
  address: string;
259
+ assetId: `${string}:${string}/${string}:${string}`;
258
260
  name: string;
259
- chainId: number;
260
261
  decimals: number;
261
- assetId: `${string}:${string}/${string}:${string}`;
262
- iconUrl?: string | null | undefined;
263
262
  icon?: string | null | undefined;
263
+ iconUrl?: string | null | undefined;
264
264
  }, {
265
265
  /**
266
266
  * The chainId of the token
@@ -295,8 +295,8 @@ export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
295
295
  }>;
296
296
  export declare const ProtocolSchema: import("@metamask/superstruct").Struct<{
297
297
  name: string;
298
- displayName?: string | undefined;
299
298
  icon?: string | undefined;
299
+ displayName?: string | undefined;
300
300
  }, {
301
301
  name: import("@metamask/superstruct").Struct<string, null>;
302
302
  displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -304,34 +304,34 @@ export declare const ProtocolSchema: import("@metamask/superstruct").Struct<{
304
304
  }>;
305
305
  export declare const StepSchema: import("@metamask/superstruct").Struct<{
306
306
  action: ActionTypes;
307
- protocol: {
308
- name: string;
309
- displayName?: string | undefined;
310
- icon?: string | undefined;
311
- };
312
307
  srcChainId: number;
313
308
  srcAsset: {
314
309
  symbol: string;
310
+ chainId: number;
315
311
  address: string;
312
+ assetId: `${string}:${string}/${string}:${string}`;
316
313
  name: string;
317
- chainId: number;
318
314
  decimals: number;
319
- assetId: `${string}:${string}/${string}:${string}`;
320
- iconUrl?: string | null | undefined;
321
315
  icon?: string | null | undefined;
316
+ iconUrl?: string | null | undefined;
322
317
  };
323
318
  destAsset: {
324
319
  symbol: string;
320
+ chainId: number;
325
321
  address: string;
322
+ assetId: `${string}:${string}/${string}:${string}`;
326
323
  name: string;
327
- chainId: number;
328
324
  decimals: number;
329
- assetId: `${string}:${string}/${string}:${string}`;
330
- iconUrl?: string | null | undefined;
331
325
  icon?: string | null | undefined;
326
+ iconUrl?: string | null | undefined;
332
327
  };
333
328
  srcAmount: string;
334
329
  destAmount: string;
330
+ protocol: {
331
+ name: string;
332
+ icon?: string | undefined;
333
+ displayName?: string | undefined;
334
+ };
335
335
  destChainId?: number | undefined;
336
336
  }, {
337
337
  action: import("@metamask/superstruct").Struct<ActionTypes, {
@@ -343,13 +343,13 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
343
343
  destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
344
344
  srcAsset: import("@metamask/superstruct").Struct<{
345
345
  symbol: string;
346
+ chainId: number;
346
347
  address: string;
348
+ assetId: `${string}:${string}/${string}:${string}`;
347
349
  name: string;
348
- chainId: number;
349
350
  decimals: number;
350
- assetId: `${string}:${string}/${string}:${string}`;
351
- iconUrl?: string | null | undefined;
352
351
  icon?: string | null | undefined;
352
+ iconUrl?: string | null | undefined;
353
353
  }, {
354
354
  /**
355
355
  * The chainId of the token
@@ -383,13 +383,13 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
383
383
  }>;
384
384
  destAsset: import("@metamask/superstruct").Struct<{
385
385
  symbol: string;
386
+ chainId: number;
386
387
  address: string;
388
+ assetId: `${string}:${string}/${string}:${string}`;
387
389
  name: string;
388
- chainId: number;
389
390
  decimals: number;
390
- assetId: `${string}:${string}/${string}:${string}`;
391
- iconUrl?: string | null | undefined;
392
391
  icon?: string | null | undefined;
392
+ iconUrl?: string | null | undefined;
393
393
  }, {
394
394
  /**
395
395
  * The chainId of the token
@@ -425,8 +425,8 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
425
425
  destAmount: import("@metamask/superstruct").Struct<string, null>;
426
426
  protocol: import("@metamask/superstruct").Struct<{
427
427
  name: string;
428
- displayName?: string | undefined;
429
428
  icon?: string | undefined;
429
+ displayName?: string | undefined;
430
430
  }, {
431
431
  name: import("@metamask/superstruct").Struct<string, null>;
432
432
  displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -434,29 +434,29 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
434
434
  }>;
435
435
  }>;
436
436
  export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
437
- requestId: string;
438
437
  srcChainId: number;
439
438
  destChainId: number;
440
439
  srcAsset: {
441
440
  symbol: string;
441
+ chainId: number;
442
442
  address: string;
443
+ assetId: `${string}:${string}/${string}:${string}`;
443
444
  name: string;
444
- chainId: number;
445
445
  decimals: number;
446
- assetId: `${string}:${string}/${string}:${string}`;
447
- iconUrl?: string | null | undefined;
448
446
  icon?: string | null | undefined;
447
+ iconUrl?: string | null | undefined;
449
448
  };
450
449
  destAsset: {
451
450
  symbol: string;
451
+ chainId: number;
452
452
  address: string;
453
+ assetId: `${string}:${string}/${string}:${string}`;
453
454
  name: string;
454
- chainId: number;
455
455
  decimals: number;
456
- assetId: `${string}:${string}/${string}:${string}`;
457
- iconUrl?: string | null | undefined;
458
456
  icon?: string | null | undefined;
457
+ iconUrl?: string | null | undefined;
459
458
  };
459
+ requestId: string;
460
460
  srcTokenAmount: string;
461
461
  destTokenAmount: string;
462
462
  minDestTokenAmount: string;
@@ -465,96 +465,96 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
465
465
  amount: string;
466
466
  asset: {
467
467
  symbol: string;
468
+ chainId: number;
468
469
  address: string;
470
+ assetId: `${string}:${string}/${string}:${string}`;
469
471
  name: string;
470
- chainId: number;
471
472
  decimals: number;
472
- assetId: `${string}:${string}/${string}:${string}`;
473
- iconUrl?: string | null | undefined;
474
473
  icon?: string | null | undefined;
474
+ iconUrl?: string | null | undefined;
475
475
  };
476
476
  };
477
477
  txFee?: ({
478
478
  amount: string;
479
479
  asset: {
480
480
  symbol: string;
481
+ chainId: number;
481
482
  address: string;
483
+ assetId: `${string}:${string}/${string}:${string}`;
482
484
  name: string;
483
- chainId: number;
484
485
  decimals: number;
485
- assetId: `${string}:${string}/${string}:${string}`;
486
- iconUrl?: string | null | undefined;
487
486
  icon?: string | null | undefined;
487
+ iconUrl?: string | null | undefined;
488
488
  };
489
489
  } & {
490
- maxPriorityFeePerGas: string;
491
490
  maxFeePerGas: string;
491
+ maxPriorityFeePerGas: string;
492
492
  }) | undefined;
493
493
  };
494
494
  bridgeId: string;
495
495
  bridges: string[];
496
496
  steps: {
497
497
  action: ActionTypes;
498
- protocol: {
499
- name: string;
500
- displayName?: string | undefined;
501
- icon?: string | undefined;
502
- };
503
498
  srcChainId: number;
504
499
  srcAsset: {
505
500
  symbol: string;
501
+ chainId: number;
506
502
  address: string;
503
+ assetId: `${string}:${string}/${string}:${string}`;
507
504
  name: string;
508
- chainId: number;
509
505
  decimals: number;
510
- assetId: `${string}:${string}/${string}:${string}`;
511
- iconUrl?: string | null | undefined;
512
506
  icon?: string | null | undefined;
507
+ iconUrl?: string | null | undefined;
513
508
  };
514
509
  destAsset: {
515
510
  symbol: string;
511
+ chainId: number;
516
512
  address: string;
513
+ assetId: `${string}:${string}/${string}:${string}`;
517
514
  name: string;
518
- chainId: number;
519
515
  decimals: number;
520
- assetId: `${string}:${string}/${string}:${string}`;
521
- iconUrl?: string | null | undefined;
522
516
  icon?: string | null | undefined;
517
+ iconUrl?: string | null | undefined;
523
518
  };
524
519
  srcAmount: string;
525
520
  destAmount: string;
526
- destChainId?: number | undefined;
527
- }[];
528
- refuel?: {
529
- action: ActionTypes;
530
521
  protocol: {
531
522
  name: string;
532
- displayName?: string | undefined;
533
523
  icon?: string | undefined;
524
+ displayName?: string | undefined;
534
525
  };
526
+ destChainId?: number | undefined;
527
+ }[];
528
+ refuel?: {
529
+ action: ActionTypes;
535
530
  srcChainId: number;
536
531
  srcAsset: {
537
532
  symbol: string;
533
+ chainId: number;
538
534
  address: string;
535
+ assetId: `${string}:${string}/${string}:${string}`;
539
536
  name: string;
540
- chainId: number;
541
537
  decimals: number;
542
- assetId: `${string}:${string}/${string}:${string}`;
543
- iconUrl?: string | null | undefined;
544
538
  icon?: string | null | undefined;
539
+ iconUrl?: string | null | undefined;
545
540
  };
546
541
  destAsset: {
547
542
  symbol: string;
543
+ chainId: number;
548
544
  address: string;
545
+ assetId: `${string}:${string}/${string}:${string}`;
549
546
  name: string;
550
- chainId: number;
551
547
  decimals: number;
552
- assetId: `${string}:${string}/${string}:${string}`;
553
- iconUrl?: string | null | undefined;
554
548
  icon?: string | null | undefined;
549
+ iconUrl?: string | null | undefined;
555
550
  };
556
551
  srcAmount: string;
557
552
  destAmount: string;
553
+ protocol: {
554
+ name: string;
555
+ icon?: string | undefined;
556
+ displayName?: string | undefined;
557
+ };
558
558
  destChainId?: number | undefined;
559
559
  } | undefined;
560
560
  gasIncluded?: boolean | undefined;
@@ -570,13 +570,13 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
570
570
  srcChainId: import("@metamask/superstruct").Struct<number, null>;
571
571
  srcAsset: import("@metamask/superstruct").Struct<{
572
572
  symbol: string;
573
+ chainId: number;
573
574
  address: string;
575
+ assetId: `${string}:${string}/${string}:${string}`;
574
576
  name: string;
575
- chainId: number;
576
577
  decimals: number;
577
- assetId: `${string}:${string}/${string}:${string}`;
578
- iconUrl?: string | null | undefined;
579
578
  icon?: string | null | undefined;
579
+ iconUrl?: string | null | undefined;
580
580
  }, {
581
581
  /**
582
582
  * The chainId of the token
@@ -616,13 +616,13 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
616
616
  destChainId: import("@metamask/superstruct").Struct<number, null>;
617
617
  destAsset: import("@metamask/superstruct").Struct<{
618
618
  symbol: string;
619
+ chainId: number;
619
620
  address: string;
621
+ assetId: `${string}:${string}/${string}:${string}`;
620
622
  name: string;
621
- chainId: number;
622
623
  decimals: number;
623
- assetId: `${string}:${string}/${string}:${string}`;
624
- iconUrl?: string | null | undefined;
625
624
  icon?: string | null | undefined;
625
+ iconUrl?: string | null | undefined;
626
626
  }, {
627
627
  /**
628
628
  * The chainId of the token
@@ -667,55 +667,55 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
667
667
  amount: string;
668
668
  asset: {
669
669
  symbol: string;
670
+ chainId: number;
670
671
  address: string;
672
+ assetId: `${string}:${string}/${string}:${string}`;
671
673
  name: string;
672
- chainId: number;
673
674
  decimals: number;
674
- assetId: `${string}:${string}/${string}:${string}`;
675
- iconUrl?: string | null | undefined;
676
675
  icon?: string | null | undefined;
676
+ iconUrl?: string | null | undefined;
677
677
  };
678
678
  };
679
679
  txFee?: ({
680
680
  amount: string;
681
681
  asset: {
682
682
  symbol: string;
683
+ chainId: number;
683
684
  address: string;
685
+ assetId: `${string}:${string}/${string}:${string}`;
684
686
  name: string;
685
- chainId: number;
686
687
  decimals: number;
687
- assetId: `${string}:${string}/${string}:${string}`;
688
- iconUrl?: string | null | undefined;
689
688
  icon?: string | null | undefined;
689
+ iconUrl?: string | null | undefined;
690
690
  };
691
691
  } & {
692
- maxPriorityFeePerGas: string;
693
692
  maxFeePerGas: string;
693
+ maxPriorityFeePerGas: string;
694
694
  }) | undefined;
695
695
  }, {
696
696
  metabridge: import("@metamask/superstruct").Struct<{
697
697
  amount: string;
698
698
  asset: {
699
699
  symbol: string;
700
+ chainId: number;
700
701
  address: string;
702
+ assetId: `${string}:${string}/${string}:${string}`;
701
703
  name: string;
702
- chainId: number;
703
704
  decimals: number;
704
- assetId: `${string}:${string}/${string}:${string}`;
705
- iconUrl?: string | null | undefined;
706
705
  icon?: string | null | undefined;
706
+ iconUrl?: string | null | undefined;
707
707
  };
708
708
  }, {
709
709
  amount: import("@metamask/superstruct").Struct<string, null>;
710
710
  asset: import("@metamask/superstruct").Struct<{
711
711
  symbol: string;
712
+ chainId: number;
712
713
  address: string;
714
+ assetId: `${string}:${string}/${string}:${string}`;
713
715
  name: string;
714
- chainId: number;
715
716
  decimals: number;
716
- assetId: `${string}:${string}/${string}:${string}`;
717
- iconUrl?: string | null | undefined;
718
717
  icon?: string | null | undefined;
718
+ iconUrl?: string | null | undefined;
719
719
  }, {
720
720
  /**
721
721
  * The chainId of the token
@@ -756,17 +756,17 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
756
756
  amount: string;
757
757
  asset: {
758
758
  symbol: string;
759
+ chainId: number;
759
760
  address: string;
761
+ assetId: `${string}:${string}/${string}:${string}`;
760
762
  name: string;
761
- chainId: number;
762
763
  decimals: number;
763
- assetId: `${string}:${string}/${string}:${string}`;
764
- iconUrl?: string | null | undefined;
765
764
  icon?: string | null | undefined;
765
+ iconUrl?: string | null | undefined;
766
766
  };
767
767
  } & {
768
- maxPriorityFeePerGas: string;
769
768
  maxFeePerGas: string;
769
+ maxPriorityFeePerGas: string;
770
770
  }) | undefined, null>;
771
771
  }>;
772
772
  gasIncluded: import("@metamask/superstruct").Struct<boolean | undefined, null>;
@@ -778,65 +778,65 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
778
778
  bridges: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
779
779
  steps: import("@metamask/superstruct").Struct<{
780
780
  action: ActionTypes;
781
- protocol: {
782
- name: string;
783
- displayName?: string | undefined;
784
- icon?: string | undefined;
785
- };
786
781
  srcChainId: number;
787
782
  srcAsset: {
788
783
  symbol: string;
784
+ chainId: number;
789
785
  address: string;
786
+ assetId: `${string}:${string}/${string}:${string}`;
790
787
  name: string;
791
- chainId: number;
792
788
  decimals: number;
793
- assetId: `${string}:${string}/${string}:${string}`;
794
- iconUrl?: string | null | undefined;
795
789
  icon?: string | null | undefined;
790
+ iconUrl?: string | null | undefined;
796
791
  };
797
792
  destAsset: {
798
793
  symbol: string;
794
+ chainId: number;
799
795
  address: string;
796
+ assetId: `${string}:${string}/${string}:${string}`;
800
797
  name: string;
801
- chainId: number;
802
798
  decimals: number;
803
- assetId: `${string}:${string}/${string}:${string}`;
804
- iconUrl?: string | null | undefined;
805
799
  icon?: string | null | undefined;
800
+ iconUrl?: string | null | undefined;
806
801
  };
807
802
  srcAmount: string;
808
803
  destAmount: string;
809
- destChainId?: number | undefined;
810
- }[], import("@metamask/superstruct").Struct<{
811
- action: ActionTypes;
812
804
  protocol: {
813
805
  name: string;
814
- displayName?: string | undefined;
815
806
  icon?: string | undefined;
807
+ displayName?: string | undefined;
816
808
  };
809
+ destChainId?: number | undefined;
810
+ }[], import("@metamask/superstruct").Struct<{
811
+ action: ActionTypes;
817
812
  srcChainId: number;
818
813
  srcAsset: {
819
814
  symbol: string;
815
+ chainId: number;
820
816
  address: string;
817
+ assetId: `${string}:${string}/${string}:${string}`;
821
818
  name: string;
822
- chainId: number;
823
819
  decimals: number;
824
- assetId: `${string}:${string}/${string}:${string}`;
825
- iconUrl?: string | null | undefined;
826
820
  icon?: string | null | undefined;
821
+ iconUrl?: string | null | undefined;
827
822
  };
828
823
  destAsset: {
829
824
  symbol: string;
825
+ chainId: number;
830
826
  address: string;
827
+ assetId: `${string}:${string}/${string}:${string}`;
831
828
  name: string;
832
- chainId: number;
833
829
  decimals: number;
834
- assetId: `${string}:${string}/${string}:${string}`;
835
- iconUrl?: string | null | undefined;
836
830
  icon?: string | null | undefined;
831
+ iconUrl?: string | null | undefined;
837
832
  };
838
833
  srcAmount: string;
839
834
  destAmount: string;
835
+ protocol: {
836
+ name: string;
837
+ icon?: string | undefined;
838
+ displayName?: string | undefined;
839
+ };
840
840
  destChainId?: number | undefined;
841
841
  }, {
842
842
  action: import("@metamask/superstruct").Struct<ActionTypes, {
@@ -848,13 +848,13 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
848
848
  destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
849
849
  srcAsset: import("@metamask/superstruct").Struct<{
850
850
  symbol: string;
851
+ chainId: number;
851
852
  address: string;
853
+ assetId: `${string}:${string}/${string}:${string}`;
852
854
  name: string;
853
- chainId: number;
854
855
  decimals: number;
855
- assetId: `${string}:${string}/${string}:${string}`;
856
- iconUrl?: string | null | undefined;
857
856
  icon?: string | null | undefined;
857
+ iconUrl?: string | null | undefined;
858
858
  }, {
859
859
  /**
860
860
  * The chainId of the token
@@ -888,13 +888,13 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
888
888
  }>;
889
889
  destAsset: import("@metamask/superstruct").Struct<{
890
890
  symbol: string;
891
+ chainId: number;
891
892
  address: string;
893
+ assetId: `${string}:${string}/${string}:${string}`;
892
894
  name: string;
893
- chainId: number;
894
895
  decimals: number;
895
- assetId: `${string}:${string}/${string}:${string}`;
896
- iconUrl?: string | null | undefined;
897
896
  icon?: string | null | undefined;
897
+ iconUrl?: string | null | undefined;
898
898
  }, {
899
899
  /**
900
900
  * The chainId of the token
@@ -930,8 +930,8 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
930
930
  destAmount: import("@metamask/superstruct").Struct<string, null>;
931
931
  protocol: import("@metamask/superstruct").Struct<{
932
932
  name: string;
933
- displayName?: string | undefined;
934
933
  icon?: string | undefined;
934
+ displayName?: string | undefined;
935
935
  }, {
936
936
  name: import("@metamask/superstruct").Struct<string, null>;
937
937
  displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -940,34 +940,34 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
940
940
  }>>;
941
941
  refuel: import("@metamask/superstruct").Struct<{
942
942
  action: ActionTypes;
943
- protocol: {
944
- name: string;
945
- displayName?: string | undefined;
946
- icon?: string | undefined;
947
- };
948
943
  srcChainId: number;
949
944
  srcAsset: {
950
945
  symbol: string;
946
+ chainId: number;
951
947
  address: string;
948
+ assetId: `${string}:${string}/${string}:${string}`;
952
949
  name: string;
953
- chainId: number;
954
950
  decimals: number;
955
- assetId: `${string}:${string}/${string}:${string}`;
956
- iconUrl?: string | null | undefined;
957
951
  icon?: string | null | undefined;
952
+ iconUrl?: string | null | undefined;
958
953
  };
959
954
  destAsset: {
960
955
  symbol: string;
956
+ chainId: number;
961
957
  address: string;
958
+ assetId: `${string}:${string}/${string}:${string}`;
962
959
  name: string;
963
- chainId: number;
964
960
  decimals: number;
965
- assetId: `${string}:${string}/${string}:${string}`;
966
- iconUrl?: string | null | undefined;
967
961
  icon?: string | null | undefined;
962
+ iconUrl?: string | null | undefined;
968
963
  };
969
964
  srcAmount: string;
970
965
  destAmount: string;
966
+ protocol: {
967
+ name: string;
968
+ icon?: string | undefined;
969
+ displayName?: string | undefined;
970
+ };
971
971
  destChainId?: number | undefined;
972
972
  } | undefined, {
973
973
  action: import("@metamask/superstruct").Struct<ActionTypes, {
@@ -979,13 +979,13 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
979
979
  destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
980
980
  srcAsset: import("@metamask/superstruct").Struct<{
981
981
  symbol: string;
982
+ chainId: number;
982
983
  address: string;
984
+ assetId: `${string}:${string}/${string}:${string}`;
983
985
  name: string;
984
- chainId: number;
985
986
  decimals: number;
986
- assetId: `${string}:${string}/${string}:${string}`;
987
- iconUrl?: string | null | undefined;
988
987
  icon?: string | null | undefined;
988
+ iconUrl?: string | null | undefined;
989
989
  }, {
990
990
  /**
991
991
  * The chainId of the token
@@ -1019,13 +1019,13 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1019
1019
  }>;
1020
1020
  destAsset: import("@metamask/superstruct").Struct<{
1021
1021
  symbol: string;
1022
+ chainId: number;
1022
1023
  address: string;
1024
+ assetId: `${string}:${string}/${string}:${string}`;
1023
1025
  name: string;
1024
- chainId: number;
1025
1026
  decimals: number;
1026
- assetId: `${string}:${string}/${string}:${string}`;
1027
- iconUrl?: string | null | undefined;
1028
1027
  icon?: string | null | undefined;
1028
+ iconUrl?: string | null | undefined;
1029
1029
  }, {
1030
1030
  /**
1031
1031
  * The chainId of the token
@@ -1061,8 +1061,8 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1061
1061
  destAmount: import("@metamask/superstruct").Struct<string, null>;
1062
1062
  protocol: import("@metamask/superstruct").Struct<{
1063
1063
  name: string;
1064
- displayName?: string | undefined;
1065
1064
  icon?: string | undefined;
1065
+ displayName?: string | undefined;
1066
1066
  }, {
1067
1067
  name: import("@metamask/superstruct").Struct<string, null>;
1068
1068
  displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -1082,12 +1082,12 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1082
1082
  }>;
1083
1083
  }>;
1084
1084
  export declare const TxDataSchema: import("@metamask/superstruct").Struct<{
1085
- data: string;
1086
- value: string;
1085
+ chainId: number;
1087
1086
  to: string;
1088
1087
  from: string;
1088
+ value: string;
1089
+ data: string;
1089
1090
  gasLimit: number | null;
1090
- chainId: number;
1091
1091
  effectiveGas?: number | undefined;
1092
1092
  }, {
1093
1093
  chainId: import("@metamask/superstruct").Struct<number, null>;
@@ -1107,29 +1107,29 @@ export declare const BitcoinTradeDataSchema: import("@metamask/superstruct").Str
1107
1107
  }>;
1108
1108
  export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct<{
1109
1109
  quote: {
1110
- requestId: string;
1111
1110
  srcChainId: number;
1112
1111
  destChainId: number;
1113
1112
  srcAsset: {
1114
1113
  symbol: string;
1114
+ chainId: number;
1115
1115
  address: string;
1116
+ assetId: `${string}:${string}/${string}:${string}`;
1116
1117
  name: string;
1117
- chainId: number;
1118
1118
  decimals: number;
1119
- assetId: `${string}:${string}/${string}:${string}`;
1120
- iconUrl?: string | null | undefined;
1121
1119
  icon?: string | null | undefined;
1120
+ iconUrl?: string | null | undefined;
1122
1121
  };
1123
1122
  destAsset: {
1124
1123
  symbol: string;
1124
+ chainId: number;
1125
1125
  address: string;
1126
+ assetId: `${string}:${string}/${string}:${string}`;
1126
1127
  name: string;
1127
- chainId: number;
1128
1128
  decimals: number;
1129
- assetId: `${string}:${string}/${string}:${string}`;
1130
- iconUrl?: string | null | undefined;
1131
1129
  icon?: string | null | undefined;
1130
+ iconUrl?: string | null | undefined;
1132
1131
  };
1132
+ requestId: string;
1133
1133
  srcTokenAmount: string;
1134
1134
  destTokenAmount: string;
1135
1135
  minDestTokenAmount: string;
@@ -1138,96 +1138,96 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1138
1138
  amount: string;
1139
1139
  asset: {
1140
1140
  symbol: string;
1141
+ chainId: number;
1141
1142
  address: string;
1143
+ assetId: `${string}:${string}/${string}:${string}`;
1142
1144
  name: string;
1143
- chainId: number;
1144
1145
  decimals: number;
1145
- assetId: `${string}:${string}/${string}:${string}`;
1146
- iconUrl?: string | null | undefined;
1147
1146
  icon?: string | null | undefined;
1147
+ iconUrl?: string | null | undefined;
1148
1148
  };
1149
1149
  };
1150
1150
  txFee?: ({
1151
1151
  amount: string;
1152
1152
  asset: {
1153
1153
  symbol: string;
1154
+ chainId: number;
1154
1155
  address: string;
1156
+ assetId: `${string}:${string}/${string}:${string}`;
1155
1157
  name: string;
1156
- chainId: number;
1157
1158
  decimals: number;
1158
- assetId: `${string}:${string}/${string}:${string}`;
1159
- iconUrl?: string | null | undefined;
1160
1159
  icon?: string | null | undefined;
1160
+ iconUrl?: string | null | undefined;
1161
1161
  };
1162
1162
  } & {
1163
- maxPriorityFeePerGas: string;
1164
1163
  maxFeePerGas: string;
1164
+ maxPriorityFeePerGas: string;
1165
1165
  }) | undefined;
1166
1166
  };
1167
1167
  bridgeId: string;
1168
1168
  bridges: string[];
1169
1169
  steps: {
1170
1170
  action: ActionTypes;
1171
- protocol: {
1172
- name: string;
1173
- displayName?: string | undefined;
1174
- icon?: string | undefined;
1175
- };
1176
1171
  srcChainId: number;
1177
1172
  srcAsset: {
1178
1173
  symbol: string;
1174
+ chainId: number;
1179
1175
  address: string;
1176
+ assetId: `${string}:${string}/${string}:${string}`;
1180
1177
  name: string;
1181
- chainId: number;
1182
1178
  decimals: number;
1183
- assetId: `${string}:${string}/${string}:${string}`;
1184
- iconUrl?: string | null | undefined;
1185
1179
  icon?: string | null | undefined;
1180
+ iconUrl?: string | null | undefined;
1186
1181
  };
1187
1182
  destAsset: {
1188
1183
  symbol: string;
1184
+ chainId: number;
1189
1185
  address: string;
1186
+ assetId: `${string}:${string}/${string}:${string}`;
1190
1187
  name: string;
1191
- chainId: number;
1192
1188
  decimals: number;
1193
- assetId: `${string}:${string}/${string}:${string}`;
1194
- iconUrl?: string | null | undefined;
1195
1189
  icon?: string | null | undefined;
1190
+ iconUrl?: string | null | undefined;
1196
1191
  };
1197
1192
  srcAmount: string;
1198
1193
  destAmount: string;
1199
- destChainId?: number | undefined;
1200
- }[];
1201
- refuel?: {
1202
- action: ActionTypes;
1203
1194
  protocol: {
1204
1195
  name: string;
1205
- displayName?: string | undefined;
1206
1196
  icon?: string | undefined;
1197
+ displayName?: string | undefined;
1207
1198
  };
1199
+ destChainId?: number | undefined;
1200
+ }[];
1201
+ refuel?: {
1202
+ action: ActionTypes;
1208
1203
  srcChainId: number;
1209
1204
  srcAsset: {
1210
1205
  symbol: string;
1206
+ chainId: number;
1211
1207
  address: string;
1208
+ assetId: `${string}:${string}/${string}:${string}`;
1212
1209
  name: string;
1213
- chainId: number;
1214
1210
  decimals: number;
1215
- assetId: `${string}:${string}/${string}:${string}`;
1216
- iconUrl?: string | null | undefined;
1217
1211
  icon?: string | null | undefined;
1212
+ iconUrl?: string | null | undefined;
1218
1213
  };
1219
1214
  destAsset: {
1220
1215
  symbol: string;
1216
+ chainId: number;
1221
1217
  address: string;
1218
+ assetId: `${string}:${string}/${string}:${string}`;
1222
1219
  name: string;
1223
- chainId: number;
1224
1220
  decimals: number;
1225
- assetId: `${string}:${string}/${string}:${string}`;
1226
- iconUrl?: string | null | undefined;
1227
1221
  icon?: string | null | undefined;
1222
+ iconUrl?: string | null | undefined;
1228
1223
  };
1229
1224
  srcAmount: string;
1230
1225
  destAmount: string;
1226
+ protocol: {
1227
+ name: string;
1228
+ icon?: string | undefined;
1229
+ displayName?: string | undefined;
1230
+ };
1231
1231
  destChainId?: number | undefined;
1232
1232
  } | undefined;
1233
1233
  gasIncluded?: boolean | undefined;
@@ -1241,51 +1241,51 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1241
1241
  };
1242
1242
  estimatedProcessingTimeInSeconds: number;
1243
1243
  trade: string | {
1244
- data: string;
1245
- value: string;
1244
+ chainId: number;
1246
1245
  to: string;
1247
1246
  from: string;
1247
+ value: string;
1248
+ data: string;
1248
1249
  gasLimit: number | null;
1249
- chainId: number;
1250
1250
  effectiveGas?: number | undefined;
1251
1251
  } | {
1252
1252
  unsignedPsbtBase64: string;
1253
1253
  inputsToSign: {}[] | null;
1254
1254
  };
1255
1255
  approval?: {
1256
- data: string;
1257
- value: string;
1256
+ chainId: number;
1258
1257
  to: string;
1259
1258
  from: string;
1259
+ value: string;
1260
+ data: string;
1260
1261
  gasLimit: number | null;
1261
- chainId: number;
1262
1262
  effectiveGas?: number | undefined;
1263
1263
  } | undefined;
1264
1264
  }, {
1265
1265
  quote: import("@metamask/superstruct").Struct<{
1266
- requestId: string;
1267
1266
  srcChainId: number;
1268
1267
  destChainId: number;
1269
1268
  srcAsset: {
1270
1269
  symbol: string;
1270
+ chainId: number;
1271
1271
  address: string;
1272
+ assetId: `${string}:${string}/${string}:${string}`;
1272
1273
  name: string;
1273
- chainId: number;
1274
1274
  decimals: number;
1275
- assetId: `${string}:${string}/${string}:${string}`;
1276
- iconUrl?: string | null | undefined;
1277
1275
  icon?: string | null | undefined;
1276
+ iconUrl?: string | null | undefined;
1278
1277
  };
1279
1278
  destAsset: {
1280
1279
  symbol: string;
1280
+ chainId: number;
1281
1281
  address: string;
1282
+ assetId: `${string}:${string}/${string}:${string}`;
1282
1283
  name: string;
1283
- chainId: number;
1284
1284
  decimals: number;
1285
- assetId: `${string}:${string}/${string}:${string}`;
1286
- iconUrl?: string | null | undefined;
1287
1285
  icon?: string | null | undefined;
1286
+ iconUrl?: string | null | undefined;
1288
1287
  };
1288
+ requestId: string;
1289
1289
  srcTokenAmount: string;
1290
1290
  destTokenAmount: string;
1291
1291
  minDestTokenAmount: string;
@@ -1294,96 +1294,96 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1294
1294
  amount: string;
1295
1295
  asset: {
1296
1296
  symbol: string;
1297
+ chainId: number;
1297
1298
  address: string;
1299
+ assetId: `${string}:${string}/${string}:${string}`;
1298
1300
  name: string;
1299
- chainId: number;
1300
1301
  decimals: number;
1301
- assetId: `${string}:${string}/${string}:${string}`;
1302
- iconUrl?: string | null | undefined;
1303
1302
  icon?: string | null | undefined;
1303
+ iconUrl?: string | null | undefined;
1304
1304
  };
1305
1305
  };
1306
1306
  txFee?: ({
1307
1307
  amount: string;
1308
1308
  asset: {
1309
1309
  symbol: string;
1310
+ chainId: number;
1310
1311
  address: string;
1312
+ assetId: `${string}:${string}/${string}:${string}`;
1311
1313
  name: string;
1312
- chainId: number;
1313
1314
  decimals: number;
1314
- assetId: `${string}:${string}/${string}:${string}`;
1315
- iconUrl?: string | null | undefined;
1316
1315
  icon?: string | null | undefined;
1316
+ iconUrl?: string | null | undefined;
1317
1317
  };
1318
1318
  } & {
1319
- maxPriorityFeePerGas: string;
1320
1319
  maxFeePerGas: string;
1320
+ maxPriorityFeePerGas: string;
1321
1321
  }) | undefined;
1322
1322
  };
1323
1323
  bridgeId: string;
1324
1324
  bridges: string[];
1325
1325
  steps: {
1326
1326
  action: ActionTypes;
1327
- protocol: {
1328
- name: string;
1329
- displayName?: string | undefined;
1330
- icon?: string | undefined;
1331
- };
1332
1327
  srcChainId: number;
1333
1328
  srcAsset: {
1334
1329
  symbol: string;
1330
+ chainId: number;
1335
1331
  address: string;
1332
+ assetId: `${string}:${string}/${string}:${string}`;
1336
1333
  name: string;
1337
- chainId: number;
1338
1334
  decimals: number;
1339
- assetId: `${string}:${string}/${string}:${string}`;
1340
- iconUrl?: string | null | undefined;
1341
1335
  icon?: string | null | undefined;
1336
+ iconUrl?: string | null | undefined;
1342
1337
  };
1343
1338
  destAsset: {
1344
1339
  symbol: string;
1340
+ chainId: number;
1345
1341
  address: string;
1342
+ assetId: `${string}:${string}/${string}:${string}`;
1346
1343
  name: string;
1347
- chainId: number;
1348
1344
  decimals: number;
1349
- assetId: `${string}:${string}/${string}:${string}`;
1350
- iconUrl?: string | null | undefined;
1351
1345
  icon?: string | null | undefined;
1346
+ iconUrl?: string | null | undefined;
1352
1347
  };
1353
1348
  srcAmount: string;
1354
1349
  destAmount: string;
1355
- destChainId?: number | undefined;
1356
- }[];
1357
- refuel?: {
1358
- action: ActionTypes;
1359
1350
  protocol: {
1360
1351
  name: string;
1361
- displayName?: string | undefined;
1362
1352
  icon?: string | undefined;
1353
+ displayName?: string | undefined;
1363
1354
  };
1355
+ destChainId?: number | undefined;
1356
+ }[];
1357
+ refuel?: {
1358
+ action: ActionTypes;
1364
1359
  srcChainId: number;
1365
1360
  srcAsset: {
1366
1361
  symbol: string;
1362
+ chainId: number;
1367
1363
  address: string;
1364
+ assetId: `${string}:${string}/${string}:${string}`;
1368
1365
  name: string;
1369
- chainId: number;
1370
1366
  decimals: number;
1371
- assetId: `${string}:${string}/${string}:${string}`;
1372
- iconUrl?: string | null | undefined;
1373
1367
  icon?: string | null | undefined;
1368
+ iconUrl?: string | null | undefined;
1374
1369
  };
1375
1370
  destAsset: {
1376
1371
  symbol: string;
1372
+ chainId: number;
1377
1373
  address: string;
1374
+ assetId: `${string}:${string}/${string}:${string}`;
1378
1375
  name: string;
1379
- chainId: number;
1380
1376
  decimals: number;
1381
- assetId: `${string}:${string}/${string}:${string}`;
1382
- iconUrl?: string | null | undefined;
1383
1377
  icon?: string | null | undefined;
1378
+ iconUrl?: string | null | undefined;
1384
1379
  };
1385
1380
  srcAmount: string;
1386
1381
  destAmount: string;
1382
+ protocol: {
1383
+ name: string;
1384
+ icon?: string | undefined;
1385
+ displayName?: string | undefined;
1386
+ };
1387
1387
  destChainId?: number | undefined;
1388
1388
  } | undefined;
1389
1389
  gasIncluded?: boolean | undefined;
@@ -1399,13 +1399,13 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1399
1399
  srcChainId: import("@metamask/superstruct").Struct<number, null>;
1400
1400
  srcAsset: import("@metamask/superstruct").Struct<{
1401
1401
  symbol: string;
1402
+ chainId: number;
1402
1403
  address: string;
1404
+ assetId: `${string}:${string}/${string}:${string}`;
1403
1405
  name: string;
1404
- chainId: number;
1405
1406
  decimals: number;
1406
- assetId: `${string}:${string}/${string}:${string}`;
1407
- iconUrl?: string | null | undefined;
1408
1407
  icon?: string | null | undefined;
1408
+ iconUrl?: string | null | undefined;
1409
1409
  }, {
1410
1410
  /**
1411
1411
  * The chainId of the token
@@ -1445,13 +1445,13 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1445
1445
  destChainId: import("@metamask/superstruct").Struct<number, null>;
1446
1446
  destAsset: import("@metamask/superstruct").Struct<{
1447
1447
  symbol: string;
1448
+ chainId: number;
1448
1449
  address: string;
1450
+ assetId: `${string}:${string}/${string}:${string}`;
1449
1451
  name: string;
1450
- chainId: number;
1451
1452
  decimals: number;
1452
- assetId: `${string}:${string}/${string}:${string}`;
1453
- iconUrl?: string | null | undefined;
1454
1453
  icon?: string | null | undefined;
1454
+ iconUrl?: string | null | undefined;
1455
1455
  }, {
1456
1456
  /**
1457
1457
  * The chainId of the token
@@ -1496,55 +1496,55 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1496
1496
  amount: string;
1497
1497
  asset: {
1498
1498
  symbol: string;
1499
+ chainId: number;
1499
1500
  address: string;
1501
+ assetId: `${string}:${string}/${string}:${string}`;
1500
1502
  name: string;
1501
- chainId: number;
1502
1503
  decimals: number;
1503
- assetId: `${string}:${string}/${string}:${string}`;
1504
- iconUrl?: string | null | undefined;
1505
1504
  icon?: string | null | undefined;
1505
+ iconUrl?: string | null | undefined;
1506
1506
  };
1507
1507
  };
1508
1508
  txFee?: ({
1509
1509
  amount: string;
1510
1510
  asset: {
1511
1511
  symbol: string;
1512
+ chainId: number;
1512
1513
  address: string;
1514
+ assetId: `${string}:${string}/${string}:${string}`;
1513
1515
  name: string;
1514
- chainId: number;
1515
1516
  decimals: number;
1516
- assetId: `${string}:${string}/${string}:${string}`;
1517
- iconUrl?: string | null | undefined;
1518
1517
  icon?: string | null | undefined;
1518
+ iconUrl?: string | null | undefined;
1519
1519
  };
1520
1520
  } & {
1521
- maxPriorityFeePerGas: string;
1522
1521
  maxFeePerGas: string;
1522
+ maxPriorityFeePerGas: string;
1523
1523
  }) | undefined;
1524
1524
  }, {
1525
1525
  metabridge: import("@metamask/superstruct").Struct<{
1526
1526
  amount: string;
1527
1527
  asset: {
1528
1528
  symbol: string;
1529
+ chainId: number;
1529
1530
  address: string;
1531
+ assetId: `${string}:${string}/${string}:${string}`;
1530
1532
  name: string;
1531
- chainId: number;
1532
1533
  decimals: number;
1533
- assetId: `${string}:${string}/${string}:${string}`;
1534
- iconUrl?: string | null | undefined;
1535
1534
  icon?: string | null | undefined;
1535
+ iconUrl?: string | null | undefined;
1536
1536
  };
1537
1537
  }, {
1538
1538
  amount: import("@metamask/superstruct").Struct<string, null>;
1539
1539
  asset: import("@metamask/superstruct").Struct<{
1540
1540
  symbol: string;
1541
+ chainId: number;
1541
1542
  address: string;
1543
+ assetId: `${string}:${string}/${string}:${string}`;
1542
1544
  name: string;
1543
- chainId: number;
1544
1545
  decimals: number;
1545
- assetId: `${string}:${string}/${string}:${string}`;
1546
- iconUrl?: string | null | undefined;
1547
1546
  icon?: string | null | undefined;
1547
+ iconUrl?: string | null | undefined;
1548
1548
  }, {
1549
1549
  /**
1550
1550
  * The chainId of the token
@@ -1585,17 +1585,17 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1585
1585
  amount: string;
1586
1586
  asset: {
1587
1587
  symbol: string;
1588
+ chainId: number;
1588
1589
  address: string;
1590
+ assetId: `${string}:${string}/${string}:${string}`;
1589
1591
  name: string;
1590
- chainId: number;
1591
1592
  decimals: number;
1592
- assetId: `${string}:${string}/${string}:${string}`;
1593
- iconUrl?: string | null | undefined;
1594
1593
  icon?: string | null | undefined;
1594
+ iconUrl?: string | null | undefined;
1595
1595
  };
1596
1596
  } & {
1597
- maxPriorityFeePerGas: string;
1598
1597
  maxFeePerGas: string;
1598
+ maxPriorityFeePerGas: string;
1599
1599
  }) | undefined, null>;
1600
1600
  }>;
1601
1601
  gasIncluded: import("@metamask/superstruct").Struct<boolean | undefined, null>;
@@ -1607,65 +1607,65 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1607
1607
  bridges: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
1608
1608
  steps: import("@metamask/superstruct").Struct<{
1609
1609
  action: ActionTypes;
1610
- protocol: {
1611
- name: string;
1612
- displayName?: string | undefined;
1613
- icon?: string | undefined;
1614
- };
1615
1610
  srcChainId: number;
1616
1611
  srcAsset: {
1617
1612
  symbol: string;
1613
+ chainId: number;
1618
1614
  address: string;
1615
+ assetId: `${string}:${string}/${string}:${string}`;
1619
1616
  name: string;
1620
- chainId: number;
1621
1617
  decimals: number;
1622
- assetId: `${string}:${string}/${string}:${string}`;
1623
- iconUrl?: string | null | undefined;
1624
1618
  icon?: string | null | undefined;
1619
+ iconUrl?: string | null | undefined;
1625
1620
  };
1626
1621
  destAsset: {
1627
1622
  symbol: string;
1623
+ chainId: number;
1628
1624
  address: string;
1625
+ assetId: `${string}:${string}/${string}:${string}`;
1629
1626
  name: string;
1630
- chainId: number;
1631
1627
  decimals: number;
1632
- assetId: `${string}:${string}/${string}:${string}`;
1633
- iconUrl?: string | null | undefined;
1634
1628
  icon?: string | null | undefined;
1629
+ iconUrl?: string | null | undefined;
1635
1630
  };
1636
1631
  srcAmount: string;
1637
1632
  destAmount: string;
1638
- destChainId?: number | undefined;
1639
- }[], import("@metamask/superstruct").Struct<{
1640
- action: ActionTypes;
1641
1633
  protocol: {
1642
1634
  name: string;
1643
- displayName?: string | undefined;
1644
1635
  icon?: string | undefined;
1636
+ displayName?: string | undefined;
1645
1637
  };
1638
+ destChainId?: number | undefined;
1639
+ }[], import("@metamask/superstruct").Struct<{
1640
+ action: ActionTypes;
1646
1641
  srcChainId: number;
1647
1642
  srcAsset: {
1648
1643
  symbol: string;
1644
+ chainId: number;
1649
1645
  address: string;
1646
+ assetId: `${string}:${string}/${string}:${string}`;
1650
1647
  name: string;
1651
- chainId: number;
1652
1648
  decimals: number;
1653
- assetId: `${string}:${string}/${string}:${string}`;
1654
- iconUrl?: string | null | undefined;
1655
1649
  icon?: string | null | undefined;
1650
+ iconUrl?: string | null | undefined;
1656
1651
  };
1657
1652
  destAsset: {
1658
1653
  symbol: string;
1654
+ chainId: number;
1659
1655
  address: string;
1656
+ assetId: `${string}:${string}/${string}:${string}`;
1660
1657
  name: string;
1661
- chainId: number;
1662
1658
  decimals: number;
1663
- assetId: `${string}:${string}/${string}:${string}`;
1664
- iconUrl?: string | null | undefined;
1665
1659
  icon?: string | null | undefined;
1660
+ iconUrl?: string | null | undefined;
1666
1661
  };
1667
1662
  srcAmount: string;
1668
1663
  destAmount: string;
1664
+ protocol: {
1665
+ name: string;
1666
+ icon?: string | undefined;
1667
+ displayName?: string | undefined;
1668
+ };
1669
1669
  destChainId?: number | undefined;
1670
1670
  }, {
1671
1671
  action: import("@metamask/superstruct").Struct<ActionTypes, {
@@ -1677,13 +1677,13 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1677
1677
  destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
1678
1678
  srcAsset: import("@metamask/superstruct").Struct<{
1679
1679
  symbol: string;
1680
+ chainId: number;
1680
1681
  address: string;
1682
+ assetId: `${string}:${string}/${string}:${string}`;
1681
1683
  name: string;
1682
- chainId: number;
1683
1684
  decimals: number;
1684
- assetId: `${string}:${string}/${string}:${string}`;
1685
- iconUrl?: string | null | undefined;
1686
1685
  icon?: string | null | undefined;
1686
+ iconUrl?: string | null | undefined;
1687
1687
  }, {
1688
1688
  /**
1689
1689
  * The chainId of the token
@@ -1717,13 +1717,13 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1717
1717
  }>;
1718
1718
  destAsset: import("@metamask/superstruct").Struct<{
1719
1719
  symbol: string;
1720
+ chainId: number;
1720
1721
  address: string;
1722
+ assetId: `${string}:${string}/${string}:${string}`;
1721
1723
  name: string;
1722
- chainId: number;
1723
1724
  decimals: number;
1724
- assetId: `${string}:${string}/${string}:${string}`;
1725
- iconUrl?: string | null | undefined;
1726
1725
  icon?: string | null | undefined;
1726
+ iconUrl?: string | null | undefined;
1727
1727
  }, {
1728
1728
  /**
1729
1729
  * The chainId of the token
@@ -1759,8 +1759,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1759
1759
  destAmount: import("@metamask/superstruct").Struct<string, null>;
1760
1760
  protocol: import("@metamask/superstruct").Struct<{
1761
1761
  name: string;
1762
- displayName?: string | undefined;
1763
1762
  icon?: string | undefined;
1763
+ displayName?: string | undefined;
1764
1764
  }, {
1765
1765
  name: import("@metamask/superstruct").Struct<string, null>;
1766
1766
  displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -1769,34 +1769,34 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1769
1769
  }>>;
1770
1770
  refuel: import("@metamask/superstruct").Struct<{
1771
1771
  action: ActionTypes;
1772
- protocol: {
1773
- name: string;
1774
- displayName?: string | undefined;
1775
- icon?: string | undefined;
1776
- };
1777
1772
  srcChainId: number;
1778
1773
  srcAsset: {
1779
1774
  symbol: string;
1775
+ chainId: number;
1780
1776
  address: string;
1777
+ assetId: `${string}:${string}/${string}:${string}`;
1781
1778
  name: string;
1782
- chainId: number;
1783
1779
  decimals: number;
1784
- assetId: `${string}:${string}/${string}:${string}`;
1785
- iconUrl?: string | null | undefined;
1786
1780
  icon?: string | null | undefined;
1781
+ iconUrl?: string | null | undefined;
1787
1782
  };
1788
1783
  destAsset: {
1789
1784
  symbol: string;
1785
+ chainId: number;
1790
1786
  address: string;
1787
+ assetId: `${string}:${string}/${string}:${string}`;
1791
1788
  name: string;
1792
- chainId: number;
1793
1789
  decimals: number;
1794
- assetId: `${string}:${string}/${string}:${string}`;
1795
- iconUrl?: string | null | undefined;
1796
1790
  icon?: string | null | undefined;
1791
+ iconUrl?: string | null | undefined;
1797
1792
  };
1798
1793
  srcAmount: string;
1799
1794
  destAmount: string;
1795
+ protocol: {
1796
+ name: string;
1797
+ icon?: string | undefined;
1798
+ displayName?: string | undefined;
1799
+ };
1800
1800
  destChainId?: number | undefined;
1801
1801
  } | undefined, {
1802
1802
  action: import("@metamask/superstruct").Struct<ActionTypes, {
@@ -1808,13 +1808,13 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1808
1808
  destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
1809
1809
  srcAsset: import("@metamask/superstruct").Struct<{
1810
1810
  symbol: string;
1811
+ chainId: number;
1811
1812
  address: string;
1813
+ assetId: `${string}:${string}/${string}:${string}`;
1812
1814
  name: string;
1813
- chainId: number;
1814
1815
  decimals: number;
1815
- assetId: `${string}:${string}/${string}:${string}`;
1816
- iconUrl?: string | null | undefined;
1817
1816
  icon?: string | null | undefined;
1817
+ iconUrl?: string | null | undefined;
1818
1818
  }, {
1819
1819
  /**
1820
1820
  * The chainId of the token
@@ -1848,13 +1848,13 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1848
1848
  }>;
1849
1849
  destAsset: import("@metamask/superstruct").Struct<{
1850
1850
  symbol: string;
1851
+ chainId: number;
1851
1852
  address: string;
1853
+ assetId: `${string}:${string}/${string}:${string}`;
1852
1854
  name: string;
1853
- chainId: number;
1854
1855
  decimals: number;
1855
- assetId: `${string}:${string}/${string}:${string}`;
1856
- iconUrl?: string | null | undefined;
1857
1856
  icon?: string | null | undefined;
1857
+ iconUrl?: string | null | undefined;
1858
1858
  }, {
1859
1859
  /**
1860
1860
  * The chainId of the token
@@ -1890,8 +1890,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1890
1890
  destAmount: import("@metamask/superstruct").Struct<string, null>;
1891
1891
  protocol: import("@metamask/superstruct").Struct<{
1892
1892
  name: string;
1893
- displayName?: string | undefined;
1894
1893
  icon?: string | undefined;
1894
+ displayName?: string | undefined;
1895
1895
  }, {
1896
1896
  name: import("@metamask/superstruct").Struct<string, null>;
1897
1897
  displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
@@ -1912,12 +1912,12 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1912
1912
  }>;
1913
1913
  estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
1914
1914
  approval: import("@metamask/superstruct").Struct<{
1915
- data: string;
1916
- value: string;
1915
+ chainId: number;
1917
1916
  to: string;
1918
1917
  from: string;
1918
+ value: string;
1919
+ data: string;
1919
1920
  gasLimit: number | null;
1920
- chainId: number;
1921
1921
  effectiveGas?: number | undefined;
1922
1922
  } | undefined, {
1923
1923
  chainId: import("@metamask/superstruct").Struct<number, null>;
@@ -1929,12 +1929,12 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1929
1929
  effectiveGas: import("@metamask/superstruct").Struct<number | undefined, null>;
1930
1930
  }>;
1931
1931
  trade: import("@metamask/superstruct").Struct<string | {
1932
- data: string;
1933
- value: string;
1932
+ chainId: number;
1934
1933
  to: string;
1935
1934
  from: string;
1935
+ value: string;
1936
+ data: string;
1936
1937
  gasLimit: number | null;
1937
- chainId: number;
1938
1938
  effectiveGas?: number | undefined;
1939
1939
  } | {
1940
1940
  unsignedPsbtBase64: string;
@@ -1943,29 +1943,29 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1943
1943
  }>;
1944
1944
  export declare const validateQuoteResponse: (data: unknown) => data is {
1945
1945
  quote: {
1946
- requestId: string;
1947
1946
  srcChainId: number;
1948
1947
  destChainId: number;
1949
1948
  srcAsset: {
1950
1949
  symbol: string;
1950
+ chainId: number;
1951
1951
  address: string;
1952
+ assetId: `${string}:${string}/${string}:${string}`;
1952
1953
  name: string;
1953
- chainId: number;
1954
1954
  decimals: number;
1955
- assetId: `${string}:${string}/${string}:${string}`;
1956
- iconUrl?: string | null | undefined;
1957
1955
  icon?: string | null | undefined;
1956
+ iconUrl?: string | null | undefined;
1958
1957
  };
1959
1958
  destAsset: {
1960
1959
  symbol: string;
1960
+ chainId: number;
1961
1961
  address: string;
1962
+ assetId: `${string}:${string}/${string}:${string}`;
1962
1963
  name: string;
1963
- chainId: number;
1964
1964
  decimals: number;
1965
- assetId: `${string}:${string}/${string}:${string}`;
1966
- iconUrl?: string | null | undefined;
1967
1965
  icon?: string | null | undefined;
1966
+ iconUrl?: string | null | undefined;
1968
1967
  };
1968
+ requestId: string;
1969
1969
  srcTokenAmount: string;
1970
1970
  destTokenAmount: string;
1971
1971
  minDestTokenAmount: string;
@@ -1974,96 +1974,96 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
1974
1974
  amount: string;
1975
1975
  asset: {
1976
1976
  symbol: string;
1977
+ chainId: number;
1977
1978
  address: string;
1979
+ assetId: `${string}:${string}/${string}:${string}`;
1978
1980
  name: string;
1979
- chainId: number;
1980
1981
  decimals: number;
1981
- assetId: `${string}:${string}/${string}:${string}`;
1982
- iconUrl?: string | null | undefined;
1983
1982
  icon?: string | null | undefined;
1983
+ iconUrl?: string | null | undefined;
1984
1984
  };
1985
1985
  };
1986
1986
  txFee?: ({
1987
1987
  amount: string;
1988
1988
  asset: {
1989
1989
  symbol: string;
1990
+ chainId: number;
1990
1991
  address: string;
1992
+ assetId: `${string}:${string}/${string}:${string}`;
1991
1993
  name: string;
1992
- chainId: number;
1993
1994
  decimals: number;
1994
- assetId: `${string}:${string}/${string}:${string}`;
1995
- iconUrl?: string | null | undefined;
1996
1995
  icon?: string | null | undefined;
1996
+ iconUrl?: string | null | undefined;
1997
1997
  };
1998
1998
  } & {
1999
- maxPriorityFeePerGas: string;
2000
1999
  maxFeePerGas: string;
2000
+ maxPriorityFeePerGas: string;
2001
2001
  }) | undefined;
2002
2002
  };
2003
2003
  bridgeId: string;
2004
2004
  bridges: string[];
2005
2005
  steps: {
2006
2006
  action: ActionTypes;
2007
- protocol: {
2008
- name: string;
2009
- displayName?: string | undefined;
2010
- icon?: string | undefined;
2011
- };
2012
2007
  srcChainId: number;
2013
2008
  srcAsset: {
2014
2009
  symbol: string;
2010
+ chainId: number;
2015
2011
  address: string;
2012
+ assetId: `${string}:${string}/${string}:${string}`;
2016
2013
  name: string;
2017
- chainId: number;
2018
2014
  decimals: number;
2019
- assetId: `${string}:${string}/${string}:${string}`;
2020
- iconUrl?: string | null | undefined;
2021
2015
  icon?: string | null | undefined;
2016
+ iconUrl?: string | null | undefined;
2022
2017
  };
2023
2018
  destAsset: {
2024
2019
  symbol: string;
2020
+ chainId: number;
2025
2021
  address: string;
2022
+ assetId: `${string}:${string}/${string}:${string}`;
2026
2023
  name: string;
2027
- chainId: number;
2028
2024
  decimals: number;
2029
- assetId: `${string}:${string}/${string}:${string}`;
2030
- iconUrl?: string | null | undefined;
2031
2025
  icon?: string | null | undefined;
2026
+ iconUrl?: string | null | undefined;
2032
2027
  };
2033
2028
  srcAmount: string;
2034
2029
  destAmount: string;
2035
- destChainId?: number | undefined;
2036
- }[];
2037
- refuel?: {
2038
- action: ActionTypes;
2039
2030
  protocol: {
2040
2031
  name: string;
2041
- displayName?: string | undefined;
2042
2032
  icon?: string | undefined;
2033
+ displayName?: string | undefined;
2043
2034
  };
2035
+ destChainId?: number | undefined;
2036
+ }[];
2037
+ refuel?: {
2038
+ action: ActionTypes;
2044
2039
  srcChainId: number;
2045
2040
  srcAsset: {
2046
2041
  symbol: string;
2042
+ chainId: number;
2047
2043
  address: string;
2044
+ assetId: `${string}:${string}/${string}:${string}`;
2048
2045
  name: string;
2049
- chainId: number;
2050
2046
  decimals: number;
2051
- assetId: `${string}:${string}/${string}:${string}`;
2052
- iconUrl?: string | null | undefined;
2053
2047
  icon?: string | null | undefined;
2048
+ iconUrl?: string | null | undefined;
2054
2049
  };
2055
2050
  destAsset: {
2056
2051
  symbol: string;
2052
+ chainId: number;
2057
2053
  address: string;
2054
+ assetId: `${string}:${string}/${string}:${string}`;
2058
2055
  name: string;
2059
- chainId: number;
2060
2056
  decimals: number;
2061
- assetId: `${string}:${string}/${string}:${string}`;
2062
- iconUrl?: string | null | undefined;
2063
2057
  icon?: string | null | undefined;
2058
+ iconUrl?: string | null | undefined;
2064
2059
  };
2065
2060
  srcAmount: string;
2066
2061
  destAmount: string;
2062
+ protocol: {
2063
+ name: string;
2064
+ icon?: string | undefined;
2065
+ displayName?: string | undefined;
2066
+ };
2067
2067
  destChainId?: number | undefined;
2068
2068
  } | undefined;
2069
2069
  gasIncluded?: boolean | undefined;
@@ -2077,24 +2077,24 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2077
2077
  };
2078
2078
  estimatedProcessingTimeInSeconds: number;
2079
2079
  trade: string | {
2080
- data: string;
2081
- value: string;
2080
+ chainId: number;
2082
2081
  to: string;
2083
2082
  from: string;
2083
+ value: string;
2084
+ data: string;
2084
2085
  gasLimit: number | null;
2085
- chainId: number;
2086
2086
  effectiveGas?: number | undefined;
2087
2087
  } | {
2088
2088
  unsignedPsbtBase64: string;
2089
2089
  inputsToSign: {}[] | null;
2090
2090
  };
2091
2091
  approval?: {
2092
- data: string;
2093
- value: string;
2092
+ chainId: number;
2094
2093
  to: string;
2095
2094
  from: string;
2095
+ value: string;
2096
+ data: string;
2096
2097
  gasLimit: number | null;
2097
- chainId: number;
2098
2098
  effectiveGas?: number | undefined;
2099
2099
  } | undefined;
2100
2100
  };