@codex-data/sdk 1.0.0 → 1.0.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/resources/generated_queries/FilterPairs.graphql +8 -0
- package/dist/resources/generated_queries/FilterTokens.graphql +6 -0
- package/dist/resources/generated_queries/GetCommunityNotes.graphql +2 -0
- package/dist/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
- package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
- package/dist/resources/generated_queries/ListPairsForToken.graphql +4 -0
- package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
- package/dist/resources/generated_queries/Token.graphql +2 -0
- package/dist/resources/generated_queries/Tokens.graphql +2 -0
- package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +10 -2
- package/dist/resources/graphql.d.ts +17 -0
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/resources/graphql.schema.json +144 -0
- package/dist/resources/graphql.ts +19 -0
- package/dist/resources/schema.graphql +27 -0
- package/dist/sdk/Mutation.d.ts +2 -2
- package/dist/sdk/Mutation.js +2 -2
- package/dist/sdk/Query.d.ts +53 -53
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +53 -53
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.d.ts +12 -12
- package/dist/sdk/Subscribe.d.ts.map +1 -1
- package/dist/sdk/Subscribe.js +60 -60
- package/dist/sdk/Subscribe.js.map +1 -1
- package/dist/sdk/generated/gql.d.ts +21 -20
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +10 -10
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +59 -0
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +10 -10
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +2 -2
- package/src/resources/generated_queries/FilterPairs.graphql +8 -0
- package/src/resources/generated_queries/FilterTokens.graphql +6 -0
- package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +4 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
- package/src/resources/generated_queries/Token.graphql +2 -0
- package/src/resources/generated_queries/Tokens.graphql +2 -0
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +10 -2
- package/src/resources/graphql.schema.json +144 -0
- package/src/resources/graphql.ts +19 -0
- package/src/resources/schema.graphql +27 -0
- package/src/sdk/Mutation.ts +4 -4
- package/src/sdk/Query.ts +111 -111
- package/src/sdk/Subscribe.ts +97 -97
- package/src/sdk/generated/gql.ts +20 -20
- package/src/sdk/generated/graphql.ts +39 -19
|
@@ -122,6 +122,10 @@ export type AddUnconfirmedEventsOutput = {
|
|
|
122
122
|
/** The token of interest within the pair. Can be `token0` or `token1`. */
|
|
123
123
|
quoteToken?: Maybe<QuoteToken>;
|
|
124
124
|
};
|
|
125
|
+
export type AddUserAchievementInput = {
|
|
126
|
+
quantity: Scalars['Int']['input'];
|
|
127
|
+
userId: Scalars['String']['input'];
|
|
128
|
+
};
|
|
125
129
|
export declare enum AlertRecurrence {
|
|
126
130
|
Indefinite = "INDEFINITE",
|
|
127
131
|
Once = "ONCE"
|
|
@@ -158,6 +162,8 @@ export type BalancesInput = {
|
|
|
158
162
|
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
159
163
|
/** Optional token specifically request the balance for */
|
|
160
164
|
filterToken?: InputMaybe<Scalars['String']['input']>;
|
|
165
|
+
/** If set to true, native tokens in the response, they will have the id: native:<networkId> */
|
|
166
|
+
includeNative?: InputMaybe<Scalars['Boolean']['input']>;
|
|
161
167
|
/** The ID of the wallet (`walletAddress:networkId`). */
|
|
162
168
|
walletId: Scalars['String']['input'];
|
|
163
169
|
};
|
|
@@ -742,6 +748,8 @@ export type EnhancedToken = {
|
|
|
742
748
|
* @deprecated Use the TokenInfo type
|
|
743
749
|
*/
|
|
744
750
|
explorerData?: Maybe<ExplorerTokenData>;
|
|
751
|
+
/** Whether or not the token is freezable */
|
|
752
|
+
freezable?: Maybe<Scalars['String']['output']>;
|
|
745
753
|
/** The ID of the token (`address:networkId`). */
|
|
746
754
|
id: Scalars['String']['output'];
|
|
747
755
|
/**
|
|
@@ -763,6 +771,8 @@ export type EnhancedToken = {
|
|
|
763
771
|
info?: Maybe<TokenInfo>;
|
|
764
772
|
/** Whether the token has been flagged as a scam. */
|
|
765
773
|
isScam?: Maybe<Scalars['Boolean']['output']>;
|
|
774
|
+
/** Whether or not the token is mintable */
|
|
775
|
+
mintable?: Maybe<Scalars['String']['output']>;
|
|
766
776
|
/** The token name. For example, `ApeCoin`. */
|
|
767
777
|
name?: Maybe<Scalars['String']['output']>;
|
|
768
778
|
/** The network ID the token is deployed on. */
|
|
@@ -4172,6 +4182,7 @@ export type OnBarsUpdatedResponse = {
|
|
|
4172
4182
|
export type OnPricesUpdatedInput = {
|
|
4173
4183
|
address: Scalars['String']['input'];
|
|
4174
4184
|
networkId: Scalars['Int']['input'];
|
|
4185
|
+
sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
|
|
4175
4186
|
};
|
|
4176
4187
|
/** Response returned by `onBarsUpdated`. */
|
|
4177
4188
|
export type OnTokenBarsUpdatedResponse = {
|
|
@@ -6083,6 +6094,9 @@ export type ReferralsPayoutData = {
|
|
|
6083
6094
|
tokenAddressNetworkIdPaid: Scalars['String']['output'];
|
|
6084
6095
|
tokenAmountPaid: Scalars['String']['output'];
|
|
6085
6096
|
};
|
|
6097
|
+
export type RemoveUserAchievementInput = {
|
|
6098
|
+
userId: Scalars['String']['input'];
|
|
6099
|
+
};
|
|
6086
6100
|
/** Price data for each supported resolution. */
|
|
6087
6101
|
export type ResolutionBarData = {
|
|
6088
6102
|
__typename?: 'ResolutionBarData';
|
|
@@ -6508,6 +6522,7 @@ export type SubscriptionOnPairMetadataUpdatedArgs = {
|
|
|
6508
6522
|
export type SubscriptionOnPriceUpdatedArgs = {
|
|
6509
6523
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
6510
6524
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
6525
|
+
sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6511
6526
|
};
|
|
6512
6527
|
export type SubscriptionOnPricesUpdatedArgs = {
|
|
6513
6528
|
input: Array<OnPricesUpdatedInput>;
|
|
@@ -6873,6 +6888,8 @@ export type TokenFilters = {
|
|
|
6873
6888
|
change24?: InputMaybe<NumberFilter>;
|
|
6874
6889
|
/** The unix timestamp for the creation of the token's first pair. */
|
|
6875
6890
|
createdAt?: InputMaybe<NumberFilter>;
|
|
6891
|
+
/** The address of the creator of the token */
|
|
6892
|
+
creatorAddress?: InputMaybe<Scalars['String']['input']>;
|
|
6876
6893
|
/** The list of exchange contract addresses to filter by. */
|
|
6877
6894
|
exchangeAddress?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
6878
6895
|
/** The list of exchange contract IDs to filter by. Applied in conjunction with `network` filter using an OR condition. When used together, the query returns results that match either the specified exchanges or the specified network. */
|
|
@@ -9435,8 +9452,10 @@ export type FilterPairsQuery = {
|
|
|
9435
9452
|
createdAt?: number | null;
|
|
9436
9453
|
creatorAddress?: string | null;
|
|
9437
9454
|
decimals: number;
|
|
9455
|
+
freezable?: string | null;
|
|
9438
9456
|
id: string;
|
|
9439
9457
|
isScam?: boolean | null;
|
|
9458
|
+
mintable?: string | null;
|
|
9440
9459
|
name?: string | null;
|
|
9441
9460
|
networkId: number;
|
|
9442
9461
|
symbol?: string | null;
|
|
@@ -9500,8 +9519,10 @@ export type FilterPairsQuery = {
|
|
|
9500
9519
|
createdAt?: number | null;
|
|
9501
9520
|
creatorAddress?: string | null;
|
|
9502
9521
|
decimals: number;
|
|
9522
|
+
freezable?: string | null;
|
|
9503
9523
|
id: string;
|
|
9504
9524
|
isScam?: boolean | null;
|
|
9525
|
+
mintable?: string | null;
|
|
9505
9526
|
name?: string | null;
|
|
9506
9527
|
networkId: number;
|
|
9507
9528
|
symbol?: string | null;
|
|
@@ -9566,8 +9587,10 @@ export type FilterPairsQuery = {
|
|
|
9566
9587
|
createdAt?: number | null;
|
|
9567
9588
|
creatorAddress?: string | null;
|
|
9568
9589
|
decimals: number;
|
|
9590
|
+
freezable?: string | null;
|
|
9569
9591
|
id: string;
|
|
9570
9592
|
isScam?: boolean | null;
|
|
9593
|
+
mintable?: string | null;
|
|
9571
9594
|
name?: string | null;
|
|
9572
9595
|
networkId: number;
|
|
9573
9596
|
symbol?: string | null;
|
|
@@ -9631,8 +9654,10 @@ export type FilterPairsQuery = {
|
|
|
9631
9654
|
createdAt?: number | null;
|
|
9632
9655
|
creatorAddress?: string | null;
|
|
9633
9656
|
decimals: number;
|
|
9657
|
+
freezable?: string | null;
|
|
9634
9658
|
id: string;
|
|
9635
9659
|
isScam?: boolean | null;
|
|
9660
|
+
mintable?: string | null;
|
|
9636
9661
|
name?: string | null;
|
|
9637
9662
|
networkId: number;
|
|
9638
9663
|
symbol?: string | null;
|
|
@@ -9796,8 +9821,10 @@ export type FilterTokensQuery = {
|
|
|
9796
9821
|
createdAt?: number | null;
|
|
9797
9822
|
creatorAddress?: string | null;
|
|
9798
9823
|
decimals: number;
|
|
9824
|
+
freezable?: string | null;
|
|
9799
9825
|
id: string;
|
|
9800
9826
|
isScam?: boolean | null;
|
|
9827
|
+
mintable?: string | null;
|
|
9801
9828
|
name?: string | null;
|
|
9802
9829
|
networkId: number;
|
|
9803
9830
|
symbol?: string | null;
|
|
@@ -9861,8 +9888,10 @@ export type FilterTokensQuery = {
|
|
|
9861
9888
|
createdAt?: number | null;
|
|
9862
9889
|
creatorAddress?: string | null;
|
|
9863
9890
|
decimals: number;
|
|
9891
|
+
freezable?: string | null;
|
|
9864
9892
|
id: string;
|
|
9865
9893
|
isScam?: boolean | null;
|
|
9894
|
+
mintable?: string | null;
|
|
9866
9895
|
name?: string | null;
|
|
9867
9896
|
networkId: number;
|
|
9868
9897
|
symbol?: string | null;
|
|
@@ -9927,8 +9956,10 @@ export type FilterTokensQuery = {
|
|
|
9927
9956
|
createdAt?: number | null;
|
|
9928
9957
|
creatorAddress?: string | null;
|
|
9929
9958
|
decimals: number;
|
|
9959
|
+
freezable?: string | null;
|
|
9930
9960
|
id: string;
|
|
9931
9961
|
isScam?: boolean | null;
|
|
9962
|
+
mintable?: string | null;
|
|
9932
9963
|
name?: string | null;
|
|
9933
9964
|
networkId: number;
|
|
9934
9965
|
symbol?: string | null;
|
|
@@ -10093,8 +10124,10 @@ export type GetCommunityNotesQuery = {
|
|
|
10093
10124
|
createdAt?: number | null;
|
|
10094
10125
|
creatorAddress?: string | null;
|
|
10095
10126
|
decimals: number;
|
|
10127
|
+
freezable?: string | null;
|
|
10096
10128
|
id: string;
|
|
10097
10129
|
isScam?: boolean | null;
|
|
10130
|
+
mintable?: string | null;
|
|
10098
10131
|
name?: string | null;
|
|
10099
10132
|
networkId: number;
|
|
10100
10133
|
symbol?: string | null;
|
|
@@ -11174,8 +11207,10 @@ export type GetDetailedPairStatsQuery = {
|
|
|
11174
11207
|
createdAt?: number | null;
|
|
11175
11208
|
creatorAddress?: string | null;
|
|
11176
11209
|
decimals: number;
|
|
11210
|
+
freezable?: string | null;
|
|
11177
11211
|
id: string;
|
|
11178
11212
|
isScam?: boolean | null;
|
|
11213
|
+
mintable?: string | null;
|
|
11179
11214
|
name?: string | null;
|
|
11180
11215
|
networkId: number;
|
|
11181
11216
|
symbol?: string | null;
|
|
@@ -11239,8 +11274,10 @@ export type GetDetailedPairStatsQuery = {
|
|
|
11239
11274
|
createdAt?: number | null;
|
|
11240
11275
|
creatorAddress?: string | null;
|
|
11241
11276
|
decimals: number;
|
|
11277
|
+
freezable?: string | null;
|
|
11242
11278
|
id: string;
|
|
11243
11279
|
isScam?: boolean | null;
|
|
11280
|
+
mintable?: string | null;
|
|
11244
11281
|
name?: string | null;
|
|
11245
11282
|
networkId: number;
|
|
11246
11283
|
symbol?: string | null;
|
|
@@ -12257,8 +12294,10 @@ export type GetDetailedPairsStatsQuery = {
|
|
|
12257
12294
|
createdAt?: number | null;
|
|
12258
12295
|
creatorAddress?: string | null;
|
|
12259
12296
|
decimals: number;
|
|
12297
|
+
freezable?: string | null;
|
|
12260
12298
|
id: string;
|
|
12261
12299
|
isScam?: boolean | null;
|
|
12300
|
+
mintable?: string | null;
|
|
12262
12301
|
name?: string | null;
|
|
12263
12302
|
networkId: number;
|
|
12264
12303
|
symbol?: string | null;
|
|
@@ -12322,8 +12361,10 @@ export type GetDetailedPairsStatsQuery = {
|
|
|
12322
12361
|
createdAt?: number | null;
|
|
12323
12362
|
creatorAddress?: string | null;
|
|
12324
12363
|
decimals: number;
|
|
12364
|
+
freezable?: string | null;
|
|
12325
12365
|
id: string;
|
|
12326
12366
|
isScam?: boolean | null;
|
|
12367
|
+
mintable?: string | null;
|
|
12327
12368
|
name?: string | null;
|
|
12328
12369
|
networkId: number;
|
|
12329
12370
|
symbol?: string | null;
|
|
@@ -15721,8 +15762,10 @@ export type ListPairsForTokenQuery = {
|
|
|
15721
15762
|
createdAt?: number | null;
|
|
15722
15763
|
creatorAddress?: string | null;
|
|
15723
15764
|
decimals: number;
|
|
15765
|
+
freezable?: string | null;
|
|
15724
15766
|
id: string;
|
|
15725
15767
|
isScam?: boolean | null;
|
|
15768
|
+
mintable?: string | null;
|
|
15726
15769
|
name?: string | null;
|
|
15727
15770
|
networkId: number;
|
|
15728
15771
|
symbol?: string | null;
|
|
@@ -15786,8 +15829,10 @@ export type ListPairsForTokenQuery = {
|
|
|
15786
15829
|
createdAt?: number | null;
|
|
15787
15830
|
creatorAddress?: string | null;
|
|
15788
15831
|
decimals: number;
|
|
15832
|
+
freezable?: string | null;
|
|
15789
15833
|
id: string;
|
|
15790
15834
|
isScam?: boolean | null;
|
|
15835
|
+
mintable?: string | null;
|
|
15791
15836
|
name?: string | null;
|
|
15792
15837
|
networkId: number;
|
|
15793
15838
|
symbol?: string | null;
|
|
@@ -15867,8 +15912,10 @@ export type ListPairsWithMetadataForTokenQuery = {
|
|
|
15867
15912
|
createdAt?: number | null;
|
|
15868
15913
|
creatorAddress?: string | null;
|
|
15869
15914
|
decimals: number;
|
|
15915
|
+
freezable?: string | null;
|
|
15870
15916
|
id: string;
|
|
15871
15917
|
isScam?: boolean | null;
|
|
15918
|
+
mintable?: string | null;
|
|
15872
15919
|
name?: string | null;
|
|
15873
15920
|
networkId: number;
|
|
15874
15921
|
symbol?: string | null;
|
|
@@ -15959,8 +16006,10 @@ export type ListPairsWithMetadataForTokenQuery = {
|
|
|
15959
16006
|
createdAt?: number | null;
|
|
15960
16007
|
creatorAddress?: string | null;
|
|
15961
16008
|
decimals: number;
|
|
16009
|
+
freezable?: string | null;
|
|
15962
16010
|
id: string;
|
|
15963
16011
|
isScam?: boolean | null;
|
|
16012
|
+
mintable?: string | null;
|
|
15964
16013
|
name?: string | null;
|
|
15965
16014
|
networkId: number;
|
|
15966
16015
|
symbol?: string | null;
|
|
@@ -16024,8 +16073,10 @@ export type ListPairsWithMetadataForTokenQuery = {
|
|
|
16024
16073
|
createdAt?: number | null;
|
|
16025
16074
|
creatorAddress?: string | null;
|
|
16026
16075
|
decimals: number;
|
|
16076
|
+
freezable?: string | null;
|
|
16027
16077
|
id: string;
|
|
16028
16078
|
isScam?: boolean | null;
|
|
16079
|
+
mintable?: string | null;
|
|
16029
16080
|
name?: string | null;
|
|
16030
16081
|
networkId: number;
|
|
16031
16082
|
symbol?: string | null;
|
|
@@ -16090,8 +16141,10 @@ export type ListPairsWithMetadataForTokenQuery = {
|
|
|
16090
16141
|
createdAt?: number | null;
|
|
16091
16142
|
creatorAddress?: string | null;
|
|
16092
16143
|
decimals: number;
|
|
16144
|
+
freezable?: string | null;
|
|
16093
16145
|
id: string;
|
|
16094
16146
|
isScam?: boolean | null;
|
|
16147
|
+
mintable?: string | null;
|
|
16095
16148
|
name?: string | null;
|
|
16096
16149
|
networkId: number;
|
|
16097
16150
|
symbol?: string | null;
|
|
@@ -16385,8 +16438,10 @@ export type TokenQuery = {
|
|
|
16385
16438
|
createdAt?: number | null;
|
|
16386
16439
|
creatorAddress?: string | null;
|
|
16387
16440
|
decimals: number;
|
|
16441
|
+
freezable?: string | null;
|
|
16388
16442
|
id: string;
|
|
16389
16443
|
isScam?: boolean | null;
|
|
16444
|
+
mintable?: string | null;
|
|
16390
16445
|
name?: string | null;
|
|
16391
16446
|
networkId: number;
|
|
16392
16447
|
symbol?: string | null;
|
|
@@ -16509,8 +16564,10 @@ export type TokensQuery = {
|
|
|
16509
16564
|
createdAt?: number | null;
|
|
16510
16565
|
creatorAddress?: string | null;
|
|
16511
16566
|
decimals: number;
|
|
16567
|
+
freezable?: string | null;
|
|
16512
16568
|
id: string;
|
|
16513
16569
|
isScam?: boolean | null;
|
|
16570
|
+
mintable?: string | null;
|
|
16514
16571
|
name?: string | null;
|
|
16515
16572
|
networkId: number;
|
|
16516
16573
|
symbol?: string | null;
|
|
@@ -18442,6 +18499,7 @@ export type OnPairMetadataUpdatedSubscription = {
|
|
|
18442
18499
|
export type OnPriceUpdatedSubscriptionVariables = Exact<{
|
|
18443
18500
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
18444
18501
|
networkId?: InputMaybe<Scalars['Int']['input']>;
|
|
18502
|
+
sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
|
|
18445
18503
|
}>;
|
|
18446
18504
|
export type OnPriceUpdatedSubscription = {
|
|
18447
18505
|
__typename?: 'Subscription';
|
|
@@ -19890,6 +19948,7 @@ export declare const OnPairMetadataUpdatedDocument: DocumentNode<OnPairMetadataU
|
|
|
19890
19948
|
export declare const OnPriceUpdatedDocument: DocumentNode<OnPriceUpdatedSubscription, Exact<{
|
|
19891
19949
|
address?: InputMaybe<string> | undefined;
|
|
19892
19950
|
networkId?: InputMaybe<number> | undefined;
|
|
19951
|
+
sourcePairAddress?: InputMaybe<string> | undefined;
|
|
19893
19952
|
}>>;
|
|
19894
19953
|
export declare const OnPricesUpdatedDocument: DocumentNode<OnPricesUpdatedSubscription, Exact<{
|
|
19895
19954
|
input: Array<OnPricesUpdatedInput> | OnPricesUpdatedInput;
|