@codex-data/sdk 0.6.2 → 1.0.0-rc2

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 (234) hide show
  1. package/dist/resources/generated_mutations/CreateApiTokens.graphql +9 -0
  2. package/dist/resources/generated_mutations/CreateWebhooks.graphql +80 -0
  3. package/dist/resources/generated_mutations/DeleteApiToken.graphql +3 -0
  4. package/{src/sdk/graphql → dist/resources/generated_mutations}/DeleteWebhooks.graphql +1 -1
  5. package/dist/resources/generated_queries/ApiToken.graphql +9 -0
  6. package/dist/resources/generated_queries/ApiTokens.graphql +9 -0
  7. package/dist/resources/generated_queries/Balances.graphql +12 -0
  8. package/dist/resources/generated_queries/ChartUrls.graphql +7 -0
  9. package/dist/resources/generated_queries/FilterExchanges.graphql +43 -0
  10. package/dist/resources/generated_queries/FilterNftCollections.graphql +569 -0
  11. package/dist/resources/generated_queries/FilterNftParallelAssets.graphql +60 -0
  12. package/dist/resources/generated_queries/FilterNftPoolCollections.graphql +71 -0
  13. package/dist/resources/generated_queries/FilterNftPools.graphql +124 -0
  14. package/dist/resources/generated_queries/FilterPairs.graphql +343 -0
  15. package/dist/resources/generated_queries/FilterTokens.graphql +282 -0
  16. package/{src/sdk/graphql → dist/resources/generated_queries}/GetBars.graphql +21 -9
  17. package/dist/resources/generated_queries/GetCommunityNotes.graphql +20 -0
  18. package/dist/resources/generated_queries/GetDetailedNftStats.graphql +831 -0
  19. package/{src/sdk/graphql → dist/resources/generated_queries}/GetDetailedPairStats.graphql +372 -373
  20. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +924 -0
  21. package/dist/resources/generated_queries/GetEventLabels.graphql +24 -0
  22. package/dist/resources/generated_queries/GetExchanges.graphql +12 -0
  23. package/dist/resources/generated_queries/GetLatestPairs.graphql +57 -0
  24. package/dist/resources/generated_queries/GetLatestTokens.graphql +39 -0
  25. package/dist/resources/generated_queries/GetNetworkStats.graphql +13 -0
  26. package/{src/sdk/graphql → dist/resources/generated_queries}/GetNetworkStatus.graphql +2 -1
  27. package/{src/sdk/graphql → dist/resources/generated_queries}/GetNetworks.graphql +1 -0
  28. package/dist/resources/generated_queries/GetNftAssets.graphql +59 -0
  29. package/dist/resources/generated_queries/GetNftCollectionMetadata.graphql +75 -0
  30. package/dist/resources/generated_queries/GetNftContracts.graphql +39 -0
  31. package/dist/resources/generated_queries/GetNftEvents.graphql +54 -0
  32. package/dist/resources/generated_queries/GetNftPool.graphql +74 -0
  33. package/dist/resources/generated_queries/GetNftPoolCollection.graphql +33 -0
  34. package/dist/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +38 -0
  35. package/dist/resources/generated_queries/GetNftPoolEvents.graphql +41 -0
  36. package/dist/resources/generated_queries/GetNftPoolStats.graphql +40 -0
  37. package/dist/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +89 -0
  38. package/dist/resources/generated_queries/GetNftPoolsByOwner.graphql +89 -0
  39. package/dist/resources/generated_queries/GetParallelAssets.graphql +50 -0
  40. package/dist/resources/generated_queries/GetParallelCardChanges.graphql +57 -0
  41. package/dist/resources/generated_queries/GetPrimePoolAssets.graphql +32 -0
  42. package/dist/resources/generated_queries/GetPrimePoolEvents.graphql +38 -0
  43. package/dist/resources/generated_queries/GetPrimePools.graphql +62 -0
  44. package/dist/resources/generated_queries/GetSimulateTokenContractResults.graphql +128 -0
  45. package/{src/sdk/graphql → dist/resources/generated_queries}/GetSymbol.graphql +7 -7
  46. package/dist/resources/generated_queries/GetTokenCount.graphql +3 -0
  47. package/dist/resources/generated_queries/GetTokenEvents.graphql +49 -0
  48. package/dist/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
  49. package/dist/resources/generated_queries/GetTokenInfo.graphql +18 -0
  50. package/dist/resources/generated_queries/GetTokenPrices.graphql +9 -0
  51. package/dist/resources/generated_queries/GetTokensInfo.graphql +18 -0
  52. package/dist/resources/generated_queries/GetUniV3Ticks.graphql +22 -0
  53. package/dist/resources/generated_queries/GetWebhooks.graphql +36 -0
  54. package/dist/resources/generated_queries/Holders.graphql +14 -0
  55. package/dist/resources/generated_queries/LiquidityLocks.graphql +26 -0
  56. package/dist/resources/generated_queries/LiquidityMetadata.graphql +17 -0
  57. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +59 -0
  58. package/{src/sdk/graphql → dist/resources/generated_queries}/ListPairsForToken.graphql +79 -41
  59. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +286 -0
  60. package/{src/sdk/graphql → dist/resources/generated_queries}/ListTopTokens.graphql +23 -16
  61. package/dist/resources/generated_queries/NftHolders.graphql +12 -0
  62. package/{src/sdk/graphql/OnPairMetadataUpdated.graphql → dist/resources/generated_queries/PairMetadata.graphql} +21 -3
  63. package/dist/resources/generated_queries/PrimeBalance.graphql +12 -0
  64. package/dist/resources/generated_queries/PrimeHolders.graphql +13 -0
  65. package/dist/resources/generated_queries/SearchNfts.graphql +35 -0
  66. package/dist/resources/generated_queries/Token.graphql +63 -0
  67. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +22 -0
  68. package/{src/sdk/graphql/GetSparklines.graphql → dist/resources/generated_queries/TokenSparklines.graphql} +2 -2
  69. package/dist/resources/generated_queries/Tokens.graphql +63 -0
  70. package/dist/resources/generated_queries/WalletNftCollectionAssets.graphql +11 -0
  71. package/dist/resources/generated_queries/WalletNftCollections.graphql +10 -0
  72. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +513 -0
  73. package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnDetailedStatsUpdated.graphql +119 -111
  74. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  75. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +46 -0
  76. package/dist/resources/generated_subscriptions/OnLatestPairUpdated.graphql +42 -0
  77. package/dist/resources/generated_subscriptions/OnLatestTokens.graphql +37 -0
  78. package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnNftAssetsCreated.graphql +30 -17
  79. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +36 -0
  80. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +37 -0
  81. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +73 -0
  82. package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnPriceUpdated.graphql +1 -1
  83. package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +9 -0
  84. package/dist/resources/generated_subscriptions/OnSimulateTokenContract.graphql +121 -0
  85. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +39 -0
  86. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +18 -0
  87. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +32 -0
  88. package/dist/resources/graphql.d.ts +175 -1
  89. package/dist/resources/graphql.d.ts.map +1 -1
  90. package/dist/resources/graphql.js.map +1 -1
  91. package/dist/resources/graphql.schema.json +1901 -2
  92. package/dist/resources/graphql.ts +199 -1
  93. package/dist/resources/schema.graphql +230 -1
  94. package/dist/scripts/buildSdk.d.ts +2 -0
  95. package/dist/scripts/buildSdk.d.ts.map +1 -0
  96. package/dist/scripts/buildSdk.js +135 -0
  97. package/dist/scripts/buildSdk.js.map +1 -0
  98. package/dist/scripts/generateGraphql.d.ts +30 -0
  99. package/dist/scripts/generateGraphql.d.ts.map +1 -0
  100. package/dist/scripts/generateGraphql.js +179 -0
  101. package/dist/scripts/generateGraphql.js.map +1 -0
  102. package/dist/sdk/Mutation.d.ts +5 -8
  103. package/dist/sdk/Mutation.d.ts.map +1 -1
  104. package/dist/sdk/Mutation.js +3 -0
  105. package/dist/sdk/Mutation.js.map +1 -1
  106. package/dist/sdk/Query.d.ts +65 -13
  107. package/dist/sdk/Query.d.ts.map +1 -1
  108. package/dist/sdk/Query.js +65 -12
  109. package/dist/sdk/Query.js.map +1 -1
  110. package/dist/sdk/Subscribe.d.ts +18 -11
  111. package/dist/sdk/Subscribe.d.ts.map +1 -1
  112. package/dist/sdk/Subscribe.js +112 -9
  113. package/dist/sdk/Subscribe.js.map +1 -1
  114. package/dist/sdk/generated/gql.d.ts +646 -66
  115. package/dist/sdk/generated/gql.d.ts.map +1 -1
  116. package/dist/sdk/generated/gql.js +85 -22
  117. package/dist/sdk/generated/gql.js.map +1 -1
  118. package/dist/sdk/generated/graphql.d.ts +8422 -2087
  119. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  120. package/dist/sdk/generated/graphql.js +88 -25
  121. package/dist/sdk/generated/graphql.js.map +1 -1
  122. package/package.json +12 -4
  123. package/src/resources/generated_mutations/CreateApiTokens.graphql +9 -0
  124. package/src/resources/generated_mutations/CreateWebhooks.graphql +80 -0
  125. package/src/resources/generated_mutations/DeleteApiToken.graphql +3 -0
  126. package/src/resources/generated_mutations/DeleteWebhooks.graphql +5 -0
  127. package/src/resources/generated_queries/ApiToken.graphql +9 -0
  128. package/src/resources/generated_queries/ApiTokens.graphql +9 -0
  129. package/src/resources/generated_queries/Balances.graphql +12 -0
  130. package/src/resources/generated_queries/ChartUrls.graphql +7 -0
  131. package/src/resources/generated_queries/FilterExchanges.graphql +43 -0
  132. package/src/resources/generated_queries/FilterNftCollections.graphql +569 -0
  133. package/src/resources/generated_queries/FilterNftParallelAssets.graphql +60 -0
  134. package/src/resources/generated_queries/FilterNftPoolCollections.graphql +71 -0
  135. package/src/resources/generated_queries/FilterNftPools.graphql +124 -0
  136. package/src/resources/generated_queries/FilterPairs.graphql +343 -0
  137. package/src/resources/generated_queries/FilterTokens.graphql +282 -0
  138. package/src/resources/generated_queries/GetBars.graphql +44 -0
  139. package/src/resources/generated_queries/GetCommunityNotes.graphql +20 -0
  140. package/src/resources/generated_queries/GetDetailedNftStats.graphql +831 -0
  141. package/src/resources/generated_queries/GetDetailedPairStats.graphql +940 -0
  142. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +924 -0
  143. package/src/resources/generated_queries/GetEventLabels.graphql +24 -0
  144. package/src/resources/generated_queries/GetExchanges.graphql +12 -0
  145. package/src/resources/generated_queries/GetLatestPairs.graphql +57 -0
  146. package/src/resources/generated_queries/GetLatestTokens.graphql +39 -0
  147. package/src/resources/generated_queries/GetNetworkStats.graphql +13 -0
  148. package/src/resources/generated_queries/GetNetworkStatus.graphql +8 -0
  149. package/src/resources/generated_queries/GetNetworks.graphql +7 -0
  150. package/src/resources/generated_queries/GetNftAssets.graphql +59 -0
  151. package/src/resources/generated_queries/GetNftCollectionMetadata.graphql +75 -0
  152. package/src/resources/generated_queries/GetNftContracts.graphql +39 -0
  153. package/src/resources/generated_queries/GetNftEvents.graphql +54 -0
  154. package/src/resources/generated_queries/GetNftPool.graphql +74 -0
  155. package/src/resources/generated_queries/GetNftPoolCollection.graphql +33 -0
  156. package/src/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +38 -0
  157. package/src/resources/generated_queries/GetNftPoolEvents.graphql +41 -0
  158. package/src/resources/generated_queries/GetNftPoolStats.graphql +40 -0
  159. package/src/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +89 -0
  160. package/src/resources/generated_queries/GetNftPoolsByOwner.graphql +89 -0
  161. package/src/resources/generated_queries/GetParallelAssets.graphql +50 -0
  162. package/src/resources/generated_queries/GetParallelCardChanges.graphql +57 -0
  163. package/src/resources/generated_queries/GetPrimePoolAssets.graphql +32 -0
  164. package/src/resources/generated_queries/GetPrimePoolEvents.graphql +38 -0
  165. package/src/resources/generated_queries/GetPrimePools.graphql +62 -0
  166. package/src/resources/generated_queries/GetSimulateTokenContractResults.graphql +128 -0
  167. package/src/resources/generated_queries/GetSymbol.graphql +11 -0
  168. package/src/resources/generated_queries/GetTokenCount.graphql +3 -0
  169. package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
  170. package/src/resources/generated_queries/GetTokenEventsForMaker.graphql +49 -0
  171. package/src/resources/generated_queries/GetTokenInfo.graphql +18 -0
  172. package/src/resources/generated_queries/GetTokenPrices.graphql +9 -0
  173. package/src/resources/generated_queries/GetTokensInfo.graphql +18 -0
  174. package/src/resources/generated_queries/GetUniV3Ticks.graphql +22 -0
  175. package/src/resources/generated_queries/GetWebhooks.graphql +36 -0
  176. package/src/resources/generated_queries/Holders.graphql +14 -0
  177. package/src/resources/generated_queries/LiquidityLocks.graphql +26 -0
  178. package/src/resources/generated_queries/LiquidityMetadata.graphql +17 -0
  179. package/src/resources/generated_queries/ListFavoriteTokens.graphql +59 -0
  180. package/src/resources/generated_queries/ListPairsForToken.graphql +143 -0
  181. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +286 -0
  182. package/src/resources/generated_queries/ListTopTokens.graphql +55 -0
  183. package/src/resources/generated_queries/NftHolders.graphql +12 -0
  184. package/src/resources/generated_queries/PairMetadata.graphql +73 -0
  185. package/src/resources/generated_queries/PrimeBalance.graphql +12 -0
  186. package/src/resources/generated_queries/PrimeHolders.graphql +13 -0
  187. package/src/resources/generated_queries/SearchNfts.graphql +35 -0
  188. package/src/resources/generated_queries/Token.graphql +63 -0
  189. package/src/resources/generated_queries/TokenLifecycleEvents.graphql +22 -0
  190. package/src/resources/generated_queries/TokenSparklines.graphql +10 -0
  191. package/src/resources/generated_queries/Tokens.graphql +63 -0
  192. package/src/resources/generated_queries/WalletNftCollectionAssets.graphql +11 -0
  193. package/src/resources/generated_queries/WalletNftCollections.graphql +10 -0
  194. package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +513 -0
  195. package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +332 -0
  196. package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  197. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +46 -0
  198. package/src/resources/generated_subscriptions/OnLatestPairUpdated.graphql +42 -0
  199. package/src/resources/generated_subscriptions/OnLatestTokens.graphql +37 -0
  200. package/src/resources/generated_subscriptions/OnNftAssetsCreated.graphql +42 -0
  201. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +36 -0
  202. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +37 -0
  203. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +73 -0
  204. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +9 -0
  205. package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +9 -0
  206. package/src/resources/generated_subscriptions/OnSimulateTokenContract.graphql +121 -0
  207. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +39 -0
  208. package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +18 -0
  209. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +32 -0
  210. package/src/resources/graphql.schema.json +1901 -2
  211. package/src/resources/graphql.ts +199 -1
  212. package/src/resources/schema.graphql +230 -1
  213. package/src/scripts/buildSdk.ts +173 -0
  214. package/src/scripts/generateGraphql.ts +236 -0
  215. package/src/sdk/Mutation.ts +13 -4
  216. package/src/sdk/Query.ts +254 -35
  217. package/src/sdk/Subscribe.ts +231 -42
  218. package/src/sdk/generated/gql.ts +359 -44
  219. package/src/sdk/generated/graphql.ts +928 -129
  220. package/dist/sdk/Query.test.d.ts +0 -2
  221. package/dist/sdk/Query.test.d.ts.map +0 -1
  222. package/dist/sdk/Query.test.js +0 -50
  223. package/dist/sdk/Query.test.js.map +0 -1
  224. package/src/sdk/Query.test.ts +0 -40
  225. package/src/sdk/graphql/CreateWebhooks.graphql +0 -464
  226. package/src/sdk/graphql/FilterExchanges.graphql +0 -23
  227. package/src/sdk/graphql/FilterPairs.graphql +0 -126
  228. package/src/sdk/graphql/FilterTokens.graphql +0 -131
  229. package/src/sdk/graphql/GetPrice.graphql +0 -9
  230. package/src/sdk/graphql/GetTokens.graphql +0 -14
  231. package/src/sdk/graphql/GetWebhooks.graphql +0 -120
  232. package/src/sdk/graphql/OnBarsUpdated.graphql +0 -68
  233. package/src/sdk/graphql/OnEventsCreated.graphql +0 -62
  234. package/src/sdk/graphql/OnNftEventsCreated.graphql +0 -83
package/src/sdk/Query.ts CHANGED
@@ -1,65 +1,284 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
1
2
  import {
3
+ ApiTokenDocument,
4
+ ApiTokenQueryVariables,
5
+ ApiTokensDocument,
6
+ ApiTokensQueryVariables,
7
+ BalancesDocument,
8
+ BalancesQueryVariables,
9
+ ChartUrlsDocument,
10
+ ChartUrlsQueryVariables,
2
11
  FilterExchangesDocument,
3
12
  FilterExchangesQueryVariables,
13
+ FilterNftCollectionsDocument,
14
+ FilterNftCollectionsQueryVariables,
15
+ FilterNftParallelAssetsDocument,
16
+ FilterNftParallelAssetsQueryVariables,
17
+ FilterNftPoolCollectionsDocument,
18
+ FilterNftPoolCollectionsQueryVariables,
19
+ FilterNftPoolsDocument,
20
+ FilterNftPoolsQueryVariables,
4
21
  FilterPairsDocument,
5
22
  FilterPairsQueryVariables,
6
23
  FilterTokensDocument,
7
24
  FilterTokensQueryVariables,
8
25
  GetBarsDocument,
26
+ GetBarsQueryVariables,
27
+ GetCommunityNotesDocument,
28
+ GetCommunityNotesQueryVariables,
29
+ GetDetailedNftStatsDocument,
30
+ GetDetailedNftStatsQueryVariables,
31
+ GetDetailedPairsStatsDocument,
32
+ GetDetailedPairsStatsQueryVariables,
9
33
  GetDetailedPairStatsDocument,
34
+ GetDetailedPairStatsQueryVariables,
35
+ GetEventLabelsDocument,
36
+ GetEventLabelsQueryVariables,
37
+ GetExchangesDocument,
38
+ GetExchangesQueryVariables,
39
+ GetLatestPairsDocument,
40
+ GetLatestPairsQueryVariables,
41
+ GetLatestTokensDocument,
42
+ GetLatestTokensQueryVariables,
10
43
  GetNetworksDocument,
44
+ GetNetworksQueryVariables,
45
+ GetNetworkStatsDocument,
46
+ GetNetworkStatsQueryVariables,
11
47
  GetNetworkStatusDocument,
12
- GetSparklinesDocument,
13
- GetSparklinesQueryVariables,
48
+ GetNetworkStatusQueryVariables,
49
+ GetNftAssetsDocument,
50
+ GetNftAssetsQueryVariables,
51
+ GetNftCollectionMetadataDocument,
52
+ GetNftCollectionMetadataQueryVariables,
53
+ GetNftContractsDocument,
54
+ GetNftContractsQueryVariables,
55
+ GetNftEventsDocument,
56
+ GetNftEventsQueryVariables,
57
+ GetNftPoolCollectionDocument,
58
+ GetNftPoolCollectionQueryVariables,
59
+ GetNftPoolCollectionsByExchangeDocument,
60
+ GetNftPoolCollectionsByExchangeQueryVariables,
61
+ GetNftPoolDocument,
62
+ GetNftPoolEventsDocument,
63
+ GetNftPoolEventsQueryVariables,
64
+ GetNftPoolQueryVariables,
65
+ GetNftPoolsByCollectionAndExchangeDocument,
66
+ GetNftPoolsByCollectionAndExchangeQueryVariables,
67
+ GetNftPoolsByOwnerDocument,
68
+ GetNftPoolsByOwnerQueryVariables,
69
+ GetNftPoolStatsDocument,
70
+ GetNftPoolStatsQueryVariables,
71
+ GetParallelAssetsDocument,
72
+ GetParallelAssetsQueryVariables,
73
+ GetParallelCardChangesDocument,
74
+ GetParallelCardChangesQueryVariables,
75
+ GetPrimePoolAssetsDocument,
76
+ GetPrimePoolAssetsQueryVariables,
77
+ GetPrimePoolEventsDocument,
78
+ GetPrimePoolEventsQueryVariables,
79
+ GetPrimePoolsDocument,
80
+ GetPrimePoolsQueryVariables,
81
+ GetSimulateTokenContractResultsDocument,
82
+ GetSimulateTokenContractResultsQueryVariables,
14
83
  GetSymbolDocument,
15
84
  GetSymbolQueryVariables,
16
- GetTokenPriceDocument,
17
- GetTokensDocument,
85
+ GetTokenCountDocument,
86
+ GetTokenCountQueryVariables,
87
+ GetTokenEventsDocument,
88
+ GetTokenEventsForMakerDocument,
89
+ GetTokenEventsForMakerQueryVariables,
90
+ GetTokenEventsQueryVariables,
91
+ GetTokenInfoDocument,
92
+ GetTokenInfoQueryVariables,
93
+ GetTokenPricesDocument,
94
+ GetTokenPricesQueryVariables,
95
+ GetTokensInfoDocument,
96
+ GetTokensInfoQueryVariables,
97
+ GetUniV3TicksDocument,
98
+ GetUniV3TicksQueryVariables,
18
99
  GetWebhooksDocument,
100
+ GetWebhooksQueryVariables,
101
+ HoldersDocument,
102
+ HoldersQueryVariables,
103
+ LiquidityLocksDocument,
104
+ LiquidityLocksQueryVariables,
105
+ LiquidityMetadataDocument,
106
+ LiquidityMetadataQueryVariables,
107
+ ListFavoriteTokensDocument,
108
+ ListFavoriteTokensQueryVariables,
19
109
  ListPairsForTokenDocument,
20
110
  ListPairsForTokenQueryVariables,
111
+ ListPairsWithMetadataForTokenDocument,
112
+ ListPairsWithMetadataForTokenQueryVariables,
21
113
  ListTopTokensDocument,
22
- PairEventsDocument,
23
- PairEventsQueryVariables,
24
- QueryGetBarsArgs,
25
- QueryGetDetailedPairStatsArgs,
26
- QueryGetNetworkStatusArgs,
27
- QueryGetTokenPricesArgs,
28
- QueryGetWebhooksArgs,
29
- QueryListTopTokensArgs,
30
- QueryTokenArgs,
114
+ ListTopTokensQueryVariables,
115
+ NftHoldersDocument,
116
+ NftHoldersQueryVariables,
117
+ PairMetadataDocument,
118
+ PairMetadataQueryVariables,
119
+ PrimeBalanceDocument,
120
+ PrimeBalanceQueryVariables,
121
+ PrimeHoldersDocument,
122
+ PrimeHoldersQueryVariables,
123
+ SearchNftsDocument,
124
+ SearchNftsQueryVariables,
125
+ TokenDocument,
126
+ TokenLifecycleEventsDocument,
127
+ TokenLifecycleEventsQueryVariables,
128
+ TokenQueryVariables,
129
+ TokensDocument,
130
+ TokenSparklinesDocument,
131
+ TokenSparklinesQueryVariables,
132
+ TokensQueryVariables,
133
+ WalletNftCollectionAssetsDocument,
134
+ WalletNftCollectionAssetsQueryVariables,
135
+ WalletNftCollectionsDocument,
136
+ WalletNftCollectionsQueryVariables,
31
137
  } from "./generated/graphql";
32
138
  import { Codex } from "./index";
33
139
 
34
140
  export class Query {
35
141
  constructor(private sdk: Codex) {}
36
- pairEvents = async (vars: PairEventsQueryVariables) =>
37
- this.sdk.query(PairEventsDocument, vars);
38
- sparklines = async (vars: GetSparklinesQueryVariables) =>
39
- this.sdk.query(GetSparklinesDocument, vars);
40
- token = async (vars: QueryTokenArgs) =>
41
- this.sdk.query(GetTokensDocument, vars);
42
- price = async (vars: QueryGetTokenPricesArgs) =>
43
- this.sdk.query(GetTokenPriceDocument, vars);
44
- detailedPairStats = async (vars: QueryGetDetailedPairStatsArgs) =>
45
- this.sdk.query(GetDetailedPairStatsDocument, vars);
46
- bars = async (vars: QueryGetBarsArgs) =>
47
- this.sdk.query(GetBarsDocument, vars);
48
- topTokens = async (vars: QueryListTopTokensArgs) =>
49
- this.sdk.query(ListTopTokensDocument, vars);
50
142
  filterTokens = async (vars: FilterTokensQueryVariables) =>
51
143
  this.sdk.query(FilterTokensDocument, vars);
52
- filterPairs = async (vars: FilterPairsQueryVariables) =>
53
- this.sdk.query(FilterPairsDocument, vars);
144
+ filterNftPools = async (vars: FilterNftPoolsQueryVariables) =>
145
+ this.sdk.query(FilterNftPoolsDocument, vars);
146
+ filterNftPoolCollections = async (
147
+ vars: FilterNftPoolCollectionsQueryVariables,
148
+ ) => this.sdk.query(FilterNftPoolCollectionsDocument, vars);
149
+ listPairsWithMetadataForToken = async (
150
+ vars: ListPairsWithMetadataForTokenQueryVariables,
151
+ ) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
152
+ getTokenCount = async (vars: GetTokenCountQueryVariables) =>
153
+ this.sdk.query(GetTokenCountDocument, vars);
154
+ tokens = async (vars: TokensQueryVariables) =>
155
+ this.sdk.query(TokensDocument, vars);
156
+ getNftPoolStats = async (vars: GetNftPoolStatsQueryVariables) =>
157
+ this.sdk.query(GetNftPoolStatsDocument, vars);
158
+ listTopTokens = async (vars: ListTopTokensQueryVariables) =>
159
+ this.sdk.query(ListTopTokensDocument, vars);
160
+ getNftPoolEvents = async (vars: GetNftPoolEventsQueryVariables) =>
161
+ this.sdk.query(GetNftPoolEventsDocument, vars);
162
+ getLatestPairs = async (vars: GetLatestPairsQueryVariables) =>
163
+ this.sdk.query(GetLatestPairsDocument, vars);
164
+ balances = async (vars: BalancesQueryVariables) =>
165
+ this.sdk.query(BalancesDocument, vars);
166
+ getDetailedPairStats = async (vars: GetDetailedPairStatsQueryVariables) =>
167
+ this.sdk.query(GetDetailedPairStatsDocument, vars);
168
+ getNftPoolsByOwner = async (vars: GetNftPoolsByOwnerQueryVariables) =>
169
+ this.sdk.query(GetNftPoolsByOwnerDocument, vars);
170
+ token = async (vars: TokenQueryVariables) =>
171
+ this.sdk.query(TokenDocument, vars);
172
+ primeBalance = async (vars: PrimeBalanceQueryVariables) =>
173
+ this.sdk.query(PrimeBalanceDocument, vars);
174
+ getUniV3Ticks = async (vars: GetUniV3TicksQueryVariables) =>
175
+ this.sdk.query(GetUniV3TicksDocument, vars);
176
+ getExchanges = async (vars: GetExchangesQueryVariables) =>
177
+ this.sdk.query(GetExchangesDocument, vars);
178
+ getSymbol = async (vars: GetSymbolQueryVariables) =>
179
+ this.sdk.query(GetSymbolDocument, vars);
180
+ getNftPoolsByCollectionAndExchange = async (
181
+ vars: GetNftPoolsByCollectionAndExchangeQueryVariables,
182
+ ) => this.sdk.query(GetNftPoolsByCollectionAndExchangeDocument, vars);
183
+ liquidityMetadata = async (vars: LiquidityMetadataQueryVariables) =>
184
+ this.sdk.query(LiquidityMetadataDocument, vars);
185
+ getNftContracts = async (vars: GetNftContractsQueryVariables) =>
186
+ this.sdk.query(GetNftContractsDocument, vars);
54
187
  listPairsForToken = async (vars: ListPairsForTokenQueryVariables) =>
55
188
  this.sdk.query(ListPairsForTokenDocument, vars);
189
+ getNetworks = async (vars: GetNetworksQueryVariables) =>
190
+ this.sdk.query(GetNetworksDocument, vars);
191
+ getTokensInfo = async (vars: GetTokensInfoQueryVariables) =>
192
+ this.sdk.query(GetTokensInfoDocument, vars);
193
+ getNftPoolCollectionsByExchange = async (
194
+ vars: GetNftPoolCollectionsByExchangeQueryVariables,
195
+ ) => this.sdk.query(GetNftPoolCollectionsByExchangeDocument, vars);
196
+ getTokenPrices = async (vars: GetTokenPricesQueryVariables) =>
197
+ this.sdk.query(GetTokenPricesDocument, vars);
198
+ getWebhooks = async (vars: GetWebhooksQueryVariables) =>
199
+ this.sdk.query(GetWebhooksDocument, vars);
200
+ getBars = async (vars: GetBarsQueryVariables) =>
201
+ this.sdk.query(GetBarsDocument, vars);
202
+ searchNfts = async (vars: SearchNftsQueryVariables) =>
203
+ this.sdk.query(SearchNftsDocument, vars);
204
+ chartUrls = async (vars: ChartUrlsQueryVariables) =>
205
+ this.sdk.query(ChartUrlsDocument, vars);
206
+ apiToken = async (vars: ApiTokenQueryVariables) =>
207
+ this.sdk.query(ApiTokenDocument, vars);
208
+ filterNftParallelAssets = async (
209
+ vars: FilterNftParallelAssetsQueryVariables,
210
+ ) => this.sdk.query(FilterNftParallelAssetsDocument, vars);
211
+ getTokenEventsForMaker = async (vars: GetTokenEventsForMakerQueryVariables) =>
212
+ this.sdk.query(GetTokenEventsForMakerDocument, vars);
213
+ filterNftCollections = async (vars: FilterNftCollectionsQueryVariables) =>
214
+ this.sdk.query(FilterNftCollectionsDocument, vars);
215
+ getPrimePools = async (vars: GetPrimePoolsQueryVariables) =>
216
+ this.sdk.query(GetPrimePoolsDocument, vars);
217
+ tokenLifecycleEvents = async (vars: TokenLifecycleEventsQueryVariables) =>
218
+ this.sdk.query(TokenLifecycleEventsDocument, vars);
219
+ getPrimePoolAssets = async (vars: GetPrimePoolAssetsQueryVariables) =>
220
+ this.sdk.query(GetPrimePoolAssetsDocument, vars);
221
+ getPrimePoolEvents = async (vars: GetPrimePoolEventsQueryVariables) =>
222
+ this.sdk.query(GetPrimePoolEventsDocument, vars);
223
+ walletNftCollectionAssets = async (
224
+ vars: WalletNftCollectionAssetsQueryVariables,
225
+ ) => this.sdk.query(WalletNftCollectionAssetsDocument, vars);
226
+ getEventLabels = async (vars: GetEventLabelsQueryVariables) =>
227
+ this.sdk.query(GetEventLabelsDocument, vars);
228
+ getCommunityNotes = async (vars: GetCommunityNotesQueryVariables) =>
229
+ this.sdk.query(GetCommunityNotesDocument, vars);
230
+ walletNftCollections = async (vars: WalletNftCollectionsQueryVariables) =>
231
+ this.sdk.query(WalletNftCollectionsDocument, vars);
232
+ getNftAssets = async (vars: GetNftAssetsQueryVariables) =>
233
+ this.sdk.query(GetNftAssetsDocument, vars);
234
+ pairMetadata = async (vars: PairMetadataQueryVariables) =>
235
+ this.sdk.query(PairMetadataDocument, vars);
56
236
  filterExchanges = async (vars: FilterExchangesQueryVariables) =>
57
237
  this.sdk.query(FilterExchangesDocument, vars);
58
- symbol = async (vars: GetSymbolQueryVariables) =>
59
- this.sdk.query(GetSymbolDocument, vars);
60
- networks = async () => this.sdk.query(GetNetworksDocument);
61
- networkStatus = async (vars: QueryGetNetworkStatusArgs) =>
238
+ getNftCollectionMetadata = async (
239
+ vars: GetNftCollectionMetadataQueryVariables,
240
+ ) => this.sdk.query(GetNftCollectionMetadataDocument, vars);
241
+ nftHolders = async (vars: NftHoldersQueryVariables) =>
242
+ this.sdk.query(NftHoldersDocument, vars);
243
+ getNftPoolCollection = async (vars: GetNftPoolCollectionQueryVariables) =>
244
+ this.sdk.query(GetNftPoolCollectionDocument, vars);
245
+ getParallelAssets = async (vars: GetParallelAssetsQueryVariables) =>
246
+ this.sdk.query(GetParallelAssetsDocument, vars);
247
+ getNftEvents = async (vars: GetNftEventsQueryVariables) =>
248
+ this.sdk.query(GetNftEventsDocument, vars);
249
+ listFavoriteTokens = async (vars: ListFavoriteTokensQueryVariables) =>
250
+ this.sdk.query(ListFavoriteTokensDocument, vars);
251
+ getTokenEvents = async (vars: GetTokenEventsQueryVariables) =>
252
+ this.sdk.query(GetTokenEventsDocument, vars);
253
+ liquidityLocks = async (vars: LiquidityLocksQueryVariables) =>
254
+ this.sdk.query(LiquidityLocksDocument, vars);
255
+ getDetailedPairsStats = async (vars: GetDetailedPairsStatsQueryVariables) =>
256
+ this.sdk.query(GetDetailedPairsStatsDocument, vars);
257
+ getParallelCardChanges = async (vars: GetParallelCardChangesQueryVariables) =>
258
+ this.sdk.query(GetParallelCardChangesDocument, vars);
259
+ apiTokens = async (vars: ApiTokensQueryVariables) =>
260
+ this.sdk.query(ApiTokensDocument, vars);
261
+ primeHolders = async (vars: PrimeHoldersQueryVariables) =>
262
+ this.sdk.query(PrimeHoldersDocument, vars);
263
+ getDetailedNftStats = async (vars: GetDetailedNftStatsQueryVariables) =>
264
+ this.sdk.query(GetDetailedNftStatsDocument, vars);
265
+ filterPairs = async (vars: FilterPairsQueryVariables) =>
266
+ this.sdk.query(FilterPairsDocument, vars);
267
+ getSimulateTokenContractResults = async (
268
+ vars: GetSimulateTokenContractResultsQueryVariables,
269
+ ) => this.sdk.query(GetSimulateTokenContractResultsDocument, vars);
270
+ getLatestTokens = async (vars: GetLatestTokensQueryVariables) =>
271
+ this.sdk.query(GetLatestTokensDocument, vars);
272
+ getNetworkStats = async (vars: GetNetworkStatsQueryVariables) =>
273
+ this.sdk.query(GetNetworkStatsDocument, vars);
274
+ tokenSparklines = async (vars: TokenSparklinesQueryVariables) =>
275
+ this.sdk.query(TokenSparklinesDocument, vars);
276
+ getNftPool = async (vars: GetNftPoolQueryVariables) =>
277
+ this.sdk.query(GetNftPoolDocument, vars);
278
+ holders = async (vars: HoldersQueryVariables) =>
279
+ this.sdk.query(HoldersDocument, vars);
280
+ getNetworkStatus = async (vars: GetNetworkStatusQueryVariables) =>
62
281
  this.sdk.query(GetNetworkStatusDocument, vars);
63
- getWebhooks = async (vars: QueryGetWebhooksArgs) =>
64
- this.sdk.query(GetWebhooksDocument, vars);
282
+ getTokenInfo = async (vars: GetTokenInfoQueryVariables) =>
283
+ this.sdk.query(GetTokenInfoDocument, vars);
65
284
  }
@@ -1,61 +1,250 @@
1
- import { ExecutionResult, print } from "graphql";
2
- import { Sink } from "graphql-ws";
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
2
+ import { ExecutionResult, Sink } from "graphql-ws";
3
3
 
4
4
  import {
5
- SubscriptionOnDetailedStatsUpdatedArgs,
6
- SubscriptionOnNftAssetsCreatedArgs,
7
- SubscriptionOnNftEventsCreatedArgs,
8
- } from "../resources/graphql";
9
- import {
10
- OnBarsUpdatedDocument,
11
5
  OnBarsUpdatedSubscription,
12
- OnDetailedStatsUpdatedDocument,
6
+ OnBarsUpdatedSubscriptionVariables,
13
7
  OnDetailedStatsUpdatedSubscription,
14
- OnEventsCreatedDocument,
8
+ OnDetailedStatsUpdatedSubscriptionVariables,
9
+ OnEventLabelCreatedSubscription,
10
+ OnEventLabelCreatedSubscriptionVariables,
15
11
  OnEventsCreatedSubscription,
16
- OnNftAssetsCreatedDocument,
12
+ OnEventsCreatedSubscriptionVariables,
13
+ OnLatestPairUpdatedSubscription,
14
+ OnLatestPairUpdatedSubscriptionVariables,
15
+ OnLatestTokensSubscription,
16
+ OnLatestTokensSubscriptionVariables,
17
17
  OnNftAssetsCreatedSubscription,
18
- OnNftEventsCreatedDocument,
18
+ OnNftAssetsCreatedSubscriptionVariables,
19
19
  OnNftEventsCreatedSubscription,
20
- OnPairMetadataUpdatedDocument,
20
+ OnNftEventsCreatedSubscriptionVariables,
21
+ OnNftPoolEventsCreatedSubscription,
22
+ OnNftPoolEventsCreatedSubscriptionVariables,
21
23
  OnPairMetadataUpdatedSubscription,
22
- OnPriceUpdatedDocument,
24
+ OnPairMetadataUpdatedSubscriptionVariables,
25
+ OnPricesUpdatedSubscription,
26
+ OnPricesUpdatedSubscriptionVariables,
23
27
  OnPriceUpdatedSubscription,
24
- SubscriptionOnBarsUpdatedArgs,
25
- SubscriptionOnEventsCreatedArgs,
26
- SubscriptionOnPairMetadataUpdatedArgs,
27
- SubscriptionOnPriceUpdatedArgs,
28
+ OnPriceUpdatedSubscriptionVariables,
29
+ OnSimulateTokenContractSubscription,
30
+ OnSimulateTokenContractSubscriptionVariables,
31
+ OnTokenEventsCreatedSubscription,
32
+ OnTokenEventsCreatedSubscriptionVariables,
33
+ OnTokenLifecycleEventsCreatedSubscription,
34
+ OnTokenLifecycleEventsCreatedSubscriptionVariables,
35
+ OnUnconfirmedEventsCreatedSubscription,
36
+ OnUnconfirmedEventsCreatedSubscriptionVariables,
28
37
  } from "./generated/graphql";
29
38
  import { Codex } from "./index";
30
39
 
31
40
  export class Subscribe {
32
41
  constructor(private sdk: Codex) {}
33
- tokenPrices = async (
34
- vars: SubscriptionOnPriceUpdatedArgs,
42
+ onPricesUpdated = async (
43
+ vars: OnPricesUpdatedSubscriptionVariables,
44
+ sink: Sink<ExecutionResult<OnPricesUpdatedSubscription>>,
45
+ ) =>
46
+ this.sdk.subscribe(
47
+ `subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
48
+ onPricesUpdated (input: $input) {
49
+ address, confidence, networkId, priceUsd, timestamp
50
+ }
51
+ }`,
52
+ vars,
53
+ sink,
54
+ );
55
+ onNftEventsCreated = async (
56
+ vars: OnNftEventsCreatedSubscriptionVariables,
57
+ sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>,
58
+ ) =>
59
+ this.sdk.subscribe(
60
+ `subscription OnNftEventsCreated($address: String, $networkId: Int) {
61
+ onNftEventsCreated (address: $address, networkId: $networkId) {
62
+ address, events { aggregatorAddress, blockNumber, contractAddress, eventType, exchangeAddress, fillSource, id, individualPriceNetworkBaseToken, individualPriceUsd, individualTradePrice, logIndex, maker, networkId, numberOfTokens, orderDirection, paymentTokenAddress, poolAddress, priceError, sortKey, taker, timestamp, tokenId, totalPriceNetworkBaseToken, totalPriceUsd, totalTradePrice, transactionHash, transactionIndex }, id, networkId
63
+ }
64
+ }`,
65
+ vars,
66
+ sink,
67
+ );
68
+ onBarsUpdated = async (
69
+ vars: OnBarsUpdatedSubscriptionVariables,
70
+ sink: Sink<ExecutionResult<OnBarsUpdatedSubscription>>,
71
+ ) =>
72
+ this.sdk.subscribe(
73
+ `subscription OnBarsUpdated($pairId: String, $quoteToken: QuoteToken, $statsType: TokenPairStatisticsType) {
74
+ onBarsUpdated (pairId: $pairId, quoteToken: $quoteToken, statsType: $statsType) {
75
+ aggregates { r1 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, eventSortKey, networkId, pairAddress, pairId, quoteToken, statsType, timestamp
76
+ }
77
+ }`,
78
+ vars,
79
+ sink,
80
+ );
81
+ onUnconfirmedEventsCreated = async (
82
+ vars: OnUnconfirmedEventsCreatedSubscriptionVariables,
83
+ sink: Sink<ExecutionResult<OnUnconfirmedEventsCreatedSubscription>>,
84
+ ) =>
85
+ this.sdk.subscribe(
86
+ `subscription OnUnconfirmedEventsCreated($address: String, $id: String, $quoteToken: QuoteToken) {
87
+ onUnconfirmedEventsCreated (address: $address, id: $id, quoteToken: $quoteToken) {
88
+ address, events { address, blockHash, blockNumber, eventDisplayType, eventType, id, logIndex, maker, networkId, quoteToken, supplementalIndex, timestamp, transactionHash, transactionIndex }, id, networkId, quoteToken
89
+ }
90
+ }`,
91
+ vars,
92
+ sink,
93
+ );
94
+ onLatestPairUpdated = async (
95
+ vars: OnLatestPairUpdatedSubscriptionVariables,
96
+ sink: Sink<ExecutionResult<OnLatestPairUpdatedSubscription>>,
97
+ ) =>
98
+ this.sdk.subscribe(
99
+ `subscription OnLatestPairUpdated($id: String, $networkId: Int) {
100
+ onLatestPairUpdated (id: $id, networkId: $networkId) {
101
+ address, exchangeHash, id, initialPriceUsd, liquidAt, liquidity, liquidityToken, networkId, newToken, nonLiquidityToken, oldToken, priceChange, priceUsd, token0 { address, currentPoolAmount, decimals, id, initialPoolAmount, name, networkId, pairId, poolVariation, symbol }, token1 { address, currentPoolAmount, decimals, id, initialPoolAmount, name, networkId, pairId, poolVariation, symbol }, transactionHash
102
+ }
103
+ }`,
104
+ vars,
105
+ sink,
106
+ );
107
+ onTokenEventsCreated = async (
108
+ vars: OnTokenEventsCreatedSubscriptionVariables,
109
+ sink: Sink<ExecutionResult<OnTokenEventsCreatedSubscription>>,
110
+ ) =>
111
+ this.sdk.subscribe(
112
+ `subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
113
+ onTokenEventsCreated (input: $input) {
114
+ events { address, baseTokenPrice, blockHash, blockNumber, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex }, id
115
+ }
116
+ }`,
117
+ vars,
118
+ sink,
119
+ );
120
+ onNftAssetsCreated = async (
121
+ vars: OnNftAssetsCreatedSubscriptionVariables,
122
+ sink: Sink<ExecutionResult<OnNftAssetsCreatedSubscription>>,
123
+ ) =>
124
+ this.sdk.subscribe(
125
+ `subscription OnNftAssetsCreated($address: String, $networkId: Int, $tokenId: String) {
126
+ onNftAssetsCreated (address: $address, networkId: $networkId, tokenId: $tokenId) {
127
+ address, attributes { class, css, displayType, maxValue, name, value, valueType }, description, id, media { image, processed, thumbLg, thumbSm }, name, networkId, originalImage, quantity, rawAssetData { animationUrl, externalUrl, imageData, imageUrl }, tokenId, uri
128
+ }
129
+ }`,
130
+ vars,
131
+ sink,
132
+ );
133
+ onPriceUpdated = async (
134
+ vars: OnPriceUpdatedSubscriptionVariables,
35
135
  sink: Sink<ExecutionResult<OnPriceUpdatedSubscription>>,
36
- ) => this.sdk.subscribe(print(OnPriceUpdatedDocument), vars, sink);
37
- tokenEvents = async (
38
- vars: SubscriptionOnEventsCreatedArgs,
136
+ ) =>
137
+ this.sdk.subscribe(
138
+ `subscription OnPriceUpdated($address: String, $networkId: Int) {
139
+ onPriceUpdated (address: $address, networkId: $networkId) {
140
+ address, confidence, networkId, priceUsd, timestamp
141
+ }
142
+ }`,
143
+ vars,
144
+ sink,
145
+ );
146
+ onLatestTokens = async (
147
+ vars: OnLatestTokensSubscriptionVariables,
148
+ sink: Sink<ExecutionResult<OnLatestTokensSubscription>>,
149
+ ) =>
150
+ this.sdk.subscribe(
151
+ `subscription OnLatestTokens($id: String, $networkId: Int, $tokenAddress: String) {
152
+ onLatestTokens (id: $id, networkId: $networkId, tokenAddress: $tokenAddress) {
153
+ blockHash, blockNumber, creatorAddress, creatorBalance, decimals, id, networkId, simulationResults { buyGasUsed, buySuccess, buyTax, canRenounceOwnership, canTransferOwnership, isOwnerRenounced, maxBuyAmount, maxSellAmount, openTradingCall, sellGasUsed, sellSuccess, sellTax }, timeCreated, tokenAddress, tokenName, tokenSymbol, totalSupply, traceIndex, transactionHash, transactionIndex
154
+ }
155
+ }`,
156
+ vars,
157
+ sink,
158
+ );
159
+ onNftPoolEventsCreated = async (
160
+ vars: OnNftPoolEventsCreatedSubscriptionVariables,
161
+ sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription>>,
162
+ ) =>
163
+ this.sdk.subscribe(
164
+ `subscription OnNftPoolEventsCreated($collectionAddress: String, $exchangeAddress: String, $networkId: Int, $poolAddress: String) {
165
+ onNftPoolEventsCreated (collectionAddress: $collectionAddress, exchangeAddress: $exchangeAddress, networkId: $networkId, poolAddress: $poolAddress) {
166
+ collectionAddress, events { blockHash, blockNumber, collectionAddress, collectionId, eventType, exchangeAddress, id, logIndex, maker, networkId, poolAddress, poolType, timestamp, tokenAddress, transactionHash, transactionIndex }, exchangeAddress, id, networkId, poolAddress
167
+ }
168
+ }`,
169
+ vars,
170
+ sink,
171
+ );
172
+ onSimulateTokenContract = async (
173
+ vars: OnSimulateTokenContractSubscriptionVariables,
174
+ sink: Sink<ExecutionResult<OnSimulateTokenContractSubscription>>,
175
+ ) =>
176
+ this.sdk.subscribe(
177
+ `subscription OnSimulateTokenContract($contractAddress: String, $networkId: Int!, $simulationId: String) {
178
+ onSimulateTokenContract (contractAddress: $contractAddress, networkId: $networkId, simulationId: $simulationId) {
179
+ analysisType, blockNumber, contractBalance { tokenContractEthBalance, tokenContractTokenBalance }, contractHashKey, creator { creatorAddress, creatorEthBalance, creatorTokenBalance }, deploy { deploySuccess, tokenMintedToDeployer }, errors { contractBalanceErrors { tokenContractEthBalanceError, tokenContractTokenBalanceError }, creatorErrors { creatorEthBalanceError, creatorTokenBalanceError }, deployErrors { deployError, tokenMintedToDeployerError }, liquidityErrors { addLiquidityError, lpTotalSupplyError, postLiquidityEnableTradingError, preLiquidityEnableTradingError }, ownerErrors { ownerAddressError, ownerEthBalanceError, ownerTokenBalanceError }, simulatorError, swapErrors { buyError, buyErrorEnum, sellError, sellErrorEnum }, tokenErrors { canRenounceOwnershipError, canTransferOwnershipError, decimalsError, tokenNameError, tokenSymbolError, totalSupplyError }, transferErrors { tokenContractApprovalError, tokenTransferredToContractError, userApprovalError } }, id, liquidity { addLiquiditySuccess, liquiditySetByPreLiquidityOpenTradingCall, lpTotalSupply, pairAddress, postLiquidityEnableTradingCall, postLiquidityEnableTradingSuccess, preLiquidityEnableTradingCall, preLiquidityEnableTradingSuccess, preLiquidityEnableTradingSupportsTransfer }, networkId, owner { ownerAddress, ownerEthBalance, ownerTokenBalance }, sortKey, status, swap { buyGasUsed, buySuccess, buyTax, maxBuyAmount, maxSellAmount, sellGasUsed, sellSuccess, sellTax }, timestamp, token { canRenounceOwnership, canTransferOwnership, contractAddress, decimals, isOwnerRenounced, tokenName, tokenSymbol, totalSupply }, transfer { tokenContractApprovalSuccess, tokenTransferredToContractSuccess, userApprovalSuccess }, uuid, uuidHashKey
180
+ }
181
+ }`,
182
+ vars,
183
+ sink,
184
+ );
185
+ onEventsCreated = async (
186
+ vars: OnEventsCreatedSubscriptionVariables,
39
187
  sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>,
40
- ) => this.sdk.subscribe(print(OnEventsCreatedDocument), vars, sink);
41
- bars = async (
42
- vars: SubscriptionOnBarsUpdatedArgs,
43
- sink: Sink<ExecutionResult<OnBarsUpdatedSubscription>>,
44
- ) => this.sdk.subscribe(print(OnBarsUpdatedDocument), vars, sink);
45
- detailedPairStats = async (
46
- vars: SubscriptionOnDetailedStatsUpdatedArgs,
188
+ ) =>
189
+ this.sdk.subscribe(
190
+ `subscription OnEventsCreated($address: String, $id: String, $quoteToken: QuoteToken) {
191
+ onEventsCreated (address: $address, id: $id, quoteToken: $quoteToken) {
192
+ address, events { address, baseTokenPrice, blockHash, blockNumber, eventDisplayType, eventType, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex }, id, networkId, quoteToken
193
+ }
194
+ }`,
195
+ vars,
196
+ sink,
197
+ );
198
+ onEventLabelCreated = async (
199
+ vars: OnEventLabelCreatedSubscriptionVariables,
200
+ sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>,
201
+ ) =>
202
+ this.sdk.subscribe(
203
+ `subscription OnEventLabelCreated($id: String) {
204
+ onEventLabelCreated (id: $id) {
205
+ id, label, logIndex, networkId, timestamp, transactionHash, transactionIndex
206
+ }
207
+ }`,
208
+ vars,
209
+ sink,
210
+ );
211
+ onTokenLifecycleEventsCreated = async (
212
+ vars: OnTokenLifecycleEventsCreatedSubscriptionVariables,
213
+ sink: Sink<ExecutionResult<OnTokenLifecycleEventsCreatedSubscription>>,
214
+ ) =>
215
+ this.sdk.subscribe(
216
+ `subscription OnTokenLifecycleEventsCreated($address: String, $networkId: Int) {
217
+ onTokenLifecycleEventsCreated (address: $address, networkId: $networkId) {
218
+ events { blockHash, blockNumber, eventType, id, logIndex, maker, networkId, timestamp, tokenAddress, transactionHash, transactionIndex }, id
219
+ }
220
+ }`,
221
+ vars,
222
+ sink,
223
+ );
224
+ onDetailedStatsUpdated = async (
225
+ vars: OnDetailedStatsUpdatedSubscriptionVariables,
47
226
  sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription>>,
48
- ) => this.sdk.subscribe(print(OnDetailedStatsUpdatedDocument), vars, sink);
49
- pairMetadata = async (
50
- vars: SubscriptionOnPairMetadataUpdatedArgs,
227
+ ) =>
228
+ this.sdk.subscribe(
229
+ `subscription OnDetailedStatsUpdated($pairId: String, $statsType: TokenPairStatisticsType, $tokenOfInterest: TokenOfInterest) {
230
+ onDetailedStatsUpdated (pairId: $pairId, statsType: $statsType, tokenOfInterest: $tokenOfInterest) {
231
+ bucketCount, pairId, queryTimestamp, statsType, stats_day1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour4 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour12 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_min5 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, tokenOfInterest
232
+ }
233
+ }`,
234
+ vars,
235
+ sink,
236
+ );
237
+ onPairMetadataUpdated = async (
238
+ vars: OnPairMetadataUpdatedSubscriptionVariables,
51
239
  sink: Sink<ExecutionResult<OnPairMetadataUpdatedSubscription>>,
52
- ) => this.sdk.subscribe(print(OnPairMetadataUpdatedDocument), vars, sink);
53
- nftAssets = async (
54
- vars: SubscriptionOnNftAssetsCreatedArgs,
55
- sink: Sink<ExecutionResult<OnNftAssetsCreatedSubscription>>,
56
- ) => this.sdk.subscribe(print(OnNftAssetsCreatedDocument), vars, sink);
57
- nftEvents = async (
58
- vars: SubscriptionOnNftEventsCreatedArgs,
59
- sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>,
60
- ) => this.sdk.subscribe(print(OnNftEventsCreatedDocument), vars, sink);
240
+ ) =>
241
+ this.sdk.subscribe(
242
+ `subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $statsType: TokenPairStatisticsType) {
243
+ onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, statsType: $statsType) {
244
+ exchangeId, fee, highPrice1, highPrice1w, highPrice4, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice1w, lowPrice4, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange1w, priceChange4, priceChange5m, priceChange12, priceChange24, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, volume1, volume1w, volume4, volume12, volume24
245
+ }
246
+ }`,
247
+ vars,
248
+ sink,
249
+ );
61
250
  }