@gmx-io/sdk 1.6.3 → 1.7.0

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 (293) hide show
  1. package/README.md +49 -1
  2. package/build/cjs/scripts/generate-synthetics-abis.js +181 -0
  3. package/build/cjs/scripts/subsquid-codegen.js +1 -1
  4. package/build/cjs/src/abis/AbstractSubaccountApprovalNonceable.js +23 -0
  5. package/build/cjs/src/abis/CustomErrors.js +198 -88
  6. package/build/cjs/src/abis/ExchangeRouter.js +155 -272
  7. package/build/cjs/src/abis/GelatoRelayRouter.js +331 -0
  8. package/build/cjs/src/abis/SimulationRouter.js +583 -0
  9. package/build/cjs/src/abis/SubaccountGelatoRelayRouter.js +393 -0
  10. package/build/cjs/src/abis/SyntheticsReader.js +40 -0
  11. package/build/cjs/src/abis/index.js +4 -24
  12. package/build/cjs/src/clients/v1/modules/markets/index.js +10 -6
  13. package/build/cjs/src/clients/v1/modules/orders/utils.js +1 -0
  14. package/build/cjs/src/clients/v1/modules/orders/utils.spec.js +66 -0
  15. package/build/cjs/src/clients/v1/modules/positions/positions.js +2 -10
  16. package/build/cjs/src/clients/v1/modules/positions/positions.spec.js +1 -1
  17. package/build/cjs/src/clients/v1/modules/trades/trades.js +5 -1
  18. package/build/cjs/src/clients/v1/simulateExecuteOrder.js +33 -54
  19. package/build/cjs/src/clients/v1/testUtil.js +1 -1
  20. package/build/cjs/src/clients/v2/__tests__/data.spec.js +5 -5
  21. package/build/cjs/src/clients/v2/__tests__/decrease.spec.js +6 -6
  22. package/build/cjs/src/clients/v2/__tests__/editCancel.spec.js +15 -13
  23. package/build/cjs/src/clients/v2/__tests__/errors.spec.js +1 -47
  24. package/build/cjs/src/clients/v2/__tests__/errorsLifecycle.spec.js +53 -0
  25. package/build/cjs/src/clients/v2/__tests__/globalCleanup.js +80 -0
  26. package/build/cjs/src/clients/v2/__tests__/increase.spec.js +22 -20
  27. package/build/cjs/src/clients/v2/__tests__/multichain.spec.js +5 -6
  28. package/build/cjs/src/clients/v2/__tests__/prepareErrors.spec.js +167 -0
  29. package/build/cjs/src/clients/v2/__tests__/setupAllowance.js +32 -0
  30. package/build/cjs/src/clients/v2/__tests__/subaccount.spec.js +16 -123
  31. package/build/cjs/src/clients/v2/__tests__/subaccountLifecycle.spec.js +108 -0
  32. package/build/cjs/src/clients/v2/__tests__/testUtil.js +38 -5
  33. package/build/cjs/src/clients/v2/__tests__/tradingCapacity.spec.js +371 -0
  34. package/build/cjs/src/clients/v2/index.js +12 -1
  35. package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +0 -26
  36. package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +1692 -561
  37. package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +0 -47
  38. package/build/cjs/src/codegen/subsquid.js +377 -14
  39. package/build/cjs/src/configs/__tests__/markets.spec.js +8 -0
  40. package/build/cjs/src/configs/__tests__/tokens.spec.js +0 -1
  41. package/build/cjs/src/configs/api.js +0 -4
  42. package/build/cjs/src/configs/batch.js +0 -1
  43. package/build/cjs/src/configs/chainIds.js +1 -2
  44. package/build/cjs/src/configs/chains.js +2 -57
  45. package/build/cjs/src/configs/contracts.js +77 -133
  46. package/build/cjs/src/configs/dataStore.js +23 -8
  47. package/build/cjs/src/configs/express.js +0 -2
  48. package/build/cjs/src/configs/gasLimits.js +0 -7
  49. package/build/cjs/src/configs/markets.js +0 -23
  50. package/build/cjs/src/configs/multichainTokens.js +1 -1
  51. package/build/cjs/src/configs/oracleKeeper.js +0 -2
  52. package/build/cjs/src/configs/tokens.js +2 -104
  53. package/build/cjs/src/test/fixtures/arbitrumMarkets.json +1210 -0
  54. package/build/cjs/src/test/fixtures/arbitrumTickers.json +1002 -0
  55. package/build/cjs/src/test/fixtures/arbitrumTokens.json +136 -0
  56. package/build/cjs/src/test/mockCrossFetch.js +28 -0
  57. package/build/cjs/src/utils/__tests__/fees.spec.js +264 -0
  58. package/build/cjs/src/utils/__tests__/markets.spec.js +60 -0
  59. package/build/cjs/src/utils/__tests__/marketsRisk.spec.js +80 -0
  60. package/build/cjs/src/utils/__tests__/numbers.spec.js +88 -0
  61. package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +6 -25
  62. package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +6 -25
  63. package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +3 -13
  64. package/build/cjs/src/utils/__tests__/parseError.spec.js +23 -0
  65. package/build/cjs/src/utils/__tests__/positionPnlCap.spec.js +78 -0
  66. package/build/cjs/src/utils/__tests__/positions.spec.js +16 -4
  67. package/build/cjs/src/utils/__tests__/uiFeeReceiver.spec.js +159 -58
  68. package/build/cjs/src/utils/errors/parseError.js +13 -1
  69. package/build/cjs/src/utils/errors/transactionsErrors.js +2 -0
  70. package/build/cjs/src/utils/express/utils/batchOrderUtils.js +1 -2
  71. package/build/cjs/src/utils/express/utils/estimateExpressParams.js +2 -0
  72. package/build/cjs/src/utils/express/utils/estimateExpressParams.spec.js +81 -0
  73. package/build/cjs/src/utils/express/utils/expressParamsUtils.js +5 -1
  74. package/build/cjs/src/utils/express/utils/expressParamsUtils.spec.js +27 -0
  75. package/build/cjs/src/utils/fees/executionFee.js +0 -1
  76. package/build/cjs/src/utils/fees/priceImpact.js +61 -20
  77. package/build/cjs/src/utils/http/validation.js +33 -0
  78. package/build/cjs/src/utils/markets/__tests__/api.spec.js +168 -0
  79. package/build/cjs/src/utils/markets/__tests__/mockMarkets.js +14 -5
  80. package/build/cjs/src/utils/markets/api.js +134 -4
  81. package/build/cjs/src/utils/markets/hashKeys.js +34 -6
  82. package/build/cjs/src/utils/markets/multicall.js +114 -17
  83. package/build/cjs/src/utils/markets/types.js +31 -0
  84. package/build/cjs/src/utils/markets/utils.js +81 -9
  85. package/build/cjs/src/utils/numbers/utils.js +52 -12
  86. package/build/cjs/src/utils/orderTransactions/api.js +160 -2
  87. package/build/cjs/src/utils/orderTransactions/simulation.js +13 -0
  88. package/build/cjs/src/utils/orderTransactions/utils.js +21 -8
  89. package/build/cjs/src/utils/positions/__tests__/api.spec.js +50 -0
  90. package/build/cjs/src/utils/positions/api.js +7 -1
  91. package/build/cjs/src/utils/positions/utils.js +8 -2
  92. package/build/cjs/src/utils/prices/utils.js +2 -0
  93. package/build/cjs/src/utils/subaccount/sdkClient.js +0 -1
  94. package/build/cjs/src/utils/swap/buildSwapStrategy.js +6 -123
  95. package/build/cjs/src/utils/swap/index.js +0 -3
  96. package/build/cjs/src/utils/swap/swapValues.js +0 -67
  97. package/build/cjs/src/utils/tokens/utils.js +9 -10
  98. package/build/cjs/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +44 -0
  99. package/build/cjs/src/utils/trade/decrease.js +47 -23
  100. package/build/cjs/src/utils/trade/increase.js +22 -6
  101. package/build/cjs/src/utils/trade/types.js +0 -1
  102. package/build/cjs/src/utils/tradeHistory/__tests__/utils.spec.js +64 -0
  103. package/build/cjs/src/utils/tradeHistory/types.js +3 -1
  104. package/build/cjs/src/utils/tradeHistory/utils.js +9 -0
  105. package/build/cjs/src/utils/twap/uiFeeReceiver.js +134 -47
  106. package/build/esm/scripts/generate-synthetics-abis.js +153 -0
  107. package/build/esm/scripts/subsquid-codegen.js +1 -1
  108. package/build/esm/src/abis/AbstractSubaccountApprovalNonceable.js +21 -0
  109. package/build/esm/src/abis/CustomErrors.js +198 -88
  110. package/build/esm/src/abis/ExchangeRouter.js +155 -272
  111. package/build/esm/src/abis/GelatoRelayRouter.js +331 -0
  112. package/build/esm/src/abis/SimulationRouter.js +581 -0
  113. package/build/esm/src/abis/SubaccountGelatoRelayRouter.js +393 -0
  114. package/build/esm/src/abis/SyntheticsReader.js +40 -0
  115. package/build/esm/src/abis/index.js +3 -23
  116. package/build/esm/src/clients/v1/modules/markets/index.js +10 -6
  117. package/build/esm/src/clients/v1/modules/orders/utils.js +1 -0
  118. package/build/esm/src/clients/v1/modules/orders/utils.spec.js +64 -0
  119. package/build/esm/src/clients/v1/modules/positions/positions.js +2 -10
  120. package/build/esm/src/clients/v1/modules/positions/positions.spec.js +1 -1
  121. package/build/esm/src/clients/v1/modules/trades/trades.js +5 -1
  122. package/build/esm/src/clients/v1/simulateExecuteOrder.js +35 -55
  123. package/build/esm/src/clients/v1/testUtil.js +1 -1
  124. package/build/esm/src/clients/v2/__tests__/data.spec.js +6 -6
  125. package/build/esm/src/clients/v2/__tests__/decrease.spec.js +7 -7
  126. package/build/esm/src/clients/v2/__tests__/editCancel.spec.js +16 -14
  127. package/build/esm/src/clients/v2/__tests__/errors.spec.js +2 -48
  128. package/build/esm/src/clients/v2/__tests__/errorsLifecycle.spec.js +51 -0
  129. package/build/esm/src/clients/v2/__tests__/globalCleanup.js +77 -0
  130. package/build/esm/src/clients/v2/__tests__/increase.spec.js +23 -21
  131. package/build/esm/src/clients/v2/__tests__/multichain.spec.js +6 -7
  132. package/build/esm/src/clients/v2/__tests__/prepareErrors.spec.js +165 -0
  133. package/build/esm/src/clients/v2/__tests__/setupAllowance.js +30 -0
  134. package/build/esm/src/clients/v2/__tests__/subaccount.spec.js +17 -124
  135. package/build/esm/src/clients/v2/__tests__/subaccountLifecycle.spec.js +106 -0
  136. package/build/esm/src/clients/v2/__tests__/swap.spec.js +1 -1
  137. package/build/esm/src/clients/v2/__tests__/testUtil.js +33 -4
  138. package/build/esm/src/clients/v2/__tests__/tradingCapacity.spec.js +369 -0
  139. package/build/esm/src/clients/v2/index.js +12 -2
  140. package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +0 -26
  141. package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +1692 -561
  142. package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +0 -47
  143. package/build/esm/src/codegen/subsquid.js +375 -12
  144. package/build/esm/src/configs/__tests__/markets.spec.js +9 -1
  145. package/build/esm/src/configs/__tests__/multichainTokens.spec.js +1 -1
  146. package/build/esm/src/configs/__tests__/tokens.spec.js +1 -2
  147. package/build/esm/src/configs/api.js +1 -5
  148. package/build/esm/src/configs/batch.js +1 -2
  149. package/build/esm/src/configs/chainIds.js +0 -1
  150. package/build/esm/src/configs/chains.js +3 -57
  151. package/build/esm/src/configs/contracts.js +76 -133
  152. package/build/esm/src/configs/dataStore.js +16 -4
  153. package/build/esm/src/configs/express.js +1 -3
  154. package/build/esm/src/configs/gasLimits.js +1 -8
  155. package/build/esm/src/configs/markets.js +1 -24
  156. package/build/esm/src/configs/multichainTokens.js +1 -1
  157. package/build/esm/src/configs/oracleKeeper.js +1 -3
  158. package/build/esm/src/configs/tokens.js +3 -105
  159. package/build/esm/src/test/fixtures/arbitrumMarkets.json +1210 -0
  160. package/build/esm/src/test/fixtures/arbitrumTickers.json +1002 -0
  161. package/build/esm/src/test/fixtures/arbitrumTokens.json +136 -0
  162. package/build/esm/src/test/mockCrossFetch.js +23 -0
  163. package/build/esm/src/utils/__tests__/fees.spec.js +266 -2
  164. package/build/esm/src/utils/__tests__/markets.spec.js +61 -1
  165. package/build/esm/src/utils/__tests__/marketsRisk.spec.js +78 -0
  166. package/build/esm/src/utils/__tests__/numbers.spec.js +89 -1
  167. package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +6 -25
  168. package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +6 -25
  169. package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +3 -13
  170. package/build/esm/src/utils/__tests__/parseError.spec.js +25 -2
  171. package/build/esm/src/utils/__tests__/positionPnlCap.spec.js +76 -0
  172. package/build/esm/src/utils/__tests__/positions.spec.js +17 -5
  173. package/build/esm/src/utils/__tests__/uiFeeReceiver.spec.js +161 -60
  174. package/build/esm/src/utils/errors/parseError.js +12 -1
  175. package/build/esm/src/utils/errors/transactionsErrors.js +2 -0
  176. package/build/esm/src/utils/express/utils/batchOrderUtils.js +2 -3
  177. package/build/esm/src/utils/express/utils/estimateExpressParams.js +2 -0
  178. package/build/esm/src/utils/express/utils/estimateExpressParams.spec.js +79 -0
  179. package/build/esm/src/utils/express/utils/expressParamsUtils.js +3 -0
  180. package/build/esm/src/utils/express/utils/expressParamsUtils.spec.js +25 -0
  181. package/build/esm/src/utils/fees/executionFee.js +0 -1
  182. package/build/esm/src/utils/fees/priceImpact.js +54 -13
  183. package/build/esm/src/utils/http/validation.js +28 -0
  184. package/build/esm/src/utils/markets/__tests__/api.spec.js +166 -0
  185. package/build/esm/src/utils/markets/__tests__/mockMarkets.js +15 -6
  186. package/build/esm/src/utils/markets/api.js +130 -4
  187. package/build/esm/src/utils/markets/hashKeys.js +35 -7
  188. package/build/esm/src/utils/markets/multicall.js +112 -17
  189. package/build/esm/src/utils/markets/types.js +30 -1
  190. package/build/esm/src/utils/markets/utils.js +78 -8
  191. package/build/esm/src/utils/numbers/utils.js +45 -10
  192. package/build/esm/src/utils/orderTransactions/api.js +157 -1
  193. package/build/esm/src/utils/orderTransactions/simulation.js +9 -0
  194. package/build/esm/src/utils/orderTransactions/utils.js +22 -9
  195. package/build/esm/src/utils/positions/__tests__/api.spec.js +48 -0
  196. package/build/esm/src/utils/positions/api.js +7 -1
  197. package/build/esm/src/utils/positions/utils.js +9 -3
  198. package/build/esm/src/utils/prices/utils.js +2 -0
  199. package/build/esm/src/utils/subaccount/sdkClient.js +0 -1
  200. package/build/esm/src/utils/swap/buildSwapStrategy.js +7 -124
  201. package/build/esm/src/utils/swap/index.js +0 -3
  202. package/build/esm/src/utils/swap/swapValues.js +1 -68
  203. package/build/esm/src/utils/tokens/utils.js +8 -8
  204. package/build/esm/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +45 -1
  205. package/build/esm/src/utils/trade/decrease.js +44 -22
  206. package/build/esm/src/utils/trade/increase.js +23 -7
  207. package/build/esm/src/utils/trade/types.js +0 -1
  208. package/build/esm/src/utils/tradeHistory/__tests__/utils.spec.js +62 -0
  209. package/build/esm/src/utils/tradeHistory/types.js +2 -0
  210. package/build/esm/src/utils/tradeHistory/utils.js +9 -0
  211. package/build/esm/src/utils/twap/uiFeeReceiver.js +127 -42
  212. package/build/tsconfig.tsbuildinfo +1 -1
  213. package/build/types/scripts/generate-synthetics-abis.d.ts +17 -0
  214. package/build/types/src/abis/AbstractSubaccountApprovalNonceable.d.ts +16 -0
  215. package/build/types/src/abis/CustomErrors.d.ts +331 -139
  216. package/build/types/src/abis/ExchangeRouter.d.ts +121 -209
  217. package/build/types/src/abis/GelatoRelayRouter.d.ts +258 -0
  218. package/build/types/src/abis/SimulationRouter.d.ts +448 -0
  219. package/build/types/src/abis/SubaccountGelatoRelayRouter.d.ts +307 -0
  220. package/build/types/src/abis/SyntheticsReader.d.ts +32 -0
  221. package/build/types/src/abis/index.d.ts +8108 -7891
  222. package/build/types/src/clients/v1/index.d.ts +1 -1
  223. package/build/types/src/clients/v1/modules/base.d.ts +1 -1
  224. package/build/types/src/clients/v1/modules/orders/utils.spec.d.ts +1 -0
  225. package/build/types/src/clients/v1/multicall.d.ts +1 -1
  226. package/build/types/src/clients/v1/simulateExecuteOrder.d.ts +0 -1
  227. package/build/types/src/clients/v2/__tests__/errorsLifecycle.spec.d.ts +1 -0
  228. package/build/types/src/clients/v2/__tests__/globalCleanup.d.ts +1 -0
  229. package/build/types/src/clients/v2/__tests__/prepareErrors.spec.d.ts +1 -0
  230. package/build/types/src/clients/v2/__tests__/setupAllowance.d.ts +1 -0
  231. package/build/types/src/clients/v2/__tests__/subaccountLifecycle.spec.d.ts +1 -0
  232. package/build/types/src/clients/v2/__tests__/testUtil.d.ts +7 -1
  233. package/build/types/src/clients/v2/__tests__/tradingCapacity.spec.d.ts +1 -0
  234. package/build/types/src/clients/v2/index.d.ts +10 -5
  235. package/build/types/src/codegen/prebuilt/index.d.ts +1692 -634
  236. package/build/types/src/codegen/subsquid.d.ts +1490 -32
  237. package/build/types/src/configs/chainIds.d.ts +0 -1
  238. package/build/types/src/configs/chains.d.ts +9 -34
  239. package/build/types/src/configs/contracts.d.ts +5 -66
  240. package/build/types/src/configs/dataStore.d.ts +8 -2
  241. package/build/types/src/configs/multichainTokens.d.ts +1 -1
  242. package/build/types/src/test/mockCrossFetch.d.ts +2 -0
  243. package/build/types/src/utils/__tests__/marketsRisk.spec.d.ts +1 -0
  244. package/build/types/src/utils/__tests__/positionPnlCap.spec.d.ts +1 -0
  245. package/build/types/src/utils/errors/parseError.d.ts +1 -0
  246. package/build/types/src/utils/errors/transactionsErrors.d.ts +2 -0
  247. package/build/types/src/utils/express/types.d.ts +2 -1
  248. package/build/types/src/utils/express/utils/batchOrderUtils.d.ts +1 -1
  249. package/build/types/src/utils/express/utils/estimateExpressParams.spec.d.ts +1 -0
  250. package/build/types/src/utils/express/utils/expressParamsUtils.d.ts +1 -0
  251. package/build/types/src/utils/express/utils/expressParamsUtils.spec.d.ts +1 -0
  252. package/build/types/src/utils/express/utils/globalExpressParams.d.ts +1 -1
  253. package/build/types/src/utils/fees/priceImpact.d.ts +2 -0
  254. package/build/types/src/utils/http/validation.d.ts +7 -0
  255. package/build/types/src/utils/markets/__tests__/api.spec.d.ts +1 -0
  256. package/build/types/src/utils/markets/api.d.ts +12 -2
  257. package/build/types/src/utils/markets/hashKeys.d.ts +1 -1
  258. package/build/types/src/utils/markets/multicall.d.ts +13 -2
  259. package/build/types/src/utils/markets/types.d.ts +45 -4
  260. package/build/types/src/utils/markets/utils.d.ts +9 -9
  261. package/build/types/src/utils/numbers/utils.d.ts +7 -1
  262. package/build/types/src/utils/orderTransactions/api.d.ts +50 -0
  263. package/build/types/src/utils/orderTransactions/simulation.d.ts +1 -0
  264. package/build/types/src/utils/orders/types.d.ts +2 -0
  265. package/build/types/src/utils/positions/__tests__/api.spec.d.ts +1 -0
  266. package/build/types/src/utils/positions/types.d.ts +1 -0
  267. package/build/types/src/utils/positions/utils.d.ts +1 -0
  268. package/build/types/src/utils/prices/utils.d.ts +1 -0
  269. package/build/types/src/utils/swap/buildSwapStrategy.d.ts +3 -5
  270. package/build/types/src/utils/swap/index.d.ts +0 -3
  271. package/build/types/src/utils/swap/swapValues.d.ts +1 -1
  272. package/build/types/src/utils/swap/types.d.ts +2 -7
  273. package/build/types/src/utils/tokens/types.d.ts +0 -1
  274. package/build/types/src/utils/tokens/utils.d.ts +1 -2
  275. package/build/types/src/utils/trade/decrease.d.ts +11 -0
  276. package/build/types/src/utils/trade/types.d.ts +2 -8
  277. package/build/types/src/utils/tradeHistory/__tests__/utils.spec.d.ts +1 -0
  278. package/build/types/src/utils/tradeHistory/types.d.ts +9 -0
  279. package/build/types/src/utils/twap/types.d.ts +1 -1
  280. package/build/types/src/utils/twap/uiFeeReceiver.d.ts +23 -22
  281. package/package.json +11 -7
  282. package/build/cjs/src/abis/StBTC.js +0 -513
  283. package/build/cjs/src/utils/swap/botanixStaking.js +0 -90
  284. package/build/cjs/src/utils/swap/externalSwapPath.js +0 -41
  285. package/build/cjs/src/utils/swap/externalSwapQuoteByPath.js +0 -27
  286. package/build/esm/src/abis/StBTC.js +0 -511
  287. package/build/esm/src/utils/swap/botanixStaking.js +0 -83
  288. package/build/esm/src/utils/swap/externalSwapPath.js +0 -37
  289. package/build/esm/src/utils/swap/externalSwapQuoteByPath.js +0 -23
  290. package/build/types/src/abis/StBTC.d.ts +0 -932
  291. package/build/types/src/utils/swap/botanixStaking.d.ts +0 -11
  292. package/build/types/src/utils/swap/externalSwapPath.d.ts +0 -13
  293. package/build/types/src/utils/swap/externalSwapQuoteByPath.d.ts +0 -6
@@ -81,14 +81,224 @@ export interface AccountPnlHistoryPointObject {
81
81
  /** Field for debug */
82
82
  unrealizedPnl: Scalars["BigInt"]["output"];
83
83
  }
84
+ export interface AccountPnlRankMetric {
85
+ __typename?: "AccountPnlRankMetric";
86
+ account: Scalars["String"]["output"];
87
+ fromTimestamp: Scalars["Int"]["output"];
88
+ id: Scalars["String"]["output"];
89
+ maxCapital: Scalars["BigInt"]["output"];
90
+ period: Scalars["String"]["output"];
91
+ pnlBps: Scalars["BigInt"]["output"];
92
+ pnlUsd: Scalars["BigInt"]["output"];
93
+ updatedAt: Scalars["Int"]["output"];
94
+ volume: Scalars["BigInt"]["output"];
95
+ }
96
+ export interface AccountPnlRankMetricEdge {
97
+ __typename?: "AccountPnlRankMetricEdge";
98
+ cursor: Scalars["String"]["output"];
99
+ node: AccountPnlRankMetric;
100
+ }
101
+ export declare enum AccountPnlRankMetricOrderByInput {
102
+ account_ASC = "account_ASC",
103
+ account_ASC_NULLS_FIRST = "account_ASC_NULLS_FIRST",
104
+ account_ASC_NULLS_LAST = "account_ASC_NULLS_LAST",
105
+ account_DESC = "account_DESC",
106
+ account_DESC_NULLS_FIRST = "account_DESC_NULLS_FIRST",
107
+ account_DESC_NULLS_LAST = "account_DESC_NULLS_LAST",
108
+ fromTimestamp_ASC = "fromTimestamp_ASC",
109
+ fromTimestamp_ASC_NULLS_FIRST = "fromTimestamp_ASC_NULLS_FIRST",
110
+ fromTimestamp_ASC_NULLS_LAST = "fromTimestamp_ASC_NULLS_LAST",
111
+ fromTimestamp_DESC = "fromTimestamp_DESC",
112
+ fromTimestamp_DESC_NULLS_FIRST = "fromTimestamp_DESC_NULLS_FIRST",
113
+ fromTimestamp_DESC_NULLS_LAST = "fromTimestamp_DESC_NULLS_LAST",
114
+ id_ASC = "id_ASC",
115
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
116
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
117
+ id_DESC = "id_DESC",
118
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
119
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
120
+ maxCapital_ASC = "maxCapital_ASC",
121
+ maxCapital_ASC_NULLS_FIRST = "maxCapital_ASC_NULLS_FIRST",
122
+ maxCapital_ASC_NULLS_LAST = "maxCapital_ASC_NULLS_LAST",
123
+ maxCapital_DESC = "maxCapital_DESC",
124
+ maxCapital_DESC_NULLS_FIRST = "maxCapital_DESC_NULLS_FIRST",
125
+ maxCapital_DESC_NULLS_LAST = "maxCapital_DESC_NULLS_LAST",
126
+ period_ASC = "period_ASC",
127
+ period_ASC_NULLS_FIRST = "period_ASC_NULLS_FIRST",
128
+ period_ASC_NULLS_LAST = "period_ASC_NULLS_LAST",
129
+ period_DESC = "period_DESC",
130
+ period_DESC_NULLS_FIRST = "period_DESC_NULLS_FIRST",
131
+ period_DESC_NULLS_LAST = "period_DESC_NULLS_LAST",
132
+ pnlBps_ASC = "pnlBps_ASC",
133
+ pnlBps_ASC_NULLS_FIRST = "pnlBps_ASC_NULLS_FIRST",
134
+ pnlBps_ASC_NULLS_LAST = "pnlBps_ASC_NULLS_LAST",
135
+ pnlBps_DESC = "pnlBps_DESC",
136
+ pnlBps_DESC_NULLS_FIRST = "pnlBps_DESC_NULLS_FIRST",
137
+ pnlBps_DESC_NULLS_LAST = "pnlBps_DESC_NULLS_LAST",
138
+ pnlUsd_ASC = "pnlUsd_ASC",
139
+ pnlUsd_ASC_NULLS_FIRST = "pnlUsd_ASC_NULLS_FIRST",
140
+ pnlUsd_ASC_NULLS_LAST = "pnlUsd_ASC_NULLS_LAST",
141
+ pnlUsd_DESC = "pnlUsd_DESC",
142
+ pnlUsd_DESC_NULLS_FIRST = "pnlUsd_DESC_NULLS_FIRST",
143
+ pnlUsd_DESC_NULLS_LAST = "pnlUsd_DESC_NULLS_LAST",
144
+ updatedAt_ASC = "updatedAt_ASC",
145
+ updatedAt_ASC_NULLS_FIRST = "updatedAt_ASC_NULLS_FIRST",
146
+ updatedAt_ASC_NULLS_LAST = "updatedAt_ASC_NULLS_LAST",
147
+ updatedAt_DESC = "updatedAt_DESC",
148
+ updatedAt_DESC_NULLS_FIRST = "updatedAt_DESC_NULLS_FIRST",
149
+ updatedAt_DESC_NULLS_LAST = "updatedAt_DESC_NULLS_LAST",
150
+ volume_ASC = "volume_ASC",
151
+ volume_ASC_NULLS_FIRST = "volume_ASC_NULLS_FIRST",
152
+ volume_ASC_NULLS_LAST = "volume_ASC_NULLS_LAST",
153
+ volume_DESC = "volume_DESC",
154
+ volume_DESC_NULLS_FIRST = "volume_DESC_NULLS_FIRST",
155
+ volume_DESC_NULLS_LAST = "volume_DESC_NULLS_LAST"
156
+ }
157
+ export interface AccountPnlRankMetricWhereInput {
158
+ AND?: InputMaybe<Array<AccountPnlRankMetricWhereInput>>;
159
+ OR?: InputMaybe<Array<AccountPnlRankMetricWhereInput>>;
160
+ account_contains?: InputMaybe<Scalars["String"]["input"]>;
161
+ account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
162
+ account_endsWith?: InputMaybe<Scalars["String"]["input"]>;
163
+ account_eq?: InputMaybe<Scalars["String"]["input"]>;
164
+ account_gt?: InputMaybe<Scalars["String"]["input"]>;
165
+ account_gte?: InputMaybe<Scalars["String"]["input"]>;
166
+ account_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
167
+ account_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
168
+ account_lt?: InputMaybe<Scalars["String"]["input"]>;
169
+ account_lte?: InputMaybe<Scalars["String"]["input"]>;
170
+ account_not_contains?: InputMaybe<Scalars["String"]["input"]>;
171
+ account_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
172
+ account_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
173
+ account_not_eq?: InputMaybe<Scalars["String"]["input"]>;
174
+ account_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
175
+ account_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
176
+ account_startsWith?: InputMaybe<Scalars["String"]["input"]>;
177
+ fromTimestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
178
+ fromTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
179
+ fromTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
180
+ fromTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
181
+ fromTimestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
182
+ fromTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
183
+ fromTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
184
+ fromTimestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
185
+ fromTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
186
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
187
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
188
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
189
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
190
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
191
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
192
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
193
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
194
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
195
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
196
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
197
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
198
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
199
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
200
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
201
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
202
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
203
+ maxCapital_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
204
+ maxCapital_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
205
+ maxCapital_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
206
+ maxCapital_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
207
+ maxCapital_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
208
+ maxCapital_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
209
+ maxCapital_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
210
+ maxCapital_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
211
+ maxCapital_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
212
+ period_contains?: InputMaybe<Scalars["String"]["input"]>;
213
+ period_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
214
+ period_endsWith?: InputMaybe<Scalars["String"]["input"]>;
215
+ period_eq?: InputMaybe<Scalars["String"]["input"]>;
216
+ period_gt?: InputMaybe<Scalars["String"]["input"]>;
217
+ period_gte?: InputMaybe<Scalars["String"]["input"]>;
218
+ period_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
219
+ period_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
220
+ period_lt?: InputMaybe<Scalars["String"]["input"]>;
221
+ period_lte?: InputMaybe<Scalars["String"]["input"]>;
222
+ period_not_contains?: InputMaybe<Scalars["String"]["input"]>;
223
+ period_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
224
+ period_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
225
+ period_not_eq?: InputMaybe<Scalars["String"]["input"]>;
226
+ period_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
227
+ period_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
228
+ period_startsWith?: InputMaybe<Scalars["String"]["input"]>;
229
+ pnlBps_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
230
+ pnlBps_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
231
+ pnlBps_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
232
+ pnlBps_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
233
+ pnlBps_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
234
+ pnlBps_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
235
+ pnlBps_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
236
+ pnlBps_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
237
+ pnlBps_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
238
+ pnlUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
239
+ pnlUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
240
+ pnlUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
241
+ pnlUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
242
+ pnlUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
243
+ pnlUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
244
+ pnlUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
245
+ pnlUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
246
+ pnlUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
247
+ updatedAt_eq?: InputMaybe<Scalars["Int"]["input"]>;
248
+ updatedAt_gt?: InputMaybe<Scalars["Int"]["input"]>;
249
+ updatedAt_gte?: InputMaybe<Scalars["Int"]["input"]>;
250
+ updatedAt_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
251
+ updatedAt_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
252
+ updatedAt_lt?: InputMaybe<Scalars["Int"]["input"]>;
253
+ updatedAt_lte?: InputMaybe<Scalars["Int"]["input"]>;
254
+ updatedAt_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
255
+ updatedAt_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
256
+ volume_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
257
+ volume_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
258
+ volume_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
259
+ volume_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
260
+ volume_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
261
+ volume_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
262
+ volume_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
263
+ volume_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
264
+ volume_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
265
+ }
266
+ export interface AccountPnlRankMetricsConnection {
267
+ __typename?: "AccountPnlRankMetricsConnection";
268
+ edges: Array<AccountPnlRankMetricEdge>;
269
+ pageInfo: PageInfo;
270
+ totalCount: Scalars["Int"]["output"];
271
+ }
84
272
  export interface AccountPnlSummaryBucketObject {
85
273
  __typename?: "AccountPnlSummaryBucketObject";
274
+ /** Signed PnL contribution from borrowing fees */
275
+ borrowingFeesUsd: Scalars["BigInt"]["output"];
86
276
  bucketLabel: Scalars["String"]["output"];
277
+ /** Signed PnL contribution from close fees */
278
+ closeFeesUsd: Scalars["BigInt"]["output"];
279
+ /** Signed PnL contribution from liquidation fees */
280
+ liquidationFeesUsd: Scalars["BigInt"]["output"];
87
281
  losses: Scalars["Int"]["output"];
282
+ /** Signed PnL contribution from funding paid */
283
+ negativeFundingFeesUsd: Scalars["BigInt"]["output"];
284
+ /** Signed PnL contribution from net price impact */
285
+ netPriceImpactUsd: Scalars["BigInt"]["output"];
286
+ /** Signed PnL contribution from open fees */
287
+ openFeesUsd: Scalars["BigInt"]["output"];
88
288
  pnlBps: Scalars["BigInt"]["output"];
289
+ pnlBpsRank?: Maybe<Scalars["Int"]["output"]>;
89
290
  pnlUsd: Scalars["BigInt"]["output"];
291
+ pnlUsdRank?: Maybe<Scalars["Int"]["output"]>;
292
+ /** Signed PnL contribution from positive funding accrued as claimable (claimed or not) */
293
+ positiveFundingFeesUsd: Scalars["BigInt"]["output"];
90
294
  /** Field for debug */
91
295
  realizedBasePnlUsd: Scalars["BigInt"]["output"];
296
+ /** Whether realized fee contribution is fully covered by split fee fields */
297
+ realizedFeesComponentsComplete: Scalars["Boolean"]["output"];
298
+ /** Signed PnL contribution from realized position fees */
299
+ realizedFeesContributionUsd: Scalars["BigInt"]["output"];
300
+ /** Signed realized-fee contribution not covered by split fee fields */
301
+ realizedFeesRemainderUsd: Scalars["BigInt"]["output"];
92
302
  /** Field for debug */
93
303
  realizedFeesUsd: Scalars["BigInt"]["output"];
94
304
  realizedPnlUsd: Scalars["BigInt"]["output"];
@@ -98,18 +308,29 @@ export interface AccountPnlSummaryBucketObject {
98
308
  realizedSwapFeesUsd: Scalars["BigInt"]["output"];
99
309
  /** Field for debug */
100
310
  realizedSwapImpactUsd: Scalars["BigInt"]["output"];
311
+ /** Signed PnL contribution from start unrealized base PnL */
312
+ startUnrealizedBasePnlContributionUsd: Scalars["BigInt"]["output"];
101
313
  /** Field for debug */
102
314
  startUnrealizedBasePnlUsd: Scalars["BigInt"]["output"];
103
315
  /** Field for debug */
104
316
  startUnrealizedFeesUsd: Scalars["BigInt"]["output"];
105
317
  startUnrealizedPnlUsd: Scalars["BigInt"]["output"];
318
+ /** Signed PnL contribution from swap fees */
319
+ swapFeesUsd: Scalars["BigInt"]["output"];
320
+ /** Signed PnL contribution from swap price impact */
321
+ swapPriceImpactUsd: Scalars["BigInt"]["output"];
106
322
  /** Field for debug */
107
323
  unrealizedBasePnlUsd: Scalars["BigInt"]["output"];
324
+ /** Whether unrealized fee contribution is fully covered by split fee fields */
325
+ unrealizedFeesComponentsComplete: Scalars["Boolean"]["output"];
326
+ /** Signed PnL contribution from open position pending fees */
327
+ unrealizedFeesContributionUsd: Scalars["BigInt"]["output"];
108
328
  /** Field for debug */
109
329
  unrealizedFeesUsd: Scalars["BigInt"]["output"];
110
330
  unrealizedPnlUsd: Scalars["BigInt"]["output"];
111
331
  usedCapitalUsd: Scalars["BigInt"]["output"];
112
332
  volume: Scalars["BigInt"]["output"];
333
+ volumeRank?: Maybe<Scalars["Int"]["output"]>;
113
334
  wins: Scalars["Int"]["output"];
114
335
  /** Null when no losses and no wins */
115
336
  winsLossesRatioBps?: Maybe<Scalars["BigInt"]["output"]>;
@@ -130,6 +351,7 @@ export interface AccountStat {
130
351
  netCapitalDelta?: Maybe<Scalars["BigInt"]["output"]>;
131
352
  period: Scalars["String"]["output"];
132
353
  positions: Array<Position>;
354
+ positiveFundingFeesUsd?: Maybe<Scalars["BigInt"]["output"]>;
133
355
  realizedFees: Scalars["BigInt"]["output"];
134
356
  realizedPnl: Scalars["BigInt"]["output"];
135
357
  realizedPriceImpact: Scalars["BigInt"]["output"];
@@ -229,6 +451,12 @@ export declare enum AccountStatOrderByInput {
229
451
  period_DESC = "period_DESC",
230
452
  period_DESC_NULLS_FIRST = "period_DESC_NULLS_FIRST",
231
453
  period_DESC_NULLS_LAST = "period_DESC_NULLS_LAST",
454
+ positiveFundingFeesUsd_ASC = "positiveFundingFeesUsd_ASC",
455
+ positiveFundingFeesUsd_ASC_NULLS_FIRST = "positiveFundingFeesUsd_ASC_NULLS_FIRST",
456
+ positiveFundingFeesUsd_ASC_NULLS_LAST = "positiveFundingFeesUsd_ASC_NULLS_LAST",
457
+ positiveFundingFeesUsd_DESC = "positiveFundingFeesUsd_DESC",
458
+ positiveFundingFeesUsd_DESC_NULLS_FIRST = "positiveFundingFeesUsd_DESC_NULLS_FIRST",
459
+ positiveFundingFeesUsd_DESC_NULLS_LAST = "positiveFundingFeesUsd_DESC_NULLS_LAST",
232
460
  realizedFees_ASC = "realizedFees_ASC",
233
461
  realizedFees_ASC_NULLS_FIRST = "realizedFees_ASC_NULLS_FIRST",
234
462
  realizedFees_ASC_NULLS_LAST = "realizedFees_ASC_NULLS_LAST",
@@ -425,6 +653,15 @@ export interface AccountStatWhereInput {
425
653
  positions_every?: InputMaybe<PositionWhereInput>;
426
654
  positions_none?: InputMaybe<PositionWhereInput>;
427
655
  positions_some?: InputMaybe<PositionWhereInput>;
656
+ positiveFundingFeesUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
657
+ positiveFundingFeesUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
658
+ positiveFundingFeesUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
659
+ positiveFundingFeesUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
660
+ positiveFundingFeesUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
661
+ positiveFundingFeesUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
662
+ positiveFundingFeesUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
663
+ positiveFundingFeesUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
664
+ positiveFundingFeesUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
428
665
  realizedFees_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
429
666
  realizedFees_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
430
667
  realizedFees_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -651,6 +888,7 @@ export interface AffiliateStatsPoint {
651
888
  rebatesUsd: Scalars["BigInt"]["output"];
652
889
  timestamp: Scalars["Float"]["output"];
653
890
  tradersGained: Scalars["Float"]["output"];
891
+ tradersGraduated: Scalars["Float"]["output"];
654
892
  tradersLost: Scalars["Float"]["output"];
655
893
  tradersNet: Scalars["Float"]["output"];
656
894
  tradesCount: Scalars["Float"]["output"];
@@ -674,6 +912,8 @@ export interface AffiliateStatsSummary {
674
912
  rebatesUsdDelta?: Maybe<Scalars["BigInt"]["output"]>;
675
913
  tradersGained?: Maybe<Scalars["Float"]["output"]>;
676
914
  tradersGainedDelta?: Maybe<Scalars["Float"]["output"]>;
915
+ tradersGraduated?: Maybe<Scalars["Float"]["output"]>;
916
+ tradersGraduatedDelta?: Maybe<Scalars["Float"]["output"]>;
677
917
  tradersLost?: Maybe<Scalars["Float"]["output"]>;
678
918
  tradersLostDelta?: Maybe<Scalars["Float"]["output"]>;
679
919
  tradersNet?: Maybe<Scalars["Float"]["output"]>;
@@ -694,6 +934,7 @@ export interface AffiliateTraderStatsByHour {
694
934
  id: Scalars["String"]["output"];
695
935
  timestamp: Scalars["Int"]["output"];
696
936
  tradersGained: Scalars["Int"]["output"];
937
+ tradersGraduated: Scalars["Int"]["output"];
697
938
  tradersLost: Scalars["Int"]["output"];
698
939
  tradersNet: Scalars["Int"]["output"];
699
940
  }
@@ -727,6 +968,12 @@ export declare enum AffiliateTraderStatsByHourOrderByInput {
727
968
  tradersGained_DESC = "tradersGained_DESC",
728
969
  tradersGained_DESC_NULLS_FIRST = "tradersGained_DESC_NULLS_FIRST",
729
970
  tradersGained_DESC_NULLS_LAST = "tradersGained_DESC_NULLS_LAST",
971
+ tradersGraduated_ASC = "tradersGraduated_ASC",
972
+ tradersGraduated_ASC_NULLS_FIRST = "tradersGraduated_ASC_NULLS_FIRST",
973
+ tradersGraduated_ASC_NULLS_LAST = "tradersGraduated_ASC_NULLS_LAST",
974
+ tradersGraduated_DESC = "tradersGraduated_DESC",
975
+ tradersGraduated_DESC_NULLS_FIRST = "tradersGraduated_DESC_NULLS_FIRST",
976
+ tradersGraduated_DESC_NULLS_LAST = "tradersGraduated_DESC_NULLS_LAST",
730
977
  tradersLost_ASC = "tradersLost_ASC",
731
978
  tradersLost_ASC_NULLS_FIRST = "tradersLost_ASC_NULLS_FIRST",
732
979
  tradersLost_ASC_NULLS_LAST = "tradersLost_ASC_NULLS_LAST",
@@ -795,6 +1042,15 @@ export interface AffiliateTraderStatsByHourWhereInput {
795
1042
  tradersGained_lte?: InputMaybe<Scalars["Int"]["input"]>;
796
1043
  tradersGained_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
797
1044
  tradersGained_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1045
+ tradersGraduated_eq?: InputMaybe<Scalars["Int"]["input"]>;
1046
+ tradersGraduated_gt?: InputMaybe<Scalars["Int"]["input"]>;
1047
+ tradersGraduated_gte?: InputMaybe<Scalars["Int"]["input"]>;
1048
+ tradersGraduated_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1049
+ tradersGraduated_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
1050
+ tradersGraduated_lt?: InputMaybe<Scalars["Int"]["input"]>;
1051
+ tradersGraduated_lte?: InputMaybe<Scalars["Int"]["input"]>;
1052
+ tradersGraduated_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
1053
+ tradersGraduated_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
798
1054
  tradersLost_eq?: InputMaybe<Scalars["Int"]["input"]>;
799
1055
  tradersLost_gt?: InputMaybe<Scalars["Int"]["input"]>;
800
1056
  tradersLost_gte?: InputMaybe<Scalars["Int"]["input"]>;
@@ -1443,6 +1699,7 @@ export interface ClaimableCollateral {
1443
1699
  factor: Scalars["BigInt"]["output"];
1444
1700
  factorByTime: Scalars["BigInt"]["output"];
1445
1701
  group: ClaimableCollateralGroup;
1702
+ groupId: Scalars["String"]["output"];
1446
1703
  id: Scalars["String"]["output"];
1447
1704
  marketAddress: Scalars["String"]["output"];
1448
1705
  reductionFactor: Scalars["BigInt"]["output"];
@@ -1723,6 +1980,23 @@ export interface ClaimableCollateralWhereInput {
1723
1980
  factor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
1724
1981
  factor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
1725
1982
  group?: InputMaybe<ClaimableCollateralGroupWhereInput>;
1983
+ groupId_contains?: InputMaybe<Scalars["String"]["input"]>;
1984
+ groupId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
1985
+ groupId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
1986
+ groupId_eq?: InputMaybe<Scalars["String"]["input"]>;
1987
+ groupId_gt?: InputMaybe<Scalars["String"]["input"]>;
1988
+ groupId_gte?: InputMaybe<Scalars["String"]["input"]>;
1989
+ groupId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
1990
+ groupId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
1991
+ groupId_lt?: InputMaybe<Scalars["String"]["input"]>;
1992
+ groupId_lte?: InputMaybe<Scalars["String"]["input"]>;
1993
+ groupId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
1994
+ groupId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
1995
+ groupId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
1996
+ groupId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
1997
+ groupId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
1998
+ groupId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
1999
+ groupId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
1726
2000
  group_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
1727
2001
  id_contains?: InputMaybe<Scalars["String"]["input"]>;
1728
2002
  id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
@@ -1868,6 +2142,15 @@ export interface ClaimableFundingFeeInfosConnection {
1868
2142
  pageInfo: PageInfo;
1869
2143
  totalCount: Scalars["Int"]["output"];
1870
2144
  }
2145
+ export interface CodeTierRuleInput {
2146
+ eligibleForTier: Scalars["String"]["input"];
2147
+ shouldFallbackToCode: Scalars["String"]["input"];
2148
+ }
2149
+ export interface CodeUpdateGroup {
2150
+ __typename?: "CodeUpdateGroup";
2151
+ toCode: Scalars["String"]["output"];
2152
+ traders: Array<Scalars["String"]["output"]>;
2153
+ }
1871
2154
  export interface CollectedFeesInfo {
1872
2155
  __typename?: "CollectedFeesInfo";
1873
2156
  address: Scalars["String"]["output"];
@@ -1876,6 +2159,7 @@ export interface CollectedFeesInfo {
1876
2159
  cumulativeBorrowingFeeUsdForPool: Scalars["BigInt"]["output"];
1877
2160
  cumulativeBorrowingFeeUsdPerPoolValue: Scalars["BigInt"]["output"];
1878
2161
  cumulativeFeeUsdForPool: Scalars["BigInt"]["output"];
2162
+ cumulativeFeeUsdPerGlvToken: Scalars["BigInt"]["output"];
1879
2163
  cumulativeFeeUsdPerPoolValue: Scalars["BigInt"]["output"];
1880
2164
  entityType: EntityType;
1881
2165
  feeUsdForPool: Scalars["BigInt"]["output"];
@@ -1926,6 +2210,12 @@ export declare enum CollectedFeesInfoOrderByInput {
1926
2210
  cumulativeFeeUsdForPool_DESC = "cumulativeFeeUsdForPool_DESC",
1927
2211
  cumulativeFeeUsdForPool_DESC_NULLS_FIRST = "cumulativeFeeUsdForPool_DESC_NULLS_FIRST",
1928
2212
  cumulativeFeeUsdForPool_DESC_NULLS_LAST = "cumulativeFeeUsdForPool_DESC_NULLS_LAST",
2213
+ cumulativeFeeUsdPerGlvToken_ASC = "cumulativeFeeUsdPerGlvToken_ASC",
2214
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST",
2215
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST",
2216
+ cumulativeFeeUsdPerGlvToken_DESC = "cumulativeFeeUsdPerGlvToken_DESC",
2217
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST",
2218
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST",
1929
2219
  cumulativeFeeUsdPerPoolValue_ASC = "cumulativeFeeUsdPerPoolValue_ASC",
1930
2220
  cumulativeFeeUsdPerPoolValue_ASC_NULLS_FIRST = "cumulativeFeeUsdPerPoolValue_ASC_NULLS_FIRST",
1931
2221
  cumulativeFeeUsdPerPoolValue_ASC_NULLS_LAST = "cumulativeFeeUsdPerPoolValue_ASC_NULLS_LAST",
@@ -2034,6 +2324,15 @@ export interface CollectedFeesInfoWhereInput {
2034
2324
  cumulativeFeeUsdForPool_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
2035
2325
  cumulativeFeeUsdForPool_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2036
2326
  cumulativeFeeUsdForPool_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2327
+ cumulativeFeeUsdPerGlvToken_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2328
+ cumulativeFeeUsdPerGlvToken_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
2329
+ cumulativeFeeUsdPerGlvToken_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
2330
+ cumulativeFeeUsdPerGlvToken_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2331
+ cumulativeFeeUsdPerGlvToken_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
2332
+ cumulativeFeeUsdPerGlvToken_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
2333
+ cumulativeFeeUsdPerGlvToken_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
2334
+ cumulativeFeeUsdPerGlvToken_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2335
+ cumulativeFeeUsdPerGlvToken_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2037
2336
  cumulativeFeeUsdPerPoolValue_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2038
2337
  cumulativeFeeUsdPerPoolValue_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
2039
2338
  cumulativeFeeUsdPerPoolValue_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -2749,7 +3048,9 @@ export interface FundingRateSnapshotsConnection {
2749
3048
  }
2750
3049
  export interface Glv {
2751
3050
  __typename?: "Glv";
3051
+ cumulativeFeeUsdPerGlvToken: Scalars["BigInt"]["output"];
2752
3052
  glvTokenAddress: Scalars["String"]["output"];
3053
+ glvTokenSupply: Scalars["BigInt"]["output"];
2753
3054
  gmComposition: Array<Scalars["String"]["output"]>;
2754
3055
  id: Scalars["String"]["output"];
2755
3056
  longTokenAddress: Scalars["String"]["output"];
@@ -2774,12 +3075,24 @@ export interface GlvEdge {
2774
3075
  node: Glv;
2775
3076
  }
2776
3077
  export declare enum GlvOrderByInput {
3078
+ cumulativeFeeUsdPerGlvToken_ASC = "cumulativeFeeUsdPerGlvToken_ASC",
3079
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST",
3080
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST",
3081
+ cumulativeFeeUsdPerGlvToken_DESC = "cumulativeFeeUsdPerGlvToken_DESC",
3082
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST",
3083
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST",
2777
3084
  glvTokenAddress_ASC = "glvTokenAddress_ASC",
2778
3085
  glvTokenAddress_ASC_NULLS_FIRST = "glvTokenAddress_ASC_NULLS_FIRST",
2779
3086
  glvTokenAddress_ASC_NULLS_LAST = "glvTokenAddress_ASC_NULLS_LAST",
2780
3087
  glvTokenAddress_DESC = "glvTokenAddress_DESC",
2781
3088
  glvTokenAddress_DESC_NULLS_FIRST = "glvTokenAddress_DESC_NULLS_FIRST",
2782
3089
  glvTokenAddress_DESC_NULLS_LAST = "glvTokenAddress_DESC_NULLS_LAST",
3090
+ glvTokenSupply_ASC = "glvTokenSupply_ASC",
3091
+ glvTokenSupply_ASC_NULLS_FIRST = "glvTokenSupply_ASC_NULLS_FIRST",
3092
+ glvTokenSupply_ASC_NULLS_LAST = "glvTokenSupply_ASC_NULLS_LAST",
3093
+ glvTokenSupply_DESC = "glvTokenSupply_DESC",
3094
+ glvTokenSupply_DESC_NULLS_FIRST = "glvTokenSupply_DESC_NULLS_FIRST",
3095
+ glvTokenSupply_DESC_NULLS_LAST = "glvTokenSupply_DESC_NULLS_LAST",
2783
3096
  id_ASC = "id_ASC",
2784
3097
  id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
2785
3098
  id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
@@ -2820,9 +3133,352 @@ export interface GlvPnlAprsWhereInputWhereInput {
2820
3133
  periodEnd: Scalars["Float"]["input"];
2821
3134
  periodStart: Scalars["Float"]["input"];
2822
3135
  }
3136
+ export interface GlvTokenBalance {
3137
+ __typename?: "GlvTokenBalance";
3138
+ account: Scalars["String"]["output"];
3139
+ balance: Scalars["BigInt"]["output"];
3140
+ cumulativeIncome: Scalars["BigInt"]["output"];
3141
+ entrySnapshot: Scalars["BigInt"]["output"];
3142
+ glvAddress: Scalars["String"]["output"];
3143
+ id: Scalars["String"]["output"];
3144
+ }
3145
+ export interface GlvTokenBalanceChange {
3146
+ __typename?: "GlvTokenBalanceChange";
3147
+ account: Scalars["String"]["output"];
3148
+ balance: Scalars["BigInt"]["output"];
3149
+ blockNumber: Scalars["Int"]["output"];
3150
+ cumulativeIncome: Scalars["BigInt"]["output"];
3151
+ glvAddress: Scalars["String"]["output"];
3152
+ id: Scalars["String"]["output"];
3153
+ index: Scalars["Int"]["output"];
3154
+ snapshot: Scalars["BigInt"]["output"];
3155
+ timestamp: Scalars["Int"]["output"];
3156
+ }
3157
+ export interface GlvTokenBalanceChangeEdge {
3158
+ __typename?: "GlvTokenBalanceChangeEdge";
3159
+ cursor: Scalars["String"]["output"];
3160
+ node: GlvTokenBalanceChange;
3161
+ }
3162
+ export declare enum GlvTokenBalanceChangeOrderByInput {
3163
+ account_ASC = "account_ASC",
3164
+ account_ASC_NULLS_FIRST = "account_ASC_NULLS_FIRST",
3165
+ account_ASC_NULLS_LAST = "account_ASC_NULLS_LAST",
3166
+ account_DESC = "account_DESC",
3167
+ account_DESC_NULLS_FIRST = "account_DESC_NULLS_FIRST",
3168
+ account_DESC_NULLS_LAST = "account_DESC_NULLS_LAST",
3169
+ balance_ASC = "balance_ASC",
3170
+ balance_ASC_NULLS_FIRST = "balance_ASC_NULLS_FIRST",
3171
+ balance_ASC_NULLS_LAST = "balance_ASC_NULLS_LAST",
3172
+ balance_DESC = "balance_DESC",
3173
+ balance_DESC_NULLS_FIRST = "balance_DESC_NULLS_FIRST",
3174
+ balance_DESC_NULLS_LAST = "balance_DESC_NULLS_LAST",
3175
+ blockNumber_ASC = "blockNumber_ASC",
3176
+ blockNumber_ASC_NULLS_FIRST = "blockNumber_ASC_NULLS_FIRST",
3177
+ blockNumber_ASC_NULLS_LAST = "blockNumber_ASC_NULLS_LAST",
3178
+ blockNumber_DESC = "blockNumber_DESC",
3179
+ blockNumber_DESC_NULLS_FIRST = "blockNumber_DESC_NULLS_FIRST",
3180
+ blockNumber_DESC_NULLS_LAST = "blockNumber_DESC_NULLS_LAST",
3181
+ cumulativeIncome_ASC = "cumulativeIncome_ASC",
3182
+ cumulativeIncome_ASC_NULLS_FIRST = "cumulativeIncome_ASC_NULLS_FIRST",
3183
+ cumulativeIncome_ASC_NULLS_LAST = "cumulativeIncome_ASC_NULLS_LAST",
3184
+ cumulativeIncome_DESC = "cumulativeIncome_DESC",
3185
+ cumulativeIncome_DESC_NULLS_FIRST = "cumulativeIncome_DESC_NULLS_FIRST",
3186
+ cumulativeIncome_DESC_NULLS_LAST = "cumulativeIncome_DESC_NULLS_LAST",
3187
+ glvAddress_ASC = "glvAddress_ASC",
3188
+ glvAddress_ASC_NULLS_FIRST = "glvAddress_ASC_NULLS_FIRST",
3189
+ glvAddress_ASC_NULLS_LAST = "glvAddress_ASC_NULLS_LAST",
3190
+ glvAddress_DESC = "glvAddress_DESC",
3191
+ glvAddress_DESC_NULLS_FIRST = "glvAddress_DESC_NULLS_FIRST",
3192
+ glvAddress_DESC_NULLS_LAST = "glvAddress_DESC_NULLS_LAST",
3193
+ id_ASC = "id_ASC",
3194
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
3195
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
3196
+ id_DESC = "id_DESC",
3197
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
3198
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
3199
+ index_ASC = "index_ASC",
3200
+ index_ASC_NULLS_FIRST = "index_ASC_NULLS_FIRST",
3201
+ index_ASC_NULLS_LAST = "index_ASC_NULLS_LAST",
3202
+ index_DESC = "index_DESC",
3203
+ index_DESC_NULLS_FIRST = "index_DESC_NULLS_FIRST",
3204
+ index_DESC_NULLS_LAST = "index_DESC_NULLS_LAST",
3205
+ snapshot_ASC = "snapshot_ASC",
3206
+ snapshot_ASC_NULLS_FIRST = "snapshot_ASC_NULLS_FIRST",
3207
+ snapshot_ASC_NULLS_LAST = "snapshot_ASC_NULLS_LAST",
3208
+ snapshot_DESC = "snapshot_DESC",
3209
+ snapshot_DESC_NULLS_FIRST = "snapshot_DESC_NULLS_FIRST",
3210
+ snapshot_DESC_NULLS_LAST = "snapshot_DESC_NULLS_LAST",
3211
+ timestamp_ASC = "timestamp_ASC",
3212
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
3213
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
3214
+ timestamp_DESC = "timestamp_DESC",
3215
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
3216
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST"
3217
+ }
3218
+ export interface GlvTokenBalanceChangeWhereInput {
3219
+ AND?: InputMaybe<Array<GlvTokenBalanceChangeWhereInput>>;
3220
+ OR?: InputMaybe<Array<GlvTokenBalanceChangeWhereInput>>;
3221
+ account_contains?: InputMaybe<Scalars["String"]["input"]>;
3222
+ account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3223
+ account_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3224
+ account_eq?: InputMaybe<Scalars["String"]["input"]>;
3225
+ account_gt?: InputMaybe<Scalars["String"]["input"]>;
3226
+ account_gte?: InputMaybe<Scalars["String"]["input"]>;
3227
+ account_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3228
+ account_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3229
+ account_lt?: InputMaybe<Scalars["String"]["input"]>;
3230
+ account_lte?: InputMaybe<Scalars["String"]["input"]>;
3231
+ account_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3232
+ account_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3233
+ account_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3234
+ account_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3235
+ account_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3236
+ account_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3237
+ account_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3238
+ balance_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3239
+ balance_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3240
+ balance_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3241
+ balance_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3242
+ balance_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3243
+ balance_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3244
+ balance_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3245
+ balance_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3246
+ balance_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3247
+ blockNumber_eq?: InputMaybe<Scalars["Int"]["input"]>;
3248
+ blockNumber_gt?: InputMaybe<Scalars["Int"]["input"]>;
3249
+ blockNumber_gte?: InputMaybe<Scalars["Int"]["input"]>;
3250
+ blockNumber_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3251
+ blockNumber_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3252
+ blockNumber_lt?: InputMaybe<Scalars["Int"]["input"]>;
3253
+ blockNumber_lte?: InputMaybe<Scalars["Int"]["input"]>;
3254
+ blockNumber_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
3255
+ blockNumber_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3256
+ cumulativeIncome_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3257
+ cumulativeIncome_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3258
+ cumulativeIncome_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3259
+ cumulativeIncome_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3260
+ cumulativeIncome_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3261
+ cumulativeIncome_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3262
+ cumulativeIncome_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3263
+ cumulativeIncome_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3264
+ cumulativeIncome_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3265
+ glvAddress_contains?: InputMaybe<Scalars["String"]["input"]>;
3266
+ glvAddress_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3267
+ glvAddress_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3268
+ glvAddress_eq?: InputMaybe<Scalars["String"]["input"]>;
3269
+ glvAddress_gt?: InputMaybe<Scalars["String"]["input"]>;
3270
+ glvAddress_gte?: InputMaybe<Scalars["String"]["input"]>;
3271
+ glvAddress_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3272
+ glvAddress_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3273
+ glvAddress_lt?: InputMaybe<Scalars["String"]["input"]>;
3274
+ glvAddress_lte?: InputMaybe<Scalars["String"]["input"]>;
3275
+ glvAddress_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3276
+ glvAddress_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3277
+ glvAddress_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3278
+ glvAddress_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3279
+ glvAddress_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3280
+ glvAddress_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3281
+ glvAddress_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3282
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
3283
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3284
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3285
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
3286
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
3287
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
3288
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3289
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3290
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
3291
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
3292
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3293
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3294
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3295
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3296
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3297
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3298
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3299
+ index_eq?: InputMaybe<Scalars["Int"]["input"]>;
3300
+ index_gt?: InputMaybe<Scalars["Int"]["input"]>;
3301
+ index_gte?: InputMaybe<Scalars["Int"]["input"]>;
3302
+ index_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3303
+ index_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3304
+ index_lt?: InputMaybe<Scalars["Int"]["input"]>;
3305
+ index_lte?: InputMaybe<Scalars["Int"]["input"]>;
3306
+ index_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
3307
+ index_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3308
+ snapshot_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3309
+ snapshot_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3310
+ snapshot_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3311
+ snapshot_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3312
+ snapshot_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3313
+ snapshot_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3314
+ snapshot_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3315
+ snapshot_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3316
+ snapshot_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3317
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
3318
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
3319
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
3320
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3321
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3322
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
3323
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
3324
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
3325
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3326
+ }
3327
+ export interface GlvTokenBalanceChangesConnection {
3328
+ __typename?: "GlvTokenBalanceChangesConnection";
3329
+ edges: Array<GlvTokenBalanceChangeEdge>;
3330
+ pageInfo: PageInfo;
3331
+ totalCount: Scalars["Int"]["output"];
3332
+ }
3333
+ export interface GlvTokenBalanceEdge {
3334
+ __typename?: "GlvTokenBalanceEdge";
3335
+ cursor: Scalars["String"]["output"];
3336
+ node: GlvTokenBalance;
3337
+ }
3338
+ export declare enum GlvTokenBalanceOrderByInput {
3339
+ account_ASC = "account_ASC",
3340
+ account_ASC_NULLS_FIRST = "account_ASC_NULLS_FIRST",
3341
+ account_ASC_NULLS_LAST = "account_ASC_NULLS_LAST",
3342
+ account_DESC = "account_DESC",
3343
+ account_DESC_NULLS_FIRST = "account_DESC_NULLS_FIRST",
3344
+ account_DESC_NULLS_LAST = "account_DESC_NULLS_LAST",
3345
+ balance_ASC = "balance_ASC",
3346
+ balance_ASC_NULLS_FIRST = "balance_ASC_NULLS_FIRST",
3347
+ balance_ASC_NULLS_LAST = "balance_ASC_NULLS_LAST",
3348
+ balance_DESC = "balance_DESC",
3349
+ balance_DESC_NULLS_FIRST = "balance_DESC_NULLS_FIRST",
3350
+ balance_DESC_NULLS_LAST = "balance_DESC_NULLS_LAST",
3351
+ cumulativeIncome_ASC = "cumulativeIncome_ASC",
3352
+ cumulativeIncome_ASC_NULLS_FIRST = "cumulativeIncome_ASC_NULLS_FIRST",
3353
+ cumulativeIncome_ASC_NULLS_LAST = "cumulativeIncome_ASC_NULLS_LAST",
3354
+ cumulativeIncome_DESC = "cumulativeIncome_DESC",
3355
+ cumulativeIncome_DESC_NULLS_FIRST = "cumulativeIncome_DESC_NULLS_FIRST",
3356
+ cumulativeIncome_DESC_NULLS_LAST = "cumulativeIncome_DESC_NULLS_LAST",
3357
+ entrySnapshot_ASC = "entrySnapshot_ASC",
3358
+ entrySnapshot_ASC_NULLS_FIRST = "entrySnapshot_ASC_NULLS_FIRST",
3359
+ entrySnapshot_ASC_NULLS_LAST = "entrySnapshot_ASC_NULLS_LAST",
3360
+ entrySnapshot_DESC = "entrySnapshot_DESC",
3361
+ entrySnapshot_DESC_NULLS_FIRST = "entrySnapshot_DESC_NULLS_FIRST",
3362
+ entrySnapshot_DESC_NULLS_LAST = "entrySnapshot_DESC_NULLS_LAST",
3363
+ glvAddress_ASC = "glvAddress_ASC",
3364
+ glvAddress_ASC_NULLS_FIRST = "glvAddress_ASC_NULLS_FIRST",
3365
+ glvAddress_ASC_NULLS_LAST = "glvAddress_ASC_NULLS_LAST",
3366
+ glvAddress_DESC = "glvAddress_DESC",
3367
+ glvAddress_DESC_NULLS_FIRST = "glvAddress_DESC_NULLS_FIRST",
3368
+ glvAddress_DESC_NULLS_LAST = "glvAddress_DESC_NULLS_LAST",
3369
+ id_ASC = "id_ASC",
3370
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
3371
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
3372
+ id_DESC = "id_DESC",
3373
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
3374
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST"
3375
+ }
3376
+ export interface GlvTokenBalanceWhereInput {
3377
+ AND?: InputMaybe<Array<GlvTokenBalanceWhereInput>>;
3378
+ OR?: InputMaybe<Array<GlvTokenBalanceWhereInput>>;
3379
+ account_contains?: InputMaybe<Scalars["String"]["input"]>;
3380
+ account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3381
+ account_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3382
+ account_eq?: InputMaybe<Scalars["String"]["input"]>;
3383
+ account_gt?: InputMaybe<Scalars["String"]["input"]>;
3384
+ account_gte?: InputMaybe<Scalars["String"]["input"]>;
3385
+ account_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3386
+ account_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3387
+ account_lt?: InputMaybe<Scalars["String"]["input"]>;
3388
+ account_lte?: InputMaybe<Scalars["String"]["input"]>;
3389
+ account_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3390
+ account_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3391
+ account_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3392
+ account_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3393
+ account_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3394
+ account_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3395
+ account_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3396
+ balance_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3397
+ balance_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3398
+ balance_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3399
+ balance_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3400
+ balance_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3401
+ balance_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3402
+ balance_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3403
+ balance_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3404
+ balance_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3405
+ cumulativeIncome_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3406
+ cumulativeIncome_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3407
+ cumulativeIncome_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3408
+ cumulativeIncome_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3409
+ cumulativeIncome_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3410
+ cumulativeIncome_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3411
+ cumulativeIncome_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3412
+ cumulativeIncome_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3413
+ cumulativeIncome_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3414
+ entrySnapshot_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3415
+ entrySnapshot_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3416
+ entrySnapshot_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3417
+ entrySnapshot_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3418
+ entrySnapshot_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3419
+ entrySnapshot_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3420
+ entrySnapshot_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3421
+ entrySnapshot_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3422
+ entrySnapshot_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3423
+ glvAddress_contains?: InputMaybe<Scalars["String"]["input"]>;
3424
+ glvAddress_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3425
+ glvAddress_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3426
+ glvAddress_eq?: InputMaybe<Scalars["String"]["input"]>;
3427
+ glvAddress_gt?: InputMaybe<Scalars["String"]["input"]>;
3428
+ glvAddress_gte?: InputMaybe<Scalars["String"]["input"]>;
3429
+ glvAddress_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3430
+ glvAddress_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3431
+ glvAddress_lt?: InputMaybe<Scalars["String"]["input"]>;
3432
+ glvAddress_lte?: InputMaybe<Scalars["String"]["input"]>;
3433
+ glvAddress_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3434
+ glvAddress_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3435
+ glvAddress_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3436
+ glvAddress_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3437
+ glvAddress_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3438
+ glvAddress_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3439
+ glvAddress_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3440
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
3441
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3442
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3443
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
3444
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
3445
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
3446
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3447
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3448
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
3449
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
3450
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3451
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3452
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3453
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3454
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3455
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3456
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3457
+ }
3458
+ export interface GlvTokenBalancesConnection {
3459
+ __typename?: "GlvTokenBalancesConnection";
3460
+ edges: Array<GlvTokenBalanceEdge>;
3461
+ pageInfo: PageInfo;
3462
+ totalCount: Scalars["Int"]["output"];
3463
+ }
3464
+ export interface GlvUserEarning {
3465
+ __typename?: "GlvUserEarning";
3466
+ glvAddress: Scalars["String"]["output"];
3467
+ lifetimeFeeUsd: Scalars["BigInt"]["output"];
3468
+ recent7dFeeUsd: Scalars["BigInt"]["output"];
3469
+ }
2823
3470
  export interface GlvWhereInput {
2824
3471
  AND?: InputMaybe<Array<GlvWhereInput>>;
2825
3472
  OR?: InputMaybe<Array<GlvWhereInput>>;
3473
+ cumulativeFeeUsdPerGlvToken_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3474
+ cumulativeFeeUsdPerGlvToken_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3475
+ cumulativeFeeUsdPerGlvToken_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3476
+ cumulativeFeeUsdPerGlvToken_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3477
+ cumulativeFeeUsdPerGlvToken_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3478
+ cumulativeFeeUsdPerGlvToken_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3479
+ cumulativeFeeUsdPerGlvToken_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3480
+ cumulativeFeeUsdPerGlvToken_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3481
+ cumulativeFeeUsdPerGlvToken_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2826
3482
  glvTokenAddress_contains?: InputMaybe<Scalars["String"]["input"]>;
2827
3483
  glvTokenAddress_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
2828
3484
  glvTokenAddress_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -2840,6 +3496,15 @@ export interface GlvWhereInput {
2840
3496
  glvTokenAddress_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
2841
3497
  glvTokenAddress_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
2842
3498
  glvTokenAddress_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3499
+ glvTokenSupply_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3500
+ glvTokenSupply_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3501
+ glvTokenSupply_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3502
+ glvTokenSupply_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3503
+ glvTokenSupply_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3504
+ glvTokenSupply_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3505
+ glvTokenSupply_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3506
+ glvTokenSupply_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3507
+ glvTokenSupply_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2843
3508
  gmComposition_containsAll?: InputMaybe<Array<Scalars["String"]["input"]>>;
2844
3509
  gmComposition_containsAny?: InputMaybe<Array<Scalars["String"]["input"]>>;
2845
3510
  gmComposition_containsNone?: InputMaybe<Array<Scalars["String"]["input"]>>;
@@ -2938,6 +3603,20 @@ export interface MarketEdge {
2938
3603
  cursor: Scalars["String"]["output"];
2939
3604
  node: Market;
2940
3605
  }
3606
+ export interface MarketFeeUsdByPeriod {
3607
+ __typename?: "MarketFeeUsdByPeriod";
3608
+ annualizedBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3609
+ annualizedFeeUsdForPool: Scalars["BigInt"]["output"];
3610
+ annualizedNonBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3611
+ borrowFeesFromTimestamp: Scalars["Float"]["output"];
3612
+ borrowFeesToTimestamp: Scalars["Float"]["output"];
3613
+ collectedFeesFromTimestamp: Scalars["Float"]["output"];
3614
+ collectedFeesToTimestamp: Scalars["Float"]["output"];
3615
+ marketAddress: Scalars["String"]["output"];
3616
+ periodBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3617
+ periodFeeUsdForPool: Scalars["BigInt"]["output"];
3618
+ periodNonBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3619
+ }
2941
3620
  export interface MarketInfo {
2942
3621
  __typename?: "MarketInfo";
2943
3622
  aboveOptimalUsageBorrowingFactorLong: Scalars["BigInt"]["output"];
@@ -2956,6 +3635,7 @@ export interface MarketInfo {
2956
3635
  fundingFactor: Scalars["BigInt"]["output"];
2957
3636
  fundingFactorPerSecond: Scalars["BigInt"]["output"];
2958
3637
  fundingIncreaseFactorPerSecond: Scalars["BigInt"]["output"];
3638
+ fundingUpdatedAt: Scalars["Int"]["output"];
2959
3639
  id: Scalars["String"]["output"];
2960
3640
  indexTokenAddress: Scalars["String"]["output"];
2961
3641
  isDisabled: Scalars["Boolean"]["output"];
@@ -2971,7 +3651,8 @@ export interface MarketInfo {
2971
3651
  longsPayShorts: Scalars["Boolean"]["output"];
2972
3652
  marketTokenAddress: Scalars["String"]["output"];
2973
3653
  marketTokenSupply: Scalars["BigInt"]["output"];
2974
- maxFundingFactorPerSecond: Scalars["BigInt"]["output"];
3654
+ maxFundingFactorPerSecondLong: Scalars["BigInt"]["output"];
3655
+ maxFundingFactorPerSecondShort: Scalars["BigInt"]["output"];
2975
3656
  maxLendableImpactFactor: Scalars["BigInt"]["output"];
2976
3657
  maxLendableImpactFactorForWithdrawals: Scalars["BigInt"]["output"];
2977
3658
  maxLendableImpactUsd: Scalars["BigInt"]["output"];
@@ -2990,7 +3671,9 @@ export interface MarketInfo {
2990
3671
  minCollateralFactorForLiquidation: Scalars["BigInt"]["output"];
2991
3672
  minCollateralFactorForOpenInterestLong: Scalars["BigInt"]["output"];
2992
3673
  minCollateralFactorForOpenInterestShort: Scalars["BigInt"]["output"];
2993
- minFundingFactorPerSecond: Scalars["BigInt"]["output"];
3674
+ minFundingFactorPerSecondLong: Scalars["BigInt"]["output"];
3675
+ minFundingFactorPerSecondShort: Scalars["BigInt"]["output"];
3676
+ minFundingIncreaseRatePerSecond: Scalars["BigInt"]["output"];
2994
3677
  minPositionImpactPoolAmount: Scalars["BigInt"]["output"];
2995
3678
  openInterestReserveFactorLong: Scalars["BigInt"]["output"];
2996
3679
  openInterestReserveFactorShort: Scalars["BigInt"]["output"];
@@ -3009,6 +3692,7 @@ export interface MarketInfo {
3009
3692
  positionImpactPoolDistributionRate: Scalars["BigInt"]["output"];
3010
3693
  reserveFactorLong: Scalars["BigInt"]["output"];
3011
3694
  reserveFactorShort: Scalars["BigInt"]["output"];
3695
+ savedFundingFactorPerSecond: Scalars["BigInt"]["output"];
3012
3696
  shortOpenInterestInTokens: Scalars["BigInt"]["output"];
3013
3697
  shortOpenInterestInTokensUsingLongToken: Scalars["BigInt"]["output"];
3014
3698
  shortOpenInterestInTokensUsingShortToken: Scalars["BigInt"]["output"];
@@ -3138,6 +3822,12 @@ export declare enum MarketInfoOrderByInput {
3138
3822
  fundingIncreaseFactorPerSecond_DESC = "fundingIncreaseFactorPerSecond_DESC",
3139
3823
  fundingIncreaseFactorPerSecond_DESC_NULLS_FIRST = "fundingIncreaseFactorPerSecond_DESC_NULLS_FIRST",
3140
3824
  fundingIncreaseFactorPerSecond_DESC_NULLS_LAST = "fundingIncreaseFactorPerSecond_DESC_NULLS_LAST",
3825
+ fundingUpdatedAt_ASC = "fundingUpdatedAt_ASC",
3826
+ fundingUpdatedAt_ASC_NULLS_FIRST = "fundingUpdatedAt_ASC_NULLS_FIRST",
3827
+ fundingUpdatedAt_ASC_NULLS_LAST = "fundingUpdatedAt_ASC_NULLS_LAST",
3828
+ fundingUpdatedAt_DESC = "fundingUpdatedAt_DESC",
3829
+ fundingUpdatedAt_DESC_NULLS_FIRST = "fundingUpdatedAt_DESC_NULLS_FIRST",
3830
+ fundingUpdatedAt_DESC_NULLS_LAST = "fundingUpdatedAt_DESC_NULLS_LAST",
3141
3831
  id_ASC = "id_ASC",
3142
3832
  id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
3143
3833
  id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
@@ -3228,12 +3918,18 @@ export declare enum MarketInfoOrderByInput {
3228
3918
  marketTokenSupply_DESC = "marketTokenSupply_DESC",
3229
3919
  marketTokenSupply_DESC_NULLS_FIRST = "marketTokenSupply_DESC_NULLS_FIRST",
3230
3920
  marketTokenSupply_DESC_NULLS_LAST = "marketTokenSupply_DESC_NULLS_LAST",
3231
- maxFundingFactorPerSecond_ASC = "maxFundingFactorPerSecond_ASC",
3232
- maxFundingFactorPerSecond_ASC_NULLS_FIRST = "maxFundingFactorPerSecond_ASC_NULLS_FIRST",
3233
- maxFundingFactorPerSecond_ASC_NULLS_LAST = "maxFundingFactorPerSecond_ASC_NULLS_LAST",
3234
- maxFundingFactorPerSecond_DESC = "maxFundingFactorPerSecond_DESC",
3235
- maxFundingFactorPerSecond_DESC_NULLS_FIRST = "maxFundingFactorPerSecond_DESC_NULLS_FIRST",
3236
- maxFundingFactorPerSecond_DESC_NULLS_LAST = "maxFundingFactorPerSecond_DESC_NULLS_LAST",
3921
+ maxFundingFactorPerSecondLong_ASC = "maxFundingFactorPerSecondLong_ASC",
3922
+ maxFundingFactorPerSecondLong_ASC_NULLS_FIRST = "maxFundingFactorPerSecondLong_ASC_NULLS_FIRST",
3923
+ maxFundingFactorPerSecondLong_ASC_NULLS_LAST = "maxFundingFactorPerSecondLong_ASC_NULLS_LAST",
3924
+ maxFundingFactorPerSecondLong_DESC = "maxFundingFactorPerSecondLong_DESC",
3925
+ maxFundingFactorPerSecondLong_DESC_NULLS_FIRST = "maxFundingFactorPerSecondLong_DESC_NULLS_FIRST",
3926
+ maxFundingFactorPerSecondLong_DESC_NULLS_LAST = "maxFundingFactorPerSecondLong_DESC_NULLS_LAST",
3927
+ maxFundingFactorPerSecondShort_ASC = "maxFundingFactorPerSecondShort_ASC",
3928
+ maxFundingFactorPerSecondShort_ASC_NULLS_FIRST = "maxFundingFactorPerSecondShort_ASC_NULLS_FIRST",
3929
+ maxFundingFactorPerSecondShort_ASC_NULLS_LAST = "maxFundingFactorPerSecondShort_ASC_NULLS_LAST",
3930
+ maxFundingFactorPerSecondShort_DESC = "maxFundingFactorPerSecondShort_DESC",
3931
+ maxFundingFactorPerSecondShort_DESC_NULLS_FIRST = "maxFundingFactorPerSecondShort_DESC_NULLS_FIRST",
3932
+ maxFundingFactorPerSecondShort_DESC_NULLS_LAST = "maxFundingFactorPerSecondShort_DESC_NULLS_LAST",
3237
3933
  maxLendableImpactFactorForWithdrawals_ASC = "maxLendableImpactFactorForWithdrawals_ASC",
3238
3934
  maxLendableImpactFactorForWithdrawals_ASC_NULLS_FIRST = "maxLendableImpactFactorForWithdrawals_ASC_NULLS_FIRST",
3239
3935
  maxLendableImpactFactorForWithdrawals_ASC_NULLS_LAST = "maxLendableImpactFactorForWithdrawals_ASC_NULLS_LAST",
@@ -3342,12 +4038,24 @@ export declare enum MarketInfoOrderByInput {
3342
4038
  minCollateralFactor_DESC = "minCollateralFactor_DESC",
3343
4039
  minCollateralFactor_DESC_NULLS_FIRST = "minCollateralFactor_DESC_NULLS_FIRST",
3344
4040
  minCollateralFactor_DESC_NULLS_LAST = "minCollateralFactor_DESC_NULLS_LAST",
3345
- minFundingFactorPerSecond_ASC = "minFundingFactorPerSecond_ASC",
3346
- minFundingFactorPerSecond_ASC_NULLS_FIRST = "minFundingFactorPerSecond_ASC_NULLS_FIRST",
3347
- minFundingFactorPerSecond_ASC_NULLS_LAST = "minFundingFactorPerSecond_ASC_NULLS_LAST",
3348
- minFundingFactorPerSecond_DESC = "minFundingFactorPerSecond_DESC",
3349
- minFundingFactorPerSecond_DESC_NULLS_FIRST = "minFundingFactorPerSecond_DESC_NULLS_FIRST",
3350
- minFundingFactorPerSecond_DESC_NULLS_LAST = "minFundingFactorPerSecond_DESC_NULLS_LAST",
4041
+ minFundingFactorPerSecondLong_ASC = "minFundingFactorPerSecondLong_ASC",
4042
+ minFundingFactorPerSecondLong_ASC_NULLS_FIRST = "minFundingFactorPerSecondLong_ASC_NULLS_FIRST",
4043
+ minFundingFactorPerSecondLong_ASC_NULLS_LAST = "minFundingFactorPerSecondLong_ASC_NULLS_LAST",
4044
+ minFundingFactorPerSecondLong_DESC = "minFundingFactorPerSecondLong_DESC",
4045
+ minFundingFactorPerSecondLong_DESC_NULLS_FIRST = "minFundingFactorPerSecondLong_DESC_NULLS_FIRST",
4046
+ minFundingFactorPerSecondLong_DESC_NULLS_LAST = "minFundingFactorPerSecondLong_DESC_NULLS_LAST",
4047
+ minFundingFactorPerSecondShort_ASC = "minFundingFactorPerSecondShort_ASC",
4048
+ minFundingFactorPerSecondShort_ASC_NULLS_FIRST = "minFundingFactorPerSecondShort_ASC_NULLS_FIRST",
4049
+ minFundingFactorPerSecondShort_ASC_NULLS_LAST = "minFundingFactorPerSecondShort_ASC_NULLS_LAST",
4050
+ minFundingFactorPerSecondShort_DESC = "minFundingFactorPerSecondShort_DESC",
4051
+ minFundingFactorPerSecondShort_DESC_NULLS_FIRST = "minFundingFactorPerSecondShort_DESC_NULLS_FIRST",
4052
+ minFundingFactorPerSecondShort_DESC_NULLS_LAST = "minFundingFactorPerSecondShort_DESC_NULLS_LAST",
4053
+ minFundingIncreaseRatePerSecond_ASC = "minFundingIncreaseRatePerSecond_ASC",
4054
+ minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST = "minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST",
4055
+ minFundingIncreaseRatePerSecond_ASC_NULLS_LAST = "minFundingIncreaseRatePerSecond_ASC_NULLS_LAST",
4056
+ minFundingIncreaseRatePerSecond_DESC = "minFundingIncreaseRatePerSecond_DESC",
4057
+ minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST = "minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST",
4058
+ minFundingIncreaseRatePerSecond_DESC_NULLS_LAST = "minFundingIncreaseRatePerSecond_DESC_NULLS_LAST",
3351
4059
  minPositionImpactPoolAmount_ASC = "minPositionImpactPoolAmount_ASC",
3352
4060
  minPositionImpactPoolAmount_ASC_NULLS_FIRST = "minPositionImpactPoolAmount_ASC_NULLS_FIRST",
3353
4061
  minPositionImpactPoolAmount_ASC_NULLS_LAST = "minPositionImpactPoolAmount_ASC_NULLS_LAST",
@@ -3456,6 +4164,12 @@ export declare enum MarketInfoOrderByInput {
3456
4164
  reserveFactorShort_DESC = "reserveFactorShort_DESC",
3457
4165
  reserveFactorShort_DESC_NULLS_FIRST = "reserveFactorShort_DESC_NULLS_FIRST",
3458
4166
  reserveFactorShort_DESC_NULLS_LAST = "reserveFactorShort_DESC_NULLS_LAST",
4167
+ savedFundingFactorPerSecond_ASC = "savedFundingFactorPerSecond_ASC",
4168
+ savedFundingFactorPerSecond_ASC_NULLS_FIRST = "savedFundingFactorPerSecond_ASC_NULLS_FIRST",
4169
+ savedFundingFactorPerSecond_ASC_NULLS_LAST = "savedFundingFactorPerSecond_ASC_NULLS_LAST",
4170
+ savedFundingFactorPerSecond_DESC = "savedFundingFactorPerSecond_DESC",
4171
+ savedFundingFactorPerSecond_DESC_NULLS_FIRST = "savedFundingFactorPerSecond_DESC_NULLS_FIRST",
4172
+ savedFundingFactorPerSecond_DESC_NULLS_LAST = "savedFundingFactorPerSecond_DESC_NULLS_LAST",
3459
4173
  shortOpenInterestInTokensUsingLongToken_ASC = "shortOpenInterestInTokensUsingLongToken_ASC",
3460
4174
  shortOpenInterestInTokensUsingLongToken_ASC_NULLS_FIRST = "shortOpenInterestInTokensUsingLongToken_ASC_NULLS_FIRST",
3461
4175
  shortOpenInterestInTokensUsingLongToken_ASC_NULLS_LAST = "shortOpenInterestInTokensUsingLongToken_ASC_NULLS_LAST",
@@ -3760,6 +4474,15 @@ export interface MarketInfoWhereInput {
3760
4474
  fundingIncreaseFactorPerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3761
4475
  fundingIncreaseFactorPerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3762
4476
  fundingIncreaseFactorPerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4477
+ fundingUpdatedAt_eq?: InputMaybe<Scalars["Int"]["input"]>;
4478
+ fundingUpdatedAt_gt?: InputMaybe<Scalars["Int"]["input"]>;
4479
+ fundingUpdatedAt_gte?: InputMaybe<Scalars["Int"]["input"]>;
4480
+ fundingUpdatedAt_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4481
+ fundingUpdatedAt_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4482
+ fundingUpdatedAt_lt?: InputMaybe<Scalars["Int"]["input"]>;
4483
+ fundingUpdatedAt_lte?: InputMaybe<Scalars["Int"]["input"]>;
4484
+ fundingUpdatedAt_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
4485
+ fundingUpdatedAt_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3763
4486
  id_contains?: InputMaybe<Scalars["String"]["input"]>;
3764
4487
  id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3765
4488
  id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -3915,15 +4638,24 @@ export interface MarketInfoWhereInput {
3915
4638
  marketTokenSupply_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3916
4639
  marketTokenSupply_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3917
4640
  marketTokenSupply_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3918
- maxFundingFactorPerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3919
- maxFundingFactorPerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3920
- maxFundingFactorPerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3921
- maxFundingFactorPerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3922
- maxFundingFactorPerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3923
- maxFundingFactorPerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3924
- maxFundingFactorPerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3925
- maxFundingFactorPerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3926
- maxFundingFactorPerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4641
+ maxFundingFactorPerSecondLong_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4642
+ maxFundingFactorPerSecondLong_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4643
+ maxFundingFactorPerSecondLong_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4644
+ maxFundingFactorPerSecondLong_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4645
+ maxFundingFactorPerSecondLong_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4646
+ maxFundingFactorPerSecondLong_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4647
+ maxFundingFactorPerSecondLong_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4648
+ maxFundingFactorPerSecondLong_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4649
+ maxFundingFactorPerSecondLong_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4650
+ maxFundingFactorPerSecondShort_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4651
+ maxFundingFactorPerSecondShort_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4652
+ maxFundingFactorPerSecondShort_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4653
+ maxFundingFactorPerSecondShort_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4654
+ maxFundingFactorPerSecondShort_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4655
+ maxFundingFactorPerSecondShort_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4656
+ maxFundingFactorPerSecondShort_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4657
+ maxFundingFactorPerSecondShort_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4658
+ maxFundingFactorPerSecondShort_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3927
4659
  maxLendableImpactFactorForWithdrawals_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3928
4660
  maxLendableImpactFactorForWithdrawals_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3929
4661
  maxLendableImpactFactorForWithdrawals_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -4086,15 +4818,33 @@ export interface MarketInfoWhereInput {
4086
4818
  minCollateralFactor_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4087
4819
  minCollateralFactor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4088
4820
  minCollateralFactor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4089
- minFundingFactorPerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4090
- minFundingFactorPerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4091
- minFundingFactorPerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4092
- minFundingFactorPerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4093
- minFundingFactorPerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4094
- minFundingFactorPerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4095
- minFundingFactorPerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4096
- minFundingFactorPerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4097
- minFundingFactorPerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4821
+ minFundingFactorPerSecondLong_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4822
+ minFundingFactorPerSecondLong_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4823
+ minFundingFactorPerSecondLong_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4824
+ minFundingFactorPerSecondLong_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4825
+ minFundingFactorPerSecondLong_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4826
+ minFundingFactorPerSecondLong_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4827
+ minFundingFactorPerSecondLong_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4828
+ minFundingFactorPerSecondLong_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4829
+ minFundingFactorPerSecondLong_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4830
+ minFundingFactorPerSecondShort_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4831
+ minFundingFactorPerSecondShort_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4832
+ minFundingFactorPerSecondShort_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4833
+ minFundingFactorPerSecondShort_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4834
+ minFundingFactorPerSecondShort_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4835
+ minFundingFactorPerSecondShort_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4836
+ minFundingFactorPerSecondShort_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4837
+ minFundingFactorPerSecondShort_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4838
+ minFundingFactorPerSecondShort_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4839
+ minFundingIncreaseRatePerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4840
+ minFundingIncreaseRatePerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4841
+ minFundingIncreaseRatePerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4842
+ minFundingIncreaseRatePerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4843
+ minFundingIncreaseRatePerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4844
+ minFundingIncreaseRatePerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4845
+ minFundingIncreaseRatePerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4846
+ minFundingIncreaseRatePerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4847
+ minFundingIncreaseRatePerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4098
4848
  minPositionImpactPoolAmount_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4099
4849
  minPositionImpactPoolAmount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4100
4850
  minPositionImpactPoolAmount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -4257,6 +5007,15 @@ export interface MarketInfoWhereInput {
4257
5007
  reserveFactorShort_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4258
5008
  reserveFactorShort_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4259
5009
  reserveFactorShort_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
5010
+ savedFundingFactorPerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
5011
+ savedFundingFactorPerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
5012
+ savedFundingFactorPerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
5013
+ savedFundingFactorPerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
5014
+ savedFundingFactorPerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
5015
+ savedFundingFactorPerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
5016
+ savedFundingFactorPerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
5017
+ savedFundingFactorPerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
5018
+ savedFundingFactorPerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4260
5019
  shortOpenInterestInTokensUsingLongToken_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4261
5020
  shortOpenInterestInTokensUsingLongToken_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4262
5021
  shortOpenInterestInTokensUsingLongToken_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -4672,6 +5431,11 @@ export interface MarketsConnection {
4672
5431
  pageInfo: PageInfo;
4673
5432
  totalCount: Scalars["Int"]["output"];
4674
5433
  }
5434
+ export interface MarketsFeeUsdWhereInput {
5435
+ marketAddresses?: InputMaybe<Array<Scalars["String"]["input"]>>;
5436
+ periodEnd: Scalars["Float"]["input"];
5437
+ periodStart: Scalars["Float"]["input"];
5438
+ }
4675
5439
  export interface MultichainFundingInfo {
4676
5440
  __typename?: "MultichainFundingInfo";
4677
5441
  account: Scalars["String"]["output"];
@@ -5490,6 +6254,7 @@ export interface Order {
5490
6254
  swapPath: Array<Scalars["String"]["output"]>;
5491
6255
  triggerPrice: Scalars["BigInt"]["output"];
5492
6256
  twapGroupId?: Maybe<Scalars["String"]["output"]>;
6257
+ uiFeeFactor?: Maybe<Scalars["BigInt"]["output"]>;
5493
6258
  uiFeeReceiver: Scalars["String"]["output"];
5494
6259
  updatedAtBlock: Scalars["BigInt"]["output"];
5495
6260
  }
@@ -5667,6 +6432,12 @@ export declare enum OrderOrderByInput {
5667
6432
  twapGroupId_DESC = "twapGroupId_DESC",
5668
6433
  twapGroupId_DESC_NULLS_FIRST = "twapGroupId_DESC_NULLS_FIRST",
5669
6434
  twapGroupId_DESC_NULLS_LAST = "twapGroupId_DESC_NULLS_LAST",
6435
+ uiFeeFactor_ASC = "uiFeeFactor_ASC",
6436
+ uiFeeFactor_ASC_NULLS_FIRST = "uiFeeFactor_ASC_NULLS_FIRST",
6437
+ uiFeeFactor_ASC_NULLS_LAST = "uiFeeFactor_ASC_NULLS_LAST",
6438
+ uiFeeFactor_DESC = "uiFeeFactor_DESC",
6439
+ uiFeeFactor_DESC_NULLS_FIRST = "uiFeeFactor_DESC_NULLS_FIRST",
6440
+ uiFeeFactor_DESC_NULLS_LAST = "uiFeeFactor_DESC_NULLS_LAST",
5670
6441
  uiFeeReceiver_ASC = "uiFeeReceiver_ASC",
5671
6442
  uiFeeReceiver_ASC_NULLS_FIRST = "uiFeeReceiver_ASC_NULLS_FIRST",
5672
6443
  uiFeeReceiver_ASC_NULLS_LAST = "uiFeeReceiver_ASC_NULLS_LAST",
@@ -6041,6 +6812,15 @@ export interface OrderWhereInput {
6041
6812
  twapGroupId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
6042
6813
  twapGroupId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6043
6814
  twapGroupId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6815
+ uiFeeFactor_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6816
+ uiFeeFactor_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6817
+ uiFeeFactor_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6818
+ uiFeeFactor_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6819
+ uiFeeFactor_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6820
+ uiFeeFactor_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6821
+ uiFeeFactor_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6822
+ uiFeeFactor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6823
+ uiFeeFactor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6044
6824
  uiFeeReceiver_contains?: InputMaybe<Scalars["String"]["input"]>;
6045
6825
  uiFeeReceiver_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
6046
6826
  uiFeeReceiver_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -6105,6 +6885,8 @@ export interface PeriodAccountStatObject {
6105
6885
  losses: Scalars["Float"]["output"];
6106
6886
  maxCapital: Scalars["BigInt"]["output"];
6107
6887
  netCapital: Scalars["BigInt"]["output"];
6888
+ /** Signed PnL contribution from funding received in the period, whether claimed or not. Excluded from realizedFees; add once to PnL. */
6889
+ positiveFundingFeesUsd: Scalars["BigInt"]["output"];
6108
6890
  realizedFees: Scalars["BigInt"]["output"];
6109
6891
  realizedPnl: Scalars["BigInt"]["output"];
6110
6892
  realizedPriceImpact: Scalars["BigInt"]["output"];
@@ -6325,6 +7107,7 @@ export interface Position {
6325
7107
  __typename?: "Position";
6326
7108
  account: Scalars["String"]["output"];
6327
7109
  accountStat: AccountStat;
7110
+ accountStatId: Scalars["String"]["output"];
6328
7111
  collateralAmount: Scalars["BigInt"]["output"];
6329
7112
  collateralToken: Scalars["String"]["output"];
6330
7113
  entryPrice: Scalars["BigInt"]["output"];
@@ -7473,6 +8256,124 @@ export interface PositionFeesInfoWithPeriodsConnection {
7473
8256
  pageInfo: PageInfo;
7474
8257
  totalCount: Scalars["Int"]["output"];
7475
8258
  }
8259
+ export interface PositionLifecycle {
8260
+ __typename?: "PositionLifecycle";
8261
+ currentLifecycleId?: Maybe<Scalars["String"]["output"]>;
8262
+ id: Scalars["String"]["output"];
8263
+ isOpen: Scalars["Boolean"]["output"];
8264
+ lastClosedLifecycleId?: Maybe<Scalars["String"]["output"]>;
8265
+ updatedAtBlock: Scalars["Int"]["output"];
8266
+ }
8267
+ export interface PositionLifecycleEdge {
8268
+ __typename?: "PositionLifecycleEdge";
8269
+ cursor: Scalars["String"]["output"];
8270
+ node: PositionLifecycle;
8271
+ }
8272
+ export declare enum PositionLifecycleOrderByInput {
8273
+ currentLifecycleId_ASC = "currentLifecycleId_ASC",
8274
+ currentLifecycleId_ASC_NULLS_FIRST = "currentLifecycleId_ASC_NULLS_FIRST",
8275
+ currentLifecycleId_ASC_NULLS_LAST = "currentLifecycleId_ASC_NULLS_LAST",
8276
+ currentLifecycleId_DESC = "currentLifecycleId_DESC",
8277
+ currentLifecycleId_DESC_NULLS_FIRST = "currentLifecycleId_DESC_NULLS_FIRST",
8278
+ currentLifecycleId_DESC_NULLS_LAST = "currentLifecycleId_DESC_NULLS_LAST",
8279
+ id_ASC = "id_ASC",
8280
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
8281
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
8282
+ id_DESC = "id_DESC",
8283
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
8284
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
8285
+ isOpen_ASC = "isOpen_ASC",
8286
+ isOpen_ASC_NULLS_FIRST = "isOpen_ASC_NULLS_FIRST",
8287
+ isOpen_ASC_NULLS_LAST = "isOpen_ASC_NULLS_LAST",
8288
+ isOpen_DESC = "isOpen_DESC",
8289
+ isOpen_DESC_NULLS_FIRST = "isOpen_DESC_NULLS_FIRST",
8290
+ isOpen_DESC_NULLS_LAST = "isOpen_DESC_NULLS_LAST",
8291
+ lastClosedLifecycleId_ASC = "lastClosedLifecycleId_ASC",
8292
+ lastClosedLifecycleId_ASC_NULLS_FIRST = "lastClosedLifecycleId_ASC_NULLS_FIRST",
8293
+ lastClosedLifecycleId_ASC_NULLS_LAST = "lastClosedLifecycleId_ASC_NULLS_LAST",
8294
+ lastClosedLifecycleId_DESC = "lastClosedLifecycleId_DESC",
8295
+ lastClosedLifecycleId_DESC_NULLS_FIRST = "lastClosedLifecycleId_DESC_NULLS_FIRST",
8296
+ lastClosedLifecycleId_DESC_NULLS_LAST = "lastClosedLifecycleId_DESC_NULLS_LAST",
8297
+ updatedAtBlock_ASC = "updatedAtBlock_ASC",
8298
+ updatedAtBlock_ASC_NULLS_FIRST = "updatedAtBlock_ASC_NULLS_FIRST",
8299
+ updatedAtBlock_ASC_NULLS_LAST = "updatedAtBlock_ASC_NULLS_LAST",
8300
+ updatedAtBlock_DESC = "updatedAtBlock_DESC",
8301
+ updatedAtBlock_DESC_NULLS_FIRST = "updatedAtBlock_DESC_NULLS_FIRST",
8302
+ updatedAtBlock_DESC_NULLS_LAST = "updatedAtBlock_DESC_NULLS_LAST"
8303
+ }
8304
+ export interface PositionLifecycleWhereInput {
8305
+ AND?: InputMaybe<Array<PositionLifecycleWhereInput>>;
8306
+ OR?: InputMaybe<Array<PositionLifecycleWhereInput>>;
8307
+ currentLifecycleId_contains?: InputMaybe<Scalars["String"]["input"]>;
8308
+ currentLifecycleId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8309
+ currentLifecycleId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8310
+ currentLifecycleId_eq?: InputMaybe<Scalars["String"]["input"]>;
8311
+ currentLifecycleId_gt?: InputMaybe<Scalars["String"]["input"]>;
8312
+ currentLifecycleId_gte?: InputMaybe<Scalars["String"]["input"]>;
8313
+ currentLifecycleId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8314
+ currentLifecycleId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8315
+ currentLifecycleId_lt?: InputMaybe<Scalars["String"]["input"]>;
8316
+ currentLifecycleId_lte?: InputMaybe<Scalars["String"]["input"]>;
8317
+ currentLifecycleId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8318
+ currentLifecycleId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8319
+ currentLifecycleId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8320
+ currentLifecycleId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8321
+ currentLifecycleId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8322
+ currentLifecycleId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8323
+ currentLifecycleId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8324
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
8325
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8326
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8327
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
8328
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
8329
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
8330
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8331
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8332
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
8333
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
8334
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8335
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8336
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8337
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8338
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8339
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8340
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8341
+ isOpen_eq?: InputMaybe<Scalars["Boolean"]["input"]>;
8342
+ isOpen_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8343
+ isOpen_not_eq?: InputMaybe<Scalars["Boolean"]["input"]>;
8344
+ lastClosedLifecycleId_contains?: InputMaybe<Scalars["String"]["input"]>;
8345
+ lastClosedLifecycleId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8346
+ lastClosedLifecycleId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8347
+ lastClosedLifecycleId_eq?: InputMaybe<Scalars["String"]["input"]>;
8348
+ lastClosedLifecycleId_gt?: InputMaybe<Scalars["String"]["input"]>;
8349
+ lastClosedLifecycleId_gte?: InputMaybe<Scalars["String"]["input"]>;
8350
+ lastClosedLifecycleId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8351
+ lastClosedLifecycleId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8352
+ lastClosedLifecycleId_lt?: InputMaybe<Scalars["String"]["input"]>;
8353
+ lastClosedLifecycleId_lte?: InputMaybe<Scalars["String"]["input"]>;
8354
+ lastClosedLifecycleId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8355
+ lastClosedLifecycleId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8356
+ lastClosedLifecycleId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8357
+ lastClosedLifecycleId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8358
+ lastClosedLifecycleId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8359
+ lastClosedLifecycleId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8360
+ lastClosedLifecycleId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8361
+ updatedAtBlock_eq?: InputMaybe<Scalars["Int"]["input"]>;
8362
+ updatedAtBlock_gt?: InputMaybe<Scalars["Int"]["input"]>;
8363
+ updatedAtBlock_gte?: InputMaybe<Scalars["Int"]["input"]>;
8364
+ updatedAtBlock_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
8365
+ updatedAtBlock_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8366
+ updatedAtBlock_lt?: InputMaybe<Scalars["Int"]["input"]>;
8367
+ updatedAtBlock_lte?: InputMaybe<Scalars["Int"]["input"]>;
8368
+ updatedAtBlock_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
8369
+ updatedAtBlock_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
8370
+ }
8371
+ export interface PositionLifecyclesConnection {
8372
+ __typename?: "PositionLifecyclesConnection";
8373
+ edges: Array<PositionLifecycleEdge>;
8374
+ pageInfo: PageInfo;
8375
+ totalCount: Scalars["Int"]["output"];
8376
+ }
7476
8377
  export interface PositionMarketVolumeInfo {
7477
8378
  __typename?: "PositionMarketVolumeInfo";
7478
8379
  market: Scalars["String"]["output"];
@@ -7557,6 +8458,12 @@ export declare enum PositionOrderByInput {
7557
8458
  accountStat_period_DESC = "accountStat_period_DESC",
7558
8459
  accountStat_period_DESC_NULLS_FIRST = "accountStat_period_DESC_NULLS_FIRST",
7559
8460
  accountStat_period_DESC_NULLS_LAST = "accountStat_period_DESC_NULLS_LAST",
8461
+ accountStat_positiveFundingFeesUsd_ASC = "accountStat_positiveFundingFeesUsd_ASC",
8462
+ accountStat_positiveFundingFeesUsd_ASC_NULLS_FIRST = "accountStat_positiveFundingFeesUsd_ASC_NULLS_FIRST",
8463
+ accountStat_positiveFundingFeesUsd_ASC_NULLS_LAST = "accountStat_positiveFundingFeesUsd_ASC_NULLS_LAST",
8464
+ accountStat_positiveFundingFeesUsd_DESC = "accountStat_positiveFundingFeesUsd_DESC",
8465
+ accountStat_positiveFundingFeesUsd_DESC_NULLS_FIRST = "accountStat_positiveFundingFeesUsd_DESC_NULLS_FIRST",
8466
+ accountStat_positiveFundingFeesUsd_DESC_NULLS_LAST = "accountStat_positiveFundingFeesUsd_DESC_NULLS_LAST",
7560
8467
  accountStat_realizedFees_ASC = "accountStat_realizedFees_ASC",
7561
8468
  accountStat_realizedFees_ASC_NULLS_FIRST = "accountStat_realizedFees_ASC_NULLS_FIRST",
7562
8469
  accountStat_realizedFees_ASC_NULLS_LAST = "accountStat_realizedFees_ASC_NULLS_LAST",
@@ -7908,6 +8815,23 @@ export interface PositionWhereInput {
7908
8815
  AND?: InputMaybe<Array<PositionWhereInput>>;
7909
8816
  OR?: InputMaybe<Array<PositionWhereInput>>;
7910
8817
  accountStat?: InputMaybe<AccountStatWhereInput>;
8818
+ accountStatId_contains?: InputMaybe<Scalars["String"]["input"]>;
8819
+ accountStatId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8820
+ accountStatId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8821
+ accountStatId_eq?: InputMaybe<Scalars["String"]["input"]>;
8822
+ accountStatId_gt?: InputMaybe<Scalars["String"]["input"]>;
8823
+ accountStatId_gte?: InputMaybe<Scalars["String"]["input"]>;
8824
+ accountStatId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8825
+ accountStatId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8826
+ accountStatId_lt?: InputMaybe<Scalars["String"]["input"]>;
8827
+ accountStatId_lte?: InputMaybe<Scalars["String"]["input"]>;
8828
+ accountStatId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8829
+ accountStatId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8830
+ accountStatId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8831
+ accountStatId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8832
+ accountStatId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8833
+ accountStatId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8834
+ accountStatId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
7911
8835
  accountStat_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
7912
8836
  account_contains?: InputMaybe<Scalars["String"]["input"]>;
7913
8837
  account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
@@ -8406,6 +9330,9 @@ export interface ProcessorStatusesConnection {
8406
9330
  export interface Query {
8407
9331
  __typename?: "Query";
8408
9332
  accountPnlHistoryStats: Array<AccountPnlHistoryPointObject>;
9333
+ accountPnlRankMetricById?: Maybe<AccountPnlRankMetric>;
9334
+ accountPnlRankMetrics: Array<AccountPnlRankMetric>;
9335
+ accountPnlRankMetricsConnection: AccountPnlRankMetricsConnection;
8409
9336
  accountPnlSummaryStats: Array<AccountPnlSummaryBucketObject>;
8410
9337
  accountStatById?: Maybe<AccountStat>;
8411
9338
  accountStats: Array<AccountStat>;
@@ -8458,6 +9385,13 @@ export interface Query {
8458
9385
  fundingRateSnapshots: Array<FundingRateSnapshot>;
8459
9386
  fundingRateSnapshotsConnection: FundingRateSnapshotsConnection;
8460
9387
  glvById?: Maybe<Glv>;
9388
+ glvTokenBalanceById?: Maybe<GlvTokenBalance>;
9389
+ glvTokenBalanceChangeById?: Maybe<GlvTokenBalanceChange>;
9390
+ glvTokenBalanceChanges: Array<GlvTokenBalanceChange>;
9391
+ glvTokenBalanceChangesConnection: GlvTokenBalanceChangesConnection;
9392
+ glvTokenBalances: Array<GlvTokenBalance>;
9393
+ glvTokenBalancesConnection: GlvTokenBalancesConnection;
9394
+ glvUserEarnings: Array<GlvUserEarning>;
8461
9395
  glvs: Array<Glv>;
8462
9396
  glvsAprByPeriod: Array<GlvApr>;
8463
9397
  glvsConnection: GlvsConnection;
@@ -8469,6 +9403,7 @@ export interface Query {
8469
9403
  markets: Array<Market>;
8470
9404
  marketsAprByPeriod: Array<MarketApr>;
8471
9405
  marketsConnection: MarketsConnection;
9406
+ marketsFeeUsdByPeriod: Array<MarketFeeUsdByPeriod>;
8472
9407
  marketsNetRatesByPeriod: Array<MarketNetRatesResponse>;
8473
9408
  marketsPnlAprByPeriod: Array<MarketPnlApr>;
8474
9409
  multichainFunding: Array<MultichainFundingInfo>;
@@ -8509,6 +9444,9 @@ export interface Query {
8509
9444
  positionFeesInfoWithPeriodById?: Maybe<PositionFeesInfoWithPeriod>;
8510
9445
  positionFeesInfoWithPeriods: Array<PositionFeesInfoWithPeriod>;
8511
9446
  positionFeesInfoWithPeriodsConnection: PositionFeesInfoWithPeriodsConnection;
9447
+ positionLifecycleById?: Maybe<PositionLifecycle>;
9448
+ positionLifecycles: Array<PositionLifecycle>;
9449
+ positionLifecyclesConnection: PositionLifecyclesConnection;
8512
9450
  positionTotalCollateralAmount: Array<PositionTotalCollateralAmount>;
8513
9451
  positionVolumeInfoById?: Maybe<PositionVolumeInfo>;
8514
9452
  positionVolumeInfos: Array<PositionVolumeInfo>;
@@ -8525,6 +9463,13 @@ export interface Query {
8525
9463
  referralCodeOwnerById?: Maybe<ReferralCodeOwner>;
8526
9464
  referralCodeOwners: Array<ReferralCodeOwner>;
8527
9465
  referralCodeOwnersConnection: ReferralCodeOwnersConnection;
9466
+ referralCodeUpdates: ReferralCodeUpdatesResponse;
9467
+ referralTierById?: Maybe<ReferralTier>;
9468
+ referralTiers: Array<ReferralTier>;
9469
+ referralTiersConnection: ReferralTiersConnection;
9470
+ referrerTierById?: Maybe<ReferrerTier>;
9471
+ referrerTiers: Array<ReferrerTier>;
9472
+ referrerTiersConnection: ReferrerTiersConnection;
8528
9473
  squidStatus: SquidStatus;
8529
9474
  stakingPowerById?: Maybe<StakingPower>;
8530
9475
  stakingPowers: Array<StakingPower>;
@@ -8545,6 +9490,9 @@ export interface Query {
8545
9490
  tradeActionById?: Maybe<TradeAction>;
8546
9491
  tradeActions: Array<TradeAction>;
8547
9492
  tradeActionsConnection: TradeActionsConnection;
9493
+ traderFirstReferralById?: Maybe<TraderFirstReferral>;
9494
+ traderFirstReferrals: Array<TraderFirstReferral>;
9495
+ traderFirstReferralsConnection: TraderFirstReferralsConnection;
8548
9496
  traderReferralById?: Maybe<TraderReferral>;
8549
9497
  traderReferralStats: TraderReferralStatsResponse;
8550
9498
  traderReferralTradeStatsByHourById?: Maybe<TraderReferralTradeStatsByHour>;
@@ -8559,9 +9507,26 @@ export interface Query {
8559
9507
  export interface QueryaccountPnlHistoryStatsArgs {
8560
9508
  account: Scalars["String"]["input"];
8561
9509
  from?: InputMaybe<Scalars["Int"]["input"]>;
9510
+ to?: InputMaybe<Scalars["Int"]["input"]>;
9511
+ }
9512
+ export interface QueryaccountPnlRankMetricByIdArgs {
9513
+ id: Scalars["String"]["input"];
9514
+ }
9515
+ export interface QueryaccountPnlRankMetricsArgs {
9516
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9517
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9518
+ orderBy?: InputMaybe<Array<AccountPnlRankMetricOrderByInput>>;
9519
+ where?: InputMaybe<AccountPnlRankMetricWhereInput>;
9520
+ }
9521
+ export interface QueryaccountPnlRankMetricsConnectionArgs {
9522
+ after?: InputMaybe<Scalars["String"]["input"]>;
9523
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9524
+ orderBy: Array<AccountPnlRankMetricOrderByInput>;
9525
+ where?: InputMaybe<AccountPnlRankMetricWhereInput>;
8562
9526
  }
8563
9527
  export interface QueryaccountPnlSummaryStatsArgs {
8564
9528
  account: Scalars["String"]["input"];
9529
+ rankMaxCapitalGte?: InputMaybe<Scalars["String"]["input"]>;
8565
9530
  }
8566
9531
  export interface QueryaccountStatByIdArgs {
8567
9532
  id: Scalars["String"]["input"];
@@ -8812,6 +9777,39 @@ export interface QueryfundingRateSnapshotsConnectionArgs {
8812
9777
  export interface QueryglvByIdArgs {
8813
9778
  id: Scalars["String"]["input"];
8814
9779
  }
9780
+ export interface QueryglvTokenBalanceByIdArgs {
9781
+ id: Scalars["String"]["input"];
9782
+ }
9783
+ export interface QueryglvTokenBalanceChangeByIdArgs {
9784
+ id: Scalars["String"]["input"];
9785
+ }
9786
+ export interface QueryglvTokenBalanceChangesArgs {
9787
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9788
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9789
+ orderBy?: InputMaybe<Array<GlvTokenBalanceChangeOrderByInput>>;
9790
+ where?: InputMaybe<GlvTokenBalanceChangeWhereInput>;
9791
+ }
9792
+ export interface QueryglvTokenBalanceChangesConnectionArgs {
9793
+ after?: InputMaybe<Scalars["String"]["input"]>;
9794
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9795
+ orderBy: Array<GlvTokenBalanceChangeOrderByInput>;
9796
+ where?: InputMaybe<GlvTokenBalanceChangeWhereInput>;
9797
+ }
9798
+ export interface QueryglvTokenBalancesArgs {
9799
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9800
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9801
+ orderBy?: InputMaybe<Array<GlvTokenBalanceOrderByInput>>;
9802
+ where?: InputMaybe<GlvTokenBalanceWhereInput>;
9803
+ }
9804
+ export interface QueryglvTokenBalancesConnectionArgs {
9805
+ after?: InputMaybe<Scalars["String"]["input"]>;
9806
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9807
+ orderBy: Array<GlvTokenBalanceOrderByInput>;
9808
+ where?: InputMaybe<GlvTokenBalanceWhereInput>;
9809
+ }
9810
+ export interface QueryglvUserEarningsArgs {
9811
+ account: Scalars["String"]["input"];
9812
+ }
8815
9813
  export interface QueryglvsArgs {
8816
9814
  limit?: InputMaybe<Scalars["Int"]["input"]>;
8817
9815
  offset?: InputMaybe<Scalars["Int"]["input"]>;
@@ -8863,6 +9861,9 @@ export interface QuerymarketsConnectionArgs {
8863
9861
  orderBy: Array<MarketOrderByInput>;
8864
9862
  where?: InputMaybe<MarketWhereInput>;
8865
9863
  }
9864
+ export interface QuerymarketsFeeUsdByPeriodArgs {
9865
+ where: MarketsFeeUsdWhereInput;
9866
+ }
8866
9867
  export interface QuerymarketsNetRatesByPeriodArgs {
8867
9868
  where?: InputMaybe<MarketNetRatesWhereInput>;
8868
9869
  }
@@ -9051,6 +10052,21 @@ export interface QuerypositionFeesInfoWithPeriodsConnectionArgs {
9051
10052
  orderBy: Array<PositionFeesInfoWithPeriodOrderByInput>;
9052
10053
  where?: InputMaybe<PositionFeesInfoWithPeriodWhereInput>;
9053
10054
  }
10055
+ export interface QuerypositionLifecycleByIdArgs {
10056
+ id: Scalars["String"]["input"];
10057
+ }
10058
+ export interface QuerypositionLifecyclesArgs {
10059
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10060
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10061
+ orderBy?: InputMaybe<Array<PositionLifecycleOrderByInput>>;
10062
+ where?: InputMaybe<PositionLifecycleWhereInput>;
10063
+ }
10064
+ export interface QuerypositionLifecyclesConnectionArgs {
10065
+ after?: InputMaybe<Scalars["String"]["input"]>;
10066
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10067
+ orderBy: Array<PositionLifecycleOrderByInput>;
10068
+ where?: InputMaybe<PositionLifecycleWhereInput>;
10069
+ }
9054
10070
  export interface QuerypositionTotalCollateralAmountArgs {
9055
10071
  where?: InputMaybe<PositionTotalCollateralAmountWhereInput>;
9056
10072
  }
@@ -9129,6 +10145,45 @@ export interface QueryreferralCodeOwnersConnectionArgs {
9129
10145
  orderBy: Array<ReferralCodeOwnerOrderByInput>;
9130
10146
  where?: InputMaybe<ReferralCodeOwnerWhereInput>;
9131
10147
  }
10148
+ export interface QueryreferralCodeUpdatesArgs {
10149
+ affiliateRewardsUsdMin: Scalars["String"]["input"];
10150
+ codeTiersAsc: Array<CodeTierRuleInput>;
10151
+ ignoreCodes?: InputMaybe<Array<Scalars["String"]["input"]>>;
10152
+ ignoreTiers?: InputMaybe<Array<Scalars["String"]["input"]>>;
10153
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10154
+ timeSinceTraderCodeAssigning: Scalars["Float"]["input"];
10155
+ vipTiersAsc: Array<VipTierInput>;
10156
+ }
10157
+ export interface QueryreferralTierByIdArgs {
10158
+ id: Scalars["String"]["input"];
10159
+ }
10160
+ export interface QueryreferralTiersArgs {
10161
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10162
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10163
+ orderBy?: InputMaybe<Array<ReferralTierOrderByInput>>;
10164
+ where?: InputMaybe<ReferralTierWhereInput>;
10165
+ }
10166
+ export interface QueryreferralTiersConnectionArgs {
10167
+ after?: InputMaybe<Scalars["String"]["input"]>;
10168
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10169
+ orderBy: Array<ReferralTierOrderByInput>;
10170
+ where?: InputMaybe<ReferralTierWhereInput>;
10171
+ }
10172
+ export interface QueryreferrerTierByIdArgs {
10173
+ id: Scalars["String"]["input"];
10174
+ }
10175
+ export interface QueryreferrerTiersArgs {
10176
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10177
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10178
+ orderBy?: InputMaybe<Array<ReferrerTierOrderByInput>>;
10179
+ where?: InputMaybe<ReferrerTierWhereInput>;
10180
+ }
10181
+ export interface QueryreferrerTiersConnectionArgs {
10182
+ after?: InputMaybe<Scalars["String"]["input"]>;
10183
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10184
+ orderBy: Array<ReferrerTierOrderByInput>;
10185
+ where?: InputMaybe<ReferrerTierWhereInput>;
10186
+ }
9132
10187
  export interface QuerystakingPowerByIdArgs {
9133
10188
  id: Scalars["String"]["input"];
9134
10189
  }
@@ -9219,6 +10274,21 @@ export interface QuerytradeActionsConnectionArgs {
9219
10274
  orderBy: Array<TradeActionOrderByInput>;
9220
10275
  where?: InputMaybe<TradeActionWhereInput>;
9221
10276
  }
10277
+ export interface QuerytraderFirstReferralByIdArgs {
10278
+ id: Scalars["String"]["input"];
10279
+ }
10280
+ export interface QuerytraderFirstReferralsArgs {
10281
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10282
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10283
+ orderBy?: InputMaybe<Array<TraderFirstReferralOrderByInput>>;
10284
+ where?: InputMaybe<TraderFirstReferralWhereInput>;
10285
+ }
10286
+ export interface QuerytraderFirstReferralsConnectionArgs {
10287
+ after?: InputMaybe<Scalars["String"]["input"]>;
10288
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10289
+ orderBy: Array<TraderFirstReferralOrderByInput>;
10290
+ where?: InputMaybe<TraderFirstReferralWhereInput>;
10291
+ }
9222
10292
  export interface QuerytraderReferralByIdArgs {
9223
10293
  id: Scalars["String"]["input"];
9224
10294
  }
@@ -9391,6 +10461,154 @@ export interface ReferralCodeOwnersConnection {
9391
10461
  pageInfo: PageInfo;
9392
10462
  totalCount: Scalars["Int"]["output"];
9393
10463
  }
10464
+ export interface ReferralCodeUpdatesResponse {
10465
+ __typename?: "ReferralCodeUpdatesResponse";
10466
+ updates: Array<CodeUpdateGroup>;
10467
+ }
10468
+ export interface ReferralTier {
10469
+ __typename?: "ReferralTier";
10470
+ discountShare: Scalars["BigInt"]["output"];
10471
+ id: Scalars["String"]["output"];
10472
+ totalRebate: Scalars["BigInt"]["output"];
10473
+ }
10474
+ export interface ReferralTierEdge {
10475
+ __typename?: "ReferralTierEdge";
10476
+ cursor: Scalars["String"]["output"];
10477
+ node: ReferralTier;
10478
+ }
10479
+ export declare enum ReferralTierOrderByInput {
10480
+ discountShare_ASC = "discountShare_ASC",
10481
+ discountShare_ASC_NULLS_FIRST = "discountShare_ASC_NULLS_FIRST",
10482
+ discountShare_ASC_NULLS_LAST = "discountShare_ASC_NULLS_LAST",
10483
+ discountShare_DESC = "discountShare_DESC",
10484
+ discountShare_DESC_NULLS_FIRST = "discountShare_DESC_NULLS_FIRST",
10485
+ discountShare_DESC_NULLS_LAST = "discountShare_DESC_NULLS_LAST",
10486
+ id_ASC = "id_ASC",
10487
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
10488
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
10489
+ id_DESC = "id_DESC",
10490
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
10491
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
10492
+ totalRebate_ASC = "totalRebate_ASC",
10493
+ totalRebate_ASC_NULLS_FIRST = "totalRebate_ASC_NULLS_FIRST",
10494
+ totalRebate_ASC_NULLS_LAST = "totalRebate_ASC_NULLS_LAST",
10495
+ totalRebate_DESC = "totalRebate_DESC",
10496
+ totalRebate_DESC_NULLS_FIRST = "totalRebate_DESC_NULLS_FIRST",
10497
+ totalRebate_DESC_NULLS_LAST = "totalRebate_DESC_NULLS_LAST"
10498
+ }
10499
+ export interface ReferralTierWhereInput {
10500
+ AND?: InputMaybe<Array<ReferralTierWhereInput>>;
10501
+ OR?: InputMaybe<Array<ReferralTierWhereInput>>;
10502
+ discountShare_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10503
+ discountShare_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
10504
+ discountShare_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
10505
+ discountShare_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10506
+ discountShare_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10507
+ discountShare_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
10508
+ discountShare_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
10509
+ discountShare_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10510
+ discountShare_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10511
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
10512
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10513
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10514
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
10515
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
10516
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
10517
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10518
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10519
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
10520
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
10521
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
10522
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10523
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10524
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
10525
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10526
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10527
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10528
+ totalRebate_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10529
+ totalRebate_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
10530
+ totalRebate_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
10531
+ totalRebate_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10532
+ totalRebate_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10533
+ totalRebate_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
10534
+ totalRebate_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
10535
+ totalRebate_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10536
+ totalRebate_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10537
+ }
10538
+ export interface ReferralTiersConnection {
10539
+ __typename?: "ReferralTiersConnection";
10540
+ edges: Array<ReferralTierEdge>;
10541
+ pageInfo: PageInfo;
10542
+ totalCount: Scalars["Int"]["output"];
10543
+ }
10544
+ export interface ReferrerTier {
10545
+ __typename?: "ReferrerTier";
10546
+ id: Scalars["String"]["output"];
10547
+ tierId: Scalars["String"]["output"];
10548
+ }
10549
+ export interface ReferrerTierEdge {
10550
+ __typename?: "ReferrerTierEdge";
10551
+ cursor: Scalars["String"]["output"];
10552
+ node: ReferrerTier;
10553
+ }
10554
+ export declare enum ReferrerTierOrderByInput {
10555
+ id_ASC = "id_ASC",
10556
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
10557
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
10558
+ id_DESC = "id_DESC",
10559
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
10560
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
10561
+ tierId_ASC = "tierId_ASC",
10562
+ tierId_ASC_NULLS_FIRST = "tierId_ASC_NULLS_FIRST",
10563
+ tierId_ASC_NULLS_LAST = "tierId_ASC_NULLS_LAST",
10564
+ tierId_DESC = "tierId_DESC",
10565
+ tierId_DESC_NULLS_FIRST = "tierId_DESC_NULLS_FIRST",
10566
+ tierId_DESC_NULLS_LAST = "tierId_DESC_NULLS_LAST"
10567
+ }
10568
+ export interface ReferrerTierWhereInput {
10569
+ AND?: InputMaybe<Array<ReferrerTierWhereInput>>;
10570
+ OR?: InputMaybe<Array<ReferrerTierWhereInput>>;
10571
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
10572
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10573
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10574
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
10575
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
10576
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
10577
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10578
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10579
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
10580
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
10581
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
10582
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10583
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10584
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
10585
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10586
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10587
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10588
+ tierId_contains?: InputMaybe<Scalars["String"]["input"]>;
10589
+ tierId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10590
+ tierId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10591
+ tierId_eq?: InputMaybe<Scalars["String"]["input"]>;
10592
+ tierId_gt?: InputMaybe<Scalars["String"]["input"]>;
10593
+ tierId_gte?: InputMaybe<Scalars["String"]["input"]>;
10594
+ tierId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10595
+ tierId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10596
+ tierId_lt?: InputMaybe<Scalars["String"]["input"]>;
10597
+ tierId_lte?: InputMaybe<Scalars["String"]["input"]>;
10598
+ tierId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
10599
+ tierId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10600
+ tierId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10601
+ tierId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
10602
+ tierId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10603
+ tierId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10604
+ tierId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10605
+ }
10606
+ export interface ReferrerTiersConnection {
10607
+ __typename?: "ReferrerTiersConnection";
10608
+ edges: Array<ReferrerTierEdge>;
10609
+ pageInfo: PageInfo;
10610
+ totalCount: Scalars["Int"]["output"];
10611
+ }
9394
10612
  export interface SquidStatus {
9395
10613
  __typename?: "SquidStatus";
9396
10614
  finalizedHeight: Scalars["Int"]["output"];
@@ -10295,12 +11513,17 @@ export interface TradeAction {
10295
11513
  isLong?: Maybe<Scalars["Boolean"]["output"]>;
10296
11514
  liquidationFeeAmount?: Maybe<Scalars["BigInt"]["output"]>;
10297
11515
  marketAddress?: Maybe<Scalars["String"]["output"]>;
11516
+ minCollateralFactorForLiquidation?: Maybe<Scalars["BigInt"]["output"]>;
10298
11517
  minOutputAmount?: Maybe<Scalars["BigInt"]["output"]>;
10299
11518
  numberOfParts?: Maybe<Scalars["Int"]["output"]>;
10300
11519
  orderKey: Scalars["String"]["output"];
10301
11520
  orderType: Scalars["Int"]["output"];
10302
11521
  pnlUsd?: Maybe<Scalars["BigInt"]["output"]>;
10303
11522
  positionFeeAmount?: Maybe<Scalars["BigInt"]["output"]>;
11523
+ positionKey?: Maybe<Scalars["String"]["output"]>;
11524
+ positionLifecycleId?: Maybe<Scalars["String"]["output"]>;
11525
+ positionSizeInTokens?: Maybe<Scalars["BigInt"]["output"]>;
11526
+ positionSizeInUsd?: Maybe<Scalars["BigInt"]["output"]>;
10304
11527
  priceImpactAmount?: Maybe<Scalars["BigInt"]["output"]>;
10305
11528
  priceImpactDiffUsd?: Maybe<Scalars["BigInt"]["output"]>;
10306
11529
  priceImpactUsd?: Maybe<Scalars["BigInt"]["output"]>;
@@ -10320,6 +11543,7 @@ export interface TradeAction {
10320
11543
  transactionHash: Scalars["String"]["output"];
10321
11544
  triggerPrice?: Maybe<Scalars["BigInt"]["output"]>;
10322
11545
  twapGroupId?: Maybe<Scalars["String"]["output"]>;
11546
+ uiFeeFactor?: Maybe<Scalars["BigInt"]["output"]>;
10323
11547
  uiFeeReceiver: Scalars["String"]["output"];
10324
11548
  }
10325
11549
  export interface TradeActionEdge {
@@ -10454,6 +11678,12 @@ export declare enum TradeActionOrderByInput {
10454
11678
  marketAddress_DESC = "marketAddress_DESC",
10455
11679
  marketAddress_DESC_NULLS_FIRST = "marketAddress_DESC_NULLS_FIRST",
10456
11680
  marketAddress_DESC_NULLS_LAST = "marketAddress_DESC_NULLS_LAST",
11681
+ minCollateralFactorForLiquidation_ASC = "minCollateralFactorForLiquidation_ASC",
11682
+ minCollateralFactorForLiquidation_ASC_NULLS_FIRST = "minCollateralFactorForLiquidation_ASC_NULLS_FIRST",
11683
+ minCollateralFactorForLiquidation_ASC_NULLS_LAST = "minCollateralFactorForLiquidation_ASC_NULLS_LAST",
11684
+ minCollateralFactorForLiquidation_DESC = "minCollateralFactorForLiquidation_DESC",
11685
+ minCollateralFactorForLiquidation_DESC_NULLS_FIRST = "minCollateralFactorForLiquidation_DESC_NULLS_FIRST",
11686
+ minCollateralFactorForLiquidation_DESC_NULLS_LAST = "minCollateralFactorForLiquidation_DESC_NULLS_LAST",
10457
11687
  minOutputAmount_ASC = "minOutputAmount_ASC",
10458
11688
  minOutputAmount_ASC_NULLS_FIRST = "minOutputAmount_ASC_NULLS_FIRST",
10459
11689
  minOutputAmount_ASC_NULLS_LAST = "minOutputAmount_ASC_NULLS_LAST",
@@ -10490,6 +11720,30 @@ export declare enum TradeActionOrderByInput {
10490
11720
  positionFeeAmount_DESC = "positionFeeAmount_DESC",
10491
11721
  positionFeeAmount_DESC_NULLS_FIRST = "positionFeeAmount_DESC_NULLS_FIRST",
10492
11722
  positionFeeAmount_DESC_NULLS_LAST = "positionFeeAmount_DESC_NULLS_LAST",
11723
+ positionKey_ASC = "positionKey_ASC",
11724
+ positionKey_ASC_NULLS_FIRST = "positionKey_ASC_NULLS_FIRST",
11725
+ positionKey_ASC_NULLS_LAST = "positionKey_ASC_NULLS_LAST",
11726
+ positionKey_DESC = "positionKey_DESC",
11727
+ positionKey_DESC_NULLS_FIRST = "positionKey_DESC_NULLS_FIRST",
11728
+ positionKey_DESC_NULLS_LAST = "positionKey_DESC_NULLS_LAST",
11729
+ positionLifecycleId_ASC = "positionLifecycleId_ASC",
11730
+ positionLifecycleId_ASC_NULLS_FIRST = "positionLifecycleId_ASC_NULLS_FIRST",
11731
+ positionLifecycleId_ASC_NULLS_LAST = "positionLifecycleId_ASC_NULLS_LAST",
11732
+ positionLifecycleId_DESC = "positionLifecycleId_DESC",
11733
+ positionLifecycleId_DESC_NULLS_FIRST = "positionLifecycleId_DESC_NULLS_FIRST",
11734
+ positionLifecycleId_DESC_NULLS_LAST = "positionLifecycleId_DESC_NULLS_LAST",
11735
+ positionSizeInTokens_ASC = "positionSizeInTokens_ASC",
11736
+ positionSizeInTokens_ASC_NULLS_FIRST = "positionSizeInTokens_ASC_NULLS_FIRST",
11737
+ positionSizeInTokens_ASC_NULLS_LAST = "positionSizeInTokens_ASC_NULLS_LAST",
11738
+ positionSizeInTokens_DESC = "positionSizeInTokens_DESC",
11739
+ positionSizeInTokens_DESC_NULLS_FIRST = "positionSizeInTokens_DESC_NULLS_FIRST",
11740
+ positionSizeInTokens_DESC_NULLS_LAST = "positionSizeInTokens_DESC_NULLS_LAST",
11741
+ positionSizeInUsd_ASC = "positionSizeInUsd_ASC",
11742
+ positionSizeInUsd_ASC_NULLS_FIRST = "positionSizeInUsd_ASC_NULLS_FIRST",
11743
+ positionSizeInUsd_ASC_NULLS_LAST = "positionSizeInUsd_ASC_NULLS_LAST",
11744
+ positionSizeInUsd_DESC = "positionSizeInUsd_DESC",
11745
+ positionSizeInUsd_DESC_NULLS_FIRST = "positionSizeInUsd_DESC_NULLS_FIRST",
11746
+ positionSizeInUsd_DESC_NULLS_LAST = "positionSizeInUsd_DESC_NULLS_LAST",
10493
11747
  priceImpactAmount_ASC = "priceImpactAmount_ASC",
10494
11748
  priceImpactAmount_ASC_NULLS_FIRST = "priceImpactAmount_ASC_NULLS_FIRST",
10495
11749
  priceImpactAmount_ASC_NULLS_LAST = "priceImpactAmount_ASC_NULLS_LAST",
@@ -10598,6 +11852,12 @@ export declare enum TradeActionOrderByInput {
10598
11852
  twapGroupId_DESC = "twapGroupId_DESC",
10599
11853
  twapGroupId_DESC_NULLS_FIRST = "twapGroupId_DESC_NULLS_FIRST",
10600
11854
  twapGroupId_DESC_NULLS_LAST = "twapGroupId_DESC_NULLS_LAST",
11855
+ uiFeeFactor_ASC = "uiFeeFactor_ASC",
11856
+ uiFeeFactor_ASC_NULLS_FIRST = "uiFeeFactor_ASC_NULLS_FIRST",
11857
+ uiFeeFactor_ASC_NULLS_LAST = "uiFeeFactor_ASC_NULLS_LAST",
11858
+ uiFeeFactor_DESC = "uiFeeFactor_DESC",
11859
+ uiFeeFactor_DESC_NULLS_FIRST = "uiFeeFactor_DESC_NULLS_FIRST",
11860
+ uiFeeFactor_DESC_NULLS_LAST = "uiFeeFactor_DESC_NULLS_LAST",
10601
11861
  uiFeeReceiver_ASC = "uiFeeReceiver_ASC",
10602
11862
  uiFeeReceiver_ASC_NULLS_FIRST = "uiFeeReceiver_ASC_NULLS_FIRST",
10603
11863
  uiFeeReceiver_ASC_NULLS_LAST = "uiFeeReceiver_ASC_NULLS_LAST",
@@ -10831,6 +12091,15 @@ export interface TradeActionWhereInput {
10831
12091
  marketAddress_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10832
12092
  marketAddress_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10833
12093
  marketAddress_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12094
+ minCollateralFactorForLiquidation_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12095
+ minCollateralFactorForLiquidation_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
12096
+ minCollateralFactorForLiquidation_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
12097
+ minCollateralFactorForLiquidation_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12098
+ minCollateralFactorForLiquidation_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12099
+ minCollateralFactorForLiquidation_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
12100
+ minCollateralFactorForLiquidation_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
12101
+ minCollateralFactorForLiquidation_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12102
+ minCollateralFactorForLiquidation_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10834
12103
  minOutputAmount_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10835
12104
  minOutputAmount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
10836
12105
  minOutputAmount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -10893,6 +12162,58 @@ export interface TradeActionWhereInput {
10893
12162
  positionFeeAmount_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
10894
12163
  positionFeeAmount_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10895
12164
  positionFeeAmount_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12165
+ positionKey_contains?: InputMaybe<Scalars["String"]["input"]>;
12166
+ positionKey_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12167
+ positionKey_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12168
+ positionKey_eq?: InputMaybe<Scalars["String"]["input"]>;
12169
+ positionKey_gt?: InputMaybe<Scalars["String"]["input"]>;
12170
+ positionKey_gte?: InputMaybe<Scalars["String"]["input"]>;
12171
+ positionKey_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12172
+ positionKey_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12173
+ positionKey_lt?: InputMaybe<Scalars["String"]["input"]>;
12174
+ positionKey_lte?: InputMaybe<Scalars["String"]["input"]>;
12175
+ positionKey_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12176
+ positionKey_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12177
+ positionKey_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12178
+ positionKey_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12179
+ positionKey_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12180
+ positionKey_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12181
+ positionKey_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12182
+ positionLifecycleId_contains?: InputMaybe<Scalars["String"]["input"]>;
12183
+ positionLifecycleId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12184
+ positionLifecycleId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12185
+ positionLifecycleId_eq?: InputMaybe<Scalars["String"]["input"]>;
12186
+ positionLifecycleId_gt?: InputMaybe<Scalars["String"]["input"]>;
12187
+ positionLifecycleId_gte?: InputMaybe<Scalars["String"]["input"]>;
12188
+ positionLifecycleId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12189
+ positionLifecycleId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12190
+ positionLifecycleId_lt?: InputMaybe<Scalars["String"]["input"]>;
12191
+ positionLifecycleId_lte?: InputMaybe<Scalars["String"]["input"]>;
12192
+ positionLifecycleId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12193
+ positionLifecycleId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12194
+ positionLifecycleId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12195
+ positionLifecycleId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12196
+ positionLifecycleId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12197
+ positionLifecycleId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12198
+ positionLifecycleId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12199
+ positionSizeInTokens_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12200
+ positionSizeInTokens_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
12201
+ positionSizeInTokens_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
12202
+ positionSizeInTokens_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12203
+ positionSizeInTokens_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12204
+ positionSizeInTokens_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
12205
+ positionSizeInTokens_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
12206
+ positionSizeInTokens_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12207
+ positionSizeInTokens_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12208
+ positionSizeInUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12209
+ positionSizeInUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
12210
+ positionSizeInUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
12211
+ positionSizeInUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12212
+ positionSizeInUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12213
+ positionSizeInUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
12214
+ positionSizeInUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
12215
+ positionSizeInUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12216
+ positionSizeInUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10896
12217
  priceImpactAmount_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10897
12218
  priceImpactAmount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
10898
12219
  priceImpactAmount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -11085,6 +12406,15 @@ export interface TradeActionWhereInput {
11085
12406
  twapGroupId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11086
12407
  twapGroupId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11087
12408
  twapGroupId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12409
+ uiFeeFactor_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12410
+ uiFeeFactor_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
12411
+ uiFeeFactor_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
12412
+ uiFeeFactor_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12413
+ uiFeeFactor_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12414
+ uiFeeFactor_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
12415
+ uiFeeFactor_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
12416
+ uiFeeFactor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12417
+ uiFeeFactor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11088
12418
  uiFeeReceiver_contains?: InputMaybe<Scalars["String"]["input"]>;
11089
12419
  uiFeeReceiver_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11090
12420
  uiFeeReceiver_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -11109,6 +12439,114 @@ export interface TradeActionsConnection {
11109
12439
  pageInfo: PageInfo;
11110
12440
  totalCount: Scalars["Int"]["output"];
11111
12441
  }
12442
+ export interface TraderFirstReferral {
12443
+ __typename?: "TraderFirstReferral";
12444
+ id: Scalars["String"]["output"];
12445
+ referralCode: Scalars["String"]["output"];
12446
+ timestamp: Scalars["Int"]["output"];
12447
+ trader: Scalars["String"]["output"];
12448
+ }
12449
+ export interface TraderFirstReferralEdge {
12450
+ __typename?: "TraderFirstReferralEdge";
12451
+ cursor: Scalars["String"]["output"];
12452
+ node: TraderFirstReferral;
12453
+ }
12454
+ export declare enum TraderFirstReferralOrderByInput {
12455
+ id_ASC = "id_ASC",
12456
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
12457
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
12458
+ id_DESC = "id_DESC",
12459
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
12460
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
12461
+ referralCode_ASC = "referralCode_ASC",
12462
+ referralCode_ASC_NULLS_FIRST = "referralCode_ASC_NULLS_FIRST",
12463
+ referralCode_ASC_NULLS_LAST = "referralCode_ASC_NULLS_LAST",
12464
+ referralCode_DESC = "referralCode_DESC",
12465
+ referralCode_DESC_NULLS_FIRST = "referralCode_DESC_NULLS_FIRST",
12466
+ referralCode_DESC_NULLS_LAST = "referralCode_DESC_NULLS_LAST",
12467
+ timestamp_ASC = "timestamp_ASC",
12468
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
12469
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
12470
+ timestamp_DESC = "timestamp_DESC",
12471
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
12472
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
12473
+ trader_ASC = "trader_ASC",
12474
+ trader_ASC_NULLS_FIRST = "trader_ASC_NULLS_FIRST",
12475
+ trader_ASC_NULLS_LAST = "trader_ASC_NULLS_LAST",
12476
+ trader_DESC = "trader_DESC",
12477
+ trader_DESC_NULLS_FIRST = "trader_DESC_NULLS_FIRST",
12478
+ trader_DESC_NULLS_LAST = "trader_DESC_NULLS_LAST"
12479
+ }
12480
+ export interface TraderFirstReferralWhereInput {
12481
+ AND?: InputMaybe<Array<TraderFirstReferralWhereInput>>;
12482
+ OR?: InputMaybe<Array<TraderFirstReferralWhereInput>>;
12483
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
12484
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12485
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12486
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
12487
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
12488
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
12489
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12490
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12491
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
12492
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
12493
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12494
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12495
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12496
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12497
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12498
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12499
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12500
+ referralCode_contains?: InputMaybe<Scalars["String"]["input"]>;
12501
+ referralCode_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12502
+ referralCode_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12503
+ referralCode_eq?: InputMaybe<Scalars["String"]["input"]>;
12504
+ referralCode_gt?: InputMaybe<Scalars["String"]["input"]>;
12505
+ referralCode_gte?: InputMaybe<Scalars["String"]["input"]>;
12506
+ referralCode_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12507
+ referralCode_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12508
+ referralCode_lt?: InputMaybe<Scalars["String"]["input"]>;
12509
+ referralCode_lte?: InputMaybe<Scalars["String"]["input"]>;
12510
+ referralCode_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12511
+ referralCode_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12512
+ referralCode_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12513
+ referralCode_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12514
+ referralCode_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12515
+ referralCode_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12516
+ referralCode_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12517
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
12518
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
12519
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
12520
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
12521
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12522
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
12523
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
12524
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
12525
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
12526
+ trader_contains?: InputMaybe<Scalars["String"]["input"]>;
12527
+ trader_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12528
+ trader_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12529
+ trader_eq?: InputMaybe<Scalars["String"]["input"]>;
12530
+ trader_gt?: InputMaybe<Scalars["String"]["input"]>;
12531
+ trader_gte?: InputMaybe<Scalars["String"]["input"]>;
12532
+ trader_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12533
+ trader_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12534
+ trader_lt?: InputMaybe<Scalars["String"]["input"]>;
12535
+ trader_lte?: InputMaybe<Scalars["String"]["input"]>;
12536
+ trader_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12537
+ trader_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12538
+ trader_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12539
+ trader_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12540
+ trader_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12541
+ trader_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12542
+ trader_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12543
+ }
12544
+ export interface TraderFirstReferralsConnection {
12545
+ __typename?: "TraderFirstReferralsConnection";
12546
+ edges: Array<TraderFirstReferralEdge>;
12547
+ pageInfo: PageInfo;
12548
+ totalCount: Scalars["Int"]["output"];
12549
+ }
11112
12550
  export interface TraderReferral {
11113
12551
  __typename?: "TraderReferral";
11114
12552
  affiliate?: Maybe<Scalars["String"]["output"]>;
@@ -11193,6 +12631,7 @@ export interface TraderReferralStatsWhereInput {
11193
12631
  }
11194
12632
  export interface TraderReferralTradeStatsByHour {
11195
12633
  __typename?: "TraderReferralTradeStatsByHour";
12634
+ affiliateRewardsUsd: Scalars["BigInt"]["output"];
11196
12635
  discountsUsd: Scalars["BigInt"]["output"];
11197
12636
  id: Scalars["String"]["output"];
11198
12637
  timestamp: Scalars["Int"]["output"];
@@ -11205,6 +12644,12 @@ export interface TraderReferralTradeStatsByHourEdge {
11205
12644
  node: TraderReferralTradeStatsByHour;
11206
12645
  }
11207
12646
  export declare enum TraderReferralTradeStatsByHourOrderByInput {
12647
+ affiliateRewardsUsd_ASC = "affiliateRewardsUsd_ASC",
12648
+ affiliateRewardsUsd_ASC_NULLS_FIRST = "affiliateRewardsUsd_ASC_NULLS_FIRST",
12649
+ affiliateRewardsUsd_ASC_NULLS_LAST = "affiliateRewardsUsd_ASC_NULLS_LAST",
12650
+ affiliateRewardsUsd_DESC = "affiliateRewardsUsd_DESC",
12651
+ affiliateRewardsUsd_DESC_NULLS_FIRST = "affiliateRewardsUsd_DESC_NULLS_FIRST",
12652
+ affiliateRewardsUsd_DESC_NULLS_LAST = "affiliateRewardsUsd_DESC_NULLS_LAST",
11208
12653
  discountsUsd_ASC = "discountsUsd_ASC",
11209
12654
  discountsUsd_ASC_NULLS_FIRST = "discountsUsd_ASC_NULLS_FIRST",
11210
12655
  discountsUsd_ASC_NULLS_LAST = "discountsUsd_ASC_NULLS_LAST",
@@ -11239,6 +12684,15 @@ export declare enum TraderReferralTradeStatsByHourOrderByInput {
11239
12684
  export interface TraderReferralTradeStatsByHourWhereInput {
11240
12685
  AND?: InputMaybe<Array<TraderReferralTradeStatsByHourWhereInput>>;
11241
12686
  OR?: InputMaybe<Array<TraderReferralTradeStatsByHourWhereInput>>;
12687
+ affiliateRewardsUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12688
+ affiliateRewardsUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
12689
+ affiliateRewardsUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
12690
+ affiliateRewardsUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12691
+ affiliateRewardsUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12692
+ affiliateRewardsUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
12693
+ affiliateRewardsUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
12694
+ affiliateRewardsUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12695
+ affiliateRewardsUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11242
12696
  discountsUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
11243
12697
  discountsUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
11244
12698
  discountsUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -11403,6 +12857,10 @@ export interface TraderReferralsConnection {
11403
12857
  pageInfo: PageInfo;
11404
12858
  totalCount: Scalars["Int"]["output"];
11405
12859
  }
12860
+ export interface VipTierInput {
12861
+ shouldFallbackToCode: Scalars["String"]["input"];
12862
+ withVolumeMoreThan: Scalars["String"]["input"];
12863
+ }
11406
12864
  export interface VolumeInfo {
11407
12865
  __typename?: "VolumeInfo";
11408
12866
  depositVolumeUsd: Scalars["BigInt"]["output"];