@cowprotocol/cow-sdk 0.0.12 → 0.0.15-RC.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/cow/types.d.ts +11 -3
- package/dist/api/cow-subgraph/graphql.d.ts +293 -21
- package/dist/api/metadata/index.d.ts +2 -2
- package/dist/api/metadata/types.d.ts +21 -9
- package/dist/appData.schema-1fc2ae3f.js +2 -0
- package/dist/appData.schema-1fc2ae3f.js.map +1 -0
- package/dist/appData.schema-ba6f714f.js +2 -0
- package/dist/appData.schema-ba6f714f.js.map +1 -0
- package/dist/constants/index.d.ts +2 -1
- 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/context.d.ts +4 -1
- package/dist/utils/ipfs.d.ts +1 -1
- package/dist/utils/sign.d.ts +2 -1
- package/package.json +2 -2
- package/dist/appData.schema-0c8db23b.js +0 -2
- package/dist/appData.schema-0c8db23b.js.map +0 -1
- package/dist/appData.schema-412cbfbf.js +0 -2
- package/dist/appData.schema-412cbfbf.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 {};
|
|
@@ -338,7 +338,7 @@ export declare type Order = {
|
|
|
338
338
|
/** block's timestamp on invalidate event */
|
|
339
339
|
invalidateTimestamp?: Maybe<Scalars['Int']>;
|
|
340
340
|
/** Boolean value to show if the order is signed */
|
|
341
|
-
isSigned
|
|
341
|
+
isSigned?: Maybe<Scalars['Boolean']>;
|
|
342
342
|
/** Boolean value true by default unless is invalidated by the event */
|
|
343
343
|
isValid?: Maybe<Scalars['Boolean']>;
|
|
344
344
|
/** Trade's owner or presign User */
|
|
@@ -442,8 +442,16 @@ export declare type Pair = {
|
|
|
442
442
|
id: Scalars['ID'];
|
|
443
443
|
/** The token 0 address lower than token1 */
|
|
444
444
|
token0: Token;
|
|
445
|
+
/** Token0 last trade price */
|
|
446
|
+
token0Price?: Maybe<Scalars['BigDecimal']>;
|
|
447
|
+
/** Token 0 price expressed in token1 in the last trade */
|
|
448
|
+
token0relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
445
449
|
/** The token 1 address greater than token0 */
|
|
446
450
|
token1: Token;
|
|
451
|
+
/** Token1 last trade price */
|
|
452
|
+
token1Price?: Maybe<Scalars['BigDecimal']>;
|
|
453
|
+
/** Token 1 price expressed in token1 in the last trade */
|
|
454
|
+
token1relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
447
455
|
/** Total volume of token 0 traded */
|
|
448
456
|
volumeToken0?: Maybe<Scalars['BigInt']>;
|
|
449
457
|
/** Total volume of token 1 traded */
|
|
@@ -461,8 +469,16 @@ export declare type PairDaily = {
|
|
|
461
469
|
timestamp: Scalars['Int'];
|
|
462
470
|
/** The token 0 address lower than token1 */
|
|
463
471
|
token0: Token;
|
|
472
|
+
/** Token0 last trade price */
|
|
473
|
+
token0Price?: Maybe<Scalars['BigDecimal']>;
|
|
474
|
+
/** Token 0 price expressed in token1 in the last trade */
|
|
475
|
+
token0relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
464
476
|
/** The token 1 address greater than token0 */
|
|
465
477
|
token1: Token;
|
|
478
|
+
/** Token1 last trade price */
|
|
479
|
+
token1Price?: Maybe<Scalars['BigDecimal']>;
|
|
480
|
+
/** Token 1 price expressed in token1 in the last trade */
|
|
481
|
+
token1relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
466
482
|
/** Total volume of token 0 traded */
|
|
467
483
|
volumeToken0?: Maybe<Scalars['BigInt']>;
|
|
468
484
|
/** Total volume of token 1 traded */
|
|
@@ -492,6 +508,14 @@ export declare type PairDaily_Filter = {
|
|
|
492
508
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
493
509
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
494
510
|
token0?: InputMaybe<Scalars['String']>;
|
|
511
|
+
token0Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
512
|
+
token0Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
513
|
+
token0Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
514
|
+
token0Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
515
|
+
token0Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
516
|
+
token0Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
517
|
+
token0Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
518
|
+
token0Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
495
519
|
token0_contains?: InputMaybe<Scalars['String']>;
|
|
496
520
|
token0_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
497
521
|
token0_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -511,7 +535,23 @@ export declare type PairDaily_Filter = {
|
|
|
511
535
|
token0_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
512
536
|
token0_starts_with?: InputMaybe<Scalars['String']>;
|
|
513
537
|
token0_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
538
|
+
token0relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
539
|
+
token0relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
540
|
+
token0relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
541
|
+
token0relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
542
|
+
token0relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
543
|
+
token0relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
544
|
+
token0relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
545
|
+
token0relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
514
546
|
token1?: InputMaybe<Scalars['String']>;
|
|
547
|
+
token1Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
548
|
+
token1Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
549
|
+
token1Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
550
|
+
token1Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
551
|
+
token1Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
552
|
+
token1Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
553
|
+
token1Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
554
|
+
token1Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
515
555
|
token1_contains?: InputMaybe<Scalars['String']>;
|
|
516
556
|
token1_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
517
557
|
token1_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -531,6 +571,14 @@ export declare type PairDaily_Filter = {
|
|
|
531
571
|
token1_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
532
572
|
token1_starts_with?: InputMaybe<Scalars['String']>;
|
|
533
573
|
token1_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
574
|
+
token1relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
575
|
+
token1relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
576
|
+
token1relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
577
|
+
token1relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
578
|
+
token1relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
579
|
+
token1relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
580
|
+
token1relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
581
|
+
token1relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
534
582
|
volumeToken0?: InputMaybe<Scalars['BigInt']>;
|
|
535
583
|
volumeToken0_gt?: InputMaybe<Scalars['BigInt']>;
|
|
536
584
|
volumeToken0_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -568,7 +616,11 @@ export declare enum PairDaily_OrderBy {
|
|
|
568
616
|
Id = "id",
|
|
569
617
|
Timestamp = "timestamp",
|
|
570
618
|
Token0 = "token0",
|
|
619
|
+
Token0Price = "token0Price",
|
|
620
|
+
Token0relativePrice = "token0relativePrice",
|
|
571
621
|
Token1 = "token1",
|
|
622
|
+
Token1Price = "token1Price",
|
|
623
|
+
Token1relativePrice = "token1relativePrice",
|
|
572
624
|
VolumeToken0 = "volumeToken0",
|
|
573
625
|
VolumeToken1 = "volumeToken1",
|
|
574
626
|
VolumeTradedEth = "volumeTradedEth",
|
|
@@ -582,8 +634,16 @@ export declare type PairHourly = {
|
|
|
582
634
|
timestamp: Scalars['Int'];
|
|
583
635
|
/** The token 0 address lower than token1 */
|
|
584
636
|
token0: Token;
|
|
637
|
+
/** Token0 last trade price */
|
|
638
|
+
token0Price?: Maybe<Scalars['BigDecimal']>;
|
|
639
|
+
/** Token 0 price expressed in token1 in the last trade */
|
|
640
|
+
token0relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
585
641
|
/** The token 1 address greater than token0 */
|
|
586
642
|
token1: Token;
|
|
643
|
+
/** Token1 last trade price */
|
|
644
|
+
token1Price?: Maybe<Scalars['BigDecimal']>;
|
|
645
|
+
/** Token 1 price expressed in token1 in the last trade */
|
|
646
|
+
token1relativePrice?: Maybe<Scalars['BigDecimal']>;
|
|
587
647
|
/** Total volume of token 0 traded */
|
|
588
648
|
volumeToken0?: Maybe<Scalars['BigInt']>;
|
|
589
649
|
/** Total volume of token 1 traded */
|
|
@@ -613,6 +673,14 @@ export declare type PairHourly_Filter = {
|
|
|
613
673
|
timestamp_not?: InputMaybe<Scalars['Int']>;
|
|
614
674
|
timestamp_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
615
675
|
token0?: InputMaybe<Scalars['String']>;
|
|
676
|
+
token0Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
677
|
+
token0Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
678
|
+
token0Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
679
|
+
token0Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
680
|
+
token0Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
681
|
+
token0Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
682
|
+
token0Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
683
|
+
token0Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
616
684
|
token0_contains?: InputMaybe<Scalars['String']>;
|
|
617
685
|
token0_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
618
686
|
token0_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -632,7 +700,23 @@ export declare type PairHourly_Filter = {
|
|
|
632
700
|
token0_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
633
701
|
token0_starts_with?: InputMaybe<Scalars['String']>;
|
|
634
702
|
token0_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
703
|
+
token0relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
704
|
+
token0relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
705
|
+
token0relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
706
|
+
token0relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
707
|
+
token0relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
708
|
+
token0relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
709
|
+
token0relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
710
|
+
token0relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
635
711
|
token1?: InputMaybe<Scalars['String']>;
|
|
712
|
+
token1Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
713
|
+
token1Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
714
|
+
token1Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
715
|
+
token1Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
716
|
+
token1Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
717
|
+
token1Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
718
|
+
token1Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
719
|
+
token1Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
636
720
|
token1_contains?: InputMaybe<Scalars['String']>;
|
|
637
721
|
token1_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
638
722
|
token1_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -652,6 +736,14 @@ export declare type PairHourly_Filter = {
|
|
|
652
736
|
token1_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
653
737
|
token1_starts_with?: InputMaybe<Scalars['String']>;
|
|
654
738
|
token1_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
739
|
+
token1relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
740
|
+
token1relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
741
|
+
token1relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
742
|
+
token1relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
743
|
+
token1relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
744
|
+
token1relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
745
|
+
token1relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
746
|
+
token1relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
655
747
|
volumeToken0?: InputMaybe<Scalars['BigInt']>;
|
|
656
748
|
volumeToken0_gt?: InputMaybe<Scalars['BigInt']>;
|
|
657
749
|
volumeToken0_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -689,7 +781,11 @@ export declare enum PairHourly_OrderBy {
|
|
|
689
781
|
Id = "id",
|
|
690
782
|
Timestamp = "timestamp",
|
|
691
783
|
Token0 = "token0",
|
|
784
|
+
Token0Price = "token0Price",
|
|
785
|
+
Token0relativePrice = "token0relativePrice",
|
|
692
786
|
Token1 = "token1",
|
|
787
|
+
Token1Price = "token1Price",
|
|
788
|
+
Token1relativePrice = "token1relativePrice",
|
|
693
789
|
VolumeToken0 = "volumeToken0",
|
|
694
790
|
VolumeToken1 = "volumeToken1",
|
|
695
791
|
VolumeTradedEth = "volumeTradedEth",
|
|
@@ -707,6 +803,14 @@ export declare type Pair_Filter = {
|
|
|
707
803
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
708
804
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
709
805
|
token0?: InputMaybe<Scalars['String']>;
|
|
806
|
+
token0Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
807
|
+
token0Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
808
|
+
token0Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
809
|
+
token0Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
810
|
+
token0Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
811
|
+
token0Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
812
|
+
token0Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
813
|
+
token0Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
710
814
|
token0_contains?: InputMaybe<Scalars['String']>;
|
|
711
815
|
token0_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
712
816
|
token0_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -726,7 +830,23 @@ export declare type Pair_Filter = {
|
|
|
726
830
|
token0_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
727
831
|
token0_starts_with?: InputMaybe<Scalars['String']>;
|
|
728
832
|
token0_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
833
|
+
token0relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
834
|
+
token0relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
835
|
+
token0relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
836
|
+
token0relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
837
|
+
token0relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
838
|
+
token0relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
839
|
+
token0relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
840
|
+
token0relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
729
841
|
token1?: InputMaybe<Scalars['String']>;
|
|
842
|
+
token1Price?: InputMaybe<Scalars['BigDecimal']>;
|
|
843
|
+
token1Price_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
844
|
+
token1Price_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
845
|
+
token1Price_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
846
|
+
token1Price_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
847
|
+
token1Price_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
848
|
+
token1Price_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
849
|
+
token1Price_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
730
850
|
token1_contains?: InputMaybe<Scalars['String']>;
|
|
731
851
|
token1_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
732
852
|
token1_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -746,6 +866,14 @@ export declare type Pair_Filter = {
|
|
|
746
866
|
token1_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
747
867
|
token1_starts_with?: InputMaybe<Scalars['String']>;
|
|
748
868
|
token1_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
869
|
+
token1relativePrice?: InputMaybe<Scalars['BigDecimal']>;
|
|
870
|
+
token1relativePrice_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
871
|
+
token1relativePrice_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
872
|
+
token1relativePrice_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
873
|
+
token1relativePrice_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
874
|
+
token1relativePrice_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
875
|
+
token1relativePrice_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
876
|
+
token1relativePrice_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
749
877
|
volumeToken0?: InputMaybe<Scalars['BigInt']>;
|
|
750
878
|
volumeToken0_gt?: InputMaybe<Scalars['BigInt']>;
|
|
751
879
|
volumeToken0_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -782,7 +910,11 @@ export declare type Pair_Filter = {
|
|
|
782
910
|
export declare enum Pair_OrderBy {
|
|
783
911
|
Id = "id",
|
|
784
912
|
Token0 = "token0",
|
|
913
|
+
Token0Price = "token0Price",
|
|
914
|
+
Token0relativePrice = "token0relativePrice",
|
|
785
915
|
Token1 = "token1",
|
|
916
|
+
Token1Price = "token1Price",
|
|
917
|
+
Token1relativePrice = "token1relativePrice",
|
|
786
918
|
VolumeToken0 = "volumeToken0",
|
|
787
919
|
VolumeToken1 = "volumeToken1",
|
|
788
920
|
VolumeTradedEth = "volumeTradedEth",
|
|
@@ -822,6 +954,8 @@ export declare type Query = {
|
|
|
822
954
|
trades: Array<Trade>;
|
|
823
955
|
uniswapPool?: Maybe<UniswapPool>;
|
|
824
956
|
uniswapPools: Array<UniswapPool>;
|
|
957
|
+
uniswapToken?: Maybe<UniswapToken>;
|
|
958
|
+
uniswapTokens: Array<UniswapToken>;
|
|
825
959
|
user?: Maybe<User>;
|
|
826
960
|
users: Array<User>;
|
|
827
961
|
};
|
|
@@ -1038,6 +1172,20 @@ export declare type QueryUniswapPoolsArgs = {
|
|
|
1038
1172
|
subgraphError?: _SubgraphErrorPolicy_;
|
|
1039
1173
|
where?: InputMaybe<UniswapPool_Filter>;
|
|
1040
1174
|
};
|
|
1175
|
+
export declare type QueryUniswapTokenArgs = {
|
|
1176
|
+
block?: InputMaybe<Block_Height>;
|
|
1177
|
+
id: Scalars['ID'];
|
|
1178
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
1179
|
+
};
|
|
1180
|
+
export declare type QueryUniswapTokensArgs = {
|
|
1181
|
+
block?: InputMaybe<Block_Height>;
|
|
1182
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
1183
|
+
orderBy?: InputMaybe<UniswapToken_OrderBy>;
|
|
1184
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
1185
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
1186
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
1187
|
+
where?: InputMaybe<UniswapToken_Filter>;
|
|
1188
|
+
};
|
|
1041
1189
|
export declare type QueryUserArgs = {
|
|
1042
1190
|
block?: InputMaybe<Block_Height>;
|
|
1043
1191
|
id: Scalars['ID'];
|
|
@@ -1159,6 +1307,8 @@ export declare type Subscription = {
|
|
|
1159
1307
|
trades: Array<Trade>;
|
|
1160
1308
|
uniswapPool?: Maybe<UniswapPool>;
|
|
1161
1309
|
uniswapPools: Array<UniswapPool>;
|
|
1310
|
+
uniswapToken?: Maybe<UniswapToken>;
|
|
1311
|
+
uniswapTokens: Array<UniswapToken>;
|
|
1162
1312
|
user?: Maybe<User>;
|
|
1163
1313
|
users: Array<User>;
|
|
1164
1314
|
};
|
|
@@ -1375,6 +1525,20 @@ export declare type SubscriptionUniswapPoolsArgs = {
|
|
|
1375
1525
|
subgraphError?: _SubgraphErrorPolicy_;
|
|
1376
1526
|
where?: InputMaybe<UniswapPool_Filter>;
|
|
1377
1527
|
};
|
|
1528
|
+
export declare type SubscriptionUniswapTokenArgs = {
|
|
1529
|
+
block?: InputMaybe<Block_Height>;
|
|
1530
|
+
id: Scalars['ID'];
|
|
1531
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
1532
|
+
};
|
|
1533
|
+
export declare type SubscriptionUniswapTokensArgs = {
|
|
1534
|
+
block?: InputMaybe<Block_Height>;
|
|
1535
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
1536
|
+
orderBy?: InputMaybe<UniswapToken_OrderBy>;
|
|
1537
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
1538
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
1539
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
1540
|
+
where?: InputMaybe<UniswapToken_Filter>;
|
|
1541
|
+
};
|
|
1378
1542
|
export declare type SubscriptionUserArgs = {
|
|
1379
1543
|
block?: InputMaybe<Block_Height>;
|
|
1380
1544
|
id: Scalars['ID'];
|
|
@@ -1393,8 +1557,6 @@ export declare type Token = {
|
|
|
1393
1557
|
__typename?: 'Token';
|
|
1394
1558
|
/** Token address */
|
|
1395
1559
|
address: Scalars['Bytes'];
|
|
1396
|
-
/** Pools token is in that are allow listed for USD pricing */
|
|
1397
|
-
allowedPools: Array<UniswapPool>;
|
|
1398
1560
|
/** Token decimals fetched by contract call */
|
|
1399
1561
|
decimals: Scalars['Int'];
|
|
1400
1562
|
/** First token trade block timestamp */
|
|
@@ -1416,16 +1578,9 @@ export declare type Token = {
|
|
|
1416
1578
|
/** Total volume managed in CowSwap */
|
|
1417
1579
|
totalVolume?: Maybe<Scalars['BigInt']>;
|
|
1418
1580
|
/** Total volume in Eth */
|
|
1419
|
-
totalVolumeEth
|
|
1581
|
+
totalVolumeEth: Scalars['BigDecimal'];
|
|
1420
1582
|
/** Total volume in Usd */
|
|
1421
|
-
totalVolumeUsd
|
|
1422
|
-
};
|
|
1423
|
-
export declare type TokenAllowedPoolsArgs = {
|
|
1424
|
-
first?: InputMaybe<Scalars['Int']>;
|
|
1425
|
-
orderBy?: InputMaybe<UniswapPool_OrderBy>;
|
|
1426
|
-
orderDirection?: InputMaybe<OrderDirection>;
|
|
1427
|
-
skip?: InputMaybe<Scalars['Int']>;
|
|
1428
|
-
where?: InputMaybe<UniswapPool_Filter>;
|
|
1583
|
+
totalVolumeUsd: Scalars['BigDecimal'];
|
|
1429
1584
|
};
|
|
1430
1585
|
export declare type TokenHistoryArgs = {
|
|
1431
1586
|
first?: InputMaybe<Scalars['Int']>;
|
|
@@ -1848,12 +2003,6 @@ export declare type Token_Filter = {
|
|
|
1848
2003
|
address_not?: InputMaybe<Scalars['Bytes']>;
|
|
1849
2004
|
address_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
1850
2005
|
address_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
1851
|
-
allowedPools?: InputMaybe<Array<Scalars['String']>>;
|
|
1852
|
-
allowedPools_contains?: InputMaybe<Array<Scalars['String']>>;
|
|
1853
|
-
allowedPools_contains_nocase?: InputMaybe<Array<Scalars['String']>>;
|
|
1854
|
-
allowedPools_not?: InputMaybe<Array<Scalars['String']>>;
|
|
1855
|
-
allowedPools_not_contains?: InputMaybe<Array<Scalars['String']>>;
|
|
1856
|
-
allowedPools_not_contains_nocase?: InputMaybe<Array<Scalars['String']>>;
|
|
1857
2006
|
decimals?: InputMaybe<Scalars['Int']>;
|
|
1858
2007
|
decimals_gt?: InputMaybe<Scalars['Int']>;
|
|
1859
2008
|
decimals_gte?: InputMaybe<Scalars['Int']>;
|
|
@@ -1969,7 +2118,6 @@ export declare type Token_Filter = {
|
|
|
1969
2118
|
};
|
|
1970
2119
|
export declare enum Token_OrderBy {
|
|
1971
2120
|
Address = "address",
|
|
1972
|
-
AllowedPools = "allowedPools",
|
|
1973
2121
|
Decimals = "decimals",
|
|
1974
2122
|
FirstTradeTimestamp = "firstTradeTimestamp",
|
|
1975
2123
|
History = "history",
|
|
@@ -2331,11 +2479,11 @@ export declare type UniswapPool = {
|
|
|
2331
2479
|
/** Current tick */
|
|
2332
2480
|
tick?: Maybe<Scalars['BigInt']>;
|
|
2333
2481
|
/** Token0 */
|
|
2334
|
-
token0:
|
|
2482
|
+
token0: UniswapToken;
|
|
2335
2483
|
/** Token0 per token1 */
|
|
2336
2484
|
token0Price: Scalars['BigDecimal'];
|
|
2337
2485
|
/** Token1 */
|
|
2338
|
-
token1:
|
|
2486
|
+
token1: UniswapToken;
|
|
2339
2487
|
/** Token1 per token0 */
|
|
2340
2488
|
token1Price: Scalars['BigDecimal'];
|
|
2341
2489
|
/** Total token 0 across all ticks */
|
|
@@ -2454,6 +2602,130 @@ export declare enum UniswapPool_OrderBy {
|
|
|
2454
2602
|
TotalValueLockedToken0 = "totalValueLockedToken0",
|
|
2455
2603
|
TotalValueLockedToken1 = "totalValueLockedToken1"
|
|
2456
2604
|
}
|
|
2605
|
+
export declare type UniswapToken = {
|
|
2606
|
+
__typename?: 'UniswapToken';
|
|
2607
|
+
/** Token address */
|
|
2608
|
+
address: Scalars['Bytes'];
|
|
2609
|
+
/** Pools token is in that are allow listed for USD pricing */
|
|
2610
|
+
allowedPools: Array<UniswapToken>;
|
|
2611
|
+
/** Token decimals fetched by contract call */
|
|
2612
|
+
decimals: Scalars['Int'];
|
|
2613
|
+
/** Token address to hexString */
|
|
2614
|
+
id: Scalars['ID'];
|
|
2615
|
+
/** Token name fetched by ERC20 contract call */
|
|
2616
|
+
name: Scalars['String'];
|
|
2617
|
+
/** Derived price in ETH */
|
|
2618
|
+
priceEth?: Maybe<Scalars['BigDecimal']>;
|
|
2619
|
+
/** Derived price in USD */
|
|
2620
|
+
priceUsd?: Maybe<Scalars['BigDecimal']>;
|
|
2621
|
+
/** Token symbol fetched by contract call */
|
|
2622
|
+
symbol: Scalars['String'];
|
|
2623
|
+
};
|
|
2624
|
+
export declare type UniswapTokenAllowedPoolsArgs = {
|
|
2625
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
2626
|
+
orderBy?: InputMaybe<UniswapToken_OrderBy>;
|
|
2627
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
2628
|
+
skip?: InputMaybe<Scalars['Int']>;
|
|
2629
|
+
where?: InputMaybe<UniswapToken_Filter>;
|
|
2630
|
+
};
|
|
2631
|
+
export declare type UniswapToken_Filter = {
|
|
2632
|
+
/** Filter for the block changed event. */
|
|
2633
|
+
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
2634
|
+
address?: InputMaybe<Scalars['Bytes']>;
|
|
2635
|
+
address_contains?: InputMaybe<Scalars['Bytes']>;
|
|
2636
|
+
address_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
2637
|
+
address_not?: InputMaybe<Scalars['Bytes']>;
|
|
2638
|
+
address_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
2639
|
+
address_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
2640
|
+
allowedPools?: InputMaybe<Array<Scalars['String']>>;
|
|
2641
|
+
allowedPools_contains?: InputMaybe<Array<Scalars['String']>>;
|
|
2642
|
+
allowedPools_contains_nocase?: InputMaybe<Array<Scalars['String']>>;
|
|
2643
|
+
allowedPools_not?: InputMaybe<Array<Scalars['String']>>;
|
|
2644
|
+
allowedPools_not_contains?: InputMaybe<Array<Scalars['String']>>;
|
|
2645
|
+
allowedPools_not_contains_nocase?: InputMaybe<Array<Scalars['String']>>;
|
|
2646
|
+
decimals?: InputMaybe<Scalars['Int']>;
|
|
2647
|
+
decimals_gt?: InputMaybe<Scalars['Int']>;
|
|
2648
|
+
decimals_gte?: InputMaybe<Scalars['Int']>;
|
|
2649
|
+
decimals_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
2650
|
+
decimals_lt?: InputMaybe<Scalars['Int']>;
|
|
2651
|
+
decimals_lte?: InputMaybe<Scalars['Int']>;
|
|
2652
|
+
decimals_not?: InputMaybe<Scalars['Int']>;
|
|
2653
|
+
decimals_not_in?: InputMaybe<Array<Scalars['Int']>>;
|
|
2654
|
+
id?: InputMaybe<Scalars['ID']>;
|
|
2655
|
+
id_gt?: InputMaybe<Scalars['ID']>;
|
|
2656
|
+
id_gte?: InputMaybe<Scalars['ID']>;
|
|
2657
|
+
id_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
2658
|
+
id_lt?: InputMaybe<Scalars['ID']>;
|
|
2659
|
+
id_lte?: InputMaybe<Scalars['ID']>;
|
|
2660
|
+
id_not?: InputMaybe<Scalars['ID']>;
|
|
2661
|
+
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
2662
|
+
name?: InputMaybe<Scalars['String']>;
|
|
2663
|
+
name_contains?: InputMaybe<Scalars['String']>;
|
|
2664
|
+
name_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2665
|
+
name_ends_with?: InputMaybe<Scalars['String']>;
|
|
2666
|
+
name_ends_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2667
|
+
name_gt?: InputMaybe<Scalars['String']>;
|
|
2668
|
+
name_gte?: InputMaybe<Scalars['String']>;
|
|
2669
|
+
name_in?: InputMaybe<Array<Scalars['String']>>;
|
|
2670
|
+
name_lt?: InputMaybe<Scalars['String']>;
|
|
2671
|
+
name_lte?: InputMaybe<Scalars['String']>;
|
|
2672
|
+
name_not?: InputMaybe<Scalars['String']>;
|
|
2673
|
+
name_not_contains?: InputMaybe<Scalars['String']>;
|
|
2674
|
+
name_not_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2675
|
+
name_not_ends_with?: InputMaybe<Scalars['String']>;
|
|
2676
|
+
name_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2677
|
+
name_not_in?: InputMaybe<Array<Scalars['String']>>;
|
|
2678
|
+
name_not_starts_with?: InputMaybe<Scalars['String']>;
|
|
2679
|
+
name_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2680
|
+
name_starts_with?: InputMaybe<Scalars['String']>;
|
|
2681
|
+
name_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2682
|
+
priceEth?: InputMaybe<Scalars['BigDecimal']>;
|
|
2683
|
+
priceEth_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
2684
|
+
priceEth_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
2685
|
+
priceEth_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
2686
|
+
priceEth_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
2687
|
+
priceEth_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
2688
|
+
priceEth_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
2689
|
+
priceEth_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
2690
|
+
priceUsd?: InputMaybe<Scalars['BigDecimal']>;
|
|
2691
|
+
priceUsd_gt?: InputMaybe<Scalars['BigDecimal']>;
|
|
2692
|
+
priceUsd_gte?: InputMaybe<Scalars['BigDecimal']>;
|
|
2693
|
+
priceUsd_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
2694
|
+
priceUsd_lt?: InputMaybe<Scalars['BigDecimal']>;
|
|
2695
|
+
priceUsd_lte?: InputMaybe<Scalars['BigDecimal']>;
|
|
2696
|
+
priceUsd_not?: InputMaybe<Scalars['BigDecimal']>;
|
|
2697
|
+
priceUsd_not_in?: InputMaybe<Array<Scalars['BigDecimal']>>;
|
|
2698
|
+
symbol?: InputMaybe<Scalars['String']>;
|
|
2699
|
+
symbol_contains?: InputMaybe<Scalars['String']>;
|
|
2700
|
+
symbol_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2701
|
+
symbol_ends_with?: InputMaybe<Scalars['String']>;
|
|
2702
|
+
symbol_ends_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2703
|
+
symbol_gt?: InputMaybe<Scalars['String']>;
|
|
2704
|
+
symbol_gte?: InputMaybe<Scalars['String']>;
|
|
2705
|
+
symbol_in?: InputMaybe<Array<Scalars['String']>>;
|
|
2706
|
+
symbol_lt?: InputMaybe<Scalars['String']>;
|
|
2707
|
+
symbol_lte?: InputMaybe<Scalars['String']>;
|
|
2708
|
+
symbol_not?: InputMaybe<Scalars['String']>;
|
|
2709
|
+
symbol_not_contains?: InputMaybe<Scalars['String']>;
|
|
2710
|
+
symbol_not_contains_nocase?: InputMaybe<Scalars['String']>;
|
|
2711
|
+
symbol_not_ends_with?: InputMaybe<Scalars['String']>;
|
|
2712
|
+
symbol_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2713
|
+
symbol_not_in?: InputMaybe<Array<Scalars['String']>>;
|
|
2714
|
+
symbol_not_starts_with?: InputMaybe<Scalars['String']>;
|
|
2715
|
+
symbol_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2716
|
+
symbol_starts_with?: InputMaybe<Scalars['String']>;
|
|
2717
|
+
symbol_starts_with_nocase?: InputMaybe<Scalars['String']>;
|
|
2718
|
+
};
|
|
2719
|
+
export declare enum UniswapToken_OrderBy {
|
|
2720
|
+
Address = "address",
|
|
2721
|
+
AllowedPools = "allowedPools",
|
|
2722
|
+
Decimals = "decimals",
|
|
2723
|
+
Id = "id",
|
|
2724
|
+
Name = "name",
|
|
2725
|
+
PriceEth = "priceEth",
|
|
2726
|
+
PriceUsd = "priceUsd",
|
|
2727
|
+
Symbol = "symbol"
|
|
2728
|
+
}
|
|
2457
2729
|
export declare type User = {
|
|
2458
2730
|
__typename?: 'User';
|
|
2459
2731
|
/** Owner's address */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Context } from '../../utils/context';
|
|
2
|
-
import { AppDataDoc, IpfsHashInfo, MetadataDoc } from './types';
|
|
2
|
+
import { AppDataDoc, IpfsHashInfo, MetadataDoc, OptionalAppDataProperties } from './types';
|
|
3
3
|
export declare class MetadataApi {
|
|
4
4
|
context: Context;
|
|
5
5
|
constructor(context: Context);
|
|
6
|
-
generateAppDataDoc(metadata?: MetadataDoc,
|
|
6
|
+
generateAppDataDoc(metadata?: MetadataDoc, optionalProperties?: OptionalAppDataProperties): AppDataDoc;
|
|
7
7
|
decodeAppData(hash: string): Promise<void | AppDataDoc>;
|
|
8
8
|
cidToAppDataHex(ipfsHash: string): Promise<string | void>;
|
|
9
9
|
appDataHexToCid(hash: string): Promise<string | void>;
|
|
@@ -1,23 +1,35 @@
|
|
|
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
|
-
id?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type OnlyQuoteAmounts = {
|
|
9
8
|
sellAmount: string;
|
|
10
9
|
buyAmount: string;
|
|
11
|
-
|
|
10
|
+
slippageBips?: never;
|
|
11
|
+
};
|
|
12
|
+
export declare type OnlyQuoteSlippage = {
|
|
13
|
+
sellAmount?: never;
|
|
14
|
+
buyAmount?: never;
|
|
15
|
+
slippageBips: string;
|
|
16
|
+
};
|
|
17
|
+
export declare type OnlyQuoteAmountsOrSlippage = OnlyQuoteAmounts | OnlyQuoteSlippage;
|
|
18
|
+
export declare type QuoteMetadata = Metadata & OnlyQuoteAmountsOrSlippage & {
|
|
19
|
+
id?: string;
|
|
20
|
+
};
|
|
12
21
|
export declare type MetadataDoc = {
|
|
13
22
|
referrer?: ReferralMetadata;
|
|
14
23
|
quote?: QuoteMetadata;
|
|
15
24
|
};
|
|
25
|
+
export declare type OptionalAppDataProperties = {
|
|
26
|
+
appCode?: string;
|
|
27
|
+
environment?: string;
|
|
28
|
+
};
|
|
16
29
|
export declare type AppDataDoc = {
|
|
17
30
|
version: string;
|
|
18
|
-
appCode?: string;
|
|
19
31
|
metadata: MetadataDoc;
|
|
20
|
-
};
|
|
32
|
+
} & OptionalAppDataProperties;
|
|
21
33
|
export declare type IpfsHashInfo = {
|
|
22
34
|
/**
|
|
23
35
|
* IPFS's content identifier v0
|
|
@@ -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"],o="AppData Root Schema",n={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"}}}},s={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"],title:"Quote",type:"object",properties:{id:{$id:"#/definitions/quote/id",title:"Quote id",examples:["XA23443543534FF"],type:"string"},sellAmount:{$ref:"#/definitions/bigNumber",title:"Quote sell amount",deprecated:!0},buyAmount:{$ref:"#/definitions/bigNumber",title:"Quote buy amount",deprecated:!0},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"}},dependencies:{sellAmount:["buyAmount"],buyAmount:["sellAmount"]},oneOf:[{required:["slippageBips"]},{required:["sellAmount"]}]}}},d={$id:e,$schema:t,description:i,required:r,title:o,type:"object",properties:n,definitions:s};exports.$id=e,exports.$schema=t,exports.default=d,exports.definitions=s,exports.description=i,exports.properties=n,exports.required=r,exports.title=o,exports.type="object";
|
|
2
|
+
//# sourceMappingURL=appData.schema-1fc2ae3f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appData.schema-1fc2ae3f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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"],n="AppData Root Schema",o="object",s={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"],title:"Quote",type:"object",properties:{id:{$id:"#/definitions/quote/id",title:"Quote id",examples:["XA23443543534FF"],type:"string"},sellAmount:{$ref:"#/definitions/bigNumber",title:"Quote sell amount",deprecated:!0},buyAmount:{$ref:"#/definitions/bigNumber",title:"Quote buy amount",deprecated:!0},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"}},dependencies:{sellAmount:["buyAmount"],buyAmount:["sellAmount"]},oneOf:[{required:["slippageBips"]},{required:["sellAmount"]}]}}},a={$id:e,$schema:t,description:i,required:r,title:n,type:"object",properties:s,definitions:d};export{e as $id,t as $schema,a as default,d as definitions,i as description,s as properties,r as required,n as title,o as type};
|
|
2
|
+
//# sourceMappingURL=appData.schema-ba6f714f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appData.schema-ba6f714f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const GP_SETTLEMENT_CONTRACT_ADDRESS: Partial<Record<number, string>>;
|
|
2
2
|
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
3
3
|
export declare const DEFAULT_APP_DATA_HASH = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const DEFAULT_IPFS_READ_URI = "https://gnosis.mypinata.cloud/ipfs";
|
|
5
|
+
export declare const DEFAULT_IPFS_WRITE_URI = "https://api.pinata.cloud";
|