@codex-data/sdk 1.0.9 → 1.0.11

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 (87) hide show
  1. package/dist/resources/graphql.d.ts +177 -681
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +67 -79
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/sdk/Mutation.d.ts +2 -2
  6. package/dist/sdk/Mutation.d.ts.map +1 -1
  7. package/dist/sdk/Mutation.js +2 -2
  8. package/dist/sdk/Mutation.js.map +1 -1
  9. package/dist/sdk/Query.d.ts +57 -52
  10. package/dist/sdk/Query.d.ts.map +1 -1
  11. package/dist/sdk/Query.js +56 -51
  12. package/dist/sdk/Query.js.map +1 -1
  13. package/dist/sdk/Subscribe.d.ts +17 -18
  14. package/dist/sdk/Subscribe.d.ts.map +1 -1
  15. package/dist/sdk/Subscribe.js +126 -133
  16. package/dist/sdk/Subscribe.js.map +1 -1
  17. package/dist/sdk/generated/gql.d.ts +135 -104
  18. package/dist/sdk/generated/gql.d.ts.map +1 -1
  19. package/dist/sdk/generated/gql.js +44 -40
  20. package/dist/sdk/generated/gql.js.map +1 -1
  21. package/dist/sdk/generated/graphql.d.ts +1612 -1103
  22. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  23. package/dist/sdk/generated/graphql.js +113 -121
  24. package/dist/sdk/generated/graphql.js.map +1 -1
  25. package/dist/sdk/index.d.ts +45 -0
  26. package/dist/sdk/index.d.ts.map +1 -1
  27. package/dist/sdk/index.js +83 -5
  28. package/dist/sdk/index.js.map +1 -1
  29. package/dist/sdk/index.test.js +232 -7
  30. package/dist/sdk/index.test.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/resources/generated_queries/Balances.graphql +15 -0
  33. package/src/resources/generated_queries/DetailedWalletStats.graphql +4 -0
  34. package/src/resources/generated_queries/FilterNetworkWallets.graphql +57 -0
  35. package/src/resources/generated_queries/FilterNftPoolCollections.graphql +8 -0
  36. package/src/resources/generated_queries/FilterNftPools.graphql +7 -0
  37. package/src/resources/generated_queries/FilterPairs.graphql +60 -0
  38. package/src/resources/generated_queries/FilterTokenWallets.graphql +16 -0
  39. package/src/resources/generated_queries/FilterTokens.graphql +47 -0
  40. package/src/resources/generated_queries/FilterWallets.graphql +1 -0
  41. package/src/resources/generated_queries/GetBars.graphql +31 -0
  42. package/src/resources/generated_queries/GetCommunityNotes.graphql +16 -0
  43. package/src/resources/generated_queries/GetDetailedPairStats.graphql +30 -0
  44. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +30 -0
  45. package/src/resources/generated_queries/GetDetailedStats.graphql +338 -0
  46. package/src/resources/generated_queries/GetLatestPairs.graphql +57 -0
  47. package/src/resources/generated_queries/GetLatestTokens.graphql +39 -0
  48. package/src/resources/generated_queries/GetNftEvents.graphql +9 -0
  49. package/src/resources/generated_queries/GetNftPool.graphql +2 -0
  50. package/src/resources/generated_queries/GetNftPoolCollection.graphql +8 -0
  51. package/src/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +8 -0
  52. package/src/resources/generated_queries/GetNftPoolEvents.graphql +2 -0
  53. package/src/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +2 -0
  54. package/src/resources/generated_queries/GetNftPoolsByOwner.graphql +2 -0
  55. package/src/resources/generated_queries/Holders.graphql +15 -0
  56. package/src/resources/generated_queries/LiquidityLocks.graphql +1 -0
  57. package/src/resources/generated_queries/ListPairsForToken.graphql +30 -0
  58. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +60 -0
  59. package/src/resources/generated_queries/ListTopTokens.graphql +55 -0
  60. package/src/resources/generated_queries/PairMetadata.graphql +30 -0
  61. package/src/resources/generated_queries/PrimeHolders.graphql +15 -0
  62. package/src/resources/generated_queries/SearchTokens.graphql +67 -0
  63. package/src/resources/generated_queries/Token.graphql +15 -0
  64. package/src/resources/generated_queries/Tokens.graphql +15 -0
  65. package/src/resources/generated_queries/WalletChart.graphql +1 -0
  66. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +15 -0
  67. package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +2 -10
  68. package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +1 -6
  69. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +0 -2
  70. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +15 -0
  71. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +15 -0
  72. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +9 -0
  73. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +2 -0
  74. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +32 -10
  75. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +2 -10
  76. package/src/resources/graphql.schema.json +457 -5137
  77. package/src/resources/graphql.ts +183 -743
  78. package/src/resources/schema.graphql +6752 -11058
  79. package/src/sdk/Mutation.ts +4 -4
  80. package/src/sdk/Query.ts +128 -109
  81. package/src/sdk/Subscribe.ts +208 -223
  82. package/src/sdk/generated/gql.ts +106 -86
  83. package/src/sdk/generated/graphql.ts +320 -842
  84. package/src/sdk/index.test.ts +361 -10
  85. package/src/sdk/index.ts +89 -6
  86. package/src/resources/generated_queries/GetSimulateTokenContractResults.graphql +0 -128
  87. package/src/resources/generated_subscriptions/OnSimulateTokenContract.graphql +0 -121
@@ -18,6 +18,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
18
18
  token0
19
19
  token0Data {
20
20
  address
21
+ circulatingSupply
21
22
  cmcId
22
23
  createBlockNumber
23
24
  createTransactionHash
@@ -34,8 +35,19 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
34
35
  networkId
35
36
  tradeUrl
36
37
  }
38
+ explorerData {
39
+ blueCheckmark
40
+ description
41
+ divisor
42
+ id
43
+ tokenPriceUSD
44
+ tokenType
45
+ }
37
46
  freezable
38
47
  id
48
+ imageLargeUrl
49
+ imageSmallUrl
50
+ imageThumbUrl
39
51
  info {
40
52
  address
41
53
  circulatingSupply
@@ -64,11 +76,13 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
64
76
  migratedAt
65
77
  migratedPoolAddress
66
78
  migratedSlot
79
+ name
67
80
  poolAddress
68
81
  }
69
82
  mintable
70
83
  name
71
84
  networkId
85
+ pooled
72
86
  socialLinks {
73
87
  bitcointalk
74
88
  blog
@@ -91,10 +105,12 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
91
105
  youtube
92
106
  }
93
107
  symbol
108
+ totalSupply
94
109
  }
95
110
  token1
96
111
  token1Data {
97
112
  address
113
+ circulatingSupply
98
114
  cmcId
99
115
  createBlockNumber
100
116
  createTransactionHash
@@ -111,8 +127,19 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
111
127
  networkId
112
128
  tradeUrl
113
129
  }
130
+ explorerData {
131
+ blueCheckmark
132
+ description
133
+ divisor
134
+ id
135
+ tokenPriceUSD
136
+ tokenType
137
+ }
114
138
  freezable
115
139
  id
140
+ imageLargeUrl
141
+ imageSmallUrl
142
+ imageThumbUrl
116
143
  info {
117
144
  address
118
145
  circulatingSupply
@@ -141,11 +168,13 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
141
168
  migratedAt
142
169
  migratedPoolAddress
143
170
  migratedSlot
171
+ name
144
172
  poolAddress
145
173
  }
146
174
  mintable
147
175
  name
148
176
  networkId
177
+ pooled
149
178
  socialLinks {
150
179
  bitcointalk
151
180
  blog
@@ -168,6 +197,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
168
197
  youtube
169
198
  }
170
199
  symbol
200
+ totalSupply
171
201
  }
172
202
  }
173
203
  pairAddress
@@ -0,0 +1,338 @@
1
+ query GetDetailedStats(
2
+ $bucketCount: Int
3
+ $pairId: String!
4
+ $statsType: TokenPairStatisticsType
5
+ $timestamp: Int
6
+ $tokenOfInterest: TokenOfInterest
7
+ $windowSizes: [DetailedStatsWindowSize]
8
+ ) {
9
+ getDetailedStats(
10
+ bucketCount: $bucketCount
11
+ pairId: $pairId
12
+ statsType: $statsType
13
+ timestamp: $timestamp
14
+ tokenOfInterest: $tokenOfInterest
15
+ windowSizes: $windowSizes
16
+ ) {
17
+ bucketCount
18
+ pairId
19
+ queryTimestamp
20
+ statsType
21
+ stats_day1 {
22
+ buckets {
23
+ end
24
+ start
25
+ }
26
+ buyVolume {
27
+ buckets
28
+ change
29
+ currentValue
30
+ previousValue
31
+ }
32
+ buyers {
33
+ buckets
34
+ change
35
+ currentValue
36
+ previousValue
37
+ }
38
+ buys {
39
+ buckets
40
+ change
41
+ currentValue
42
+ previousValue
43
+ }
44
+ endTimestamp
45
+ sellVolume {
46
+ buckets
47
+ change
48
+ currentValue
49
+ previousValue
50
+ }
51
+ sellers {
52
+ buckets
53
+ change
54
+ currentValue
55
+ previousValue
56
+ }
57
+ sells {
58
+ buckets
59
+ change
60
+ currentValue
61
+ previousValue
62
+ }
63
+ timestamp
64
+ traders {
65
+ buckets
66
+ change
67
+ currentValue
68
+ previousValue
69
+ }
70
+ transactions {
71
+ buckets
72
+ change
73
+ currentValue
74
+ previousValue
75
+ }
76
+ volume {
77
+ buckets
78
+ change
79
+ currentValue
80
+ previousValue
81
+ }
82
+ windowSize
83
+ }
84
+ stats_hour1 {
85
+ buckets {
86
+ end
87
+ start
88
+ }
89
+ buyVolume {
90
+ buckets
91
+ change
92
+ currentValue
93
+ previousValue
94
+ }
95
+ buyers {
96
+ buckets
97
+ change
98
+ currentValue
99
+ previousValue
100
+ }
101
+ buys {
102
+ buckets
103
+ change
104
+ currentValue
105
+ previousValue
106
+ }
107
+ endTimestamp
108
+ sellVolume {
109
+ buckets
110
+ change
111
+ currentValue
112
+ previousValue
113
+ }
114
+ sellers {
115
+ buckets
116
+ change
117
+ currentValue
118
+ previousValue
119
+ }
120
+ sells {
121
+ buckets
122
+ change
123
+ currentValue
124
+ previousValue
125
+ }
126
+ timestamp
127
+ traders {
128
+ buckets
129
+ change
130
+ currentValue
131
+ previousValue
132
+ }
133
+ transactions {
134
+ buckets
135
+ change
136
+ currentValue
137
+ previousValue
138
+ }
139
+ volume {
140
+ buckets
141
+ change
142
+ currentValue
143
+ previousValue
144
+ }
145
+ windowSize
146
+ }
147
+ stats_hour4 {
148
+ buckets {
149
+ end
150
+ start
151
+ }
152
+ buyVolume {
153
+ buckets
154
+ change
155
+ currentValue
156
+ previousValue
157
+ }
158
+ buyers {
159
+ buckets
160
+ change
161
+ currentValue
162
+ previousValue
163
+ }
164
+ buys {
165
+ buckets
166
+ change
167
+ currentValue
168
+ previousValue
169
+ }
170
+ endTimestamp
171
+ sellVolume {
172
+ buckets
173
+ change
174
+ currentValue
175
+ previousValue
176
+ }
177
+ sellers {
178
+ buckets
179
+ change
180
+ currentValue
181
+ previousValue
182
+ }
183
+ sells {
184
+ buckets
185
+ change
186
+ currentValue
187
+ previousValue
188
+ }
189
+ timestamp
190
+ traders {
191
+ buckets
192
+ change
193
+ currentValue
194
+ previousValue
195
+ }
196
+ transactions {
197
+ buckets
198
+ change
199
+ currentValue
200
+ previousValue
201
+ }
202
+ volume {
203
+ buckets
204
+ change
205
+ currentValue
206
+ previousValue
207
+ }
208
+ windowSize
209
+ }
210
+ stats_hour12 {
211
+ buckets {
212
+ end
213
+ start
214
+ }
215
+ buyVolume {
216
+ buckets
217
+ change
218
+ currentValue
219
+ previousValue
220
+ }
221
+ buyers {
222
+ buckets
223
+ change
224
+ currentValue
225
+ previousValue
226
+ }
227
+ buys {
228
+ buckets
229
+ change
230
+ currentValue
231
+ previousValue
232
+ }
233
+ endTimestamp
234
+ sellVolume {
235
+ buckets
236
+ change
237
+ currentValue
238
+ previousValue
239
+ }
240
+ sellers {
241
+ buckets
242
+ change
243
+ currentValue
244
+ previousValue
245
+ }
246
+ sells {
247
+ buckets
248
+ change
249
+ currentValue
250
+ previousValue
251
+ }
252
+ timestamp
253
+ traders {
254
+ buckets
255
+ change
256
+ currentValue
257
+ previousValue
258
+ }
259
+ transactions {
260
+ buckets
261
+ change
262
+ currentValue
263
+ previousValue
264
+ }
265
+ volume {
266
+ buckets
267
+ change
268
+ currentValue
269
+ previousValue
270
+ }
271
+ windowSize
272
+ }
273
+ stats_min5 {
274
+ buckets {
275
+ end
276
+ start
277
+ }
278
+ buyVolume {
279
+ buckets
280
+ change
281
+ currentValue
282
+ previousValue
283
+ }
284
+ buyers {
285
+ buckets
286
+ change
287
+ currentValue
288
+ previousValue
289
+ }
290
+ buys {
291
+ buckets
292
+ change
293
+ currentValue
294
+ previousValue
295
+ }
296
+ endTimestamp
297
+ sellVolume {
298
+ buckets
299
+ change
300
+ currentValue
301
+ previousValue
302
+ }
303
+ sellers {
304
+ buckets
305
+ change
306
+ currentValue
307
+ previousValue
308
+ }
309
+ sells {
310
+ buckets
311
+ change
312
+ currentValue
313
+ previousValue
314
+ }
315
+ timestamp
316
+ traders {
317
+ buckets
318
+ change
319
+ currentValue
320
+ previousValue
321
+ }
322
+ transactions {
323
+ buckets
324
+ change
325
+ currentValue
326
+ previousValue
327
+ }
328
+ volume {
329
+ buckets
330
+ change
331
+ currentValue
332
+ previousValue
333
+ }
334
+ windowSize
335
+ }
336
+ tokenOfInterest
337
+ }
338
+ }
@@ -0,0 +1,57 @@
1
+ query GetLatestPairs(
2
+ $cursor: String
3
+ $exchangeFilter: [String!]
4
+ $limit: Int
5
+ $minLiquidityFilter: Int
6
+ $networkFilter: [Int!]
7
+ ) {
8
+ getLatestPairs(
9
+ cursor: $cursor
10
+ exchangeFilter: $exchangeFilter
11
+ limit: $limit
12
+ minLiquidityFilter: $minLiquidityFilter
13
+ networkFilter: $networkFilter
14
+ ) {
15
+ cursor
16
+ items {
17
+ address
18
+ exchangeHash
19
+ id
20
+ initialPriceUsd
21
+ liquidAt
22
+ liquidity
23
+ liquidityToken
24
+ networkId
25
+ newToken
26
+ nonLiquidityToken
27
+ oldToken
28
+ priceChange
29
+ priceUsd
30
+ token0 {
31
+ address
32
+ currentPoolAmount
33
+ decimals
34
+ id
35
+ initialPoolAmount
36
+ name
37
+ networkId
38
+ pairId
39
+ poolVariation
40
+ symbol
41
+ }
42
+ token1 {
43
+ address
44
+ currentPoolAmount
45
+ decimals
46
+ id
47
+ initialPoolAmount
48
+ name
49
+ networkId
50
+ pairId
51
+ poolVariation
52
+ symbol
53
+ }
54
+ transactionHash
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,39 @@
1
+ query GetLatestTokens($limit: Int, $networkFilter: [Int!], $offset: Int) {
2
+ getLatestTokens(
3
+ limit: $limit
4
+ networkFilter: $networkFilter
5
+ offset: $offset
6
+ ) {
7
+ items {
8
+ blockHash
9
+ blockNumber
10
+ creatorAddress
11
+ creatorBalance
12
+ decimals
13
+ id
14
+ networkId
15
+ simulationResults {
16
+ buyGasUsed
17
+ buySuccess
18
+ buyTax
19
+ canRenounceOwnership
20
+ canTransferOwnership
21
+ isOwnerRenounced
22
+ maxBuyAmount
23
+ maxSellAmount
24
+ openTradingCall
25
+ sellGasUsed
26
+ sellSuccess
27
+ sellTax
28
+ }
29
+ timeCreated
30
+ tokenAddress
31
+ tokenName
32
+ tokenSymbol
33
+ totalSupply
34
+ traceIndex
35
+ transactionHash
36
+ transactionIndex
37
+ }
38
+ }
39
+ }
@@ -23,17 +23,24 @@ query GetNftEvents(
23
23
  cursor
24
24
  items {
25
25
  aggregatorAddress
26
+ baseTokenAddress
27
+ baseTokenPrice
26
28
  blockNumber
27
29
  contractAddress
28
30
  eventType
29
31
  exchangeAddress
30
32
  fillSource
31
33
  id
34
+ individualBaseTokenPrice
35
+ individualNetworkBaseTokenPrice
36
+ individualPrice
32
37
  individualPriceNetworkBaseToken
33
38
  individualPriceUsd
39
+ individualTokenPrice
34
40
  individualTradePrice
35
41
  logIndex
36
42
  maker
43
+ networkBaseTokenPrice
37
44
  networkId
38
45
  numberOfTokens
39
46
  orderDirection
@@ -44,6 +51,8 @@ query GetNftEvents(
44
51
  taker
45
52
  timestamp
46
53
  tokenId
54
+ tokenPrice
55
+ totalPrice
47
56
  totalPriceNetworkBaseToken
48
57
  totalPriceUsd
49
58
  totalTradePrice
@@ -47,7 +47,9 @@ query GetNftPool($address: String!, $networkId: Int!) {
47
47
  tokenId
48
48
  uri
49
49
  }
50
+ nftBalance
50
51
  nftBalanceV2
52
+ nftVolumeAllTime
51
53
  nftVolumeAllTimeV2
52
54
  offerNBT
53
55
  offerT
@@ -16,9 +16,17 @@ query GetNftPoolCollection(
16
16
  exchangeId
17
17
  floorNBT
18
18
  image
19
+ media {
20
+ image
21
+ processed
22
+ thumbLg
23
+ thumbSm
24
+ }
19
25
  name
20
26
  networkId
27
+ nftBalance
21
28
  nftBalanceV2
29
+ nftVolumeAllTime
22
30
  nftVolumeAllTimeV2
23
31
  offerNBT
24
32
  poolFeesNBTAll
@@ -20,9 +20,17 @@ query GetNftPoolCollectionsByExchange(
20
20
  exchangeId
21
21
  floorNBT
22
22
  image
23
+ media {
24
+ image
25
+ processed
26
+ thumbLg
27
+ thumbSm
28
+ }
23
29
  name
24
30
  networkId
31
+ nftBalance
25
32
  nftBalanceV2
33
+ nftVolumeAllTime
26
34
  nftVolumeAllTimeV2
27
35
  offerNBT
28
36
  poolFeesNBTAll
@@ -320,6 +320,7 @@ query GetNftPoolEvents(
320
320
  amountT
321
321
  nftQuantity
322
322
  nftTokenId
323
+ nftTokenQuantity
323
324
  }
324
325
  poolFeeT
325
326
  protocolFeeT
@@ -390,6 +391,7 @@ query GetNftPoolEvents(
390
391
  amountT
391
392
  nftQuantity
392
393
  nftTokenId
394
+ nftTokenQuantity
393
395
  }
394
396
  poolFeeT
395
397
  protocolFeeT
@@ -61,7 +61,9 @@ query GetNftPoolsByCollectionAndExchange(
61
61
  tokenId
62
62
  uri
63
63
  }
64
+ nftBalance
64
65
  nftBalanceV2
66
+ nftVolumeAllTime
65
67
  nftVolumeAllTimeV2
66
68
  offerNBT
67
69
  offerT
@@ -61,7 +61,9 @@ query GetNftPoolsByOwner(
61
61
  tokenId
62
62
  uri
63
63
  }
64
+ nftBalance
64
65
  nftBalanceV2
66
+ nftVolumeAllTime
65
67
  nftVolumeAllTimeV2
66
68
  offerNBT
67
69
  offerT
@@ -11,6 +11,7 @@ query Holders($input: HoldersInput!) {
11
11
  shiftedBalance
12
12
  token {
13
13
  address
14
+ circulatingSupply
14
15
  cmcId
15
16
  createBlockNumber
16
17
  createTransactionHash
@@ -27,8 +28,19 @@ query Holders($input: HoldersInput!) {
27
28
  networkId
28
29
  tradeUrl
29
30
  }
31
+ explorerData {
32
+ blueCheckmark
33
+ description
34
+ divisor
35
+ id
36
+ tokenPriceUSD
37
+ tokenType
38
+ }
30
39
  freezable
31
40
  id
41
+ imageLargeUrl
42
+ imageSmallUrl
43
+ imageThumbUrl
32
44
  info {
33
45
  address
34
46
  circulatingSupply
@@ -57,11 +69,13 @@ query Holders($input: HoldersInput!) {
57
69
  migratedAt
58
70
  migratedPoolAddress
59
71
  migratedSlot
72
+ name
60
73
  poolAddress
61
74
  }
62
75
  mintable
63
76
  name
64
77
  networkId
78
+ pooled
65
79
  socialLinks {
66
80
  bitcointalk
67
81
  blog
@@ -84,6 +98,7 @@ query Holders($input: HoldersInput!) {
84
98
  youtube
85
99
  }
86
100
  symbol
101
+ totalSupply
87
102
  }
88
103
  tokenAddress
89
104
  tokenId
@@ -20,6 +20,7 @@ query LiquidityLocks(
20
20
  nftPositionManagerAddress
21
21
  nftTokenId
22
22
  }
23
+ liquidityProtocol
23
24
  liquidityProtocolV2
24
25
  lockProtocol
25
26
  lockerAddress