@metamask-previews/bridge-controller 64.1.0-preview-cb4a07d5 → 64.1.0-preview-565dfca2

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.
@@ -1,3 +1,4 @@
1
+ import type { Infer } from "@metamask/superstruct";
1
2
  export declare enum FeeType {
2
3
  METABRIDGE = "metabridge",
3
4
  REFUEL = "refuel",
@@ -433,6 +434,93 @@ export declare const StepSchema: import("@metamask/superstruct").Struct<{
433
434
  icon: import("@metamask/superstruct").Struct<string | undefined, null>;
434
435
  }>;
435
436
  }>;
437
+ export declare const IntentOrderSchema: import("@metamask/superstruct").Struct<{
438
+ sellToken: string;
439
+ buyToken: string;
440
+ validTo: string | number;
441
+ appData: string;
442
+ appDataHash: string;
443
+ feeAmount: string;
444
+ kind: "sell" | "buy";
445
+ partiallyFillable: boolean;
446
+ receiver?: string | undefined;
447
+ sellAmount?: string | undefined;
448
+ buyAmount?: string | undefined;
449
+ from?: string | undefined;
450
+ }, {
451
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
452
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
453
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
454
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
455
+ appData: import("@metamask/superstruct").Struct<string, null>;
456
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
457
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
458
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
459
+ sell: "sell";
460
+ buy: "buy";
461
+ }>;
462
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
463
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
464
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
465
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
466
+ }>;
467
+ export declare const IntentSchema: import("@metamask/superstruct").Struct<{
468
+ protocol: "cowswap";
469
+ order: {
470
+ sellToken: string;
471
+ buyToken: string;
472
+ validTo: string | number;
473
+ appData: string;
474
+ appDataHash: string;
475
+ feeAmount: string;
476
+ kind: "sell" | "buy";
477
+ partiallyFillable: boolean;
478
+ receiver?: string | undefined;
479
+ sellAmount?: string | undefined;
480
+ buyAmount?: string | undefined;
481
+ from?: string | undefined;
482
+ };
483
+ settlementContract?: string | undefined;
484
+ relayer?: string | undefined;
485
+ }, {
486
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
487
+ cowswap: "cowswap";
488
+ }>;
489
+ order: import("@metamask/superstruct").Struct<{
490
+ sellToken: string;
491
+ buyToken: string;
492
+ validTo: string | number;
493
+ appData: string;
494
+ appDataHash: string;
495
+ feeAmount: string;
496
+ kind: "sell" | "buy";
497
+ partiallyFillable: boolean;
498
+ receiver?: string | undefined;
499
+ sellAmount?: string | undefined;
500
+ buyAmount?: string | undefined;
501
+ from?: string | undefined;
502
+ }, {
503
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
504
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
505
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
506
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
507
+ appData: import("@metamask/superstruct").Struct<string, null>;
508
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
509
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
510
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
511
+ sell: "sell";
512
+ buy: "buy";
513
+ }>;
514
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
515
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
516
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
517
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
518
+ }>;
519
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
520
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
521
+ }>;
522
+ export type IntentOrder = Infer<typeof IntentOrderSchema>;
523
+ export type Intent = Infer<typeof IntentSchema>;
436
524
  export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
437
525
  srcChainId: number;
438
526
  destChainId: number;
@@ -565,6 +653,25 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
565
653
  priceImpact?: string | undefined;
566
654
  totalFeeAmountUsd?: string | undefined;
567
655
  } | undefined;
656
+ intent?: {
657
+ protocol: "cowswap";
658
+ order: {
659
+ sellToken: string;
660
+ buyToken: string;
661
+ validTo: string | number;
662
+ appData: string;
663
+ appDataHash: string;
664
+ feeAmount: string;
665
+ kind: "sell" | "buy";
666
+ partiallyFillable: boolean;
667
+ receiver?: string | undefined;
668
+ sellAmount?: string | undefined;
669
+ buyAmount?: string | undefined;
670
+ from?: string | undefined;
671
+ };
672
+ settlementContract?: string | undefined;
673
+ relayer?: string | undefined;
674
+ } | undefined;
568
675
  gasSponsored?: boolean | undefined;
569
676
  }, {
570
677
  requestId: import("@metamask/superstruct").Struct<string, null>;
@@ -1081,6 +1188,61 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1081
1188
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
1082
1189
  totalFeeAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
1083
1190
  }>;
1191
+ intent: import("@metamask/superstruct").Struct<{
1192
+ protocol: "cowswap";
1193
+ order: {
1194
+ sellToken: string;
1195
+ buyToken: string;
1196
+ validTo: string | number;
1197
+ appData: string;
1198
+ appDataHash: string;
1199
+ feeAmount: string;
1200
+ kind: "sell" | "buy";
1201
+ partiallyFillable: boolean;
1202
+ receiver?: string | undefined;
1203
+ sellAmount?: string | undefined;
1204
+ buyAmount?: string | undefined;
1205
+ from?: string | undefined;
1206
+ };
1207
+ settlementContract?: string | undefined;
1208
+ relayer?: string | undefined;
1209
+ } | undefined, {
1210
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
1211
+ cowswap: "cowswap";
1212
+ }>;
1213
+ order: import("@metamask/superstruct").Struct<{
1214
+ sellToken: string;
1215
+ buyToken: string;
1216
+ validTo: string | number;
1217
+ appData: string;
1218
+ appDataHash: string;
1219
+ feeAmount: string;
1220
+ kind: "sell" | "buy";
1221
+ partiallyFillable: boolean;
1222
+ receiver?: string | undefined;
1223
+ sellAmount?: string | undefined;
1224
+ buyAmount?: string | undefined;
1225
+ from?: string | undefined;
1226
+ }, {
1227
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
1228
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
1229
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
1230
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
1231
+ appData: import("@metamask/superstruct").Struct<string, null>;
1232
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
1233
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
1234
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
1235
+ sell: "sell";
1236
+ buy: "buy";
1237
+ }>;
1238
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
1239
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1240
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
1241
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
1242
+ }>;
1243
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
1244
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
1245
+ }>;
1084
1246
  /**
1085
1247
  * A third party sponsors the gas. If true, then gasIncluded7702 is also true.
1086
1248
  */
@@ -1088,8 +1250,8 @@ export declare const QuoteSchema: import("@metamask/superstruct").Struct<{
1088
1250
  }>;
1089
1251
  export declare const TxDataSchema: import("@metamask/superstruct").Struct<{
1090
1252
  chainId: number;
1091
- to: string;
1092
1253
  from: string;
1254
+ to: string;
1093
1255
  value: string;
1094
1256
  data: string;
1095
1257
  gasLimit: number | null;
@@ -1271,13 +1433,32 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1271
1433
  priceImpact?: string | undefined;
1272
1434
  totalFeeAmountUsd?: string | undefined;
1273
1435
  } | undefined;
1436
+ intent?: {
1437
+ protocol: "cowswap";
1438
+ order: {
1439
+ sellToken: string;
1440
+ buyToken: string;
1441
+ validTo: string | number;
1442
+ appData: string;
1443
+ appDataHash: string;
1444
+ feeAmount: string;
1445
+ kind: "sell" | "buy";
1446
+ partiallyFillable: boolean;
1447
+ receiver?: string | undefined;
1448
+ sellAmount?: string | undefined;
1449
+ buyAmount?: string | undefined;
1450
+ from?: string | undefined;
1451
+ };
1452
+ settlementContract?: string | undefined;
1453
+ relayer?: string | undefined;
1454
+ } | undefined;
1274
1455
  gasSponsored?: boolean | undefined;
1275
1456
  };
1276
1457
  estimatedProcessingTimeInSeconds: number;
1277
1458
  trade: string | {
1278
1459
  chainId: number;
1279
- to: string;
1280
1460
  from: string;
1461
+ to: string;
1281
1462
  value: string;
1282
1463
  data: string;
1283
1464
  gasLimit: number | null;
@@ -1297,8 +1478,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1297
1478
  };
1298
1479
  approval?: {
1299
1480
  chainId: number;
1300
- to: string;
1301
1481
  from: string;
1482
+ to: string;
1302
1483
  value: string;
1303
1484
  data: string;
1304
1485
  gasLimit: number | null;
@@ -1446,6 +1627,25 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1446
1627
  priceImpact?: string | undefined;
1447
1628
  totalFeeAmountUsd?: string | undefined;
1448
1629
  } | undefined;
1630
+ intent?: {
1631
+ protocol: "cowswap";
1632
+ order: {
1633
+ sellToken: string;
1634
+ buyToken: string;
1635
+ validTo: string | number;
1636
+ appData: string;
1637
+ appDataHash: string;
1638
+ feeAmount: string;
1639
+ kind: "sell" | "buy";
1640
+ partiallyFillable: boolean;
1641
+ receiver?: string | undefined;
1642
+ sellAmount?: string | undefined;
1643
+ buyAmount?: string | undefined;
1644
+ from?: string | undefined;
1645
+ };
1646
+ settlementContract?: string | undefined;
1647
+ relayer?: string | undefined;
1648
+ } | undefined;
1449
1649
  gasSponsored?: boolean | undefined;
1450
1650
  }, {
1451
1651
  requestId: import("@metamask/superstruct").Struct<string, null>;
@@ -1962,6 +2162,61 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1962
2162
  priceImpact: import("@metamask/superstruct").Struct<string | undefined, null>;
1963
2163
  totalFeeAmountUsd: import("@metamask/superstruct").Struct<string | undefined, null>;
1964
2164
  }>;
2165
+ intent: import("@metamask/superstruct").Struct<{
2166
+ protocol: "cowswap";
2167
+ order: {
2168
+ sellToken: string;
2169
+ buyToken: string;
2170
+ validTo: string | number;
2171
+ appData: string;
2172
+ appDataHash: string;
2173
+ feeAmount: string;
2174
+ kind: "sell" | "buy";
2175
+ partiallyFillable: boolean;
2176
+ receiver?: string | undefined;
2177
+ sellAmount?: string | undefined;
2178
+ buyAmount?: string | undefined;
2179
+ from?: string | undefined;
2180
+ };
2181
+ settlementContract?: string | undefined;
2182
+ relayer?: string | undefined;
2183
+ } | undefined, {
2184
+ protocol: import("@metamask/superstruct").Struct<"cowswap", {
2185
+ cowswap: "cowswap";
2186
+ }>;
2187
+ order: import("@metamask/superstruct").Struct<{
2188
+ sellToken: string;
2189
+ buyToken: string;
2190
+ validTo: string | number;
2191
+ appData: string;
2192
+ appDataHash: string;
2193
+ feeAmount: string;
2194
+ kind: "sell" | "buy";
2195
+ partiallyFillable: boolean;
2196
+ receiver?: string | undefined;
2197
+ sellAmount?: string | undefined;
2198
+ buyAmount?: string | undefined;
2199
+ from?: string | undefined;
2200
+ }, {
2201
+ sellToken: import("@metamask/superstruct").Struct<string, null>;
2202
+ buyToken: import("@metamask/superstruct").Struct<string, null>;
2203
+ receiver: import("@metamask/superstruct").Struct<string | undefined, null>;
2204
+ validTo: import("@metamask/superstruct").Struct<string | number, null>;
2205
+ appData: import("@metamask/superstruct").Struct<string, null>;
2206
+ appDataHash: import("@metamask/superstruct").Struct<string, null>;
2207
+ feeAmount: import("@metamask/superstruct").Struct<string, null>;
2208
+ kind: import("@metamask/superstruct").Struct<"sell" | "buy", {
2209
+ sell: "sell";
2210
+ buy: "buy";
2211
+ }>;
2212
+ partiallyFillable: import("@metamask/superstruct").Struct<boolean, null>;
2213
+ sellAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2214
+ buyAmount: import("@metamask/superstruct").Struct<string | undefined, null>;
2215
+ from: import("@metamask/superstruct").Struct<string | undefined, null>;
2216
+ }>;
2217
+ settlementContract: import("@metamask/superstruct").Struct<string | undefined, null>;
2218
+ relayer: import("@metamask/superstruct").Struct<string | undefined, null>;
2219
+ }>;
1965
2220
  /**
1966
2221
  * A third party sponsors the gas. If true, then gasIncluded7702 is also true.
1967
2222
  */
@@ -1970,8 +2225,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1970
2225
  estimatedProcessingTimeInSeconds: import("@metamask/superstruct").Struct<number, null>;
1971
2226
  approval: import("@metamask/superstruct").Struct<{
1972
2227
  chainId: number;
1973
- to: string;
1974
2228
  from: string;
2229
+ to: string;
1975
2230
  value: string;
1976
2231
  data: string;
1977
2232
  gasLimit: number | null;
@@ -1988,8 +2243,8 @@ export declare const QuoteResponseSchema: import("@metamask/superstruct").Struct
1988
2243
  } | undefined, null>;
1989
2244
  trade: import("@metamask/superstruct").Struct<string | {
1990
2245
  chainId: number;
1991
- to: string;
1992
2246
  from: string;
2247
+ to: string;
1993
2248
  value: string;
1994
2249
  data: string;
1995
2250
  gasLimit: number | null;
@@ -2141,13 +2396,32 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2141
2396
  priceImpact?: string | undefined;
2142
2397
  totalFeeAmountUsd?: string | undefined;
2143
2398
  } | undefined;
2399
+ intent?: {
2400
+ protocol: "cowswap";
2401
+ order: {
2402
+ sellToken: string;
2403
+ buyToken: string;
2404
+ validTo: string | number;
2405
+ appData: string;
2406
+ appDataHash: string;
2407
+ feeAmount: string;
2408
+ kind: "sell" | "buy";
2409
+ partiallyFillable: boolean;
2410
+ receiver?: string | undefined;
2411
+ sellAmount?: string | undefined;
2412
+ buyAmount?: string | undefined;
2413
+ from?: string | undefined;
2414
+ };
2415
+ settlementContract?: string | undefined;
2416
+ relayer?: string | undefined;
2417
+ } | undefined;
2144
2418
  gasSponsored?: boolean | undefined;
2145
2419
  };
2146
2420
  estimatedProcessingTimeInSeconds: number;
2147
2421
  trade: string | {
2148
2422
  chainId: number;
2149
- to: string;
2150
2423
  from: string;
2424
+ to: string;
2151
2425
  value: string;
2152
2426
  data: string;
2153
2427
  gasLimit: number | null;
@@ -2167,8 +2441,8 @@ export declare const validateQuoteResponse: (data: unknown) => data is {
2167
2441
  };
2168
2442
  approval?: {
2169
2443
  chainId: number;
2170
- to: string;
2171
2444
  from: string;
2445
+ to: string;
2172
2446
  value: string;
2173
2447
  data: string;
2174
2448
  gasLimit: number | null;
@@ -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;AAkBD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAZnC;;;WAGG;;QAEH;;;WAGG;;;EAeH,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;EAGrC,CAAC;AAUH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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