@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
@@ -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,24 @@ export type AddTokenLifecycleEventsOutput = {
103
103
  events: Array<TokenLifecycleEvent>;
104
104
  id: Scalars['String']['output'];
105
105
  };
106
+ export type AddTrackedWalletEventsOutput = {
107
+ __typename?: 'AddTrackedWalletEventsOutput';
108
+ userId: Scalars['String']['output'];
109
+ };
110
+ /** Response returned by `onUnconfirmedEventsCreated`. */
111
+ export type AddUnconfirmedEventsOutput = {
112
+ __typename?: 'AddUnconfirmedEventsOutput';
113
+ /** The contract address of the pair. */
114
+ address: Scalars['String']['output'];
115
+ /** A list of transactions for the token. */
116
+ events: Array<Maybe<UnconfirmedEvent>>;
117
+ /** The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
118
+ id: Scalars['String']['output'];
119
+ /** The network ID that the token is deployed on. */
120
+ networkId: Scalars['Int']['output'];
121
+ /** The token of interest within the pair. Can be `token0` or `token1`. */
122
+ quoteToken?: Maybe<QuoteToken>;
123
+ };
106
124
  export declare enum AlertRecurrence {
107
125
  Indefinite = "INDEFINITE",
108
126
  Once = "ONCE"
@@ -1093,9 +1111,11 @@ export type FrontRunLabelData = {
1093
1111
  };
1094
1112
  export type GasEstimate = {
1095
1113
  __typename?: 'GasEstimate';
1096
- approveTxHash?: Maybe<Scalars['String']['output']>;
1097
1114
  error?: Maybe<Scalars['String']['output']>;
1115
+ errorReason?: Maybe<Scalars['String']['output']>;
1098
1116
  gasLimitEstimate?: Maybe<Scalars['String']['output']>;
1117
+ gasPrice?: Maybe<Scalars['String']['output']>;
1118
+ totalFee?: Maybe<Scalars['String']['output']>;
1099
1119
  };
1100
1120
  export type GasFee = {
1101
1121
  __typename?: 'GasFee';
@@ -1139,9 +1159,23 @@ export type GetGasEstimateInput = {
1139
1159
  networkId: Scalars['Int']['input'];
1140
1160
  outputTokenAddress: Scalars['String']['input'];
1141
1161
  poolAddress?: InputMaybe<Scalars['String']['input']>;
1162
+ sendWithPrivateRpc?: InputMaybe<Scalars['Boolean']['input']>;
1142
1163
  userId?: InputMaybe<Scalars['Int']['input']>;
1143
1164
  walletId?: InputMaybe<Scalars['Int']['input']>;
1144
1165
  };
1166
+ /** Response returned by `getNetworkStats`. */
1167
+ export type GetNetworkStatsResponse = {
1168
+ __typename?: 'GetNetworkStatsResponse';
1169
+ liquidity: Scalars['Float']['output'];
1170
+ transactions1: Scalars['Int']['output'];
1171
+ transactions4: Scalars['Int']['output'];
1172
+ transactions12: Scalars['Int']['output'];
1173
+ transactions24: Scalars['Int']['output'];
1174
+ volume1: Scalars['Float']['output'];
1175
+ volume4: Scalars['Float']['output'];
1176
+ volume12: Scalars['Float']['output'];
1177
+ volume24: Scalars['Float']['output'];
1178
+ };
1145
1179
  /** Response returned by `getNftPoolCollectionsByExchange`. */
1146
1180
  export type GetNftPoolCollectionsResponse = {
1147
1181
  __typename?: 'GetNftPoolCollectionsResponse';
@@ -1541,6 +1575,22 @@ export type LockedLiquidityData = {
1541
1575
  /** A breakdown of how much and where liquidity is locked. */
1542
1576
  lockBreakdown: Array<Maybe<LockBreakdown>>;
1543
1577
  };
1578
+ /** Response returned by `getTokenEventsForMaker`. */
1579
+ export type MakerEventConnection = {
1580
+ __typename?: 'MakerEventConnection';
1581
+ /** A cursor for use in pagination. */
1582
+ cursor?: Maybe<Scalars['String']['output']>;
1583
+ /** A list of transactions for a token's top pair. */
1584
+ items?: Maybe<Array<Maybe<Event>>>;
1585
+ };
1586
+ export type MakerEventsQueryInput = {
1587
+ /** The specific wallet address to filter by. */
1588
+ maker: Scalars['String']['input'];
1589
+ /** The network ID to filter by. */
1590
+ networkId: Scalars['Int']['input'];
1591
+ /** The token of interest. Can be `token0` or `token1`. */
1592
+ quoteToken?: InputMaybe<QuoteToken>;
1593
+ };
1544
1594
  /** The status for a network supported on Defined. */
1545
1595
  export type MetadataResponse = {
1546
1596
  __typename?: 'MetadataResponse';
@@ -1553,6 +1603,16 @@ export type MetadataResponse = {
1553
1603
  /** The name of the network. */
1554
1604
  networkName: Scalars['String']['output'];
1555
1605
  };
1606
+ export type MigrateTrackedWalletsInput = {
1607
+ fromUserId: Scalars['String']['input'];
1608
+ toUserId: Scalars['String']['input'];
1609
+ };
1610
+ export type MigrateTrackedWalletsOutput = {
1611
+ __typename?: 'MigrateTrackedWalletsOutput';
1612
+ fromUserId: Scalars['String']['output'];
1613
+ status: Scalars['String']['output'];
1614
+ toUserId: Scalars['String']['output'];
1615
+ };
1556
1616
  /** Event data for a token mint event. */
1557
1617
  export type MintEventData = {
1558
1618
  __typename?: 'MintEventData';
@@ -4098,6 +4158,10 @@ export type OnBarsUpdatedResponse = {
4098
4158
  /** The unix timestamp for the new bar. */
4099
4159
  timestamp: Scalars['Int']['output'];
4100
4160
  };
4161
+ export type OnPricesUpdatedInput = {
4162
+ address: Scalars['String']['input'];
4163
+ networkId: Scalars['Int']['input'];
4164
+ };
4101
4165
  export type OnTokenEventsCreatedInput = {
4102
4166
  networkId: Scalars['Int']['input'];
4103
4167
  tokenAddress: Scalars['String']['input'];
@@ -5372,6 +5436,8 @@ export type Query = {
5372
5436
  /** Returns new tokens listed over the last three days. */
5373
5437
  getLatestPairs?: Maybe<LatestPairConnection>;
5374
5438
  getLatestTokens?: Maybe<LatestTokenConnection>;
5439
+ /** Returns metadata for a given network. */
5440
+ getNetworkStats?: Maybe<GetNetworkStatsResponse>;
5375
5441
  /** Returns the status of a list of networks supported on Defined. */
5376
5442
  getNetworkStatus?: Maybe<Array<MetadataResponse>>;
5377
5443
  /** Returns a list of all networks supported on Defined. */
@@ -5415,6 +5481,7 @@ export type Query = {
5415
5481
  getTokenCount: Scalars['String']['output'];
5416
5482
  /** Returns transactions for a pair. */
5417
5483
  getTokenEvents?: Maybe<EventConnection>;
5484
+ getTokenEventsForMaker?: Maybe<MakerEventConnection>;
5418
5485
  /** Returns metadata for a given token. */
5419
5486
  getTokenInfo?: Maybe<TokenInfo>;
5420
5487
  /** Returns real-time or historical prices for a list of tokens, fetched in batches. */
@@ -5523,6 +5590,7 @@ export type QueryFilterPairsArgs = {
5523
5590
  statsType?: InputMaybe<TokenPairStatisticsType>;
5524
5591
  };
5525
5592
  export type QueryFilterTokensArgs = {
5593
+ excludeTokens?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5526
5594
  filters?: InputMaybe<TokenFilters>;
5527
5595
  limit?: InputMaybe<Scalars['Int']['input']>;
5528
5596
  offset?: InputMaybe<Scalars['Int']['input']>;
@@ -5595,6 +5663,10 @@ export type QueryGetLatestTokensArgs = {
5595
5663
  networkFilter?: InputMaybe<Array<Scalars['Int']['input']>>;
5596
5664
  offset?: InputMaybe<Scalars['Int']['input']>;
5597
5665
  };
5666
+ export type QueryGetNetworkStatsArgs = {
5667
+ exchangeAddress?: InputMaybe<Scalars['String']['input']>;
5668
+ networkId: Scalars['Int']['input'];
5669
+ };
5598
5670
  export type QueryGetNetworkStatusArgs = {
5599
5671
  networkIds: Array<Scalars['Int']['input']>;
5600
5672
  };
@@ -5648,6 +5720,7 @@ export type QueryGetNftPoolEventsArgs = {
5648
5720
  limit?: InputMaybe<Scalars['Int']['input']>;
5649
5721
  networkId: Scalars['Int']['input'];
5650
5722
  poolAddress?: InputMaybe<Scalars['String']['input']>;
5723
+ timestamp?: InputMaybe<EventQueryTimestampInput>;
5651
5724
  };
5652
5725
  export type QueryGetNftPoolStatsArgs = {
5653
5726
  collectionAddress: Scalars['String']['input'];
@@ -5723,6 +5796,12 @@ export type QueryGetTokenEventsArgs = {
5723
5796
  limit?: InputMaybe<Scalars['Int']['input']>;
5724
5797
  query: EventsQueryInput;
5725
5798
  };
5799
+ export type QueryGetTokenEventsForMakerArgs = {
5800
+ cursor?: InputMaybe<Scalars['String']['input']>;
5801
+ direction?: InputMaybe<RankingDirection>;
5802
+ limit?: InputMaybe<Scalars['Int']['input']>;
5803
+ query: MakerEventsQueryInput;
5804
+ };
5726
5805
  export type QueryGetTokenInfoArgs = {
5727
5806
  address: Scalars['String']['input'];
5728
5807
  networkId: Scalars['Int']['input'];
@@ -5906,6 +5985,30 @@ export type RawTransactionWebhookConditionInput = {
5906
5985
  to?: InputMaybe<StringEqualsConditionInput>;
5907
5986
  toOrFrom?: InputMaybe<StringEqualsConditionInput>;
5908
5987
  };
5988
+ export type ReferralEventData = ReferralsEventPayoutData | ReferralsEventRewardData;
5989
+ export type ReferralsEventPayoutData = {
5990
+ __typename?: 'ReferralsEventPayoutData';
5991
+ payouts: Array<ReferralsPayoutData>;
5992
+ };
5993
+ export type ReferralsEventRewardData = {
5994
+ __typename?: 'ReferralsEventRewardData';
5995
+ inputTokenAddress: Scalars['String']['output'];
5996
+ networkId: Scalars['Int']['output'];
5997
+ outputTokenAddress: Scalars['String']['output'];
5998
+ payoutPercent: Scalars['Float']['output'];
5999
+ referralUserId: Scalars['String']['output'];
6000
+ rewardTokenAddress?: Maybe<Scalars['String']['output']>;
6001
+ rewardTokenAmount?: Maybe<Scalars['String']['output']>;
6002
+ transactionFee: Scalars['String']['output'];
6003
+ transactionId: Scalars['String']['output'];
6004
+ transactionTokenAddress: Scalars['String']['output'];
6005
+ transactionTokenAmount: Scalars['String']['output'];
6006
+ };
6007
+ export type ReferralsPayoutData = {
6008
+ __typename?: 'ReferralsPayoutData';
6009
+ tokenAddressNetworkIdPaid: Scalars['String']['output'];
6010
+ tokenAmountPaid: Scalars['String']['output'];
6011
+ };
5909
6012
  /** Price data for each supported resolution. */
5910
6013
  export type ResolutionBarData = {
5911
6014
  __typename?: 'ResolutionBarData';
@@ -6265,11 +6368,15 @@ export type Subscription = {
6265
6368
  onPairMetadataUpdated?: Maybe<PairMetadata>;
6266
6369
  /** Live-streamed price updates for a token. */
6267
6370
  onPriceUpdated?: Maybe<Price>;
6371
+ /** Live-streamed price updates for multiple tokens. */
6372
+ onPricesUpdated: Price;
6268
6373
  onSimulateTokenContract: SimulateTokenContractResult;
6269
6374
  /** Live streamed events for a given token across all it's pools */
6270
6375
  onTokenEventsCreated: AddTokenEventsOutput;
6271
6376
  /** Live-streamed token lifecycle events (mints and burns) */
6272
6377
  onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
6378
+ /** Live-streamed unconfirmed transactions for a token. (Solana only) */
6379
+ onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
6273
6380
  };
6274
6381
  export type SubscriptionOnBarsUpdatedArgs = {
6275
6382
  pairId?: InputMaybe<Scalars['String']['input']>;
@@ -6322,6 +6429,9 @@ export type SubscriptionOnPriceUpdatedArgs = {
6322
6429
  address?: InputMaybe<Scalars['String']['input']>;
6323
6430
  networkId?: InputMaybe<Scalars['Int']['input']>;
6324
6431
  };
6432
+ export type SubscriptionOnPricesUpdatedArgs = {
6433
+ input: Array<OnPricesUpdatedInput>;
6434
+ };
6325
6435
  export type SubscriptionOnSimulateTokenContractArgs = {
6326
6436
  contractAddress?: InputMaybe<Scalars['String']['input']>;
6327
6437
  networkId: Scalars['Int']['input'];
@@ -6334,6 +6444,11 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
6334
6444
  address?: InputMaybe<Scalars['String']['input']>;
6335
6445
  networkId?: InputMaybe<Scalars['Int']['input']>;
6336
6446
  };
6447
+ export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
6448
+ address?: InputMaybe<Scalars['String']['input']>;
6449
+ id?: InputMaybe<Scalars['String']['input']>;
6450
+ quoteToken?: InputMaybe<QuoteToken>;
6451
+ };
6337
6452
  /** Event data for a token swap event. */
6338
6453
  export type SwapEventData = {
6339
6454
  __typename?: 'SwapEventData';
@@ -6766,6 +6881,8 @@ export type TokenInfo = {
6766
6881
  description?: Maybe<Scalars['String']['output']>;
6767
6882
  /** Uniquely identifies the token. */
6768
6883
  id: Scalars['String']['output'];
6884
+ /** The token banner URL. */
6885
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
6769
6886
  /** The large token logo URL. */
6770
6887
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
6771
6888
  /** The small token logo URL. */
@@ -6993,6 +7110,8 @@ export type TokenWithMetadata = {
6993
7110
  exchanges: Array<Exchange>;
6994
7111
  /** The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
6995
7112
  id: Scalars['String']['output'];
7113
+ /** The token banner URL. */
7114
+ imageBannerUrl?: Maybe<Scalars['String']['output']>;
6996
7115
  /** The token logo URL. */
6997
7116
  imageLargeUrl?: Maybe<Scalars['String']['output']>;
6998
7117
  /** The token logo URL. */
@@ -7058,6 +7177,61 @@ export type TokenWithMetadata = {
7058
7177
  /** The volume over the time frame requested in USD. */
7059
7178
  volume: Scalars['String']['output'];
7060
7179
  };
7180
+ /** An unconfirmed token transaction. */
7181
+ export type UnconfirmedEvent = {
7182
+ __typename?: 'UnconfirmedEvent';
7183
+ /** The contract address of the token's top pair. */
7184
+ address: Scalars['String']['output'];
7185
+ /** The hash of the block where the transaction occurred. */
7186
+ blockHash: Scalars['String']['output'];
7187
+ /** The block number for the transaction. */
7188
+ blockNumber: Scalars['Int']['output'];
7189
+ /** The event-specific data for the transaction. */
7190
+ data?: Maybe<UnconfirmedEventData>;
7191
+ /** A more specific breakdown of `eventType`. Splits `Swap` into `Buy` or `Sell`. */
7192
+ eventDisplayType?: Maybe<EventDisplayType>;
7193
+ /** The type of transaction event. Can be `Burn`, `Mint`, `Swap`, `Sync`, `Collect`, or `CollectProtocol`. */
7194
+ eventType: EventType;
7195
+ /** The ID of the event (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`. */
7196
+ id: Scalars['String']['output'];
7197
+ /** The index of the log in the block. */
7198
+ logIndex: Scalars['Int']['output'];
7199
+ /** The wallet address that performed the transaction. */
7200
+ maker?: Maybe<Scalars['String']['output']>;
7201
+ /** The network ID that the token is deployed on. */
7202
+ networkId: Scalars['Int']['output'];
7203
+ /** The token of interest within the token's top pair. Can be `token0` or `token1`. */
7204
+ quoteToken?: Maybe<QuoteToken>;
7205
+ /** A optional unique identifier of where the event is within the transaction. */
7206
+ supplementalIndex?: Maybe<Scalars['Int']['output']>;
7207
+ /** The unix timestamp for when the transaction occurred. */
7208
+ timestamp: Scalars['Int']['output'];
7209
+ /** The unique hash for the transaction. */
7210
+ transactionHash: Scalars['String']['output'];
7211
+ /** The index of the transaction within the block. */
7212
+ transactionIndex: Scalars['Int']['output'];
7213
+ };
7214
+ export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
7215
+ export type UnconfirmedLiquidityChangeEventData = {
7216
+ __typename?: 'UnconfirmedLiquidityChangeEventData';
7217
+ /** The amount of `token0` added or removed from the pair. */
7218
+ amount0?: Maybe<Scalars['String']['output']>;
7219
+ /** 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. */
7220
+ amount0Shifted?: Maybe<Scalars['String']['output']>;
7221
+ /** The amount of `token1` added or removed from the pair. */
7222
+ amount1?: Maybe<Scalars['String']['output']>;
7223
+ /** 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. */
7224
+ amount1Shifted?: Maybe<Scalars['String']['output']>;
7225
+ /** The type of token event, `Mint` or 'Burn'. */
7226
+ type: EventType;
7227
+ };
7228
+ export type UnconfirmedSwapEventData = {
7229
+ __typename?: 'UnconfirmedSwapEventData';
7230
+ /** 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. */
7231
+ amountNonLiquidityToken?: Maybe<Scalars['String']['output']>;
7232
+ /** The type of token event, `Swap`. */
7233
+ type: EventType;
7234
+ };
7061
7235
  export type UniV3Tick = {
7062
7236
  __typename?: 'UniV3Tick';
7063
7237
  liquidityNet?: Maybe<Scalars['String']['output']>;