@codex-data/sdk 1.0.0-rc2 → 1.0.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.
Files changed (93) 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/GetTokenPrices.graphql +1 -0
  12. package/dist/resources/generated_queries/GetWebhooks.graphql +98 -0
  13. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  14. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  15. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  16. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  17. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  18. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  19. package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
  20. package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
  21. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  22. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  23. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  24. package/dist/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
  25. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  26. package/dist/resources/graphql.d.ts +161 -12
  27. package/dist/resources/graphql.d.ts.map +1 -1
  28. package/dist/resources/graphql.js +8 -0
  29. package/dist/resources/graphql.js.map +1 -1
  30. package/dist/resources/graphql.schema.json +1012 -118
  31. package/dist/resources/graphql.ts +169 -13
  32. package/dist/resources/mutations_override/CreateWebhooks.graphql +472 -0
  33. package/dist/resources/queries_override/GetEventLabels.graphql +35 -0
  34. package/dist/resources/queries_override/GetWebhooks.graphql +134 -0
  35. package/dist/resources/schema.graphql +230 -14
  36. package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  37. package/dist/scripts/generateGraphql.d.ts +1 -0
  38. package/dist/scripts/generateGraphql.d.ts.map +1 -1
  39. package/dist/scripts/generateGraphql.js +48 -12
  40. package/dist/scripts/generateGraphql.js.map +1 -1
  41. package/dist/sdk/Subscribe.d.ts +3 -1
  42. package/dist/sdk/Subscribe.d.ts.map +1 -1
  43. package/dist/sdk/Subscribe.js +44 -12
  44. package/dist/sdk/Subscribe.js.map +1 -1
  45. package/dist/sdk/generated/gql.d.ts +62 -46
  46. package/dist/sdk/generated/gql.d.ts.map +1 -1
  47. package/dist/sdk/generated/gql.js +25 -23
  48. package/dist/sdk/generated/gql.js.map +1 -1
  49. package/dist/sdk/generated/graphql.d.ts +2917 -68
  50. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  51. package/dist/sdk/generated/graphql.js +34 -24
  52. package/dist/sdk/generated/graphql.js.map +1 -1
  53. package/dist/sdk/index.d.ts.map +1 -1
  54. package/dist/sdk/index.js +1 -0
  55. package/dist/sdk/index.js.map +1 -1
  56. package/package.json +2 -2
  57. package/src/resources/generated_mutations/CreateWebhooks.graphql +392 -0
  58. package/src/resources/generated_queries/FilterPairs.graphql +4 -0
  59. package/src/resources/generated_queries/FilterTokens.graphql +4 -0
  60. package/src/resources/generated_queries/GetCommunityNotes.graphql +100 -0
  61. package/src/resources/generated_queries/GetEventLabels.graphql +11 -0
  62. package/src/resources/generated_queries/GetNftEvents.graphql +46 -0
  63. package/src/resources/generated_queries/GetNftPoolEvents.graphql +375 -0
  64. package/src/resources/generated_queries/GetPrimePoolEvents.graphql +118 -0
  65. package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
  66. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
  67. package/src/resources/generated_queries/GetTokenPrices.graphql +1 -0
  68. package/src/resources/generated_queries/GetWebhooks.graphql +98 -0
  69. package/src/resources/generated_queries/TokenLifecycleEvents.graphql +12 -0
  70. package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +42 -0
  71. package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  72. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +49 -0
  73. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +46 -0
  74. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +375 -0
  75. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
  76. package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
  77. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +551 -0
  78. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +49 -0
  79. package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +12 -0
  80. package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
  81. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +17 -0
  82. package/src/resources/graphql.schema.json +1012 -118
  83. package/src/resources/graphql.ts +169 -13
  84. package/src/resources/mutations_override/CreateWebhooks.graphql +472 -0
  85. package/src/resources/queries_override/GetEventLabels.graphql +35 -0
  86. package/src/resources/queries_override/GetWebhooks.graphql +134 -0
  87. package/src/resources/schema.graphql +230 -14
  88. package/src/resources/subscriptions_override/OnEventLabelCreated.graphql +22 -0
  89. package/src/scripts/generateGraphql.ts +87 -17
  90. package/src/sdk/Subscribe.ts +60 -12
  91. package/src/sdk/generated/gql.ts +56 -46
  92. package/src/sdk/generated/graphql.ts +233 -59
  93. package/src/sdk/index.ts +1 -0
@@ -8,6 +8,18 @@ query TokenLifecycleEvents(
8
8
  items {
9
9
  blockHash
10
10
  blockNumber
11
+ data {
12
+ ... on TokenBurnEventData {
13
+ amount
14
+ circulatingSupply
15
+ totalSupply
16
+ }
17
+ ... on TokenMintEventData {
18
+ amount
19
+ circulatingSupply
20
+ totalSupply
21
+ }
22
+ }
11
23
  eventType
12
24
  id
13
25
  logIndex
@@ -378,6 +378,47 @@ subscription OnBarsUpdated(
378
378
  volumeNativeToken
379
379
  }
380
380
  }
381
+ r30S {
382
+ t
383
+ token {
384
+ buyVolume
385
+ buyers
386
+ buys
387
+ c
388
+ h
389
+ l
390
+ liquidity
391
+ o
392
+ sellVolume
393
+ sellers
394
+ sells
395
+ t
396
+ traders
397
+ transactions
398
+ v
399
+ volume
400
+ volumeNativeToken
401
+ }
402
+ usd {
403
+ buyVolume
404
+ buyers
405
+ buys
406
+ c
407
+ h
408
+ l
409
+ liquidity
410
+ o
411
+ sellVolume
412
+ sellers
413
+ sells
414
+ t
415
+ traders
416
+ transactions
417
+ v
418
+ volume
419
+ volumeNativeToken
420
+ }
421
+ }
381
422
  r60 {
382
423
  t
383
424
  token {
@@ -507,6 +548,7 @@ subscription OnBarsUpdated(
507
548
  pairAddress
508
549
  pairId
509
550
  quoteToken
551
+ quoteTokenAddress
510
552
  statsType
511
553
  timestamp
512
554
  }
@@ -1,5 +1,16 @@
1
1
  subscription OnEventLabelCreated($id: String) {
2
2
  onEventLabelCreated(id: $id) {
3
+ data {
4
+ ... on FrontRunLabelData {
5
+ index
6
+ token0DrainedAmount
7
+ token1DrainedAmount
8
+ }
9
+ ... on SandwichedLabelData {
10
+ token0DrainedAmountSandwich: token0DrainedAmount
11
+ token1DrainedAmountSandwich: token1DrainedAmount
12
+ }
13
+ }
3
14
  id
4
15
  label
5
16
  logIndex
@@ -10,6 +10,55 @@ subscription OnEventsCreated(
10
10
  baseTokenPrice
11
11
  blockHash
12
12
  blockNumber
13
+ data {
14
+ ... on BurnEventData {
15
+ amount0
16
+ amount0Shifted
17
+ amount1
18
+ amount1Shifted
19
+ tickLower
20
+ tickUpper
21
+ type
22
+ }
23
+ ... on MintEventData {
24
+ amount0
25
+ amount0Shifted
26
+ amount1
27
+ amount1Shifted
28
+ tickLower
29
+ tickUpper
30
+ type
31
+ }
32
+ ... on PoolBalanceChangedEventData {
33
+ amount0
34
+ amount0Shifted
35
+ amount1
36
+ amount1Shifted
37
+ liquidity0
38
+ liquidity1
39
+ protocolFeeAmount0
40
+ protocolFeeAmount1
41
+ sender
42
+ token0
43
+ token1
44
+ type
45
+ }
46
+ ... on SwapEventData {
47
+ amount0
48
+ amount0In
49
+ amount0Out
50
+ amount1
51
+ amount1In
52
+ amount1Out
53
+ amountNonLiquidityToken
54
+ priceBaseToken
55
+ priceBaseTokenTotal
56
+ priceUsd
57
+ priceUsdTotal
58
+ tick
59
+ type
60
+ }
61
+ }
13
62
  eventDisplayType
14
63
  eventType
15
64
  id
@@ -27,6 +27,52 @@ subscription OnNftEventsCreated($address: String, $networkId: Int) {
27
27
  totalPriceNetworkBaseToken
28
28
  totalPriceUsd
29
29
  totalTradePrice
30
+ tradeOffer {
31
+ ... on NftEventNftTradeItem {
32
+ address
33
+ amount
34
+ recipient
35
+ tokenId
36
+ type
37
+ }
38
+ ... on NftEventTokenTradeItem {
39
+ address
40
+ amount
41
+ individualPriceNetworkBaseToken
42
+ individualPriceUsd
43
+ individualTradePrice
44
+ isPrice
45
+ priceError
46
+ recipient
47
+ totalPriceNetworkBaseToken
48
+ totalPriceUsd
49
+ totalTradePrice
50
+ type
51
+ }
52
+ }
53
+ tradeReceived {
54
+ ... on NftEventNftTradeItem {
55
+ address
56
+ amount
57
+ recipient
58
+ tokenId
59
+ type
60
+ }
61
+ ... on NftEventTokenTradeItem {
62
+ address
63
+ amount
64
+ individualPriceNetworkBaseToken
65
+ individualPriceUsd
66
+ individualTradePrice
67
+ isPrice
68
+ priceError
69
+ recipient
70
+ totalPriceNetworkBaseToken
71
+ totalPriceUsd
72
+ totalTradePrice
73
+ type
74
+ }
75
+ }
30
76
  transactionHash
31
77
  transactionIndex
32
78
  }
@@ -16,6 +16,381 @@ subscription OnNftPoolEventsCreated(
16
16
  blockNumber
17
17
  collectionAddress
18
18
  collectionId
19
+ data {
20
+ ... on NewPoolEventData {
21
+ assetRecipientAddress
22
+ bondingCurveAddress
23
+ bondingCurveType
24
+ buyPriceT
25
+ collectionAddress
26
+ createdAt
27
+ delta
28
+ feeAmountT
29
+ nbtRatio
30
+ networkId
31
+ nftTokenBalance
32
+ ownerAddress
33
+ poolAddress
34
+ sellPriceT
35
+ startPriceT
36
+ tokenAddress
37
+ tokenBalanceT
38
+ type
39
+ usdRatio
40
+ }
41
+ ... on NewPoolEventDataV2 {
42
+ assetRecipientAddress
43
+ bondingCurveAddress
44
+ bondingCurveType
45
+ buyPriceT
46
+ collectionAddress
47
+ createdAt
48
+ delta
49
+ feeAmountT
50
+ nbtRatio
51
+ networkId
52
+ nftAssets {
53
+ address
54
+ attributes {
55
+ class
56
+ css
57
+ displayType
58
+ maxValue
59
+ name
60
+ value
61
+ valueType
62
+ }
63
+ description
64
+ id
65
+ media {
66
+ image
67
+ processed
68
+ thumbLg
69
+ thumbSm
70
+ }
71
+ name
72
+ networkId
73
+ originalImage
74
+ quantity
75
+ rawAssetData {
76
+ animationUrl
77
+ externalUrl
78
+ imageData
79
+ imageUrl
80
+ }
81
+ tokenId
82
+ uri
83
+ }
84
+ nftTokenIds
85
+ nftTokenQuantities
86
+ ownerAddress
87
+ poolAddress
88
+ poolNftType
89
+ propertyChecker
90
+ royalties {
91
+ percent
92
+ recipient
93
+ }
94
+ sellPriceT
95
+ startPriceT
96
+ tokenAddress
97
+ tokenBalanceT
98
+ type
99
+ usdRatio
100
+ }
101
+ ... on NftPoolAssetRecipientUpdateEventData {
102
+ newAssetRecipient
103
+ type
104
+ }
105
+ ... on NftPoolDeltaUpdateEventData {
106
+ newDelta
107
+ type
108
+ }
109
+ ... on NftPoolFeeUpdateEventData {
110
+ nbtRatio
111
+ newFeeT
112
+ type
113
+ usdRatio
114
+ }
115
+ ... on NftPoolNftDepositEventData {
116
+ nftTokenBalance
117
+ nftTokenIds
118
+ tokenBalanceT
119
+ type
120
+ }
121
+ ... on NftPoolNftDepositEventDataV2 {
122
+ nftAssets {
123
+ address
124
+ attributes {
125
+ class
126
+ css
127
+ displayType
128
+ maxValue
129
+ name
130
+ value
131
+ valueType
132
+ }
133
+ description
134
+ id
135
+ media {
136
+ image
137
+ processed
138
+ thumbLg
139
+ thumbSm
140
+ }
141
+ name
142
+ networkId
143
+ originalImage
144
+ quantity
145
+ rawAssetData {
146
+ animationUrl
147
+ externalUrl
148
+ imageData
149
+ imageUrl
150
+ }
151
+ tokenId
152
+ uri
153
+ }
154
+ nftTokenAmounts
155
+ nftTokenIds
156
+ tokenBalanceT
157
+ type
158
+ }
159
+ ... on NftPoolNftWithdrawalEventData {
160
+ nftTokenBalance
161
+ nftTokenIds
162
+ tokenBalanceT
163
+ type
164
+ }
165
+ ... on NftPoolNftWithdrawalEventDataV2 {
166
+ nftAssets {
167
+ address
168
+ attributes {
169
+ class
170
+ css
171
+ displayType
172
+ maxValue
173
+ name
174
+ value
175
+ valueType
176
+ }
177
+ description
178
+ id
179
+ media {
180
+ image
181
+ processed
182
+ thumbLg
183
+ thumbSm
184
+ }
185
+ name
186
+ networkId
187
+ originalImage
188
+ quantity
189
+ rawAssetData {
190
+ animationUrl
191
+ externalUrl
192
+ imageData
193
+ imageUrl
194
+ }
195
+ tokenId
196
+ uri
197
+ }
198
+ nftTokenAmounts
199
+ nftTokenIds
200
+ tokenBalanceT
201
+ type
202
+ }
203
+ ... on NftPoolOwnershipTransferredEventDataV2 {
204
+ newOwner
205
+ type
206
+ }
207
+ ... on NftPoolSpotPriceUpdateEventData {
208
+ nbtRatio
209
+ newBuyPriceT
210
+ newSellPriceT
211
+ newSpotPriceT
212
+ type
213
+ usdRatio
214
+ }
215
+ ... on NftPoolSpotPriceUpdateEventDataV2 {
216
+ nbtRatio
217
+ newBuyPriceT
218
+ newSellPriceT
219
+ newSpotPriceT
220
+ type
221
+ usdRatio
222
+ }
223
+ ... on NftPoolTokenDepositEventData {
224
+ amountT
225
+ nbtRatio
226
+ nftTokenBalance
227
+ tokenBalanceT
228
+ type
229
+ usdRatio
230
+ }
231
+ ... on NftPoolTokenDepositEventDataV2 {
232
+ amountT
233
+ nbtRatio
234
+ tokenBalanceT
235
+ type
236
+ usdRatio
237
+ }
238
+ ... on NftPoolTokenWithdrawalEventData {
239
+ amountT
240
+ nbtRatio
241
+ nftTokenBalance
242
+ tokenBalanceT
243
+ type
244
+ usdRatio
245
+ }
246
+ ... on NftPoolTokenWithdrawalEventDataV2 {
247
+ amountT
248
+ nbtRatio
249
+ tokenBalanceT
250
+ type
251
+ usdRatio
252
+ }
253
+ ... on SwapNftInPoolEventData {
254
+ amountT
255
+ nbtRatio
256
+ newBuyPriceT
257
+ newDelta
258
+ newSellPriceT
259
+ newSpotPriceT
260
+ nftTokenBalance
261
+ nftsTransfered {
262
+ amountT
263
+ nftTokenId
264
+ }
265
+ poolFeeT
266
+ protocolFeeT
267
+ tokenBalanceT
268
+ tokenId
269
+ type
270
+ usdRatio
271
+ }
272
+ ... on SwapNftInPoolEventDataV2 {
273
+ amountT
274
+ nbtRatio
275
+ newBuyPriceT
276
+ newDelta
277
+ newSellPriceT
278
+ newSpotPriceT
279
+ nftAssets {
280
+ address
281
+ attributes {
282
+ class
283
+ css
284
+ displayType
285
+ maxValue
286
+ name
287
+ value
288
+ valueType
289
+ }
290
+ description
291
+ id
292
+ media {
293
+ image
294
+ processed
295
+ thumbLg
296
+ thumbSm
297
+ }
298
+ name
299
+ networkId
300
+ originalImage
301
+ quantity
302
+ rawAssetData {
303
+ animationUrl
304
+ externalUrl
305
+ imageData
306
+ imageUrl
307
+ }
308
+ tokenId
309
+ uri
310
+ }
311
+ nftsTransfered {
312
+ amountT
313
+ nftQuantity
314
+ nftTokenId
315
+ }
316
+ poolFeeT
317
+ protocolFeeT
318
+ tokenBalanceT
319
+ tokenId
320
+ type
321
+ usdRatio
322
+ }
323
+ ... on SwapNftOutPoolEventData {
324
+ amountT
325
+ nbtRatio
326
+ newBuyPriceT
327
+ newDelta
328
+ newSellPriceT
329
+ newSpotPriceT
330
+ nftTokenBalance
331
+ nftsTransfered {
332
+ amountT
333
+ nftTokenId
334
+ }
335
+ poolFeeT
336
+ protocolFeeT
337
+ tokenBalanceT
338
+ tokenId
339
+ type
340
+ usdRatio
341
+ }
342
+ ... on SwapNftOutPoolEventDataV2 {
343
+ amountT
344
+ nbtRatio
345
+ newBuyPriceT
346
+ newDelta
347
+ newSellPriceT
348
+ newSpotPriceT
349
+ nftAssets {
350
+ address
351
+ attributes {
352
+ class
353
+ css
354
+ displayType
355
+ maxValue
356
+ name
357
+ value
358
+ valueType
359
+ }
360
+ description
361
+ id
362
+ media {
363
+ image
364
+ processed
365
+ thumbLg
366
+ thumbSm
367
+ }
368
+ name
369
+ networkId
370
+ originalImage
371
+ quantity
372
+ rawAssetData {
373
+ animationUrl
374
+ externalUrl
375
+ imageData
376
+ imageUrl
377
+ }
378
+ tokenId
379
+ uri
380
+ }
381
+ nftsTransfered {
382
+ amountT
383
+ nftQuantity
384
+ nftTokenId
385
+ }
386
+ poolFeeT
387
+ protocolFeeT
388
+ tokenBalanceT
389
+ tokenId
390
+ type
391
+ usdRatio
392
+ }
393
+ }
19
394
  eventType
20
395
  exchangeAddress
21
396
  id
@@ -3,6 +3,7 @@ subscription OnPriceUpdated($address: String, $networkId: Int) {
3
3
  address
4
4
  confidence
5
5
  networkId
6
+ poolAddress
6
7
  priceUsd
7
8
  timestamp
8
9
  }
@@ -3,6 +3,7 @@ subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
3
3
  address
4
4
  confidence
5
5
  networkId
6
+ poolAddress
6
7
  priceUsd
7
8
  timestamp
8
9
  }