@codex-data/sdk 1.0.6 → 1.0.8

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 (158) hide show
  1. package/dist/resources/graphql.d.ts +1336 -16
  2. package/dist/resources/graphql.d.ts.map +1 -1
  3. package/dist/resources/graphql.js +224 -1
  4. package/dist/resources/graphql.js.map +1 -1
  5. package/dist/scripts/generateGraphql.js +3 -4
  6. package/dist/scripts/generateGraphql.js.map +1 -1
  7. package/dist/sdk/Mutation.d.ts +1 -1
  8. package/dist/sdk/Mutation.d.ts.map +1 -1
  9. package/dist/sdk/Mutation.js +1 -1
  10. package/dist/sdk/Mutation.js.map +1 -1
  11. package/dist/sdk/Query.d.ts +54 -50
  12. package/dist/sdk/Query.d.ts.map +1 -1
  13. package/dist/sdk/Query.js +53 -49
  14. package/dist/sdk/Query.js.map +1 -1
  15. package/dist/sdk/Subscribe.d.ts +18 -17
  16. package/dist/sdk/Subscribe.d.ts.map +1 -1
  17. package/dist/sdk/Subscribe.js +170 -76
  18. package/dist/sdk/Subscribe.js.map +1 -1
  19. package/dist/sdk/generated/gql.d.ts +69 -34
  20. package/dist/sdk/generated/gql.d.ts.map +1 -1
  21. package/dist/sdk/generated/gql.js +22 -17
  22. package/dist/sdk/generated/gql.js.map +1 -1
  23. package/dist/sdk/generated/graphql.d.ts +2002 -17
  24. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  25. package/dist/sdk/generated/graphql.js +248 -20
  26. package/dist/sdk/generated/graphql.js.map +1 -1
  27. package/dist/sdk/index.d.ts +11 -3
  28. package/dist/sdk/index.d.ts.map +1 -1
  29. package/dist/sdk/index.js +33 -19
  30. package/dist/sdk/index.js.map +1 -1
  31. package/dist/sdk/index.test.js +2 -2
  32. package/dist/sdk/index.test.js.map +1 -1
  33. package/package.json +1 -2
  34. package/src/resources/generated_queries/DetailedWalletStats.graphql +197 -0
  35. package/src/resources/generated_queries/FilterPairs.graphql +20 -0
  36. package/src/resources/generated_queries/FilterTokenWallets.graphql +139 -0
  37. package/src/resources/generated_queries/FilterTokens.graphql +21 -0
  38. package/src/resources/generated_queries/FilterWallets.graphql +56 -0
  39. package/src/resources/generated_queries/GetBars.graphql +4 -1
  40. package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
  41. package/src/resources/generated_queries/GetDetailedPairStats.graphql +4 -0
  42. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +4 -0
  43. package/src/resources/generated_queries/GetTokenEvents.graphql +1 -0
  44. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +1 -0
  45. package/src/resources/generated_queries/ListPairsForToken.graphql +4 -0
  46. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +8 -0
  47. package/src/resources/generated_queries/PairMetadata.graphql +4 -0
  48. package/src/resources/generated_queries/Token.graphql +2 -0
  49. package/src/resources/generated_queries/Tokens.graphql +2 -0
  50. package/src/resources/generated_queries/WalletChart.graphql +19 -0
  51. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +1 -0
  52. package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +2 -0
  53. package/{dist/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql → src/resources/generated_subscriptions/OnLaunchpadTokenEventBatch.graphql} +4 -2
  54. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +4 -0
  55. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +1 -0
  56. package/src/resources/graphql.schema.json +16044 -7731
  57. package/src/resources/graphql.ts +1378 -16
  58. package/src/resources/schema.graphql +1882 -25
  59. package/src/resources/subscriptions_override/OnLaunchpadTokenEventBatch.graphql +91 -0
  60. package/src/scripts/generateGraphql.ts +2 -4
  61. package/src/sdk/Mutation.ts +2 -2
  62. package/src/sdk/Query.ts +120 -104
  63. package/src/sdk/Subscribe.ts +217 -115
  64. package/src/sdk/generated/gql.ts +59 -34
  65. package/src/sdk/generated/graphql.ts +1450 -50
  66. package/src/sdk/index.test.ts +3 -3
  67. package/src/sdk/index.ts +69 -18
  68. package/dist/resources/generated_mutations/CreateApiTokens.graphql +0 -9
  69. package/dist/resources/generated_mutations/CreateWebhooks.graphql +0 -472
  70. package/dist/resources/generated_mutations/DeleteApiToken.graphql +0 -3
  71. package/dist/resources/generated_mutations/DeleteWebhooks.graphql +0 -5
  72. package/dist/resources/generated_queries/ApiToken.graphql +0 -9
  73. package/dist/resources/generated_queries/ApiTokens.graphql +0 -9
  74. package/dist/resources/generated_queries/Balances.graphql +0 -15
  75. package/dist/resources/generated_queries/ChartUrls.graphql +0 -7
  76. package/dist/resources/generated_queries/FilterExchanges.graphql +0 -43
  77. package/dist/resources/generated_queries/FilterNftCollections.graphql +0 -569
  78. package/dist/resources/generated_queries/FilterNftParallelAssets.graphql +0 -60
  79. package/dist/resources/generated_queries/FilterNftPoolCollections.graphql +0 -71
  80. package/dist/resources/generated_queries/FilterNftPools.graphql +0 -124
  81. package/dist/resources/generated_queries/FilterPairs.graphql +0 -399
  82. package/dist/resources/generated_queries/FilterTokens.graphql +0 -336
  83. package/dist/resources/generated_queries/GetBars.graphql +0 -209
  84. package/dist/resources/generated_queries/GetCommunityNotes.graphql +0 -133
  85. package/dist/resources/generated_queries/GetDetailedNftStats.graphql +0 -831
  86. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +0 -966
  87. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +0 -950
  88. package/dist/resources/generated_queries/GetEventLabels.graphql +0 -35
  89. package/dist/resources/generated_queries/GetExchanges.graphql +0 -12
  90. package/dist/resources/generated_queries/GetNetworkStats.graphql +0 -20
  91. package/dist/resources/generated_queries/GetNetworkStatus.graphql +0 -8
  92. package/dist/resources/generated_queries/GetNetworks.graphql +0 -7
  93. package/dist/resources/generated_queries/GetNftAssets.graphql +0 -59
  94. package/dist/resources/generated_queries/GetNftCollectionMetadata.graphql +0 -75
  95. package/dist/resources/generated_queries/GetNftContracts.graphql +0 -39
  96. package/dist/resources/generated_queries/GetNftEvents.graphql +0 -100
  97. package/dist/resources/generated_queries/GetNftPool.graphql +0 -74
  98. package/dist/resources/generated_queries/GetNftPoolCollection.graphql +0 -33
  99. package/dist/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +0 -38
  100. package/dist/resources/generated_queries/GetNftPoolEvents.graphql +0 -416
  101. package/dist/resources/generated_queries/GetNftPoolStats.graphql +0 -40
  102. package/dist/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +0 -89
  103. package/dist/resources/generated_queries/GetNftPoolsByOwner.graphql +0 -89
  104. package/dist/resources/generated_queries/GetParallelCardChanges.graphql +0 -57
  105. package/dist/resources/generated_queries/GetPrimePoolAssets.graphql +0 -32
  106. package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +0 -156
  107. package/dist/resources/generated_queries/GetPrimePools.graphql +0 -62
  108. package/dist/resources/generated_queries/GetSimulateTokenContractResults.graphql +0 -128
  109. package/dist/resources/generated_queries/GetSymbol.graphql +0 -11
  110. package/dist/resources/generated_queries/GetTokenEvents.graphql +0 -100
  111. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +0 -100
  112. package/dist/resources/generated_queries/GetTokenPrices.graphql +0 -10
  113. package/dist/resources/generated_queries/GetWebhooks.graphql +0 -134
  114. package/dist/resources/generated_queries/Holders.graphql +0 -18
  115. package/dist/resources/generated_queries/LiquidityLocks.graphql +0 -26
  116. package/dist/resources/generated_queries/LiquidityMetadata.graphql +0 -17
  117. package/dist/resources/generated_queries/ListPairsForToken.graphql +0 -169
  118. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +0 -338
  119. package/dist/resources/generated_queries/ListTopTokens.graphql +0 -55
  120. package/dist/resources/generated_queries/NftHolders.graphql +0 -12
  121. package/dist/resources/generated_queries/PairMetadata.graphql +0 -225
  122. package/dist/resources/generated_queries/PrimeHolders.graphql +0 -16
  123. package/dist/resources/generated_queries/SearchNfts.graphql +0 -35
  124. package/dist/resources/generated_queries/Token.graphql +0 -76
  125. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +0 -34
  126. package/dist/resources/generated_queries/TokenSparklines.graphql +0 -10
  127. package/dist/resources/generated_queries/TokenTopTraders.graphql +0 -26
  128. package/dist/resources/generated_queries/Tokens.graphql +0 -76
  129. package/dist/resources/generated_queries/Top10HoldersPercent.graphql +0 -3
  130. package/dist/resources/generated_queries/WalletNftCollectionAssets.graphql +0 -11
  131. package/dist/resources/generated_queries/WalletNftCollections.graphql +0 -10
  132. package/dist/resources/generated_subscriptions/OnBalanceUpdated.graphql +0 -12
  133. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +0 -555
  134. package/dist/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +0 -332
  135. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +0 -22
  136. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +0 -103
  137. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +0 -18
  138. package/dist/resources/generated_subscriptions/OnLatestPairUpdated.graphql +0 -42
  139. package/dist/resources/generated_subscriptions/OnLatestTokens.graphql +0 -37
  140. package/dist/resources/generated_subscriptions/OnNftAssetsCreated.graphql +0 -42
  141. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +0 -82
  142. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +0 -412
  143. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +0 -225
  144. package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +0 -18
  145. package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +0 -10
  146. package/dist/resources/generated_subscriptions/OnSimulateTokenContract.graphql +0 -121
  147. package/dist/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +0 -556
  148. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +0 -90
  149. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +0 -30
  150. package/dist/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +0 -70
  151. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +0 -50
  152. package/dist/resources/graphql.schema.json +0 -55231
  153. package/dist/resources/graphql.ts +0 -8865
  154. package/dist/resources/mutations_override/CreateWebhooks.graphql +0 -472
  155. package/dist/resources/queries_override/GetEventLabels.graphql +0 -35
  156. package/dist/resources/queries_override/GetWebhooks.graphql +0 -134
  157. package/dist/resources/schema.graphql +0 -11771
  158. package/dist/resources/subscriptions_override/OnEventLabelCreated.graphql +0 -22
@@ -0,0 +1,56 @@
1
+ query FilterWallets($input: FilterWalletsInput!) {
2
+ filterWallets(input: $input) {
3
+ count
4
+ offset
5
+ results {
6
+ address
7
+ averageProfitUsdPerTrade1d
8
+ averageProfitUsdPerTrade1w
9
+ averageProfitUsdPerTrade1y
10
+ averageProfitUsdPerTrade30d
11
+ averageSwapAmountUsd1d
12
+ averageSwapAmountUsd1w
13
+ averageSwapAmountUsd1y
14
+ averageSwapAmountUsd30d
15
+ botScore
16
+ firstTransactionAt
17
+ labels
18
+ lastTransactionAt
19
+ nativeTokenBalance
20
+ networkId
21
+ realizedProfitPercentage1d
22
+ realizedProfitPercentage1w
23
+ realizedProfitPercentage1y
24
+ realizedProfitPercentage30d
25
+ realizedProfitUsd1d
26
+ realizedProfitUsd1w
27
+ realizedProfitUsd1y
28
+ realizedProfitUsd30d
29
+ scammerScore
30
+ swaps1d
31
+ swaps1w
32
+ swaps1y
33
+ swaps30d
34
+ swapsAll1d
35
+ swapsAll1w
36
+ swapsAll1y
37
+ swapsAll30d
38
+ uniqueTokens1d
39
+ uniqueTokens1w
40
+ uniqueTokens1y
41
+ uniqueTokens30d
42
+ volumeUsd1d
43
+ volumeUsd1w
44
+ volumeUsd1y
45
+ volumeUsd30d
46
+ volumeUsdAll1d
47
+ volumeUsdAll1w
48
+ volumeUsdAll1y
49
+ volumeUsdAll30d
50
+ winRate1d
51
+ winRate1w
52
+ winRate1y
53
+ winRate30d
54
+ }
55
+ }
56
+ }
@@ -87,6 +87,8 @@ query GetBars(
87
87
  completedAt
88
88
  completedSlot
89
89
  graduationPercent
90
+ launchpadName
91
+ launchpadProtocol
90
92
  migrated
91
93
  migratedAt
92
94
  migratedPoolAddress
@@ -162,6 +164,8 @@ query GetBars(
162
164
  completedAt
163
165
  completedSlot
164
166
  graduationPercent
167
+ launchpadName
168
+ launchpadProtocol
165
169
  migrated
166
170
  migratedAt
167
171
  migratedPoolAddress
@@ -202,7 +206,6 @@ query GetBars(
202
206
  t
203
207
  traders
204
208
  transactions
205
- v
206
209
  volume
207
210
  volumeNativeToken
208
211
  }
@@ -85,6 +85,8 @@ query GetCommunityNotes($input: CommunityNotesInput) {
85
85
  completedAt
86
86
  completedSlot
87
87
  graduationPercent
88
+ launchpadName
89
+ launchpadProtocol
88
90
  migrated
89
91
  migratedAt
90
92
  migratedPoolAddress
@@ -74,6 +74,8 @@ query GetDetailedPairStats(
74
74
  completedAt
75
75
  completedSlot
76
76
  graduationPercent
77
+ launchpadName
78
+ launchpadProtocol
77
79
  migrated
78
80
  migratedAt
79
81
  migratedPoolAddress
@@ -149,6 +151,8 @@ query GetDetailedPairStats(
149
151
  completedAt
150
152
  completedSlot
151
153
  graduationPercent
154
+ launchpadName
155
+ launchpadProtocol
152
156
  migrated
153
157
  migratedAt
154
158
  migratedPoolAddress
@@ -58,6 +58,8 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
58
58
  completedAt
59
59
  completedSlot
60
60
  graduationPercent
61
+ launchpadName
62
+ launchpadProtocol
61
63
  migrated
62
64
  migratedAt
63
65
  migratedPoolAddress
@@ -133,6 +135,8 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
133
135
  completedAt
134
136
  completedSlot
135
137
  graduationPercent
138
+ launchpadName
139
+ launchpadProtocol
136
140
  migrated
137
141
  migratedAt
138
142
  migratedPoolAddress
@@ -95,6 +95,7 @@ query GetTokenEvents(
95
95
  token1ValueBase
96
96
  transactionHash
97
97
  transactionIndex
98
+ walletAge
98
99
  }
99
100
  }
100
101
  }
@@ -95,6 +95,7 @@ query GetTokenEventsForMaker(
95
95
  token1ValueBase
96
96
  transactionHash
97
97
  transactionIndex
98
+ walletAge
98
99
  }
99
100
  }
100
101
  }
@@ -58,6 +58,8 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
58
58
  completedAt
59
59
  completedSlot
60
60
  graduationPercent
61
+ launchpadName
62
+ launchpadProtocol
61
63
  migrated
62
64
  migratedAt
63
65
  migratedPoolAddress
@@ -133,6 +135,8 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
133
135
  completedAt
134
136
  completedSlot
135
137
  graduationPercent
138
+ launchpadName
139
+ launchpadProtocol
136
140
  migrated
137
141
  migratedAt
138
142
  migratedPoolAddress
@@ -51,6 +51,8 @@ query ListPairsWithMetadataForToken(
51
51
  completedAt
52
52
  completedSlot
53
53
  graduationPercent
54
+ launchpadName
55
+ launchpadProtocol
54
56
  migrated
55
57
  migratedAt
56
58
  migratedPoolAddress
@@ -149,6 +151,8 @@ query ListPairsWithMetadataForToken(
149
151
  completedAt
150
152
  completedSlot
151
153
  graduationPercent
154
+ launchpadName
155
+ launchpadProtocol
152
156
  migrated
153
157
  migratedAt
154
158
  migratedPoolAddress
@@ -224,6 +228,8 @@ query ListPairsWithMetadataForToken(
224
228
  completedAt
225
229
  completedSlot
226
230
  graduationPercent
231
+ launchpadName
232
+ launchpadProtocol
227
233
  migrated
228
234
  migratedAt
229
235
  migratedPoolAddress
@@ -300,6 +306,8 @@ query ListPairsWithMetadataForToken(
300
306
  completedAt
301
307
  completedSlot
302
308
  graduationPercent
309
+ launchpadName
310
+ launchpadProtocol
303
311
  migrated
304
312
  migratedAt
305
313
  migratedPoolAddress
@@ -51,6 +51,8 @@ query PairMetadata(
51
51
  completedAt
52
52
  completedSlot
53
53
  graduationPercent
54
+ launchpadName
55
+ launchpadProtocol
54
56
  migrated
55
57
  migratedAt
56
58
  migratedPoolAddress
@@ -125,6 +127,8 @@ query PairMetadata(
125
127
  completedAt
126
128
  completedSlot
127
129
  graduationPercent
130
+ launchpadName
131
+ launchpadProtocol
128
132
  migrated
129
133
  migratedAt
130
134
  migratedPoolAddress
@@ -41,6 +41,8 @@ query Token($input: TokenInput!) {
41
41
  completedAt
42
42
  completedSlot
43
43
  graduationPercent
44
+ launchpadName
45
+ launchpadProtocol
44
46
  migrated
45
47
  migratedAt
46
48
  migratedPoolAddress
@@ -41,6 +41,8 @@ query Tokens($ids: [TokenInput!]) {
41
41
  completedAt
42
42
  completedSlot
43
43
  graduationPercent
44
+ launchpadName
45
+ launchpadProtocol
44
46
  migrated
45
47
  migratedAt
46
48
  migratedPoolAddress
@@ -0,0 +1,19 @@
1
+ query WalletChart($input: WalletChartInput!) {
2
+ walletChart(input: $input) {
3
+ data {
4
+ realizedProfitUsd
5
+ resolution
6
+ swaps
7
+ timestamp
8
+ volumeUsd
9
+ volumeUsdAll
10
+ }
11
+ networkId
12
+ range {
13
+ end
14
+ start
15
+ }
16
+ resolution
17
+ walletAddress
18
+ }
19
+ }
@@ -95,6 +95,7 @@ subscription OnEventsCreated(
95
95
  token1ValueBase
96
96
  transactionHash
97
97
  transactionIndex
98
+ walletAge
98
99
  }
99
100
  id
100
101
  networkId
@@ -51,6 +51,8 @@ subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
51
51
  completedAt
52
52
  completedSlot
53
53
  graduationPercent
54
+ launchpadName
55
+ launchpadProtocol
54
56
  migrated
55
57
  migratedAt
56
58
  migratedPoolAddress
@@ -1,5 +1,5 @@
1
- subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
2
- onLaunchpadTokenEvent(input: $input) {
1
+ subscription OnLaunchpadTokenEventBatch {
2
+ onLaunchpadTokenEventBatch {
3
3
  address
4
4
  buyCount1
5
5
  eventType
@@ -51,10 +51,12 @@ subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
51
51
  completedAt
52
52
  completedSlot
53
53
  graduationPercent
54
+ launchpadProtocol
54
55
  migrated
55
56
  migratedAt
56
57
  migratedPoolAddress
57
58
  migratedSlot
59
+ name
58
60
  poolAddress
59
61
  }
60
62
  mintable
@@ -51,6 +51,8 @@ subscription OnPairMetadataUpdated(
51
51
  completedAt
52
52
  completedSlot
53
53
  graduationPercent
54
+ launchpadName
55
+ launchpadProtocol
54
56
  migrated
55
57
  migratedAt
56
58
  migratedPoolAddress
@@ -125,6 +127,8 @@ subscription OnPairMetadataUpdated(
125
127
  completedAt
126
128
  completedSlot
127
129
  graduationPercent
130
+ launchpadName
131
+ launchpadProtocol
128
132
  migrated
129
133
  migratedAt
130
134
  migratedPoolAddress
@@ -84,6 +84,7 @@ subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
84
84
  token1ValueBase
85
85
  transactionHash
86
86
  transactionIndex
87
+ walletAge
87
88
  }
88
89
  id
89
90
  }