@metamask/bridge-controller 33.0.1 → 34.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/dist/bridge-controller.cjs.map +1 -1
  3. package/dist/bridge-controller.d.cts.map +1 -1
  4. package/dist/bridge-controller.d.mts.map +1 -1
  5. package/dist/bridge-controller.mjs.map +1 -1
  6. package/dist/index.cjs +6 -4
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +2 -1
  9. package/dist/index.d.cts.map +1 -1
  10. package/dist/index.d.mts +2 -1
  11. package/dist/index.d.mts.map +1 -1
  12. package/dist/index.mjs +2 -1
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/selectors.cjs +13 -4
  15. package/dist/selectors.cjs.map +1 -1
  16. package/dist/selectors.d.cts +13100 -124
  17. package/dist/selectors.d.cts.map +1 -1
  18. package/dist/selectors.d.mts +13100 -124
  19. package/dist/selectors.d.mts.map +1 -1
  20. package/dist/selectors.mjs +14 -5
  21. package/dist/selectors.mjs.map +1 -1
  22. package/dist/types.cjs +1 -12
  23. package/dist/types.cjs.map +1 -1
  24. package/dist/types.d.cts +35 -113
  25. package/dist/types.d.cts.map +1 -1
  26. package/dist/types.d.mts +35 -113
  27. package/dist/types.d.mts.map +1 -1
  28. package/dist/types.mjs +0 -11
  29. package/dist/types.mjs.map +1 -1
  30. package/dist/utils/feature-flags.d.cts +2 -2
  31. package/dist/utils/feature-flags.d.mts +2 -2
  32. package/dist/utils/fetch.cjs +1 -0
  33. package/dist/utils/fetch.cjs.map +1 -1
  34. package/dist/utils/fetch.d.cts.map +1 -1
  35. package/dist/utils/fetch.d.mts.map +1 -1
  36. package/dist/utils/fetch.mjs +1 -0
  37. package/dist/utils/fetch.mjs.map +1 -1
  38. package/dist/utils/quote.cjs +58 -19
  39. package/dist/utils/quote.cjs.map +1 -1
  40. package/dist/utils/quote.d.cts +7 -2
  41. package/dist/utils/quote.d.cts.map +1 -1
  42. package/dist/utils/quote.d.mts +7 -2
  43. package/dist/utils/quote.d.mts.map +1 -1
  44. package/dist/utils/quote.mjs +57 -19
  45. package/dist/utils/quote.mjs.map +1 -1
  46. package/dist/utils/validators.cjs +134 -73
  47. package/dist/utils/validators.cjs.map +1 -1
  48. package/dist/utils/validators.d.cts +1922 -4
  49. package/dist/utils/validators.d.cts.map +1 -1
  50. package/dist/utils/validators.d.mts +1922 -4
  51. package/dist/utils/validators.d.mts.map +1 -1
  52. package/dist/utils/validators.mjs +132 -71
  53. package/dist/utils/validators.mjs.map +1 -1
  54. package/package.json +2 -2
@@ -1,6 +1,1924 @@
1
- import type { BridgeAsset, FeatureFlagsPlatformConfig, QuoteResponse } from "../types.cjs";
1
+ export declare enum FeeType {
2
+ METABRIDGE = "metabridge",
3
+ REFUEL = "refuel",
4
+ TX_FEE = "txFee"
5
+ }
6
+ export declare enum ActionTypes {
7
+ BRIDGE = "bridge",
8
+ SWAP = "swap",
9
+ REFUEL = "refuel"
10
+ }
2
11
  export declare const truthyString: (s: string) => boolean;
3
- export declare const validateFeatureFlagsResponse: (data: unknown) => data is FeatureFlagsPlatformConfig;
4
- export declare const validateSwapsTokenObject: (data: unknown) => data is BridgeAsset;
5
- export declare const validateQuoteResponse: (data: unknown) => data is QuoteResponse;
12
+ export declare const BridgeAssetSchema: import("@metamask/superstruct").Struct<{
13
+ symbol: string;
14
+ address: string;
15
+ name: string;
16
+ chainId: number;
17
+ decimals: number;
18
+ assetId: `${string}:${string}/${string}:${string}`;
19
+ iconUrl?: string | null | undefined;
20
+ icon?: string | null | undefined;
21
+ }, {
22
+ /**
23
+ * The chainId of the token
24
+ */
25
+ chainId: import("@metamask/superstruct").Struct<number, null>;
26
+ /**
27
+ * An address that the metaswap-api recognizes as the default token
28
+ */
29
+ address: import("@metamask/superstruct").Struct<string, null>;
30
+ /**
31
+ * The assetId of the token
32
+ */
33
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
34
+ /**
35
+ * The symbol of token object
36
+ */
37
+ symbol: import("@metamask/superstruct").Struct<string, null>;
38
+ /**
39
+ * The name for the network
40
+ */
41
+ name: import("@metamask/superstruct").Struct<string, null>;
42
+ decimals: import("@metamask/superstruct").Struct<number, null>;
43
+ /**
44
+ * URL for token icon
45
+ */
46
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
47
+ /**
48
+ * URL for token icon
49
+ */
50
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
51
+ }>;
52
+ export declare const ChainConfigurationSchema: import("@metamask/superstruct").Struct<{
53
+ isActiveSrc: boolean;
54
+ isActiveDest: boolean;
55
+ refreshRate?: number | undefined;
56
+ topAssets?: string[] | undefined;
57
+ isUnifiedUIEnabled?: boolean | undefined;
58
+ isSnapConfirmationEnabled?: boolean | undefined;
59
+ }, {
60
+ isActiveSrc: import("@metamask/superstruct").Struct<boolean, null>;
61
+ isActiveDest: import("@metamask/superstruct").Struct<boolean, null>;
62
+ refreshRate: import("@metamask/superstruct").Struct<number | undefined, null>;
63
+ topAssets: import("@metamask/superstruct").Struct<string[] | undefined, import("@metamask/superstruct").Struct<string, null>>;
64
+ isUnifiedUIEnabled: import("@metamask/superstruct").Struct<boolean | undefined, null>;
65
+ isSnapConfirmationEnabled: import("@metamask/superstruct").Struct<boolean | undefined, null>;
66
+ }>;
67
+ /**
68
+ * This is the schema for the feature flags response from the RemoteFeatureFlagController
69
+ */
70
+ export declare const PlatformConfigSchema: import("@metamask/superstruct").Struct<{
71
+ support: boolean;
72
+ chains: Record<string, {
73
+ isActiveSrc: boolean;
74
+ isActiveDest: boolean;
75
+ refreshRate?: number | undefined;
76
+ topAssets?: string[] | undefined;
77
+ isUnifiedUIEnabled?: boolean | undefined;
78
+ isSnapConfirmationEnabled?: boolean | undefined;
79
+ }>;
80
+ refreshRate: number;
81
+ minimumVersion: string;
82
+ maxRefreshCount: number;
83
+ }, {
84
+ minimumVersion: import("@metamask/superstruct").Struct<string, null>;
85
+ refreshRate: import("@metamask/superstruct").Struct<number, null>;
86
+ maxRefreshCount: import("@metamask/superstruct").Struct<number, null>;
87
+ support: import("@metamask/superstruct").Struct<boolean, null>;
88
+ chains: import("@metamask/superstruct").Struct<Record<string, {
89
+ isActiveSrc: boolean;
90
+ isActiveDest: boolean;
91
+ refreshRate?: number | undefined;
92
+ topAssets?: string[] | undefined;
93
+ isUnifiedUIEnabled?: boolean | undefined;
94
+ isSnapConfirmationEnabled?: boolean | undefined;
95
+ }>, null>;
96
+ }>;
97
+ export declare const validateFeatureFlagsResponse: (data: unknown) => data is {
98
+ support: boolean;
99
+ chains: Record<string, {
100
+ isActiveSrc: boolean;
101
+ isActiveDest: boolean;
102
+ refreshRate?: number | undefined;
103
+ topAssets?: string[] | undefined;
104
+ isUnifiedUIEnabled?: boolean | undefined;
105
+ isSnapConfirmationEnabled?: boolean | undefined;
106
+ }>;
107
+ refreshRate: number;
108
+ minimumVersion: string;
109
+ maxRefreshCount: number;
110
+ };
111
+ export declare const validateSwapsTokenObject: (data: unknown) => data is {
112
+ symbol: string;
113
+ address: string;
114
+ name: string;
115
+ chainId: number;
116
+ decimals: number;
117
+ assetId: `${string}:${string}/${string}:${string}`;
118
+ iconUrl?: string | null | undefined;
119
+ icon?: string | null | undefined;
120
+ };
121
+ export declare const FeeDataSchema: import("@metamask/superstruct").Struct<{
122
+ amount: string;
123
+ asset: {
124
+ symbol: string;
125
+ address: string;
126
+ name: string;
127
+ chainId: number;
128
+ decimals: number;
129
+ assetId: `${string}:${string}/${string}:${string}`;
130
+ iconUrl?: string | null | undefined;
131
+ icon?: string | null | undefined;
132
+ };
133
+ }, {
134
+ amount: import("@metamask/superstruct").Struct<string, null>;
135
+ asset: import("@metamask/superstruct").Struct<{
136
+ symbol: string;
137
+ address: string;
138
+ name: string;
139
+ chainId: number;
140
+ decimals: number;
141
+ assetId: `${string}:${string}/${string}:${string}`;
142
+ iconUrl?: string | null | undefined;
143
+ icon?: string | null | undefined;
144
+ }, {
145
+ /**
146
+ * The chainId of the token
147
+ */
148
+ chainId: import("@metamask/superstruct").Struct<number, null>;
149
+ /**
150
+ * An address that the metaswap-api recognizes as the default token
151
+ */
152
+ address: import("@metamask/superstruct").Struct<string, null>;
153
+ /**
154
+ * The assetId of the token
155
+ */
156
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
157
+ /**
158
+ * The symbol of token object
159
+ */
160
+ symbol: import("@metamask/superstruct").Struct<string, null>;
161
+ /**
162
+ * The name for the network
163
+ */
164
+ name: import("@metamask/superstruct").Struct<string, null>;
165
+ decimals: import("@metamask/superstruct").Struct<number, null>;
166
+ /**
167
+ * URL for token icon
168
+ */
169
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
170
+ /**
171
+ * URL for token icon
172
+ */
173
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
174
+ }>;
175
+ }>;
176
+ export declare const ProtocolSchema: import("@metamask/superstruct").Struct<{
177
+ name: string;
178
+ displayName?: string | undefined;
179
+ icon?: string | undefined;
180
+ }, {
181
+ name: import("@metamask/superstruct").Struct<string, null>;
182
+ displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
183
+ icon: import("@metamask/superstruct").Struct<string | undefined, null>;
184
+ }>;
185
+ export declare const StepSchema: import("@metamask/superstruct").Struct<{
186
+ action: ActionTypes;
187
+ protocol: {
188
+ name: string;
189
+ displayName?: string | undefined;
190
+ icon?: string | undefined;
191
+ };
192
+ srcChainId: number;
193
+ srcAsset: {
194
+ symbol: string;
195
+ address: string;
196
+ name: string;
197
+ chainId: number;
198
+ decimals: number;
199
+ assetId: `${string}:${string}/${string}:${string}`;
200
+ iconUrl?: string | null | undefined;
201
+ icon?: string | null | undefined;
202
+ };
203
+ destAsset: {
204
+ symbol: string;
205
+ address: string;
206
+ name: string;
207
+ chainId: number;
208
+ decimals: number;
209
+ assetId: `${string}:${string}/${string}:${string}`;
210
+ iconUrl?: string | null | undefined;
211
+ icon?: string | null | undefined;
212
+ };
213
+ srcAmount: string;
214
+ destAmount: string;
215
+ destChainId?: number | undefined;
216
+ }, {
217
+ action: import("@metamask/superstruct").Struct<ActionTypes, {
218
+ bridge: ActionTypes.BRIDGE;
219
+ swap: ActionTypes.SWAP;
220
+ refuel: ActionTypes.REFUEL;
221
+ }>;
222
+ srcChainId: import("@metamask/superstruct").Struct<number, null>;
223
+ destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
224
+ srcAsset: import("@metamask/superstruct").Struct<{
225
+ symbol: string;
226
+ address: string;
227
+ name: string;
228
+ chainId: number;
229
+ decimals: number;
230
+ assetId: `${string}:${string}/${string}:${string}`;
231
+ iconUrl?: string | null | undefined;
232
+ icon?: string | null | undefined;
233
+ }, {
234
+ /**
235
+ * The chainId of the token
236
+ */
237
+ chainId: import("@metamask/superstruct").Struct<number, null>;
238
+ /**
239
+ * An address that the metaswap-api recognizes as the default token
240
+ */
241
+ address: import("@metamask/superstruct").Struct<string, null>;
242
+ /**
243
+ * The assetId of the token
244
+ */
245
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
246
+ /**
247
+ * The symbol of token object
248
+ */
249
+ symbol: import("@metamask/superstruct").Struct<string, null>;
250
+ /**
251
+ * The name for the network
252
+ */
253
+ name: import("@metamask/superstruct").Struct<string, null>;
254
+ decimals: import("@metamask/superstruct").Struct<number, null>;
255
+ /**
256
+ * URL for token icon
257
+ */
258
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
259
+ /**
260
+ * URL for token icon
261
+ */
262
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
263
+ }>;
264
+ destAsset: import("@metamask/superstruct").Struct<{
265
+ symbol: string;
266
+ address: string;
267
+ name: string;
268
+ chainId: number;
269
+ decimals: number;
270
+ assetId: `${string}:${string}/${string}:${string}`;
271
+ iconUrl?: string | null | undefined;
272
+ icon?: string | null | undefined;
273
+ }, {
274
+ /**
275
+ * The chainId of the token
276
+ */
277
+ chainId: import("@metamask/superstruct").Struct<number, null>;
278
+ /**
279
+ * An address that the metaswap-api recognizes as the default token
280
+ */
281
+ address: import("@metamask/superstruct").Struct<string, null>;
282
+ /**
283
+ * The assetId of the token
284
+ */
285
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
286
+ /**
287
+ * The symbol of token object
288
+ */
289
+ symbol: import("@metamask/superstruct").Struct<string, null>;
290
+ /**
291
+ * The name for the network
292
+ */
293
+ name: import("@metamask/superstruct").Struct<string, null>;
294
+ decimals: import("@metamask/superstruct").Struct<number, null>;
295
+ /**
296
+ * URL for token icon
297
+ */
298
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
299
+ /**
300
+ * URL for token icon
301
+ */
302
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
303
+ }>;
304
+ srcAmount: import("@metamask/superstruct").Struct<string, null>;
305
+ destAmount: import("@metamask/superstruct").Struct<string, null>;
306
+ protocol: import("@metamask/superstruct").Struct<{
307
+ name: string;
308
+ displayName?: string | undefined;
309
+ icon?: string | undefined;
310
+ }, {
311
+ name: import("@metamask/superstruct").Struct<string, null>;
312
+ displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
313
+ icon: import("@metamask/superstruct").Struct<string | undefined, null>;
314
+ }>;
315
+ }>;
316
+ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
317
+ srcChainId: number;
318
+ destChainId: number;
319
+ srcAsset: {
320
+ symbol: string;
321
+ address: string;
322
+ name: string;
323
+ chainId: number;
324
+ decimals: number;
325
+ assetId: `${string}:${string}/${string}:${string}`;
326
+ iconUrl?: string | null | undefined;
327
+ icon?: string | null | undefined;
328
+ };
329
+ destAsset: {
330
+ symbol: string;
331
+ address: string;
332
+ name: string;
333
+ chainId: number;
334
+ decimals: number;
335
+ assetId: `${string}:${string}/${string}:${string}`;
336
+ iconUrl?: string | null | undefined;
337
+ icon?: string | null | undefined;
338
+ };
339
+ requestId: string;
340
+ srcTokenAmount: string;
341
+ destTokenAmount: string;
342
+ feeData: {
343
+ metabridge: {
344
+ amount: string;
345
+ asset: {
346
+ symbol: string;
347
+ address: string;
348
+ name: string;
349
+ chainId: number;
350
+ decimals: number;
351
+ assetId: `${string}:${string}/${string}:${string}`;
352
+ iconUrl?: string | null | undefined;
353
+ icon?: string | null | undefined;
354
+ };
355
+ };
356
+ txFee?: ({
357
+ amount: string;
358
+ asset: {
359
+ symbol: string;
360
+ address: string;
361
+ name: string;
362
+ chainId: number;
363
+ decimals: number;
364
+ assetId: `${string}:${string}/${string}:${string}`;
365
+ iconUrl?: string | null | undefined;
366
+ icon?: string | null | undefined;
367
+ };
368
+ } & {
369
+ maxPriorityFeePerGas: string;
370
+ maxFeePerGas: string;
371
+ }) | undefined;
372
+ };
373
+ bridgeId: string;
374
+ bridges: string[];
375
+ steps: {
376
+ action: ActionTypes;
377
+ protocol: {
378
+ name: string;
379
+ displayName?: string | undefined;
380
+ icon?: string | undefined;
381
+ };
382
+ srcChainId: number;
383
+ srcAsset: {
384
+ symbol: string;
385
+ address: string;
386
+ name: string;
387
+ chainId: number;
388
+ decimals: number;
389
+ assetId: `${string}:${string}/${string}:${string}`;
390
+ iconUrl?: string | null | undefined;
391
+ icon?: string | null | undefined;
392
+ };
393
+ destAsset: {
394
+ symbol: string;
395
+ address: string;
396
+ name: string;
397
+ chainId: number;
398
+ decimals: number;
399
+ assetId: `${string}:${string}/${string}:${string}`;
400
+ iconUrl?: string | null | undefined;
401
+ icon?: string | null | undefined;
402
+ };
403
+ srcAmount: string;
404
+ destAmount: string;
405
+ destChainId?: number | undefined;
406
+ }[];
407
+ refuel?: {
408
+ action: ActionTypes;
409
+ protocol: {
410
+ name: string;
411
+ displayName?: string | undefined;
412
+ icon?: string | undefined;
413
+ };
414
+ srcChainId: number;
415
+ srcAsset: {
416
+ symbol: string;
417
+ address: string;
418
+ name: string;
419
+ chainId: number;
420
+ decimals: number;
421
+ assetId: `${string}:${string}/${string}:${string}`;
422
+ iconUrl?: string | null | undefined;
423
+ icon?: string | null | undefined;
424
+ };
425
+ destAsset: {
426
+ symbol: string;
427
+ address: string;
428
+ name: string;
429
+ chainId: number;
430
+ decimals: number;
431
+ assetId: `${string}:${string}/${string}:${string}`;
432
+ iconUrl?: string | null | undefined;
433
+ icon?: string | null | undefined;
434
+ };
435
+ srcAmount: string;
436
+ destAmount: string;
437
+ destChainId?: number | undefined;
438
+ } | undefined;
439
+ gasIncluded?: boolean | undefined;
440
+ priceData?: {
441
+ totalFromAmountUsd?: string | undefined;
442
+ totalToAmountUsd?: string | undefined;
443
+ priceImpact?: string | undefined;
444
+ } | undefined;
445
+ }, {
446
+ requestId: import("@metamask/superstruct").Struct<string, null>;
447
+ srcChainId: import("@metamask/superstruct").Struct<number, null>;
448
+ srcAsset: import("@metamask/superstruct").Struct<{
449
+ symbol: string;
450
+ address: string;
451
+ name: string;
452
+ chainId: number;
453
+ decimals: number;
454
+ assetId: `${string}:${string}/${string}:${string}`;
455
+ iconUrl?: string | null | undefined;
456
+ icon?: string | null | undefined;
457
+ }, {
458
+ /**
459
+ * The chainId of the token
460
+ */
461
+ chainId: import("@metamask/superstruct").Struct<number, null>;
462
+ /**
463
+ * An address that the metaswap-api recognizes as the default token
464
+ */
465
+ address: import("@metamask/superstruct").Struct<string, null>;
466
+ /**
467
+ * The assetId of the token
468
+ */
469
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
470
+ /**
471
+ * The symbol of token object
472
+ */
473
+ symbol: import("@metamask/superstruct").Struct<string, null>;
474
+ /**
475
+ * The name for the network
476
+ */
477
+ name: import("@metamask/superstruct").Struct<string, null>;
478
+ decimals: import("@metamask/superstruct").Struct<number, null>;
479
+ /**
480
+ * URL for token icon
481
+ */
482
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
483
+ /**
484
+ * URL for token icon
485
+ */
486
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
487
+ }>;
488
+ /**
489
+ * The amount sent, in atomic amount: amount sent - fees
490
+ * Some tokens have a fee of 0, so sometimes it's equal to amount sent
491
+ */
492
+ srcTokenAmount: import("@metamask/superstruct").Struct<string, null>;
493
+ destChainId: import("@metamask/superstruct").Struct<number, null>;
494
+ destAsset: import("@metamask/superstruct").Struct<{
495
+ symbol: string;
496
+ address: string;
497
+ name: string;
498
+ chainId: number;
499
+ decimals: number;
500
+ assetId: `${string}:${string}/${string}:${string}`;
501
+ iconUrl?: string | null | undefined;
502
+ icon?: string | null | undefined;
503
+ }, {
504
+ /**
505
+ * The chainId of the token
506
+ */
507
+ chainId: import("@metamask/superstruct").Struct<number, null>;
508
+ /**
509
+ * An address that the metaswap-api recognizes as the default token
510
+ */
511
+ address: import("@metamask/superstruct").Struct<string, null>;
512
+ /**
513
+ * The assetId of the token
514
+ */
515
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
516
+ /**
517
+ * The symbol of token object
518
+ */
519
+ symbol: import("@metamask/superstruct").Struct<string, null>;
520
+ /**
521
+ * The name for the network
522
+ */
523
+ name: import("@metamask/superstruct").Struct<string, null>;
524
+ decimals: import("@metamask/superstruct").Struct<number, null>;
525
+ /**
526
+ * URL for token icon
527
+ */
528
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
529
+ /**
530
+ * URL for token icon
531
+ */
532
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
533
+ }>;
534
+ /**
535
+ * The amount received, in atomic amount
536
+ */
537
+ destTokenAmount: import("@metamask/superstruct").Struct<string, null>;
538
+ feeData: import("@metamask/superstruct").Struct<{
539
+ metabridge: {
540
+ amount: string;
541
+ asset: {
542
+ symbol: string;
543
+ address: string;
544
+ name: string;
545
+ chainId: number;
546
+ decimals: number;
547
+ assetId: `${string}:${string}/${string}:${string}`;
548
+ iconUrl?: string | null | undefined;
549
+ icon?: string | null | undefined;
550
+ };
551
+ };
552
+ txFee?: ({
553
+ amount: string;
554
+ asset: {
555
+ symbol: string;
556
+ address: string;
557
+ name: string;
558
+ chainId: number;
559
+ decimals: number;
560
+ assetId: `${string}:${string}/${string}:${string}`;
561
+ iconUrl?: string | null | undefined;
562
+ icon?: string | null | undefined;
563
+ };
564
+ } & {
565
+ maxPriorityFeePerGas: string;
566
+ maxFeePerGas: string;
567
+ }) | undefined;
568
+ }, {
569
+ metabridge: import("@metamask/superstruct").Struct<{
570
+ amount: string;
571
+ asset: {
572
+ symbol: string;
573
+ address: string;
574
+ name: string;
575
+ chainId: number;
576
+ decimals: number;
577
+ assetId: `${string}:${string}/${string}:${string}`;
578
+ iconUrl?: string | null | undefined;
579
+ icon?: string | null | undefined;
580
+ };
581
+ }, {
582
+ amount: import("@metamask/superstruct").Struct<string, null>;
583
+ asset: import("@metamask/superstruct").Struct<{
584
+ symbol: string;
585
+ address: string;
586
+ name: string;
587
+ chainId: number;
588
+ decimals: number;
589
+ assetId: `${string}:${string}/${string}:${string}`;
590
+ iconUrl?: string | null | undefined;
591
+ icon?: string | null | undefined;
592
+ }, {
593
+ /**
594
+ * The chainId of the token
595
+ */
596
+ chainId: import("@metamask/superstruct").Struct<number, null>;
597
+ /**
598
+ * An address that the metaswap-api recognizes as the default token
599
+ */
600
+ address: import("@metamask/superstruct").Struct<string, null>;
601
+ /**
602
+ * The assetId of the token
603
+ */
604
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
605
+ /**
606
+ * The symbol of token object
607
+ */
608
+ symbol: import("@metamask/superstruct").Struct<string, null>;
609
+ /**
610
+ * The name for the network
611
+ */
612
+ name: import("@metamask/superstruct").Struct<string, null>;
613
+ decimals: import("@metamask/superstruct").Struct<number, null>;
614
+ /**
615
+ * URL for token icon
616
+ */
617
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
618
+ /**
619
+ * URL for token icon
620
+ */
621
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
622
+ }>;
623
+ }>;
624
+ /**
625
+ * This is the fee for the swap transaction taken from either the
626
+ * src or dest token if the quote has gas fees included or "gasless"
627
+ */
628
+ txFee: import("@metamask/superstruct").Struct<({
629
+ amount: string;
630
+ asset: {
631
+ symbol: string;
632
+ address: string;
633
+ name: string;
634
+ chainId: number;
635
+ decimals: number;
636
+ assetId: `${string}:${string}/${string}:${string}`;
637
+ iconUrl?: string | null | undefined;
638
+ icon?: string | null | undefined;
639
+ };
640
+ } & {
641
+ maxPriorityFeePerGas: string;
642
+ maxFeePerGas: string;
643
+ }) | undefined, null>;
644
+ }>;
645
+ gasIncluded: import("@metamask/superstruct").Struct<boolean | undefined, null>;
646
+ bridgeId: import("@metamask/superstruct").Struct<string, null>;
647
+ bridges: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
648
+ steps: import("@metamask/superstruct").Struct<{
649
+ action: ActionTypes;
650
+ protocol: {
651
+ name: string;
652
+ displayName?: string | undefined;
653
+ icon?: string | undefined;
654
+ };
655
+ srcChainId: number;
656
+ srcAsset: {
657
+ symbol: string;
658
+ address: string;
659
+ name: string;
660
+ chainId: number;
661
+ decimals: number;
662
+ assetId: `${string}:${string}/${string}:${string}`;
663
+ iconUrl?: string | null | undefined;
664
+ icon?: string | null | undefined;
665
+ };
666
+ destAsset: {
667
+ symbol: string;
668
+ address: string;
669
+ name: string;
670
+ chainId: number;
671
+ decimals: number;
672
+ assetId: `${string}:${string}/${string}:${string}`;
673
+ iconUrl?: string | null | undefined;
674
+ icon?: string | null | undefined;
675
+ };
676
+ srcAmount: string;
677
+ destAmount: string;
678
+ destChainId?: number | undefined;
679
+ }[], import("@metamask/superstruct").Struct<{
680
+ action: ActionTypes;
681
+ protocol: {
682
+ name: string;
683
+ displayName?: string | undefined;
684
+ icon?: string | undefined;
685
+ };
686
+ srcChainId: number;
687
+ srcAsset: {
688
+ symbol: string;
689
+ address: string;
690
+ name: string;
691
+ chainId: number;
692
+ decimals: number;
693
+ assetId: `${string}:${string}/${string}:${string}`;
694
+ iconUrl?: string | null | undefined;
695
+ icon?: string | null | undefined;
696
+ };
697
+ destAsset: {
698
+ symbol: string;
699
+ address: string;
700
+ name: string;
701
+ chainId: number;
702
+ decimals: number;
703
+ assetId: `${string}:${string}/${string}:${string}`;
704
+ iconUrl?: string | null | undefined;
705
+ icon?: string | null | undefined;
706
+ };
707
+ srcAmount: string;
708
+ destAmount: string;
709
+ destChainId?: number | undefined;
710
+ }, {
711
+ action: import("@metamask/superstruct").Struct<ActionTypes, {
712
+ bridge: ActionTypes.BRIDGE;
713
+ swap: ActionTypes.SWAP;
714
+ refuel: ActionTypes.REFUEL;
715
+ }>;
716
+ srcChainId: import("@metamask/superstruct").Struct<number, null>;
717
+ destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
718
+ srcAsset: import("@metamask/superstruct").Struct<{
719
+ symbol: string;
720
+ address: string;
721
+ name: string;
722
+ chainId: number;
723
+ decimals: number;
724
+ assetId: `${string}:${string}/${string}:${string}`;
725
+ iconUrl?: string | null | undefined;
726
+ icon?: string | null | undefined;
727
+ }, {
728
+ /**
729
+ * The chainId of the token
730
+ */
731
+ chainId: import("@metamask/superstruct").Struct<number, null>;
732
+ /**
733
+ * An address that the metaswap-api recognizes as the default token
734
+ */
735
+ address: import("@metamask/superstruct").Struct<string, null>;
736
+ /**
737
+ * The assetId of the token
738
+ */
739
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
740
+ /**
741
+ * The symbol of token object
742
+ */
743
+ symbol: import("@metamask/superstruct").Struct<string, null>;
744
+ /**
745
+ * The name for the network
746
+ */
747
+ name: import("@metamask/superstruct").Struct<string, null>;
748
+ decimals: import("@metamask/superstruct").Struct<number, null>;
749
+ /**
750
+ * URL for token icon
751
+ */
752
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
753
+ /**
754
+ * URL for token icon
755
+ */
756
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
757
+ }>;
758
+ destAsset: import("@metamask/superstruct").Struct<{
759
+ symbol: string;
760
+ address: string;
761
+ name: string;
762
+ chainId: number;
763
+ decimals: number;
764
+ assetId: `${string}:${string}/${string}:${string}`;
765
+ iconUrl?: string | null | undefined;
766
+ icon?: string | null | undefined;
767
+ }, {
768
+ /**
769
+ * The chainId of the token
770
+ */
771
+ chainId: import("@metamask/superstruct").Struct<number, null>;
772
+ /**
773
+ * An address that the metaswap-api recognizes as the default token
774
+ */
775
+ address: import("@metamask/superstruct").Struct<string, null>;
776
+ /**
777
+ * The assetId of the token
778
+ */
779
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
780
+ /**
781
+ * The symbol of token object
782
+ */
783
+ symbol: import("@metamask/superstruct").Struct<string, null>;
784
+ /**
785
+ * The name for the network
786
+ */
787
+ name: import("@metamask/superstruct").Struct<string, null>;
788
+ decimals: import("@metamask/superstruct").Struct<number, null>;
789
+ /**
790
+ * URL for token icon
791
+ */
792
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
793
+ /**
794
+ * URL for token icon
795
+ */
796
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
797
+ }>;
798
+ srcAmount: import("@metamask/superstruct").Struct<string, null>;
799
+ destAmount: import("@metamask/superstruct").Struct<string, null>;
800
+ protocol: import("@metamask/superstruct").Struct<{
801
+ name: string;
802
+ displayName?: string | undefined;
803
+ icon?: string | undefined;
804
+ }, {
805
+ name: import("@metamask/superstruct").Struct<string, null>;
806
+ displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
807
+ icon: import("@metamask/superstruct").Struct<string | undefined, null>;
808
+ }>;
809
+ }>>;
810
+ refuel: import("@metamask/superstruct").Struct<{
811
+ action: ActionTypes;
812
+ protocol: {
813
+ name: string;
814
+ displayName?: string | undefined;
815
+ icon?: string | undefined;
816
+ };
817
+ srcChainId: number;
818
+ srcAsset: {
819
+ symbol: string;
820
+ address: string;
821
+ name: string;
822
+ chainId: number;
823
+ decimals: number;
824
+ assetId: `${string}:${string}/${string}:${string}`;
825
+ iconUrl?: string | null | undefined;
826
+ icon?: string | null | undefined;
827
+ };
828
+ destAsset: {
829
+ symbol: string;
830
+ address: string;
831
+ name: string;
832
+ chainId: number;
833
+ decimals: number;
834
+ assetId: `${string}:${string}/${string}:${string}`;
835
+ iconUrl?: string | null | undefined;
836
+ icon?: string | null | undefined;
837
+ };
838
+ srcAmount: string;
839
+ destAmount: string;
840
+ destChainId?: number | undefined;
841
+ } | undefined, {
842
+ action: import("@metamask/superstruct").Struct<ActionTypes, {
843
+ bridge: ActionTypes.BRIDGE;
844
+ swap: ActionTypes.SWAP;
845
+ refuel: ActionTypes.REFUEL;
846
+ }>;
847
+ srcChainId: import("@metamask/superstruct").Struct<number, null>;
848
+ destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
849
+ srcAsset: import("@metamask/superstruct").Struct<{
850
+ symbol: string;
851
+ address: string;
852
+ name: string;
853
+ chainId: number;
854
+ decimals: number;
855
+ assetId: `${string}:${string}/${string}:${string}`;
856
+ iconUrl?: string | null | undefined;
857
+ icon?: string | null | undefined;
858
+ }, {
859
+ /**
860
+ * The chainId of the token
861
+ */
862
+ chainId: import("@metamask/superstruct").Struct<number, null>;
863
+ /**
864
+ * An address that the metaswap-api recognizes as the default token
865
+ */
866
+ address: import("@metamask/superstruct").Struct<string, null>;
867
+ /**
868
+ * The assetId of the token
869
+ */
870
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
871
+ /**
872
+ * The symbol of token object
873
+ */
874
+ symbol: import("@metamask/superstruct").Struct<string, null>;
875
+ /**
876
+ * The name for the network
877
+ */
878
+ name: import("@metamask/superstruct").Struct<string, null>;
879
+ decimals: import("@metamask/superstruct").Struct<number, null>;
880
+ /**
881
+ * URL for token icon
882
+ */
883
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
884
+ /**
885
+ * URL for token icon
886
+ */
887
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
888
+ }>;
889
+ destAsset: import("@metamask/superstruct").Struct<{
890
+ symbol: string;
891
+ address: string;
892
+ name: string;
893
+ chainId: number;
894
+ decimals: number;
895
+ assetId: `${string}:${string}/${string}:${string}`;
896
+ iconUrl?: string | null | undefined;
897
+ icon?: string | null | undefined;
898
+ }, {
899
+ /**
900
+ * The chainId of the token
901
+ */
902
+ chainId: import("@metamask/superstruct").Struct<number, null>;
903
+ /**
904
+ * An address that the metaswap-api recognizes as the default token
905
+ */
906
+ address: import("@metamask/superstruct").Struct<string, null>;
907
+ /**
908
+ * The assetId of the token
909
+ */
910
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
911
+ /**
912
+ * The symbol of token object
913
+ */
914
+ symbol: import("@metamask/superstruct").Struct<string, null>;
915
+ /**
916
+ * The name for the network
917
+ */
918
+ name: import("@metamask/superstruct").Struct<string, null>;
919
+ decimals: import("@metamask/superstruct").Struct<number, null>;
920
+ /**
921
+ * URL for token icon
922
+ */
923
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
924
+ /**
925
+ * URL for token icon
926
+ */
927
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
928
+ }>;
929
+ srcAmount: import("@metamask/superstruct").Struct<string, null>;
930
+ destAmount: import("@metamask/superstruct").Struct<string, null>;
931
+ protocol: import("@metamask/superstruct").Struct<{
932
+ name: string;
933
+ displayName?: string | undefined;
934
+ icon?: string | undefined;
935
+ }, {
936
+ name: import("@metamask/superstruct").Struct<string, null>;
937
+ displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
938
+ icon: import("@metamask/superstruct").Struct<string | undefined, null>;
939
+ }>;
940
+ }>;
941
+ priceData: import("@metamask/superstruct").Struct<{
942
+ totalFromAmountUsd?: string | undefined;
943
+ totalToAmountUsd?: string | undefined;
944
+ priceImpact?: string | undefined;
945
+ } | undefined, {
946
+ totalFromAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
947
+ totalToAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
948
+ priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
949
+ }>;
950
+ }>;
951
+ export declare const TxDataSchema: import("@metamask/superstruct").Struct<{
952
+ data: string;
953
+ value: string;
954
+ to: string;
955
+ from: string;
956
+ gasLimit: number | null;
957
+ chainId: number;
958
+ }, {
959
+ chainId: import("@metamask/superstruct").Struct<number, null>;
960
+ to: import("@metamask/superstruct").Struct<string, null>;
961
+ from: import("@metamask/superstruct").Struct<string, null>;
962
+ value: import("@metamask/superstruct").Struct<string, null>;
963
+ data: import("@metamask/superstruct").Struct<string, null>;
964
+ gasLimit: import("@metamask/superstruct").Struct<number | null, null>;
965
+ }>;
966
+ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct<{
967
+ quote: {
968
+ srcChainId: number;
969
+ destChainId: number;
970
+ srcAsset: {
971
+ symbol: string;
972
+ address: string;
973
+ name: string;
974
+ chainId: number;
975
+ decimals: number;
976
+ assetId: `${string}:${string}/${string}:${string}`;
977
+ iconUrl?: string | null | undefined;
978
+ icon?: string | null | undefined;
979
+ };
980
+ destAsset: {
981
+ symbol: string;
982
+ address: string;
983
+ name: string;
984
+ chainId: number;
985
+ decimals: number;
986
+ assetId: `${string}:${string}/${string}:${string}`;
987
+ iconUrl?: string | null | undefined;
988
+ icon?: string | null | undefined;
989
+ };
990
+ requestId: string;
991
+ srcTokenAmount: string;
992
+ destTokenAmount: string;
993
+ feeData: {
994
+ metabridge: {
995
+ amount: string;
996
+ asset: {
997
+ symbol: string;
998
+ address: string;
999
+ name: string;
1000
+ chainId: number;
1001
+ decimals: number;
1002
+ assetId: `${string}:${string}/${string}:${string}`;
1003
+ iconUrl?: string | null | undefined;
1004
+ icon?: string | null | undefined;
1005
+ };
1006
+ };
1007
+ txFee?: ({
1008
+ amount: string;
1009
+ asset: {
1010
+ symbol: string;
1011
+ address: string;
1012
+ name: string;
1013
+ chainId: number;
1014
+ decimals: number;
1015
+ assetId: `${string}:${string}/${string}:${string}`;
1016
+ iconUrl?: string | null | undefined;
1017
+ icon?: string | null | undefined;
1018
+ };
1019
+ } & {
1020
+ maxPriorityFeePerGas: string;
1021
+ maxFeePerGas: string;
1022
+ }) | undefined;
1023
+ };
1024
+ bridgeId: string;
1025
+ bridges: string[];
1026
+ steps: {
1027
+ action: ActionTypes;
1028
+ protocol: {
1029
+ name: string;
1030
+ displayName?: string | undefined;
1031
+ icon?: string | undefined;
1032
+ };
1033
+ srcChainId: number;
1034
+ srcAsset: {
1035
+ symbol: string;
1036
+ address: string;
1037
+ name: string;
1038
+ chainId: number;
1039
+ decimals: number;
1040
+ assetId: `${string}:${string}/${string}:${string}`;
1041
+ iconUrl?: string | null | undefined;
1042
+ icon?: string | null | undefined;
1043
+ };
1044
+ destAsset: {
1045
+ symbol: string;
1046
+ address: string;
1047
+ name: string;
1048
+ chainId: number;
1049
+ decimals: number;
1050
+ assetId: `${string}:${string}/${string}:${string}`;
1051
+ iconUrl?: string | null | undefined;
1052
+ icon?: string | null | undefined;
1053
+ };
1054
+ srcAmount: string;
1055
+ destAmount: string;
1056
+ destChainId?: number | undefined;
1057
+ }[];
1058
+ refuel?: {
1059
+ action: ActionTypes;
1060
+ protocol: {
1061
+ name: string;
1062
+ displayName?: string | undefined;
1063
+ icon?: string | undefined;
1064
+ };
1065
+ srcChainId: number;
1066
+ srcAsset: {
1067
+ symbol: string;
1068
+ address: string;
1069
+ name: string;
1070
+ chainId: number;
1071
+ decimals: number;
1072
+ assetId: `${string}:${string}/${string}:${string}`;
1073
+ iconUrl?: string | null | undefined;
1074
+ icon?: string | null | undefined;
1075
+ };
1076
+ destAsset: {
1077
+ symbol: string;
1078
+ address: string;
1079
+ name: string;
1080
+ chainId: number;
1081
+ decimals: number;
1082
+ assetId: `${string}:${string}/${string}:${string}`;
1083
+ iconUrl?: string | null | undefined;
1084
+ icon?: string | null | undefined;
1085
+ };
1086
+ srcAmount: string;
1087
+ destAmount: string;
1088
+ destChainId?: number | undefined;
1089
+ } | undefined;
1090
+ gasIncluded?: boolean | undefined;
1091
+ priceData?: {
1092
+ totalFromAmountUsd?: string | undefined;
1093
+ totalToAmountUsd?: string | undefined;
1094
+ priceImpact?: string | undefined;
1095
+ } | undefined;
1096
+ };
1097
+ estimatedProcessingTimeInSeconds: number;
1098
+ trade: string | {
1099
+ data: string;
1100
+ value: string;
1101
+ to: string;
1102
+ from: string;
1103
+ gasLimit: number | null;
1104
+ chainId: number;
1105
+ };
1106
+ approval?: {
1107
+ data: string;
1108
+ value: string;
1109
+ to: string;
1110
+ from: string;
1111
+ gasLimit: number | null;
1112
+ chainId: number;
1113
+ } | undefined;
1114
+ }, {
1115
+ quote: import("@metamask/superstruct").Struct<{
1116
+ srcChainId: number;
1117
+ destChainId: number;
1118
+ srcAsset: {
1119
+ symbol: string;
1120
+ address: string;
1121
+ name: string;
1122
+ chainId: number;
1123
+ decimals: number;
1124
+ assetId: `${string}:${string}/${string}:${string}`;
1125
+ iconUrl?: string | null | undefined;
1126
+ icon?: string | null | undefined;
1127
+ };
1128
+ destAsset: {
1129
+ symbol: string;
1130
+ address: string;
1131
+ name: string;
1132
+ chainId: number;
1133
+ decimals: number;
1134
+ assetId: `${string}:${string}/${string}:${string}`;
1135
+ iconUrl?: string | null | undefined;
1136
+ icon?: string | null | undefined;
1137
+ };
1138
+ requestId: string;
1139
+ srcTokenAmount: string;
1140
+ destTokenAmount: string;
1141
+ feeData: {
1142
+ metabridge: {
1143
+ amount: string;
1144
+ asset: {
1145
+ symbol: string;
1146
+ address: string;
1147
+ name: string;
1148
+ chainId: number;
1149
+ decimals: number;
1150
+ assetId: `${string}:${string}/${string}:${string}`;
1151
+ iconUrl?: string | null | undefined;
1152
+ icon?: string | null | undefined;
1153
+ };
1154
+ };
1155
+ txFee?: ({
1156
+ amount: string;
1157
+ asset: {
1158
+ symbol: string;
1159
+ address: string;
1160
+ name: string;
1161
+ chainId: number;
1162
+ decimals: number;
1163
+ assetId: `${string}:${string}/${string}:${string}`;
1164
+ iconUrl?: string | null | undefined;
1165
+ icon?: string | null | undefined;
1166
+ };
1167
+ } & {
1168
+ maxPriorityFeePerGas: string;
1169
+ maxFeePerGas: string;
1170
+ }) | undefined;
1171
+ };
1172
+ bridgeId: string;
1173
+ bridges: string[];
1174
+ steps: {
1175
+ action: ActionTypes;
1176
+ protocol: {
1177
+ name: string;
1178
+ displayName?: string | undefined;
1179
+ icon?: string | undefined;
1180
+ };
1181
+ srcChainId: number;
1182
+ srcAsset: {
1183
+ symbol: string;
1184
+ address: string;
1185
+ name: string;
1186
+ chainId: number;
1187
+ decimals: number;
1188
+ assetId: `${string}:${string}/${string}:${string}`;
1189
+ iconUrl?: string | null | undefined;
1190
+ icon?: string | null | undefined;
1191
+ };
1192
+ destAsset: {
1193
+ symbol: string;
1194
+ address: string;
1195
+ name: string;
1196
+ chainId: number;
1197
+ decimals: number;
1198
+ assetId: `${string}:${string}/${string}:${string}`;
1199
+ iconUrl?: string | null | undefined;
1200
+ icon?: string | null | undefined;
1201
+ };
1202
+ srcAmount: string;
1203
+ destAmount: string;
1204
+ destChainId?: number | undefined;
1205
+ }[];
1206
+ refuel?: {
1207
+ action: ActionTypes;
1208
+ protocol: {
1209
+ name: string;
1210
+ displayName?: string | undefined;
1211
+ icon?: string | undefined;
1212
+ };
1213
+ srcChainId: number;
1214
+ srcAsset: {
1215
+ symbol: string;
1216
+ address: string;
1217
+ name: string;
1218
+ chainId: number;
1219
+ decimals: number;
1220
+ assetId: `${string}:${string}/${string}:${string}`;
1221
+ iconUrl?: string | null | undefined;
1222
+ icon?: string | null | undefined;
1223
+ };
1224
+ destAsset: {
1225
+ symbol: string;
1226
+ address: string;
1227
+ name: string;
1228
+ chainId: number;
1229
+ decimals: number;
1230
+ assetId: `${string}:${string}/${string}:${string}`;
1231
+ iconUrl?: string | null | undefined;
1232
+ icon?: string | null | undefined;
1233
+ };
1234
+ srcAmount: string;
1235
+ destAmount: string;
1236
+ destChainId?: number | undefined;
1237
+ } | undefined;
1238
+ gasIncluded?: boolean | undefined;
1239
+ priceData?: {
1240
+ totalFromAmountUsd?: string | undefined;
1241
+ totalToAmountUsd?: string | undefined;
1242
+ priceImpact?: string | undefined;
1243
+ } | undefined;
1244
+ }, {
1245
+ requestId: import("@metamask/superstruct").Struct<string, null>;
1246
+ srcChainId: import("@metamask/superstruct").Struct<number, null>;
1247
+ srcAsset: import("@metamask/superstruct").Struct<{
1248
+ symbol: string;
1249
+ address: string;
1250
+ name: string;
1251
+ chainId: number;
1252
+ decimals: number;
1253
+ assetId: `${string}:${string}/${string}:${string}`;
1254
+ iconUrl?: string | null | undefined;
1255
+ icon?: string | null | undefined;
1256
+ }, {
1257
+ /**
1258
+ * The chainId of the token
1259
+ */
1260
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1261
+ /**
1262
+ * An address that the metaswap-api recognizes as the default token
1263
+ */
1264
+ address: import("@metamask/superstruct").Struct<string, null>;
1265
+ /**
1266
+ * The assetId of the token
1267
+ */
1268
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
1269
+ /**
1270
+ * The symbol of token object
1271
+ */
1272
+ symbol: import("@metamask/superstruct").Struct<string, null>;
1273
+ /**
1274
+ * The name for the network
1275
+ */
1276
+ name: import("@metamask/superstruct").Struct<string, null>;
1277
+ decimals: import("@metamask/superstruct").Struct<number, null>;
1278
+ /**
1279
+ * URL for token icon
1280
+ */
1281
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1282
+ /**
1283
+ * URL for token icon
1284
+ */
1285
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1286
+ }>;
1287
+ /**
1288
+ * The amount sent, in atomic amount: amount sent - fees
1289
+ * Some tokens have a fee of 0, so sometimes it's equal to amount sent
1290
+ */
1291
+ srcTokenAmount: import("@metamask/superstruct").Struct<string, null>;
1292
+ destChainId: import("@metamask/superstruct").Struct<number, null>;
1293
+ destAsset: import("@metamask/superstruct").Struct<{
1294
+ symbol: string;
1295
+ address: string;
1296
+ name: string;
1297
+ chainId: number;
1298
+ decimals: number;
1299
+ assetId: `${string}:${string}/${string}:${string}`;
1300
+ iconUrl?: string | null | undefined;
1301
+ icon?: string | null | undefined;
1302
+ }, {
1303
+ /**
1304
+ * The chainId of the token
1305
+ */
1306
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1307
+ /**
1308
+ * An address that the metaswap-api recognizes as the default token
1309
+ */
1310
+ address: import("@metamask/superstruct").Struct<string, null>;
1311
+ /**
1312
+ * The assetId of the token
1313
+ */
1314
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
1315
+ /**
1316
+ * The symbol of token object
1317
+ */
1318
+ symbol: import("@metamask/superstruct").Struct<string, null>;
1319
+ /**
1320
+ * The name for the network
1321
+ */
1322
+ name: import("@metamask/superstruct").Struct<string, null>;
1323
+ decimals: import("@metamask/superstruct").Struct<number, null>;
1324
+ /**
1325
+ * URL for token icon
1326
+ */
1327
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1328
+ /**
1329
+ * URL for token icon
1330
+ */
1331
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1332
+ }>;
1333
+ /**
1334
+ * The amount received, in atomic amount
1335
+ */
1336
+ destTokenAmount: import("@metamask/superstruct").Struct<string, null>;
1337
+ feeData: import("@metamask/superstruct").Struct<{
1338
+ metabridge: {
1339
+ amount: string;
1340
+ asset: {
1341
+ symbol: string;
1342
+ address: string;
1343
+ name: string;
1344
+ chainId: number;
1345
+ decimals: number;
1346
+ assetId: `${string}:${string}/${string}:${string}`;
1347
+ iconUrl?: string | null | undefined;
1348
+ icon?: string | null | undefined;
1349
+ };
1350
+ };
1351
+ txFee?: ({
1352
+ amount: string;
1353
+ asset: {
1354
+ symbol: string;
1355
+ address: string;
1356
+ name: string;
1357
+ chainId: number;
1358
+ decimals: number;
1359
+ assetId: `${string}:${string}/${string}:${string}`;
1360
+ iconUrl?: string | null | undefined;
1361
+ icon?: string | null | undefined;
1362
+ };
1363
+ } & {
1364
+ maxPriorityFeePerGas: string;
1365
+ maxFeePerGas: string;
1366
+ }) | undefined;
1367
+ }, {
1368
+ metabridge: import("@metamask/superstruct").Struct<{
1369
+ amount: string;
1370
+ asset: {
1371
+ symbol: string;
1372
+ address: string;
1373
+ name: string;
1374
+ chainId: number;
1375
+ decimals: number;
1376
+ assetId: `${string}:${string}/${string}:${string}`;
1377
+ iconUrl?: string | null | undefined;
1378
+ icon?: string | null | undefined;
1379
+ };
1380
+ }, {
1381
+ amount: import("@metamask/superstruct").Struct<string, null>;
1382
+ asset: import("@metamask/superstruct").Struct<{
1383
+ symbol: string;
1384
+ address: string;
1385
+ name: string;
1386
+ chainId: number;
1387
+ decimals: number;
1388
+ assetId: `${string}:${string}/${string}:${string}`;
1389
+ iconUrl?: string | null | undefined;
1390
+ icon?: string | null | undefined;
1391
+ }, {
1392
+ /**
1393
+ * The chainId of the token
1394
+ */
1395
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1396
+ /**
1397
+ * An address that the metaswap-api recognizes as the default token
1398
+ */
1399
+ address: import("@metamask/superstruct").Struct<string, null>;
1400
+ /**
1401
+ * The assetId of the token
1402
+ */
1403
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
1404
+ /**
1405
+ * The symbol of token object
1406
+ */
1407
+ symbol: import("@metamask/superstruct").Struct<string, null>;
1408
+ /**
1409
+ * The name for the network
1410
+ */
1411
+ name: import("@metamask/superstruct").Struct<string, null>;
1412
+ decimals: import("@metamask/superstruct").Struct<number, null>;
1413
+ /**
1414
+ * URL for token icon
1415
+ */
1416
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1417
+ /**
1418
+ * URL for token icon
1419
+ */
1420
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1421
+ }>;
1422
+ }>;
1423
+ /**
1424
+ * This is the fee for the swap transaction taken from either the
1425
+ * src or dest token if the quote has gas fees included or "gasless"
1426
+ */
1427
+ txFee: import("@metamask/superstruct").Struct<({
1428
+ amount: string;
1429
+ asset: {
1430
+ symbol: string;
1431
+ address: string;
1432
+ name: string;
1433
+ chainId: number;
1434
+ decimals: number;
1435
+ assetId: `${string}:${string}/${string}:${string}`;
1436
+ iconUrl?: string | null | undefined;
1437
+ icon?: string | null | undefined;
1438
+ };
1439
+ } & {
1440
+ maxPriorityFeePerGas: string;
1441
+ maxFeePerGas: string;
1442
+ }) | undefined, null>;
1443
+ }>;
1444
+ gasIncluded: import("@metamask/superstruct").Struct<boolean | undefined, null>;
1445
+ bridgeId: import("@metamask/superstruct").Struct<string, null>;
1446
+ bridges: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
1447
+ steps: import("@metamask/superstruct").Struct<{
1448
+ action: ActionTypes;
1449
+ protocol: {
1450
+ name: string;
1451
+ displayName?: string | undefined;
1452
+ icon?: string | undefined;
1453
+ };
1454
+ srcChainId: number;
1455
+ srcAsset: {
1456
+ symbol: string;
1457
+ address: string;
1458
+ name: string;
1459
+ chainId: number;
1460
+ decimals: number;
1461
+ assetId: `${string}:${string}/${string}:${string}`;
1462
+ iconUrl?: string | null | undefined;
1463
+ icon?: string | null | undefined;
1464
+ };
1465
+ destAsset: {
1466
+ symbol: string;
1467
+ address: string;
1468
+ name: string;
1469
+ chainId: number;
1470
+ decimals: number;
1471
+ assetId: `${string}:${string}/${string}:${string}`;
1472
+ iconUrl?: string | null | undefined;
1473
+ icon?: string | null | undefined;
1474
+ };
1475
+ srcAmount: string;
1476
+ destAmount: string;
1477
+ destChainId?: number | undefined;
1478
+ }[], import("@metamask/superstruct").Struct<{
1479
+ action: ActionTypes;
1480
+ protocol: {
1481
+ name: string;
1482
+ displayName?: string | undefined;
1483
+ icon?: string | undefined;
1484
+ };
1485
+ srcChainId: number;
1486
+ srcAsset: {
1487
+ symbol: string;
1488
+ address: string;
1489
+ name: string;
1490
+ chainId: number;
1491
+ decimals: number;
1492
+ assetId: `${string}:${string}/${string}:${string}`;
1493
+ iconUrl?: string | null | undefined;
1494
+ icon?: string | null | undefined;
1495
+ };
1496
+ destAsset: {
1497
+ symbol: string;
1498
+ address: string;
1499
+ name: string;
1500
+ chainId: number;
1501
+ decimals: number;
1502
+ assetId: `${string}:${string}/${string}:${string}`;
1503
+ iconUrl?: string | null | undefined;
1504
+ icon?: string | null | undefined;
1505
+ };
1506
+ srcAmount: string;
1507
+ destAmount: string;
1508
+ destChainId?: number | undefined;
1509
+ }, {
1510
+ action: import("@metamask/superstruct").Struct<ActionTypes, {
1511
+ bridge: ActionTypes.BRIDGE;
1512
+ swap: ActionTypes.SWAP;
1513
+ refuel: ActionTypes.REFUEL;
1514
+ }>;
1515
+ srcChainId: import("@metamask/superstruct").Struct<number, null>;
1516
+ destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
1517
+ srcAsset: import("@metamask/superstruct").Struct<{
1518
+ symbol: string;
1519
+ address: string;
1520
+ name: string;
1521
+ chainId: number;
1522
+ decimals: number;
1523
+ assetId: `${string}:${string}/${string}:${string}`;
1524
+ iconUrl?: string | null | undefined;
1525
+ icon?: string | null | undefined;
1526
+ }, {
1527
+ /**
1528
+ * The chainId of the token
1529
+ */
1530
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1531
+ /**
1532
+ * An address that the metaswap-api recognizes as the default token
1533
+ */
1534
+ address: import("@metamask/superstruct").Struct<string, null>;
1535
+ /**
1536
+ * The assetId of the token
1537
+ */
1538
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
1539
+ /**
1540
+ * The symbol of token object
1541
+ */
1542
+ symbol: import("@metamask/superstruct").Struct<string, null>;
1543
+ /**
1544
+ * The name for the network
1545
+ */
1546
+ name: import("@metamask/superstruct").Struct<string, null>;
1547
+ decimals: import("@metamask/superstruct").Struct<number, null>;
1548
+ /**
1549
+ * URL for token icon
1550
+ */
1551
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1552
+ /**
1553
+ * URL for token icon
1554
+ */
1555
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1556
+ }>;
1557
+ destAsset: import("@metamask/superstruct").Struct<{
1558
+ symbol: string;
1559
+ address: string;
1560
+ name: string;
1561
+ chainId: number;
1562
+ decimals: number;
1563
+ assetId: `${string}:${string}/${string}:${string}`;
1564
+ iconUrl?: string | null | undefined;
1565
+ icon?: string | null | undefined;
1566
+ }, {
1567
+ /**
1568
+ * The chainId of the token
1569
+ */
1570
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1571
+ /**
1572
+ * An address that the metaswap-api recognizes as the default token
1573
+ */
1574
+ address: import("@metamask/superstruct").Struct<string, null>;
1575
+ /**
1576
+ * The assetId of the token
1577
+ */
1578
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
1579
+ /**
1580
+ * The symbol of token object
1581
+ */
1582
+ symbol: import("@metamask/superstruct").Struct<string, null>;
1583
+ /**
1584
+ * The name for the network
1585
+ */
1586
+ name: import("@metamask/superstruct").Struct<string, null>;
1587
+ decimals: import("@metamask/superstruct").Struct<number, null>;
1588
+ /**
1589
+ * URL for token icon
1590
+ */
1591
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1592
+ /**
1593
+ * URL for token icon
1594
+ */
1595
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1596
+ }>;
1597
+ srcAmount: import("@metamask/superstruct").Struct<string, null>;
1598
+ destAmount: import("@metamask/superstruct").Struct<string, null>;
1599
+ protocol: import("@metamask/superstruct").Struct<{
1600
+ name: string;
1601
+ displayName?: string | undefined;
1602
+ icon?: string | undefined;
1603
+ }, {
1604
+ name: import("@metamask/superstruct").Struct<string, null>;
1605
+ displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
1606
+ icon: import("@metamask/superstruct").Struct<string | undefined, null>;
1607
+ }>;
1608
+ }>>;
1609
+ refuel: import("@metamask/superstruct").Struct<{
1610
+ action: ActionTypes;
1611
+ protocol: {
1612
+ name: string;
1613
+ displayName?: string | undefined;
1614
+ icon?: string | undefined;
1615
+ };
1616
+ srcChainId: number;
1617
+ srcAsset: {
1618
+ symbol: string;
1619
+ address: string;
1620
+ name: string;
1621
+ chainId: number;
1622
+ decimals: number;
1623
+ assetId: `${string}:${string}/${string}:${string}`;
1624
+ iconUrl?: string | null | undefined;
1625
+ icon?: string | null | undefined;
1626
+ };
1627
+ destAsset: {
1628
+ symbol: string;
1629
+ address: string;
1630
+ name: string;
1631
+ chainId: number;
1632
+ decimals: number;
1633
+ assetId: `${string}:${string}/${string}:${string}`;
1634
+ iconUrl?: string | null | undefined;
1635
+ icon?: string | null | undefined;
1636
+ };
1637
+ srcAmount: string;
1638
+ destAmount: string;
1639
+ destChainId?: number | undefined;
1640
+ } | undefined, {
1641
+ action: import("@metamask/superstruct").Struct<ActionTypes, {
1642
+ bridge: ActionTypes.BRIDGE;
1643
+ swap: ActionTypes.SWAP;
1644
+ refuel: ActionTypes.REFUEL;
1645
+ }>;
1646
+ srcChainId: import("@metamask/superstruct").Struct<number, null>;
1647
+ destChainId: import("@metamask/superstruct").Struct<number | undefined, null>;
1648
+ srcAsset: import("@metamask/superstruct").Struct<{
1649
+ symbol: string;
1650
+ address: string;
1651
+ name: string;
1652
+ chainId: number;
1653
+ decimals: number;
1654
+ assetId: `${string}:${string}/${string}:${string}`;
1655
+ iconUrl?: string | null | undefined;
1656
+ icon?: string | null | undefined;
1657
+ }, {
1658
+ /**
1659
+ * The chainId of the token
1660
+ */
1661
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1662
+ /**
1663
+ * An address that the metaswap-api recognizes as the default token
1664
+ */
1665
+ address: import("@metamask/superstruct").Struct<string, null>;
1666
+ /**
1667
+ * The assetId of the token
1668
+ */
1669
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
1670
+ /**
1671
+ * The symbol of token object
1672
+ */
1673
+ symbol: import("@metamask/superstruct").Struct<string, null>;
1674
+ /**
1675
+ * The name for the network
1676
+ */
1677
+ name: import("@metamask/superstruct").Struct<string, null>;
1678
+ decimals: import("@metamask/superstruct").Struct<number, null>;
1679
+ /**
1680
+ * URL for token icon
1681
+ */
1682
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1683
+ /**
1684
+ * URL for token icon
1685
+ */
1686
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1687
+ }>;
1688
+ destAsset: import("@metamask/superstruct").Struct<{
1689
+ symbol: string;
1690
+ address: string;
1691
+ name: string;
1692
+ chainId: number;
1693
+ decimals: number;
1694
+ assetId: `${string}:${string}/${string}:${string}`;
1695
+ iconUrl?: string | null | undefined;
1696
+ icon?: string | null | undefined;
1697
+ }, {
1698
+ /**
1699
+ * The chainId of the token
1700
+ */
1701
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1702
+ /**
1703
+ * An address that the metaswap-api recognizes as the default token
1704
+ */
1705
+ address: import("@metamask/superstruct").Struct<string, null>;
1706
+ /**
1707
+ * The assetId of the token
1708
+ */
1709
+ assetId: import("@metamask/superstruct").Struct<`${string}:${string}/${string}:${string}`, null>;
1710
+ /**
1711
+ * The symbol of token object
1712
+ */
1713
+ symbol: import("@metamask/superstruct").Struct<string, null>;
1714
+ /**
1715
+ * The name for the network
1716
+ */
1717
+ name: import("@metamask/superstruct").Struct<string, null>;
1718
+ decimals: import("@metamask/superstruct").Struct<number, null>;
1719
+ /**
1720
+ * URL for token icon
1721
+ */
1722
+ icon: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1723
+ /**
1724
+ * URL for token icon
1725
+ */
1726
+ iconUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1727
+ }>;
1728
+ srcAmount: import("@metamask/superstruct").Struct<string, null>;
1729
+ destAmount: import("@metamask/superstruct").Struct<string, null>;
1730
+ protocol: import("@metamask/superstruct").Struct<{
1731
+ name: string;
1732
+ displayName?: string | undefined;
1733
+ icon?: string | undefined;
1734
+ }, {
1735
+ name: import("@metamask/superstruct").Struct<string, null>;
1736
+ displayName: import("@metamask/superstruct").Struct<string | undefined, null>;
1737
+ icon: import("@metamask/superstruct").Struct<string | undefined, null>;
1738
+ }>;
1739
+ }>;
1740
+ priceData: import("@metamask/superstruct").Struct<{
1741
+ totalFromAmountUsd?: string | undefined;
1742
+ totalToAmountUsd?: string | undefined;
1743
+ priceImpact?: string | undefined;
1744
+ } | undefined, {
1745
+ totalFromAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
1746
+ totalToAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
1747
+ priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
1748
+ }>;
1749
+ }>;
1750
+ estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
1751
+ approval: import("@metamask/superstruct").Struct<{
1752
+ data: string;
1753
+ value: string;
1754
+ to: string;
1755
+ from: string;
1756
+ gasLimit: number | null;
1757
+ chainId: number;
1758
+ } | undefined, {
1759
+ chainId: import("@metamask/superstruct").Struct<number, null>;
1760
+ to: import("@metamask/superstruct").Struct<string, null>;
1761
+ from: import("@metamask/superstruct").Struct<string, null>;
1762
+ value: import("@metamask/superstruct").Struct<string, null>;
1763
+ data: import("@metamask/superstruct").Struct<string, null>;
1764
+ gasLimit: import("@metamask/superstruct").Struct<number | null, null>;
1765
+ }>;
1766
+ trade: import("@metamask/superstruct").Struct<string | {
1767
+ data: string;
1768
+ value: string;
1769
+ to: string;
1770
+ from: string;
1771
+ gasLimit: number | null;
1772
+ chainId: number;
1773
+ }, null>;
1774
+ }>;
1775
+ export declare const validateQuoteResponse: (data: unknown) => data is {
1776
+ quote: {
1777
+ srcChainId: number;
1778
+ destChainId: number;
1779
+ srcAsset: {
1780
+ symbol: string;
1781
+ address: string;
1782
+ name: string;
1783
+ chainId: number;
1784
+ decimals: number;
1785
+ assetId: `${string}:${string}/${string}:${string}`;
1786
+ iconUrl?: string | null | undefined;
1787
+ icon?: string | null | undefined;
1788
+ };
1789
+ destAsset: {
1790
+ symbol: string;
1791
+ address: string;
1792
+ name: string;
1793
+ chainId: number;
1794
+ decimals: number;
1795
+ assetId: `${string}:${string}/${string}:${string}`;
1796
+ iconUrl?: string | null | undefined;
1797
+ icon?: string | null | undefined;
1798
+ };
1799
+ requestId: string;
1800
+ srcTokenAmount: string;
1801
+ destTokenAmount: string;
1802
+ feeData: {
1803
+ metabridge: {
1804
+ amount: string;
1805
+ asset: {
1806
+ symbol: string;
1807
+ address: string;
1808
+ name: string;
1809
+ chainId: number;
1810
+ decimals: number;
1811
+ assetId: `${string}:${string}/${string}:${string}`;
1812
+ iconUrl?: string | null | undefined;
1813
+ icon?: string | null | undefined;
1814
+ };
1815
+ };
1816
+ txFee?: ({
1817
+ amount: string;
1818
+ asset: {
1819
+ symbol: string;
1820
+ address: string;
1821
+ name: string;
1822
+ chainId: number;
1823
+ decimals: number;
1824
+ assetId: `${string}:${string}/${string}:${string}`;
1825
+ iconUrl?: string | null | undefined;
1826
+ icon?: string | null | undefined;
1827
+ };
1828
+ } & {
1829
+ maxPriorityFeePerGas: string;
1830
+ maxFeePerGas: string;
1831
+ }) | undefined;
1832
+ };
1833
+ bridgeId: string;
1834
+ bridges: string[];
1835
+ steps: {
1836
+ action: ActionTypes;
1837
+ protocol: {
1838
+ name: string;
1839
+ displayName?: string | undefined;
1840
+ icon?: string | undefined;
1841
+ };
1842
+ srcChainId: number;
1843
+ srcAsset: {
1844
+ symbol: string;
1845
+ address: string;
1846
+ name: string;
1847
+ chainId: number;
1848
+ decimals: number;
1849
+ assetId: `${string}:${string}/${string}:${string}`;
1850
+ iconUrl?: string | null | undefined;
1851
+ icon?: string | null | undefined;
1852
+ };
1853
+ destAsset: {
1854
+ symbol: string;
1855
+ address: string;
1856
+ name: string;
1857
+ chainId: number;
1858
+ decimals: number;
1859
+ assetId: `${string}:${string}/${string}:${string}`;
1860
+ iconUrl?: string | null | undefined;
1861
+ icon?: string | null | undefined;
1862
+ };
1863
+ srcAmount: string;
1864
+ destAmount: string;
1865
+ destChainId?: number | undefined;
1866
+ }[];
1867
+ refuel?: {
1868
+ action: ActionTypes;
1869
+ protocol: {
1870
+ name: string;
1871
+ displayName?: string | undefined;
1872
+ icon?: string | undefined;
1873
+ };
1874
+ srcChainId: number;
1875
+ srcAsset: {
1876
+ symbol: string;
1877
+ address: string;
1878
+ name: string;
1879
+ chainId: number;
1880
+ decimals: number;
1881
+ assetId: `${string}:${string}/${string}:${string}`;
1882
+ iconUrl?: string | null | undefined;
1883
+ icon?: string | null | undefined;
1884
+ };
1885
+ destAsset: {
1886
+ symbol: string;
1887
+ address: string;
1888
+ name: string;
1889
+ chainId: number;
1890
+ decimals: number;
1891
+ assetId: `${string}:${string}/${string}:${string}`;
1892
+ iconUrl?: string | null | undefined;
1893
+ icon?: string | null | undefined;
1894
+ };
1895
+ srcAmount: string;
1896
+ destAmount: string;
1897
+ destChainId?: number | undefined;
1898
+ } | undefined;
1899
+ gasIncluded?: boolean | undefined;
1900
+ priceData?: {
1901
+ totalFromAmountUsd?: string | undefined;
1902
+ totalToAmountUsd?: string | undefined;
1903
+ priceImpact?: string | undefined;
1904
+ } | undefined;
1905
+ };
1906
+ estimatedProcessingTimeInSeconds: number;
1907
+ trade: string | {
1908
+ data: string;
1909
+ value: string;
1910
+ to: string;
1911
+ from: string;
1912
+ gasLimit: number | null;
1913
+ chainId: number;
1914
+ };
1915
+ approval?: {
1916
+ data: string;
1917
+ value: string;
1918
+ to: string;
1919
+ from: string;
1920
+ gasLimit: number | null;
1921
+ chainId: number;
1922
+ } | undefined;
1923
+ };
6
1924
  //# sourceMappingURL=validators.d.cts.map