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