@codex-data/sdk 1.0.0-rc2 → 1.0.0-rc3

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 (85) hide show
  1. package/dist/resources/generated_mutations/CreateWebhooks.graphql +392 -0
  2. package/dist/resources/generated_queries/FilterPairs.graphql +4 -0
  3. package/dist/resources/generated_queries/FilterTokens.graphql +4 -0
  4. package/dist/resources/generated_queries/GetCommunityNotes.graphql +100 -0
  5. package/dist/resources/generated_queries/GetEventLabels.graphql +11 -0
  6. package/dist/resources/generated_queries/GetNftEvents.graphql +46 -0
  7. package/dist/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
  8. package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
  9. package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
  10. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
  11. package/dist/resources/generated_queries/GetWebhooks.graphql +98 -0
  12. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  13. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  14. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  15. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  16. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  17. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  18. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  19. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  20. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  21. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  22. package/dist/resources/graphql.d.ts +94 -12
  23. package/dist/resources/graphql.d.ts.map +1 -1
  24. package/dist/resources/graphql.js +8 -0
  25. package/dist/resources/graphql.js.map +1 -1
  26. package/dist/resources/graphql.schema.json +606 -117
  27. package/dist/resources/graphql.ts +97 -13
  28. package/dist/resources/mutations_override/CreateWebhooks.graphql +472 -0
  29. package/dist/resources/queries_override/GetEventLabels.graphql +35 -0
  30. package/dist/resources/queries_override/GetWebhooks.graphql +134 -0
  31. package/dist/resources/schema.graphql +137 -13
  32. package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  33. package/dist/scripts/generateGraphql.d.ts +1 -0
  34. package/dist/scripts/generateGraphql.d.ts.map +1 -1
  35. package/dist/scripts/generateGraphql.js +48 -12
  36. package/dist/scripts/generateGraphql.js.map +1 -1
  37. package/dist/sdk/Subscribe.d.ts +2 -1
  38. package/dist/sdk/Subscribe.d.ts.map +1 -1
  39. package/dist/sdk/Subscribe.js +35 -10
  40. package/dist/sdk/Subscribe.js.map +1 -1
  41. package/dist/sdk/generated/gql.d.ts +48 -40
  42. package/dist/sdk/generated/gql.d.ts.map +1 -1
  43. package/dist/sdk/generated/gql.js +21 -20
  44. package/dist/sdk/generated/gql.js.map +1 -1
  45. package/dist/sdk/generated/graphql.d.ts +2842 -147
  46. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  47. package/dist/sdk/generated/graphql.js +30 -21
  48. package/dist/sdk/generated/graphql.js.map +1 -1
  49. package/dist/sdk/index.d.ts.map +1 -1
  50. package/dist/sdk/index.js +1 -0
  51. package/dist/sdk/index.js.map +1 -1
  52. package/package.json +1 -1
  53. package/src/resources/generated_mutations/CreateWebhooks.graphql +392 -0
  54. package/src/resources/generated_queries/FilterPairs.graphql +4 -0
  55. package/src/resources/generated_queries/FilterTokens.graphql +4 -0
  56. package/src/resources/generated_queries/GetCommunityNotes.graphql +100 -0
  57. package/src/resources/generated_queries/GetEventLabels.graphql +11 -0
  58. package/src/resources/generated_queries/GetNftEvents.graphql +46 -0
  59. package/src/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
  60. package/src/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
  61. package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
  62. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
  63. package/src/resources/generated_queries/GetWebhooks.graphql +98 -0
  64. package/src/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  65. package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  66. package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  67. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  68. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  69. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  70. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  71. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  72. package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  73. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  74. package/src/resources/graphql.schema.json +606 -117
  75. package/src/resources/graphql.ts +97 -13
  76. package/src/resources/mutations_override/CreateWebhooks.graphql +472 -0
  77. package/src/resources/queries_override/GetEventLabels.graphql +35 -0
  78. package/src/resources/queries_override/GetWebhooks.graphql +134 -0
  79. package/src/resources/schema.graphql +137 -13
  80. package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  81. package/src/scripts/generateGraphql.ts +87 -17
  82. package/src/sdk/Subscribe.ts +43 -10
  83. package/src/sdk/generated/gql.ts +45 -40
  84. package/src/sdk/generated/graphql.ts +146 -53
  85. package/src/sdk/index.ts +1 -0
@@ -5,6 +5,104 @@ mutation CreateWebhooks($input: CreateWebhooksInput!) {
5
5
  bucketId
6
6
  bucketSortkey
7
7
  callbackUrl
8
+ conditions {
9
+ ... on NftEventWebhookCondition {
10
+ contractAddress {
11
+ eq
12
+ }
13
+ eventType {
14
+ eq
15
+ }
16
+ exchangeAddress {
17
+ eq
18
+ }
19
+ fillSource {
20
+ oneOf
21
+ }
22
+ ignoreTransfers
23
+ individualBaseTokenPrice {
24
+ eq
25
+ gt
26
+ gte
27
+ lt
28
+ lte
29
+ }
30
+ maker {
31
+ eq
32
+ }
33
+ networkId {
34
+ oneOf
35
+ }
36
+ nftTokenAddress: tokenAddress {
37
+ eq
38
+ }
39
+ tokenId {
40
+ eq
41
+ }
42
+ }
43
+ ... on PriceEventWebhookCondition {
44
+ priceNetworkId: networkId {
45
+ eq
46
+ }
47
+ priceUsd {
48
+ eq
49
+ gt
50
+ gte
51
+ lt
52
+ lte
53
+ }
54
+ priceTokenAddress: tokenAddress {
55
+ eq
56
+ }
57
+ }
58
+ ... on RawTransactionWebhookCondition {
59
+ from {
60
+ eq
61
+ }
62
+ ignoreNftEvents
63
+ ignoreTokenPairEvents
64
+ input {
65
+ contains
66
+ notContains
67
+ }
68
+ networkId {
69
+ oneOf
70
+ }
71
+ to {
72
+ eq
73
+ }
74
+ toOrFrom {
75
+ eq
76
+ }
77
+ }
78
+ ... on TokenPairEventWebhookCondition {
79
+ eventType {
80
+ oneOf
81
+ }
82
+ exchangeAddress {
83
+ eq
84
+ }
85
+ maker {
86
+ eq
87
+ }
88
+ networkId {
89
+ oneOf
90
+ }
91
+ pairAddress {
92
+ eq
93
+ }
94
+ swapValue {
95
+ eq
96
+ gt
97
+ gte
98
+ lt
99
+ lte
100
+ }
101
+ tokenAddress {
102
+ eq
103
+ }
104
+ }
105
+ }
8
106
  created
9
107
  groupId
10
108
  id
@@ -24,6 +122,104 @@ mutation CreateWebhooks($input: CreateWebhooksInput!) {
24
122
  bucketId
25
123
  bucketSortkey
26
124
  callbackUrl
125
+ conditions {
126
+ ... on NftEventWebhookCondition {
127
+ contractAddress {
128
+ eq
129
+ }
130
+ eventType {
131
+ eq
132
+ }
133
+ exchangeAddress {
134
+ eq
135
+ }
136
+ fillSource {
137
+ oneOf
138
+ }
139
+ ignoreTransfers
140
+ individualBaseTokenPrice {
141
+ eq
142
+ gt
143
+ gte
144
+ lt
145
+ lte
146
+ }
147
+ maker {
148
+ eq
149
+ }
150
+ networkId {
151
+ oneOf
152
+ }
153
+ nftTokenAddress: tokenAddress {
154
+ eq
155
+ }
156
+ tokenId {
157
+ eq
158
+ }
159
+ }
160
+ ... on PriceEventWebhookCondition {
161
+ priceNetworkId: networkId {
162
+ eq
163
+ }
164
+ priceUsd {
165
+ eq
166
+ gt
167
+ gte
168
+ lt
169
+ lte
170
+ }
171
+ priceTokenAddress: tokenAddress {
172
+ eq
173
+ }
174
+ }
175
+ ... on RawTransactionWebhookCondition {
176
+ from {
177
+ eq
178
+ }
179
+ ignoreNftEvents
180
+ ignoreTokenPairEvents
181
+ input {
182
+ contains
183
+ notContains
184
+ }
185
+ networkId {
186
+ oneOf
187
+ }
188
+ to {
189
+ eq
190
+ }
191
+ toOrFrom {
192
+ eq
193
+ }
194
+ }
195
+ ... on TokenPairEventWebhookCondition {
196
+ eventType {
197
+ oneOf
198
+ }
199
+ exchangeAddress {
200
+ eq
201
+ }
202
+ maker {
203
+ eq
204
+ }
205
+ networkId {
206
+ oneOf
207
+ }
208
+ pairAddress {
209
+ eq
210
+ }
211
+ swapValue {
212
+ eq
213
+ gt
214
+ gte
215
+ lt
216
+ lte
217
+ }
218
+ tokenAddress {
219
+ eq
220
+ }
221
+ }
222
+ }
27
223
  created
28
224
  groupId
29
225
  id
@@ -43,6 +239,104 @@ mutation CreateWebhooks($input: CreateWebhooksInput!) {
43
239
  bucketId
44
240
  bucketSortkey
45
241
  callbackUrl
242
+ conditions {
243
+ ... on NftEventWebhookCondition {
244
+ contractAddress {
245
+ eq
246
+ }
247
+ eventType {
248
+ eq
249
+ }
250
+ exchangeAddress {
251
+ eq
252
+ }
253
+ fillSource {
254
+ oneOf
255
+ }
256
+ ignoreTransfers
257
+ individualBaseTokenPrice {
258
+ eq
259
+ gt
260
+ gte
261
+ lt
262
+ lte
263
+ }
264
+ maker {
265
+ eq
266
+ }
267
+ networkId {
268
+ oneOf
269
+ }
270
+ tokenAddress {
271
+ eq
272
+ }
273
+ tokenId {
274
+ eq
275
+ }
276
+ }
277
+ ... on PriceEventWebhookCondition {
278
+ priceEventNetworkId: networkId {
279
+ eq
280
+ }
281
+ priceUsd {
282
+ eq
283
+ gt
284
+ gte
285
+ lt
286
+ lte
287
+ }
288
+ priceEventTokenAddress: tokenAddress {
289
+ eq
290
+ }
291
+ }
292
+ ... on RawTransactionWebhookCondition {
293
+ from {
294
+ eq
295
+ }
296
+ ignoreNftEvents
297
+ ignoreTokenPairEvents
298
+ input {
299
+ contains
300
+ notContains
301
+ }
302
+ networkId {
303
+ oneOf
304
+ }
305
+ to {
306
+ eq
307
+ }
308
+ toOrFrom {
309
+ eq
310
+ }
311
+ }
312
+ ... on TokenPairEventWebhookCondition {
313
+ eventType {
314
+ oneOf
315
+ }
316
+ exchangeAddress {
317
+ eq
318
+ }
319
+ maker {
320
+ eq
321
+ }
322
+ networkId {
323
+ oneOf
324
+ }
325
+ pairAddress {
326
+ eq
327
+ }
328
+ swapValue {
329
+ eq
330
+ gt
331
+ gte
332
+ lt
333
+ lte
334
+ }
335
+ tokenAddress {
336
+ eq
337
+ }
338
+ }
339
+ }
46
340
  created
47
341
  groupId
48
342
  id
@@ -62,6 +356,104 @@ mutation CreateWebhooks($input: CreateWebhooksInput!) {
62
356
  bucketId
63
357
  bucketSortkey
64
358
  callbackUrl
359
+ conditions {
360
+ ... on NftEventWebhookCondition {
361
+ contractAddress {
362
+ eq
363
+ }
364
+ eventType {
365
+ eq
366
+ }
367
+ exchangeAddress {
368
+ eq
369
+ }
370
+ fillSource {
371
+ oneOf
372
+ }
373
+ ignoreTransfers
374
+ individualBaseTokenPrice {
375
+ eq
376
+ gt
377
+ gte
378
+ lt
379
+ lte
380
+ }
381
+ maker {
382
+ eq
383
+ }
384
+ networkId {
385
+ oneOf
386
+ }
387
+ tokenAddress {
388
+ eq
389
+ }
390
+ tokenId {
391
+ eq
392
+ }
393
+ }
394
+ ... on PriceEventWebhookCondition {
395
+ priceEventNetworkId: networkId {
396
+ eq
397
+ }
398
+ priceUsd {
399
+ eq
400
+ gt
401
+ gte
402
+ lt
403
+ lte
404
+ }
405
+ priceEventTokenAddress: tokenAddress {
406
+ eq
407
+ }
408
+ }
409
+ ... on RawTransactionWebhookCondition {
410
+ from {
411
+ eq
412
+ }
413
+ ignoreNftEvents
414
+ ignoreTokenPairEvents
415
+ input {
416
+ contains
417
+ notContains
418
+ }
419
+ networkId {
420
+ oneOf
421
+ }
422
+ to {
423
+ eq
424
+ }
425
+ toOrFrom {
426
+ eq
427
+ }
428
+ }
429
+ ... on TokenPairEventWebhookCondition {
430
+ eventType {
431
+ oneOf
432
+ }
433
+ exchangeAddress {
434
+ eq
435
+ }
436
+ maker {
437
+ eq
438
+ }
439
+ networkId {
440
+ oneOf
441
+ }
442
+ pairAddress {
443
+ eq
444
+ }
445
+ swapValue {
446
+ eq
447
+ gt
448
+ gte
449
+ lt
450
+ lte
451
+ }
452
+ tokenAddress {
453
+ eq
454
+ }
455
+ }
456
+ }
65
457
  created
66
458
  groupId
67
459
  id
@@ -334,6 +334,10 @@ query FilterPairs(
334
334
  uniqueTransactions4
335
335
  uniqueTransactions12
336
336
  uniqueTransactions24
337
+ volumeChange1
338
+ volumeChange4
339
+ volumeChange12
340
+ volumeChange24
337
341
  volumeUSD1
338
342
  volumeUSD4
339
343
  volumeUSD12
@@ -277,6 +277,10 @@ query FilterTokens(
277
277
  volume4
278
278
  volume12
279
279
  volume24
280
+ volumeChange1
281
+ volumeChange4
282
+ volumeChange12
283
+ volumeChange24
280
284
  }
281
285
  }
282
286
  }
@@ -5,6 +5,106 @@ query GetCommunityNotes($input: CommunityNotesInput) {
5
5
  items {
6
6
  address
7
7
  contractType
8
+ currentContract {
9
+ ... on EnhancedNftContract {
10
+ address
11
+ description
12
+ ercType
13
+ id
14
+ image
15
+ labels {
16
+ createdAt
17
+ subType
18
+ type
19
+ }
20
+ name
21
+ networkId
22
+ socialLinks {
23
+ bitcointalk
24
+ blog
25
+ coingecko
26
+ coinmarketcap
27
+ discord
28
+ email
29
+ facebook
30
+ github
31
+ instagram
32
+ linkedin
33
+ reddit
34
+ slack
35
+ telegram
36
+ twitch
37
+ twitter
38
+ website
39
+ wechat
40
+ whitepaper
41
+ youtube
42
+ }
43
+ symbol
44
+ totalSupply
45
+ }
46
+ ... on EnhancedToken {
47
+ address
48
+ cmcId
49
+ createBlockNumber
50
+ createTransactionHash
51
+ createdAt
52
+ creatorAddress
53
+ decimals
54
+ exchanges {
55
+ address
56
+ color
57
+ exchangeVersion
58
+ iconUrl
59
+ id
60
+ name
61
+ networkId
62
+ tradeUrl
63
+ }
64
+ id
65
+ info {
66
+ address
67
+ circulatingSupply
68
+ cmcId
69
+ description
70
+ id
71
+ imageBannerUrl
72
+ imageLargeUrl
73
+ imageSmallUrl
74
+ imageThumbUrl
75
+ isScam
76
+ name
77
+ networkId
78
+ symbol
79
+ totalSupply
80
+ }
81
+ isScam
82
+ name
83
+ networkId
84
+ socialLinks {
85
+ bitcointalk
86
+ blog
87
+ coingecko
88
+ coinmarketcap
89
+ discord
90
+ email
91
+ facebook
92
+ github
93
+ instagram
94
+ linkedin
95
+ reddit
96
+ slack
97
+ telegram
98
+ twitch
99
+ twitter
100
+ website
101
+ wechat
102
+ whitepaper
103
+ youtube
104
+ }
105
+ symbol
106
+ }
107
+ }
8
108
  currentData
9
109
  id
10
110
  moderatedAt
@@ -12,6 +12,17 @@ query GetEventLabels(
12
12
  ) {
13
13
  cursor
14
14
  items {
15
+ data {
16
+ ... on FrontRunLabelData {
17
+ index
18
+ token0DrainedAmountFrontRun: token0DrainedAmount
19
+ token1DrainedAmountFrontRun: token1DrainedAmount
20
+ }
21
+ ... on SandwichedLabelData {
22
+ token0DrainedAmount
23
+ token1DrainedAmount
24
+ }
25
+ }
15
26
  id
16
27
  label
17
28
  logIndex
@@ -47,6 +47,52 @@ query GetNftEvents(
47
47
  totalPriceNetworkBaseToken
48
48
  totalPriceUsd
49
49
  totalTradePrice
50
+ tradeOffer {
51
+ ... on NftEventNftTradeItem {
52
+ address
53
+ amount
54
+ recipient
55
+ tokenId
56
+ type
57
+ }
58
+ ... on NftEventTokenTradeItem {
59
+ address
60
+ amount
61
+ individualPriceNetworkBaseToken
62
+ individualPriceUsd
63
+ individualTradePrice
64
+ isPrice
65
+ priceError
66
+ recipient
67
+ totalPriceNetworkBaseToken
68
+ totalPriceUsd
69
+ totalTradePrice
70
+ type
71
+ }
72
+ }
73
+ tradeReceived {
74
+ ... on NftEventNftTradeItem {
75
+ address
76
+ amount
77
+ recipient
78
+ tokenId
79
+ type
80
+ }
81
+ ... on NftEventTokenTradeItem {
82
+ address
83
+ amount
84
+ individualPriceNetworkBaseToken
85
+ individualPriceUsd
86
+ individualTradePrice
87
+ isPrice
88
+ priceError
89
+ recipient
90
+ totalPriceNetworkBaseToken
91
+ totalPriceUsd
92
+ totalTradePrice
93
+ type
94
+ }
95
+ }
50
96
  transactionHash
51
97
  transactionIndex
52
98
  }