@codex-data/sdk 1.0.34 → 1.0.35

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 (46) hide show
  1. package/dist/sdk/Query.d.ts +4 -1
  2. package/dist/sdk/Query.d.ts.map +1 -1
  3. package/dist/sdk/Query.js +3 -0
  4. package/dist/sdk/Query.js.map +1 -1
  5. package/dist/sdk/Subscribe.js +8 -8
  6. package/dist/sdk/generated/gql.d.ts +63 -48
  7. package/dist/sdk/generated/gql.d.ts.map +1 -1
  8. package/dist/sdk/generated/gql.js +27 -24
  9. package/dist/sdk/generated/gql.js.map +1 -1
  10. package/dist/sdk/generated/graphql.d.ts +448 -17
  11. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  12. package/dist/sdk/generated/graphql.js +30 -27
  13. package/dist/sdk/generated/graphql.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/resources/generated_queries/Balances.graphql +3 -0
  16. package/src/resources/generated_queries/Blocks.graphql +7 -0
  17. package/src/resources/generated_queries/FilterPairs.graphql +14 -0
  18. package/src/resources/generated_queries/FilterTokens.graphql +20 -0
  19. package/src/resources/generated_queries/GetBars.graphql +8 -0
  20. package/src/resources/generated_queries/GetCommunityNotes.graphql +3 -0
  21. package/src/resources/generated_queries/GetDetailedPairStats.graphql +8 -0
  22. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +8 -0
  23. package/src/resources/generated_queries/GetNetworkConfigs.graphql +129 -0
  24. package/src/resources/generated_queries/GetTokenBars.graphql +122 -0
  25. package/src/resources/generated_queries/GetTokenPrices.graphql +1 -2
  26. package/src/resources/generated_queries/Holders.graphql +4 -0
  27. package/src/resources/generated_queries/ListPairsForToken.graphql +8 -0
  28. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +14 -0
  29. package/src/resources/generated_queries/PairMetadata.graphql +7 -4
  30. package/src/resources/generated_queries/PrimeHolders.graphql +3 -0
  31. package/src/resources/generated_queries/Token.graphql +3 -0
  32. package/src/resources/generated_queries/TokenSparklines.graphql +1 -0
  33. package/src/resources/generated_queries/Tokens.graphql +3 -0
  34. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +3 -0
  35. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +3 -0
  36. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +3 -0
  37. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +7 -4
  38. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -2
  39. package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -2
  40. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +0 -3
  41. package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +45 -0
  42. package/src/resources/queries_override/GetNetworkConfigs.graphql +129 -0
  43. package/src/sdk/Query.ts +12 -0
  44. package/src/sdk/Subscribe.ts +8 -8
  45. package/src/sdk/generated/gql.ts +90 -72
  46. package/src/sdk/generated/graphql.ts +80 -48
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-data/sdk",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "engines": {
5
5
  "node": ">=17.5.0"
6
6
  },
@@ -45,6 +45,8 @@ query Balances($input: BalancesInput!) {
45
45
  symbol
46
46
  totalSupply
47
47
  }
48
+ isFreezableValid
49
+ isMintableValid
48
50
  isScam
49
51
  launchpad {
50
52
  completed
@@ -63,6 +65,7 @@ query Balances($input: BalancesInput!) {
63
65
  mintable
64
66
  name
65
67
  networkId
68
+ pairId
66
69
  socialLinks {
67
70
  bitcointalk
68
71
  blog
@@ -0,0 +1,7 @@
1
+ query Blocks($input: BlocksInput!) {
2
+ blocks(input: $input) {
3
+ blockNumber
4
+ hash
5
+ timestamp
6
+ }
7
+ }
@@ -63,12 +63,14 @@ query FilterPairs(
63
63
  token0
64
64
  token1
65
65
  }
66
+ protocol
66
67
  protocolData {
67
68
  ... on ArenaTradeData {
68
69
  tokenId
69
70
  type
70
71
  }
71
72
  ... on UniswapV4Data {
73
+ isToken0NetworkToken
72
74
  type
73
75
  uniswapV4HookAddress
74
76
  }
@@ -112,6 +114,8 @@ query FilterPairs(
112
114
  symbol
113
115
  totalSupply
114
116
  }
117
+ isFreezableValid
118
+ isMintableValid
115
119
  isScam
116
120
  launchpad {
117
121
  completed
@@ -130,6 +134,7 @@ query FilterPairs(
130
134
  mintable
131
135
  name
132
136
  networkId
137
+ pairId
133
138
  socialLinks {
134
139
  bitcointalk
135
140
  blog
@@ -191,6 +196,8 @@ query FilterPairs(
191
196
  symbol
192
197
  totalSupply
193
198
  }
199
+ isFreezableValid
200
+ isMintableValid
194
201
  isScam
195
202
  launchpad {
196
203
  completed
@@ -209,6 +216,7 @@ query FilterPairs(
209
216
  mintable
210
217
  name
211
218
  networkId
219
+ pairId
212
220
  socialLinks {
213
221
  bitcointalk
214
222
  blog
@@ -287,6 +295,8 @@ query FilterPairs(
287
295
  symbol
288
296
  totalSupply
289
297
  }
298
+ isFreezableValid
299
+ isMintableValid
290
300
  isScam
291
301
  launchpad {
292
302
  completed
@@ -305,6 +315,7 @@ query FilterPairs(
305
315
  mintable
306
316
  name
307
317
  networkId
318
+ pairId
308
319
  socialLinks {
309
320
  bitcointalk
310
321
  blog
@@ -365,6 +376,8 @@ query FilterPairs(
365
376
  symbol
366
377
  totalSupply
367
378
  }
379
+ isFreezableValid
380
+ isMintableValid
368
381
  isScam
369
382
  launchpad {
370
383
  completed
@@ -383,6 +396,7 @@ query FilterPairs(
383
396
  mintable
384
397
  name
385
398
  networkId
399
+ pairId
386
400
  socialLinks {
387
401
  bitcointalk
388
402
  blog
@@ -67,12 +67,14 @@ query FilterTokens(
67
67
  token0
68
68
  token1
69
69
  }
70
+ protocol
70
71
  protocolData {
71
72
  ... on ArenaTradeData {
72
73
  tokenId
73
74
  type
74
75
  }
75
76
  ... on UniswapV4Data {
77
+ isToken0NetworkToken
76
78
  type
77
79
  uniswapV4HookAddress
78
80
  }
@@ -116,6 +118,8 @@ query FilterTokens(
116
118
  symbol
117
119
  totalSupply
118
120
  }
121
+ isFreezableValid
122
+ isMintableValid
119
123
  isScam
120
124
  launchpad {
121
125
  completed
@@ -134,6 +138,7 @@ query FilterTokens(
134
138
  mintable
135
139
  name
136
140
  networkId
141
+ pairId
137
142
  socialLinks {
138
143
  bitcointalk
139
144
  blog
@@ -195,6 +200,8 @@ query FilterTokens(
195
200
  symbol
196
201
  totalSupply
197
202
  }
203
+ isFreezableValid
204
+ isMintableValid
198
205
  isScam
199
206
  launchpad {
200
207
  completed
@@ -213,6 +220,7 @@ query FilterTokens(
213
220
  mintable
214
221
  name
215
222
  networkId
223
+ pairId
216
224
  socialLinks {
217
225
  bitcointalk
218
226
  blog
@@ -238,6 +246,7 @@ query FilterTokens(
238
246
  }
239
247
  }
240
248
  liquidPairLiquidity
249
+ liquidPairPriceUSD
241
250
  liquidity
242
251
  low1
243
252
  low4
@@ -256,12 +265,14 @@ query FilterTokens(
256
265
  token0
257
266
  token1
258
267
  }
268
+ protocol
259
269
  protocolData {
260
270
  ... on ArenaTradeData {
261
271
  tokenId
262
272
  type
263
273
  }
264
274
  ... on UniswapV4Data {
275
+ isToken0NetworkToken
265
276
  type
266
277
  uniswapV4HookAddress
267
278
  }
@@ -305,6 +316,8 @@ query FilterTokens(
305
316
  symbol
306
317
  totalSupply
307
318
  }
319
+ isFreezableValid
320
+ isMintableValid
308
321
  isScam
309
322
  launchpad {
310
323
  completed
@@ -323,6 +336,7 @@ query FilterTokens(
323
336
  mintable
324
337
  name
325
338
  networkId
339
+ pairId
326
340
  socialLinks {
327
341
  bitcointalk
328
342
  blog
@@ -384,6 +398,8 @@ query FilterTokens(
384
398
  symbol
385
399
  totalSupply
386
400
  }
401
+ isFreezableValid
402
+ isMintableValid
387
403
  isScam
388
404
  launchpad {
389
405
  completed
@@ -402,6 +418,7 @@ query FilterTokens(
402
418
  mintable
403
419
  name
404
420
  networkId
421
+ pairId
405
422
  socialLinks {
406
423
  bitcointalk
407
424
  blog
@@ -477,6 +494,8 @@ query FilterTokens(
477
494
  symbol
478
495
  totalSupply
479
496
  }
497
+ isFreezableValid
498
+ isMintableValid
480
499
  isScam
481
500
  launchpad {
482
501
  completed
@@ -495,6 +514,7 @@ query FilterTokens(
495
514
  mintable
496
515
  name
497
516
  networkId
517
+ pairId
498
518
  socialLinks {
499
519
  bitcointalk
500
520
  blog
@@ -43,12 +43,14 @@ query GetBars(
43
43
  token0
44
44
  token1
45
45
  }
46
+ protocol
46
47
  protocolData {
47
48
  ... on ArenaTradeData {
48
49
  tokenId
49
50
  type
50
51
  }
51
52
  ... on UniswapV4Data {
53
+ isToken0NetworkToken
52
54
  type
53
55
  uniswapV4HookAddress
54
56
  }
@@ -92,6 +94,8 @@ query GetBars(
92
94
  symbol
93
95
  totalSupply
94
96
  }
97
+ isFreezableValid
98
+ isMintableValid
95
99
  isScam
96
100
  launchpad {
97
101
  completed
@@ -110,6 +114,7 @@ query GetBars(
110
114
  mintable
111
115
  name
112
116
  networkId
117
+ pairId
113
118
  socialLinks {
114
119
  bitcointalk
115
120
  blog
@@ -171,6 +176,8 @@ query GetBars(
171
176
  symbol
172
177
  totalSupply
173
178
  }
179
+ isFreezableValid
180
+ isMintableValid
174
181
  isScam
175
182
  launchpad {
176
183
  completed
@@ -189,6 +196,7 @@ query GetBars(
189
196
  mintable
190
197
  name
191
198
  networkId
199
+ pairId
192
200
  socialLinks {
193
201
  bitcointalk
194
202
  blog
@@ -80,6 +80,8 @@ query GetCommunityNotes($input: CommunityNotesInput) {
80
80
  symbol
81
81
  totalSupply
82
82
  }
83
+ isFreezableValid
84
+ isMintableValid
83
85
  isScam
84
86
  launchpad {
85
87
  completed
@@ -98,6 +100,7 @@ query GetCommunityNotes($input: CommunityNotesInput) {
98
100
  mintable
99
101
  name
100
102
  networkId
103
+ pairId
101
104
  socialLinks {
102
105
  bitcointalk
103
106
  blog
@@ -30,12 +30,14 @@ query GetDetailedPairStats(
30
30
  token0
31
31
  token1
32
32
  }
33
+ protocol
33
34
  protocolData {
34
35
  ... on ArenaTradeData {
35
36
  tokenId
36
37
  type
37
38
  }
38
39
  ... on UniswapV4Data {
40
+ isToken0NetworkToken
39
41
  type
40
42
  uniswapV4HookAddress
41
43
  }
@@ -79,6 +81,8 @@ query GetDetailedPairStats(
79
81
  symbol
80
82
  totalSupply
81
83
  }
84
+ isFreezableValid
85
+ isMintableValid
82
86
  isScam
83
87
  launchpad {
84
88
  completed
@@ -97,6 +101,7 @@ query GetDetailedPairStats(
97
101
  mintable
98
102
  name
99
103
  networkId
104
+ pairId
100
105
  socialLinks {
101
106
  bitcointalk
102
107
  blog
@@ -158,6 +163,8 @@ query GetDetailedPairStats(
158
163
  symbol
159
164
  totalSupply
160
165
  }
166
+ isFreezableValid
167
+ isMintableValid
161
168
  isScam
162
169
  launchpad {
163
170
  completed
@@ -176,6 +183,7 @@ query GetDetailedPairStats(
176
183
  mintable
177
184
  name
178
185
  networkId
186
+ pairId
179
187
  socialLinks {
180
188
  bitcointalk
181
189
  blog
@@ -14,12 +14,14 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
14
14
  token0
15
15
  token1
16
16
  }
17
+ protocol
17
18
  protocolData {
18
19
  ... on ArenaTradeData {
19
20
  tokenId
20
21
  type
21
22
  }
22
23
  ... on UniswapV4Data {
24
+ isToken0NetworkToken
23
25
  type
24
26
  uniswapV4HookAddress
25
27
  }
@@ -63,6 +65,8 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
63
65
  symbol
64
66
  totalSupply
65
67
  }
68
+ isFreezableValid
69
+ isMintableValid
66
70
  isScam
67
71
  launchpad {
68
72
  completed
@@ -81,6 +85,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
81
85
  mintable
82
86
  name
83
87
  networkId
88
+ pairId
84
89
  socialLinks {
85
90
  bitcointalk
86
91
  blog
@@ -142,6 +147,8 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
142
147
  symbol
143
148
  totalSupply
144
149
  }
150
+ isFreezableValid
151
+ isMintableValid
145
152
  isScam
146
153
  launchpad {
147
154
  completed
@@ -160,6 +167,7 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
160
167
  mintable
161
168
  name
162
169
  networkId
170
+ pairId
163
171
  socialLinks {
164
172
  bitcointalk
165
173
  blog
@@ -0,0 +1,129 @@
1
+ query GetNetworkConfigs($networkIds: [Int!]) {
2
+ getNetworkConfigs(networkIds: $networkIds) {
3
+ ... on AptosNetworkConfig {
4
+ baseTokenAddress
5
+ baseTokenSymbol
6
+ color
7
+ defaultPairAddress
8
+ defaultPairQuoteToken
9
+ enabled
10
+ explorer {
11
+ checksummed
12
+ icon
13
+ name
14
+ url
15
+ }
16
+ id
17
+ mainnet
18
+ name
19
+ networkIconUrl
20
+ networkId
21
+ networkName
22
+ networkShortName
23
+ networkType
24
+ newTokensEnabled
25
+ stableCoinAddresses
26
+ wrappedBaseTokenSymbol
27
+ }
28
+ ... on EvmNetworkConfig {
29
+ baseTokenAddress
30
+ baseTokenSymbol
31
+ color
32
+ defaultPairAddress
33
+ defaultPairQuoteToken
34
+ enabled
35
+ explorer {
36
+ checksummed
37
+ icon
38
+ name
39
+ url
40
+ }
41
+ id
42
+ mainnet
43
+ name
44
+ networkIconUrl
45
+ networkId
46
+ networkName
47
+ networkShortName
48
+ networkType
49
+ newTokensEnabled
50
+ stableCoinAddresses
51
+ wrappedBaseTokenSymbol
52
+ }
53
+ ... on SolanaNetworkConfig {
54
+ baseTokenAddress
55
+ baseTokenSymbol
56
+ color
57
+ defaultPairAddress
58
+ defaultPairQuoteToken
59
+ enabled
60
+ explorer {
61
+ checksummed
62
+ icon
63
+ name
64
+ url
65
+ }
66
+ id
67
+ mainnet
68
+ name
69
+ networkIconUrl
70
+ networkId
71
+ networkName
72
+ networkShortName
73
+ networkType
74
+ newTokensEnabled
75
+ stableCoinAddresses
76
+ wrappedBaseTokenSymbol
77
+ }
78
+ ... on StarknetNetworkConfig {
79
+ baseTokenAddress
80
+ baseTokenSymbol
81
+ color
82
+ defaultPairAddress
83
+ defaultPairQuoteToken
84
+ enabled
85
+ explorer {
86
+ checksummed
87
+ icon
88
+ name
89
+ url
90
+ }
91
+ id
92
+ mainnet
93
+ name
94
+ networkIconUrl
95
+ networkId
96
+ networkName
97
+ networkShortName
98
+ networkType
99
+ newTokensEnabled
100
+ stableCoinAddresses
101
+ wrappedBaseTokenSymbol
102
+ }
103
+ ... on SuiNetworkConfig {
104
+ baseTokenAddress
105
+ baseTokenSymbol
106
+ color
107
+ defaultPairAddress
108
+ defaultPairQuoteToken
109
+ enabled
110
+ explorer {
111
+ checksummed
112
+ icon
113
+ name
114
+ url
115
+ }
116
+ id
117
+ mainnet
118
+ name
119
+ networkIconUrl
120
+ networkId
121
+ networkName
122
+ networkShortName
123
+ networkType
124
+ newTokensEnabled
125
+ stableCoinAddresses
126
+ wrappedBaseTokenSymbol
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,122 @@
1
+ query GetTokenBars(
2
+ $countback: Int
3
+ $currencyCode: QuoteCurrency
4
+ $from: Int!
5
+ $removeEmptyBars: Boolean
6
+ $removeLeadingNullValues: Boolean
7
+ $resolution: String!
8
+ $statsType: TokenPairStatisticsType
9
+ $symbol: String!
10
+ $to: Int!
11
+ ) {
12
+ getTokenBars(
13
+ countback: $countback
14
+ currencyCode: $currencyCode
15
+ from: $from
16
+ removeEmptyBars: $removeEmptyBars
17
+ removeLeadingNullValues: $removeLeadingNullValues
18
+ resolution: $resolution
19
+ statsType: $statsType
20
+ symbol: $symbol
21
+ to: $to
22
+ ) {
23
+ buyVolume
24
+ buyers
25
+ buys
26
+ c
27
+ h
28
+ l
29
+ liquidity
30
+ o
31
+ s
32
+ sellVolume
33
+ sellers
34
+ sells
35
+ t
36
+ token {
37
+ address
38
+ cmcId
39
+ createBlockNumber
40
+ createTransactionHash
41
+ createdAt
42
+ creatorAddress
43
+ decimals
44
+ exchanges {
45
+ address
46
+ color
47
+ exchangeVersion
48
+ iconUrl
49
+ id
50
+ name
51
+ networkId
52
+ tradeUrl
53
+ }
54
+ freezable
55
+ id
56
+ info {
57
+ address
58
+ circulatingSupply
59
+ cmcId
60
+ description
61
+ id
62
+ imageBannerUrl
63
+ imageLargeUrl
64
+ imageSmallUrl
65
+ imageThumbHash
66
+ imageThumbUrl
67
+ isScam
68
+ name
69
+ networkId
70
+ symbol
71
+ totalSupply
72
+ }
73
+ isFreezableValid
74
+ isMintableValid
75
+ isScam
76
+ launchpad {
77
+ completed
78
+ completedAt
79
+ completedSlot
80
+ graduationPercent
81
+ launchpadIconUrl
82
+ launchpadName
83
+ launchpadProtocol
84
+ migrated
85
+ migratedAt
86
+ migratedPoolAddress
87
+ migratedSlot
88
+ poolAddress
89
+ }
90
+ mintable
91
+ name
92
+ networkId
93
+ pairId
94
+ socialLinks {
95
+ bitcointalk
96
+ blog
97
+ coingecko
98
+ coinmarketcap
99
+ discord
100
+ email
101
+ facebook
102
+ github
103
+ instagram
104
+ linkedin
105
+ reddit
106
+ slack
107
+ telegram
108
+ twitch
109
+ twitter
110
+ website
111
+ wechat
112
+ whitepaper
113
+ youtube
114
+ }
115
+ symbol
116
+ }
117
+ traders
118
+ transactions
119
+ volume
120
+ volumeNativeToken
121
+ }
122
+ }
@@ -1,9 +1,8 @@
1
1
  query GetTokenPrices($inputs: [GetPriceInput]) {
2
2
  getTokenPrices(inputs: $inputs) {
3
3
  address
4
- confidence
4
+ internalPoolAddress
5
5
  networkId
6
- poolAddress
7
6
  priceUsd
8
7
  timestamp
9
8
  }
@@ -46,6 +46,8 @@ query Holders($input: HoldersInput!) {
46
46
  symbol
47
47
  totalSupply
48
48
  }
49
+ isFreezableValid
50
+ isMintableValid
49
51
  isScam
50
52
  launchpad {
51
53
  completed
@@ -64,6 +66,7 @@ query Holders($input: HoldersInput!) {
64
66
  mintable
65
67
  name
66
68
  networkId
69
+ pairId
67
70
  socialLinks {
68
71
  bitcointalk
69
72
  blog
@@ -93,6 +96,7 @@ query Holders($input: HoldersInput!) {
93
96
  walletId
94
97
  }
95
98
  status
99
+ tokenId
96
100
  top10HoldersPercent
97
101
  }
98
102
  }