@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.
Files changed (53) hide show
  1. package/dist/resources/generated_queries/FilterPairs.graphql +8 -0
  2. package/dist/resources/generated_queries/FilterTokens.graphql +6 -0
  3. package/dist/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  4. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
  5. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
  6. package/dist/resources/generated_queries/ListPairsForToken.graphql +4 -0
  7. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
  8. package/dist/resources/generated_queries/Token.graphql +2 -0
  9. package/dist/resources/generated_queries/Tokens.graphql +2 -0
  10. package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +10 -2
  11. package/dist/resources/graphql.d.ts +17 -0
  12. package/dist/resources/graphql.d.ts.map +1 -1
  13. package/dist/resources/graphql.js.map +1 -1
  14. package/dist/resources/graphql.schema.json +144 -0
  15. package/dist/resources/graphql.ts +19 -0
  16. package/dist/resources/schema.graphql +27 -0
  17. package/dist/sdk/Mutation.d.ts +2 -2
  18. package/dist/sdk/Mutation.js +2 -2
  19. package/dist/sdk/Query.d.ts +53 -53
  20. package/dist/sdk/Query.d.ts.map +1 -1
  21. package/dist/sdk/Query.js +53 -53
  22. package/dist/sdk/Query.js.map +1 -1
  23. package/dist/sdk/Subscribe.d.ts +12 -12
  24. package/dist/sdk/Subscribe.d.ts.map +1 -1
  25. package/dist/sdk/Subscribe.js +60 -60
  26. package/dist/sdk/Subscribe.js.map +1 -1
  27. package/dist/sdk/generated/gql.d.ts +21 -20
  28. package/dist/sdk/generated/gql.d.ts.map +1 -1
  29. package/dist/sdk/generated/gql.js +10 -10
  30. package/dist/sdk/generated/gql.js.map +1 -1
  31. package/dist/sdk/generated/graphql.d.ts +59 -0
  32. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  33. package/dist/sdk/generated/graphql.js +10 -10
  34. package/dist/sdk/generated/graphql.js.map +1 -1
  35. package/package.json +2 -2
  36. package/src/resources/generated_queries/FilterPairs.graphql +8 -0
  37. package/src/resources/generated_queries/FilterTokens.graphql +6 -0
  38. package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  39. package/src/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
  40. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
  41. package/src/resources/generated_queries/ListPairsForToken.graphql +4 -0
  42. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
  43. package/src/resources/generated_queries/Token.graphql +2 -0
  44. package/src/resources/generated_queries/Tokens.graphql +2 -0
  45. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +10 -2
  46. package/src/resources/graphql.schema.json +144 -0
  47. package/src/resources/graphql.ts +19 -0
  48. package/src/resources/schema.graphql +27 -0
  49. package/src/sdk/Mutation.ts +4 -4
  50. package/src/sdk/Query.ts +111 -111
  51. package/src/sdk/Subscribe.ts +97 -97
  52. package/src/sdk/generated/gql.ts +20 -20
  53. package/src/sdk/generated/graphql.ts +39 -19
@@ -79,6 +79,7 @@ query FilterPairs(
79
79
  networkId
80
80
  tradeUrl
81
81
  }
82
+ freezable
82
83
  id
83
84
  info {
84
85
  address
@@ -97,6 +98,7 @@ query FilterPairs(
97
98
  totalSupply
98
99
  }
99
100
  isScam
101
+ mintable
100
102
  name
101
103
  networkId
102
104
  socialLinks {
@@ -141,6 +143,7 @@ query FilterPairs(
141
143
  networkId
142
144
  tradeUrl
143
145
  }
146
+ freezable
144
147
  id
145
148
  info {
146
149
  address
@@ -159,6 +162,7 @@ query FilterPairs(
159
162
  totalSupply
160
163
  }
161
164
  isScam
165
+ mintable
162
166
  name
163
167
  networkId
164
168
  socialLinks {
@@ -214,6 +218,7 @@ query FilterPairs(
214
218
  networkId
215
219
  tradeUrl
216
220
  }
221
+ freezable
217
222
  id
218
223
  info {
219
224
  address
@@ -232,6 +237,7 @@ query FilterPairs(
232
237
  totalSupply
233
238
  }
234
239
  isScam
240
+ mintable
235
241
  name
236
242
  networkId
237
243
  socialLinks {
@@ -275,6 +281,7 @@ query FilterPairs(
275
281
  networkId
276
282
  tradeUrl
277
283
  }
284
+ freezable
278
285
  id
279
286
  info {
280
287
  address
@@ -293,6 +300,7 @@ query FilterPairs(
293
300
  totalSupply
294
301
  }
295
302
  isScam
303
+ mintable
296
304
  name
297
305
  networkId
298
306
  socialLinks {
@@ -84,6 +84,7 @@ query FilterTokens(
84
84
  networkId
85
85
  tradeUrl
86
86
  }
87
+ freezable
87
88
  id
88
89
  info {
89
90
  address
@@ -102,6 +103,7 @@ query FilterTokens(
102
103
  totalSupply
103
104
  }
104
105
  isScam
106
+ mintable
105
107
  name
106
108
  networkId
107
109
  socialLinks {
@@ -146,6 +148,7 @@ query FilterTokens(
146
148
  networkId
147
149
  tradeUrl
148
150
  }
151
+ freezable
149
152
  id
150
153
  info {
151
154
  address
@@ -164,6 +167,7 @@ query FilterTokens(
164
167
  totalSupply
165
168
  }
166
169
  isScam
170
+ mintable
167
171
  name
168
172
  networkId
169
173
  socialLinks {
@@ -214,6 +218,7 @@ query FilterTokens(
214
218
  networkId
215
219
  tradeUrl
216
220
  }
221
+ freezable
217
222
  id
218
223
  info {
219
224
  address
@@ -232,6 +237,7 @@ query FilterTokens(
232
237
  totalSupply
233
238
  }
234
239
  isScam
240
+ mintable
235
241
  name
236
242
  networkId
237
243
  socialLinks {
@@ -61,6 +61,7 @@ query GetCommunityNotes($input: CommunityNotesInput) {
61
61
  networkId
62
62
  tradeUrl
63
63
  }
64
+ freezable
64
65
  id
65
66
  info {
66
67
  address
@@ -79,6 +80,7 @@ query GetCommunityNotes($input: CommunityNotesInput) {
79
80
  totalSupply
80
81
  }
81
82
  isScam
83
+ mintable
82
84
  name
83
85
  networkId
84
86
  socialLinks {
@@ -50,6 +50,7 @@ query GetDetailedPairStats(
50
50
  networkId
51
51
  tradeUrl
52
52
  }
53
+ freezable
53
54
  id
54
55
  info {
55
56
  address
@@ -68,6 +69,7 @@ query GetDetailedPairStats(
68
69
  totalSupply
69
70
  }
70
71
  isScam
72
+ mintable
71
73
  name
72
74
  networkId
73
75
  socialLinks {
@@ -112,6 +114,7 @@ query GetDetailedPairStats(
112
114
  networkId
113
115
  tradeUrl
114
116
  }
117
+ freezable
115
118
  id
116
119
  info {
117
120
  address
@@ -130,6 +133,7 @@ query GetDetailedPairStats(
130
133
  totalSupply
131
134
  }
132
135
  isScam
136
+ mintable
133
137
  name
134
138
  networkId
135
139
  socialLinks {
@@ -34,6 +34,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
34
34
  networkId
35
35
  tradeUrl
36
36
  }
37
+ freezable
37
38
  id
38
39
  info {
39
40
  address
@@ -52,6 +53,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
52
53
  totalSupply
53
54
  }
54
55
  isScam
56
+ mintable
55
57
  name
56
58
  networkId
57
59
  socialLinks {
@@ -96,6 +98,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
96
98
  networkId
97
99
  tradeUrl
98
100
  }
101
+ freezable
99
102
  id
100
103
  info {
101
104
  address
@@ -114,6 +117,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
114
117
  totalSupply
115
118
  }
116
119
  isScam
120
+ mintable
117
121
  name
118
122
  networkId
119
123
  socialLinks {
@@ -34,6 +34,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
34
34
  networkId
35
35
  tradeUrl
36
36
  }
37
+ freezable
37
38
  id
38
39
  info {
39
40
  address
@@ -52,6 +53,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
52
53
  totalSupply
53
54
  }
54
55
  isScam
56
+ mintable
55
57
  name
56
58
  networkId
57
59
  socialLinks {
@@ -96,6 +98,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
96
98
  networkId
97
99
  tradeUrl
98
100
  }
101
+ freezable
99
102
  id
100
103
  info {
101
104
  address
@@ -114,6 +117,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
114
117
  totalSupply
115
118
  }
116
119
  isScam
120
+ mintable
117
121
  name
118
122
  networkId
119
123
  socialLinks {
@@ -27,6 +27,7 @@ query ListPairsWithMetadataForToken(
27
27
  networkId
28
28
  tradeUrl
29
29
  }
30
+ freezable
30
31
  id
31
32
  info {
32
33
  address
@@ -45,6 +46,7 @@ query ListPairsWithMetadataForToken(
45
46
  totalSupply
46
47
  }
47
48
  isScam
49
+ mintable
48
50
  name
49
51
  networkId
50
52
  socialLinks {
@@ -112,6 +114,7 @@ query ListPairsWithMetadataForToken(
112
114
  networkId
113
115
  tradeUrl
114
116
  }
117
+ freezable
115
118
  id
116
119
  info {
117
120
  address
@@ -130,6 +133,7 @@ query ListPairsWithMetadataForToken(
130
133
  totalSupply
131
134
  }
132
135
  isScam
136
+ mintable
133
137
  name
134
138
  networkId
135
139
  socialLinks {
@@ -174,6 +178,7 @@ query ListPairsWithMetadataForToken(
174
178
  networkId
175
179
  tradeUrl
176
180
  }
181
+ freezable
177
182
  id
178
183
  info {
179
184
  address
@@ -192,6 +197,7 @@ query ListPairsWithMetadataForToken(
192
197
  totalSupply
193
198
  }
194
199
  isScam
200
+ mintable
195
201
  name
196
202
  networkId
197
203
  socialLinks {
@@ -237,6 +243,7 @@ query ListPairsWithMetadataForToken(
237
243
  networkId
238
244
  tradeUrl
239
245
  }
246
+ freezable
240
247
  id
241
248
  info {
242
249
  address
@@ -255,6 +262,7 @@ query ListPairsWithMetadataForToken(
255
262
  totalSupply
256
263
  }
257
264
  isScam
265
+ mintable
258
266
  name
259
267
  networkId
260
268
  socialLinks {
@@ -17,6 +17,7 @@ query Token($input: TokenInput!) {
17
17
  networkId
18
18
  tradeUrl
19
19
  }
20
+ freezable
20
21
  id
21
22
  info {
22
23
  address
@@ -35,6 +36,7 @@ query Token($input: TokenInput!) {
35
36
  totalSupply
36
37
  }
37
38
  isScam
39
+ mintable
38
40
  name
39
41
  networkId
40
42
  socialLinks {
@@ -17,6 +17,7 @@ query Tokens($ids: [TokenInput!]) {
17
17
  networkId
18
18
  tradeUrl
19
19
  }
20
+ freezable
20
21
  id
21
22
  info {
22
23
  address
@@ -35,6 +36,7 @@ query Tokens($ids: [TokenInput!]) {
35
36
  totalSupply
36
37
  }
37
38
  isScam
39
+ mintable
38
40
  name
39
41
  networkId
40
42
  socialLinks {
@@ -1,5 +1,13 @@
1
- subscription OnPriceUpdated($address: String, $networkId: Int) {
2
- onPriceUpdated(address: $address, networkId: $networkId) {
1
+ subscription OnPriceUpdated(
2
+ $address: String
3
+ $networkId: Int
4
+ $sourcePairAddress: String
5
+ ) {
6
+ onPriceUpdated(
7
+ address: $address
8
+ networkId: $networkId
9
+ sourcePairAddress: $sourcePairAddress
10
+ ) {
3
11
  address
4
12
  confidence
5
13
  networkId
@@ -121,6 +121,10 @@ export type AddUnconfirmedEventsOutput = {
121
121
  /** The token of interest within the pair. Can be `token0` or `token1`. */
122
122
  quoteToken?: Maybe<QuoteToken>;
123
123
  };
124
+ export type AddUserAchievementInput = {
125
+ quantity: Scalars['Int']['input'];
126
+ userId: Scalars['String']['input'];
127
+ };
124
128
  export declare enum AlertRecurrence {
125
129
  Indefinite = "INDEFINITE",
126
130
  Once = "ONCE"
@@ -157,6 +161,8 @@ export type BalancesInput = {
157
161
  cursor?: InputMaybe<Scalars['String']['input']>;
158
162
  /** Optional token specifically request the balance for */
159
163
  filterToken?: InputMaybe<Scalars['String']['input']>;
164
+ /** If set to true, native tokens in the response, they will have the id: native:<networkId> */
165
+ includeNative?: InputMaybe<Scalars['Boolean']['input']>;
160
166
  /** The ID of the wallet (`walletAddress:networkId`). */
161
167
  walletId: Scalars['String']['input'];
162
168
  };
@@ -741,6 +747,8 @@ export type EnhancedToken = {
741
747
  * @deprecated Use the TokenInfo type
742
748
  */
743
749
  explorerData?: Maybe<ExplorerTokenData>;
750
+ /** Whether or not the token is freezable */
751
+ freezable?: Maybe<Scalars['String']['output']>;
744
752
  /** The ID of the token (`address:networkId`). */
745
753
  id: Scalars['String']['output'];
746
754
  /**
@@ -762,6 +770,8 @@ export type EnhancedToken = {
762
770
  info?: Maybe<TokenInfo>;
763
771
  /** Whether the token has been flagged as a scam. */
764
772
  isScam?: Maybe<Scalars['Boolean']['output']>;
773
+ /** Whether or not the token is mintable */
774
+ mintable?: Maybe<Scalars['String']['output']>;
765
775
  /** The token name. For example, `ApeCoin`. */
766
776
  name?: Maybe<Scalars['String']['output']>;
767
777
  /** The network ID the token is deployed on. */
@@ -4171,6 +4181,7 @@ export type OnBarsUpdatedResponse = {
4171
4181
  export type OnPricesUpdatedInput = {
4172
4182
  address: Scalars['String']['input'];
4173
4183
  networkId: Scalars['Int']['input'];
4184
+ sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
4174
4185
  };
4175
4186
  /** Response returned by `onBarsUpdated`. */
4176
4187
  export type OnTokenBarsUpdatedResponse = {
@@ -6082,6 +6093,9 @@ export type ReferralsPayoutData = {
6082
6093
  tokenAddressNetworkIdPaid: Scalars['String']['output'];
6083
6094
  tokenAmountPaid: Scalars['String']['output'];
6084
6095
  };
6096
+ export type RemoveUserAchievementInput = {
6097
+ userId: Scalars['String']['input'];
6098
+ };
6085
6099
  /** Price data for each supported resolution. */
6086
6100
  export type ResolutionBarData = {
6087
6101
  __typename?: 'ResolutionBarData';
@@ -6507,6 +6521,7 @@ export type SubscriptionOnPairMetadataUpdatedArgs = {
6507
6521
  export type SubscriptionOnPriceUpdatedArgs = {
6508
6522
  address?: InputMaybe<Scalars['String']['input']>;
6509
6523
  networkId?: InputMaybe<Scalars['Int']['input']>;
6524
+ sourcePairAddress?: InputMaybe<Scalars['String']['input']>;
6510
6525
  };
6511
6526
  export type SubscriptionOnPricesUpdatedArgs = {
6512
6527
  input: Array<OnPricesUpdatedInput>;
@@ -6872,6 +6887,8 @@ export type TokenFilters = {
6872
6887
  change24?: InputMaybe<NumberFilter>;
6873
6888
  /** The unix timestamp for the creation of the token's first pair. */
6874
6889
  createdAt?: InputMaybe<NumberFilter>;
6890
+ /** The address of the creator of the token */
6891
+ creatorAddress?: InputMaybe<Scalars['String']['input']>;
6875
6892
  /** The list of exchange contract addresses to filter by. */
6876
6893
  exchangeAddress?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
6877
6894
  /** 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. */