@metamask-previews/bridge-controller 42.0.0-preview-48cbf01a → 42.0.0-preview-331bec5d

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.
@@ -353,6 +353,93 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
353
353
  icon: import("@metamask/superstruct").Struct<string | undefined, null>;
354
354
  }>;
355
355
  }>;
356
+ export declare const CowSwapOrderSchema: import("@metamask/superstruct").Struct<{
357
+ kind: "sell" | "buy";
358
+ sellToken: string;
359
+ buyToken: string;
360
+ validTo: string | number;
361
+ appData: string;
362
+ appDataHash: string;
363
+ feeAmount: string;
364
+ partiallyFillable: boolean;
365
+ receiver?: string | undefined;
366
+ from?: string | undefined;
367
+ sellAmount?: string | undefined;
368
+ buyAmount?: string | undefined;
369
+ }, {
370
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
371
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
372
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
373
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
374
+ appData: import("@metamask/superstruct").Struct<string, null>;
375
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
376
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
377
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
378
+ sell: "sell";
379
+ buy: "buy";
380
+ }>;
381
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
382
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
383
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
384
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
385
+ }>;
386
+ export declare const IntentSchema: import("@metamask/superstruct").Struct<{
387
+ order: {
388
+ kind: "sell" | "buy";
389
+ sellToken: string;
390
+ buyToken: string;
391
+ validTo: string | number;
392
+ appData: string;
393
+ appDataHash: string;
394
+ feeAmount: string;
395
+ partiallyFillable: boolean;
396
+ receiver?: string | undefined;
397
+ from?: string | undefined;
398
+ sellAmount?: string | undefined;
399
+ buyAmount?: string | undefined;
400
+ };
401
+ protocol: "cowswap";
402
+ settlementContract?: string | undefined;
403
+ relayer?: string | undefined;
404
+ quoteId?: string | null | undefined;
405
+ }, {
406
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
407
+ cowswap: "cowswap";
408
+ }>;
409
+ order: import("@metamask/superstruct").Struct<{
410
+ kind: "sell" | "buy";
411
+ sellToken: string;
412
+ buyToken: string;
413
+ validTo: string | number;
414
+ appData: string;
415
+ appDataHash: string;
416
+ feeAmount: string;
417
+ partiallyFillable: boolean;
418
+ receiver?: string | undefined;
419
+ from?: string | undefined;
420
+ sellAmount?: string | undefined;
421
+ buyAmount?: string | undefined;
422
+ }, {
423
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
424
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
425
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
426
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
427
+ appData: import("@metamask/superstruct").Struct<string, null>;
428
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
429
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
430
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
431
+ sell: "sell";
432
+ buy: "buy";
433
+ }>;
434
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
435
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
436
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
437
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
438
+ }>;
439
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
440
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
441
+ quoteId: import("@metamask/superstruct").Struct<string | null | undefined, null>;
442
+ }>;
356
443
  export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
357
444
  srcChainId: number;
358
445
  destChainId: number;
@@ -484,6 +571,26 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
484
571
  totalToAmountUsd?: string | undefined;
485
572
  priceImpact?: string | undefined;
486
573
  } | undefined;
574
+ intent?: {
575
+ order: {
576
+ kind: "sell" | "buy";
577
+ sellToken: string;
578
+ buyToken: string;
579
+ validTo: string | number;
580
+ appData: string;
581
+ appDataHash: string;
582
+ feeAmount: string;
583
+ partiallyFillable: boolean;
584
+ receiver?: string | undefined;
585
+ from?: string | undefined;
586
+ sellAmount?: string | undefined;
587
+ buyAmount?: string | undefined;
588
+ };
589
+ protocol: "cowswap";
590
+ settlementContract?: string | undefined;
591
+ relayer?: string | undefined;
592
+ quoteId?: string | null | undefined;
593
+ } | undefined;
487
594
  }, {
488
595
  requestId: import("@metamask/superstruct").Struct<string, null>;
489
596
  srcChainId: import("@metamask/superstruct").Struct<number, null>;
@@ -997,6 +1104,63 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
997
1104
  totalToAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
998
1105
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
999
1106
  }>;
1107
+ intent: import("@metamask/superstruct").Struct<{
1108
+ order: {
1109
+ kind: "sell" | "buy";
1110
+ sellToken: string;
1111
+ buyToken: string;
1112
+ validTo: string | number;
1113
+ appData: string;
1114
+ appDataHash: string;
1115
+ feeAmount: string;
1116
+ partiallyFillable: boolean;
1117
+ receiver?: string | undefined;
1118
+ from?: string | undefined;
1119
+ sellAmount?: string | undefined;
1120
+ buyAmount?: string | undefined;
1121
+ };
1122
+ protocol: "cowswap";
1123
+ settlementContract?: string | undefined;
1124
+ relayer?: string | undefined;
1125
+ quoteId?: string | null | undefined;
1126
+ } | undefined, {
1127
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
1128
+ cowswap: "cowswap";
1129
+ }>;
1130
+ order: import("@metamask/superstruct").Struct<{
1131
+ kind: "sell" | "buy";
1132
+ sellToken: string;
1133
+ buyToken: string;
1134
+ validTo: string | number;
1135
+ appData: string;
1136
+ appDataHash: string;
1137
+ feeAmount: string;
1138
+ partiallyFillable: boolean;
1139
+ receiver?: string | undefined;
1140
+ from?: string | undefined;
1141
+ sellAmount?: string | undefined;
1142
+ buyAmount?: string | undefined;
1143
+ }, {
1144
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
1145
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
1146
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
1147
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
1148
+ appData: import("@metamask/superstruct").Struct<string, null>;
1149
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
1150
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
1151
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
1152
+ sell: "sell";
1153
+ buy: "buy";
1154
+ }>;
1155
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
1156
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1157
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1158
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
1159
+ }>;
1160
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
1161
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
1162
+ quoteId: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1163
+ }>;
1000
1164
  }>;
1001
1165
  export declare const TxDataSchema: import("@metamask/superstruct").Struct<{
1002
1166
  data: string;
@@ -1147,6 +1311,26 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1147
1311
  totalToAmountUsd?: string | undefined;
1148
1312
  priceImpact?: string | undefined;
1149
1313
  } | undefined;
1314
+ intent?: {
1315
+ order: {
1316
+ kind: "sell" | "buy";
1317
+ sellToken: string;
1318
+ buyToken: string;
1319
+ validTo: string | number;
1320
+ appData: string;
1321
+ appDataHash: string;
1322
+ feeAmount: string;
1323
+ partiallyFillable: boolean;
1324
+ receiver?: string | undefined;
1325
+ from?: string | undefined;
1326
+ sellAmount?: string | undefined;
1327
+ buyAmount?: string | undefined;
1328
+ };
1329
+ protocol: "cowswap";
1330
+ settlementContract?: string | undefined;
1331
+ relayer?: string | undefined;
1332
+ quoteId?: string | null | undefined;
1333
+ } | undefined;
1150
1334
  };
1151
1335
  estimatedProcessingTimeInSeconds: number;
1152
1336
  trade: string | {
@@ -1299,6 +1483,26 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1299
1483
  totalToAmountUsd?: string | undefined;
1300
1484
  priceImpact?: string | undefined;
1301
1485
  } | undefined;
1486
+ intent?: {
1487
+ order: {
1488
+ kind: "sell" | "buy";
1489
+ sellToken: string;
1490
+ buyToken: string;
1491
+ validTo: string | number;
1492
+ appData: string;
1493
+ appDataHash: string;
1494
+ feeAmount: string;
1495
+ partiallyFillable: boolean;
1496
+ receiver?: string | undefined;
1497
+ from?: string | undefined;
1498
+ sellAmount?: string | undefined;
1499
+ buyAmount?: string | undefined;
1500
+ };
1501
+ protocol: "cowswap";
1502
+ settlementContract?: string | undefined;
1503
+ relayer?: string | undefined;
1504
+ quoteId?: string | null | undefined;
1505
+ } | undefined;
1302
1506
  }, {
1303
1507
  requestId: import("@metamask/superstruct").Struct<string, null>;
1304
1508
  srcChainId: import("@metamask/superstruct").Struct<number, null>;
@@ -1812,6 +2016,63 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1812
2016
  totalToAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
1813
2017
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
1814
2018
  }>;
2019
+ intent: import("@metamask/superstruct").Struct<{
2020
+ order: {
2021
+ kind: "sell" | "buy";
2022
+ sellToken: string;
2023
+ buyToken: string;
2024
+ validTo: string | number;
2025
+ appData: string;
2026
+ appDataHash: string;
2027
+ feeAmount: string;
2028
+ partiallyFillable: boolean;
2029
+ receiver?: string | undefined;
2030
+ from?: string | undefined;
2031
+ sellAmount?: string | undefined;
2032
+ buyAmount?: string | undefined;
2033
+ };
2034
+ protocol: "cowswap";
2035
+ settlementContract?: string | undefined;
2036
+ relayer?: string | undefined;
2037
+ quoteId?: string | null | undefined;
2038
+ } | undefined, {
2039
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
2040
+ cowswap: "cowswap";
2041
+ }>;
2042
+ order: import("@metamask/superstruct").Struct<{
2043
+ kind: "sell" | "buy";
2044
+ sellToken: string;
2045
+ buyToken: string;
2046
+ validTo: string | number;
2047
+ appData: string;
2048
+ appDataHash: string;
2049
+ feeAmount: string;
2050
+ partiallyFillable: boolean;
2051
+ receiver?: string | undefined;
2052
+ from?: string | undefined;
2053
+ sellAmount?: string | undefined;
2054
+ buyAmount?: string | undefined;
2055
+ }, {
2056
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
2057
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
2058
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
2059
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
2060
+ appData: import("@metamask/superstruct").Struct<string, null>;
2061
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
2062
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
2063
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
2064
+ sell: "sell";
2065
+ buy: "buy";
2066
+ }>;
2067
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
2068
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2069
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2070
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
2071
+ }>;
2072
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
2073
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
2074
+ quoteId: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2075
+ }>;
1815
2076
  }>;
1816
2077
  estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
1817
2078
  approval: import("@metamask/superstruct").Struct<{
@@ -1973,6 +2234,26 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
1973
2234
  totalToAmountUsd?: string | undefined;
1974
2235
  priceImpact?: string | undefined;
1975
2236
  } | undefined;
2237
+ intent?: {
2238
+ order: {
2239
+ kind: "sell" | "buy";
2240
+ sellToken: string;
2241
+ buyToken: string;
2242
+ validTo: string | number;
2243
+ appData: string;
2244
+ appDataHash: string;
2245
+ feeAmount: string;
2246
+ partiallyFillable: boolean;
2247
+ receiver?: string | undefined;
2248
+ from?: string | undefined;
2249
+ sellAmount?: string | undefined;
2250
+ buyAmount?: string | undefined;
2251
+ };
2252
+ protocol: "cowswap";
2253
+ settlementContract?: string | undefined;
2254
+ relayer?: string | undefined;
2255
+ quoteId?: string | null | undefined;
2256
+ } | undefined;
1976
2257
  };
1977
2258
  estimatedProcessingTimeInSeconds: number;
1978
2259
  trade: string | {
@@ -1 +1 @@
1
- {"version":3,"file":"validators.d.cts","sourceRoot":"","sources":["../../src/utils/validators.ts"],"names":[],"mappings":"AAqBA,oBAAY,OAAO;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,UAAU;CACjB;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAUD,eAAO,MAAM,YAAY,MAAO,MAAM,YAAuB,CAAC;AAK9D,eAAO,MAAM,iBAAiB;;;;;;;;;;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;IAGH;;OAEG;;IAEH;;OAEG;;EAEH,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;EAOnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;EAGrC,CAAC;AAUH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAEH;;mBAEG;;gBAEH;;mBAEG;;;gBAGH;;mBAEG;;gBAEH;;mBAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmLH,CAAC;AAEH,eAAO,MAAM,qBAAqB,SAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAId,CAAC"}
@@ -353,6 +353,93 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
353
353
  icon: import("@metamask/superstruct").Struct<string | undefined, null>;
354
354
  }>;
355
355
  }>;
356
+ export declare const CowSwapOrderSchema: import("@metamask/superstruct").Struct<{
357
+ kind: "sell" | "buy";
358
+ sellToken: string;
359
+ buyToken: string;
360
+ validTo: string | number;
361
+ appData: string;
362
+ appDataHash: string;
363
+ feeAmount: string;
364
+ partiallyFillable: boolean;
365
+ receiver?: string | undefined;
366
+ from?: string | undefined;
367
+ sellAmount?: string | undefined;
368
+ buyAmount?: string | undefined;
369
+ }, {
370
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
371
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
372
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
373
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
374
+ appData: import("@metamask/superstruct").Struct<string, null>;
375
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
376
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
377
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
378
+ sell: "sell";
379
+ buy: "buy";
380
+ }>;
381
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
382
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
383
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
384
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
385
+ }>;
386
+ export declare const IntentSchema: import("@metamask/superstruct").Struct<{
387
+ order: {
388
+ kind: "sell" | "buy";
389
+ sellToken: string;
390
+ buyToken: string;
391
+ validTo: string | number;
392
+ appData: string;
393
+ appDataHash: string;
394
+ feeAmount: string;
395
+ partiallyFillable: boolean;
396
+ receiver?: string | undefined;
397
+ from?: string | undefined;
398
+ sellAmount?: string | undefined;
399
+ buyAmount?: string | undefined;
400
+ };
401
+ protocol: "cowswap";
402
+ settlementContract?: string | undefined;
403
+ relayer?: string | undefined;
404
+ quoteId?: string | null | undefined;
405
+ }, {
406
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
407
+ cowswap: "cowswap";
408
+ }>;
409
+ order: import("@metamask/superstruct").Struct<{
410
+ kind: "sell" | "buy";
411
+ sellToken: string;
412
+ buyToken: string;
413
+ validTo: string | number;
414
+ appData: string;
415
+ appDataHash: string;
416
+ feeAmount: string;
417
+ partiallyFillable: boolean;
418
+ receiver?: string | undefined;
419
+ from?: string | undefined;
420
+ sellAmount?: string | undefined;
421
+ buyAmount?: string | undefined;
422
+ }, {
423
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
424
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
425
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
426
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
427
+ appData: import("@metamask/superstruct").Struct<string, null>;
428
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
429
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
430
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
431
+ sell: "sell";
432
+ buy: "buy";
433
+ }>;
434
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
435
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
436
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
437
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
438
+ }>;
439
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
440
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
441
+ quoteId: import("@metamask/superstruct").Struct<string | null | undefined, null>;
442
+ }>;
356
443
  export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
357
444
  srcChainId: number;
358
445
  destChainId: number;
@@ -484,6 +571,26 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
484
571
  totalToAmountUsd?: string | undefined;
485
572
  priceImpact?: string | undefined;
486
573
  } | undefined;
574
+ intent?: {
575
+ order: {
576
+ kind: "sell" | "buy";
577
+ sellToken: string;
578
+ buyToken: string;
579
+ validTo: string | number;
580
+ appData: string;
581
+ appDataHash: string;
582
+ feeAmount: string;
583
+ partiallyFillable: boolean;
584
+ receiver?: string | undefined;
585
+ from?: string | undefined;
586
+ sellAmount?: string | undefined;
587
+ buyAmount?: string | undefined;
588
+ };
589
+ protocol: "cowswap";
590
+ settlementContract?: string | undefined;
591
+ relayer?: string | undefined;
592
+ quoteId?: string | null | undefined;
593
+ } | undefined;
487
594
  }, {
488
595
  requestId: import("@metamask/superstruct").Struct<string, null>;
489
596
  srcChainId: import("@metamask/superstruct").Struct<number, null>;
@@ -997,6 +1104,63 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
997
1104
  totalToAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
998
1105
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
999
1106
  }>;
1107
+ intent: import("@metamask/superstruct").Struct<{
1108
+ order: {
1109
+ kind: "sell" | "buy";
1110
+ sellToken: string;
1111
+ buyToken: string;
1112
+ validTo: string | number;
1113
+ appData: string;
1114
+ appDataHash: string;
1115
+ feeAmount: string;
1116
+ partiallyFillable: boolean;
1117
+ receiver?: string | undefined;
1118
+ from?: string | undefined;
1119
+ sellAmount?: string | undefined;
1120
+ buyAmount?: string | undefined;
1121
+ };
1122
+ protocol: "cowswap";
1123
+ settlementContract?: string | undefined;
1124
+ relayer?: string | undefined;
1125
+ quoteId?: string | null | undefined;
1126
+ } | undefined, {
1127
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
1128
+ cowswap: "cowswap";
1129
+ }>;
1130
+ order: import("@metamask/superstruct").Struct<{
1131
+ kind: "sell" | "buy";
1132
+ sellToken: string;
1133
+ buyToken: string;
1134
+ validTo: string | number;
1135
+ appData: string;
1136
+ appDataHash: string;
1137
+ feeAmount: string;
1138
+ partiallyFillable: boolean;
1139
+ receiver?: string | undefined;
1140
+ from?: string | undefined;
1141
+ sellAmount?: string | undefined;
1142
+ buyAmount?: string | undefined;
1143
+ }, {
1144
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
1145
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
1146
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
1147
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
1148
+ appData: import("@metamask/superstruct").Struct<string, null>;
1149
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
1150
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
1151
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
1152
+ sell: "sell";
1153
+ buy: "buy";
1154
+ }>;
1155
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
1156
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1157
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1158
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
1159
+ }>;
1160
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
1161
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
1162
+ quoteId: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1163
+ }>;
1000
1164
  }>;
1001
1165
  export declare const TxDataSchema: import("@metamask/superstruct").Struct<{
1002
1166
  data: string;
@@ -1147,6 +1311,26 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1147
1311
  totalToAmountUsd?: string | undefined;
1148
1312
  priceImpact?: string | undefined;
1149
1313
  } | undefined;
1314
+ intent?: {
1315
+ order: {
1316
+ kind: "sell" | "buy";
1317
+ sellToken: string;
1318
+ buyToken: string;
1319
+ validTo: string | number;
1320
+ appData: string;
1321
+ appDataHash: string;
1322
+ feeAmount: string;
1323
+ partiallyFillable: boolean;
1324
+ receiver?: string | undefined;
1325
+ from?: string | undefined;
1326
+ sellAmount?: string | undefined;
1327
+ buyAmount?: string | undefined;
1328
+ };
1329
+ protocol: "cowswap";
1330
+ settlementContract?: string | undefined;
1331
+ relayer?: string | undefined;
1332
+ quoteId?: string | null | undefined;
1333
+ } | undefined;
1150
1334
  };
1151
1335
  estimatedProcessingTimeInSeconds: number;
1152
1336
  trade: string | {
@@ -1299,6 +1483,26 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1299
1483
  totalToAmountUsd?: string | undefined;
1300
1484
  priceImpact?: string | undefined;
1301
1485
  } | undefined;
1486
+ intent?: {
1487
+ order: {
1488
+ kind: "sell" | "buy";
1489
+ sellToken: string;
1490
+ buyToken: string;
1491
+ validTo: string | number;
1492
+ appData: string;
1493
+ appDataHash: string;
1494
+ feeAmount: string;
1495
+ partiallyFillable: boolean;
1496
+ receiver?: string | undefined;
1497
+ from?: string | undefined;
1498
+ sellAmount?: string | undefined;
1499
+ buyAmount?: string | undefined;
1500
+ };
1501
+ protocol: "cowswap";
1502
+ settlementContract?: string | undefined;
1503
+ relayer?: string | undefined;
1504
+ quoteId?: string | null | undefined;
1505
+ } | undefined;
1302
1506
  }, {
1303
1507
  requestId: import("@metamask/superstruct").Struct<string, null>;
1304
1508
  srcChainId: import("@metamask/superstruct").Struct<number, null>;
@@ -1812,6 +2016,63 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1812
2016
  totalToAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
1813
2017
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
1814
2018
  }>;
2019
+ intent: import("@metamask/superstruct").Struct<{
2020
+ order: {
2021
+ kind: "sell" | "buy";
2022
+ sellToken: string;
2023
+ buyToken: string;
2024
+ validTo: string | number;
2025
+ appData: string;
2026
+ appDataHash: string;
2027
+ feeAmount: string;
2028
+ partiallyFillable: boolean;
2029
+ receiver?: string | undefined;
2030
+ from?: string | undefined;
2031
+ sellAmount?: string | undefined;
2032
+ buyAmount?: string | undefined;
2033
+ };
2034
+ protocol: "cowswap";
2035
+ settlementContract?: string | undefined;
2036
+ relayer?: string | undefined;
2037
+ quoteId?: string | null | undefined;
2038
+ } | undefined, {
2039
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
2040
+ cowswap: "cowswap";
2041
+ }>;
2042
+ order: import("@metamask/superstruct").Struct<{
2043
+ kind: "sell" | "buy";
2044
+ sellToken: string;
2045
+ buyToken: string;
2046
+ validTo: string | number;
2047
+ appData: string;
2048
+ appDataHash: string;
2049
+ feeAmount: string;
2050
+ partiallyFillable: boolean;
2051
+ receiver?: string | undefined;
2052
+ from?: string | undefined;
2053
+ sellAmount?: string | undefined;
2054
+ buyAmount?: string | undefined;
2055
+ }, {
2056
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
2057
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
2058
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
2059
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
2060
+ appData: import("@metamask/superstruct").Struct<string, null>;
2061
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
2062
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
2063
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
2064
+ sell: "sell";
2065
+ buy: "buy";
2066
+ }>;
2067
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
2068
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2069
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2070
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
2071
+ }>;
2072
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
2073
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
2074
+ quoteId: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2075
+ }>;
1815
2076
  }>;
1816
2077
  estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
1817
2078
  approval: import("@metamask/superstruct").Struct<{
@@ -1973,6 +2234,26 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
1973
2234
  totalToAmountUsd?: string | undefined;
1974
2235
  priceImpact?: string | undefined;
1975
2236
  } | undefined;
2237
+ intent?: {
2238
+ order: {
2239
+ kind: "sell" | "buy";
2240
+ sellToken: string;
2241
+ buyToken: string;
2242
+ validTo: string | number;
2243
+ appData: string;
2244
+ appDataHash: string;
2245
+ feeAmount: string;
2246
+ partiallyFillable: boolean;
2247
+ receiver?: string | undefined;
2248
+ from?: string | undefined;
2249
+ sellAmount?: string | undefined;
2250
+ buyAmount?: string | undefined;
2251
+ };
2252
+ protocol: "cowswap";
2253
+ settlementContract?: string | undefined;
2254
+ relayer?: string | undefined;
2255
+ quoteId?: string | null | undefined;
2256
+ } | undefined;
1976
2257
  };
1977
2258
  estimatedProcessingTimeInSeconds: number;
1978
2259
  trade: string | {