@codex-data/sdk 1.0.5 → 1.0.6

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 (79) hide show
  1. package/dist/resources/generated_queries/Balances.graphql +1 -0
  2. package/dist/resources/generated_queries/FilterPairs.graphql +44 -0
  3. package/dist/resources/generated_queries/FilterTokens.graphql +33 -0
  4. package/dist/resources/generated_queries/GetBars.graphql +22 -0
  5. package/dist/resources/generated_queries/GetCommunityNotes.graphql +11 -0
  6. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
  7. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
  8. package/dist/resources/generated_queries/GetNetworkStats.graphql +7 -0
  9. package/dist/resources/generated_queries/Holders.graphql +1 -0
  10. package/dist/resources/generated_queries/LiquidityLocks.graphql +1 -1
  11. package/dist/resources/generated_queries/ListPairsForToken.graphql +22 -0
  12. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
  13. package/dist/resources/generated_queries/PairMetadata.graphql +22 -0
  14. package/dist/resources/generated_queries/PrimeHolders.graphql +1 -0
  15. package/dist/resources/generated_queries/Token.graphql +11 -0
  16. package/dist/resources/generated_queries/TokenTopTraders.graphql +26 -0
  17. package/dist/resources/generated_queries/Tokens.graphql +11 -0
  18. package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  19. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  20. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +1 -0
  21. package/dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  22. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +22 -0
  23. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  24. package/dist/resources/graphql.d.ts +238 -6
  25. package/dist/resources/graphql.d.ts.map +1 -1
  26. package/dist/resources/graphql.js +31 -2
  27. package/dist/resources/graphql.js.map +1 -1
  28. package/dist/resources/graphql.schema.json +1627 -18
  29. package/dist/resources/graphql.ts +254 -6
  30. package/dist/resources/schema.graphql +309 -6
  31. package/dist/sdk/Query.d.ts +2 -2
  32. package/dist/sdk/Query.d.ts.map +1 -1
  33. package/dist/sdk/Query.js +1 -1
  34. package/dist/sdk/Query.js.map +1 -1
  35. package/dist/sdk/Subscribe.d.ts +3 -1
  36. package/dist/sdk/Subscribe.d.ts.map +1 -1
  37. package/dist/sdk/Subscribe.js +20 -6
  38. package/dist/sdk/Subscribe.js.map +1 -1
  39. package/dist/sdk/generated/gql.d.ts +63 -49
  40. package/dist/sdk/generated/gql.d.ts.map +1 -1
  41. package/dist/sdk/generated/gql.js +23 -21
  42. package/dist/sdk/generated/gql.js.map +1 -1
  43. package/dist/sdk/generated/graphql.d.ts +723 -56
  44. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  45. package/dist/sdk/generated/graphql.js +56 -25
  46. package/dist/sdk/generated/graphql.js.map +1 -1
  47. package/package.json +2 -2
  48. package/src/resources/generated_queries/Balances.graphql +1 -0
  49. package/src/resources/generated_queries/FilterPairs.graphql +44 -0
  50. package/src/resources/generated_queries/FilterTokens.graphql +33 -0
  51. package/src/resources/generated_queries/GetBars.graphql +22 -0
  52. package/src/resources/generated_queries/GetCommunityNotes.graphql +11 -0
  53. package/src/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
  54. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
  55. package/src/resources/generated_queries/GetNetworkStats.graphql +7 -0
  56. package/src/resources/generated_queries/Holders.graphql +1 -0
  57. package/src/resources/generated_queries/LiquidityLocks.graphql +1 -1
  58. package/src/resources/generated_queries/ListPairsForToken.graphql +22 -0
  59. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
  60. package/src/resources/generated_queries/PairMetadata.graphql +22 -0
  61. package/src/resources/generated_queries/PrimeHolders.graphql +1 -0
  62. package/src/resources/generated_queries/Token.graphql +11 -0
  63. package/src/resources/generated_queries/TokenTopTraders.graphql +26 -0
  64. package/src/resources/generated_queries/Tokens.graphql +11 -0
  65. package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +12 -0
  66. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +7 -1
  67. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +1 -0
  68. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +89 -0
  69. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +22 -0
  70. package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +6 -1
  71. package/src/resources/graphql.schema.json +1627 -18
  72. package/src/resources/graphql.ts +254 -6
  73. package/src/resources/schema.graphql +309 -6
  74. package/src/sdk/Query.ts +4 -4
  75. package/src/sdk/Subscribe.ts +36 -6
  76. package/src/sdk/generated/gql.ts +55 -45
  77. package/src/sdk/generated/graphql.ts +318 -54
  78. package/dist/resources/generated_queries/GetLatestTokens.graphql +0 -39
  79. package/src/resources/generated_queries/GetLatestTokens.graphql +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-data/sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "engines": {
5
5
  "node": ">=17.5.0"
6
6
  },
@@ -65,4 +65,4 @@
65
65
  "prettier": "^3.0.3",
66
66
  "ts-jest": "^29.1.1"
67
67
  }
68
- }
68
+ }
@@ -5,6 +5,7 @@ query Balances($input: BalancesInput!) {
5
5
  address
6
6
  balance
7
7
  firstHeldTimestamp
8
+ networkId
8
9
  shiftedBalance
9
10
  tokenAddress
10
11
  tokenId
@@ -98,6 +98,17 @@ query FilterPairs(
98
98
  totalSupply
99
99
  }
100
100
  isScam
101
+ launchpad {
102
+ completed
103
+ completedAt
104
+ completedSlot
105
+ graduationPercent
106
+ migrated
107
+ migratedAt
108
+ migratedPoolAddress
109
+ migratedSlot
110
+ poolAddress
111
+ }
101
112
  mintable
102
113
  name
103
114
  networkId
@@ -162,6 +173,17 @@ query FilterPairs(
162
173
  totalSupply
163
174
  }
164
175
  isScam
176
+ launchpad {
177
+ completed
178
+ completedAt
179
+ completedSlot
180
+ graduationPercent
181
+ migrated
182
+ migratedAt
183
+ migratedPoolAddress
184
+ migratedSlot
185
+ poolAddress
186
+ }
165
187
  mintable
166
188
  name
167
189
  networkId
@@ -237,6 +259,17 @@ query FilterPairs(
237
259
  totalSupply
238
260
  }
239
261
  isScam
262
+ launchpad {
263
+ completed
264
+ completedAt
265
+ completedSlot
266
+ graduationPercent
267
+ migrated
268
+ migratedAt
269
+ migratedPoolAddress
270
+ migratedSlot
271
+ poolAddress
272
+ }
240
273
  mintable
241
274
  name
242
275
  networkId
@@ -300,6 +333,17 @@ query FilterPairs(
300
333
  totalSupply
301
334
  }
302
335
  isScam
336
+ launchpad {
337
+ completed
338
+ completedAt
339
+ completedSlot
340
+ graduationPercent
341
+ migrated
342
+ migratedAt
343
+ migratedPoolAddress
344
+ migratedSlot
345
+ poolAddress
346
+ }
303
347
  mintable
304
348
  name
305
349
  networkId
@@ -107,6 +107,17 @@ query FilterTokens(
107
107
  totalSupply
108
108
  }
109
109
  isScam
110
+ launchpad {
111
+ completed
112
+ completedAt
113
+ completedSlot
114
+ graduationPercent
115
+ migrated
116
+ migratedAt
117
+ migratedPoolAddress
118
+ migratedSlot
119
+ poolAddress
120
+ }
110
121
  mintable
111
122
  name
112
123
  networkId
@@ -171,6 +182,17 @@ query FilterTokens(
171
182
  totalSupply
172
183
  }
173
184
  isScam
185
+ launchpad {
186
+ completed
187
+ completedAt
188
+ completedSlot
189
+ graduationPercent
190
+ migrated
191
+ migratedAt
192
+ migratedPoolAddress
193
+ migratedSlot
194
+ poolAddress
195
+ }
174
196
  mintable
175
197
  name
176
198
  networkId
@@ -242,6 +264,17 @@ query FilterTokens(
242
264
  totalSupply
243
265
  }
244
266
  isScam
267
+ launchpad {
268
+ completed
269
+ completedAt
270
+ completedSlot
271
+ graduationPercent
272
+ migrated
273
+ migratedAt
274
+ migratedPoolAddress
275
+ migratedSlot
276
+ poolAddress
277
+ }
245
278
  mintable
246
279
  name
247
280
  networkId
@@ -82,6 +82,17 @@ query GetBars(
82
82
  totalSupply
83
83
  }
84
84
  isScam
85
+ launchpad {
86
+ completed
87
+ completedAt
88
+ completedSlot
89
+ graduationPercent
90
+ migrated
91
+ migratedAt
92
+ migratedPoolAddress
93
+ migratedSlot
94
+ poolAddress
95
+ }
85
96
  mintable
86
97
  name
87
98
  networkId
@@ -146,6 +157,17 @@ query GetBars(
146
157
  totalSupply
147
158
  }
148
159
  isScam
160
+ launchpad {
161
+ completed
162
+ completedAt
163
+ completedSlot
164
+ graduationPercent
165
+ migrated
166
+ migratedAt
167
+ migratedPoolAddress
168
+ migratedSlot
169
+ poolAddress
170
+ }
149
171
  mintable
150
172
  name
151
173
  networkId
@@ -80,6 +80,17 @@ query GetCommunityNotes($input: CommunityNotesInput) {
80
80
  totalSupply
81
81
  }
82
82
  isScam
83
+ launchpad {
84
+ completed
85
+ completedAt
86
+ completedSlot
87
+ graduationPercent
88
+ migrated
89
+ migratedAt
90
+ migratedPoolAddress
91
+ migratedSlot
92
+ poolAddress
93
+ }
83
94
  mintable
84
95
  name
85
96
  networkId
@@ -69,6 +69,17 @@ query GetDetailedPairStats(
69
69
  totalSupply
70
70
  }
71
71
  isScam
72
+ launchpad {
73
+ completed
74
+ completedAt
75
+ completedSlot
76
+ graduationPercent
77
+ migrated
78
+ migratedAt
79
+ migratedPoolAddress
80
+ migratedSlot
81
+ poolAddress
82
+ }
72
83
  mintable
73
84
  name
74
85
  networkId
@@ -133,6 +144,17 @@ query GetDetailedPairStats(
133
144
  totalSupply
134
145
  }
135
146
  isScam
147
+ launchpad {
148
+ completed
149
+ completedAt
150
+ completedSlot
151
+ graduationPercent
152
+ migrated
153
+ migratedAt
154
+ migratedPoolAddress
155
+ migratedSlot
156
+ poolAddress
157
+ }
136
158
  mintable
137
159
  name
138
160
  networkId
@@ -53,6 +53,17 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
53
53
  totalSupply
54
54
  }
55
55
  isScam
56
+ launchpad {
57
+ completed
58
+ completedAt
59
+ completedSlot
60
+ graduationPercent
61
+ migrated
62
+ migratedAt
63
+ migratedPoolAddress
64
+ migratedSlot
65
+ poolAddress
66
+ }
56
67
  mintable
57
68
  name
58
69
  networkId
@@ -117,6 +128,17 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
117
128
  totalSupply
118
129
  }
119
130
  isScam
131
+ launchpad {
132
+ completed
133
+ completedAt
134
+ completedSlot
135
+ graduationPercent
136
+ migrated
137
+ migratedAt
138
+ migratedPoolAddress
139
+ migratedSlot
140
+ poolAddress
141
+ }
120
142
  mintable
121
143
  name
122
144
  networkId
@@ -3,11 +3,18 @@ query GetNetworkStats($exchangeAddress: String, $networkId: Int!) {
3
3
  liquidity
4
4
  transactions1
5
5
  transactions4
6
+ transactions5m
6
7
  transactions12
7
8
  transactions24
8
9
  volume1
9
10
  volume4
11
+ volume5m
10
12
  volume12
11
13
  volume24
14
+ volumeChange1
15
+ volumeChange4
16
+ volumeChange5m
17
+ volumeChange12
18
+ volumeChange24
12
19
  }
13
20
  }
@@ -6,6 +6,7 @@ query Holders($input: HoldersInput!) {
6
6
  address
7
7
  balance
8
8
  firstHeldTimestamp
9
+ networkId
9
10
  shiftedBalance
10
11
  tokenAddress
11
12
  tokenId
@@ -14,7 +14,7 @@ query LiquidityLocks($cursor: String, $networkId: Int!, $pairAddress: String!) {
14
14
  nftPositionManagerAddress
15
15
  nftTokenId
16
16
  }
17
- liquidityProtocol
17
+ liquidityProtocolV2
18
18
  lockProtocol
19
19
  lockerAddress
20
20
  networkId
@@ -53,6 +53,17 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
53
53
  totalSupply
54
54
  }
55
55
  isScam
56
+ launchpad {
57
+ completed
58
+ completedAt
59
+ completedSlot
60
+ graduationPercent
61
+ migrated
62
+ migratedAt
63
+ migratedPoolAddress
64
+ migratedSlot
65
+ poolAddress
66
+ }
56
67
  mintable
57
68
  name
58
69
  networkId
@@ -117,6 +128,17 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
117
128
  totalSupply
118
129
  }
119
130
  isScam
131
+ launchpad {
132
+ completed
133
+ completedAt
134
+ completedSlot
135
+ graduationPercent
136
+ migrated
137
+ migratedAt
138
+ migratedPoolAddress
139
+ migratedSlot
140
+ poolAddress
141
+ }
120
142
  mintable
121
143
  name
122
144
  networkId
@@ -46,6 +46,17 @@ query ListPairsWithMetadataForToken(
46
46
  totalSupply
47
47
  }
48
48
  isScam
49
+ launchpad {
50
+ completed
51
+ completedAt
52
+ completedSlot
53
+ graduationPercent
54
+ migrated
55
+ migratedAt
56
+ migratedPoolAddress
57
+ migratedSlot
58
+ poolAddress
59
+ }
49
60
  mintable
50
61
  name
51
62
  networkId
@@ -133,6 +144,17 @@ query ListPairsWithMetadataForToken(
133
144
  totalSupply
134
145
  }
135
146
  isScam
147
+ launchpad {
148
+ completed
149
+ completedAt
150
+ completedSlot
151
+ graduationPercent
152
+ migrated
153
+ migratedAt
154
+ migratedPoolAddress
155
+ migratedSlot
156
+ poolAddress
157
+ }
136
158
  mintable
137
159
  name
138
160
  networkId
@@ -197,6 +219,17 @@ query ListPairsWithMetadataForToken(
197
219
  totalSupply
198
220
  }
199
221
  isScam
222
+ launchpad {
223
+ completed
224
+ completedAt
225
+ completedSlot
226
+ graduationPercent
227
+ migrated
228
+ migratedAt
229
+ migratedPoolAddress
230
+ migratedSlot
231
+ poolAddress
232
+ }
200
233
  mintable
201
234
  name
202
235
  networkId
@@ -262,6 +295,17 @@ query ListPairsWithMetadataForToken(
262
295
  totalSupply
263
296
  }
264
297
  isScam
298
+ launchpad {
299
+ completed
300
+ completedAt
301
+ completedSlot
302
+ graduationPercent
303
+ migrated
304
+ migratedAt
305
+ migratedPoolAddress
306
+ migratedSlot
307
+ poolAddress
308
+ }
265
309
  mintable
266
310
  name
267
311
  networkId
@@ -46,6 +46,17 @@ query PairMetadata(
46
46
  totalSupply
47
47
  }
48
48
  isScam
49
+ launchpad {
50
+ completed
51
+ completedAt
52
+ completedSlot
53
+ graduationPercent
54
+ migrated
55
+ migratedAt
56
+ migratedPoolAddress
57
+ migratedSlot
58
+ poolAddress
59
+ }
49
60
  mintable
50
61
  name
51
62
  networkId
@@ -109,6 +120,17 @@ query PairMetadata(
109
120
  totalSupply
110
121
  }
111
122
  isScam
123
+ launchpad {
124
+ completed
125
+ completedAt
126
+ completedSlot
127
+ graduationPercent
128
+ migrated
129
+ migratedAt
130
+ migratedPoolAddress
131
+ migratedSlot
132
+ poolAddress
133
+ }
112
134
  mintable
113
135
  name
114
136
  networkId
@@ -6,6 +6,7 @@ query PrimeHolders($cursor: String) {
6
6
  address
7
7
  balance
8
8
  firstHeldTimestamp
9
+ networkId
9
10
  shiftedBalance
10
11
  tokenAddress
11
12
  tokenId
@@ -36,6 +36,17 @@ query Token($input: TokenInput!) {
36
36
  totalSupply
37
37
  }
38
38
  isScam
39
+ launchpad {
40
+ completed
41
+ completedAt
42
+ completedSlot
43
+ graduationPercent
44
+ migrated
45
+ migratedAt
46
+ migratedPoolAddress
47
+ migratedSlot
48
+ poolAddress
49
+ }
39
50
  mintable
40
51
  name
41
52
  networkId
@@ -0,0 +1,26 @@
1
+ query TokenTopTraders($input: TokenTopTradersInput!) {
2
+ tokenTopTraders(input: $input) {
3
+ items {
4
+ amountBoughtUsd
5
+ amountSoldUsd
6
+ buys
7
+ firstTransactionAt
8
+ lastTransactionAt
9
+ networkId
10
+ realizedProfitPercentage
11
+ realizedProfitUsd
12
+ sells
13
+ singleTokenAcquisitionCostUsd
14
+ tokenAddress
15
+ tokenAmountBought
16
+ tokenAmountSold
17
+ tokenBalance
18
+ volumeUsd
19
+ walletAddress
20
+ }
21
+ networkId
22
+ offset
23
+ tokenAddress
24
+ tradingPeriod
25
+ }
26
+ }
@@ -36,6 +36,17 @@ query Tokens($ids: [TokenInput!]) {
36
36
  totalSupply
37
37
  }
38
38
  isScam
39
+ launchpad {
40
+ completed
41
+ completedAt
42
+ completedSlot
43
+ graduationPercent
44
+ migrated
45
+ migratedAt
46
+ migratedPoolAddress
47
+ migratedSlot
48
+ poolAddress
49
+ }
39
50
  mintable
40
51
  name
41
52
  networkId
@@ -0,0 +1,12 @@
1
+ subscription OnBalanceUpdated($walletAddress: String!) {
2
+ onBalanceUpdated(walletAddress: $walletAddress) {
3
+ address
4
+ balance
5
+ firstHeldTimestamp
6
+ networkId
7
+ shiftedBalance
8
+ tokenAddress
9
+ tokenId
10
+ walletId
11
+ }
12
+ }
@@ -1,9 +1,15 @@
1
1
  subscription OnEventsCreated(
2
2
  $address: String
3
3
  $id: String
4
+ $networkId: Int
4
5
  $quoteToken: QuoteToken
5
6
  ) {
6
- onEventsCreated(address: $address, id: $id, quoteToken: $quoteToken) {
7
+ onEventsCreated(
8
+ address: $address
9
+ id: $id
10
+ networkId: $networkId
11
+ quoteToken: $quoteToken
12
+ ) {
7
13
  address
8
14
  events {
9
15
  address
@@ -4,6 +4,7 @@ subscription OnHoldersUpdated($tokenId: String!) {
4
4
  address
5
5
  balance
6
6
  firstHeldTimestamp
7
+ networkId
7
8
  shiftedBalance
8
9
  tokenAddress
9
10
  tokenId
@@ -0,0 +1,89 @@
1
+ subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
2
+ onLaunchpadTokenEvent(input: $input) {
3
+ address
4
+ buyCount1
5
+ eventType
6
+ holders
7
+ marketCap
8
+ networkId
9
+ price
10
+ protocol
11
+ sellCount1
12
+ token {
13
+ address
14
+ cmcId
15
+ createBlockNumber
16
+ createTransactionHash
17
+ createdAt
18
+ creatorAddress
19
+ decimals
20
+ exchanges {
21
+ address
22
+ color
23
+ exchangeVersion
24
+ iconUrl
25
+ id
26
+ name
27
+ networkId
28
+ tradeUrl
29
+ }
30
+ freezable
31
+ id
32
+ info {
33
+ address
34
+ circulatingSupply
35
+ cmcId
36
+ description
37
+ id
38
+ imageBannerUrl
39
+ imageLargeUrl
40
+ imageSmallUrl
41
+ imageThumbUrl
42
+ isScam
43
+ name
44
+ networkId
45
+ symbol
46
+ totalSupply
47
+ }
48
+ isScam
49
+ launchpad {
50
+ completed
51
+ completedAt
52
+ completedSlot
53
+ graduationPercent
54
+ migrated
55
+ migratedAt
56
+ migratedPoolAddress
57
+ migratedSlot
58
+ poolAddress
59
+ }
60
+ mintable
61
+ name
62
+ networkId
63
+ socialLinks {
64
+ bitcointalk
65
+ blog
66
+ coingecko
67
+ coinmarketcap
68
+ discord
69
+ email
70
+ facebook
71
+ github
72
+ instagram
73
+ linkedin
74
+ reddit
75
+ slack
76
+ telegram
77
+ twitch
78
+ twitter
79
+ website
80
+ wechat
81
+ whitepaper
82
+ youtube
83
+ }
84
+ symbol
85
+ }
86
+ transactions1
87
+ volume1
88
+ }
89
+ }
@@ -46,6 +46,17 @@ subscription OnPairMetadataUpdated(
46
46
  totalSupply
47
47
  }
48
48
  isScam
49
+ launchpad {
50
+ completed
51
+ completedAt
52
+ completedSlot
53
+ graduationPercent
54
+ migrated
55
+ migratedAt
56
+ migratedPoolAddress
57
+ migratedSlot
58
+ poolAddress
59
+ }
49
60
  mintable
50
61
  name
51
62
  networkId
@@ -109,6 +120,17 @@ subscription OnPairMetadataUpdated(
109
120
  totalSupply
110
121
  }
111
122
  isScam
123
+ launchpad {
124
+ completed
125
+ completedAt
126
+ completedSlot
127
+ graduationPercent
128
+ migrated
129
+ migratedAt
130
+ migratedPoolAddress
131
+ migratedSlot
132
+ poolAddress
133
+ }
112
134
  mintable
113
135
  name
114
136
  networkId