@codex-data/sdk 1.0.35 → 1.0.37

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 (47) hide show
  1. package/dist/resources/graphql.d.ts +69 -24
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +5 -2
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/scripts/generateNetworkConfigs.js +6 -1
  6. package/dist/scripts/generateNetworkConfigs.js.map +1 -1
  7. package/dist/sdk/Subscribe.js +9 -9
  8. package/dist/sdk/generated/gql.d.ts +46 -46
  9. package/dist/sdk/generated/gql.d.ts.map +1 -1
  10. package/dist/sdk/generated/gql.js +23 -23
  11. package/dist/sdk/generated/gql.js.map +1 -1
  12. package/dist/sdk/generated/graphql.d.ts +95 -65
  13. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  14. package/dist/sdk/generated/graphql.js +28 -25
  15. package/dist/sdk/generated/graphql.js.map +1 -1
  16. package/package.json +1 -1
  17. package/src/resources/generated_queries/Balances.graphql +0 -1
  18. package/src/resources/generated_queries/FilterPairs.graphql +1 -4
  19. package/src/resources/generated_queries/FilterTokens.graphql +9 -5
  20. package/src/resources/generated_queries/GetBars.graphql +1 -2
  21. package/src/resources/generated_queries/GetCommunityNotes.graphql +0 -1
  22. package/src/resources/generated_queries/GetDetailedPairStats.graphql +1 -2
  23. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +1 -2
  24. package/src/resources/generated_queries/GetTokenBars.graphql +0 -1
  25. package/src/resources/generated_queries/GetTokenPrices.graphql +1 -1
  26. package/src/resources/generated_queries/Holders.graphql +0 -2
  27. package/src/resources/generated_queries/ListPairsForToken.graphql +1 -2
  28. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +1 -4
  29. package/src/resources/generated_queries/PairMetadata.graphql +0 -2
  30. package/src/resources/generated_queries/PrimeHolders.graphql +0 -1
  31. package/src/resources/generated_queries/Token.graphql +0 -1
  32. package/src/resources/generated_queries/Tokens.graphql +0 -1
  33. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +0 -1
  34. package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +0 -2
  35. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +0 -1
  36. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +7 -1
  37. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +10 -4
  38. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -1
  39. package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -1
  40. package/src/resources/graphql.schema.json +338 -74
  41. package/src/resources/graphql.ts +69 -24
  42. package/src/resources/networkConfigs.json +33 -2
  43. package/src/resources/schema.graphql +72 -26
  44. package/src/scripts/generateNetworkConfigs.ts +10 -1
  45. package/src/sdk/Subscribe.ts +9 -9
  46. package/src/sdk/generated/gql.ts +69 -69
  47. package/src/sdk/generated/graphql.ts +116 -70
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-data/sdk",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "engines": {
5
5
  "node": ">=17.5.0"
6
6
  },
@@ -65,7 +65,6 @@ query Balances($input: BalancesInput!) {
65
65
  mintable
66
66
  name
67
67
  networkId
68
- pairId
69
68
  socialLinks {
70
69
  bitcointalk
71
70
  blog
@@ -70,6 +70,7 @@ query FilterPairs(
70
70
  type
71
71
  }
72
72
  ... on UniswapV4Data {
73
+ isDynamicFee
73
74
  isToken0NetworkToken
74
75
  type
75
76
  uniswapV4HookAddress
@@ -134,7 +135,6 @@ query FilterPairs(
134
135
  mintable
135
136
  name
136
137
  networkId
137
- pairId
138
138
  socialLinks {
139
139
  bitcointalk
140
140
  blog
@@ -216,7 +216,6 @@ query FilterPairs(
216
216
  mintable
217
217
  name
218
218
  networkId
219
- pairId
220
219
  socialLinks {
221
220
  bitcointalk
222
221
  blog
@@ -315,7 +314,6 @@ query FilterPairs(
315
314
  mintable
316
315
  name
317
316
  networkId
318
- pairId
319
317
  socialLinks {
320
318
  bitcointalk
321
319
  blog
@@ -396,7 +394,6 @@ query FilterPairs(
396
394
  mintable
397
395
  name
398
396
  networkId
399
- pairId
400
397
  socialLinks {
401
398
  bitcointalk
402
399
  blog
@@ -21,6 +21,8 @@ query FilterTokens(
21
21
  count
22
22
  page
23
23
  results {
24
+ bundlerCount
25
+ bundlerHeldPercentage
24
26
  buyCount1
25
27
  buyCount4
26
28
  buyCount5m
@@ -38,6 +40,7 @@ query FilterTokens(
38
40
  change24
39
41
  circulatingMarketCap
40
42
  createdAt
43
+ devHeldPercentage
41
44
  exchanges {
42
45
  address
43
46
  color
@@ -54,6 +57,8 @@ query FilterTokens(
54
57
  high12
55
58
  high24
56
59
  holders
60
+ insiderCount
61
+ insiderHeldPercentage
57
62
  isScam
58
63
  lastTransaction
59
64
  liquidPair {
@@ -74,6 +79,7 @@ query FilterTokens(
74
79
  type
75
80
  }
76
81
  ... on UniswapV4Data {
82
+ isDynamicFee
77
83
  isToken0NetworkToken
78
84
  type
79
85
  uniswapV4HookAddress
@@ -138,7 +144,6 @@ query FilterTokens(
138
144
  mintable
139
145
  name
140
146
  networkId
141
- pairId
142
147
  socialLinks {
143
148
  bitcointalk
144
149
  blog
@@ -220,7 +225,6 @@ query FilterTokens(
220
225
  mintable
221
226
  name
222
227
  networkId
223
- pairId
224
228
  socialLinks {
225
229
  bitcointalk
226
230
  blog
@@ -272,6 +276,7 @@ query FilterTokens(
272
276
  type
273
277
  }
274
278
  ... on UniswapV4Data {
279
+ isDynamicFee
275
280
  isToken0NetworkToken
276
281
  type
277
282
  uniswapV4HookAddress
@@ -336,7 +341,6 @@ query FilterTokens(
336
341
  mintable
337
342
  name
338
343
  networkId
339
- pairId
340
344
  socialLinks {
341
345
  bitcointalk
342
346
  blog
@@ -418,7 +422,6 @@ query FilterTokens(
418
422
  mintable
419
423
  name
420
424
  networkId
421
- pairId
422
425
  socialLinks {
423
426
  bitcointalk
424
427
  blog
@@ -455,6 +458,8 @@ query FilterTokens(
455
458
  sellVolume5m
456
459
  sellVolume12
457
460
  sellVolume24
461
+ sniperCount
462
+ sniperHeldPercentage
458
463
  swapPct1dOldWallet
459
464
  swapPct7dOldWallet
460
465
  token {
@@ -514,7 +519,6 @@ query FilterTokens(
514
519
  mintable
515
520
  name
516
521
  networkId
517
- pairId
518
522
  socialLinks {
519
523
  bitcointalk
520
524
  blog
@@ -50,6 +50,7 @@ query GetBars(
50
50
  type
51
51
  }
52
52
  ... on UniswapV4Data {
53
+ isDynamicFee
53
54
  isToken0NetworkToken
54
55
  type
55
56
  uniswapV4HookAddress
@@ -114,7 +115,6 @@ query GetBars(
114
115
  mintable
115
116
  name
116
117
  networkId
117
- pairId
118
118
  socialLinks {
119
119
  bitcointalk
120
120
  blog
@@ -196,7 +196,6 @@ query GetBars(
196
196
  mintable
197
197
  name
198
198
  networkId
199
- pairId
200
199
  socialLinks {
201
200
  bitcointalk
202
201
  blog
@@ -100,7 +100,6 @@ query GetCommunityNotes($input: CommunityNotesInput) {
100
100
  mintable
101
101
  name
102
102
  networkId
103
- pairId
104
103
  socialLinks {
105
104
  bitcointalk
106
105
  blog
@@ -37,6 +37,7 @@ query GetDetailedPairStats(
37
37
  type
38
38
  }
39
39
  ... on UniswapV4Data {
40
+ isDynamicFee
40
41
  isToken0NetworkToken
41
42
  type
42
43
  uniswapV4HookAddress
@@ -101,7 +102,6 @@ query GetDetailedPairStats(
101
102
  mintable
102
103
  name
103
104
  networkId
104
- pairId
105
105
  socialLinks {
106
106
  bitcointalk
107
107
  blog
@@ -183,7 +183,6 @@ query GetDetailedPairStats(
183
183
  mintable
184
184
  name
185
185
  networkId
186
- pairId
187
186
  socialLinks {
188
187
  bitcointalk
189
188
  blog
@@ -21,6 +21,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
21
21
  type
22
22
  }
23
23
  ... on UniswapV4Data {
24
+ isDynamicFee
24
25
  isToken0NetworkToken
25
26
  type
26
27
  uniswapV4HookAddress
@@ -85,7 +86,6 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
85
86
  mintable
86
87
  name
87
88
  networkId
88
- pairId
89
89
  socialLinks {
90
90
  bitcointalk
91
91
  blog
@@ -167,7 +167,6 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
167
167
  mintable
168
168
  name
169
169
  networkId
170
- pairId
171
170
  socialLinks {
172
171
  bitcointalk
173
172
  blog
@@ -90,7 +90,6 @@ query GetTokenBars(
90
90
  mintable
91
91
  name
92
92
  networkId
93
- pairId
94
93
  socialLinks {
95
94
  bitcointalk
96
95
  blog
@@ -1,7 +1,7 @@
1
1
  query GetTokenPrices($inputs: [GetPriceInput]) {
2
2
  getTokenPrices(inputs: $inputs) {
3
3
  address
4
- internalPoolAddress
4
+ blockNumber
5
5
  networkId
6
6
  priceUsd
7
7
  timestamp
@@ -66,7 +66,6 @@ query Holders($input: HoldersInput!) {
66
66
  mintable
67
67
  name
68
68
  networkId
69
- pairId
70
69
  socialLinks {
71
70
  bitcointalk
72
71
  blog
@@ -96,7 +95,6 @@ query Holders($input: HoldersInput!) {
96
95
  walletId
97
96
  }
98
97
  status
99
- tokenId
100
98
  top10HoldersPercent
101
99
  }
102
100
  }
@@ -21,6 +21,7 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
21
21
  type
22
22
  }
23
23
  ... on UniswapV4Data {
24
+ isDynamicFee
24
25
  isToken0NetworkToken
25
26
  type
26
27
  uniswapV4HookAddress
@@ -85,7 +86,6 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
85
86
  mintable
86
87
  name
87
88
  networkId
88
- pairId
89
89
  socialLinks {
90
90
  bitcointalk
91
91
  blog
@@ -167,7 +167,6 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
167
167
  mintable
168
168
  name
169
169
  networkId
170
- pairId
171
170
  socialLinks {
172
171
  bitcointalk
173
172
  blog
@@ -66,7 +66,6 @@ query ListPairsWithMetadataForToken(
66
66
  mintable
67
67
  name
68
68
  networkId
69
- pairId
70
69
  socialLinks {
71
70
  bitcointalk
72
71
  blog
@@ -119,6 +118,7 @@ query ListPairsWithMetadataForToken(
119
118
  type
120
119
  }
121
120
  ... on UniswapV4Data {
121
+ isDynamicFee
122
122
  isToken0NetworkToken
123
123
  type
124
124
  uniswapV4HookAddress
@@ -183,7 +183,6 @@ query ListPairsWithMetadataForToken(
183
183
  mintable
184
184
  name
185
185
  networkId
186
- pairId
187
186
  socialLinks {
188
187
  bitcointalk
189
188
  blog
@@ -265,7 +264,6 @@ query ListPairsWithMetadataForToken(
265
264
  mintable
266
265
  name
267
266
  networkId
268
- pairId
269
267
  socialLinks {
270
268
  bitcointalk
271
269
  blog
@@ -348,7 +346,6 @@ query ListPairsWithMetadataForToken(
348
346
  mintable
349
347
  name
350
348
  networkId
351
- pairId
352
349
  socialLinks {
353
350
  bitcointalk
354
351
  blog
@@ -66,7 +66,6 @@ query PairMetadata(
66
66
  mintable
67
67
  name
68
68
  networkId
69
- pairId
70
69
  socialLinks {
71
70
  bitcointalk
72
71
  blog
@@ -147,7 +146,6 @@ query PairMetadata(
147
146
  mintable
148
147
  name
149
148
  networkId
150
- pairId
151
149
  socialLinks {
152
150
  bitcointalk
153
151
  blog
@@ -66,7 +66,6 @@ query PrimeHolders($cursor: String) {
66
66
  mintable
67
67
  name
68
68
  networkId
69
- pairId
70
69
  socialLinks {
71
70
  bitcointalk
72
71
  blog
@@ -56,7 +56,6 @@ query Token($input: TokenInput!) {
56
56
  mintable
57
57
  name
58
58
  networkId
59
- pairId
60
59
  socialLinks {
61
60
  bitcointalk
62
61
  blog
@@ -56,7 +56,6 @@ query Tokens($ids: [TokenInput!]) {
56
56
  mintable
57
57
  name
58
58
  networkId
59
- pairId
60
59
  socialLinks {
61
60
  bitcointalk
62
61
  blog
@@ -63,7 +63,6 @@ subscription OnBalanceUpdated($walletAddress: String!) {
63
63
  mintable
64
64
  name
65
65
  networkId
66
- pairId
67
66
  socialLinks {
68
67
  bitcointalk
69
68
  blog
@@ -3,9 +3,7 @@ subscription OnDetailedStatsUpdated(
3
3
  $tokenOfInterest: TokenOfInterest
4
4
  ) {
5
5
  onDetailedStatsUpdated(pairId: $pairId, tokenOfInterest: $tokenOfInterest) {
6
- bucketCount
7
6
  pairId
8
- queryTimestamp
9
7
  statsType
10
8
  stats_day1 {
11
9
  buckets {
@@ -64,7 +64,6 @@ subscription OnHoldersUpdated($tokenId: String!) {
64
64
  mintable
65
65
  name
66
66
  networkId
67
- pairId
68
67
  socialLinks {
69
68
  bitcointalk
70
69
  blog
@@ -1,9 +1,14 @@
1
1
  subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
2
2
  onLaunchpadTokenEvent(input: $input) {
3
3
  address
4
+ bundlerCount
5
+ bundlerHeldPercentage
4
6
  buyCount1
7
+ devHeldPercentage
5
8
  eventType
6
9
  holders
10
+ insiderCount
11
+ insiderHeldPercentage
7
12
  launchpadName
8
13
  liquidity
9
14
  marketCap
@@ -11,6 +16,8 @@ subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
11
16
  price
12
17
  protocol
13
18
  sellCount1
19
+ sniperCount
20
+ sniperHeldPercentage
14
21
  token {
15
22
  address
16
23
  cmcId
@@ -68,7 +75,6 @@ subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
68
75
  mintable
69
76
  name
70
77
  networkId
71
- pairId
72
78
  socialLinks {
73
79
  bitcointalk
74
80
  blog
@@ -1,5 +1,13 @@
1
- subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
2
- onPairMetadataUpdated(id: $id, quoteToken: $quoteToken) {
1
+ subscription OnPairMetadataUpdated(
2
+ $id: String
3
+ $quoteToken: QuoteToken
4
+ $useNonLiquidityTokenAsQuoteToken: Boolean
5
+ ) {
6
+ onPairMetadataUpdated(
7
+ id: $id
8
+ quoteToken: $quoteToken
9
+ useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken
10
+ ) {
3
11
  createdAt
4
12
  enhancedToken0 {
5
13
  address
@@ -58,7 +66,6 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
58
66
  mintable
59
67
  name
60
68
  networkId
61
- pairId
62
69
  socialLinks {
63
70
  bitcointalk
64
71
  blog
@@ -139,7 +146,6 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
139
146
  mintable
140
147
  name
141
148
  networkId
142
- pairId
143
149
  socialLinks {
144
150
  bitcointalk
145
151
  blog
@@ -9,7 +9,7 @@ subscription OnPriceUpdated(
9
9
  sourcePairAddress: $sourcePairAddress
10
10
  ) {
11
11
  address
12
- internalPoolAddress
12
+ blockNumber
13
13
  networkId
14
14
  priceUsd
15
15
  timestamp
@@ -1,7 +1,7 @@
1
1
  subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
2
2
  onPricesUpdated(input: $input) {
3
3
  address
4
- internalPoolAddress
4
+ blockNumber
5
5
  networkId
6
6
  priceUsd
7
7
  timestamp