@cowprotocol/cow-sdk 0.0.13 → 0.0.15-RC.1
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/dist/api/cow/types.d.ts +11 -3
- package/dist/api/cow-subgraph/graphql.d.ts +157 -0
- package/dist/api/metadata/types.d.ts +7 -9
- package/dist/appData.schema-42d10730.js +2 -0
- package/dist/appData.schema-42d10730.js.map +1 -0
- package/dist/{appData.schema-adfc1c6f.js → appData.schema-b8f018d7.js} +2 -2
- package/dist/appData.schema-b8f018d7.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +2 -2
- package/dist/index.module.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/sign.d.ts +2 -1
- package/package.json +2 -2
- package/dist/appData.schema-4c010c50.js +0 -2
- package/dist/appData.schema-4c010c50.js.map +0 -1
- package/dist/appData.schema-adfc1c6f.js.map +0 -1
package/dist/api/cow/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { GetQuoteResponse, OrderKind } from '@
|
|
1
|
+
import { GetQuoteResponse, OrderKind } from '@cowprotocol/contracts';
|
|
2
|
+
import { StrictUnion } from 'utilities';
|
|
2
3
|
import { SupportedChainId as ChainId } from '../../constants/chains';
|
|
3
4
|
import { OrderCancellation, SigningSchemeValue } from '../../utils/sign';
|
|
4
5
|
/**
|
|
@@ -61,9 +62,13 @@ export declare type OrderCancellationParams = {
|
|
|
61
62
|
export declare type GetOrdersParams = {
|
|
62
63
|
owner: string;
|
|
63
64
|
} & PaginationParams;
|
|
64
|
-
|
|
65
|
+
declare type WithOwner = {
|
|
65
66
|
owner: string;
|
|
66
|
-
}
|
|
67
|
+
};
|
|
68
|
+
declare type WithOrderId = {
|
|
69
|
+
orderId: string;
|
|
70
|
+
};
|
|
71
|
+
export declare type GetTradesParams = StrictUnion<WithOwner | WithOrderId> & PaginationParams;
|
|
67
72
|
export declare type ProfileData = {
|
|
68
73
|
totalTrades: number;
|
|
69
74
|
totalReferrals: number;
|
|
@@ -84,6 +89,7 @@ export interface FeeInformation {
|
|
|
84
89
|
export interface PriceInformation {
|
|
85
90
|
token: string;
|
|
86
91
|
amount: string | null;
|
|
92
|
+
quoteId?: number;
|
|
87
93
|
}
|
|
88
94
|
export declare type SimpleGetQuoteResponse = Pick<GetQuoteResponse, 'from'> & {
|
|
89
95
|
quote: Omit<GetQuoteResponse['quote'], 'sellAmount' | 'buyAmount' | 'feeAmount' | 'validTo'> & {
|
|
@@ -93,6 +99,7 @@ export declare type SimpleGetQuoteResponse = Pick<GetQuoteResponse, 'from'> & {
|
|
|
93
99
|
feeAmount: string;
|
|
94
100
|
};
|
|
95
101
|
expiration: string;
|
|
102
|
+
id: number | null;
|
|
96
103
|
};
|
|
97
104
|
export declare type FeeQuoteParams = Pick<OrderMetaData, 'sellToken' | 'buyToken' | 'kind'> & {
|
|
98
105
|
amount: string;
|
|
@@ -104,3 +111,4 @@ export declare type PriceQuoteParams = Omit<FeeQuoteParams, 'sellToken' | 'buyTo
|
|
|
104
111
|
baseToken: string;
|
|
105
112
|
quoteToken: string;
|
|
106
113
|
};
|
|
114
|
+
export {};
|
|
@@ -153,6 +153,7 @@ export declare type DailyTotal_Filter = {
|
|
|
153
153
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
154
154
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
155
155
|
tokens?: InputMaybe<Array<Scalars['String']>>;
|
|
156
|
+
tokens_?: InputMaybe<Token_Filter>;
|
|
156
157
|
tokens_contains?: InputMaybe<Array<Scalars['String']>>;
|
|
157
158
|
tokens_contains_nocase?: InputMaybe<Array<Scalars['String']>>;
|
|
158
159
|
tokens_not?: InputMaybe<Array<Scalars['String']>>;
|
|
@@ -288,6 +289,7 @@ export declare type HourlyTotal_Filter = {
|
|
|
288
289
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
289
290
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
290
291
|
tokens?: InputMaybe<Array<Scalars['String']>>;
|
|
292
|
+
tokens_?: InputMaybe<Token_Filter>;
|
|
291
293
|
tokens_contains?: InputMaybe<Array<Scalars['String']>>;
|
|
292
294
|
tokens_contains_nocase?: InputMaybe<Array<Scalars['String']>>;
|
|
293
295
|
tokens_not?: InputMaybe<Array<Scalars['String']>>;
|
|
@@ -390,6 +392,7 @@ export declare type Order_Filter = {
|
|
|
390
392
|
isValid_not?: InputMaybe<Scalars['Boolean']>;
|
|
391
393
|
isValid_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
392
394
|
owner?: InputMaybe<Scalars['String']>;
|
|
395
|
+
owner_?: InputMaybe<User_Filter>;
|
|
393
396
|
owner_contains?: InputMaybe<Scalars['String']>;
|
|
394
397
|
owner_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
395
398
|
owner_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -425,6 +428,7 @@ export declare type Order_Filter = {
|
|
|
425
428
|
tradesTimestamp_lte?: InputMaybe<Scalars['Int']>;
|
|
426
429
|
tradesTimestamp_not?: InputMaybe<Scalars['Int']>;
|
|
427
430
|
tradesTimestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
431
|
+
trades_?: InputMaybe<Trade_Filter>;
|
|
428
432
|
};
|
|
429
433
|
export declare enum Order_OrderBy {
|
|
430
434
|
Id = "id",
|
|
@@ -442,8 +446,16 @@ export declare type Pair = {
|
|
|
442
446
|
id: Scalars['ID'];
|
|
443
447
|
/** The token 0 address lower than token1 */
|
|
444
448
|
token0: Token;
|
|
449
|
+
/** Token0 last trade price */
|
|
450
|
+
token0Price?: Maybe<Scalars['BigDecimal']>;
|
|
451
|
+
/** Token 0 price expressed in token1 in the last trade */
|
|
452
|
+
token0relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
445
453
|
/** The token 1 address greater than token0 */
|
|
446
454
|
token1: Token;
|
|
455
|
+
/** Token1 last trade price */
|
|
456
|
+
token1Price?: Maybe<Scalars['BigDecimal']>;
|
|
457
|
+
/** Token 1 price expressed in token1 in the last trade */
|
|
458
|
+
token1relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
447
459
|
/** Total volume of token 0 traded */
|
|
448
460
|
volumeToken0?: Maybe<Scalars['BigInt']>;
|
|
449
461
|
/** Total volume of token 1 traded */
|
|
@@ -461,8 +473,16 @@ export declare type PairDaily = {
|
|
|
461
473
|
timestamp: Scalars['Int'];
|
|
462
474
|
/** The token 0 address lower than token1 */
|
|
463
475
|
token0: Token;
|
|
476
|
+
/** Token0 last trade price */
|
|
477
|
+
token0Price?: Maybe<Scalars['BigDecimal']>;
|
|
478
|
+
/** Token 0 price expressed in token1 in the last trade */
|
|
479
|
+
token0relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
464
480
|
/** The token 1 address greater than token0 */
|
|
465
481
|
token1: Token;
|
|
482
|
+
/** Token1 last trade price */
|
|
483
|
+
token1Price?: Maybe<Scalars['BigDecimal']>;
|
|
484
|
+
/** Token 1 price expressed in token1 in the last trade */
|
|
485
|
+
token1relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
466
486
|
/** Total volume of token 0 traded */
|
|
467
487
|
volumeToken0?: Maybe<Scalars['BigInt']>;
|
|
468
488
|
/** Total volume of token 1 traded */
|
|
@@ -492,6 +512,15 @@ export declare type PairDaily_Filter = {
|
|
|
492
512
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
493
513
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
494
514
|
token0?: InputMaybe<Scalars['String']>;
|
|
515
|
+
token0Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
516
|
+
token0Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
517
|
+
token0Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
518
|
+
token0Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
519
|
+
token0Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
520
|
+
token0Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
521
|
+
token0Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
522
|
+
token0Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
523
|
+
token0_?: InputMaybe<Token_Filter>;
|
|
495
524
|
token0_contains?: InputMaybe<Scalars['String']>;
|
|
496
525
|
token0_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
497
526
|
token0_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -511,7 +540,24 @@ export declare type PairDaily_Filter = {
|
|
|
511
540
|
token0_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
512
541
|
token0_starts_with?: InputMaybe<Scalars['String']>;
|
|
513
542
|
token0_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
543
|
+
token0relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
544
|
+
token0relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
545
|
+
token0relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
546
|
+
token0relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
547
|
+
token0relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
548
|
+
token0relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
549
|
+
token0relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
550
|
+
token0relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
514
551
|
token1?: InputMaybe<Scalars['String']>;
|
|
552
|
+
token1Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
553
|
+
token1Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
554
|
+
token1Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
555
|
+
token1Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
556
|
+
token1Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
557
|
+
token1Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
558
|
+
token1Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
559
|
+
token1Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
560
|
+
token1_?: InputMaybe<Token_Filter>;
|
|
515
561
|
token1_contains?: InputMaybe<Scalars['String']>;
|
|
516
562
|
token1_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
517
563
|
token1_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -531,6 +577,14 @@ export declare type PairDaily_Filter = {
|
|
|
531
577
|
token1_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
532
578
|
token1_starts_with?: InputMaybe<Scalars['String']>;
|
|
533
579
|
token1_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
580
|
+
token1relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
581
|
+
token1relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
582
|
+
token1relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
583
|
+
token1relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
584
|
+
token1relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
585
|
+
token1relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
586
|
+
token1relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
587
|
+
token1relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
534
588
|
volumeToken0?: InputMaybe<Scalars['BigInt']>;
|
|
535
589
|
volumeToken0_gt?: InputMaybe<Scalars['BigInt']>;
|
|
536
590
|
volumeToken0_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -568,7 +622,11 @@ export declare enum PairDaily_OrderBy {
|
|
|
568
622
|
Id = "id",
|
|
569
623
|
Timestamp = "timestamp",
|
|
570
624
|
Token0 = "token0",
|
|
625
|
+
Token0Price = "token0Price",
|
|
626
|
+
Token0relativePrice = "token0relativePrice",
|
|
571
627
|
Token1 = "token1",
|
|
628
|
+
Token1Price = "token1Price",
|
|
629
|
+
Token1relativePrice = "token1relativePrice",
|
|
572
630
|
VolumeToken0 = "volumeToken0",
|
|
573
631
|
VolumeToken1 = "volumeToken1",
|
|
574
632
|
VolumeTradedEth = "volumeTradedEth",
|
|
@@ -582,8 +640,16 @@ export declare type PairHourly = {
|
|
|
582
640
|
timestamp: Scalars['Int'];
|
|
583
641
|
/** The token 0 address lower than token1 */
|
|
584
642
|
token0: Token;
|
|
643
|
+
/** Token0 last trade price */
|
|
644
|
+
token0Price?: Maybe<Scalars['BigDecimal']>;
|
|
645
|
+
/** Token 0 price expressed in token1 in the last trade */
|
|
646
|
+
token0relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
585
647
|
/** The token 1 address greater than token0 */
|
|
586
648
|
token1: Token;
|
|
649
|
+
/** Token1 last trade price */
|
|
650
|
+
token1Price?: Maybe<Scalars['BigDecimal']>;
|
|
651
|
+
/** Token 1 price expressed in token1 in the last trade */
|
|
652
|
+
token1relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
587
653
|
/** Total volume of token 0 traded */
|
|
588
654
|
volumeToken0?: Maybe<Scalars['BigInt']>;
|
|
589
655
|
/** Total volume of token 1 traded */
|
|
@@ -613,6 +679,15 @@ export declare type PairHourly_Filter = {
|
|
|
613
679
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
614
680
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
615
681
|
token0?: InputMaybe<Scalars['String']>;
|
|
682
|
+
token0Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
683
|
+
token0Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
684
|
+
token0Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
685
|
+
token0Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
686
|
+
token0Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
687
|
+
token0Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
688
|
+
token0Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
689
|
+
token0Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
690
|
+
token0_?: InputMaybe<Token_Filter>;
|
|
616
691
|
token0_contains?: InputMaybe<Scalars['String']>;
|
|
617
692
|
token0_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
618
693
|
token0_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -632,7 +707,24 @@ export declare type PairHourly_Filter = {
|
|
|
632
707
|
token0_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
633
708
|
token0_starts_with?: InputMaybe<Scalars['String']>;
|
|
634
709
|
token0_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
710
|
+
token0relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
711
|
+
token0relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
712
|
+
token0relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
713
|
+
token0relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
714
|
+
token0relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
715
|
+
token0relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
716
|
+
token0relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
717
|
+
token0relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
635
718
|
token1?: InputMaybe<Scalars['String']>;
|
|
719
|
+
token1Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
720
|
+
token1Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
721
|
+
token1Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
722
|
+
token1Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
723
|
+
token1Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
724
|
+
token1Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
725
|
+
token1Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
726
|
+
token1Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
727
|
+
token1_?: InputMaybe<Token_Filter>;
|
|
636
728
|
token1_contains?: InputMaybe<Scalars['String']>;
|
|
637
729
|
token1_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
638
730
|
token1_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -652,6 +744,14 @@ export declare type PairHourly_Filter = {
|
|
|
652
744
|
token1_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
653
745
|
token1_starts_with?: InputMaybe<Scalars['String']>;
|
|
654
746
|
token1_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
747
|
+
token1relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
748
|
+
token1relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
749
|
+
token1relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
750
|
+
token1relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
751
|
+
token1relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
752
|
+
token1relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
753
|
+
token1relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
754
|
+
token1relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
655
755
|
volumeToken0?: InputMaybe<Scalars['BigInt']>;
|
|
656
756
|
volumeToken0_gt?: InputMaybe<Scalars['BigInt']>;
|
|
657
757
|
volumeToken0_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -689,7 +789,11 @@ export declare enum PairHourly_OrderBy {
|
|
|
689
789
|
Id = "id",
|
|
690
790
|
Timestamp = "timestamp",
|
|
691
791
|
Token0 = "token0",
|
|
792
|
+
Token0Price = "token0Price",
|
|
793
|
+
Token0relativePrice = "token0relativePrice",
|
|
692
794
|
Token1 = "token1",
|
|
795
|
+
Token1Price = "token1Price",
|
|
796
|
+
Token1relativePrice = "token1relativePrice",
|
|
693
797
|
VolumeToken0 = "volumeToken0",
|
|
694
798
|
VolumeToken1 = "volumeToken1",
|
|
695
799
|
VolumeTradedEth = "volumeTradedEth",
|
|
@@ -707,6 +811,15 @@ export declare type Pair_Filter = {
|
|
|
707
811
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
708
812
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
709
813
|
token0?: InputMaybe<Scalars['String']>;
|
|
814
|
+
token0Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
815
|
+
token0Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
816
|
+
token0Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
817
|
+
token0Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
818
|
+
token0Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
819
|
+
token0Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
820
|
+
token0Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
821
|
+
token0Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
822
|
+
token0_?: InputMaybe<Token_Filter>;
|
|
710
823
|
token0_contains?: InputMaybe<Scalars['String']>;
|
|
711
824
|
token0_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
712
825
|
token0_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -726,7 +839,24 @@ export declare type Pair_Filter = {
|
|
|
726
839
|
token0_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
727
840
|
token0_starts_with?: InputMaybe<Scalars['String']>;
|
|
728
841
|
token0_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
842
|
+
token0relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
843
|
+
token0relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
844
|
+
token0relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
845
|
+
token0relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
846
|
+
token0relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
847
|
+
token0relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
848
|
+
token0relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
849
|
+
token0relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
729
850
|
token1?: InputMaybe<Scalars['String']>;
|
|
851
|
+
token1Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
852
|
+
token1Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
853
|
+
token1Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
854
|
+
token1Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
855
|
+
token1Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
856
|
+
token1Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
857
|
+
token1Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
858
|
+
token1Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
859
|
+
token1_?: InputMaybe<Token_Filter>;
|
|
730
860
|
token1_contains?: InputMaybe<Scalars['String']>;
|
|
731
861
|
token1_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
732
862
|
token1_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -746,6 +876,14 @@ export declare type Pair_Filter = {
|
|
|
746
876
|
token1_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
747
877
|
token1_starts_with?: InputMaybe<Scalars['String']>;
|
|
748
878
|
token1_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
879
|
+
token1relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
880
|
+
token1relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
881
|
+
token1relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
882
|
+
token1relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
883
|
+
token1relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
884
|
+
token1relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
885
|
+
token1relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
886
|
+
token1relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
749
887
|
volumeToken0?: InputMaybe<Scalars['BigInt']>;
|
|
750
888
|
volumeToken0_gt?: InputMaybe<Scalars['BigInt']>;
|
|
751
889
|
volumeToken0_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -782,7 +920,11 @@ export declare type Pair_Filter = {
|
|
|
782
920
|
export declare enum Pair_OrderBy {
|
|
783
921
|
Id = "id",
|
|
784
922
|
Token0 = "token0",
|
|
923
|
+
Token0Price = "token0Price",
|
|
924
|
+
Token0relativePrice = "token0relativePrice",
|
|
785
925
|
Token1 = "token1",
|
|
926
|
+
Token1Price = "token1Price",
|
|
927
|
+
Token1relativePrice = "token1relativePrice",
|
|
786
928
|
VolumeToken0 = "volumeToken0",
|
|
787
929
|
VolumeToken1 = "volumeToken1",
|
|
788
930
|
VolumeTradedEth = "volumeTradedEth",
|
|
@@ -1108,6 +1250,7 @@ export declare type Settlement_Filter = {
|
|
|
1108
1250
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
1109
1251
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
1110
1252
|
solver?: InputMaybe<Scalars['String']>;
|
|
1253
|
+
solver_?: InputMaybe<User_Filter>;
|
|
1111
1254
|
solver_contains?: InputMaybe<Scalars['String']>;
|
|
1112
1255
|
solver_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
1113
1256
|
solver_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -1127,6 +1270,7 @@ export declare type Settlement_Filter = {
|
|
|
1127
1270
|
solver_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
1128
1271
|
solver_starts_with?: InputMaybe<Scalars['String']>;
|
|
1129
1272
|
solver_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
1273
|
+
trades_?: InputMaybe<Trade_Filter>;
|
|
1130
1274
|
txHash?: InputMaybe<Scalars['Bytes']>;
|
|
1131
1275
|
txHash_contains?: InputMaybe<Scalars['Bytes']>;
|
|
1132
1276
|
txHash_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
@@ -1544,6 +1688,7 @@ export declare type TokenDailyTotal_Filter = {
|
|
|
1544
1688
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
1545
1689
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
1546
1690
|
token?: InputMaybe<Scalars['String']>;
|
|
1691
|
+
token_?: InputMaybe<Token_Filter>;
|
|
1547
1692
|
token_contains?: InputMaybe<Scalars['String']>;
|
|
1548
1693
|
token_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
1549
1694
|
token_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -1697,6 +1842,7 @@ export declare type TokenHourlyTotal_Filter = {
|
|
|
1697
1842
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
1698
1843
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
1699
1844
|
token?: InputMaybe<Scalars['String']>;
|
|
1845
|
+
token_?: InputMaybe<Token_Filter>;
|
|
1700
1846
|
token_contains?: InputMaybe<Scalars['String']>;
|
|
1701
1847
|
token_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
1702
1848
|
token_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -1814,6 +1960,7 @@ export declare type TokenTradingEvent_Filter = {
|
|
|
1814
1960
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
1815
1961
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
1816
1962
|
token?: InputMaybe<Scalars['String']>;
|
|
1963
|
+
token_?: InputMaybe<Token_Filter>;
|
|
1817
1964
|
token_contains?: InputMaybe<Scalars['String']>;
|
|
1818
1965
|
token_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
1819
1966
|
token_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -1834,6 +1981,7 @@ export declare type TokenTradingEvent_Filter = {
|
|
|
1834
1981
|
token_starts_with?: InputMaybe<Scalars['String']>;
|
|
1835
1982
|
token_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
1836
1983
|
trade?: InputMaybe<Scalars['String']>;
|
|
1984
|
+
trade_?: InputMaybe<Trade_Filter>;
|
|
1837
1985
|
trade_contains?: InputMaybe<Scalars['String']>;
|
|
1838
1986
|
trade_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
1839
1987
|
trade_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -1887,6 +2035,7 @@ export declare type Token_Filter = {
|
|
|
1887
2035
|
firstTradeTimestamp_lte?: InputMaybe<Scalars['Int']>;
|
|
1888
2036
|
firstTradeTimestamp_not?: InputMaybe<Scalars['Int']>;
|
|
1889
2037
|
firstTradeTimestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
2038
|
+
history_?: InputMaybe<TokenTradingEvent_Filter>;
|
|
1890
2039
|
id?: InputMaybe<Scalars['ID']>;
|
|
1891
2040
|
id_gt?: InputMaybe<Scalars['ID']>;
|
|
1892
2041
|
id_gte?: InputMaybe<Scalars['ID']>;
|
|
@@ -2179,6 +2328,7 @@ export declare type Trade_Filter = {
|
|
|
2179
2328
|
buyAmount_not?: InputMaybe<Scalars['BigInt']>;
|
|
2180
2329
|
buyAmount_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
|
|
2181
2330
|
buyToken?: InputMaybe<Scalars['String']>;
|
|
2331
|
+
buyToken_?: InputMaybe<Token_Filter>;
|
|
2182
2332
|
buyToken_contains?: InputMaybe<Scalars['String']>;
|
|
2183
2333
|
buyToken_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2184
2334
|
buyToken_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -2223,6 +2373,7 @@ export declare type Trade_Filter = {
|
|
|
2223
2373
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
2224
2374
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
2225
2375
|
order?: InputMaybe<Scalars['String']>;
|
|
2376
|
+
order_?: InputMaybe<Order_Filter>;
|
|
2226
2377
|
order_contains?: InputMaybe<Scalars['String']>;
|
|
2227
2378
|
order_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2228
2379
|
order_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -2267,6 +2418,7 @@ export declare type Trade_Filter = {
|
|
|
2267
2418
|
sellAmount_not?: InputMaybe<Scalars['BigInt']>;
|
|
2268
2419
|
sellAmount_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
|
|
2269
2420
|
sellToken?: InputMaybe<Scalars['String']>;
|
|
2421
|
+
sellToken_?: InputMaybe<Token_Filter>;
|
|
2270
2422
|
sellToken_contains?: InputMaybe<Scalars['String']>;
|
|
2271
2423
|
sellToken_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2272
2424
|
sellToken_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -2287,6 +2439,7 @@ export declare type Trade_Filter = {
|
|
|
2287
2439
|
sellToken_starts_with?: InputMaybe<Scalars['String']>;
|
|
2288
2440
|
sellToken_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2289
2441
|
settlement?: InputMaybe<Scalars['String']>;
|
|
2442
|
+
settlement_?: InputMaybe<Settlement_Filter>;
|
|
2290
2443
|
settlement_contains?: InputMaybe<Scalars['String']>;
|
|
2291
2444
|
settlement_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2292
2445
|
settlement_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -2395,6 +2548,7 @@ export declare type UniswapPool_Filter = {
|
|
|
2395
2548
|
token0Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
2396
2549
|
token0Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
2397
2550
|
token0Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
2551
|
+
token0_?: InputMaybe<UniswapToken_Filter>;
|
|
2398
2552
|
token0_contains?: InputMaybe<Scalars['String']>;
|
|
2399
2553
|
token0_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2400
2554
|
token0_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -2423,6 +2577,7 @@ export declare type UniswapPool_Filter = {
|
|
|
2423
2577
|
token1Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
2424
2578
|
token1Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
2425
2579
|
token1Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
2580
|
+
token1_?: InputMaybe<UniswapToken_Filter>;
|
|
2426
2581
|
token1_contains?: InputMaybe<Scalars['String']>;
|
|
2427
2582
|
token1_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2428
2583
|
token1_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -2506,6 +2661,7 @@ export declare type UniswapToken_Filter = {
|
|
|
2506
2661
|
address_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
2507
2662
|
address_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
2508
2663
|
allowedPools?: InputMaybe<Array<Scalars['String']>>;
|
|
2664
|
+
allowedPools_?: InputMaybe<UniswapToken_Filter>;
|
|
2509
2665
|
allowedPools_contains?: InputMaybe<Array<Scalars['String']>>;
|
|
2510
2666
|
allowedPools_contains_nocase?: InputMaybe<Array<Scalars['String']>>;
|
|
2511
2667
|
allowedPools_not?: InputMaybe<Array<Scalars['String']>>;
|
|
@@ -2661,6 +2817,7 @@ export declare type User_Filter = {
|
|
|
2661
2817
|
numberOfTrades_lte?: InputMaybe<Scalars['Int']>;
|
|
2662
2818
|
numberOfTrades_not?: InputMaybe<Scalars['Int']>;
|
|
2663
2819
|
numberOfTrades_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
2820
|
+
ordersPlaced_?: InputMaybe<Order_Filter>;
|
|
2664
2821
|
solvedAmountEth?: InputMaybe<Scalars['BigDecimal']>;
|
|
2665
2822
|
solvedAmountEth_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
2666
2823
|
solvedAmountEth_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
declare type Metadata = {
|
|
2
2
|
version: string;
|
|
3
|
-
}
|
|
4
|
-
export
|
|
3
|
+
};
|
|
4
|
+
export declare type ReferralMetadata = Metadata & {
|
|
5
5
|
address: string;
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
buyAmount: string;
|
|
11
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export declare type QuoteMetadata = Metadata & {
|
|
8
|
+
slippageBips: string;
|
|
9
|
+
};
|
|
12
10
|
export declare type MetadataDoc = {
|
|
13
11
|
referrer?: ReferralMetadata;
|
|
14
12
|
quote?: QuoteMetadata;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e="https://cowswap.exchange/appdata.schema.json",t="http://json-schema.org/draft-07/schema",i="Metadata JSON document for adding information to orders.",r=["version","metadata"],s="AppData Root Schema",o={version:{$id:"#/properties/version",description:"Semantic versioning of document",examples:["1.0.0","1.2.3"],title:"Semantic Versioning",type:"string"},appCode:{$id:"#/properties/appCode",description:"The code identifying the CLI, UI, service generating the order.",examples:["CowSwap"],title:"App Code",type:"string"},environment:{$id:"#/properties/environment",description:"Environment from which the order came from",title:"Environment",type:"string",examples:["production","development","staging","ens"]},metadata:{$id:"#/properties/metadata",default:{},description:"Each metadata will specify one aspect of the order.",required:[],title:"Metadata descriptors",type:"object",properties:{referrer:{$ref:"#/definitions/kindMetadata/referrer"},quote:{$ref:"#/definitions/kindMetadata/quote"}}}},n={version:{$id:"#/definitions/version",description:"Semantic versioning of document",examples:["1.0.0","1.2.3"],title:"Semantic Versioning",type:"string"},ethereumAddress:{$id:"#/definitions/ethereumAddress",pattern:"^0x[a-fA-F0-9]{40}$",title:"Ethereum compatible address",examples:["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],type:"string"},bigNumber:{$id:"#/definitions/bigNumber",pattern:"^\\d+$",title:"BigNumber",examples:["90741097240912730913, 0, 75891372"],type:"string"},kindMetadata:{referrer:{$id:"#/definitions/referrer",required:["version","address"],title:"Referrer",type:"object",properties:{version:{$ref:"#/definitions/version"},address:{$ref:"#/definitions/ethereumAddress",title:"Referrer address"}}},quote:{$id:"#/definitions/quote",required:["version","slippageBips"],title:"Quote",type:"object",properties:{version:{$ref:"#/definitions/version"},slippageBips:{$id:"#/definitions/quote/slippageBips",title:"Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BIPS)",examples:["5","10","20","100"],pattern:"^\\d+(\\.\\d+)?$",type:"string"}}}}},d={$id:e,$schema:t,description:i,required:r,title:s,type:"object",properties:o,definitions:n};exports.$id=e,exports.$schema=t,exports.default=d,exports.definitions=n,exports.description=i,exports.properties=o,exports.required=r,exports.title=s,exports.type="object";
|
|
2
|
+
//# sourceMappingURL=appData.schema-42d10730.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appData.schema-42d10730.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e="https://cowswap.exchange/appdata.schema.json",t="http://json-schema.org/draft-07/schema",i="Metadata JSON document for adding information to orders.",r=["version","metadata"],n="AppData Root Schema",
|
|
2
|
-
//# sourceMappingURL=appData.schema-
|
|
1
|
+
var e="https://cowswap.exchange/appdata.schema.json",t="http://json-schema.org/draft-07/schema",i="Metadata JSON document for adding information to orders.",r=["version","metadata"],n="AppData Root Schema",s="object",o={version:{$id:"#/properties/version",description:"Semantic versioning of document",examples:["1.0.0","1.2.3"],title:"Semantic Versioning",type:"string"},appCode:{$id:"#/properties/appCode",description:"The code identifying the CLI, UI, service generating the order.",examples:["CowSwap"],title:"App Code",type:"string"},environment:{$id:"#/properties/environment",description:"Environment from which the order came from",title:"Environment",type:"string",examples:["production","development","staging","ens"]},metadata:{$id:"#/properties/metadata",default:{},description:"Each metadata will specify one aspect of the order.",required:[],title:"Metadata descriptors",type:"object",properties:{referrer:{$ref:"#/definitions/kindMetadata/referrer"},quote:{$ref:"#/definitions/kindMetadata/quote"}}}},d={version:{$id:"#/definitions/version",description:"Semantic versioning of document",examples:["1.0.0","1.2.3"],title:"Semantic Versioning",type:"string"},ethereumAddress:{$id:"#/definitions/ethereumAddress",pattern:"^0x[a-fA-F0-9]{40}$",title:"Ethereum compatible address",examples:["0xb6BAd41ae76A11D10f7b0E664C5007b908bC77C9"],type:"string"},bigNumber:{$id:"#/definitions/bigNumber",pattern:"^\\d+$",title:"BigNumber",examples:["90741097240912730913, 0, 75891372"],type:"string"},kindMetadata:{referrer:{$id:"#/definitions/referrer",required:["version","address"],title:"Referrer",type:"object",properties:{version:{$ref:"#/definitions/version"},address:{$ref:"#/definitions/ethereumAddress",title:"Referrer address"}}},quote:{$id:"#/definitions/quote",required:["version","slippageBips"],title:"Quote",type:"object",properties:{version:{$ref:"#/definitions/version"},slippageBips:{$id:"#/definitions/quote/slippageBips",title:"Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BIPS)",examples:["5","10","20","100"],pattern:"^\\d+(\\.\\d+)?$",type:"string"}}}}},a={$id:e,$schema:t,description:i,required:r,title:n,type:"object",properties:o,definitions:d};export{e as $id,t as $schema,a as default,d as definitions,i as description,o as properties,r as required,n as title,s as type};
|
|
2
|
+
//# sourceMappingURL=appData.schema-b8f018d7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appData.schema-b8f018d7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|