@codex-data/sdk 1.0.34 → 1.0.36

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 (53) hide show
  1. package/dist/resources/graphql.d.ts +0 -10
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js.map +1 -1
  4. package/dist/sdk/Query.d.ts +4 -1
  5. package/dist/sdk/Query.d.ts.map +1 -1
  6. package/dist/sdk/Query.js +3 -0
  7. package/dist/sdk/Query.js.map +1 -1
  8. package/dist/sdk/Subscribe.js +9 -9
  9. package/dist/sdk/generated/gql.d.ts +65 -50
  10. package/dist/sdk/generated/gql.d.ts.map +1 -1
  11. package/dist/sdk/generated/gql.js +28 -25
  12. package/dist/sdk/generated/gql.js.map +1 -1
  13. package/dist/sdk/generated/graphql.d.ts +409 -29
  14. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  15. package/dist/sdk/generated/graphql.js +31 -28
  16. package/dist/sdk/generated/graphql.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/resources/generated_queries/Balances.graphql +2 -0
  19. package/src/resources/generated_queries/Blocks.graphql +7 -0
  20. package/src/resources/generated_queries/FilterPairs.graphql +10 -0
  21. package/src/resources/generated_queries/FilterTokens.graphql +15 -0
  22. package/src/resources/generated_queries/GetBars.graphql +6 -0
  23. package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  24. package/src/resources/generated_queries/GetDetailedPairStats.graphql +6 -0
  25. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +6 -0
  26. package/src/resources/generated_queries/GetNetworkConfigs.graphql +129 -0
  27. package/src/resources/generated_queries/GetTokenBars.graphql +121 -0
  28. package/src/resources/generated_queries/GetTokenPrices.graphql +0 -2
  29. package/src/resources/generated_queries/Holders.graphql +2 -0
  30. package/src/resources/generated_queries/ListPairsForToken.graphql +6 -0
  31. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +10 -0
  32. package/src/resources/generated_queries/PairMetadata.graphql +5 -4
  33. package/src/resources/generated_queries/PrimeHolders.graphql +2 -0
  34. package/src/resources/generated_queries/Token.graphql +2 -0
  35. package/src/resources/generated_queries/TokenSparklines.graphql +1 -0
  36. package/src/resources/generated_queries/Tokens.graphql +2 -0
  37. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +2 -0
  38. package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +0 -2
  39. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +2 -0
  40. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +2 -0
  41. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +5 -4
  42. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +0 -2
  43. package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +0 -2
  44. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +0 -3
  45. package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +45 -0
  46. package/src/resources/graphql.schema.json +0 -60
  47. package/src/resources/graphql.ts +0 -10
  48. package/src/resources/queries_override/GetNetworkConfigs.graphql +129 -0
  49. package/src/resources/schema.graphql +0 -10
  50. package/src/sdk/Query.ts +12 -0
  51. package/src/sdk/Subscribe.ts +9 -9
  52. package/src/sdk/generated/gql.ts +93 -75
  53. package/src/sdk/generated/graphql.ts +82 -60
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.36",
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
@@ -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
@@ -191,6 +195,8 @@ query FilterPairs(
191
195
  symbol
192
196
  totalSupply
193
197
  }
198
+ isFreezableValid
199
+ isMintableValid
194
200
  isScam
195
201
  launchpad {
196
202
  completed
@@ -287,6 +293,8 @@ query FilterPairs(
287
293
  symbol
288
294
  totalSupply
289
295
  }
296
+ isFreezableValid
297
+ isMintableValid
290
298
  isScam
291
299
  launchpad {
292
300
  completed
@@ -365,6 +373,8 @@ query FilterPairs(
365
373
  symbol
366
374
  totalSupply
367
375
  }
376
+ isFreezableValid
377
+ isMintableValid
368
378
  isScam
369
379
  launchpad {
370
380
  completed
@@ -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
@@ -195,6 +199,8 @@ query FilterTokens(
195
199
  symbol
196
200
  totalSupply
197
201
  }
202
+ isFreezableValid
203
+ isMintableValid
198
204
  isScam
199
205
  launchpad {
200
206
  completed
@@ -238,6 +244,7 @@ query FilterTokens(
238
244
  }
239
245
  }
240
246
  liquidPairLiquidity
247
+ liquidPairPriceUSD
241
248
  liquidity
242
249
  low1
243
250
  low4
@@ -256,12 +263,14 @@ query FilterTokens(
256
263
  token0
257
264
  token1
258
265
  }
266
+ protocol
259
267
  protocolData {
260
268
  ... on ArenaTradeData {
261
269
  tokenId
262
270
  type
263
271
  }
264
272
  ... on UniswapV4Data {
273
+ isToken0NetworkToken
265
274
  type
266
275
  uniswapV4HookAddress
267
276
  }
@@ -305,6 +314,8 @@ query FilterTokens(
305
314
  symbol
306
315
  totalSupply
307
316
  }
317
+ isFreezableValid
318
+ isMintableValid
308
319
  isScam
309
320
  launchpad {
310
321
  completed
@@ -384,6 +395,8 @@ query FilterTokens(
384
395
  symbol
385
396
  totalSupply
386
397
  }
398
+ isFreezableValid
399
+ isMintableValid
387
400
  isScam
388
401
  launchpad {
389
402
  completed
@@ -477,6 +490,8 @@ query FilterTokens(
477
490
  symbol
478
491
  totalSupply
479
492
  }
493
+ isFreezableValid
494
+ isMintableValid
480
495
  isScam
481
496
  launchpad {
482
497
  completed
@@ -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
@@ -171,6 +175,8 @@ query GetBars(
171
175
  symbol
172
176
  totalSupply
173
177
  }
178
+ isFreezableValid
179
+ isMintableValid
174
180
  isScam
175
181
  launchpad {
176
182
  completed
@@ -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
@@ -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
@@ -158,6 +162,8 @@ query GetDetailedPairStats(
158
162
  symbol
159
163
  totalSupply
160
164
  }
165
+ isFreezableValid
166
+ isMintableValid
161
167
  isScam
162
168
  launchpad {
163
169
  completed
@@ -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
@@ -142,6 +146,8 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
142
146
  symbol
143
147
  totalSupply
144
148
  }
149
+ isFreezableValid
150
+ isMintableValid
145
151
  isScam
146
152
  launchpad {
147
153
  completed
@@ -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,121 @@
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
+ socialLinks {
94
+ bitcointalk
95
+ blog
96
+ coingecko
97
+ coinmarketcap
98
+ discord
99
+ email
100
+ facebook
101
+ github
102
+ instagram
103
+ linkedin
104
+ reddit
105
+ slack
106
+ telegram
107
+ twitch
108
+ twitter
109
+ website
110
+ wechat
111
+ whitepaper
112
+ youtube
113
+ }
114
+ symbol
115
+ }
116
+ traders
117
+ transactions
118
+ volume
119
+ volumeNativeToken
120
+ }
121
+ }
@@ -1,9 +1,7 @@
1
1
  query GetTokenPrices($inputs: [GetPriceInput]) {
2
2
  getTokenPrices(inputs: $inputs) {
3
3
  address
4
- confidence
5
4
  networkId
6
- poolAddress
7
5
  priceUsd
8
6
  timestamp
9
7
  }
@@ -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
@@ -14,12 +14,14 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
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 ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
63
65
  symbol
64
66
  totalSupply
65
67
  }
68
+ isFreezableValid
69
+ isMintableValid
66
70
  isScam
67
71
  launchpad {
68
72
  completed
@@ -142,6 +146,8 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
142
146
  symbol
143
147
  totalSupply
144
148
  }
149
+ isFreezableValid
150
+ isMintableValid
145
151
  isScam
146
152
  launchpad {
147
153
  completed
@@ -46,6 +46,8 @@ query ListPairsWithMetadataForToken(
46
46
  symbol
47
47
  totalSupply
48
48
  }
49
+ isFreezableValid
50
+ isMintableValid
49
51
  isScam
50
52
  launchpad {
51
53
  completed
@@ -109,12 +111,14 @@ query ListPairsWithMetadataForToken(
109
111
  token0
110
112
  token1
111
113
  }
114
+ protocol
112
115
  protocolData {
113
116
  ... on ArenaTradeData {
114
117
  tokenId
115
118
  type
116
119
  }
117
120
  ... on UniswapV4Data {
121
+ isToken0NetworkToken
118
122
  type
119
123
  uniswapV4HookAddress
120
124
  }
@@ -158,6 +162,8 @@ query ListPairsWithMetadataForToken(
158
162
  symbol
159
163
  totalSupply
160
164
  }
165
+ isFreezableValid
166
+ isMintableValid
161
167
  isScam
162
168
  launchpad {
163
169
  completed
@@ -237,6 +243,8 @@ query ListPairsWithMetadataForToken(
237
243
  symbol
238
244
  totalSupply
239
245
  }
246
+ isFreezableValid
247
+ isMintableValid
240
248
  isScam
241
249
  launchpad {
242
250
  completed
@@ -317,6 +325,8 @@ query ListPairsWithMetadataForToken(
317
325
  symbol
318
326
  totalSupply
319
327
  }
328
+ isFreezableValid
329
+ isMintableValid
320
330
  isScam
321
331
  launchpad {
322
332
  completed
@@ -46,6 +46,8 @@ query PairMetadata(
46
46
  symbol
47
47
  totalSupply
48
48
  }
49
+ isFreezableValid
50
+ isMintableValid
49
51
  isScam
50
52
  launchpad {
51
53
  completed
@@ -124,6 +126,8 @@ query PairMetadata(
124
126
  symbol
125
127
  totalSupply
126
128
  }
129
+ isFreezableValid
130
+ isMintableValid
127
131
  isScam
128
132
  launchpad {
129
133
  completed
@@ -168,7 +172,6 @@ query PairMetadata(
168
172
  exchangeId
169
173
  fee
170
174
  highPrice1
171
- highPrice1w
172
175
  highPrice4
173
176
  highPrice5m
174
177
  highPrice12
@@ -177,7 +180,6 @@ query PairMetadata(
177
180
  liquidity
178
181
  liquidityToken
179
182
  lowPrice1
180
- lowPrice1w
181
183
  lowPrice4
182
184
  lowPrice5m
183
185
  lowPrice12
@@ -187,11 +189,11 @@ query PairMetadata(
187
189
  pairAddress
188
190
  price
189
191
  priceChange1
190
- priceChange1w
191
192
  priceChange4
192
193
  priceChange5m
193
194
  priceChange12
194
195
  priceChange24
196
+ priceNonQuoteToken
195
197
  quoteToken
196
198
  statsType
197
199
  tickSpacing
@@ -224,7 +226,6 @@ query PairMetadata(
224
226
  symbol
225
227
  }
226
228
  volume1
227
- volume1w
228
229
  volume4
229
230
  volume5m
230
231
  volume12
@@ -46,6 +46,8 @@ query PrimeHolders($cursor: String) {
46
46
  symbol
47
47
  totalSupply
48
48
  }
49
+ isFreezableValid
50
+ isMintableValid
49
51
  isScam
50
52
  launchpad {
51
53
  completed
@@ -36,6 +36,8 @@ query Token($input: TokenInput!) {
36
36
  symbol
37
37
  totalSupply
38
38
  }
39
+ isFreezableValid
40
+ isMintableValid
39
41
  isScam
40
42
  launchpad {
41
43
  completed
@@ -2,6 +2,7 @@ query TokenSparklines($input: TokenSparklineInput!) {
2
2
  tokenSparklines(input: $input) {
3
3
  attribute
4
4
  id
5
+ resolution
5
6
  sparkline {
6
7
  timestamp
7
8
  value
@@ -36,6 +36,8 @@ query Tokens($ids: [TokenInput!]) {
36
36
  symbol
37
37
  totalSupply
38
38
  }
39
+ isFreezableValid
40
+ isMintableValid
39
41
  isScam
40
42
  launchpad {
41
43
  completed