@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
@@ -0,0 +1,551 @@
1
+ subscription OnTokenBarsUpdated(
2
+ $statsType: TokenPairStatisticsType
3
+ $tokenId: String
4
+ ) {
5
+ onTokenBarsUpdated(statsType: $statsType, tokenId: $tokenId) {
6
+ aggregates {
7
+ r1 {
8
+ t
9
+ token {
10
+ buyVolume
11
+ buyers
12
+ buys
13
+ c
14
+ h
15
+ l
16
+ liquidity
17
+ o
18
+ sellVolume
19
+ sellers
20
+ sells
21
+ t
22
+ traders
23
+ transactions
24
+ v
25
+ volume
26
+ volumeNativeToken
27
+ }
28
+ usd {
29
+ buyVolume
30
+ buyers
31
+ buys
32
+ c
33
+ h
34
+ l
35
+ liquidity
36
+ o
37
+ sellVolume
38
+ sellers
39
+ sells
40
+ t
41
+ traders
42
+ transactions
43
+ v
44
+ volume
45
+ volumeNativeToken
46
+ }
47
+ }
48
+ r1D {
49
+ t
50
+ token {
51
+ buyVolume
52
+ buyers
53
+ buys
54
+ c
55
+ h
56
+ l
57
+ liquidity
58
+ o
59
+ sellVolume
60
+ sellers
61
+ sells
62
+ t
63
+ traders
64
+ transactions
65
+ v
66
+ volume
67
+ volumeNativeToken
68
+ }
69
+ usd {
70
+ buyVolume
71
+ buyers
72
+ buys
73
+ c
74
+ h
75
+ l
76
+ liquidity
77
+ o
78
+ sellVolume
79
+ sellers
80
+ sells
81
+ t
82
+ traders
83
+ transactions
84
+ v
85
+ volume
86
+ volumeNativeToken
87
+ }
88
+ }
89
+ r1S {
90
+ t
91
+ token {
92
+ buyVolume
93
+ buyers
94
+ buys
95
+ c
96
+ h
97
+ l
98
+ liquidity
99
+ o
100
+ sellVolume
101
+ sellers
102
+ sells
103
+ t
104
+ traders
105
+ transactions
106
+ v
107
+ volume
108
+ volumeNativeToken
109
+ }
110
+ usd {
111
+ buyVolume
112
+ buyers
113
+ buys
114
+ c
115
+ h
116
+ l
117
+ liquidity
118
+ o
119
+ sellVolume
120
+ sellers
121
+ sells
122
+ t
123
+ traders
124
+ transactions
125
+ v
126
+ volume
127
+ volumeNativeToken
128
+ }
129
+ }
130
+ r5 {
131
+ t
132
+ token {
133
+ buyVolume
134
+ buyers
135
+ buys
136
+ c
137
+ h
138
+ l
139
+ liquidity
140
+ o
141
+ sellVolume
142
+ sellers
143
+ sells
144
+ t
145
+ traders
146
+ transactions
147
+ v
148
+ volume
149
+ volumeNativeToken
150
+ }
151
+ usd {
152
+ buyVolume
153
+ buyers
154
+ buys
155
+ c
156
+ h
157
+ l
158
+ liquidity
159
+ o
160
+ sellVolume
161
+ sellers
162
+ sells
163
+ t
164
+ traders
165
+ transactions
166
+ v
167
+ volume
168
+ volumeNativeToken
169
+ }
170
+ }
171
+ r5S {
172
+ t
173
+ token {
174
+ buyVolume
175
+ buyers
176
+ buys
177
+ c
178
+ h
179
+ l
180
+ liquidity
181
+ o
182
+ sellVolume
183
+ sellers
184
+ sells
185
+ t
186
+ traders
187
+ transactions
188
+ v
189
+ volume
190
+ volumeNativeToken
191
+ }
192
+ usd {
193
+ buyVolume
194
+ buyers
195
+ buys
196
+ c
197
+ h
198
+ l
199
+ liquidity
200
+ o
201
+ sellVolume
202
+ sellers
203
+ sells
204
+ t
205
+ traders
206
+ transactions
207
+ v
208
+ volume
209
+ volumeNativeToken
210
+ }
211
+ }
212
+ r7D {
213
+ t
214
+ token {
215
+ buyVolume
216
+ buyers
217
+ buys
218
+ c
219
+ h
220
+ l
221
+ liquidity
222
+ o
223
+ sellVolume
224
+ sellers
225
+ sells
226
+ t
227
+ traders
228
+ transactions
229
+ v
230
+ volume
231
+ volumeNativeToken
232
+ }
233
+ usd {
234
+ buyVolume
235
+ buyers
236
+ buys
237
+ c
238
+ h
239
+ l
240
+ liquidity
241
+ o
242
+ sellVolume
243
+ sellers
244
+ sells
245
+ t
246
+ traders
247
+ transactions
248
+ v
249
+ volume
250
+ volumeNativeToken
251
+ }
252
+ }
253
+ r15 {
254
+ t
255
+ token {
256
+ buyVolume
257
+ buyers
258
+ buys
259
+ c
260
+ h
261
+ l
262
+ liquidity
263
+ o
264
+ sellVolume
265
+ sellers
266
+ sells
267
+ t
268
+ traders
269
+ transactions
270
+ v
271
+ volume
272
+ volumeNativeToken
273
+ }
274
+ usd {
275
+ buyVolume
276
+ buyers
277
+ buys
278
+ c
279
+ h
280
+ l
281
+ liquidity
282
+ o
283
+ sellVolume
284
+ sellers
285
+ sells
286
+ t
287
+ traders
288
+ transactions
289
+ v
290
+ volume
291
+ volumeNativeToken
292
+ }
293
+ }
294
+ r15S {
295
+ t
296
+ token {
297
+ buyVolume
298
+ buyers
299
+ buys
300
+ c
301
+ h
302
+ l
303
+ liquidity
304
+ o
305
+ sellVolume
306
+ sellers
307
+ sells
308
+ t
309
+ traders
310
+ transactions
311
+ v
312
+ volume
313
+ volumeNativeToken
314
+ }
315
+ usd {
316
+ buyVolume
317
+ buyers
318
+ buys
319
+ c
320
+ h
321
+ l
322
+ liquidity
323
+ o
324
+ sellVolume
325
+ sellers
326
+ sells
327
+ t
328
+ traders
329
+ transactions
330
+ v
331
+ volume
332
+ volumeNativeToken
333
+ }
334
+ }
335
+ r30 {
336
+ t
337
+ token {
338
+ buyVolume
339
+ buyers
340
+ buys
341
+ c
342
+ h
343
+ l
344
+ liquidity
345
+ o
346
+ sellVolume
347
+ sellers
348
+ sells
349
+ t
350
+ traders
351
+ transactions
352
+ v
353
+ volume
354
+ volumeNativeToken
355
+ }
356
+ usd {
357
+ buyVolume
358
+ buyers
359
+ buys
360
+ c
361
+ h
362
+ l
363
+ liquidity
364
+ o
365
+ sellVolume
366
+ sellers
367
+ sells
368
+ t
369
+ traders
370
+ transactions
371
+ v
372
+ volume
373
+ volumeNativeToken
374
+ }
375
+ }
376
+ r30S {
377
+ t
378
+ token {
379
+ buyVolume
380
+ buyers
381
+ buys
382
+ c
383
+ h
384
+ l
385
+ liquidity
386
+ o
387
+ sellVolume
388
+ sellers
389
+ sells
390
+ t
391
+ traders
392
+ transactions
393
+ v
394
+ volume
395
+ volumeNativeToken
396
+ }
397
+ usd {
398
+ buyVolume
399
+ buyers
400
+ buys
401
+ c
402
+ h
403
+ l
404
+ liquidity
405
+ o
406
+ sellVolume
407
+ sellers
408
+ sells
409
+ t
410
+ traders
411
+ transactions
412
+ v
413
+ volume
414
+ volumeNativeToken
415
+ }
416
+ }
417
+ r60 {
418
+ t
419
+ token {
420
+ buyVolume
421
+ buyers
422
+ buys
423
+ c
424
+ h
425
+ l
426
+ liquidity
427
+ o
428
+ sellVolume
429
+ sellers
430
+ sells
431
+ t
432
+ traders
433
+ transactions
434
+ v
435
+ volume
436
+ volumeNativeToken
437
+ }
438
+ usd {
439
+ buyVolume
440
+ buyers
441
+ buys
442
+ c
443
+ h
444
+ l
445
+ liquidity
446
+ o
447
+ sellVolume
448
+ sellers
449
+ sells
450
+ t
451
+ traders
452
+ transactions
453
+ v
454
+ volume
455
+ volumeNativeToken
456
+ }
457
+ }
458
+ r240 {
459
+ t
460
+ token {
461
+ buyVolume
462
+ buyers
463
+ buys
464
+ c
465
+ h
466
+ l
467
+ liquidity
468
+ o
469
+ sellVolume
470
+ sellers
471
+ sells
472
+ t
473
+ traders
474
+ transactions
475
+ v
476
+ volume
477
+ volumeNativeToken
478
+ }
479
+ usd {
480
+ buyVolume
481
+ buyers
482
+ buys
483
+ c
484
+ h
485
+ l
486
+ liquidity
487
+ o
488
+ sellVolume
489
+ sellers
490
+ sells
491
+ t
492
+ traders
493
+ transactions
494
+ v
495
+ volume
496
+ volumeNativeToken
497
+ }
498
+ }
499
+ r720 {
500
+ t
501
+ token {
502
+ buyVolume
503
+ buyers
504
+ buys
505
+ c
506
+ h
507
+ l
508
+ liquidity
509
+ o
510
+ sellVolume
511
+ sellers
512
+ sells
513
+ t
514
+ traders
515
+ transactions
516
+ v
517
+ volume
518
+ volumeNativeToken
519
+ }
520
+ usd {
521
+ buyVolume
522
+ buyers
523
+ buys
524
+ c
525
+ h
526
+ l
527
+ liquidity
528
+ o
529
+ sellVolume
530
+ sellers
531
+ sells
532
+ t
533
+ traders
534
+ transactions
535
+ v
536
+ volume
537
+ volumeNativeToken
538
+ }
539
+ }
540
+ }
541
+ eventSortKey
542
+ networkId
543
+ pairAddress
544
+ pairId
545
+ quoteToken
546
+ statsType
547
+ timestamp
548
+ tokenAddress
549
+ tokenId
550
+ }
551
+ }
@@ -5,6 +5,55 @@ subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
5
5
  baseTokenPrice
6
6
  blockHash
7
7
  blockNumber
8
+ data {
9
+ ... on BurnEventData {
10
+ amount0
11
+ amount0Shifted
12
+ amount1
13
+ amount1Shifted
14
+ tickLower
15
+ tickUpper
16
+ type
17
+ }
18
+ ... on MintEventData {
19
+ amount0
20
+ amount0Shifted
21
+ amount1
22
+ amount1Shifted
23
+ tickLower
24
+ tickUpper
25
+ type
26
+ }
27
+ ... on PoolBalanceChangedEventData {
28
+ amount0
29
+ amount0Shifted
30
+ amount1
31
+ amount1Shifted
32
+ liquidity0
33
+ liquidity1
34
+ protocolFeeAmount0
35
+ protocolFeeAmount1
36
+ sender
37
+ token0
38
+ token1
39
+ type
40
+ }
41
+ ... on SwapEventData {
42
+ amount0
43
+ amount0In
44
+ amount0Out
45
+ amount1
46
+ amount1In
47
+ amount1Out
48
+ amountNonLiquidityToken
49
+ priceBaseToken
50
+ priceBaseTokenTotal
51
+ priceUsd
52
+ priceUsdTotal
53
+ tick
54
+ type
55
+ }
56
+ }
8
57
  eventDisplayType
9
58
  eventType
10
59
  id
@@ -3,6 +3,18 @@ subscription OnTokenLifecycleEventsCreated($address: String, $networkId: Int) {
3
3
  events {
4
4
  blockHash
5
5
  blockNumber
6
+ data {
7
+ ... on TokenBurnEventData {
8
+ amount
9
+ circulatingSupply
10
+ totalSupply
11
+ }
12
+ ... on TokenMintEventData {
13
+ amount
14
+ circulatingSupply
15
+ totalSupply
16
+ }
17
+ }
6
18
  eventType
7
19
  id
8
20
  logIndex
@@ -13,6 +13,23 @@ subscription OnUnconfirmedEventsCreated(
13
13
  address
14
14
  blockHash
15
15
  blockNumber
16
+ data {
17
+ ... on UnconfirmedLiquidityChangeEventData {
18
+ amount0
19
+ amount0Shifted
20
+ amount1
21
+ amount1Shifted
22
+ type
23
+ }
24
+ ... on UnconfirmedSwapEventData {
25
+ amountNonLiquidityToken
26
+ priceBaseToken
27
+ priceBaseTokenTotal
28
+ priceUsd
29
+ priceUsdTotal
30
+ type
31
+ }
32
+ }
16
33
  eventDisplayType
17
34
  eventType
18
35
  id