@codex-data/sdk 0.6.2 → 1.0.0-rc1

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 (232) 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 +339 -0
  15. package/dist/resources/generated_queries/FilterTokens.graphql +279 -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 +370 -373
  20. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +922 -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/GetTokenInfo.graphql +17 -0
  49. package/dist/resources/generated_queries/GetTokenPrices.graphql +9 -0
  50. package/dist/resources/generated_queries/GetTokensInfo.graphql +17 -0
  51. package/dist/resources/generated_queries/GetUniV3Ticks.graphql +22 -0
  52. package/dist/resources/generated_queries/GetWebhooks.graphql +36 -0
  53. package/dist/resources/generated_queries/Holders.graphql +14 -0
  54. package/dist/resources/generated_queries/LiquidityLocks.graphql +26 -0
  55. package/dist/resources/generated_queries/LiquidityMetadata.graphql +17 -0
  56. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +58 -0
  57. package/{src/sdk/graphql → dist/resources/generated_queries}/ListPairsForToken.graphql +77 -41
  58. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +282 -0
  59. package/{src/sdk/graphql → dist/resources/generated_queries}/ListTopTokens.graphql +22 -16
  60. package/dist/resources/generated_queries/NftHolders.graphql +12 -0
  61. package/{src/sdk/graphql/OnPairMetadataUpdated.graphql → dist/resources/generated_queries/PairMetadata.graphql} +21 -3
  62. package/dist/resources/generated_queries/PrimeBalance.graphql +12 -0
  63. package/dist/resources/generated_queries/PrimeHolders.graphql +13 -0
  64. package/dist/resources/generated_queries/SearchNfts.graphql +35 -0
  65. package/dist/resources/generated_queries/Token.graphql +62 -0
  66. package/dist/resources/generated_queries/TokenLifecycleEvents.graphql +22 -0
  67. package/{src/sdk/graphql/GetSparklines.graphql → dist/resources/generated_queries/TokenSparklines.graphql} +2 -2
  68. package/dist/resources/generated_queries/Tokens.graphql +62 -0
  69. package/dist/resources/generated_queries/WalletNftCollectionAssets.graphql +11 -0
  70. package/dist/resources/generated_queries/WalletNftCollections.graphql +10 -0
  71. package/dist/resources/generated_subscriptions/OnBarsUpdated.graphql +513 -0
  72. package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnDetailedStatsUpdated.graphql +119 -111
  73. package/dist/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  74. package/dist/resources/generated_subscriptions/OnEventsCreated.graphql +46 -0
  75. package/dist/resources/generated_subscriptions/OnLatestPairUpdated.graphql +42 -0
  76. package/dist/resources/generated_subscriptions/OnLatestTokens.graphql +37 -0
  77. package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnNftAssetsCreated.graphql +30 -17
  78. package/dist/resources/generated_subscriptions/OnNftEventsCreated.graphql +36 -0
  79. package/dist/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +37 -0
  80. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +73 -0
  81. package/{src/sdk/graphql → dist/resources/generated_subscriptions}/OnPriceUpdated.graphql +1 -1
  82. package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +9 -0
  83. package/dist/resources/generated_subscriptions/OnSimulateTokenContract.graphql +121 -0
  84. package/dist/resources/generated_subscriptions/OnTokenEventsCreated.graphql +39 -0
  85. package/dist/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +18 -0
  86. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +32 -0
  87. package/dist/resources/graphql.d.ts +131 -0
  88. package/dist/resources/graphql.d.ts.map +1 -1
  89. package/dist/resources/graphql.js.map +1 -1
  90. package/dist/resources/graphql.schema.json +1570 -0
  91. package/dist/resources/graphql.ts +148 -0
  92. package/dist/resources/schema.graphql +184 -0
  93. package/dist/scripts/buildSdk.d.ts +2 -0
  94. package/dist/scripts/buildSdk.d.ts.map +1 -0
  95. package/dist/scripts/buildSdk.js +135 -0
  96. package/dist/scripts/buildSdk.js.map +1 -0
  97. package/dist/scripts/generateGraphql.d.ts +30 -0
  98. package/dist/scripts/generateGraphql.d.ts.map +1 -0
  99. package/dist/scripts/generateGraphql.js +179 -0
  100. package/dist/scripts/generateGraphql.js.map +1 -0
  101. package/dist/sdk/Mutation.d.ts +5 -8
  102. package/dist/sdk/Mutation.d.ts.map +1 -1
  103. package/dist/sdk/Mutation.js +3 -0
  104. package/dist/sdk/Mutation.js.map +1 -1
  105. package/dist/sdk/Query.d.ts +65 -14
  106. package/dist/sdk/Query.d.ts.map +1 -1
  107. package/dist/sdk/Query.js +64 -12
  108. package/dist/sdk/Query.js.map +1 -1
  109. package/dist/sdk/Subscribe.d.ts +18 -11
  110. package/dist/sdk/Subscribe.d.ts.map +1 -1
  111. package/dist/sdk/Subscribe.js +112 -9
  112. package/dist/sdk/Subscribe.js.map +1 -1
  113. package/dist/sdk/generated/gql.d.ts +636 -66
  114. package/dist/sdk/generated/gql.d.ts.map +1 -1
  115. package/dist/sdk/generated/gql.js +84 -22
  116. package/dist/sdk/generated/gql.js.map +1 -1
  117. package/dist/sdk/generated/graphql.d.ts +8407 -2195
  118. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  119. package/dist/sdk/generated/graphql.js +87 -25
  120. package/dist/sdk/generated/graphql.js.map +1 -1
  121. package/package.json +12 -4
  122. package/src/resources/generated_mutations/CreateApiTokens.graphql +9 -0
  123. package/src/resources/generated_mutations/CreateWebhooks.graphql +80 -0
  124. package/src/resources/generated_mutations/DeleteApiToken.graphql +3 -0
  125. package/src/resources/generated_mutations/DeleteWebhooks.graphql +5 -0
  126. package/src/resources/generated_queries/ApiToken.graphql +9 -0
  127. package/src/resources/generated_queries/ApiTokens.graphql +9 -0
  128. package/src/resources/generated_queries/Balances.graphql +12 -0
  129. package/src/resources/generated_queries/ChartUrls.graphql +7 -0
  130. package/src/resources/generated_queries/FilterExchanges.graphql +43 -0
  131. package/src/resources/generated_queries/FilterNftCollections.graphql +569 -0
  132. package/src/resources/generated_queries/FilterNftParallelAssets.graphql +60 -0
  133. package/src/resources/generated_queries/FilterNftPoolCollections.graphql +71 -0
  134. package/src/resources/generated_queries/FilterNftPools.graphql +124 -0
  135. package/src/resources/generated_queries/FilterPairs.graphql +339 -0
  136. package/src/resources/generated_queries/FilterTokens.graphql +279 -0
  137. package/src/resources/generated_queries/GetBars.graphql +44 -0
  138. package/src/resources/generated_queries/GetCommunityNotes.graphql +20 -0
  139. package/src/resources/generated_queries/GetDetailedNftStats.graphql +831 -0
  140. package/src/resources/generated_queries/GetDetailedPairStats.graphql +938 -0
  141. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +922 -0
  142. package/src/resources/generated_queries/GetEventLabels.graphql +24 -0
  143. package/src/resources/generated_queries/GetExchanges.graphql +12 -0
  144. package/src/resources/generated_queries/GetLatestPairs.graphql +57 -0
  145. package/src/resources/generated_queries/GetLatestTokens.graphql +39 -0
  146. package/src/resources/generated_queries/GetNetworkStats.graphql +13 -0
  147. package/src/resources/generated_queries/GetNetworkStatus.graphql +8 -0
  148. package/src/resources/generated_queries/GetNetworks.graphql +7 -0
  149. package/src/resources/generated_queries/GetNftAssets.graphql +59 -0
  150. package/src/resources/generated_queries/GetNftCollectionMetadata.graphql +75 -0
  151. package/src/resources/generated_queries/GetNftContracts.graphql +39 -0
  152. package/src/resources/generated_queries/GetNftEvents.graphql +54 -0
  153. package/src/resources/generated_queries/GetNftPool.graphql +74 -0
  154. package/src/resources/generated_queries/GetNftPoolCollection.graphql +33 -0
  155. package/src/resources/generated_queries/GetNftPoolCollectionsByExchange.graphql +38 -0
  156. package/src/resources/generated_queries/GetNftPoolEvents.graphql +41 -0
  157. package/src/resources/generated_queries/GetNftPoolStats.graphql +40 -0
  158. package/src/resources/generated_queries/GetNftPoolsByCollectionAndExchange.graphql +89 -0
  159. package/src/resources/generated_queries/GetNftPoolsByOwner.graphql +89 -0
  160. package/src/resources/generated_queries/GetParallelAssets.graphql +50 -0
  161. package/src/resources/generated_queries/GetParallelCardChanges.graphql +57 -0
  162. package/src/resources/generated_queries/GetPrimePoolAssets.graphql +32 -0
  163. package/src/resources/generated_queries/GetPrimePoolEvents.graphql +38 -0
  164. package/src/resources/generated_queries/GetPrimePools.graphql +62 -0
  165. package/src/resources/generated_queries/GetSimulateTokenContractResults.graphql +128 -0
  166. package/src/resources/generated_queries/GetSymbol.graphql +11 -0
  167. package/src/resources/generated_queries/GetTokenCount.graphql +3 -0
  168. package/src/resources/generated_queries/GetTokenEvents.graphql +49 -0
  169. package/src/resources/generated_queries/GetTokenInfo.graphql +17 -0
  170. package/src/resources/generated_queries/GetTokenPrices.graphql +9 -0
  171. package/src/resources/generated_queries/GetTokensInfo.graphql +17 -0
  172. package/src/resources/generated_queries/GetUniV3Ticks.graphql +22 -0
  173. package/src/resources/generated_queries/GetWebhooks.graphql +36 -0
  174. package/src/resources/generated_queries/Holders.graphql +14 -0
  175. package/src/resources/generated_queries/LiquidityLocks.graphql +26 -0
  176. package/src/resources/generated_queries/LiquidityMetadata.graphql +17 -0
  177. package/src/resources/generated_queries/ListFavoriteTokens.graphql +58 -0
  178. package/src/resources/generated_queries/ListPairsForToken.graphql +141 -0
  179. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +282 -0
  180. package/src/resources/generated_queries/ListTopTokens.graphql +54 -0
  181. package/src/resources/generated_queries/NftHolders.graphql +12 -0
  182. package/src/resources/generated_queries/PairMetadata.graphql +73 -0
  183. package/src/resources/generated_queries/PrimeBalance.graphql +12 -0
  184. package/src/resources/generated_queries/PrimeHolders.graphql +13 -0
  185. package/src/resources/generated_queries/SearchNfts.graphql +35 -0
  186. package/src/resources/generated_queries/Token.graphql +62 -0
  187. package/src/resources/generated_queries/TokenLifecycleEvents.graphql +22 -0
  188. package/src/resources/generated_queries/TokenSparklines.graphql +10 -0
  189. package/src/resources/generated_queries/Tokens.graphql +62 -0
  190. package/src/resources/generated_queries/WalletNftCollectionAssets.graphql +11 -0
  191. package/src/resources/generated_queries/WalletNftCollections.graphql +10 -0
  192. package/src/resources/generated_subscriptions/OnBarsUpdated.graphql +513 -0
  193. package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +332 -0
  194. package/src/resources/generated_subscriptions/OnEventLabelCreated.graphql +11 -0
  195. package/src/resources/generated_subscriptions/OnEventsCreated.graphql +46 -0
  196. package/src/resources/generated_subscriptions/OnLatestPairUpdated.graphql +42 -0
  197. package/src/resources/generated_subscriptions/OnLatestTokens.graphql +37 -0
  198. package/src/resources/generated_subscriptions/OnNftAssetsCreated.graphql +42 -0
  199. package/src/resources/generated_subscriptions/OnNftEventsCreated.graphql +36 -0
  200. package/src/resources/generated_subscriptions/OnNftPoolEventsCreated.graphql +37 -0
  201. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +73 -0
  202. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +9 -0
  203. package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +9 -0
  204. package/src/resources/generated_subscriptions/OnSimulateTokenContract.graphql +121 -0
  205. package/src/resources/generated_subscriptions/OnTokenEventsCreated.graphql +39 -0
  206. package/src/resources/generated_subscriptions/OnTokenLifecycleEventsCreated.graphql +18 -0
  207. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +32 -0
  208. package/src/resources/graphql.schema.json +1570 -0
  209. package/src/resources/graphql.ts +148 -0
  210. package/src/resources/schema.graphql +184 -0
  211. package/src/scripts/buildSdk.ts +173 -0
  212. package/src/scripts/generateGraphql.ts +236 -0
  213. package/src/sdk/Mutation.ts +13 -4
  214. package/src/sdk/Query.ts +252 -37
  215. package/src/sdk/Subscribe.ts +230 -41
  216. package/src/sdk/generated/gql.ts +354 -44
  217. package/src/sdk/generated/graphql.ts +889 -151
  218. package/dist/sdk/Query.test.d.ts +0 -2
  219. package/dist/sdk/Query.test.d.ts.map +0 -1
  220. package/dist/sdk/Query.test.js +0 -50
  221. package/dist/sdk/Query.test.js.map +0 -1
  222. package/src/sdk/Query.test.ts +0 -40
  223. package/src/sdk/graphql/CreateWebhooks.graphql +0 -464
  224. package/src/sdk/graphql/FilterExchanges.graphql +0 -23
  225. package/src/sdk/graphql/FilterPairs.graphql +0 -126
  226. package/src/sdk/graphql/FilterTokens.graphql +0 -131
  227. package/src/sdk/graphql/GetPrice.graphql +0 -9
  228. package/src/sdk/graphql/GetTokens.graphql +0 -14
  229. package/src/sdk/graphql/GetWebhooks.graphql +0 -120
  230. package/src/sdk/graphql/OnBarsUpdated.graphql +0 -68
  231. package/src/sdk/graphql/OnEventsCreated.graphql +0 -62
  232. package/src/sdk/graphql/OnNftEventsCreated.graphql +0 -83
@@ -0,0 +1,73 @@
1
+ subscription OnPairMetadataUpdated(
2
+ $id: String
3
+ $quoteToken: QuoteToken
4
+ $statsType: TokenPairStatisticsType
5
+ ) {
6
+ onPairMetadataUpdated(
7
+ id: $id
8
+ quoteToken: $quoteToken
9
+ statsType: $statsType
10
+ ) {
11
+ exchangeId
12
+ fee
13
+ highPrice1
14
+ highPrice1w
15
+ highPrice4
16
+ highPrice12
17
+ highPrice24
18
+ id
19
+ liquidity
20
+ liquidityToken
21
+ lowPrice1
22
+ lowPrice1w
23
+ lowPrice4
24
+ lowPrice12
25
+ lowPrice24
26
+ networkId
27
+ nonLiquidityToken
28
+ pairAddress
29
+ price
30
+ priceChange1
31
+ priceChange1w
32
+ priceChange4
33
+ priceChange5m
34
+ priceChange12
35
+ priceChange24
36
+ quoteToken
37
+ statsType
38
+ tickSpacing
39
+ token0 {
40
+ address
41
+ decimals
42
+ labels {
43
+ createdAt
44
+ subType
45
+ type
46
+ }
47
+ name
48
+ networkId
49
+ pooled
50
+ price
51
+ symbol
52
+ }
53
+ token1 {
54
+ address
55
+ decimals
56
+ labels {
57
+ createdAt
58
+ subType
59
+ type
60
+ }
61
+ name
62
+ networkId
63
+ pooled
64
+ price
65
+ symbol
66
+ }
67
+ volume1
68
+ volume1w
69
+ volume4
70
+ volume12
71
+ volume24
72
+ }
73
+ }
@@ -6,4 +6,4 @@ subscription OnPriceUpdated($address: String, $networkId: Int) {
6
6
  priceUsd
7
7
  timestamp
8
8
  }
9
- }
9
+ }
@@ -0,0 +1,9 @@
1
+ subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
2
+ onPricesUpdated(input: $input) {
3
+ address
4
+ confidence
5
+ networkId
6
+ priceUsd
7
+ timestamp
8
+ }
9
+ }
@@ -0,0 +1,121 @@
1
+ subscription OnSimulateTokenContract(
2
+ $contractAddress: String
3
+ $networkId: Int!
4
+ $simulationId: String
5
+ ) {
6
+ onSimulateTokenContract(
7
+ contractAddress: $contractAddress
8
+ networkId: $networkId
9
+ simulationId: $simulationId
10
+ ) {
11
+ analysisType
12
+ blockNumber
13
+ contractBalance {
14
+ tokenContractEthBalance
15
+ tokenContractTokenBalance
16
+ }
17
+ contractHashKey
18
+ creator {
19
+ creatorAddress
20
+ creatorEthBalance
21
+ creatorTokenBalance
22
+ }
23
+ deploy {
24
+ deploySuccess
25
+ tokenMintedToDeployer
26
+ }
27
+ errors {
28
+ contractBalanceErrors {
29
+ tokenContractEthBalanceError
30
+ tokenContractTokenBalanceError
31
+ }
32
+ creatorErrors {
33
+ creatorEthBalanceError
34
+ creatorTokenBalanceError
35
+ }
36
+ deployErrors {
37
+ deployError
38
+ tokenMintedToDeployerError
39
+ }
40
+ liquidityErrors {
41
+ addLiquidityError
42
+ lpTotalSupplyError
43
+ postLiquidityEnableTradingError
44
+ preLiquidityEnableTradingError
45
+ }
46
+ ownerErrors {
47
+ ownerAddressError
48
+ ownerEthBalanceError
49
+ ownerTokenBalanceError
50
+ }
51
+ simulatorError
52
+ swapErrors {
53
+ buyError
54
+ buyErrorEnum
55
+ sellError
56
+ sellErrorEnum
57
+ }
58
+ tokenErrors {
59
+ canRenounceOwnershipError
60
+ canTransferOwnershipError
61
+ decimalsError
62
+ tokenNameError
63
+ tokenSymbolError
64
+ totalSupplyError
65
+ }
66
+ transferErrors {
67
+ tokenContractApprovalError
68
+ tokenTransferredToContractError
69
+ userApprovalError
70
+ }
71
+ }
72
+ id
73
+ liquidity {
74
+ addLiquiditySuccess
75
+ liquiditySetByPreLiquidityOpenTradingCall
76
+ lpTotalSupply
77
+ pairAddress
78
+ postLiquidityEnableTradingCall
79
+ postLiquidityEnableTradingSuccess
80
+ preLiquidityEnableTradingCall
81
+ preLiquidityEnableTradingSuccess
82
+ preLiquidityEnableTradingSupportsTransfer
83
+ }
84
+ networkId
85
+ owner {
86
+ ownerAddress
87
+ ownerEthBalance
88
+ ownerTokenBalance
89
+ }
90
+ sortKey
91
+ status
92
+ swap {
93
+ buyGasUsed
94
+ buySuccess
95
+ buyTax
96
+ maxBuyAmount
97
+ maxSellAmount
98
+ sellGasUsed
99
+ sellSuccess
100
+ sellTax
101
+ }
102
+ timestamp
103
+ token {
104
+ canRenounceOwnership
105
+ canTransferOwnership
106
+ contractAddress
107
+ decimals
108
+ isOwnerRenounced
109
+ tokenName
110
+ tokenSymbol
111
+ totalSupply
112
+ }
113
+ transfer {
114
+ tokenContractApprovalSuccess
115
+ tokenTransferredToContractSuccess
116
+ userApprovalSuccess
117
+ }
118
+ uuid
119
+ uuidHashKey
120
+ }
121
+ }
@@ -0,0 +1,39 @@
1
+ subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
2
+ onTokenEventsCreated(input: $input) {
3
+ events {
4
+ address
5
+ baseTokenPrice
6
+ blockHash
7
+ blockNumber
8
+ eventDisplayType
9
+ eventType
10
+ id
11
+ labels {
12
+ sandwich {
13
+ label
14
+ sandwichType
15
+ token0DrainedAmount
16
+ token1DrainedAmount
17
+ }
18
+ washtrade {
19
+ label
20
+ }
21
+ }
22
+ liquidityToken
23
+ logIndex
24
+ maker
25
+ networkId
26
+ quoteToken
27
+ timestamp
28
+ token0PoolValueUsd
29
+ token0SwapValueUsd
30
+ token0ValueBase
31
+ token1PoolValueUsd
32
+ token1SwapValueUsd
33
+ token1ValueBase
34
+ transactionHash
35
+ transactionIndex
36
+ }
37
+ id
38
+ }
39
+ }
@@ -0,0 +1,18 @@
1
+ subscription OnTokenLifecycleEventsCreated($address: String, $networkId: Int) {
2
+ onTokenLifecycleEventsCreated(address: $address, networkId: $networkId) {
3
+ events {
4
+ blockHash
5
+ blockNumber
6
+ eventType
7
+ id
8
+ logIndex
9
+ maker
10
+ networkId
11
+ timestamp
12
+ tokenAddress
13
+ transactionHash
14
+ transactionIndex
15
+ }
16
+ id
17
+ }
18
+ }
@@ -0,0 +1,32 @@
1
+ subscription OnUnconfirmedEventsCreated(
2
+ $address: String
3
+ $id: String
4
+ $quoteToken: QuoteToken
5
+ ) {
6
+ onUnconfirmedEventsCreated(
7
+ address: $address
8
+ id: $id
9
+ quoteToken: $quoteToken
10
+ ) {
11
+ address
12
+ events {
13
+ address
14
+ blockHash
15
+ blockNumber
16
+ eventDisplayType
17
+ eventType
18
+ id
19
+ logIndex
20
+ maker
21
+ networkId
22
+ quoteToken
23
+ supplementalIndex
24
+ timestamp
25
+ transactionHash
26
+ transactionIndex
27
+ }
28
+ id
29
+ networkId
30
+ quoteToken
31
+ }
32
+ }
@@ -103,6 +103,20 @@ export type AddTokenLifecycleEventsOutput = {
103
103
  events: Array<TokenLifecycleEvent>;
104
104
  id: Scalars['String']['output'];
105
105
  };
106
+ /** Response returned by `onUnconfirmedEventsCreated`. */
107
+ export type AddUnconfirmedEventsOutput = {
108
+ __typename?: 'AddUnconfirmedEventsOutput';
109
+ /** The contract address of the pair. */
110
+ address: Scalars['String']['output'];
111
+ /** A list of transactions for the token. */
112
+ events: Array<Maybe<UnconfirmedEvent>>;
113
+ /** The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
114
+ id: Scalars['String']['output'];
115
+ /** The network ID that the token is deployed on. */
116
+ networkId: Scalars['Int']['output'];
117
+ /** The token of interest within the pair. Can be `token0` or `token1`. */
118
+ quoteToken?: Maybe<QuoteToken>;
119
+ };
106
120
  export declare enum AlertRecurrence {
107
121
  Indefinite = "INDEFINITE",
108
122
  Once = "ONCE"
@@ -1096,6 +1110,7 @@ export type GasEstimate = {
1096
1110
  approveTxHash?: Maybe<Scalars['String']['output']>;
1097
1111
  error?: Maybe<Scalars['String']['output']>;
1098
1112
  gasLimitEstimate?: Maybe<Scalars['String']['output']>;
1113
+ totalFee?: Maybe<Scalars['String']['output']>;
1099
1114
  };
1100
1115
  export type GasFee = {
1101
1116
  __typename?: 'GasFee';
@@ -1139,9 +1154,23 @@ export type GetGasEstimateInput = {
1139
1154
  networkId: Scalars['Int']['input'];
1140
1155
  outputTokenAddress: Scalars['String']['input'];
1141
1156
  poolAddress?: InputMaybe<Scalars['String']['input']>;
1157
+ sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
1142
1158
  userId?: InputMaybe<Scalars['Int']['input']>;
1143
1159
  walletId?: InputMaybe<Scalars['Int']['input']>;
1144
1160
  };
1161
+ /** Response returned by `getNetworkStats`. */
1162
+ export type GetNetworkStatsResponse = {
1163
+ __typename?: 'GetNetworkStatsResponse';
1164
+ liquidity: Scalars['Float']['output'];
1165
+ transactions1: Scalars['Int']['output'];
1166
+ transactions4: Scalars['Int']['output'];
1167
+ transactions12: Scalars['Int']['output'];
1168
+ transactions24: Scalars['Int']['output'];
1169
+ volume1: Scalars['Float']['output'];
1170
+ volume4: Scalars['Float']['output'];
1171
+ volume12: Scalars['Float']['output'];
1172
+ volume24: Scalars['Float']['output'];
1173
+ };
1145
1174
  /** Response returned by `getNftPoolCollectionsByExchange`. */
1146
1175
  export type GetNftPoolCollectionsResponse = {
1147
1176
  __typename?: 'GetNftPoolCollectionsResponse';
@@ -4098,6 +4127,10 @@ export type OnBarsUpdatedResponse = {
4098
4127
  /** The unix timestamp for the new bar. */
4099
4128
  timestamp: Scalars['Int']['output'];
4100
4129
  };
4130
+ export type OnPricesUpdatedInput = {
4131
+ address: Scalars['String']['input'];
4132
+ networkId: Scalars['Int']['input'];
4133
+ };
4101
4134
  export type OnTokenEventsCreatedInput = {
4102
4135
  networkId: Scalars['Int']['input'];
4103
4136
  tokenAddress: Scalars['String']['input'];
@@ -5372,6 +5405,7 @@ export type Query = {
5372
5405
  /** Returns new tokens listed over the last three days. */
5373
5406
  getLatestPairs?: Maybe<LatestPairConnection>;
5374
5407
  getLatestTokens?: Maybe<LatestTokenConnection>;
5408
+ getNetworkStats?: Maybe<GetNetworkStatsResponse>;
5375
5409
  /** Returns the status of a list of networks supported on Defined. */
5376
5410
  getNetworkStatus?: Maybe<Array<MetadataResponse>>;
5377
5411
  /** Returns a list of all networks supported on Defined. */
@@ -5523,6 +5557,7 @@ export type QueryFilterPairsArgs = {
5523
5557
  statsType?: InputMaybe<TokenPairStatisticsType>;
5524
5558
  };
5525
5559
  export type QueryFilterTokensArgs = {
5560
+ excludeTokens?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5526
5561
  filters?: InputMaybe<TokenFilters>;
5527
5562
  limit?: InputMaybe<Scalars['Int']['input']>;
5528
5563
  offset?: InputMaybe<Scalars['Int']['input']>;
@@ -5595,6 +5630,10 @@ export type QueryGetLatestTokensArgs = {
5595
5630
  networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
5596
5631
  offset?: InputMaybe<Scalars['Int']['input']>;
5597
5632
  };
5633
+ export type QueryGetNetworkStatsArgs = {
5634
+ exchangeAddress?: InputMaybe<Scalars['String']['input']>;
5635
+ networkId: Scalars['Int']['input'];
5636
+ };
5598
5637
  export type QueryGetNetworkStatusArgs = {
5599
5638
  networkIds: Array<Scalars['Int']['input']>;
5600
5639
  };
@@ -5648,6 +5687,7 @@ export type QueryGetNftPoolEventsArgs = {
5648
5687
  limit?: InputMaybe<Scalars['Int']['input']>;
5649
5688
  networkId: Scalars['Int']['input'];
5650
5689
  poolAddress?: InputMaybe<Scalars['String']['input']>;
5690
+ timestamp?: InputMaybe<EventQueryTimestampInput>;
5651
5691
  };
5652
5692
  export type QueryGetNftPoolStatsArgs = {
5653
5693
  collectionAddress: Scalars['String']['input'];
@@ -5906,6 +5946,30 @@ export type RawTransactionWebhookConditionInput = {
5906
5946
  to?: InputMaybe<StringEqualsConditionInput>;
5907
5947
  toOrFrom?: InputMaybe<StringEqualsConditionInput>;
5908
5948
  };
5949
+ export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
5950
+ export type ReferralsEventPayoutData = {
5951
+ __typename?: 'ReferralsEventPayoutData';
5952
+ payouts: Array<ReferralsPayoutData>;
5953
+ };
5954
+ export type ReferralsEventRewardData = {
5955
+ __typename?: 'ReferralsEventRewardData';
5956
+ inputTokenAddress: Scalars['String']['output'];
5957
+ networkId: Scalars['Int']['output'];
5958
+ outputTokenAddress: Scalars['String']['output'];
5959
+ payoutPercent: Scalars['Float']['output'];
5960
+ referralUserId: Scalars['String']['output'];
5961
+ rewardTokenAddress?: Maybe<Scalars['String']['output']>;
5962
+ rewardTokenAmount?: Maybe<Scalars['String']['output']>;
5963
+ transactionFee: Scalars['String']['output'];
5964
+ transactionId: Scalars['String']['output'];
5965
+ transactionTokenAddress: Scalars['String']['output'];
5966
+ transactionTokenAmount: Scalars['String']['output'];
5967
+ };
5968
+ export type ReferralsPayoutData = {
5969
+ __typename?: 'ReferralsPayoutData';
5970
+ tokenAddressNetworkIdPaid: Scalars['String']['output'];
5971
+ tokenAmountPaid: Scalars['String']['output'];
5972
+ };
5909
5973
  /** Price data for each supported resolution. */
5910
5974
  export type ResolutionBarData = {
5911
5975
  __typename?: 'ResolutionBarData';
@@ -6265,11 +6329,15 @@ export type Subscription = {
6265
6329
  onPairMetadataUpdated?: Maybe<PairMetadata>;
6266
6330
  /** Live-streamed price updates for a token. */
6267
6331
  onPriceUpdated?: Maybe<Price>;
6332
+ /** Live-streamed price updates for multiple tokens. */
6333
+ onPricesUpdated: Price;
6268
6334
  onSimulateTokenContract: SimulateTokenContractResult;
6269
6335
  /** Live streamed events for a given token across all it's pools */
6270
6336
  onTokenEventsCreated: AddTokenEventsOutput;
6271
6337
  /** Live-streamed token lifecycle events (mints and burns) */
6272
6338
  onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
6339
+ /** Live-streamed unconfirmed transactions for a token. (Solana only) */
6340
+ onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
6273
6341
  };
6274
6342
  export type SubscriptionOnBarsUpdatedArgs = {
6275
6343
  pairId?: InputMaybe<Scalars['String']['input']>;
@@ -6322,6 +6390,9 @@ export type SubscriptionOnPriceUpdatedArgs = {
6322
6390
  address?: InputMaybe<Scalars['String']['input']>;
6323
6391
  networkId?: InputMaybe<Scalars['Int']['input']>;
6324
6392
  };
6393
+ export type SubscriptionOnPricesUpdatedArgs = {
6394
+ input: Array<OnPricesUpdatedInput>;
6395
+ };
6325
6396
  export type SubscriptionOnSimulateTokenContractArgs = {
6326
6397
  contractAddress?: InputMaybe<Scalars['String']['input']>;
6327
6398
  networkId: Scalars['Int']['input'];
@@ -6334,6 +6405,11 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
6334
6405
  address?: InputMaybe<Scalars['String']['input']>;
6335
6406
  networkId?: InputMaybe<Scalars['Int']['input']>;
6336
6407
  };
6408
+ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
6409
+ address?: InputMaybe<Scalars['String']['input']>;
6410
+ id?: InputMaybe<Scalars['String']['input']>;
6411
+ quoteToken?: InputMaybe<QuoteToken>;
6412
+ };
6337
6413
  /** Event data for a token swap event. */
6338
6414
  export type SwapEventData = {
6339
6415
  __typename?: 'SwapEventData';
@@ -7058,6 +7134,61 @@ export type TokenWithMetadata = {
7058
7134
  /** The volume over the time frame requested in USD. */
7059
7135
  volume: Scalars['String']['output'];
7060
7136
  };
7137
+ /** An unconfirmed token transaction. */
7138
+ export type UnconfirmedEvent = {
7139
+ __typename?: 'UnconfirmedEvent';
7140
+ /** The contract address of the token's top pair. */
7141
+ address: Scalars['String']['output'];
7142
+ /** The hash of the block where the transaction occurred. */
7143
+ blockHash: Scalars['String']['output'];
7144
+ /** The block number for the transaction. */
7145
+ blockNumber: Scalars['Int']['output'];
7146
+ /** The event-specific data for the transaction. */
7147
+ data?: Maybe<UnconfirmedEventData>;
7148
+ /** A more specific breakdown of `eventType`. Splits `Swap` into `Buy` or `Sell`. */
7149
+ eventDisplayType?: Maybe<EventDisplayType>;
7150
+ /** The type of transaction event. Can be `Burn`, `Mint`, `Swap`, `Sync`, `Collect`, or `CollectProtocol`. */
7151
+ eventType: EventType;
7152
+ /** The ID of the event (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
7153
+ id: Scalars['String']['output'];
7154
+ /** The index of the log in the block. */
7155
+ logIndex: Scalars['Int']['output'];
7156
+ /** The wallet address that performed the transaction. */
7157
+ maker?: Maybe<Scalars['String']['output']>;
7158
+ /** The network ID that the token is deployed on. */
7159
+ networkId: Scalars['Int']['output'];
7160
+ /** The token of interest within the token's top pair. Can be `token0` or `token1`. */
7161
+ quoteToken?: Maybe<QuoteToken>;
7162
+ /** A optional unique identifier of where the event is within the transaction. */
7163
+ supplementalIndex?: Maybe<Scalars['Int']['output']>;
7164
+ /** The unix timestamp for when the transaction occurred. */
7165
+ timestamp: Scalars['Int']['output'];
7166
+ /** The unique hash for the transaction. */
7167
+ transactionHash: Scalars['String']['output'];
7168
+ /** The index of the transaction within the block. */
7169
+ transactionIndex: Scalars['Int']['output'];
7170
+ };
7171
+ export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
7172
+ export type UnconfirmedLiquidityChangeEventData = {
7173
+ __typename?: 'UnconfirmedLiquidityChangeEventData';
7174
+ /** The amount of `token0` added or removed from the pair. */
7175
+ amount0?: Maybe<Scalars['String']['output']>;
7176
+ /** The amount of `token0` added or removed from the pair, adjusted by the number of decimals in the token. For example, if `amount0` is in WEI, `amount0Shifted` will be in ETH. */
7177
+ amount0Shifted?: Maybe<Scalars['String']['output']>;
7178
+ /** The amount of `token1` added or removed from the pair. */
7179
+ amount1?: Maybe<Scalars['String']['output']>;
7180
+ /** The amount of `token1` added or removed from the pair, adjusted by the number of decimals in the token. For example, USDC `amount1Shifted` will be by 6 decimals. */
7181
+ amount1Shifted?: Maybe<Scalars['String']['output']>;
7182
+ /** The type of token event, `Mint` or 'Burn'. */
7183
+ type: EventType;
7184
+ };
7185
+ export type UnconfirmedSwapEventData = {
7186
+ __typename?: 'UnconfirmedSwapEventData';
7187
+ /** The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap. */
7188
+ amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
7189
+ /** The type of token event, `Swap`. */
7190
+ type: EventType;
7191
+ };
7061
7192
  export type UniV3Tick = {
7062
7193
  __typename?: 'UniV3Tick';
7063
7194
  liquidityNet?: Maybe<Scalars['String']['output']>;