@gmx-io/sdk 2.0.0-alpha-1 → 2.1.1

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 (853) hide show
  1. package/README.md +48 -0
  2. package/build/cjs/scripts/generate-platform-tokens.js +200 -0
  3. package/build/cjs/scripts/generate-synthetics-abis.js +181 -0
  4. package/build/cjs/scripts/prebuild/index.js +6 -1
  5. package/build/cjs/scripts/prebuild/prebuildKinkModelMarketRatesKeys.js +2 -28
  6. package/build/cjs/scripts/prebuild/prebuildMarketConfigKeys.js +2 -2
  7. package/build/cjs/scripts/prebuild/prebuildMarketValuesKeys.js +2 -2
  8. package/build/cjs/scripts/subsquid-codegen.js +26 -0
  9. package/build/cjs/src/abis/AbstractSubaccountApprovalNonceable.js +23 -0
  10. package/build/cjs/src/abis/ArbSys.js +11 -0
  11. package/build/cjs/src/abis/CustomErrors.js +198 -88
  12. package/build/cjs/src/abis/ExchangeRouter.js +155 -272
  13. package/build/cjs/src/abis/GelatoRelayRouter.js +331 -0
  14. package/build/cjs/src/abis/SimulationRouter.js +583 -0
  15. package/build/cjs/src/abis/SubaccountGelatoRelayRouter.js +393 -0
  16. package/build/cjs/src/abis/SyntheticsReader.js +40 -0
  17. package/build/cjs/src/abis/index.js +6 -24
  18. package/build/cjs/src/{utils → clients/v1}/callContract.js +4 -6
  19. package/build/cjs/src/{index.js → clients/v1/index.js} +4 -4
  20. package/build/cjs/src/{modules → clients/v1/modules}/accounts/accounts.js +1 -1
  21. package/build/cjs/src/{modules → clients/v1/modules}/accounts/accounts.spec.js +1 -1
  22. package/build/cjs/src/clients/v1/modules/markets/index.js +231 -0
  23. package/build/cjs/src/{modules → clients/v1/modules}/markets/markets.spec.js +3 -3
  24. package/build/cjs/src/{modules → clients/v1/modules}/oracle.js +1 -1
  25. package/build/cjs/src/{modules → clients/v1/modules}/orders/helpers.js +9 -9
  26. package/build/cjs/src/{modules → clients/v1/modules}/orders/helpers.spec.js +5 -5
  27. package/build/cjs/src/{modules → clients/v1/modules}/orders/orders.js +14 -14
  28. package/build/cjs/src/{modules → clients/v1/modules}/orders/orders.spec.js +1 -1
  29. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.js +2 -2
  30. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.js +7 -7
  31. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.js +11 -11
  32. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.js +10 -10
  33. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.js +2 -2
  34. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.js +3 -3
  35. package/build/cjs/src/{modules → clients/v1/modules}/orders/utils.js +9 -8
  36. package/build/cjs/src/clients/v1/modules/orders/utils.spec.js +66 -0
  37. package/build/cjs/src/{modules → clients/v1/modules}/positions/positions.js +17 -167
  38. package/build/cjs/src/{modules → clients/v1/modules}/positions/positions.spec.js +2 -2
  39. package/build/cjs/src/{modules → clients/v1/modules}/tokens/tokens.js +3 -3
  40. package/build/cjs/src/{modules → clients/v1/modules}/tokens/tokens.spec.js +3 -3
  41. package/build/cjs/src/{modules → clients/v1/modules}/trades/trades.js +30 -24
  42. package/build/cjs/src/{modules → clients/v1/modules}/trades/trades.spec.js +1 -1
  43. package/build/cjs/src/{modules → clients/v1/modules}/utils/utils.js +8 -8
  44. package/build/cjs/src/{utils → clients/v1}/multicall.js +2 -2
  45. package/build/cjs/src/{utils → clients/v1}/simulateExecuteOrder.js +38 -59
  46. package/build/cjs/src/{utils → clients/v1}/testUtil.js +2 -2
  47. package/build/cjs/src/clients/v2/__tests__/data.spec.js +85 -0
  48. package/build/cjs/src/clients/v2/__tests__/decrease.spec.js +498 -0
  49. package/build/cjs/src/clients/v2/__tests__/editCancel.spec.js +262 -0
  50. package/build/cjs/src/clients/v2/__tests__/errors.spec.js +217 -0
  51. package/build/cjs/src/clients/v2/__tests__/errorsLifecycle.spec.js +53 -0
  52. package/build/cjs/src/clients/v2/__tests__/globalCleanup.js +80 -0
  53. package/build/cjs/src/clients/v2/__tests__/increase.spec.js +779 -0
  54. package/build/cjs/src/clients/v2/__tests__/multichain.spec.js +114 -0
  55. package/build/cjs/src/clients/v2/__tests__/multichainTestUtil.js +107 -0
  56. package/build/cjs/src/clients/v2/__tests__/prepareErrors.spec.js +167 -0
  57. package/build/cjs/src/clients/v2/__tests__/setupAllowance.js +32 -0
  58. package/build/cjs/src/clients/v2/__tests__/subaccount.spec.js +237 -0
  59. package/build/cjs/src/clients/v2/__tests__/subaccountLifecycle.spec.js +108 -0
  60. package/build/cjs/src/clients/v2/__tests__/swap.spec.js +192 -0
  61. package/build/cjs/src/clients/v2/__tests__/testUtil.js +254 -0
  62. package/build/cjs/src/clients/v2/__tests__/tradingCapacity.spec.js +371 -0
  63. package/build/cjs/src/clients/v2/index.js +277 -0
  64. package/build/cjs/src/codegen/platformTokens.json +134 -0
  65. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedKinkModelMarketRatesKeys.json +176 -104
  66. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedMarketConfigKeys.json +3537 -1055
  67. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedMarketValuesKeys.json +330 -195
  68. package/build/cjs/src/codegen/prebuilt/index.js +16 -0
  69. package/build/cjs/src/{types → codegen}/subsquid.js +968 -457
  70. package/build/cjs/src/configs/__tests__/markets.spec.js +4 -0
  71. package/build/cjs/src/configs/__tests__/multichainTokens.spec.js +54 -0
  72. package/build/cjs/src/configs/__tests__/tokens.spec.js +1 -1
  73. package/build/cjs/src/configs/api.js +57 -0
  74. package/build/cjs/src/configs/batch.js +13 -1
  75. package/build/cjs/src/configs/chainIds.js +2 -2
  76. package/build/cjs/src/configs/chains.js +78 -34
  77. package/build/cjs/src/configs/contracts.js +99 -90
  78. package/build/cjs/src/configs/dataStore.js +33 -8
  79. package/build/cjs/src/configs/express.js +3 -11
  80. package/build/cjs/src/configs/fees.js +21 -0
  81. package/build/cjs/src/configs/gasLimits.js +5 -5
  82. package/build/cjs/src/configs/markets.js +159 -93
  83. package/build/cjs/src/configs/multichain.js +43 -18
  84. package/build/cjs/src/configs/multichainTokens.js +298 -0
  85. package/build/cjs/src/configs/oracleKeeper.js +2 -2
  86. package/build/cjs/src/configs/tokens.js +245 -268
  87. package/build/cjs/src/test/fixtures/arbitrumMarkets.json +1138 -0
  88. package/build/cjs/src/test/fixtures/arbitrumTickers.json +1002 -0
  89. package/build/cjs/src/test/fixtures/arbitrumTokens.json +136 -0
  90. package/build/cjs/src/test/mock.js +18 -123
  91. package/build/cjs/src/test/mockCrossFetch.js +28 -0
  92. package/build/cjs/src/utils/24h/index.js +17 -0
  93. package/build/cjs/src/utils/LruCache/index.js +17 -0
  94. package/build/cjs/src/utils/__tests__/fees.spec.js +302 -2
  95. package/build/cjs/src/utils/__tests__/markets.spec.js +411 -3
  96. package/build/cjs/src/utils/__tests__/marketsRisk.spec.js +80 -0
  97. package/build/cjs/src/utils/__tests__/numbers.spec.js +159 -1
  98. package/build/cjs/src/utils/__tests__/objects.spec.js +16 -0
  99. package/build/cjs/src/utils/__tests__/orderTransactions/batchUtils.spec.js +48 -3
  100. package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +40 -55
  101. package/build/cjs/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +5 -5
  102. package/build/cjs/src/utils/__tests__/orderTransactions/externalCalls.spec.js +1 -1
  103. package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +35 -50
  104. package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +24 -32
  105. package/build/cjs/src/utils/__tests__/orderTransactions/updateOrder.spec.js +4 -4
  106. package/build/cjs/src/utils/__tests__/parseError.spec.js +63 -0
  107. package/build/cjs/src/utils/__tests__/positionPnlCap.spec.js +105 -0
  108. package/build/cjs/src/utils/__tests__/positions.spec.js +336 -16
  109. package/build/cjs/src/utils/__tests__/prices.spec.js +115 -18
  110. package/build/cjs/src/utils/__tests__/tokens.spec.js +191 -4
  111. package/build/cjs/src/utils/__tests__/uiFeeReceiver.spec.js +186 -22
  112. package/build/cjs/src/utils/abort/index.js +17 -0
  113. package/build/cjs/src/utils/apy/api.js +11 -0
  114. package/build/cjs/src/utils/balances/api.js +84 -0
  115. package/build/cjs/src/utils/bigmath/index.js +17 -0
  116. package/build/cjs/src/utils/buildUrl/index.js +17 -0
  117. package/build/cjs/src/utils/buyback/api.js +7 -0
  118. package/build/cjs/src/utils/chains/index.js +17 -0
  119. package/build/cjs/src/utils/common/index.js +17 -0
  120. package/build/cjs/src/utils/{common.js → common/utils.js} +1 -2
  121. package/build/cjs/src/utils/errors/index.js +1 -0
  122. package/build/cjs/src/utils/errors/isIgnoredEstimateGasError.js +23 -0
  123. package/build/cjs/src/utils/errors/parseError.js +82 -25
  124. package/build/cjs/src/utils/errors/transactionsErrors.js +34 -0
  125. package/build/cjs/src/utils/express/index.js +19 -0
  126. package/build/cjs/src/utils/express/relayStatus.js +11 -0
  127. package/build/cjs/src/utils/express/utils/batchOrderUtils.js +217 -0
  128. package/build/cjs/src/utils/express/utils/bridgeOutUtils.js +85 -0
  129. package/build/cjs/src/utils/express/utils/estimateExpressParams.js +246 -0
  130. package/build/cjs/src/utils/express/utils/estimateExpressParams.spec.js +81 -0
  131. package/build/cjs/src/utils/express/utils/expressParamsUtils.js +26 -0
  132. package/build/cjs/src/utils/express/utils/expressParamsUtils.spec.js +27 -0
  133. package/build/cjs/src/utils/express/utils/globalExpressParams.js +40 -0
  134. package/build/cjs/src/utils/express/utils/gmxRelayUtils.js +144 -0
  135. package/build/cjs/src/utils/express/utils/gmxRelayUtils.spec.js +163 -0
  136. package/build/cjs/src/utils/express/utils/index.js +26 -0
  137. package/build/cjs/src/utils/express/utils/oracleParamsUtils.js +46 -0
  138. package/build/cjs/src/utils/express/utils/referralUtils.js +35 -0
  139. package/build/cjs/src/utils/express/utils/relayParamsUtils.js +200 -0
  140. package/build/cjs/src/utils/fees/executionFee.js +13 -6
  141. package/build/cjs/src/utils/fees/index.js +16 -13
  142. package/build/cjs/src/utils/fees/priceImpact.js +73 -29
  143. package/build/cjs/src/utils/gas/applyBuffer.js +11 -0
  144. package/build/cjs/src/utils/gmxAccountApi/api.js +91 -0
  145. package/build/cjs/src/utils/gmxAccountApi/index.js +17 -0
  146. package/build/cjs/src/utils/graphqlFetcher/index.js +8 -0
  147. package/build/cjs/src/utils/hash/index.js +17 -0
  148. package/build/cjs/src/utils/{hash.js → hash/utils.js} +1 -1
  149. package/build/cjs/src/utils/http/__tests__/chainPins.spec.js +76 -0
  150. package/build/cjs/src/utils/http/chainPins.js +81 -0
  151. package/build/cjs/src/utils/http/http.js +109 -0
  152. package/build/cjs/src/utils/http/httpFallback.js +73 -0
  153. package/build/cjs/src/utils/http/validation.js +33 -0
  154. package/build/cjs/src/utils/indexers/index.js +17 -0
  155. package/build/cjs/src/utils/{indexers.js → indexers/utils.js} +1 -1
  156. package/build/cjs/src/utils/jitLiquidity/api.js +12 -0
  157. package/build/cjs/src/utils/jitLiquidity/index.js +19 -0
  158. package/build/cjs/src/utils/jitLiquidity/utils.js +108 -0
  159. package/build/cjs/src/utils/jitLiquidity/utils.spec.js +133 -0
  160. package/build/cjs/src/utils/markets/__tests__/api.spec.js +168 -0
  161. package/build/cjs/src/utils/markets/__tests__/mockMarkets.js +142 -0
  162. package/build/cjs/src/utils/markets/api.js +159 -0
  163. package/build/cjs/src/utils/{marketKeysAndConfigs.js → markets/hashKeys.js} +82 -9
  164. package/build/cjs/src/utils/markets/index.js +21 -0
  165. package/build/cjs/src/utils/markets/multicall.js +642 -0
  166. package/build/cjs/src/utils/markets/types.js +33 -0
  167. package/build/cjs/src/utils/markets/utils.js +568 -0
  168. package/build/cjs/src/utils/metrics/index.js +7 -0
  169. package/build/cjs/src/utils/multichain/__tests__/api.spec.js +132 -0
  170. package/build/cjs/src/utils/multichain/api.js +120 -0
  171. package/build/cjs/src/utils/multichain/codecs.js +49 -0
  172. package/build/cjs/src/utils/multichain/estimateComposeGas.js +51 -0
  173. package/build/cjs/src/utils/multichain/index.js +22 -0
  174. package/build/cjs/src/utils/multichain/quotes.js +22 -0
  175. package/build/cjs/src/utils/multichain/sendParams.js +70 -0
  176. package/build/cjs/src/utils/multichain/stateOverrides.js +14 -0
  177. package/build/cjs/src/utils/numbers/index.js +18 -0
  178. package/build/cjs/src/utils/numbers/prbMath.js +154 -0
  179. package/build/cjs/src/utils/{numbers.js → numbers/utils.js} +140 -49
  180. package/build/cjs/src/utils/objects/index.js +17 -0
  181. package/build/cjs/src/utils/{objects.js → objects/utils.js} +21 -1
  182. package/build/cjs/src/utils/orderTransactions/api.js +251 -0
  183. package/build/cjs/src/utils/orderTransactions/index.js +18 -0
  184. package/build/cjs/src/utils/orderTransactions/simulation.js +13 -0
  185. package/build/cjs/src/utils/{orderTransactions.js → orderTransactions/utils.js} +52 -33
  186. package/build/cjs/src/utils/orderTransactions/validateTypedData.js +96 -0
  187. package/build/cjs/src/utils/orders/api.js +13 -0
  188. package/build/cjs/src/utils/orders/index.js +19 -0
  189. package/build/cjs/src/utils/{orders.js → orders/utils.js} +22 -22
  190. package/build/cjs/src/utils/pairs/api.js +7 -0
  191. package/build/cjs/src/utils/performance/api.js +21 -0
  192. package/build/cjs/src/utils/performance/types.js +2 -0
  193. package/build/cjs/src/utils/positions/__tests__/api.spec.js +50 -0
  194. package/build/cjs/src/utils/positions/api.js +20 -0
  195. package/build/cjs/src/utils/positions/index.js +19 -0
  196. package/build/cjs/src/utils/positions/types.js +2 -0
  197. package/build/cjs/src/utils/positions/utils.js +503 -0
  198. package/build/cjs/src/utils/prices/api.js +14 -0
  199. package/build/cjs/src/utils/prices/index.js +17 -0
  200. package/build/cjs/src/utils/prices/types.js +2 -0
  201. package/build/cjs/src/utils/{prices.js → prices/utils.js} +49 -20
  202. package/build/cjs/src/utils/rates/api.js +13 -0
  203. package/build/cjs/src/utils/rates/types.js +2 -0
  204. package/build/cjs/src/utils/referrals/index.js +18 -0
  205. package/build/cjs/src/utils/rpc/createViemRpc.js +39 -0
  206. package/build/cjs/src/utils/rpc/index.js +5 -0
  207. package/build/cjs/src/utils/sidecarOrders/index.js +17 -0
  208. package/build/cjs/src/utils/sidecarOrders/types.js +2 -0
  209. package/build/cjs/src/utils/signer/index.js +5 -0
  210. package/build/cjs/src/utils/signer/privateKeySigner.js +42 -0
  211. package/build/cjs/src/utils/staking/api.js +11 -0
  212. package/build/cjs/src/utils/staking/types.js +2 -0
  213. package/build/cjs/src/utils/stats/__tests__/api.spec.js +100 -0
  214. package/build/cjs/src/utils/stats/api.js +32 -0
  215. package/build/cjs/src/utils/stats/types.js +4 -0
  216. package/build/cjs/src/utils/subaccount/api.js +22 -0
  217. package/build/cjs/src/utils/subaccount/generateSubaccount.js +37 -0
  218. package/build/cjs/src/utils/subaccount/getEmptySubaccountApproval.js +24 -0
  219. package/build/cjs/src/utils/subaccount/getSubaccountApprovalTypedData.js +46 -0
  220. package/build/cjs/src/utils/subaccount/hashSubaccountApproval.js +28 -0
  221. package/build/cjs/src/utils/subaccount/index.js +42 -0
  222. package/build/cjs/src/utils/subaccount/sdkClient.js +366 -0
  223. package/build/cjs/src/utils/subaccount/state.js +76 -0
  224. package/build/cjs/src/utils/subaccount/types.js +2 -0
  225. package/build/cjs/src/utils/swap/__tests__/mockRouting.spec.js +64 -15
  226. package/build/cjs/src/utils/swap/__tests__/swapRouting.spec.js +6 -6
  227. package/build/cjs/src/utils/swap/__tests__/swapStats.spec.js +73 -10
  228. package/build/cjs/src/utils/swap/buildSwapStrategy.js +11 -120
  229. package/build/cjs/src/utils/swap/index.js +9 -0
  230. package/build/cjs/src/utils/swap/swapPath.js +3 -3
  231. package/build/cjs/src/utils/swap/swapRouting.js +7 -2
  232. package/build/cjs/src/utils/swap/swapStats.js +90 -6
  233. package/build/cjs/src/utils/swap/swapValues.js +12 -73
  234. package/build/cjs/src/utils/swap/types.js +2 -0
  235. package/build/cjs/src/utils/time/index.js +17 -0
  236. package/build/cjs/src/utils/tokens/api.js +7 -0
  237. package/build/cjs/src/utils/tokens/index.js +18 -0
  238. package/build/cjs/src/utils/{tokens.js → tokens/utils.js} +36 -17
  239. package/build/cjs/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +165 -0
  240. package/build/cjs/src/utils/trade/__tests__/increase.spec.js +580 -0
  241. package/build/cjs/src/utils/trade/__tests__/increaseInvariants.spec.js +258 -0
  242. package/build/cjs/src/utils/trade/__tests__/increaseMarginCheck.spec.js +837 -0
  243. package/build/cjs/src/utils/trade/decrease.js +239 -33
  244. package/build/cjs/src/utils/trade/decreaseOutputs.js +47 -0
  245. package/build/cjs/src/utils/trade/increase.js +279 -38
  246. package/build/cjs/src/utils/trade/increaseMarginCheck.js +179 -0
  247. package/build/cjs/src/utils/trade/index.js +5 -0
  248. package/build/cjs/src/utils/trade/trade.js +21 -11
  249. package/build/cjs/src/{types/trade.js → utils/trade/types.js} +1 -2
  250. package/build/cjs/src/utils/tradeHistory/__tests__/utils.spec.js +64 -0
  251. package/build/cjs/src/utils/tradeHistory/index.js +18 -0
  252. package/build/cjs/src/{types/tradeHistory.js → utils/tradeHistory/types.js} +3 -1
  253. package/build/cjs/src/utils/{tradeHistory.js → tradeHistory/utils.js} +35 -34
  254. package/build/cjs/src/utils/trades/api.js +33 -0
  255. package/build/cjs/src/utils/trades/types.js +2 -0
  256. package/build/cjs/src/utils/twap/index.js +19 -1
  257. package/build/cjs/src/utils/twap/types.js +2 -0
  258. package/build/cjs/src/utils/twap/uiFeeReceiver.js +152 -30
  259. package/build/cjs/src/utils/types/index.js +7 -0
  260. package/build/cjs/src/utils/yield/api.js +21 -0
  261. package/build/cjs/src/utils/yield/types.js +2 -0
  262. package/build/esm/scripts/generate-platform-tokens.js +195 -0
  263. package/build/esm/scripts/generate-synthetics-abis.js +153 -0
  264. package/build/esm/scripts/prebuild/index.js +3 -1
  265. package/build/esm/scripts/prebuild/prebuildKinkModelMarketRatesKeys.js +2 -28
  266. package/build/esm/scripts/prebuild/prebuildMarketConfigKeys.js +1 -1
  267. package/build/esm/scripts/prebuild/prebuildMarketValuesKeys.js +1 -1
  268. package/build/esm/scripts/subsquid-codegen.js +24 -0
  269. package/build/esm/src/abis/AbstractSubaccountApprovalNonceable.js +21 -0
  270. package/build/esm/src/abis/ArbSys.js +9 -0
  271. package/build/esm/src/abis/CustomErrors.js +198 -88
  272. package/build/esm/src/abis/ExchangeRouter.js +155 -272
  273. package/build/esm/src/abis/GelatoRelayRouter.js +331 -0
  274. package/build/esm/src/abis/SimulationRouter.js +581 -0
  275. package/build/esm/src/abis/SubaccountGelatoRelayRouter.js +393 -0
  276. package/build/esm/src/abis/SyntheticsReader.js +40 -0
  277. package/build/esm/src/abis/index.js +5 -23
  278. package/build/esm/src/{utils → clients/v1}/callContract.js +5 -5
  279. package/build/esm/src/{index.js → clients/v1/index.js} +4 -4
  280. package/build/esm/src/{modules → clients/v1/modules}/accounts/accounts.js +1 -1
  281. package/build/esm/src/{modules → clients/v1/modules}/accounts/accounts.spec.js +1 -1
  282. package/build/esm/src/clients/v1/modules/markets/index.js +224 -0
  283. package/build/esm/src/{modules → clients/v1/modules}/markets/markets.spec.js +2 -2
  284. package/build/esm/src/{modules → clients/v1/modules}/oracle.js +1 -1
  285. package/build/esm/src/{modules → clients/v1/modules}/orders/helpers.js +6 -6
  286. package/build/esm/src/{modules → clients/v1/modules}/orders/helpers.spec.js +5 -5
  287. package/build/esm/src/{modules → clients/v1/modules}/orders/orders.js +7 -7
  288. package/build/esm/src/{modules → clients/v1/modules}/orders/orders.spec.js +1 -1
  289. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.js +2 -2
  290. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.js +7 -7
  291. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.js +8 -8
  292. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.js +7 -7
  293. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.js +2 -2
  294. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.js +3 -3
  295. package/build/esm/src/{modules → clients/v1/modules}/orders/utils.js +9 -8
  296. package/build/esm/src/clients/v1/modules/orders/utils.spec.js +64 -0
  297. package/build/esm/src/{modules → clients/v1/modules}/positions/positions.js +17 -167
  298. package/build/esm/src/{modules → clients/v1/modules}/positions/positions.spec.js +2 -2
  299. package/build/esm/src/{modules → clients/v1/modules}/tokens/tokens.js +3 -3
  300. package/build/esm/src/{modules → clients/v1/modules}/tokens/tokens.spec.js +1 -1
  301. package/build/esm/src/{modules → clients/v1/modules}/trades/trades.js +19 -13
  302. package/build/esm/src/{modules → clients/v1/modules}/trades/trades.spec.js +1 -1
  303. package/build/esm/src/{modules → clients/v1/modules}/utils/utils.js +8 -8
  304. package/build/esm/src/{utils → clients/v1}/multicall.js +2 -2
  305. package/build/esm/src/{utils → clients/v1}/simulateExecuteOrder.js +38 -58
  306. package/build/esm/src/{utils → clients/v1}/testUtil.js +2 -2
  307. package/build/esm/src/clients/v2/__tests__/data.spec.js +83 -0
  308. package/build/esm/src/clients/v2/__tests__/decrease.spec.js +496 -0
  309. package/build/esm/src/clients/v2/__tests__/editCancel.spec.js +260 -0
  310. package/build/esm/src/clients/v2/__tests__/errors.spec.js +215 -0
  311. package/build/esm/src/clients/v2/__tests__/errorsLifecycle.spec.js +51 -0
  312. package/build/esm/src/clients/v2/__tests__/globalCleanup.js +77 -0
  313. package/build/esm/src/clients/v2/__tests__/increase.spec.js +777 -0
  314. package/build/esm/src/clients/v2/__tests__/multichain.spec.js +112 -0
  315. package/build/esm/src/clients/v2/__tests__/multichainTestUtil.js +97 -0
  316. package/build/esm/src/clients/v2/__tests__/prepareErrors.spec.js +165 -0
  317. package/build/esm/src/clients/v2/__tests__/setupAllowance.js +30 -0
  318. package/build/esm/src/clients/v2/__tests__/subaccount.spec.js +235 -0
  319. package/build/esm/src/clients/v2/__tests__/subaccountLifecycle.spec.js +106 -0
  320. package/build/esm/src/clients/v2/__tests__/swap.spec.js +190 -0
  321. package/build/esm/src/clients/v2/__tests__/testUtil.js +234 -0
  322. package/build/esm/src/clients/v2/__tests__/tradingCapacity.spec.js +369 -0
  323. package/build/esm/src/clients/v2/index.js +265 -0
  324. package/build/esm/src/codegen/platformTokens.json +134 -0
  325. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedKinkModelMarketRatesKeys.json +176 -104
  326. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedMarketConfigKeys.json +3537 -1055
  327. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedMarketValuesKeys.json +330 -195
  328. package/build/esm/src/codegen/prebuilt/index.js +10 -0
  329. package/build/esm/src/{types → codegen}/subsquid.js +966 -456
  330. package/build/esm/src/configs/__tests__/markets.spec.js +4 -0
  331. package/build/esm/src/configs/__tests__/multichainTokens.spec.js +52 -0
  332. package/build/esm/src/configs/__tests__/tokens.spec.js +2 -2
  333. package/build/esm/src/configs/api.js +50 -0
  334. package/build/esm/src/configs/batch.js +14 -2
  335. package/build/esm/src/configs/chainIds.js +1 -1
  336. package/build/esm/src/configs/chains.js +77 -34
  337. package/build/esm/src/configs/contracts.js +98 -90
  338. package/build/esm/src/configs/dataStore.js +24 -4
  339. package/build/esm/src/configs/express.js +3 -11
  340. package/build/esm/src/configs/fees.js +17 -0
  341. package/build/esm/src/configs/gasLimits.js +6 -6
  342. package/build/esm/src/configs/markets.js +159 -93
  343. package/build/esm/src/configs/multichain.js +41 -18
  344. package/build/esm/src/configs/multichainTokens.js +287 -0
  345. package/build/esm/src/configs/oracleKeeper.js +3 -3
  346. package/build/esm/src/configs/tokens.js +245 -267
  347. package/build/esm/src/test/fixtures/arbitrumMarkets.json +1138 -0
  348. package/build/esm/src/test/fixtures/arbitrumTickers.json +1002 -0
  349. package/build/esm/src/test/fixtures/arbitrumTokens.json +136 -0
  350. package/build/esm/src/test/mock.js +15 -121
  351. package/build/esm/src/test/mockCrossFetch.js +23 -0
  352. package/build/esm/src/utils/24h/index.js +1 -0
  353. package/build/esm/src/utils/LruCache/index.js +1 -0
  354. package/build/esm/src/utils/__tests__/fees.spec.js +303 -3
  355. package/build/esm/src/utils/__tests__/markets.spec.js +413 -5
  356. package/build/esm/src/utils/__tests__/marketsRisk.spec.js +78 -0
  357. package/build/esm/src/utils/__tests__/numbers.spec.js +159 -1
  358. package/build/esm/src/utils/__tests__/objects.spec.js +17 -1
  359. package/build/esm/src/utils/__tests__/orderTransactions/batchUtils.spec.js +47 -2
  360. package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +8 -23
  361. package/build/esm/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +2 -2
  362. package/build/esm/src/utils/__tests__/orderTransactions/externalCalls.spec.js +1 -1
  363. package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +8 -23
  364. package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +5 -13
  365. package/build/esm/src/utils/__tests__/orderTransactions/updateOrder.spec.js +2 -2
  366. package/build/esm/src/utils/__tests__/parseError.spec.js +64 -1
  367. package/build/esm/src/utils/__tests__/positionPnlCap.spec.js +103 -0
  368. package/build/esm/src/utils/__tests__/positions.spec.js +338 -18
  369. package/build/esm/src/utils/__tests__/prices.spec.js +100 -3
  370. package/build/esm/src/utils/__tests__/tokens.spec.js +192 -5
  371. package/build/esm/src/utils/__tests__/uiFeeReceiver.spec.js +188 -24
  372. package/build/esm/src/utils/abort/index.js +1 -0
  373. package/build/esm/src/utils/apy/api.js +7 -0
  374. package/build/esm/src/utils/balances/api.js +73 -0
  375. package/build/esm/src/utils/bigmath/index.js +1 -0
  376. package/build/esm/src/utils/buildUrl/index.js +1 -0
  377. package/build/esm/src/utils/buyback/api.js +3 -0
  378. package/build/esm/src/utils/chains/index.js +1 -0
  379. package/build/esm/src/utils/common/index.js +1 -0
  380. package/build/esm/src/utils/{common.js → common/utils.js} +0 -1
  381. package/build/esm/src/utils/errors/index.js +1 -0
  382. package/build/esm/src/utils/errors/isIgnoredEstimateGasError.js +19 -0
  383. package/build/esm/src/utils/errors/parseError.js +79 -25
  384. package/build/esm/src/utils/errors/transactionsErrors.js +34 -0
  385. package/build/esm/src/utils/express/index.js +3 -0
  386. package/build/esm/src/utils/express/relayStatus.js +8 -0
  387. package/build/esm/src/utils/express/utils/batchOrderUtils.js +209 -0
  388. package/build/esm/src/utils/express/utils/bridgeOutUtils.js +80 -0
  389. package/build/esm/src/utils/express/utils/estimateExpressParams.js +240 -0
  390. package/build/esm/src/utils/express/utils/estimateExpressParams.spec.js +79 -0
  391. package/build/esm/src/utils/express/utils/expressParamsUtils.js +19 -0
  392. package/build/esm/src/utils/express/utils/expressParamsUtils.spec.js +25 -0
  393. package/build/esm/src/utils/express/utils/globalExpressParams.js +36 -0
  394. package/build/esm/src/utils/express/utils/gmxRelayUtils.js +136 -0
  395. package/build/esm/src/utils/express/utils/gmxRelayUtils.spec.js +161 -0
  396. package/build/esm/src/utils/express/utils/index.js +10 -0
  397. package/build/esm/src/utils/express/utils/oracleParamsUtils.js +39 -0
  398. package/build/esm/src/utils/express/utils/referralUtils.js +30 -0
  399. package/build/esm/src/utils/express/utils/relayParamsUtils.js +191 -0
  400. package/build/esm/src/utils/fees/executionFee.js +9 -4
  401. package/build/esm/src/utils/fees/index.js +14 -11
  402. package/build/esm/src/utils/fees/priceImpact.js +65 -22
  403. package/build/esm/src/utils/gas/applyBuffer.js +7 -0
  404. package/build/esm/src/utils/gmxAccountApi/api.js +81 -0
  405. package/build/esm/src/utils/gmxAccountApi/index.js +1 -0
  406. package/build/esm/src/utils/graphqlFetcher/index.js +1 -0
  407. package/build/esm/src/utils/hash/index.js +1 -0
  408. package/build/esm/src/utils/{hash.js → hash/utils.js} +1 -1
  409. package/build/esm/src/utils/http/__tests__/chainPins.spec.js +74 -0
  410. package/build/esm/src/utils/http/chainPins.js +76 -0
  411. package/build/esm/src/utils/http/http.js +101 -0
  412. package/build/esm/src/utils/http/httpFallback.js +69 -0
  413. package/build/esm/src/utils/http/validation.js +28 -0
  414. package/build/esm/src/utils/indexers/index.js +1 -0
  415. package/build/esm/src/utils/{indexers.js → indexers/utils.js} +1 -1
  416. package/build/esm/src/utils/jitLiquidity/api.js +8 -0
  417. package/build/esm/src/utils/jitLiquidity/index.js +3 -0
  418. package/build/esm/src/utils/jitLiquidity/utils.js +101 -0
  419. package/build/esm/src/utils/jitLiquidity/utils.spec.js +131 -0
  420. package/build/esm/src/utils/markets/__tests__/api.spec.js +166 -0
  421. package/build/esm/src/utils/markets/__tests__/mockMarkets.js +137 -0
  422. package/build/esm/src/utils/markets/api.js +148 -0
  423. package/build/esm/src/utils/{marketKeysAndConfigs.js → markets/hashKeys.js} +80 -8
  424. package/build/esm/src/utils/markets/index.js +5 -0
  425. package/build/esm/src/utils/markets/multicall.js +632 -0
  426. package/build/esm/src/utils/markets/types.js +30 -0
  427. package/build/esm/src/utils/markets/utils.js +530 -0
  428. package/build/esm/src/utils/metrics/index.js +4 -0
  429. package/build/esm/src/utils/multichain/__tests__/api.spec.js +130 -0
  430. package/build/esm/src/utils/multichain/api.js +111 -0
  431. package/build/esm/src/utils/multichain/codecs.js +41 -0
  432. package/build/esm/src/utils/multichain/estimateComposeGas.js +47 -0
  433. package/build/esm/src/utils/multichain/index.js +6 -0
  434. package/build/esm/src/utils/multichain/quotes.js +18 -0
  435. package/build/esm/src/utils/multichain/sendParams.js +65 -0
  436. package/build/esm/src/utils/multichain/stateOverrides.js +11 -0
  437. package/build/esm/src/utils/numbers/index.js +2 -0
  438. package/build/esm/src/utils/numbers/prbMath.js +149 -0
  439. package/build/esm/src/utils/{numbers.js → numbers/utils.js} +131 -46
  440. package/build/esm/src/utils/objects/index.js +1 -0
  441. package/build/esm/src/utils/{objects.js → objects/utils.js} +16 -0
  442. package/build/esm/src/utils/orderTransactions/api.js +238 -0
  443. package/build/esm/src/utils/orderTransactions/index.js +2 -0
  444. package/build/esm/src/utils/orderTransactions/simulation.js +9 -0
  445. package/build/esm/src/utils/{orderTransactions.js → orderTransactions/utils.js} +44 -25
  446. package/build/esm/src/utils/orderTransactions/validateTypedData.js +91 -0
  447. package/build/esm/src/utils/orders/api.js +9 -0
  448. package/build/esm/src/utils/orders/index.js +3 -0
  449. package/build/esm/src/utils/{orders.js → orders/utils.js} +8 -8
  450. package/build/esm/src/utils/pairs/api.js +3 -0
  451. package/build/esm/src/utils/performance/api.js +16 -0
  452. package/build/esm/src/utils/positions/__tests__/api.spec.js +48 -0
  453. package/build/esm/src/utils/positions/api.js +16 -0
  454. package/build/esm/src/utils/positions/index.js +3 -0
  455. package/build/esm/src/utils/positions/utils.js +480 -0
  456. package/build/esm/src/utils/prices/api.js +10 -0
  457. package/build/esm/src/utils/prices/index.js +1 -0
  458. package/build/esm/src/utils/{prices.js → prices/utils.js} +38 -11
  459. package/build/esm/src/utils/rates/api.js +9 -0
  460. package/build/esm/src/utils/referrals/index.js +2 -0
  461. package/build/esm/src/utils/rpc/createViemRpc.js +35 -0
  462. package/build/esm/src/utils/rpc/index.js +1 -0
  463. package/build/esm/src/utils/sidecarOrders/index.js +1 -0
  464. package/build/esm/src/utils/signer/index.js +1 -0
  465. package/build/esm/src/utils/signer/privateKeySigner.js +38 -0
  466. package/build/esm/src/utils/staking/api.js +7 -0
  467. package/build/esm/src/utils/stats/__tests__/api.spec.js +98 -0
  468. package/build/esm/src/utils/stats/api.js +26 -0
  469. package/build/esm/src/utils/stats/types.js +1 -0
  470. package/build/esm/src/utils/subaccount/api.js +16 -0
  471. package/build/esm/src/utils/subaccount/generateSubaccount.js +28 -0
  472. package/build/esm/src/utils/subaccount/getEmptySubaccountApproval.js +20 -0
  473. package/build/esm/src/utils/subaccount/getSubaccountApprovalTypedData.js +42 -0
  474. package/build/esm/src/utils/subaccount/hashSubaccountApproval.js +24 -0
  475. package/build/esm/src/utils/subaccount/index.js +7 -0
  476. package/build/esm/src/utils/subaccount/sdkClient.js +351 -0
  477. package/build/esm/src/utils/subaccount/state.js +64 -0
  478. package/build/esm/src/utils/swap/__tests__/mockRouting.spec.js +51 -2
  479. package/build/esm/src/utils/swap/__tests__/swapRouting.spec.js +2 -2
  480. package/build/esm/src/utils/swap/__tests__/swapStats.spec.js +65 -2
  481. package/build/esm/src/utils/swap/buildSwapStrategy.js +12 -121
  482. package/build/esm/src/utils/swap/index.js +9 -0
  483. package/build/esm/src/utils/swap/swapPath.js +1 -1
  484. package/build/esm/src/utils/swap/swapRouting.js +7 -2
  485. package/build/esm/src/utils/swap/swapStats.js +90 -7
  486. package/build/esm/src/utils/swap/swapValues.js +12 -73
  487. package/build/esm/src/utils/swap/types.js +1 -0
  488. package/build/esm/src/utils/time/index.js +1 -0
  489. package/build/esm/src/utils/tokens/api.js +3 -0
  490. package/build/esm/src/utils/tokens/index.js +2 -0
  491. package/build/esm/src/utils/{tokens.js → tokens/utils.js} +34 -14
  492. package/build/esm/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +163 -0
  493. package/build/esm/src/utils/trade/__tests__/increase.spec.js +578 -0
  494. package/build/esm/src/utils/trade/__tests__/increaseInvariants.spec.js +256 -0
  495. package/build/esm/src/utils/trade/__tests__/increaseMarginCheck.spec.js +835 -0
  496. package/build/esm/src/utils/trade/decrease.js +227 -29
  497. package/build/esm/src/utils/trade/decreaseOutputs.js +40 -0
  498. package/build/esm/src/utils/trade/increase.js +270 -29
  499. package/build/esm/src/utils/trade/increaseMarginCheck.js +173 -0
  500. package/build/esm/src/utils/trade/index.js +5 -0
  501. package/build/esm/src/utils/trade/trade.js +11 -2
  502. package/build/esm/src/{types/trade.js → utils/trade/types.js} +1 -2
  503. package/build/esm/src/utils/tradeHistory/__tests__/utils.spec.js +62 -0
  504. package/build/esm/src/utils/tradeHistory/index.js +2 -0
  505. package/build/esm/src/{types/tradeHistory.js → utils/tradeHistory/types.js} +2 -0
  506. package/build/esm/src/utils/{tradeHistory.js → tradeHistory/utils.js} +34 -32
  507. package/build/esm/src/utils/trades/api.js +28 -0
  508. package/build/esm/src/utils/trades/types.js +1 -0
  509. package/build/esm/src/utils/twap/index.js +2 -0
  510. package/build/esm/src/utils/twap/types.js +1 -0
  511. package/build/esm/src/utils/twap/uiFeeReceiver.js +145 -28
  512. package/build/esm/src/utils/types/index.js +3 -0
  513. package/build/esm/src/utils/yield/api.js +16 -0
  514. package/build/esm/src/utils/yield/types.js +1 -0
  515. package/build/tsconfig.tsbuildinfo +1 -0
  516. package/build/types/scripts/generate-platform-tokens.d.ts +27 -0
  517. package/build/types/scripts/generate-synthetics-abis.d.ts +17 -0
  518. package/build/types/scripts/subsquid-codegen.d.ts +3 -0
  519. package/build/types/src/abis/AbstractSubaccountApprovalNonceable.d.ts +16 -0
  520. package/build/types/src/abis/ArbSys.d.ts +12 -0
  521. package/build/types/src/abis/CustomErrors.d.ts +331 -139
  522. package/build/types/src/abis/ExchangeRouter.d.ts +121 -209
  523. package/build/types/src/abis/GelatoRelayRouter.d.ts +258 -0
  524. package/build/types/src/abis/SimulationRouter.d.ts +448 -0
  525. package/build/types/src/abis/SubaccountGelatoRelayRouter.d.ts +307 -0
  526. package/build/types/src/abis/SyntheticsReader.d.ts +32 -0
  527. package/build/types/src/abis/index.d.ts +8214 -7986
  528. package/build/types/src/clients/v1/callContract.d.ts +7 -0
  529. package/build/types/src/{index.d.ts → clients/v1/index.d.ts} +4 -4
  530. package/build/types/src/clients/v1/modules/accounts/accounts.spec.d.ts +1 -0
  531. package/build/types/src/{modules → clients/v1/modules}/base.d.ts +1 -1
  532. package/build/types/src/{modules → clients/v1/modules}/markets/index.d.ts +12 -1
  533. package/build/types/src/clients/v1/modules/markets/markets.spec.d.ts +1 -0
  534. package/build/types/src/{modules → clients/v1/modules}/oracle.d.ts +2 -2
  535. package/build/types/src/{modules → clients/v1/modules}/orders/helpers.d.ts +3 -3
  536. package/build/types/src/clients/v1/modules/orders/helpers.spec.d.ts +1 -0
  537. package/build/types/src/{modules → clients/v1/modules}/orders/orders.d.ts +6 -6
  538. package/build/types/src/clients/v1/modules/orders/orders.spec.d.ts +1 -0
  539. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.d.ts +1 -1
  540. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.d.ts +3 -3
  541. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.d.ts +4 -4
  542. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.d.ts +2 -2
  543. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.d.ts +1 -1
  544. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.d.ts +2 -2
  545. package/build/types/src/{modules → clients/v1/modules}/orders/utils.d.ts +9 -9
  546. package/build/types/src/clients/v1/modules/orders/utils.spec.d.ts +1 -0
  547. package/build/types/src/{modules → clients/v1/modules}/positions/positions.d.ts +4 -4
  548. package/build/types/src/clients/v1/modules/positions/positions.spec.d.ts +1 -0
  549. package/build/types/src/{modules → clients/v1/modules}/tokens/tokens.d.ts +1 -1
  550. package/build/types/src/clients/v1/modules/tokens/tokens.spec.d.ts +1 -0
  551. package/build/types/src/{modules → clients/v1/modules}/trades/trades.d.ts +4 -4
  552. package/build/types/src/clients/v1/modules/trades/trades.spec.d.ts +1 -0
  553. package/build/types/src/{modules → clients/v1/modules}/utils/utils.d.ts +4 -4
  554. package/build/types/src/{utils → clients/v1}/multicall.d.ts +3 -3
  555. package/build/types/src/{utils → clients/v1}/simulateExecuteOrder.d.ts +3 -4
  556. package/build/types/src/{utils → clients/v1}/testUtil.d.ts +2 -2
  557. package/build/types/src/{types/sdk.d.ts → clients/v1/types.d.ts} +3 -3
  558. package/build/types/src/clients/v2/__tests__/data.spec.d.ts +1 -0
  559. package/build/types/src/clients/v2/__tests__/decrease.spec.d.ts +1 -0
  560. package/build/types/src/clients/v2/__tests__/editCancel.spec.d.ts +1 -0
  561. package/build/types/src/clients/v2/__tests__/errors.spec.d.ts +1 -0
  562. package/build/types/src/clients/v2/__tests__/errorsLifecycle.spec.d.ts +1 -0
  563. package/build/types/src/clients/v2/__tests__/globalCleanup.d.ts +1 -0
  564. package/build/types/src/clients/v2/__tests__/increase.spec.d.ts +1 -0
  565. package/build/types/src/clients/v2/__tests__/multichain.spec.d.ts +1 -0
  566. package/build/types/src/clients/v2/__tests__/multichainTestUtil.d.ts +24 -0
  567. package/build/types/src/clients/v2/__tests__/prepareErrors.spec.d.ts +1 -0
  568. package/build/types/src/clients/v2/__tests__/setupAllowance.d.ts +1 -0
  569. package/build/types/src/clients/v2/__tests__/subaccount.spec.d.ts +1 -0
  570. package/build/types/src/clients/v2/__tests__/subaccountLifecycle.spec.d.ts +1 -0
  571. package/build/types/src/clients/v2/__tests__/swap.spec.d.ts +1 -0
  572. package/build/types/src/clients/v2/__tests__/testUtil.d.ts +66 -0
  573. package/build/types/src/clients/v2/__tests__/tradingCapacity.spec.d.ts +1 -0
  574. package/build/types/src/clients/v2/index.d.ts +156 -0
  575. package/build/types/src/codegen/prebuilt/index.d.ts +16325 -0
  576. package/build/types/src/{types → codegen}/subsquid.d.ts +3738 -718
  577. package/build/types/src/configs/__tests__/multichainTokens.spec.d.ts +1 -0
  578. package/build/types/src/configs/api.d.ts +5 -0
  579. package/build/types/src/configs/chainIds.d.ts +1 -1
  580. package/build/types/src/configs/chains.d.ts +74 -28
  581. package/build/types/src/configs/contracts.d.ts +14 -13
  582. package/build/types/src/configs/dataStore.d.ts +12 -2
  583. package/build/types/src/configs/express.d.ts +2 -8
  584. package/build/types/src/configs/fees.d.ts +9 -0
  585. package/build/types/src/configs/gasLimits.d.ts +1 -1
  586. package/build/types/src/configs/markets.d.ts +2 -1
  587. package/build/types/src/configs/multichain.d.ts +9 -3
  588. package/build/types/src/configs/multichainTokens.d.ts +30 -0
  589. package/build/types/src/configs/tokens.d.ts +2 -35
  590. package/build/types/src/test/mock.d.ts +5 -7
  591. package/build/types/src/test/mockCrossFetch.d.ts +2 -0
  592. package/build/types/src/utils/24h/index.d.ts +1 -0
  593. package/build/types/src/utils/24h/types.d.ts +7 -0
  594. package/build/types/src/utils/LruCache/index.d.ts +1 -0
  595. package/build/types/src/utils/__tests__/marketsRisk.spec.d.ts +1 -0
  596. package/build/types/src/utils/__tests__/positionPnlCap.spec.d.ts +1 -0
  597. package/build/types/src/utils/abort/index.d.ts +1 -0
  598. package/build/types/src/utils/apy/api.d.ts +5 -0
  599. package/build/types/src/utils/apy/types.d.ts +13 -0
  600. package/build/types/src/utils/balances/api.d.ts +53 -0
  601. package/build/types/src/utils/bigmath/index.d.ts +1 -0
  602. package/build/types/src/utils/buildUrl/index.d.ts +1 -0
  603. package/build/types/src/utils/buildUrl/utils.d.ts +1 -0
  604. package/build/types/src/utils/buyback/api.d.ts +5 -0
  605. package/build/types/src/utils/buyback/types.d.ts +22 -0
  606. package/build/types/src/utils/chains/index.d.ts +1 -0
  607. package/build/types/src/{types/chains.d.ts → utils/chains/types.d.ts} +6 -0
  608. package/build/types/src/utils/common/index.d.ts +1 -0
  609. package/build/types/src/utils/{common.d.ts → common/utils.d.ts} +0 -1
  610. package/build/types/src/utils/errors/index.d.ts +1 -0
  611. package/build/types/src/utils/errors/isIgnoredEstimateGasError.d.ts +2 -0
  612. package/build/types/src/utils/errors/parseError.d.ts +17 -1
  613. package/build/types/src/utils/errors/transactionsErrors.d.ts +35 -1
  614. package/build/types/src/utils/express/index.d.ts +3 -0
  615. package/build/types/src/utils/express/relayStatus.d.ts +7 -0
  616. package/build/types/src/utils/express/types.d.ts +96 -0
  617. package/build/types/src/utils/express/utils/batchOrderUtils.d.ts +98 -0
  618. package/build/types/src/utils/express/utils/bridgeOutUtils.d.ts +46 -0
  619. package/build/types/src/utils/express/utils/estimateExpressParams.d.ts +37 -0
  620. package/build/types/src/utils/express/utils/estimateExpressParams.spec.d.ts +1 -0
  621. package/build/types/src/utils/express/utils/expressParamsUtils.d.ts +20 -0
  622. package/build/types/src/utils/express/utils/expressParamsUtils.spec.d.ts +1 -0
  623. package/build/types/src/utils/express/utils/globalExpressParams.d.ts +31 -0
  624. package/build/types/src/utils/express/utils/gmxRelayUtils.d.ts +61 -0
  625. package/build/types/src/utils/express/utils/gmxRelayUtils.spec.d.ts +1 -0
  626. package/build/types/src/utils/express/utils/index.d.ts +10 -0
  627. package/build/types/src/utils/express/utils/oracleParamsUtils.d.ts +8 -0
  628. package/build/types/src/utils/express/utils/referralUtils.d.ts +17 -0
  629. package/build/types/src/utils/express/utils/relayParamsUtils.d.ts +49 -0
  630. package/build/types/src/utils/fees/executionFee.d.ts +5 -3
  631. package/build/types/src/utils/fees/getNaiveEstimatedGasBySwapCount.d.ts +1 -1
  632. package/build/types/src/utils/fees/index.d.ts +11 -14
  633. package/build/types/src/utils/fees/priceImpact.d.ts +6 -3
  634. package/build/types/src/{types/fees.d.ts → utils/fees/types.d.ts} +2 -2
  635. package/build/types/src/utils/gas/applyBuffer.d.ts +1 -0
  636. package/build/types/src/utils/gmxAccountApi/api.d.ts +121 -0
  637. package/build/types/src/utils/gmxAccountApi/index.d.ts +1 -0
  638. package/build/types/src/utils/graphqlFetcher/index.d.ts +1 -0
  639. package/build/types/src/utils/hash/index.d.ts +1 -0
  640. package/build/types/src/utils/http/__tests__/chainPins.spec.d.ts +1 -0
  641. package/build/types/src/utils/http/chainPins.d.ts +9 -0
  642. package/build/types/src/utils/http/http.d.ts +27 -0
  643. package/build/types/src/utils/http/httpFallback.d.ts +21 -0
  644. package/build/types/src/utils/http/types.d.ts +17 -0
  645. package/build/types/src/utils/http/validation.d.ts +7 -0
  646. package/build/types/src/utils/indexers/index.d.ts +1 -0
  647. package/build/types/src/utils/jitLiquidity/api.d.ts +5 -0
  648. package/build/types/src/utils/jitLiquidity/index.d.ts +3 -0
  649. package/build/types/src/utils/jitLiquidity/types.d.ts +23 -0
  650. package/build/types/src/utils/jitLiquidity/utils.d.ts +5 -0
  651. package/build/types/src/utils/jitLiquidity/utils.spec.d.ts +1 -0
  652. package/build/types/src/utils/markets/__tests__/api.spec.d.ts +1 -0
  653. package/build/types/src/utils/markets/__tests__/mockMarkets.d.ts +9 -0
  654. package/build/types/src/utils/markets/api.d.ts +28 -0
  655. package/build/types/src/utils/markets/hashKeys.d.ts +23 -0
  656. package/build/types/src/utils/markets/index.d.ts +5 -0
  657. package/build/types/src/utils/markets/multicall.d.ts +36 -0
  658. package/build/types/src/utils/markets/types.d.ts +260 -0
  659. package/build/types/src/utils/markets/utils.d.ts +135 -0
  660. package/build/types/src/utils/metrics/index.d.ts +4 -0
  661. package/build/types/src/utils/multichain/__tests__/api.spec.d.ts +1 -0
  662. package/build/types/src/utils/multichain/api.d.ts +61 -0
  663. package/build/types/src/utils/multichain/codecs.d.ts +25 -0
  664. package/build/types/src/utils/multichain/estimateComposeGas.d.ts +19 -0
  665. package/build/types/src/utils/multichain/index.d.ts +6 -0
  666. package/build/types/src/utils/multichain/quotes.d.ts +9 -0
  667. package/build/types/src/utils/multichain/sendParams.d.ts +38 -0
  668. package/build/types/src/utils/multichain/stateOverrides.d.ts +12 -0
  669. package/build/types/src/utils/numbers/index.d.ts +2 -0
  670. package/build/types/src/utils/numbers/prbMath.d.ts +7 -0
  671. package/build/types/src/utils/{numbers.d.ts → numbers/utils.d.ts} +17 -8
  672. package/build/types/src/utils/objects/index.d.ts +1 -0
  673. package/build/types/src/utils/{objects.d.ts → objects/utils.d.ts} +4 -0
  674. package/build/types/src/utils/orderTransactions/api.d.ts +211 -0
  675. package/build/types/src/utils/orderTransactions/index.d.ts +2 -0
  676. package/build/types/src/utils/orderTransactions/simulation.d.ts +1 -0
  677. package/build/types/src/utils/{orderTransactions.d.ts → orderTransactions/utils.d.ts} +12 -10
  678. package/build/types/src/utils/orderTransactions/validateTypedData.d.ts +6 -0
  679. package/build/types/src/utils/orders/api.d.ts +7 -0
  680. package/build/types/src/utils/orders/index.d.ts +3 -0
  681. package/build/types/src/{types/orders.d.ts → utils/orders/types.d.ts} +32 -3
  682. package/build/types/src/utils/{orders.d.ts → orders/utils.d.ts} +3 -3
  683. package/build/types/src/utils/pairs/api.d.ts +5 -0
  684. package/build/types/src/utils/pairs/types.d.ts +20 -0
  685. package/build/types/src/utils/performance/api.d.ts +8 -0
  686. package/build/types/src/utils/performance/types.d.ts +19 -0
  687. package/build/types/src/utils/positions/__tests__/api.spec.d.ts +1 -0
  688. package/build/types/src/utils/positions/api.d.ts +8 -0
  689. package/build/types/src/utils/positions/index.d.ts +3 -0
  690. package/build/types/src/{types/positions.d.ts → utils/positions/types.d.ts} +11 -18
  691. package/build/types/src/utils/positions/utils.d.ts +158 -0
  692. package/build/types/src/utils/prices/api.d.ts +5 -0
  693. package/build/types/src/utils/prices/index.d.ts +1 -0
  694. package/build/types/src/utils/prices/types.d.ts +13 -0
  695. package/build/types/src/utils/{prices.d.ts → prices/utils.d.ts} +16 -5
  696. package/build/types/src/utils/rates/api.d.ts +5 -0
  697. package/build/types/src/utils/rates/types.d.ts +19 -0
  698. package/build/types/src/utils/referrals/index.d.ts +2 -0
  699. package/build/types/src/utils/rpc/createViemRpc.d.ts +3 -0
  700. package/build/types/src/utils/rpc/index.d.ts +27 -0
  701. package/build/types/src/utils/sidecarOrders/index.d.ts +1 -0
  702. package/build/types/src/{types/sidecarOrders.d.ts → utils/sidecarOrders/types.d.ts} +2 -2
  703. package/build/types/src/utils/signer/index.d.ts +23 -0
  704. package/build/types/src/utils/signer/privateKeySigner.d.ts +19 -0
  705. package/build/types/src/utils/staking/api.d.ts +7 -0
  706. package/build/types/src/utils/staking/types.d.ts +14 -0
  707. package/build/types/src/utils/stats/__tests__/api.spec.d.ts +1 -0
  708. package/build/types/src/utils/stats/api.d.ts +11 -0
  709. package/build/types/src/utils/stats/types.d.ts +106 -0
  710. package/build/types/src/utils/subaccount/api.d.ts +51 -0
  711. package/build/types/src/utils/subaccount/generateSubaccount.d.ts +11 -0
  712. package/build/types/src/utils/subaccount/getEmptySubaccountApproval.d.ts +9 -0
  713. package/build/types/src/utils/subaccount/getSubaccountApprovalTypedData.d.ts +24 -0
  714. package/build/types/src/utils/subaccount/hashSubaccountApproval.d.ts +1 -0
  715. package/build/types/src/utils/subaccount/index.d.ts +8 -0
  716. package/build/types/src/utils/subaccount/sdkClient.d.ts +36 -0
  717. package/build/types/src/utils/subaccount/state.d.ts +11 -0
  718. package/build/types/src/utils/subaccount/types.d.ts +73 -0
  719. package/build/types/src/utils/swap/buildSwapStrategy.d.ts +11 -9
  720. package/build/types/src/utils/swap/findSwapPathsBetweenTokens.d.ts +1 -1
  721. package/build/types/src/utils/swap/index.d.ts +9 -0
  722. package/build/types/src/utils/swap/preparedSwapData.d.ts +1 -1
  723. package/build/types/src/utils/swap/swapPath.d.ts +6 -6
  724. package/build/types/src/utils/swap/swapRouting.d.ts +5 -5
  725. package/build/types/src/utils/swap/swapStats.d.ts +17 -3
  726. package/build/types/src/utils/swap/swapValues.d.ts +11 -5
  727. package/build/types/src/{types/swapStrategy.d.ts → utils/swap/types.d.ts} +3 -8
  728. package/build/types/src/utils/time/index.d.ts +1 -0
  729. package/build/types/src/utils/tokens/api.d.ts +5 -0
  730. package/build/types/src/utils/tokens/index.d.ts +2 -0
  731. package/build/types/src/{types/tokens.d.ts → utils/tokens/types.d.ts} +3 -3
  732. package/build/types/src/utils/{tokens.d.ts → tokens/utils.d.ts} +3 -4
  733. package/build/types/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.d.ts +1 -0
  734. package/build/types/src/utils/trade/__tests__/increase.spec.d.ts +1 -0
  735. package/build/types/src/utils/trade/__tests__/increaseInvariants.spec.d.ts +1 -0
  736. package/build/types/src/utils/trade/__tests__/increaseMarginCheck.spec.d.ts +1 -0
  737. package/build/types/src/utils/trade/decrease.d.ts +63 -5
  738. package/build/types/src/utils/trade/decreaseOutputs.d.ts +16 -0
  739. package/build/types/src/utils/trade/increase.d.ts +10 -5
  740. package/build/types/src/utils/trade/increaseMarginCheck.d.ts +61 -0
  741. package/build/types/src/utils/trade/index.d.ts +5 -0
  742. package/build/types/src/utils/trade/trade.d.ts +3 -1
  743. package/build/types/src/{types/trade.d.ts → utils/trade/types.d.ts} +19 -13
  744. package/build/types/src/utils/tradeHistory/__tests__/utils.spec.d.ts +1 -0
  745. package/build/types/src/utils/tradeHistory/index.d.ts +2 -0
  746. package/build/types/src/{types/tradeHistory.d.ts → utils/tradeHistory/types.d.ts} +20 -11
  747. package/build/types/src/utils/tradeHistory/utils.d.ts +5 -0
  748. package/build/types/src/utils/trades/api.d.ts +8 -0
  749. package/build/types/src/utils/trades/types.d.ts +92 -0
  750. package/build/types/src/utils/twap/index.d.ts +4 -2
  751. package/build/types/src/{types/twap.d.ts → utils/twap/types.d.ts} +2 -0
  752. package/build/types/src/utils/twap/uiFeeReceiver.d.ts +27 -15
  753. package/build/types/src/utils/{types.d.ts → types/index.d.ts} +0 -1
  754. package/build/types/src/utils/yield/api.d.ts +8 -0
  755. package/build/types/src/utils/yield/types.d.ts +47 -0
  756. package/package.json +483 -35
  757. package/build/cjs/src/abis/StBTC.js +0 -513
  758. package/build/cjs/src/modules/markets/index.js +0 -366
  759. package/build/cjs/src/modules/markets/query-builders.js +0 -418
  760. package/build/cjs/src/prebuilt/index.js +0 -15
  761. package/build/cjs/src/utils/gelatoRelay.js +0 -10
  762. package/build/cjs/src/utils/markets.js +0 -195
  763. package/build/cjs/src/utils/positions.js +0 -213
  764. package/build/cjs/src/utils/swap/botanixStaking.js +0 -90
  765. package/build/cjs/src/utils/swap/externalSwapPath.js +0 -41
  766. package/build/cjs/src/utils/swap/externalSwapQuoteByPath.js +0 -27
  767. package/build/cjs/src/utils/types.js +0 -13
  768. package/build/esm/src/abis/StBTC.js +0 -511
  769. package/build/esm/src/modules/markets/index.js +0 -359
  770. package/build/esm/src/modules/markets/query-builders.js +0 -412
  771. package/build/esm/src/prebuilt/index.js +0 -7
  772. package/build/esm/src/utils/gelatoRelay.js +0 -4
  773. package/build/esm/src/utils/markets.js +0 -171
  774. package/build/esm/src/utils/positions.js +0 -197
  775. package/build/esm/src/utils/swap/botanixStaking.js +0 -83
  776. package/build/esm/src/utils/swap/externalSwapPath.js +0 -37
  777. package/build/esm/src/utils/swap/externalSwapQuoteByPath.js +0 -23
  778. package/build/esm/src/utils/types.js +0 -8
  779. package/build/types/src/abis/StBTC.d.ts +0 -932
  780. package/build/types/src/modules/markets/query-builders.d.ts +0 -42
  781. package/build/types/src/modules/markets/types.d.ts +0 -51
  782. package/build/types/src/prebuilt/index.d.ts +0 -24
  783. package/build/types/src/types/common.d.ts +0 -1
  784. package/build/types/src/types/markets.d.ts +0 -147
  785. package/build/types/src/utils/buildUrl.d.ts +0 -1
  786. package/build/types/src/utils/callContract.d.ts +0 -17
  787. package/build/types/src/utils/gelatoRelay.d.ts +0 -2
  788. package/build/types/src/utils/marketKeysAndConfigs.d.ts +0 -73
  789. package/build/types/src/utils/markets.d.ts +0 -58
  790. package/build/types/src/utils/positions.d.ts +0 -90
  791. package/build/types/src/utils/swap/botanixStaking.d.ts +0 -11
  792. package/build/types/src/utils/swap/externalSwapPath.d.ts +0 -13
  793. package/build/types/src/utils/swap/externalSwapQuoteByPath.d.ts +0 -6
  794. package/build/types/src/utils/tradeHistory.d.ts +0 -6
  795. /package/build/cjs/src/{modules → clients/v1/modules}/base.js +0 -0
  796. /package/build/cjs/src/{modules/markets → clients/v1}/types.js +0 -0
  797. /package/build/cjs/src/{types/chains.js → utils/24h/types.js} +0 -0
  798. /package/build/cjs/src/utils/{LruCache.js → LruCache/utils.js} +0 -0
  799. /package/build/cjs/src/utils/{abort.js → abort/utils.js} +0 -0
  800. /package/build/cjs/src/{types/common.js → utils/apy/types.js} +0 -0
  801. /package/build/cjs/src/utils/{bigmath.js → bigmath/utils.js} +0 -0
  802. /package/build/cjs/src/utils/{buildUrl.js → buildUrl/utils.js} +0 -0
  803. /package/build/cjs/src/{types/fees.js → utils/buyback/types.js} +0 -0
  804. /package/build/cjs/src/{types/markets.js → utils/chains/types.js} +0 -0
  805. /package/build/cjs/src/{types/positions.js → utils/express/types.js} +0 -0
  806. /package/build/cjs/src/{types/sdk.js → utils/fees/types.js} +0 -0
  807. /package/build/cjs/src/utils/{graphqlFetcher.js → graphqlFetcher/utils.js} +0 -0
  808. /package/build/cjs/src/{types/sidecarOrders.js → utils/http/types.js} +0 -0
  809. /package/build/cjs/src/{types/swapStrategy.js → utils/jitLiquidity/types.js} +0 -0
  810. /package/build/cjs/src/{types/orders.js → utils/orders/types.js} +0 -0
  811. /package/build/cjs/src/{types/twap.js → utils/pairs/types.js} +0 -0
  812. /package/build/cjs/src/{types/referrals.js → utils/referrals/types.js} +0 -0
  813. /package/build/cjs/src/utils/{referrals.js → referrals/utils.js} +0 -0
  814. /package/build/cjs/src/utils/{time.js → time/utils.js} +0 -0
  815. /package/build/cjs/src/{types/tokens.js → utils/tokens/types.js} +0 -0
  816. /package/build/esm/src/{modules → clients/v1/modules}/base.js +0 -0
  817. /package/build/esm/src/{modules/markets → clients/v1}/types.js +0 -0
  818. /package/build/esm/src/{types/chains.js → utils/24h/types.js} +0 -0
  819. /package/build/esm/src/utils/{LruCache.js → LruCache/utils.js} +0 -0
  820. /package/build/esm/src/utils/{abort.js → abort/utils.js} +0 -0
  821. /package/build/esm/src/{types/common.js → utils/apy/types.js} +0 -0
  822. /package/build/esm/src/utils/{bigmath.js → bigmath/utils.js} +0 -0
  823. /package/build/esm/src/utils/{buildUrl.js → buildUrl/utils.js} +0 -0
  824. /package/build/esm/src/{types/fees.js → utils/buyback/types.js} +0 -0
  825. /package/build/esm/src/{types/markets.js → utils/chains/types.js} +0 -0
  826. /package/build/esm/src/{types/positions.js → utils/express/types.js} +0 -0
  827. /package/build/esm/src/{types/sdk.js → utils/fees/types.js} +0 -0
  828. /package/build/esm/src/utils/{graphqlFetcher.js → graphqlFetcher/utils.js} +0 -0
  829. /package/build/esm/src/{types/sidecarOrders.js → utils/http/types.js} +0 -0
  830. /package/build/esm/src/{types/swapStrategy.js → utils/jitLiquidity/types.js} +0 -0
  831. /package/build/esm/src/{types/orders.js → utils/orders/types.js} +0 -0
  832. /package/build/esm/src/{types/twap.js → utils/pairs/types.js} +0 -0
  833. /package/build/{types/src/modules/accounts/accounts.spec.d.ts → esm/src/utils/performance/types.js} +0 -0
  834. /package/build/{types/src/modules/markets/markets.spec.d.ts → esm/src/utils/positions/types.js} +0 -0
  835. /package/build/{types/src/modules/orders/helpers.spec.d.ts → esm/src/utils/prices/types.js} +0 -0
  836. /package/build/{types/src/modules/orders/orders.spec.d.ts → esm/src/utils/rates/types.js} +0 -0
  837. /package/build/esm/src/{types/referrals.js → utils/referrals/types.js} +0 -0
  838. /package/build/esm/src/utils/{referrals.js → referrals/utils.js} +0 -0
  839. /package/build/{types/src/modules/positions/positions.spec.d.ts → esm/src/utils/sidecarOrders/types.js} +0 -0
  840. /package/build/{types/src/modules/tokens/tokens.spec.d.ts → esm/src/utils/staking/types.js} +0 -0
  841. /package/build/{types/src/modules/trades/trades.spec.d.ts → esm/src/utils/subaccount/types.js} +0 -0
  842. /package/build/esm/src/utils/{time.js → time/utils.js} +0 -0
  843. /package/build/esm/src/{types/tokens.js → utils/tokens/types.js} +0 -0
  844. /package/build/types/src/{modules → clients/v1/modules}/accounts/accounts.d.ts +0 -0
  845. /package/build/types/src/utils/{LruCache.d.ts → LruCache/utils.d.ts} +0 -0
  846. /package/build/types/src/utils/{abort.d.ts → abort/utils.d.ts} +0 -0
  847. /package/build/types/src/utils/{bigmath.d.ts → bigmath/utils.d.ts} +0 -0
  848. /package/build/types/src/utils/{graphqlFetcher.d.ts → graphqlFetcher/utils.d.ts} +0 -0
  849. /package/build/types/src/utils/{hash.d.ts → hash/utils.d.ts} +0 -0
  850. /package/build/types/src/utils/{indexers.d.ts → indexers/utils.d.ts} +0 -0
  851. /package/build/types/src/{types/referrals.d.ts → utils/referrals/types.d.ts} +0 -0
  852. /package/build/types/src/utils/{referrals.d.ts → referrals/utils.d.ts} +0 -0
  853. /package/build/types/src/utils/{time.d.ts → time/utils.d.ts} +0 -0
@@ -1,5 +1,68 @@
1
+ export var AccountPnlRankMetricOrderByInput;
2
+ (function (AccountPnlRankMetricOrderByInput) {
3
+ AccountPnlRankMetricOrderByInput["account_ASC"] = "account_ASC";
4
+ AccountPnlRankMetricOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
5
+ AccountPnlRankMetricOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
6
+ AccountPnlRankMetricOrderByInput["account_DESC"] = "account_DESC";
7
+ AccountPnlRankMetricOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
8
+ AccountPnlRankMetricOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
9
+ AccountPnlRankMetricOrderByInput["fromTimestamp_ASC"] = "fromTimestamp_ASC";
10
+ AccountPnlRankMetricOrderByInput["fromTimestamp_ASC_NULLS_FIRST"] = "fromTimestamp_ASC_NULLS_FIRST";
11
+ AccountPnlRankMetricOrderByInput["fromTimestamp_ASC_NULLS_LAST"] = "fromTimestamp_ASC_NULLS_LAST";
12
+ AccountPnlRankMetricOrderByInput["fromTimestamp_DESC"] = "fromTimestamp_DESC";
13
+ AccountPnlRankMetricOrderByInput["fromTimestamp_DESC_NULLS_FIRST"] = "fromTimestamp_DESC_NULLS_FIRST";
14
+ AccountPnlRankMetricOrderByInput["fromTimestamp_DESC_NULLS_LAST"] = "fromTimestamp_DESC_NULLS_LAST";
15
+ AccountPnlRankMetricOrderByInput["id_ASC"] = "id_ASC";
16
+ AccountPnlRankMetricOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
17
+ AccountPnlRankMetricOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
18
+ AccountPnlRankMetricOrderByInput["id_DESC"] = "id_DESC";
19
+ AccountPnlRankMetricOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
20
+ AccountPnlRankMetricOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
21
+ AccountPnlRankMetricOrderByInput["maxCapital_ASC"] = "maxCapital_ASC";
22
+ AccountPnlRankMetricOrderByInput["maxCapital_ASC_NULLS_FIRST"] = "maxCapital_ASC_NULLS_FIRST";
23
+ AccountPnlRankMetricOrderByInput["maxCapital_ASC_NULLS_LAST"] = "maxCapital_ASC_NULLS_LAST";
24
+ AccountPnlRankMetricOrderByInput["maxCapital_DESC"] = "maxCapital_DESC";
25
+ AccountPnlRankMetricOrderByInput["maxCapital_DESC_NULLS_FIRST"] = "maxCapital_DESC_NULLS_FIRST";
26
+ AccountPnlRankMetricOrderByInput["maxCapital_DESC_NULLS_LAST"] = "maxCapital_DESC_NULLS_LAST";
27
+ AccountPnlRankMetricOrderByInput["period_ASC"] = "period_ASC";
28
+ AccountPnlRankMetricOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
29
+ AccountPnlRankMetricOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
30
+ AccountPnlRankMetricOrderByInput["period_DESC"] = "period_DESC";
31
+ AccountPnlRankMetricOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
32
+ AccountPnlRankMetricOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
33
+ AccountPnlRankMetricOrderByInput["pnlBps_ASC"] = "pnlBps_ASC";
34
+ AccountPnlRankMetricOrderByInput["pnlBps_ASC_NULLS_FIRST"] = "pnlBps_ASC_NULLS_FIRST";
35
+ AccountPnlRankMetricOrderByInput["pnlBps_ASC_NULLS_LAST"] = "pnlBps_ASC_NULLS_LAST";
36
+ AccountPnlRankMetricOrderByInput["pnlBps_DESC"] = "pnlBps_DESC";
37
+ AccountPnlRankMetricOrderByInput["pnlBps_DESC_NULLS_FIRST"] = "pnlBps_DESC_NULLS_FIRST";
38
+ AccountPnlRankMetricOrderByInput["pnlBps_DESC_NULLS_LAST"] = "pnlBps_DESC_NULLS_LAST";
39
+ AccountPnlRankMetricOrderByInput["pnlUsd_ASC"] = "pnlUsd_ASC";
40
+ AccountPnlRankMetricOrderByInput["pnlUsd_ASC_NULLS_FIRST"] = "pnlUsd_ASC_NULLS_FIRST";
41
+ AccountPnlRankMetricOrderByInput["pnlUsd_ASC_NULLS_LAST"] = "pnlUsd_ASC_NULLS_LAST";
42
+ AccountPnlRankMetricOrderByInput["pnlUsd_DESC"] = "pnlUsd_DESC";
43
+ AccountPnlRankMetricOrderByInput["pnlUsd_DESC_NULLS_FIRST"] = "pnlUsd_DESC_NULLS_FIRST";
44
+ AccountPnlRankMetricOrderByInput["pnlUsd_DESC_NULLS_LAST"] = "pnlUsd_DESC_NULLS_LAST";
45
+ AccountPnlRankMetricOrderByInput["updatedAt_ASC"] = "updatedAt_ASC";
46
+ AccountPnlRankMetricOrderByInput["updatedAt_ASC_NULLS_FIRST"] = "updatedAt_ASC_NULLS_FIRST";
47
+ AccountPnlRankMetricOrderByInput["updatedAt_ASC_NULLS_LAST"] = "updatedAt_ASC_NULLS_LAST";
48
+ AccountPnlRankMetricOrderByInput["updatedAt_DESC"] = "updatedAt_DESC";
49
+ AccountPnlRankMetricOrderByInput["updatedAt_DESC_NULLS_FIRST"] = "updatedAt_DESC_NULLS_FIRST";
50
+ AccountPnlRankMetricOrderByInput["updatedAt_DESC_NULLS_LAST"] = "updatedAt_DESC_NULLS_LAST";
51
+ AccountPnlRankMetricOrderByInput["volume_ASC"] = "volume_ASC";
52
+ AccountPnlRankMetricOrderByInput["volume_ASC_NULLS_FIRST"] = "volume_ASC_NULLS_FIRST";
53
+ AccountPnlRankMetricOrderByInput["volume_ASC_NULLS_LAST"] = "volume_ASC_NULLS_LAST";
54
+ AccountPnlRankMetricOrderByInput["volume_DESC"] = "volume_DESC";
55
+ AccountPnlRankMetricOrderByInput["volume_DESC_NULLS_FIRST"] = "volume_DESC_NULLS_FIRST";
56
+ AccountPnlRankMetricOrderByInput["volume_DESC_NULLS_LAST"] = "volume_DESC_NULLS_LAST";
57
+ })(AccountPnlRankMetricOrderByInput || (AccountPnlRankMetricOrderByInput = {}));
1
58
  export var AccountStatOrderByInput;
2
59
  (function (AccountStatOrderByInput) {
60
+ AccountStatOrderByInput["account_ASC"] = "account_ASC";
61
+ AccountStatOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
62
+ AccountStatOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
63
+ AccountStatOrderByInput["account_DESC"] = "account_DESC";
64
+ AccountStatOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
65
+ AccountStatOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
3
66
  AccountStatOrderByInput["closedCount_ASC"] = "closedCount_ASC";
4
67
  AccountStatOrderByInput["closedCount_ASC_NULLS_FIRST"] = "closedCount_ASC_NULLS_FIRST";
5
68
  AccountStatOrderByInput["closedCount_ASC_NULLS_LAST"] = "closedCount_ASC_NULLS_LAST";
@@ -18,6 +81,12 @@ export var AccountStatOrderByInput;
18
81
  AccountStatOrderByInput["cumsumSize_DESC"] = "cumsumSize_DESC";
19
82
  AccountStatOrderByInput["cumsumSize_DESC_NULLS_FIRST"] = "cumsumSize_DESC_NULLS_FIRST";
20
83
  AccountStatOrderByInput["cumsumSize_DESC_NULLS_LAST"] = "cumsumSize_DESC_NULLS_LAST";
84
+ AccountStatOrderByInput["dayTimestamp_ASC"] = "dayTimestamp_ASC";
85
+ AccountStatOrderByInput["dayTimestamp_ASC_NULLS_FIRST"] = "dayTimestamp_ASC_NULLS_FIRST";
86
+ AccountStatOrderByInput["dayTimestamp_ASC_NULLS_LAST"] = "dayTimestamp_ASC_NULLS_LAST";
87
+ AccountStatOrderByInput["dayTimestamp_DESC"] = "dayTimestamp_DESC";
88
+ AccountStatOrderByInput["dayTimestamp_DESC_NULLS_FIRST"] = "dayTimestamp_DESC_NULLS_FIRST";
89
+ AccountStatOrderByInput["dayTimestamp_DESC_NULLS_LAST"] = "dayTimestamp_DESC_NULLS_LAST";
21
90
  AccountStatOrderByInput["deposits_ASC"] = "deposits_ASC";
22
91
  AccountStatOrderByInput["deposits_ASC_NULLS_FIRST"] = "deposits_ASC_NULLS_FIRST";
23
92
  AccountStatOrderByInput["deposits_ASC_NULLS_LAST"] = "deposits_ASC_NULLS_LAST";
@@ -42,12 +111,36 @@ export var AccountStatOrderByInput;
42
111
  AccountStatOrderByInput["maxCapital_DESC"] = "maxCapital_DESC";
43
112
  AccountStatOrderByInput["maxCapital_DESC_NULLS_FIRST"] = "maxCapital_DESC_NULLS_FIRST";
44
113
  AccountStatOrderByInput["maxCapital_DESC_NULLS_LAST"] = "maxCapital_DESC_NULLS_LAST";
114
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_ASC"] = "maxNetCapitalRunningDelta_ASC";
115
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_ASC_NULLS_FIRST"] = "maxNetCapitalRunningDelta_ASC_NULLS_FIRST";
116
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_ASC_NULLS_LAST"] = "maxNetCapitalRunningDelta_ASC_NULLS_LAST";
117
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_DESC"] = "maxNetCapitalRunningDelta_DESC";
118
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_DESC_NULLS_FIRST"] = "maxNetCapitalRunningDelta_DESC_NULLS_FIRST";
119
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_DESC_NULLS_LAST"] = "maxNetCapitalRunningDelta_DESC_NULLS_LAST";
120
+ AccountStatOrderByInput["netCapitalDelta_ASC"] = "netCapitalDelta_ASC";
121
+ AccountStatOrderByInput["netCapitalDelta_ASC_NULLS_FIRST"] = "netCapitalDelta_ASC_NULLS_FIRST";
122
+ AccountStatOrderByInput["netCapitalDelta_ASC_NULLS_LAST"] = "netCapitalDelta_ASC_NULLS_LAST";
123
+ AccountStatOrderByInput["netCapitalDelta_DESC"] = "netCapitalDelta_DESC";
124
+ AccountStatOrderByInput["netCapitalDelta_DESC_NULLS_FIRST"] = "netCapitalDelta_DESC_NULLS_FIRST";
125
+ AccountStatOrderByInput["netCapitalDelta_DESC_NULLS_LAST"] = "netCapitalDelta_DESC_NULLS_LAST";
45
126
  AccountStatOrderByInput["netCapital_ASC"] = "netCapital_ASC";
46
127
  AccountStatOrderByInput["netCapital_ASC_NULLS_FIRST"] = "netCapital_ASC_NULLS_FIRST";
47
128
  AccountStatOrderByInput["netCapital_ASC_NULLS_LAST"] = "netCapital_ASC_NULLS_LAST";
48
129
  AccountStatOrderByInput["netCapital_DESC"] = "netCapital_DESC";
49
130
  AccountStatOrderByInput["netCapital_DESC_NULLS_FIRST"] = "netCapital_DESC_NULLS_FIRST";
50
131
  AccountStatOrderByInput["netCapital_DESC_NULLS_LAST"] = "netCapital_DESC_NULLS_LAST";
132
+ AccountStatOrderByInput["period_ASC"] = "period_ASC";
133
+ AccountStatOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
134
+ AccountStatOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
135
+ AccountStatOrderByInput["period_DESC"] = "period_DESC";
136
+ AccountStatOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
137
+ AccountStatOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
138
+ AccountStatOrderByInput["positiveFundingFeesUsd_ASC"] = "positiveFundingFeesUsd_ASC";
139
+ AccountStatOrderByInput["positiveFundingFeesUsd_ASC_NULLS_FIRST"] = "positiveFundingFeesUsd_ASC_NULLS_FIRST";
140
+ AccountStatOrderByInput["positiveFundingFeesUsd_ASC_NULLS_LAST"] = "positiveFundingFeesUsd_ASC_NULLS_LAST";
141
+ AccountStatOrderByInput["positiveFundingFeesUsd_DESC"] = "positiveFundingFeesUsd_DESC";
142
+ AccountStatOrderByInput["positiveFundingFeesUsd_DESC_NULLS_FIRST"] = "positiveFundingFeesUsd_DESC_NULLS_FIRST";
143
+ AccountStatOrderByInput["positiveFundingFeesUsd_DESC_NULLS_LAST"] = "positiveFundingFeesUsd_DESC_NULLS_LAST";
51
144
  AccountStatOrderByInput["realizedFees_ASC"] = "realizedFees_ASC";
52
145
  AccountStatOrderByInput["realizedFees_ASC_NULLS_FIRST"] = "realizedFees_ASC_NULLS_FIRST";
53
146
  AccountStatOrderByInput["realizedFees_ASC_NULLS_LAST"] = "realizedFees_ASC_NULLS_LAST";
@@ -66,6 +159,12 @@ export var AccountStatOrderByInput;
66
159
  AccountStatOrderByInput["realizedPriceImpact_DESC"] = "realizedPriceImpact_DESC";
67
160
  AccountStatOrderByInput["realizedPriceImpact_DESC_NULLS_FIRST"] = "realizedPriceImpact_DESC_NULLS_FIRST";
68
161
  AccountStatOrderByInput["realizedPriceImpact_DESC_NULLS_LAST"] = "realizedPriceImpact_DESC_NULLS_LAST";
162
+ AccountStatOrderByInput["realizedSwapFees_ASC"] = "realizedSwapFees_ASC";
163
+ AccountStatOrderByInput["realizedSwapFees_ASC_NULLS_FIRST"] = "realizedSwapFees_ASC_NULLS_FIRST";
164
+ AccountStatOrderByInput["realizedSwapFees_ASC_NULLS_LAST"] = "realizedSwapFees_ASC_NULLS_LAST";
165
+ AccountStatOrderByInput["realizedSwapFees_DESC"] = "realizedSwapFees_DESC";
166
+ AccountStatOrderByInput["realizedSwapFees_DESC_NULLS_FIRST"] = "realizedSwapFees_DESC_NULLS_FIRST";
167
+ AccountStatOrderByInput["realizedSwapFees_DESC_NULLS_LAST"] = "realizedSwapFees_DESC_NULLS_LAST";
69
168
  AccountStatOrderByInput["realizedSwapImpact_ASC"] = "realizedSwapImpact_ASC";
70
169
  AccountStatOrderByInput["realizedSwapImpact_ASC_NULLS_FIRST"] = "realizedSwapImpact_ASC_NULLS_FIRST";
71
170
  AccountStatOrderByInput["realizedSwapImpact_ASC_NULLS_LAST"] = "realizedSwapImpact_ASC_NULLS_LAST";
@@ -91,6 +190,90 @@ export var AccountStatOrderByInput;
91
190
  AccountStatOrderByInput["wins_DESC_NULLS_FIRST"] = "wins_DESC_NULLS_FIRST";
92
191
  AccountStatOrderByInput["wins_DESC_NULLS_LAST"] = "wins_DESC_NULLS_LAST";
93
192
  })(AccountStatOrderByInput || (AccountStatOrderByInput = {}));
193
+ export var AffiliateReferralTradeStatsByHourOrderByInput;
194
+ (function (AffiliateReferralTradeStatsByHourOrderByInput) {
195
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_ASC"] = "affiliate_ASC";
196
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_ASC_NULLS_FIRST"] = "affiliate_ASC_NULLS_FIRST";
197
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_ASC_NULLS_LAST"] = "affiliate_ASC_NULLS_LAST";
198
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_DESC"] = "affiliate_DESC";
199
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_DESC_NULLS_FIRST"] = "affiliate_DESC_NULLS_FIRST";
200
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_DESC_NULLS_LAST"] = "affiliate_DESC_NULLS_LAST";
201
+ AffiliateReferralTradeStatsByHourOrderByInput["id_ASC"] = "id_ASC";
202
+ AffiliateReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
203
+ AffiliateReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
204
+ AffiliateReferralTradeStatsByHourOrderByInput["id_DESC"] = "id_DESC";
205
+ AffiliateReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
206
+ AffiliateReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
207
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_ASC"] = "rebatesUsd_ASC";
208
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_ASC_NULLS_FIRST"] = "rebatesUsd_ASC_NULLS_FIRST";
209
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_ASC_NULLS_LAST"] = "rebatesUsd_ASC_NULLS_LAST";
210
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_DESC"] = "rebatesUsd_DESC";
211
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_DESC_NULLS_FIRST"] = "rebatesUsd_DESC_NULLS_FIRST";
212
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_DESC_NULLS_LAST"] = "rebatesUsd_DESC_NULLS_LAST";
213
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_ASC"] = "timestamp_ASC";
214
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
215
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
216
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_DESC"] = "timestamp_DESC";
217
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
218
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
219
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_ASC"] = "tradesCount_ASC";
220
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_ASC_NULLS_FIRST"] = "tradesCount_ASC_NULLS_FIRST";
221
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_ASC_NULLS_LAST"] = "tradesCount_ASC_NULLS_LAST";
222
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_DESC"] = "tradesCount_DESC";
223
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_DESC_NULLS_FIRST"] = "tradesCount_DESC_NULLS_FIRST";
224
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_DESC_NULLS_LAST"] = "tradesCount_DESC_NULLS_LAST";
225
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_ASC"] = "volumeUsd_ASC";
226
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_FIRST"] = "volumeUsd_ASC_NULLS_FIRST";
227
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_LAST"] = "volumeUsd_ASC_NULLS_LAST";
228
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_DESC"] = "volumeUsd_DESC";
229
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_FIRST"] = "volumeUsd_DESC_NULLS_FIRST";
230
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_LAST"] = "volumeUsd_DESC_NULLS_LAST";
231
+ })(AffiliateReferralTradeStatsByHourOrderByInput || (AffiliateReferralTradeStatsByHourOrderByInput = {}));
232
+ export var AffiliateTraderStatsByHourOrderByInput;
233
+ (function (AffiliateTraderStatsByHourOrderByInput) {
234
+ AffiliateTraderStatsByHourOrderByInput["affiliate_ASC"] = "affiliate_ASC";
235
+ AffiliateTraderStatsByHourOrderByInput["affiliate_ASC_NULLS_FIRST"] = "affiliate_ASC_NULLS_FIRST";
236
+ AffiliateTraderStatsByHourOrderByInput["affiliate_ASC_NULLS_LAST"] = "affiliate_ASC_NULLS_LAST";
237
+ AffiliateTraderStatsByHourOrderByInput["affiliate_DESC"] = "affiliate_DESC";
238
+ AffiliateTraderStatsByHourOrderByInput["affiliate_DESC_NULLS_FIRST"] = "affiliate_DESC_NULLS_FIRST";
239
+ AffiliateTraderStatsByHourOrderByInput["affiliate_DESC_NULLS_LAST"] = "affiliate_DESC_NULLS_LAST";
240
+ AffiliateTraderStatsByHourOrderByInput["id_ASC"] = "id_ASC";
241
+ AffiliateTraderStatsByHourOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
242
+ AffiliateTraderStatsByHourOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
243
+ AffiliateTraderStatsByHourOrderByInput["id_DESC"] = "id_DESC";
244
+ AffiliateTraderStatsByHourOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
245
+ AffiliateTraderStatsByHourOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
246
+ AffiliateTraderStatsByHourOrderByInput["timestamp_ASC"] = "timestamp_ASC";
247
+ AffiliateTraderStatsByHourOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
248
+ AffiliateTraderStatsByHourOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
249
+ AffiliateTraderStatsByHourOrderByInput["timestamp_DESC"] = "timestamp_DESC";
250
+ AffiliateTraderStatsByHourOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
251
+ AffiliateTraderStatsByHourOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
252
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_ASC"] = "tradersGained_ASC";
253
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_ASC_NULLS_FIRST"] = "tradersGained_ASC_NULLS_FIRST";
254
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_ASC_NULLS_LAST"] = "tradersGained_ASC_NULLS_LAST";
255
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_DESC"] = "tradersGained_DESC";
256
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_DESC_NULLS_FIRST"] = "tradersGained_DESC_NULLS_FIRST";
257
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_DESC_NULLS_LAST"] = "tradersGained_DESC_NULLS_LAST";
258
+ AffiliateTraderStatsByHourOrderByInput["tradersGraduated_ASC"] = "tradersGraduated_ASC";
259
+ AffiliateTraderStatsByHourOrderByInput["tradersGraduated_ASC_NULLS_FIRST"] = "tradersGraduated_ASC_NULLS_FIRST";
260
+ AffiliateTraderStatsByHourOrderByInput["tradersGraduated_ASC_NULLS_LAST"] = "tradersGraduated_ASC_NULLS_LAST";
261
+ AffiliateTraderStatsByHourOrderByInput["tradersGraduated_DESC"] = "tradersGraduated_DESC";
262
+ AffiliateTraderStatsByHourOrderByInput["tradersGraduated_DESC_NULLS_FIRST"] = "tradersGraduated_DESC_NULLS_FIRST";
263
+ AffiliateTraderStatsByHourOrderByInput["tradersGraduated_DESC_NULLS_LAST"] = "tradersGraduated_DESC_NULLS_LAST";
264
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_ASC"] = "tradersLost_ASC";
265
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_ASC_NULLS_FIRST"] = "tradersLost_ASC_NULLS_FIRST";
266
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_ASC_NULLS_LAST"] = "tradersLost_ASC_NULLS_LAST";
267
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_DESC"] = "tradersLost_DESC";
268
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_DESC_NULLS_FIRST"] = "tradersLost_DESC_NULLS_FIRST";
269
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_DESC_NULLS_LAST"] = "tradersLost_DESC_NULLS_LAST";
270
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_ASC"] = "tradersNet_ASC";
271
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_ASC_NULLS_FIRST"] = "tradersNet_ASC_NULLS_FIRST";
272
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_ASC_NULLS_LAST"] = "tradersNet_ASC_NULLS_LAST";
273
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_DESC"] = "tradersNet_DESC";
274
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_DESC_NULLS_FIRST"] = "tradersNet_DESC_NULLS_FIRST";
275
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_DESC_NULLS_LAST"] = "tradersNet_DESC_NULLS_LAST";
276
+ })(AffiliateTraderStatsByHourOrderByInput || (AffiliateTraderStatsByHourOrderByInput = {}));
94
277
  export var AprSnapshotOrderByInput;
95
278
  (function (AprSnapshotOrderByInput) {
96
279
  AprSnapshotOrderByInput["address_ASC"] = "address_ASC";
@@ -201,48 +384,12 @@ export var ClaimActionOrderByInput;
201
384
  ClaimActionOrderByInput["timestamp_DESC"] = "timestamp_DESC";
202
385
  ClaimActionOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
203
386
  ClaimActionOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
204
- ClaimActionOrderByInput["transaction_blockNumber_ASC"] = "transaction_blockNumber_ASC";
205
- ClaimActionOrderByInput["transaction_blockNumber_ASC_NULLS_FIRST"] = "transaction_blockNumber_ASC_NULLS_FIRST";
206
- ClaimActionOrderByInput["transaction_blockNumber_ASC_NULLS_LAST"] = "transaction_blockNumber_ASC_NULLS_LAST";
207
- ClaimActionOrderByInput["transaction_blockNumber_DESC"] = "transaction_blockNumber_DESC";
208
- ClaimActionOrderByInput["transaction_blockNumber_DESC_NULLS_FIRST"] = "transaction_blockNumber_DESC_NULLS_FIRST";
209
- ClaimActionOrderByInput["transaction_blockNumber_DESC_NULLS_LAST"] = "transaction_blockNumber_DESC_NULLS_LAST";
210
- ClaimActionOrderByInput["transaction_from_ASC"] = "transaction_from_ASC";
211
- ClaimActionOrderByInput["transaction_from_ASC_NULLS_FIRST"] = "transaction_from_ASC_NULLS_FIRST";
212
- ClaimActionOrderByInput["transaction_from_ASC_NULLS_LAST"] = "transaction_from_ASC_NULLS_LAST";
213
- ClaimActionOrderByInput["transaction_from_DESC"] = "transaction_from_DESC";
214
- ClaimActionOrderByInput["transaction_from_DESC_NULLS_FIRST"] = "transaction_from_DESC_NULLS_FIRST";
215
- ClaimActionOrderByInput["transaction_from_DESC_NULLS_LAST"] = "transaction_from_DESC_NULLS_LAST";
216
- ClaimActionOrderByInput["transaction_hash_ASC"] = "transaction_hash_ASC";
217
- ClaimActionOrderByInput["transaction_hash_ASC_NULLS_FIRST"] = "transaction_hash_ASC_NULLS_FIRST";
218
- ClaimActionOrderByInput["transaction_hash_ASC_NULLS_LAST"] = "transaction_hash_ASC_NULLS_LAST";
219
- ClaimActionOrderByInput["transaction_hash_DESC"] = "transaction_hash_DESC";
220
- ClaimActionOrderByInput["transaction_hash_DESC_NULLS_FIRST"] = "transaction_hash_DESC_NULLS_FIRST";
221
- ClaimActionOrderByInput["transaction_hash_DESC_NULLS_LAST"] = "transaction_hash_DESC_NULLS_LAST";
222
- ClaimActionOrderByInput["transaction_id_ASC"] = "transaction_id_ASC";
223
- ClaimActionOrderByInput["transaction_id_ASC_NULLS_FIRST"] = "transaction_id_ASC_NULLS_FIRST";
224
- ClaimActionOrderByInput["transaction_id_ASC_NULLS_LAST"] = "transaction_id_ASC_NULLS_LAST";
225
- ClaimActionOrderByInput["transaction_id_DESC"] = "transaction_id_DESC";
226
- ClaimActionOrderByInput["transaction_id_DESC_NULLS_FIRST"] = "transaction_id_DESC_NULLS_FIRST";
227
- ClaimActionOrderByInput["transaction_id_DESC_NULLS_LAST"] = "transaction_id_DESC_NULLS_LAST";
228
- ClaimActionOrderByInput["transaction_timestamp_ASC"] = "transaction_timestamp_ASC";
229
- ClaimActionOrderByInput["transaction_timestamp_ASC_NULLS_FIRST"] = "transaction_timestamp_ASC_NULLS_FIRST";
230
- ClaimActionOrderByInput["transaction_timestamp_ASC_NULLS_LAST"] = "transaction_timestamp_ASC_NULLS_LAST";
231
- ClaimActionOrderByInput["transaction_timestamp_DESC"] = "transaction_timestamp_DESC";
232
- ClaimActionOrderByInput["transaction_timestamp_DESC_NULLS_FIRST"] = "transaction_timestamp_DESC_NULLS_FIRST";
233
- ClaimActionOrderByInput["transaction_timestamp_DESC_NULLS_LAST"] = "transaction_timestamp_DESC_NULLS_LAST";
234
- ClaimActionOrderByInput["transaction_to_ASC"] = "transaction_to_ASC";
235
- ClaimActionOrderByInput["transaction_to_ASC_NULLS_FIRST"] = "transaction_to_ASC_NULLS_FIRST";
236
- ClaimActionOrderByInput["transaction_to_ASC_NULLS_LAST"] = "transaction_to_ASC_NULLS_LAST";
237
- ClaimActionOrderByInput["transaction_to_DESC"] = "transaction_to_DESC";
238
- ClaimActionOrderByInput["transaction_to_DESC_NULLS_FIRST"] = "transaction_to_DESC_NULLS_FIRST";
239
- ClaimActionOrderByInput["transaction_to_DESC_NULLS_LAST"] = "transaction_to_DESC_NULLS_LAST";
240
- ClaimActionOrderByInput["transaction_transactionIndex_ASC"] = "transaction_transactionIndex_ASC";
241
- ClaimActionOrderByInput["transaction_transactionIndex_ASC_NULLS_FIRST"] = "transaction_transactionIndex_ASC_NULLS_FIRST";
242
- ClaimActionOrderByInput["transaction_transactionIndex_ASC_NULLS_LAST"] = "transaction_transactionIndex_ASC_NULLS_LAST";
243
- ClaimActionOrderByInput["transaction_transactionIndex_DESC"] = "transaction_transactionIndex_DESC";
244
- ClaimActionOrderByInput["transaction_transactionIndex_DESC_NULLS_FIRST"] = "transaction_transactionIndex_DESC_NULLS_FIRST";
245
- ClaimActionOrderByInput["transaction_transactionIndex_DESC_NULLS_LAST"] = "transaction_transactionIndex_DESC_NULLS_LAST";
387
+ ClaimActionOrderByInput["transactionHash_ASC"] = "transactionHash_ASC";
388
+ ClaimActionOrderByInput["transactionHash_ASC_NULLS_FIRST"] = "transactionHash_ASC_NULLS_FIRST";
389
+ ClaimActionOrderByInput["transactionHash_ASC_NULLS_LAST"] = "transactionHash_ASC_NULLS_LAST";
390
+ ClaimActionOrderByInput["transactionHash_DESC"] = "transactionHash_DESC";
391
+ ClaimActionOrderByInput["transactionHash_DESC_NULLS_FIRST"] = "transactionHash_DESC_NULLS_FIRST";
392
+ ClaimActionOrderByInput["transactionHash_DESC_NULLS_LAST"] = "transactionHash_DESC_NULLS_LAST";
246
393
  })(ClaimActionOrderByInput || (ClaimActionOrderByInput = {}));
247
394
  export var ClaimActionType;
248
395
  (function (ClaimActionType) {
@@ -473,6 +620,12 @@ export var CollectedFeesInfoOrderByInput;
473
620
  CollectedFeesInfoOrderByInput["cumulativeFeeUsdForPool_DESC"] = "cumulativeFeeUsdForPool_DESC";
474
621
  CollectedFeesInfoOrderByInput["cumulativeFeeUsdForPool_DESC_NULLS_FIRST"] = "cumulativeFeeUsdForPool_DESC_NULLS_FIRST";
475
622
  CollectedFeesInfoOrderByInput["cumulativeFeeUsdForPool_DESC_NULLS_LAST"] = "cumulativeFeeUsdForPool_DESC_NULLS_LAST";
623
+ CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerGlvToken_ASC"] = "cumulativeFeeUsdPerGlvToken_ASC";
624
+ CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST"] = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST";
625
+ CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST"] = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST";
626
+ CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerGlvToken_DESC"] = "cumulativeFeeUsdPerGlvToken_DESC";
627
+ CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST"] = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST";
628
+ CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST"] = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST";
476
629
  CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerPoolValue_ASC"] = "cumulativeFeeUsdPerPoolValue_ASC";
477
630
  CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerPoolValue_ASC_NULLS_FIRST"] = "cumulativeFeeUsdPerPoolValue_ASC_NULLS_FIRST";
478
631
  CollectedFeesInfoOrderByInput["cumulativeFeeUsdPerPoolValue_ASC_NULLS_LAST"] = "cumulativeFeeUsdPerPoolValue_ASC_NULLS_LAST";
@@ -656,48 +809,18 @@ export var DistributionOrderByInput;
656
809
  DistributionOrderByInput["receiver_DESC"] = "receiver_DESC";
657
810
  DistributionOrderByInput["receiver_DESC_NULLS_FIRST"] = "receiver_DESC_NULLS_FIRST";
658
811
  DistributionOrderByInput["receiver_DESC_NULLS_LAST"] = "receiver_DESC_NULLS_LAST";
659
- DistributionOrderByInput["transaction_blockNumber_ASC"] = "transaction_blockNumber_ASC";
660
- DistributionOrderByInput["transaction_blockNumber_ASC_NULLS_FIRST"] = "transaction_blockNumber_ASC_NULLS_FIRST";
661
- DistributionOrderByInput["transaction_blockNumber_ASC_NULLS_LAST"] = "transaction_blockNumber_ASC_NULLS_LAST";
662
- DistributionOrderByInput["transaction_blockNumber_DESC"] = "transaction_blockNumber_DESC";
663
- DistributionOrderByInput["transaction_blockNumber_DESC_NULLS_FIRST"] = "transaction_blockNumber_DESC_NULLS_FIRST";
664
- DistributionOrderByInput["transaction_blockNumber_DESC_NULLS_LAST"] = "transaction_blockNumber_DESC_NULLS_LAST";
665
- DistributionOrderByInput["transaction_from_ASC"] = "transaction_from_ASC";
666
- DistributionOrderByInput["transaction_from_ASC_NULLS_FIRST"] = "transaction_from_ASC_NULLS_FIRST";
667
- DistributionOrderByInput["transaction_from_ASC_NULLS_LAST"] = "transaction_from_ASC_NULLS_LAST";
668
- DistributionOrderByInput["transaction_from_DESC"] = "transaction_from_DESC";
669
- DistributionOrderByInput["transaction_from_DESC_NULLS_FIRST"] = "transaction_from_DESC_NULLS_FIRST";
670
- DistributionOrderByInput["transaction_from_DESC_NULLS_LAST"] = "transaction_from_DESC_NULLS_LAST";
671
- DistributionOrderByInput["transaction_hash_ASC"] = "transaction_hash_ASC";
672
- DistributionOrderByInput["transaction_hash_ASC_NULLS_FIRST"] = "transaction_hash_ASC_NULLS_FIRST";
673
- DistributionOrderByInput["transaction_hash_ASC_NULLS_LAST"] = "transaction_hash_ASC_NULLS_LAST";
674
- DistributionOrderByInput["transaction_hash_DESC"] = "transaction_hash_DESC";
675
- DistributionOrderByInput["transaction_hash_DESC_NULLS_FIRST"] = "transaction_hash_DESC_NULLS_FIRST";
676
- DistributionOrderByInput["transaction_hash_DESC_NULLS_LAST"] = "transaction_hash_DESC_NULLS_LAST";
677
- DistributionOrderByInput["transaction_id_ASC"] = "transaction_id_ASC";
678
- DistributionOrderByInput["transaction_id_ASC_NULLS_FIRST"] = "transaction_id_ASC_NULLS_FIRST";
679
- DistributionOrderByInput["transaction_id_ASC_NULLS_LAST"] = "transaction_id_ASC_NULLS_LAST";
680
- DistributionOrderByInput["transaction_id_DESC"] = "transaction_id_DESC";
681
- DistributionOrderByInput["transaction_id_DESC_NULLS_FIRST"] = "transaction_id_DESC_NULLS_FIRST";
682
- DistributionOrderByInput["transaction_id_DESC_NULLS_LAST"] = "transaction_id_DESC_NULLS_LAST";
683
- DistributionOrderByInput["transaction_timestamp_ASC"] = "transaction_timestamp_ASC";
684
- DistributionOrderByInput["transaction_timestamp_ASC_NULLS_FIRST"] = "transaction_timestamp_ASC_NULLS_FIRST";
685
- DistributionOrderByInput["transaction_timestamp_ASC_NULLS_LAST"] = "transaction_timestamp_ASC_NULLS_LAST";
686
- DistributionOrderByInput["transaction_timestamp_DESC"] = "transaction_timestamp_DESC";
687
- DistributionOrderByInput["transaction_timestamp_DESC_NULLS_FIRST"] = "transaction_timestamp_DESC_NULLS_FIRST";
688
- DistributionOrderByInput["transaction_timestamp_DESC_NULLS_LAST"] = "transaction_timestamp_DESC_NULLS_LAST";
689
- DistributionOrderByInput["transaction_to_ASC"] = "transaction_to_ASC";
690
- DistributionOrderByInput["transaction_to_ASC_NULLS_FIRST"] = "transaction_to_ASC_NULLS_FIRST";
691
- DistributionOrderByInput["transaction_to_ASC_NULLS_LAST"] = "transaction_to_ASC_NULLS_LAST";
692
- DistributionOrderByInput["transaction_to_DESC"] = "transaction_to_DESC";
693
- DistributionOrderByInput["transaction_to_DESC_NULLS_FIRST"] = "transaction_to_DESC_NULLS_FIRST";
694
- DistributionOrderByInput["transaction_to_DESC_NULLS_LAST"] = "transaction_to_DESC_NULLS_LAST";
695
- DistributionOrderByInput["transaction_transactionIndex_ASC"] = "transaction_transactionIndex_ASC";
696
- DistributionOrderByInput["transaction_transactionIndex_ASC_NULLS_FIRST"] = "transaction_transactionIndex_ASC_NULLS_FIRST";
697
- DistributionOrderByInput["transaction_transactionIndex_ASC_NULLS_LAST"] = "transaction_transactionIndex_ASC_NULLS_LAST";
698
- DistributionOrderByInput["transaction_transactionIndex_DESC"] = "transaction_transactionIndex_DESC";
699
- DistributionOrderByInput["transaction_transactionIndex_DESC_NULLS_FIRST"] = "transaction_transactionIndex_DESC_NULLS_FIRST";
700
- DistributionOrderByInput["transaction_transactionIndex_DESC_NULLS_LAST"] = "transaction_transactionIndex_DESC_NULLS_LAST";
812
+ DistributionOrderByInput["timestamp_ASC"] = "timestamp_ASC";
813
+ DistributionOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
814
+ DistributionOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
815
+ DistributionOrderByInput["timestamp_DESC"] = "timestamp_DESC";
816
+ DistributionOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
817
+ DistributionOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
818
+ DistributionOrderByInput["transactionHash_ASC"] = "transactionHash_ASC";
819
+ DistributionOrderByInput["transactionHash_ASC_NULLS_FIRST"] = "transactionHash_ASC_NULLS_FIRST";
820
+ DistributionOrderByInput["transactionHash_ASC_NULLS_LAST"] = "transactionHash_ASC_NULLS_LAST";
821
+ DistributionOrderByInput["transactionHash_DESC"] = "transactionHash_DESC";
822
+ DistributionOrderByInput["transactionHash_DESC_NULLS_FIRST"] = "transactionHash_DESC_NULLS_FIRST";
823
+ DistributionOrderByInput["transactionHash_DESC_NULLS_LAST"] = "transactionHash_DESC_NULLS_LAST";
701
824
  DistributionOrderByInput["typeId_ASC"] = "typeId_ASC";
702
825
  DistributionOrderByInput["typeId_ASC_NULLS_FIRST"] = "typeId_ASC_NULLS_FIRST";
703
826
  DistributionOrderByInput["typeId_ASC_NULLS_LAST"] = "typeId_ASC_NULLS_LAST";
@@ -710,14 +833,59 @@ export var EntityType;
710
833
  EntityType["Glv"] = "Glv";
711
834
  EntityType["Market"] = "Market";
712
835
  })(EntityType || (EntityType = {}));
836
+ export var FundingRateSnapshotOrderByInput;
837
+ (function (FundingRateSnapshotOrderByInput) {
838
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondLong_ASC"] = "fundingFactorPerSecondLong_ASC";
839
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondLong_ASC_NULLS_FIRST"] = "fundingFactorPerSecondLong_ASC_NULLS_FIRST";
840
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondLong_ASC_NULLS_LAST"] = "fundingFactorPerSecondLong_ASC_NULLS_LAST";
841
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondLong_DESC"] = "fundingFactorPerSecondLong_DESC";
842
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondLong_DESC_NULLS_FIRST"] = "fundingFactorPerSecondLong_DESC_NULLS_FIRST";
843
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondLong_DESC_NULLS_LAST"] = "fundingFactorPerSecondLong_DESC_NULLS_LAST";
844
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondShort_ASC"] = "fundingFactorPerSecondShort_ASC";
845
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondShort_ASC_NULLS_FIRST"] = "fundingFactorPerSecondShort_ASC_NULLS_FIRST";
846
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondShort_ASC_NULLS_LAST"] = "fundingFactorPerSecondShort_ASC_NULLS_LAST";
847
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondShort_DESC"] = "fundingFactorPerSecondShort_DESC";
848
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondShort_DESC_NULLS_FIRST"] = "fundingFactorPerSecondShort_DESC_NULLS_FIRST";
849
+ FundingRateSnapshotOrderByInput["fundingFactorPerSecondShort_DESC_NULLS_LAST"] = "fundingFactorPerSecondShort_DESC_NULLS_LAST";
850
+ FundingRateSnapshotOrderByInput["id_ASC"] = "id_ASC";
851
+ FundingRateSnapshotOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
852
+ FundingRateSnapshotOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
853
+ FundingRateSnapshotOrderByInput["id_DESC"] = "id_DESC";
854
+ FundingRateSnapshotOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
855
+ FundingRateSnapshotOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
856
+ FundingRateSnapshotOrderByInput["marketAddress_ASC"] = "marketAddress_ASC";
857
+ FundingRateSnapshotOrderByInput["marketAddress_ASC_NULLS_FIRST"] = "marketAddress_ASC_NULLS_FIRST";
858
+ FundingRateSnapshotOrderByInput["marketAddress_ASC_NULLS_LAST"] = "marketAddress_ASC_NULLS_LAST";
859
+ FundingRateSnapshotOrderByInput["marketAddress_DESC"] = "marketAddress_DESC";
860
+ FundingRateSnapshotOrderByInput["marketAddress_DESC_NULLS_FIRST"] = "marketAddress_DESC_NULLS_FIRST";
861
+ FundingRateSnapshotOrderByInput["marketAddress_DESC_NULLS_LAST"] = "marketAddress_DESC_NULLS_LAST";
862
+ FundingRateSnapshotOrderByInput["snapshotTimestamp_ASC"] = "snapshotTimestamp_ASC";
863
+ FundingRateSnapshotOrderByInput["snapshotTimestamp_ASC_NULLS_FIRST"] = "snapshotTimestamp_ASC_NULLS_FIRST";
864
+ FundingRateSnapshotOrderByInput["snapshotTimestamp_ASC_NULLS_LAST"] = "snapshotTimestamp_ASC_NULLS_LAST";
865
+ FundingRateSnapshotOrderByInput["snapshotTimestamp_DESC"] = "snapshotTimestamp_DESC";
866
+ FundingRateSnapshotOrderByInput["snapshotTimestamp_DESC_NULLS_FIRST"] = "snapshotTimestamp_DESC_NULLS_FIRST";
867
+ FundingRateSnapshotOrderByInput["snapshotTimestamp_DESC_NULLS_LAST"] = "snapshotTimestamp_DESC_NULLS_LAST";
868
+ })(FundingRateSnapshotOrderByInput || (FundingRateSnapshotOrderByInput = {}));
713
869
  export var GlvOrderByInput;
714
870
  (function (GlvOrderByInput) {
871
+ GlvOrderByInput["cumulativeFeeUsdPerGlvToken_ASC"] = "cumulativeFeeUsdPerGlvToken_ASC";
872
+ GlvOrderByInput["cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST"] = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST";
873
+ GlvOrderByInput["cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST"] = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST";
874
+ GlvOrderByInput["cumulativeFeeUsdPerGlvToken_DESC"] = "cumulativeFeeUsdPerGlvToken_DESC";
875
+ GlvOrderByInput["cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST"] = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST";
876
+ GlvOrderByInput["cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST"] = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST";
715
877
  GlvOrderByInput["glvTokenAddress_ASC"] = "glvTokenAddress_ASC";
716
878
  GlvOrderByInput["glvTokenAddress_ASC_NULLS_FIRST"] = "glvTokenAddress_ASC_NULLS_FIRST";
717
879
  GlvOrderByInput["glvTokenAddress_ASC_NULLS_LAST"] = "glvTokenAddress_ASC_NULLS_LAST";
718
880
  GlvOrderByInput["glvTokenAddress_DESC"] = "glvTokenAddress_DESC";
719
881
  GlvOrderByInput["glvTokenAddress_DESC_NULLS_FIRST"] = "glvTokenAddress_DESC_NULLS_FIRST";
720
882
  GlvOrderByInput["glvTokenAddress_DESC_NULLS_LAST"] = "glvTokenAddress_DESC_NULLS_LAST";
883
+ GlvOrderByInput["glvTokenSupply_ASC"] = "glvTokenSupply_ASC";
884
+ GlvOrderByInput["glvTokenSupply_ASC_NULLS_FIRST"] = "glvTokenSupply_ASC_NULLS_FIRST";
885
+ GlvOrderByInput["glvTokenSupply_ASC_NULLS_LAST"] = "glvTokenSupply_ASC_NULLS_LAST";
886
+ GlvOrderByInput["glvTokenSupply_DESC"] = "glvTokenSupply_DESC";
887
+ GlvOrderByInput["glvTokenSupply_DESC_NULLS_FIRST"] = "glvTokenSupply_DESC_NULLS_FIRST";
888
+ GlvOrderByInput["glvTokenSupply_DESC_NULLS_LAST"] = "glvTokenSupply_DESC_NULLS_LAST";
721
889
  GlvOrderByInput["id_ASC"] = "id_ASC";
722
890
  GlvOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
723
891
  GlvOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
@@ -743,6 +911,102 @@ export var GlvOrderByInput;
743
911
  GlvOrderByInput["shortTokenAddress_DESC_NULLS_FIRST"] = "shortTokenAddress_DESC_NULLS_FIRST";
744
912
  GlvOrderByInput["shortTokenAddress_DESC_NULLS_LAST"] = "shortTokenAddress_DESC_NULLS_LAST";
745
913
  })(GlvOrderByInput || (GlvOrderByInput = {}));
914
+ export var GlvTokenBalanceChangeOrderByInput;
915
+ (function (GlvTokenBalanceChangeOrderByInput) {
916
+ GlvTokenBalanceChangeOrderByInput["account_ASC"] = "account_ASC";
917
+ GlvTokenBalanceChangeOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
918
+ GlvTokenBalanceChangeOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
919
+ GlvTokenBalanceChangeOrderByInput["account_DESC"] = "account_DESC";
920
+ GlvTokenBalanceChangeOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
921
+ GlvTokenBalanceChangeOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
922
+ GlvTokenBalanceChangeOrderByInput["balance_ASC"] = "balance_ASC";
923
+ GlvTokenBalanceChangeOrderByInput["balance_ASC_NULLS_FIRST"] = "balance_ASC_NULLS_FIRST";
924
+ GlvTokenBalanceChangeOrderByInput["balance_ASC_NULLS_LAST"] = "balance_ASC_NULLS_LAST";
925
+ GlvTokenBalanceChangeOrderByInput["balance_DESC"] = "balance_DESC";
926
+ GlvTokenBalanceChangeOrderByInput["balance_DESC_NULLS_FIRST"] = "balance_DESC_NULLS_FIRST";
927
+ GlvTokenBalanceChangeOrderByInput["balance_DESC_NULLS_LAST"] = "balance_DESC_NULLS_LAST";
928
+ GlvTokenBalanceChangeOrderByInput["blockNumber_ASC"] = "blockNumber_ASC";
929
+ GlvTokenBalanceChangeOrderByInput["blockNumber_ASC_NULLS_FIRST"] = "blockNumber_ASC_NULLS_FIRST";
930
+ GlvTokenBalanceChangeOrderByInput["blockNumber_ASC_NULLS_LAST"] = "blockNumber_ASC_NULLS_LAST";
931
+ GlvTokenBalanceChangeOrderByInput["blockNumber_DESC"] = "blockNumber_DESC";
932
+ GlvTokenBalanceChangeOrderByInput["blockNumber_DESC_NULLS_FIRST"] = "blockNumber_DESC_NULLS_FIRST";
933
+ GlvTokenBalanceChangeOrderByInput["blockNumber_DESC_NULLS_LAST"] = "blockNumber_DESC_NULLS_LAST";
934
+ GlvTokenBalanceChangeOrderByInput["cumulativeIncome_ASC"] = "cumulativeIncome_ASC";
935
+ GlvTokenBalanceChangeOrderByInput["cumulativeIncome_ASC_NULLS_FIRST"] = "cumulativeIncome_ASC_NULLS_FIRST";
936
+ GlvTokenBalanceChangeOrderByInput["cumulativeIncome_ASC_NULLS_LAST"] = "cumulativeIncome_ASC_NULLS_LAST";
937
+ GlvTokenBalanceChangeOrderByInput["cumulativeIncome_DESC"] = "cumulativeIncome_DESC";
938
+ GlvTokenBalanceChangeOrderByInput["cumulativeIncome_DESC_NULLS_FIRST"] = "cumulativeIncome_DESC_NULLS_FIRST";
939
+ GlvTokenBalanceChangeOrderByInput["cumulativeIncome_DESC_NULLS_LAST"] = "cumulativeIncome_DESC_NULLS_LAST";
940
+ GlvTokenBalanceChangeOrderByInput["glvAddress_ASC"] = "glvAddress_ASC";
941
+ GlvTokenBalanceChangeOrderByInput["glvAddress_ASC_NULLS_FIRST"] = "glvAddress_ASC_NULLS_FIRST";
942
+ GlvTokenBalanceChangeOrderByInput["glvAddress_ASC_NULLS_LAST"] = "glvAddress_ASC_NULLS_LAST";
943
+ GlvTokenBalanceChangeOrderByInput["glvAddress_DESC"] = "glvAddress_DESC";
944
+ GlvTokenBalanceChangeOrderByInput["glvAddress_DESC_NULLS_FIRST"] = "glvAddress_DESC_NULLS_FIRST";
945
+ GlvTokenBalanceChangeOrderByInput["glvAddress_DESC_NULLS_LAST"] = "glvAddress_DESC_NULLS_LAST";
946
+ GlvTokenBalanceChangeOrderByInput["id_ASC"] = "id_ASC";
947
+ GlvTokenBalanceChangeOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
948
+ GlvTokenBalanceChangeOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
949
+ GlvTokenBalanceChangeOrderByInput["id_DESC"] = "id_DESC";
950
+ GlvTokenBalanceChangeOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
951
+ GlvTokenBalanceChangeOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
952
+ GlvTokenBalanceChangeOrderByInput["index_ASC"] = "index_ASC";
953
+ GlvTokenBalanceChangeOrderByInput["index_ASC_NULLS_FIRST"] = "index_ASC_NULLS_FIRST";
954
+ GlvTokenBalanceChangeOrderByInput["index_ASC_NULLS_LAST"] = "index_ASC_NULLS_LAST";
955
+ GlvTokenBalanceChangeOrderByInput["index_DESC"] = "index_DESC";
956
+ GlvTokenBalanceChangeOrderByInput["index_DESC_NULLS_FIRST"] = "index_DESC_NULLS_FIRST";
957
+ GlvTokenBalanceChangeOrderByInput["index_DESC_NULLS_LAST"] = "index_DESC_NULLS_LAST";
958
+ GlvTokenBalanceChangeOrderByInput["snapshot_ASC"] = "snapshot_ASC";
959
+ GlvTokenBalanceChangeOrderByInput["snapshot_ASC_NULLS_FIRST"] = "snapshot_ASC_NULLS_FIRST";
960
+ GlvTokenBalanceChangeOrderByInput["snapshot_ASC_NULLS_LAST"] = "snapshot_ASC_NULLS_LAST";
961
+ GlvTokenBalanceChangeOrderByInput["snapshot_DESC"] = "snapshot_DESC";
962
+ GlvTokenBalanceChangeOrderByInput["snapshot_DESC_NULLS_FIRST"] = "snapshot_DESC_NULLS_FIRST";
963
+ GlvTokenBalanceChangeOrderByInput["snapshot_DESC_NULLS_LAST"] = "snapshot_DESC_NULLS_LAST";
964
+ GlvTokenBalanceChangeOrderByInput["timestamp_ASC"] = "timestamp_ASC";
965
+ GlvTokenBalanceChangeOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
966
+ GlvTokenBalanceChangeOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
967
+ GlvTokenBalanceChangeOrderByInput["timestamp_DESC"] = "timestamp_DESC";
968
+ GlvTokenBalanceChangeOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
969
+ GlvTokenBalanceChangeOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
970
+ })(GlvTokenBalanceChangeOrderByInput || (GlvTokenBalanceChangeOrderByInput = {}));
971
+ export var GlvTokenBalanceOrderByInput;
972
+ (function (GlvTokenBalanceOrderByInput) {
973
+ GlvTokenBalanceOrderByInput["account_ASC"] = "account_ASC";
974
+ GlvTokenBalanceOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
975
+ GlvTokenBalanceOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
976
+ GlvTokenBalanceOrderByInput["account_DESC"] = "account_DESC";
977
+ GlvTokenBalanceOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
978
+ GlvTokenBalanceOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
979
+ GlvTokenBalanceOrderByInput["balance_ASC"] = "balance_ASC";
980
+ GlvTokenBalanceOrderByInput["balance_ASC_NULLS_FIRST"] = "balance_ASC_NULLS_FIRST";
981
+ GlvTokenBalanceOrderByInput["balance_ASC_NULLS_LAST"] = "balance_ASC_NULLS_LAST";
982
+ GlvTokenBalanceOrderByInput["balance_DESC"] = "balance_DESC";
983
+ GlvTokenBalanceOrderByInput["balance_DESC_NULLS_FIRST"] = "balance_DESC_NULLS_FIRST";
984
+ GlvTokenBalanceOrderByInput["balance_DESC_NULLS_LAST"] = "balance_DESC_NULLS_LAST";
985
+ GlvTokenBalanceOrderByInput["cumulativeIncome_ASC"] = "cumulativeIncome_ASC";
986
+ GlvTokenBalanceOrderByInput["cumulativeIncome_ASC_NULLS_FIRST"] = "cumulativeIncome_ASC_NULLS_FIRST";
987
+ GlvTokenBalanceOrderByInput["cumulativeIncome_ASC_NULLS_LAST"] = "cumulativeIncome_ASC_NULLS_LAST";
988
+ GlvTokenBalanceOrderByInput["cumulativeIncome_DESC"] = "cumulativeIncome_DESC";
989
+ GlvTokenBalanceOrderByInput["cumulativeIncome_DESC_NULLS_FIRST"] = "cumulativeIncome_DESC_NULLS_FIRST";
990
+ GlvTokenBalanceOrderByInput["cumulativeIncome_DESC_NULLS_LAST"] = "cumulativeIncome_DESC_NULLS_LAST";
991
+ GlvTokenBalanceOrderByInput["entrySnapshot_ASC"] = "entrySnapshot_ASC";
992
+ GlvTokenBalanceOrderByInput["entrySnapshot_ASC_NULLS_FIRST"] = "entrySnapshot_ASC_NULLS_FIRST";
993
+ GlvTokenBalanceOrderByInput["entrySnapshot_ASC_NULLS_LAST"] = "entrySnapshot_ASC_NULLS_LAST";
994
+ GlvTokenBalanceOrderByInput["entrySnapshot_DESC"] = "entrySnapshot_DESC";
995
+ GlvTokenBalanceOrderByInput["entrySnapshot_DESC_NULLS_FIRST"] = "entrySnapshot_DESC_NULLS_FIRST";
996
+ GlvTokenBalanceOrderByInput["entrySnapshot_DESC_NULLS_LAST"] = "entrySnapshot_DESC_NULLS_LAST";
997
+ GlvTokenBalanceOrderByInput["glvAddress_ASC"] = "glvAddress_ASC";
998
+ GlvTokenBalanceOrderByInput["glvAddress_ASC_NULLS_FIRST"] = "glvAddress_ASC_NULLS_FIRST";
999
+ GlvTokenBalanceOrderByInput["glvAddress_ASC_NULLS_LAST"] = "glvAddress_ASC_NULLS_LAST";
1000
+ GlvTokenBalanceOrderByInput["glvAddress_DESC"] = "glvAddress_DESC";
1001
+ GlvTokenBalanceOrderByInput["glvAddress_DESC_NULLS_FIRST"] = "glvAddress_DESC_NULLS_FIRST";
1002
+ GlvTokenBalanceOrderByInput["glvAddress_DESC_NULLS_LAST"] = "glvAddress_DESC_NULLS_LAST";
1003
+ GlvTokenBalanceOrderByInput["id_ASC"] = "id_ASC";
1004
+ GlvTokenBalanceOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
1005
+ GlvTokenBalanceOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
1006
+ GlvTokenBalanceOrderByInput["id_DESC"] = "id_DESC";
1007
+ GlvTokenBalanceOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
1008
+ GlvTokenBalanceOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
1009
+ })(GlvTokenBalanceOrderByInput || (GlvTokenBalanceOrderByInput = {}));
746
1010
  export var MarketInfoOrderByInput;
747
1011
  (function (MarketInfoOrderByInput) {
748
1012
  MarketInfoOrderByInput["aboveOptimalUsageBorrowingFactorLong_ASC"] = "aboveOptimalUsageBorrowingFactorLong_ASC";
@@ -841,6 +1105,12 @@ export var MarketInfoOrderByInput;
841
1105
  MarketInfoOrderByInput["fundingIncreaseFactorPerSecond_DESC"] = "fundingIncreaseFactorPerSecond_DESC";
842
1106
  MarketInfoOrderByInput["fundingIncreaseFactorPerSecond_DESC_NULLS_FIRST"] = "fundingIncreaseFactorPerSecond_DESC_NULLS_FIRST";
843
1107
  MarketInfoOrderByInput["fundingIncreaseFactorPerSecond_DESC_NULLS_LAST"] = "fundingIncreaseFactorPerSecond_DESC_NULLS_LAST";
1108
+ MarketInfoOrderByInput["fundingUpdatedAt_ASC"] = "fundingUpdatedAt_ASC";
1109
+ MarketInfoOrderByInput["fundingUpdatedAt_ASC_NULLS_FIRST"] = "fundingUpdatedAt_ASC_NULLS_FIRST";
1110
+ MarketInfoOrderByInput["fundingUpdatedAt_ASC_NULLS_LAST"] = "fundingUpdatedAt_ASC_NULLS_LAST";
1111
+ MarketInfoOrderByInput["fundingUpdatedAt_DESC"] = "fundingUpdatedAt_DESC";
1112
+ MarketInfoOrderByInput["fundingUpdatedAt_DESC_NULLS_FIRST"] = "fundingUpdatedAt_DESC_NULLS_FIRST";
1113
+ MarketInfoOrderByInput["fundingUpdatedAt_DESC_NULLS_LAST"] = "fundingUpdatedAt_DESC_NULLS_LAST";
844
1114
  MarketInfoOrderByInput["id_ASC"] = "id_ASC";
845
1115
  MarketInfoOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
846
1116
  MarketInfoOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
@@ -931,12 +1201,18 @@ export var MarketInfoOrderByInput;
931
1201
  MarketInfoOrderByInput["marketTokenSupply_DESC"] = "marketTokenSupply_DESC";
932
1202
  MarketInfoOrderByInput["marketTokenSupply_DESC_NULLS_FIRST"] = "marketTokenSupply_DESC_NULLS_FIRST";
933
1203
  MarketInfoOrderByInput["marketTokenSupply_DESC_NULLS_LAST"] = "marketTokenSupply_DESC_NULLS_LAST";
934
- MarketInfoOrderByInput["maxFundingFactorPerSecond_ASC"] = "maxFundingFactorPerSecond_ASC";
935
- MarketInfoOrderByInput["maxFundingFactorPerSecond_ASC_NULLS_FIRST"] = "maxFundingFactorPerSecond_ASC_NULLS_FIRST";
936
- MarketInfoOrderByInput["maxFundingFactorPerSecond_ASC_NULLS_LAST"] = "maxFundingFactorPerSecond_ASC_NULLS_LAST";
937
- MarketInfoOrderByInput["maxFundingFactorPerSecond_DESC"] = "maxFundingFactorPerSecond_DESC";
938
- MarketInfoOrderByInput["maxFundingFactorPerSecond_DESC_NULLS_FIRST"] = "maxFundingFactorPerSecond_DESC_NULLS_FIRST";
939
- MarketInfoOrderByInput["maxFundingFactorPerSecond_DESC_NULLS_LAST"] = "maxFundingFactorPerSecond_DESC_NULLS_LAST";
1204
+ MarketInfoOrderByInput["maxFundingFactorPerSecondLong_ASC"] = "maxFundingFactorPerSecondLong_ASC";
1205
+ MarketInfoOrderByInput["maxFundingFactorPerSecondLong_ASC_NULLS_FIRST"] = "maxFundingFactorPerSecondLong_ASC_NULLS_FIRST";
1206
+ MarketInfoOrderByInput["maxFundingFactorPerSecondLong_ASC_NULLS_LAST"] = "maxFundingFactorPerSecondLong_ASC_NULLS_LAST";
1207
+ MarketInfoOrderByInput["maxFundingFactorPerSecondLong_DESC"] = "maxFundingFactorPerSecondLong_DESC";
1208
+ MarketInfoOrderByInput["maxFundingFactorPerSecondLong_DESC_NULLS_FIRST"] = "maxFundingFactorPerSecondLong_DESC_NULLS_FIRST";
1209
+ MarketInfoOrderByInput["maxFundingFactorPerSecondLong_DESC_NULLS_LAST"] = "maxFundingFactorPerSecondLong_DESC_NULLS_LAST";
1210
+ MarketInfoOrderByInput["maxFundingFactorPerSecondShort_ASC"] = "maxFundingFactorPerSecondShort_ASC";
1211
+ MarketInfoOrderByInput["maxFundingFactorPerSecondShort_ASC_NULLS_FIRST"] = "maxFundingFactorPerSecondShort_ASC_NULLS_FIRST";
1212
+ MarketInfoOrderByInput["maxFundingFactorPerSecondShort_ASC_NULLS_LAST"] = "maxFundingFactorPerSecondShort_ASC_NULLS_LAST";
1213
+ MarketInfoOrderByInput["maxFundingFactorPerSecondShort_DESC"] = "maxFundingFactorPerSecondShort_DESC";
1214
+ MarketInfoOrderByInput["maxFundingFactorPerSecondShort_DESC_NULLS_FIRST"] = "maxFundingFactorPerSecondShort_DESC_NULLS_FIRST";
1215
+ MarketInfoOrderByInput["maxFundingFactorPerSecondShort_DESC_NULLS_LAST"] = "maxFundingFactorPerSecondShort_DESC_NULLS_LAST";
940
1216
  MarketInfoOrderByInput["maxLendableImpactFactorForWithdrawals_ASC"] = "maxLendableImpactFactorForWithdrawals_ASC";
941
1217
  MarketInfoOrderByInput["maxLendableImpactFactorForWithdrawals_ASC_NULLS_FIRST"] = "maxLendableImpactFactorForWithdrawals_ASC_NULLS_FIRST";
942
1218
  MarketInfoOrderByInput["maxLendableImpactFactorForWithdrawals_ASC_NULLS_LAST"] = "maxLendableImpactFactorForWithdrawals_ASC_NULLS_LAST";
@@ -1021,6 +1297,12 @@ export var MarketInfoOrderByInput;
1021
1297
  MarketInfoOrderByInput["maxShortPoolUsdForDeposit_DESC"] = "maxShortPoolUsdForDeposit_DESC";
1022
1298
  MarketInfoOrderByInput["maxShortPoolUsdForDeposit_DESC_NULLS_FIRST"] = "maxShortPoolUsdForDeposit_DESC_NULLS_FIRST";
1023
1299
  MarketInfoOrderByInput["maxShortPoolUsdForDeposit_DESC_NULLS_LAST"] = "maxShortPoolUsdForDeposit_DESC_NULLS_LAST";
1300
+ MarketInfoOrderByInput["minCollateralFactorForLiquidation_ASC"] = "minCollateralFactorForLiquidation_ASC";
1301
+ MarketInfoOrderByInput["minCollateralFactorForLiquidation_ASC_NULLS_FIRST"] = "minCollateralFactorForLiquidation_ASC_NULLS_FIRST";
1302
+ MarketInfoOrderByInput["minCollateralFactorForLiquidation_ASC_NULLS_LAST"] = "minCollateralFactorForLiquidation_ASC_NULLS_LAST";
1303
+ MarketInfoOrderByInput["minCollateralFactorForLiquidation_DESC"] = "minCollateralFactorForLiquidation_DESC";
1304
+ MarketInfoOrderByInput["minCollateralFactorForLiquidation_DESC_NULLS_FIRST"] = "minCollateralFactorForLiquidation_DESC_NULLS_FIRST";
1305
+ MarketInfoOrderByInput["minCollateralFactorForLiquidation_DESC_NULLS_LAST"] = "minCollateralFactorForLiquidation_DESC_NULLS_LAST";
1024
1306
  MarketInfoOrderByInput["minCollateralFactorForOpenInterestLong_ASC"] = "minCollateralFactorForOpenInterestLong_ASC";
1025
1307
  MarketInfoOrderByInput["minCollateralFactorForOpenInterestLong_ASC_NULLS_FIRST"] = "minCollateralFactorForOpenInterestLong_ASC_NULLS_FIRST";
1026
1308
  MarketInfoOrderByInput["minCollateralFactorForOpenInterestLong_ASC_NULLS_LAST"] = "minCollateralFactorForOpenInterestLong_ASC_NULLS_LAST";
@@ -1039,12 +1321,24 @@ export var MarketInfoOrderByInput;
1039
1321
  MarketInfoOrderByInput["minCollateralFactor_DESC"] = "minCollateralFactor_DESC";
1040
1322
  MarketInfoOrderByInput["minCollateralFactor_DESC_NULLS_FIRST"] = "minCollateralFactor_DESC_NULLS_FIRST";
1041
1323
  MarketInfoOrderByInput["minCollateralFactor_DESC_NULLS_LAST"] = "minCollateralFactor_DESC_NULLS_LAST";
1042
- MarketInfoOrderByInput["minFundingFactorPerSecond_ASC"] = "minFundingFactorPerSecond_ASC";
1043
- MarketInfoOrderByInput["minFundingFactorPerSecond_ASC_NULLS_FIRST"] = "minFundingFactorPerSecond_ASC_NULLS_FIRST";
1044
- MarketInfoOrderByInput["minFundingFactorPerSecond_ASC_NULLS_LAST"] = "minFundingFactorPerSecond_ASC_NULLS_LAST";
1045
- MarketInfoOrderByInput["minFundingFactorPerSecond_DESC"] = "minFundingFactorPerSecond_DESC";
1046
- MarketInfoOrderByInput["minFundingFactorPerSecond_DESC_NULLS_FIRST"] = "minFundingFactorPerSecond_DESC_NULLS_FIRST";
1047
- MarketInfoOrderByInput["minFundingFactorPerSecond_DESC_NULLS_LAST"] = "minFundingFactorPerSecond_DESC_NULLS_LAST";
1324
+ MarketInfoOrderByInput["minFundingFactorPerSecondLong_ASC"] = "minFundingFactorPerSecondLong_ASC";
1325
+ MarketInfoOrderByInput["minFundingFactorPerSecondLong_ASC_NULLS_FIRST"] = "minFundingFactorPerSecondLong_ASC_NULLS_FIRST";
1326
+ MarketInfoOrderByInput["minFundingFactorPerSecondLong_ASC_NULLS_LAST"] = "minFundingFactorPerSecondLong_ASC_NULLS_LAST";
1327
+ MarketInfoOrderByInput["minFundingFactorPerSecondLong_DESC"] = "minFundingFactorPerSecondLong_DESC";
1328
+ MarketInfoOrderByInput["minFundingFactorPerSecondLong_DESC_NULLS_FIRST"] = "minFundingFactorPerSecondLong_DESC_NULLS_FIRST";
1329
+ MarketInfoOrderByInput["minFundingFactorPerSecondLong_DESC_NULLS_LAST"] = "minFundingFactorPerSecondLong_DESC_NULLS_LAST";
1330
+ MarketInfoOrderByInput["minFundingFactorPerSecondShort_ASC"] = "minFundingFactorPerSecondShort_ASC";
1331
+ MarketInfoOrderByInput["minFundingFactorPerSecondShort_ASC_NULLS_FIRST"] = "minFundingFactorPerSecondShort_ASC_NULLS_FIRST";
1332
+ MarketInfoOrderByInput["minFundingFactorPerSecondShort_ASC_NULLS_LAST"] = "minFundingFactorPerSecondShort_ASC_NULLS_LAST";
1333
+ MarketInfoOrderByInput["minFundingFactorPerSecondShort_DESC"] = "minFundingFactorPerSecondShort_DESC";
1334
+ MarketInfoOrderByInput["minFundingFactorPerSecondShort_DESC_NULLS_FIRST"] = "minFundingFactorPerSecondShort_DESC_NULLS_FIRST";
1335
+ MarketInfoOrderByInput["minFundingFactorPerSecondShort_DESC_NULLS_LAST"] = "minFundingFactorPerSecondShort_DESC_NULLS_LAST";
1336
+ MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_ASC"] = "minFundingIncreaseRatePerSecond_ASC";
1337
+ MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST"] = "minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST";
1338
+ MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_ASC_NULLS_LAST"] = "minFundingIncreaseRatePerSecond_ASC_NULLS_LAST";
1339
+ MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_DESC"] = "minFundingIncreaseRatePerSecond_DESC";
1340
+ MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST"] = "minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST";
1341
+ MarketInfoOrderByInput["minFundingIncreaseRatePerSecond_DESC_NULLS_LAST"] = "minFundingIncreaseRatePerSecond_DESC_NULLS_LAST";
1048
1342
  MarketInfoOrderByInput["minPositionImpactPoolAmount_ASC"] = "minPositionImpactPoolAmount_ASC";
1049
1343
  MarketInfoOrderByInput["minPositionImpactPoolAmount_ASC_NULLS_FIRST"] = "minPositionImpactPoolAmount_ASC_NULLS_FIRST";
1050
1344
  MarketInfoOrderByInput["minPositionImpactPoolAmount_ASC_NULLS_LAST"] = "minPositionImpactPoolAmount_ASC_NULLS_LAST";
@@ -1153,6 +1447,12 @@ export var MarketInfoOrderByInput;
1153
1447
  MarketInfoOrderByInput["reserveFactorShort_DESC"] = "reserveFactorShort_DESC";
1154
1448
  MarketInfoOrderByInput["reserveFactorShort_DESC_NULLS_FIRST"] = "reserveFactorShort_DESC_NULLS_FIRST";
1155
1449
  MarketInfoOrderByInput["reserveFactorShort_DESC_NULLS_LAST"] = "reserveFactorShort_DESC_NULLS_LAST";
1450
+ MarketInfoOrderByInput["savedFundingFactorPerSecond_ASC"] = "savedFundingFactorPerSecond_ASC";
1451
+ MarketInfoOrderByInput["savedFundingFactorPerSecond_ASC_NULLS_FIRST"] = "savedFundingFactorPerSecond_ASC_NULLS_FIRST";
1452
+ MarketInfoOrderByInput["savedFundingFactorPerSecond_ASC_NULLS_LAST"] = "savedFundingFactorPerSecond_ASC_NULLS_LAST";
1453
+ MarketInfoOrderByInput["savedFundingFactorPerSecond_DESC"] = "savedFundingFactorPerSecond_DESC";
1454
+ MarketInfoOrderByInput["savedFundingFactorPerSecond_DESC_NULLS_FIRST"] = "savedFundingFactorPerSecond_DESC_NULLS_FIRST";
1455
+ MarketInfoOrderByInput["savedFundingFactorPerSecond_DESC_NULLS_LAST"] = "savedFundingFactorPerSecond_DESC_NULLS_LAST";
1156
1456
  MarketInfoOrderByInput["shortOpenInterestInTokensUsingLongToken_ASC"] = "shortOpenInterestInTokensUsingLongToken_ASC";
1157
1457
  MarketInfoOrderByInput["shortOpenInterestInTokensUsingLongToken_ASC_NULLS_FIRST"] = "shortOpenInterestInTokensUsingLongToken_ASC_NULLS_FIRST";
1158
1458
  MarketInfoOrderByInput["shortOpenInterestInTokensUsingLongToken_ASC_NULLS_LAST"] = "shortOpenInterestInTokensUsingLongToken_ASC_NULLS_LAST";
@@ -1468,27 +1768,78 @@ export var MultichainFundingSendEventOrderByInput;
1468
1768
  MultichainFundingSendEventOrderByInput["txn_DESC_NULLS_FIRST"] = "txn_DESC_NULLS_FIRST";
1469
1769
  MultichainFundingSendEventOrderByInput["txn_DESC_NULLS_LAST"] = "txn_DESC_NULLS_LAST";
1470
1770
  })(MultichainFundingSendEventOrderByInput || (MultichainFundingSendEventOrderByInput = {}));
1471
- export var MultichainMetadataOrderByInput;
1472
- (function (MultichainMetadataOrderByInput) {
1473
- MultichainMetadataOrderByInput["id_ASC"] = "id_ASC";
1474
- MultichainMetadataOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
1475
- MultichainMetadataOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
1476
- MultichainMetadataOrderByInput["id_DESC"] = "id_DESC";
1477
- MultichainMetadataOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
1478
- MultichainMetadataOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
1479
- MultichainMetadataOrderByInput["lastBlockNumber_ASC"] = "lastBlockNumber_ASC";
1480
- MultichainMetadataOrderByInput["lastBlockNumber_ASC_NULLS_FIRST"] = "lastBlockNumber_ASC_NULLS_FIRST";
1481
- MultichainMetadataOrderByInput["lastBlockNumber_ASC_NULLS_LAST"] = "lastBlockNumber_ASC_NULLS_LAST";
1482
- MultichainMetadataOrderByInput["lastBlockNumber_DESC"] = "lastBlockNumber_DESC";
1483
- MultichainMetadataOrderByInput["lastBlockNumber_DESC_NULLS_FIRST"] = "lastBlockNumber_DESC_NULLS_FIRST";
1484
- MultichainMetadataOrderByInput["lastBlockNumber_DESC_NULLS_LAST"] = "lastBlockNumber_DESC_NULLS_LAST";
1485
- MultichainMetadataOrderByInput["lastBlockTimestamp_ASC"] = "lastBlockTimestamp_ASC";
1486
- MultichainMetadataOrderByInput["lastBlockTimestamp_ASC_NULLS_FIRST"] = "lastBlockTimestamp_ASC_NULLS_FIRST";
1487
- MultichainMetadataOrderByInput["lastBlockTimestamp_ASC_NULLS_LAST"] = "lastBlockTimestamp_ASC_NULLS_LAST";
1488
- MultichainMetadataOrderByInput["lastBlockTimestamp_DESC"] = "lastBlockTimestamp_DESC";
1489
- MultichainMetadataOrderByInput["lastBlockTimestamp_DESC_NULLS_FIRST"] = "lastBlockTimestamp_DESC_NULLS_FIRST";
1490
- MultichainMetadataOrderByInput["lastBlockTimestamp_DESC_NULLS_LAST"] = "lastBlockTimestamp_DESC_NULLS_LAST";
1491
- })(MultichainMetadataOrderByInput || (MultichainMetadataOrderByInput = {}));
1771
+ export var MultichainSamechainFundingEventOrderByInput;
1772
+ (function (MultichainSamechainFundingEventOrderByInput) {
1773
+ MultichainSamechainFundingEventOrderByInput["account_ASC"] = "account_ASC";
1774
+ MultichainSamechainFundingEventOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
1775
+ MultichainSamechainFundingEventOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
1776
+ MultichainSamechainFundingEventOrderByInput["account_DESC"] = "account_DESC";
1777
+ MultichainSamechainFundingEventOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
1778
+ MultichainSamechainFundingEventOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
1779
+ MultichainSamechainFundingEventOrderByInput["amount_ASC"] = "amount_ASC";
1780
+ MultichainSamechainFundingEventOrderByInput["amount_ASC_NULLS_FIRST"] = "amount_ASC_NULLS_FIRST";
1781
+ MultichainSamechainFundingEventOrderByInput["amount_ASC_NULLS_LAST"] = "amount_ASC_NULLS_LAST";
1782
+ MultichainSamechainFundingEventOrderByInput["amount_DESC"] = "amount_DESC";
1783
+ MultichainSamechainFundingEventOrderByInput["amount_DESC_NULLS_FIRST"] = "amount_DESC_NULLS_FIRST";
1784
+ MultichainSamechainFundingEventOrderByInput["amount_DESC_NULLS_LAST"] = "amount_DESC_NULLS_LAST";
1785
+ MultichainSamechainFundingEventOrderByInput["id_ASC"] = "id_ASC";
1786
+ MultichainSamechainFundingEventOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
1787
+ MultichainSamechainFundingEventOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
1788
+ MultichainSamechainFundingEventOrderByInput["id_DESC"] = "id_DESC";
1789
+ MultichainSamechainFundingEventOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
1790
+ MultichainSamechainFundingEventOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
1791
+ MultichainSamechainFundingEventOrderByInput["operation_ASC"] = "operation_ASC";
1792
+ MultichainSamechainFundingEventOrderByInput["operation_ASC_NULLS_FIRST"] = "operation_ASC_NULLS_FIRST";
1793
+ MultichainSamechainFundingEventOrderByInput["operation_ASC_NULLS_LAST"] = "operation_ASC_NULLS_LAST";
1794
+ MultichainSamechainFundingEventOrderByInput["operation_DESC"] = "operation_DESC";
1795
+ MultichainSamechainFundingEventOrderByInput["operation_DESC_NULLS_FIRST"] = "operation_DESC_NULLS_FIRST";
1796
+ MultichainSamechainFundingEventOrderByInput["operation_DESC_NULLS_LAST"] = "operation_DESC_NULLS_LAST";
1797
+ MultichainSamechainFundingEventOrderByInput["timestamp_ASC"] = "timestamp_ASC";
1798
+ MultichainSamechainFundingEventOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
1799
+ MultichainSamechainFundingEventOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
1800
+ MultichainSamechainFundingEventOrderByInput["timestamp_DESC"] = "timestamp_DESC";
1801
+ MultichainSamechainFundingEventOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
1802
+ MultichainSamechainFundingEventOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
1803
+ MultichainSamechainFundingEventOrderByInput["token_ASC"] = "token_ASC";
1804
+ MultichainSamechainFundingEventOrderByInput["token_ASC_NULLS_FIRST"] = "token_ASC_NULLS_FIRST";
1805
+ MultichainSamechainFundingEventOrderByInput["token_ASC_NULLS_LAST"] = "token_ASC_NULLS_LAST";
1806
+ MultichainSamechainFundingEventOrderByInput["token_DESC"] = "token_DESC";
1807
+ MultichainSamechainFundingEventOrderByInput["token_DESC_NULLS_FIRST"] = "token_DESC_NULLS_FIRST";
1808
+ MultichainSamechainFundingEventOrderByInput["token_DESC_NULLS_LAST"] = "token_DESC_NULLS_LAST";
1809
+ MultichainSamechainFundingEventOrderByInput["txHash_ASC"] = "txHash_ASC";
1810
+ MultichainSamechainFundingEventOrderByInput["txHash_ASC_NULLS_FIRST"] = "txHash_ASC_NULLS_FIRST";
1811
+ MultichainSamechainFundingEventOrderByInput["txHash_ASC_NULLS_LAST"] = "txHash_ASC_NULLS_LAST";
1812
+ MultichainSamechainFundingEventOrderByInput["txHash_DESC"] = "txHash_DESC";
1813
+ MultichainSamechainFundingEventOrderByInput["txHash_DESC_NULLS_FIRST"] = "txHash_DESC_NULLS_FIRST";
1814
+ MultichainSamechainFundingEventOrderByInput["txHash_DESC_NULLS_LAST"] = "txHash_DESC_NULLS_LAST";
1815
+ })(MultichainSamechainFundingEventOrderByInput || (MultichainSamechainFundingEventOrderByInput = {}));
1816
+ export var NetworkStakingPowerOrderByInput;
1817
+ (function (NetworkStakingPowerOrderByInput) {
1818
+ NetworkStakingPowerOrderByInput["id_ASC"] = "id_ASC";
1819
+ NetworkStakingPowerOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
1820
+ NetworkStakingPowerOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
1821
+ NetworkStakingPowerOrderByInput["id_DESC"] = "id_DESC";
1822
+ NetworkStakingPowerOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
1823
+ NetworkStakingPowerOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
1824
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_ASC"] = "lastUpdateTimestamp_ASC";
1825
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_FIRST"] = "lastUpdateTimestamp_ASC_NULLS_FIRST";
1826
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_LAST"] = "lastUpdateTimestamp_ASC_NULLS_LAST";
1827
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_DESC"] = "lastUpdateTimestamp_DESC";
1828
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_FIRST"] = "lastUpdateTimestamp_DESC_NULLS_FIRST";
1829
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_LAST"] = "lastUpdateTimestamp_DESC_NULLS_LAST";
1830
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_ASC"] = "totalAccumulatedPower_ASC";
1831
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_ASC_NULLS_FIRST"] = "totalAccumulatedPower_ASC_NULLS_FIRST";
1832
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_ASC_NULLS_LAST"] = "totalAccumulatedPower_ASC_NULLS_LAST";
1833
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_DESC"] = "totalAccumulatedPower_DESC";
1834
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_DESC_NULLS_FIRST"] = "totalAccumulatedPower_DESC_NULLS_FIRST";
1835
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_DESC_NULLS_LAST"] = "totalAccumulatedPower_DESC_NULLS_LAST";
1836
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_ASC"] = "totalCurrentStaked_ASC";
1837
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_ASC_NULLS_FIRST"] = "totalCurrentStaked_ASC_NULLS_FIRST";
1838
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_ASC_NULLS_LAST"] = "totalCurrentStaked_ASC_NULLS_LAST";
1839
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_DESC"] = "totalCurrentStaked_DESC";
1840
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_DESC_NULLS_FIRST"] = "totalCurrentStaked_DESC_NULLS_FIRST";
1841
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_DESC_NULLS_LAST"] = "totalCurrentStaked_DESC_NULLS_LAST";
1842
+ })(NetworkStakingPowerOrderByInput || (NetworkStakingPowerOrderByInput = {}));
1492
1843
  export var OnChainSettingOrderByInput;
1493
1844
  (function (OnChainSettingOrderByInput) {
1494
1845
  OnChainSettingOrderByInput["id_ASC"] = "id_ASC";
@@ -1561,138 +1912,30 @@ export var OrderOrderByInput;
1561
1912
  OrderOrderByInput["cancelledReason_DESC"] = "cancelledReason_DESC";
1562
1913
  OrderOrderByInput["cancelledReason_DESC_NULLS_FIRST"] = "cancelledReason_DESC_NULLS_FIRST";
1563
1914
  OrderOrderByInput["cancelledReason_DESC_NULLS_LAST"] = "cancelledReason_DESC_NULLS_LAST";
1564
- OrderOrderByInput["cancelledTxn_blockNumber_ASC"] = "cancelledTxn_blockNumber_ASC";
1565
- OrderOrderByInput["cancelledTxn_blockNumber_ASC_NULLS_FIRST"] = "cancelledTxn_blockNumber_ASC_NULLS_FIRST";
1566
- OrderOrderByInput["cancelledTxn_blockNumber_ASC_NULLS_LAST"] = "cancelledTxn_blockNumber_ASC_NULLS_LAST";
1567
- OrderOrderByInput["cancelledTxn_blockNumber_DESC"] = "cancelledTxn_blockNumber_DESC";
1568
- OrderOrderByInput["cancelledTxn_blockNumber_DESC_NULLS_FIRST"] = "cancelledTxn_blockNumber_DESC_NULLS_FIRST";
1569
- OrderOrderByInput["cancelledTxn_blockNumber_DESC_NULLS_LAST"] = "cancelledTxn_blockNumber_DESC_NULLS_LAST";
1570
- OrderOrderByInput["cancelledTxn_from_ASC"] = "cancelledTxn_from_ASC";
1571
- OrderOrderByInput["cancelledTxn_from_ASC_NULLS_FIRST"] = "cancelledTxn_from_ASC_NULLS_FIRST";
1572
- OrderOrderByInput["cancelledTxn_from_ASC_NULLS_LAST"] = "cancelledTxn_from_ASC_NULLS_LAST";
1573
- OrderOrderByInput["cancelledTxn_from_DESC"] = "cancelledTxn_from_DESC";
1574
- OrderOrderByInput["cancelledTxn_from_DESC_NULLS_FIRST"] = "cancelledTxn_from_DESC_NULLS_FIRST";
1575
- OrderOrderByInput["cancelledTxn_from_DESC_NULLS_LAST"] = "cancelledTxn_from_DESC_NULLS_LAST";
1576
- OrderOrderByInput["cancelledTxn_hash_ASC"] = "cancelledTxn_hash_ASC";
1577
- OrderOrderByInput["cancelledTxn_hash_ASC_NULLS_FIRST"] = "cancelledTxn_hash_ASC_NULLS_FIRST";
1578
- OrderOrderByInput["cancelledTxn_hash_ASC_NULLS_LAST"] = "cancelledTxn_hash_ASC_NULLS_LAST";
1579
- OrderOrderByInput["cancelledTxn_hash_DESC"] = "cancelledTxn_hash_DESC";
1580
- OrderOrderByInput["cancelledTxn_hash_DESC_NULLS_FIRST"] = "cancelledTxn_hash_DESC_NULLS_FIRST";
1581
- OrderOrderByInput["cancelledTxn_hash_DESC_NULLS_LAST"] = "cancelledTxn_hash_DESC_NULLS_LAST";
1582
- OrderOrderByInput["cancelledTxn_id_ASC"] = "cancelledTxn_id_ASC";
1583
- OrderOrderByInput["cancelledTxn_id_ASC_NULLS_FIRST"] = "cancelledTxn_id_ASC_NULLS_FIRST";
1584
- OrderOrderByInput["cancelledTxn_id_ASC_NULLS_LAST"] = "cancelledTxn_id_ASC_NULLS_LAST";
1585
- OrderOrderByInput["cancelledTxn_id_DESC"] = "cancelledTxn_id_DESC";
1586
- OrderOrderByInput["cancelledTxn_id_DESC_NULLS_FIRST"] = "cancelledTxn_id_DESC_NULLS_FIRST";
1587
- OrderOrderByInput["cancelledTxn_id_DESC_NULLS_LAST"] = "cancelledTxn_id_DESC_NULLS_LAST";
1588
- OrderOrderByInput["cancelledTxn_timestamp_ASC"] = "cancelledTxn_timestamp_ASC";
1589
- OrderOrderByInput["cancelledTxn_timestamp_ASC_NULLS_FIRST"] = "cancelledTxn_timestamp_ASC_NULLS_FIRST";
1590
- OrderOrderByInput["cancelledTxn_timestamp_ASC_NULLS_LAST"] = "cancelledTxn_timestamp_ASC_NULLS_LAST";
1591
- OrderOrderByInput["cancelledTxn_timestamp_DESC"] = "cancelledTxn_timestamp_DESC";
1592
- OrderOrderByInput["cancelledTxn_timestamp_DESC_NULLS_FIRST"] = "cancelledTxn_timestamp_DESC_NULLS_FIRST";
1593
- OrderOrderByInput["cancelledTxn_timestamp_DESC_NULLS_LAST"] = "cancelledTxn_timestamp_DESC_NULLS_LAST";
1594
- OrderOrderByInput["cancelledTxn_to_ASC"] = "cancelledTxn_to_ASC";
1595
- OrderOrderByInput["cancelledTxn_to_ASC_NULLS_FIRST"] = "cancelledTxn_to_ASC_NULLS_FIRST";
1596
- OrderOrderByInput["cancelledTxn_to_ASC_NULLS_LAST"] = "cancelledTxn_to_ASC_NULLS_LAST";
1597
- OrderOrderByInput["cancelledTxn_to_DESC"] = "cancelledTxn_to_DESC";
1598
- OrderOrderByInput["cancelledTxn_to_DESC_NULLS_FIRST"] = "cancelledTxn_to_DESC_NULLS_FIRST";
1599
- OrderOrderByInput["cancelledTxn_to_DESC_NULLS_LAST"] = "cancelledTxn_to_DESC_NULLS_LAST";
1600
- OrderOrderByInput["cancelledTxn_transactionIndex_ASC"] = "cancelledTxn_transactionIndex_ASC";
1601
- OrderOrderByInput["cancelledTxn_transactionIndex_ASC_NULLS_FIRST"] = "cancelledTxn_transactionIndex_ASC_NULLS_FIRST";
1602
- OrderOrderByInput["cancelledTxn_transactionIndex_ASC_NULLS_LAST"] = "cancelledTxn_transactionIndex_ASC_NULLS_LAST";
1603
- OrderOrderByInput["cancelledTxn_transactionIndex_DESC"] = "cancelledTxn_transactionIndex_DESC";
1604
- OrderOrderByInput["cancelledTxn_transactionIndex_DESC_NULLS_FIRST"] = "cancelledTxn_transactionIndex_DESC_NULLS_FIRST";
1605
- OrderOrderByInput["cancelledTxn_transactionIndex_DESC_NULLS_LAST"] = "cancelledTxn_transactionIndex_DESC_NULLS_LAST";
1606
- OrderOrderByInput["createdTxn_blockNumber_ASC"] = "createdTxn_blockNumber_ASC";
1607
- OrderOrderByInput["createdTxn_blockNumber_ASC_NULLS_FIRST"] = "createdTxn_blockNumber_ASC_NULLS_FIRST";
1608
- OrderOrderByInput["createdTxn_blockNumber_ASC_NULLS_LAST"] = "createdTxn_blockNumber_ASC_NULLS_LAST";
1609
- OrderOrderByInput["createdTxn_blockNumber_DESC"] = "createdTxn_blockNumber_DESC";
1610
- OrderOrderByInput["createdTxn_blockNumber_DESC_NULLS_FIRST"] = "createdTxn_blockNumber_DESC_NULLS_FIRST";
1611
- OrderOrderByInput["createdTxn_blockNumber_DESC_NULLS_LAST"] = "createdTxn_blockNumber_DESC_NULLS_LAST";
1612
- OrderOrderByInput["createdTxn_from_ASC"] = "createdTxn_from_ASC";
1613
- OrderOrderByInput["createdTxn_from_ASC_NULLS_FIRST"] = "createdTxn_from_ASC_NULLS_FIRST";
1614
- OrderOrderByInput["createdTxn_from_ASC_NULLS_LAST"] = "createdTxn_from_ASC_NULLS_LAST";
1615
- OrderOrderByInput["createdTxn_from_DESC"] = "createdTxn_from_DESC";
1616
- OrderOrderByInput["createdTxn_from_DESC_NULLS_FIRST"] = "createdTxn_from_DESC_NULLS_FIRST";
1617
- OrderOrderByInput["createdTxn_from_DESC_NULLS_LAST"] = "createdTxn_from_DESC_NULLS_LAST";
1618
- OrderOrderByInput["createdTxn_hash_ASC"] = "createdTxn_hash_ASC";
1619
- OrderOrderByInput["createdTxn_hash_ASC_NULLS_FIRST"] = "createdTxn_hash_ASC_NULLS_FIRST";
1620
- OrderOrderByInput["createdTxn_hash_ASC_NULLS_LAST"] = "createdTxn_hash_ASC_NULLS_LAST";
1621
- OrderOrderByInput["createdTxn_hash_DESC"] = "createdTxn_hash_DESC";
1622
- OrderOrderByInput["createdTxn_hash_DESC_NULLS_FIRST"] = "createdTxn_hash_DESC_NULLS_FIRST";
1623
- OrderOrderByInput["createdTxn_hash_DESC_NULLS_LAST"] = "createdTxn_hash_DESC_NULLS_LAST";
1624
- OrderOrderByInput["createdTxn_id_ASC"] = "createdTxn_id_ASC";
1625
- OrderOrderByInput["createdTxn_id_ASC_NULLS_FIRST"] = "createdTxn_id_ASC_NULLS_FIRST";
1626
- OrderOrderByInput["createdTxn_id_ASC_NULLS_LAST"] = "createdTxn_id_ASC_NULLS_LAST";
1627
- OrderOrderByInput["createdTxn_id_DESC"] = "createdTxn_id_DESC";
1628
- OrderOrderByInput["createdTxn_id_DESC_NULLS_FIRST"] = "createdTxn_id_DESC_NULLS_FIRST";
1629
- OrderOrderByInput["createdTxn_id_DESC_NULLS_LAST"] = "createdTxn_id_DESC_NULLS_LAST";
1630
- OrderOrderByInput["createdTxn_timestamp_ASC"] = "createdTxn_timestamp_ASC";
1631
- OrderOrderByInput["createdTxn_timestamp_ASC_NULLS_FIRST"] = "createdTxn_timestamp_ASC_NULLS_FIRST";
1632
- OrderOrderByInput["createdTxn_timestamp_ASC_NULLS_LAST"] = "createdTxn_timestamp_ASC_NULLS_LAST";
1633
- OrderOrderByInput["createdTxn_timestamp_DESC"] = "createdTxn_timestamp_DESC";
1634
- OrderOrderByInput["createdTxn_timestamp_DESC_NULLS_FIRST"] = "createdTxn_timestamp_DESC_NULLS_FIRST";
1635
- OrderOrderByInput["createdTxn_timestamp_DESC_NULLS_LAST"] = "createdTxn_timestamp_DESC_NULLS_LAST";
1636
- OrderOrderByInput["createdTxn_to_ASC"] = "createdTxn_to_ASC";
1637
- OrderOrderByInput["createdTxn_to_ASC_NULLS_FIRST"] = "createdTxn_to_ASC_NULLS_FIRST";
1638
- OrderOrderByInput["createdTxn_to_ASC_NULLS_LAST"] = "createdTxn_to_ASC_NULLS_LAST";
1639
- OrderOrderByInput["createdTxn_to_DESC"] = "createdTxn_to_DESC";
1640
- OrderOrderByInput["createdTxn_to_DESC_NULLS_FIRST"] = "createdTxn_to_DESC_NULLS_FIRST";
1641
- OrderOrderByInput["createdTxn_to_DESC_NULLS_LAST"] = "createdTxn_to_DESC_NULLS_LAST";
1642
- OrderOrderByInput["createdTxn_transactionIndex_ASC"] = "createdTxn_transactionIndex_ASC";
1643
- OrderOrderByInput["createdTxn_transactionIndex_ASC_NULLS_FIRST"] = "createdTxn_transactionIndex_ASC_NULLS_FIRST";
1644
- OrderOrderByInput["createdTxn_transactionIndex_ASC_NULLS_LAST"] = "createdTxn_transactionIndex_ASC_NULLS_LAST";
1645
- OrderOrderByInput["createdTxn_transactionIndex_DESC"] = "createdTxn_transactionIndex_DESC";
1646
- OrderOrderByInput["createdTxn_transactionIndex_DESC_NULLS_FIRST"] = "createdTxn_transactionIndex_DESC_NULLS_FIRST";
1647
- OrderOrderByInput["createdTxn_transactionIndex_DESC_NULLS_LAST"] = "createdTxn_transactionIndex_DESC_NULLS_LAST";
1915
+ OrderOrderByInput["cancelledTxnHash_ASC"] = "cancelledTxnHash_ASC";
1916
+ OrderOrderByInput["cancelledTxnHash_ASC_NULLS_FIRST"] = "cancelledTxnHash_ASC_NULLS_FIRST";
1917
+ OrderOrderByInput["cancelledTxnHash_ASC_NULLS_LAST"] = "cancelledTxnHash_ASC_NULLS_LAST";
1918
+ OrderOrderByInput["cancelledTxnHash_DESC"] = "cancelledTxnHash_DESC";
1919
+ OrderOrderByInput["cancelledTxnHash_DESC_NULLS_FIRST"] = "cancelledTxnHash_DESC_NULLS_FIRST";
1920
+ OrderOrderByInput["cancelledTxnHash_DESC_NULLS_LAST"] = "cancelledTxnHash_DESC_NULLS_LAST";
1921
+ OrderOrderByInput["createdTxnHash_ASC"] = "createdTxnHash_ASC";
1922
+ OrderOrderByInput["createdTxnHash_ASC_NULLS_FIRST"] = "createdTxnHash_ASC_NULLS_FIRST";
1923
+ OrderOrderByInput["createdTxnHash_ASC_NULLS_LAST"] = "createdTxnHash_ASC_NULLS_LAST";
1924
+ OrderOrderByInput["createdTxnHash_DESC"] = "createdTxnHash_DESC";
1925
+ OrderOrderByInput["createdTxnHash_DESC_NULLS_FIRST"] = "createdTxnHash_DESC_NULLS_FIRST";
1926
+ OrderOrderByInput["createdTxnHash_DESC_NULLS_LAST"] = "createdTxnHash_DESC_NULLS_LAST";
1648
1927
  OrderOrderByInput["decreasePositionSwapType_ASC"] = "decreasePositionSwapType_ASC";
1649
1928
  OrderOrderByInput["decreasePositionSwapType_ASC_NULLS_FIRST"] = "decreasePositionSwapType_ASC_NULLS_FIRST";
1650
1929
  OrderOrderByInput["decreasePositionSwapType_ASC_NULLS_LAST"] = "decreasePositionSwapType_ASC_NULLS_LAST";
1651
1930
  OrderOrderByInput["decreasePositionSwapType_DESC"] = "decreasePositionSwapType_DESC";
1652
1931
  OrderOrderByInput["decreasePositionSwapType_DESC_NULLS_FIRST"] = "decreasePositionSwapType_DESC_NULLS_FIRST";
1653
1932
  OrderOrderByInput["decreasePositionSwapType_DESC_NULLS_LAST"] = "decreasePositionSwapType_DESC_NULLS_LAST";
1654
- OrderOrderByInput["executedTxn_blockNumber_ASC"] = "executedTxn_blockNumber_ASC";
1655
- OrderOrderByInput["executedTxn_blockNumber_ASC_NULLS_FIRST"] = "executedTxn_blockNumber_ASC_NULLS_FIRST";
1656
- OrderOrderByInput["executedTxn_blockNumber_ASC_NULLS_LAST"] = "executedTxn_blockNumber_ASC_NULLS_LAST";
1657
- OrderOrderByInput["executedTxn_blockNumber_DESC"] = "executedTxn_blockNumber_DESC";
1658
- OrderOrderByInput["executedTxn_blockNumber_DESC_NULLS_FIRST"] = "executedTxn_blockNumber_DESC_NULLS_FIRST";
1659
- OrderOrderByInput["executedTxn_blockNumber_DESC_NULLS_LAST"] = "executedTxn_blockNumber_DESC_NULLS_LAST";
1660
- OrderOrderByInput["executedTxn_from_ASC"] = "executedTxn_from_ASC";
1661
- OrderOrderByInput["executedTxn_from_ASC_NULLS_FIRST"] = "executedTxn_from_ASC_NULLS_FIRST";
1662
- OrderOrderByInput["executedTxn_from_ASC_NULLS_LAST"] = "executedTxn_from_ASC_NULLS_LAST";
1663
- OrderOrderByInput["executedTxn_from_DESC"] = "executedTxn_from_DESC";
1664
- OrderOrderByInput["executedTxn_from_DESC_NULLS_FIRST"] = "executedTxn_from_DESC_NULLS_FIRST";
1665
- OrderOrderByInput["executedTxn_from_DESC_NULLS_LAST"] = "executedTxn_from_DESC_NULLS_LAST";
1666
- OrderOrderByInput["executedTxn_hash_ASC"] = "executedTxn_hash_ASC";
1667
- OrderOrderByInput["executedTxn_hash_ASC_NULLS_FIRST"] = "executedTxn_hash_ASC_NULLS_FIRST";
1668
- OrderOrderByInput["executedTxn_hash_ASC_NULLS_LAST"] = "executedTxn_hash_ASC_NULLS_LAST";
1669
- OrderOrderByInput["executedTxn_hash_DESC"] = "executedTxn_hash_DESC";
1670
- OrderOrderByInput["executedTxn_hash_DESC_NULLS_FIRST"] = "executedTxn_hash_DESC_NULLS_FIRST";
1671
- OrderOrderByInput["executedTxn_hash_DESC_NULLS_LAST"] = "executedTxn_hash_DESC_NULLS_LAST";
1672
- OrderOrderByInput["executedTxn_id_ASC"] = "executedTxn_id_ASC";
1673
- OrderOrderByInput["executedTxn_id_ASC_NULLS_FIRST"] = "executedTxn_id_ASC_NULLS_FIRST";
1674
- OrderOrderByInput["executedTxn_id_ASC_NULLS_LAST"] = "executedTxn_id_ASC_NULLS_LAST";
1675
- OrderOrderByInput["executedTxn_id_DESC"] = "executedTxn_id_DESC";
1676
- OrderOrderByInput["executedTxn_id_DESC_NULLS_FIRST"] = "executedTxn_id_DESC_NULLS_FIRST";
1677
- OrderOrderByInput["executedTxn_id_DESC_NULLS_LAST"] = "executedTxn_id_DESC_NULLS_LAST";
1678
- OrderOrderByInput["executedTxn_timestamp_ASC"] = "executedTxn_timestamp_ASC";
1679
- OrderOrderByInput["executedTxn_timestamp_ASC_NULLS_FIRST"] = "executedTxn_timestamp_ASC_NULLS_FIRST";
1680
- OrderOrderByInput["executedTxn_timestamp_ASC_NULLS_LAST"] = "executedTxn_timestamp_ASC_NULLS_LAST";
1681
- OrderOrderByInput["executedTxn_timestamp_DESC"] = "executedTxn_timestamp_DESC";
1682
- OrderOrderByInput["executedTxn_timestamp_DESC_NULLS_FIRST"] = "executedTxn_timestamp_DESC_NULLS_FIRST";
1683
- OrderOrderByInput["executedTxn_timestamp_DESC_NULLS_LAST"] = "executedTxn_timestamp_DESC_NULLS_LAST";
1684
- OrderOrderByInput["executedTxn_to_ASC"] = "executedTxn_to_ASC";
1685
- OrderOrderByInput["executedTxn_to_ASC_NULLS_FIRST"] = "executedTxn_to_ASC_NULLS_FIRST";
1686
- OrderOrderByInput["executedTxn_to_ASC_NULLS_LAST"] = "executedTxn_to_ASC_NULLS_LAST";
1687
- OrderOrderByInput["executedTxn_to_DESC"] = "executedTxn_to_DESC";
1688
- OrderOrderByInput["executedTxn_to_DESC_NULLS_FIRST"] = "executedTxn_to_DESC_NULLS_FIRST";
1689
- OrderOrderByInput["executedTxn_to_DESC_NULLS_LAST"] = "executedTxn_to_DESC_NULLS_LAST";
1690
- OrderOrderByInput["executedTxn_transactionIndex_ASC"] = "executedTxn_transactionIndex_ASC";
1691
- OrderOrderByInput["executedTxn_transactionIndex_ASC_NULLS_FIRST"] = "executedTxn_transactionIndex_ASC_NULLS_FIRST";
1692
- OrderOrderByInput["executedTxn_transactionIndex_ASC_NULLS_LAST"] = "executedTxn_transactionIndex_ASC_NULLS_LAST";
1693
- OrderOrderByInput["executedTxn_transactionIndex_DESC"] = "executedTxn_transactionIndex_DESC";
1694
- OrderOrderByInput["executedTxn_transactionIndex_DESC_NULLS_FIRST"] = "executedTxn_transactionIndex_DESC_NULLS_FIRST";
1695
- OrderOrderByInput["executedTxn_transactionIndex_DESC_NULLS_LAST"] = "executedTxn_transactionIndex_DESC_NULLS_LAST";
1933
+ OrderOrderByInput["executedTxnHash_ASC"] = "executedTxnHash_ASC";
1934
+ OrderOrderByInput["executedTxnHash_ASC_NULLS_FIRST"] = "executedTxnHash_ASC_NULLS_FIRST";
1935
+ OrderOrderByInput["executedTxnHash_ASC_NULLS_LAST"] = "executedTxnHash_ASC_NULLS_LAST";
1936
+ OrderOrderByInput["executedTxnHash_DESC"] = "executedTxnHash_DESC";
1937
+ OrderOrderByInput["executedTxnHash_DESC_NULLS_FIRST"] = "executedTxnHash_DESC_NULLS_FIRST";
1938
+ OrderOrderByInput["executedTxnHash_DESC_NULLS_LAST"] = "executedTxnHash_DESC_NULLS_LAST";
1696
1939
  OrderOrderByInput["executionFee_ASC"] = "executionFee_ASC";
1697
1940
  OrderOrderByInput["executionFee_ASC_NULLS_FIRST"] = "executionFee_ASC_NULLS_FIRST";
1698
1941
  OrderOrderByInput["executionFee_ASC_NULLS_LAST"] = "executionFee_ASC_NULLS_LAST";
@@ -1801,6 +2044,12 @@ export var OrderOrderByInput;
1801
2044
  OrderOrderByInput["twapGroupId_DESC"] = "twapGroupId_DESC";
1802
2045
  OrderOrderByInput["twapGroupId_DESC_NULLS_FIRST"] = "twapGroupId_DESC_NULLS_FIRST";
1803
2046
  OrderOrderByInput["twapGroupId_DESC_NULLS_LAST"] = "twapGroupId_DESC_NULLS_LAST";
2047
+ OrderOrderByInput["uiFeeFactor_ASC"] = "uiFeeFactor_ASC";
2048
+ OrderOrderByInput["uiFeeFactor_ASC_NULLS_FIRST"] = "uiFeeFactor_ASC_NULLS_FIRST";
2049
+ OrderOrderByInput["uiFeeFactor_ASC_NULLS_LAST"] = "uiFeeFactor_ASC_NULLS_LAST";
2050
+ OrderOrderByInput["uiFeeFactor_DESC"] = "uiFeeFactor_DESC";
2051
+ OrderOrderByInput["uiFeeFactor_DESC_NULLS_FIRST"] = "uiFeeFactor_DESC_NULLS_FIRST";
2052
+ OrderOrderByInput["uiFeeFactor_DESC_NULLS_LAST"] = "uiFeeFactor_DESC_NULLS_LAST";
1804
2053
  OrderOrderByInput["uiFeeReceiver_ASC"] = "uiFeeReceiver_ASC";
1805
2054
  OrderOrderByInput["uiFeeReceiver_ASC_NULLS_FIRST"] = "uiFeeReceiver_ASC_NULLS_FIRST";
1806
2055
  OrderOrderByInput["uiFeeReceiver_ASC_NULLS_LAST"] = "uiFeeReceiver_ASC_NULLS_LAST";
@@ -2027,6 +2276,12 @@ export var PositionChangeOrderByInput;
2027
2276
  PositionChangeOrderByInput["sizeInUsd_DESC"] = "sizeInUsd_DESC";
2028
2277
  PositionChangeOrderByInput["sizeInUsd_DESC_NULLS_FIRST"] = "sizeInUsd_DESC_NULLS_FIRST";
2029
2278
  PositionChangeOrderByInput["sizeInUsd_DESC_NULLS_LAST"] = "sizeInUsd_DESC_NULLS_LAST";
2279
+ PositionChangeOrderByInput["swapFeeUsd_ASC"] = "swapFeeUsd_ASC";
2280
+ PositionChangeOrderByInput["swapFeeUsd_ASC_NULLS_FIRST"] = "swapFeeUsd_ASC_NULLS_FIRST";
2281
+ PositionChangeOrderByInput["swapFeeUsd_ASC_NULLS_LAST"] = "swapFeeUsd_ASC_NULLS_LAST";
2282
+ PositionChangeOrderByInput["swapFeeUsd_DESC"] = "swapFeeUsd_DESC";
2283
+ PositionChangeOrderByInput["swapFeeUsd_DESC_NULLS_FIRST"] = "swapFeeUsd_DESC_NULLS_FIRST";
2284
+ PositionChangeOrderByInput["swapFeeUsd_DESC_NULLS_LAST"] = "swapFeeUsd_DESC_NULLS_LAST";
2030
2285
  PositionChangeOrderByInput["swapImpactUsd_ASC"] = "swapImpactUsd_ASC";
2031
2286
  PositionChangeOrderByInput["swapImpactUsd_ASC_NULLS_FIRST"] = "swapImpactUsd_ASC_NULLS_FIRST";
2032
2287
  PositionChangeOrderByInput["swapImpactUsd_ASC_NULLS_LAST"] = "swapImpactUsd_ASC_NULLS_LAST";
@@ -2167,48 +2422,12 @@ export var PositionFeesEntityOrderByInput;
2167
2422
  PositionFeesEntityOrderByInput["trader_DESC"] = "trader_DESC";
2168
2423
  PositionFeesEntityOrderByInput["trader_DESC_NULLS_FIRST"] = "trader_DESC_NULLS_FIRST";
2169
2424
  PositionFeesEntityOrderByInput["trader_DESC_NULLS_LAST"] = "trader_DESC_NULLS_LAST";
2170
- PositionFeesEntityOrderByInput["transaction_blockNumber_ASC"] = "transaction_blockNumber_ASC";
2171
- PositionFeesEntityOrderByInput["transaction_blockNumber_ASC_NULLS_FIRST"] = "transaction_blockNumber_ASC_NULLS_FIRST";
2172
- PositionFeesEntityOrderByInput["transaction_blockNumber_ASC_NULLS_LAST"] = "transaction_blockNumber_ASC_NULLS_LAST";
2173
- PositionFeesEntityOrderByInput["transaction_blockNumber_DESC"] = "transaction_blockNumber_DESC";
2174
- PositionFeesEntityOrderByInput["transaction_blockNumber_DESC_NULLS_FIRST"] = "transaction_blockNumber_DESC_NULLS_FIRST";
2175
- PositionFeesEntityOrderByInput["transaction_blockNumber_DESC_NULLS_LAST"] = "transaction_blockNumber_DESC_NULLS_LAST";
2176
- PositionFeesEntityOrderByInput["transaction_from_ASC"] = "transaction_from_ASC";
2177
- PositionFeesEntityOrderByInput["transaction_from_ASC_NULLS_FIRST"] = "transaction_from_ASC_NULLS_FIRST";
2178
- PositionFeesEntityOrderByInput["transaction_from_ASC_NULLS_LAST"] = "transaction_from_ASC_NULLS_LAST";
2179
- PositionFeesEntityOrderByInput["transaction_from_DESC"] = "transaction_from_DESC";
2180
- PositionFeesEntityOrderByInput["transaction_from_DESC_NULLS_FIRST"] = "transaction_from_DESC_NULLS_FIRST";
2181
- PositionFeesEntityOrderByInput["transaction_from_DESC_NULLS_LAST"] = "transaction_from_DESC_NULLS_LAST";
2182
- PositionFeesEntityOrderByInput["transaction_hash_ASC"] = "transaction_hash_ASC";
2183
- PositionFeesEntityOrderByInput["transaction_hash_ASC_NULLS_FIRST"] = "transaction_hash_ASC_NULLS_FIRST";
2184
- PositionFeesEntityOrderByInput["transaction_hash_ASC_NULLS_LAST"] = "transaction_hash_ASC_NULLS_LAST";
2185
- PositionFeesEntityOrderByInput["transaction_hash_DESC"] = "transaction_hash_DESC";
2186
- PositionFeesEntityOrderByInput["transaction_hash_DESC_NULLS_FIRST"] = "transaction_hash_DESC_NULLS_FIRST";
2187
- PositionFeesEntityOrderByInput["transaction_hash_DESC_NULLS_LAST"] = "transaction_hash_DESC_NULLS_LAST";
2188
- PositionFeesEntityOrderByInput["transaction_id_ASC"] = "transaction_id_ASC";
2189
- PositionFeesEntityOrderByInput["transaction_id_ASC_NULLS_FIRST"] = "transaction_id_ASC_NULLS_FIRST";
2190
- PositionFeesEntityOrderByInput["transaction_id_ASC_NULLS_LAST"] = "transaction_id_ASC_NULLS_LAST";
2191
- PositionFeesEntityOrderByInput["transaction_id_DESC"] = "transaction_id_DESC";
2192
- PositionFeesEntityOrderByInput["transaction_id_DESC_NULLS_FIRST"] = "transaction_id_DESC_NULLS_FIRST";
2193
- PositionFeesEntityOrderByInput["transaction_id_DESC_NULLS_LAST"] = "transaction_id_DESC_NULLS_LAST";
2194
- PositionFeesEntityOrderByInput["transaction_timestamp_ASC"] = "transaction_timestamp_ASC";
2195
- PositionFeesEntityOrderByInput["transaction_timestamp_ASC_NULLS_FIRST"] = "transaction_timestamp_ASC_NULLS_FIRST";
2196
- PositionFeesEntityOrderByInput["transaction_timestamp_ASC_NULLS_LAST"] = "transaction_timestamp_ASC_NULLS_LAST";
2197
- PositionFeesEntityOrderByInput["transaction_timestamp_DESC"] = "transaction_timestamp_DESC";
2198
- PositionFeesEntityOrderByInput["transaction_timestamp_DESC_NULLS_FIRST"] = "transaction_timestamp_DESC_NULLS_FIRST";
2199
- PositionFeesEntityOrderByInput["transaction_timestamp_DESC_NULLS_LAST"] = "transaction_timestamp_DESC_NULLS_LAST";
2200
- PositionFeesEntityOrderByInput["transaction_to_ASC"] = "transaction_to_ASC";
2201
- PositionFeesEntityOrderByInput["transaction_to_ASC_NULLS_FIRST"] = "transaction_to_ASC_NULLS_FIRST";
2202
- PositionFeesEntityOrderByInput["transaction_to_ASC_NULLS_LAST"] = "transaction_to_ASC_NULLS_LAST";
2203
- PositionFeesEntityOrderByInput["transaction_to_DESC"] = "transaction_to_DESC";
2204
- PositionFeesEntityOrderByInput["transaction_to_DESC_NULLS_FIRST"] = "transaction_to_DESC_NULLS_FIRST";
2205
- PositionFeesEntityOrderByInput["transaction_to_DESC_NULLS_LAST"] = "transaction_to_DESC_NULLS_LAST";
2206
- PositionFeesEntityOrderByInput["transaction_transactionIndex_ASC"] = "transaction_transactionIndex_ASC";
2207
- PositionFeesEntityOrderByInput["transaction_transactionIndex_ASC_NULLS_FIRST"] = "transaction_transactionIndex_ASC_NULLS_FIRST";
2208
- PositionFeesEntityOrderByInput["transaction_transactionIndex_ASC_NULLS_LAST"] = "transaction_transactionIndex_ASC_NULLS_LAST";
2209
- PositionFeesEntityOrderByInput["transaction_transactionIndex_DESC"] = "transaction_transactionIndex_DESC";
2210
- PositionFeesEntityOrderByInput["transaction_transactionIndex_DESC_NULLS_FIRST"] = "transaction_transactionIndex_DESC_NULLS_FIRST";
2211
- PositionFeesEntityOrderByInput["transaction_transactionIndex_DESC_NULLS_LAST"] = "transaction_transactionIndex_DESC_NULLS_LAST";
2425
+ PositionFeesEntityOrderByInput["transactionHash_ASC"] = "transactionHash_ASC";
2426
+ PositionFeesEntityOrderByInput["transactionHash_ASC_NULLS_FIRST"] = "transactionHash_ASC_NULLS_FIRST";
2427
+ PositionFeesEntityOrderByInput["transactionHash_ASC_NULLS_LAST"] = "transactionHash_ASC_NULLS_LAST";
2428
+ PositionFeesEntityOrderByInput["transactionHash_DESC"] = "transactionHash_DESC";
2429
+ PositionFeesEntityOrderByInput["transactionHash_DESC_NULLS_FIRST"] = "transactionHash_DESC_NULLS_FIRST";
2430
+ PositionFeesEntityOrderByInput["transactionHash_DESC_NULLS_LAST"] = "transactionHash_DESC_NULLS_LAST";
2212
2431
  PositionFeesEntityOrderByInput["type_ASC"] = "type_ASC";
2213
2432
  PositionFeesEntityOrderByInput["type_ASC_NULLS_FIRST"] = "type_ASC_NULLS_FIRST";
2214
2433
  PositionFeesEntityOrderByInput["type_ASC_NULLS_LAST"] = "type_ASC_NULLS_LAST";
@@ -2221,8 +2440,110 @@ export var PositionFeesEntityType;
2221
2440
  PositionFeesEntityType["PositionFeesCollected"] = "PositionFeesCollected";
2222
2441
  PositionFeesEntityType["PositionFeesInfo"] = "PositionFeesInfo";
2223
2442
  })(PositionFeesEntityType || (PositionFeesEntityType = {}));
2443
+ export var PositionFeesInfoWithPeriodOrderByInput;
2444
+ (function (PositionFeesInfoWithPeriodOrderByInput) {
2445
+ PositionFeesInfoWithPeriodOrderByInput["id_ASC"] = "id_ASC";
2446
+ PositionFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
2447
+ PositionFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
2448
+ PositionFeesInfoWithPeriodOrderByInput["id_DESC"] = "id_DESC";
2449
+ PositionFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
2450
+ PositionFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
2451
+ PositionFeesInfoWithPeriodOrderByInput["period_ASC"] = "period_ASC";
2452
+ PositionFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
2453
+ PositionFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
2454
+ PositionFeesInfoWithPeriodOrderByInput["period_DESC"] = "period_DESC";
2455
+ PositionFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
2456
+ PositionFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
2457
+ PositionFeesInfoWithPeriodOrderByInput["timestamp_ASC"] = "timestamp_ASC";
2458
+ PositionFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
2459
+ PositionFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
2460
+ PositionFeesInfoWithPeriodOrderByInput["timestamp_DESC"] = "timestamp_DESC";
2461
+ PositionFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
2462
+ PositionFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
2463
+ PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_ASC"] = "totalBorrowingFeeUsd_ASC";
2464
+ PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_ASC_NULLS_FIRST"] = "totalBorrowingFeeUsd_ASC_NULLS_FIRST";
2465
+ PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_ASC_NULLS_LAST"] = "totalBorrowingFeeUsd_ASC_NULLS_LAST";
2466
+ PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_DESC"] = "totalBorrowingFeeUsd_DESC";
2467
+ PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_DESC_NULLS_FIRST"] = "totalBorrowingFeeUsd_DESC_NULLS_FIRST";
2468
+ PositionFeesInfoWithPeriodOrderByInput["totalBorrowingFeeUsd_DESC_NULLS_LAST"] = "totalBorrowingFeeUsd_DESC_NULLS_LAST";
2469
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_ASC"] = "totalLiquidationFeeAmount_ASC";
2470
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_ASC_NULLS_FIRST"] = "totalLiquidationFeeAmount_ASC_NULLS_FIRST";
2471
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_ASC_NULLS_LAST"] = "totalLiquidationFeeAmount_ASC_NULLS_LAST";
2472
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_DESC"] = "totalLiquidationFeeAmount_DESC";
2473
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_DESC_NULLS_FIRST"] = "totalLiquidationFeeAmount_DESC_NULLS_FIRST";
2474
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeAmount_DESC_NULLS_LAST"] = "totalLiquidationFeeAmount_DESC_NULLS_LAST";
2475
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_ASC"] = "totalLiquidationFeeUsd_ASC";
2476
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_ASC_NULLS_FIRST"] = "totalLiquidationFeeUsd_ASC_NULLS_FIRST";
2477
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_ASC_NULLS_LAST"] = "totalLiquidationFeeUsd_ASC_NULLS_LAST";
2478
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_DESC"] = "totalLiquidationFeeUsd_DESC";
2479
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_DESC_NULLS_FIRST"] = "totalLiquidationFeeUsd_DESC_NULLS_FIRST";
2480
+ PositionFeesInfoWithPeriodOrderByInput["totalLiquidationFeeUsd_DESC_NULLS_LAST"] = "totalLiquidationFeeUsd_DESC_NULLS_LAST";
2481
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_ASC"] = "totalPositionFeeAmountForPool_ASC";
2482
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_ASC_NULLS_FIRST"] = "totalPositionFeeAmountForPool_ASC_NULLS_FIRST";
2483
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_ASC_NULLS_LAST"] = "totalPositionFeeAmountForPool_ASC_NULLS_LAST";
2484
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_DESC"] = "totalPositionFeeAmountForPool_DESC";
2485
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_DESC_NULLS_FIRST"] = "totalPositionFeeAmountForPool_DESC_NULLS_FIRST";
2486
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmountForPool_DESC_NULLS_LAST"] = "totalPositionFeeAmountForPool_DESC_NULLS_LAST";
2487
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_ASC"] = "totalPositionFeeAmount_ASC";
2488
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_ASC_NULLS_FIRST"] = "totalPositionFeeAmount_ASC_NULLS_FIRST";
2489
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_ASC_NULLS_LAST"] = "totalPositionFeeAmount_ASC_NULLS_LAST";
2490
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_DESC"] = "totalPositionFeeAmount_DESC";
2491
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_DESC_NULLS_FIRST"] = "totalPositionFeeAmount_DESC_NULLS_FIRST";
2492
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeAmount_DESC_NULLS_LAST"] = "totalPositionFeeAmount_DESC_NULLS_LAST";
2493
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_ASC"] = "totalPositionFeeUsdForPool_ASC";
2494
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_ASC_NULLS_FIRST"] = "totalPositionFeeUsdForPool_ASC_NULLS_FIRST";
2495
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_ASC_NULLS_LAST"] = "totalPositionFeeUsdForPool_ASC_NULLS_LAST";
2496
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_DESC"] = "totalPositionFeeUsdForPool_DESC";
2497
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_DESC_NULLS_FIRST"] = "totalPositionFeeUsdForPool_DESC_NULLS_FIRST";
2498
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsdForPool_DESC_NULLS_LAST"] = "totalPositionFeeUsdForPool_DESC_NULLS_LAST";
2499
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_ASC"] = "totalPositionFeeUsd_ASC";
2500
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_ASC_NULLS_FIRST"] = "totalPositionFeeUsd_ASC_NULLS_FIRST";
2501
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_ASC_NULLS_LAST"] = "totalPositionFeeUsd_ASC_NULLS_LAST";
2502
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_DESC"] = "totalPositionFeeUsd_DESC";
2503
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_DESC_NULLS_FIRST"] = "totalPositionFeeUsd_DESC_NULLS_FIRST";
2504
+ PositionFeesInfoWithPeriodOrderByInput["totalPositionFeeUsd_DESC_NULLS_LAST"] = "totalPositionFeeUsd_DESC_NULLS_LAST";
2505
+ })(PositionFeesInfoWithPeriodOrderByInput || (PositionFeesInfoWithPeriodOrderByInput = {}));
2506
+ export var PositionLifecycleOrderByInput;
2507
+ (function (PositionLifecycleOrderByInput) {
2508
+ PositionLifecycleOrderByInput["currentLifecycleId_ASC"] = "currentLifecycleId_ASC";
2509
+ PositionLifecycleOrderByInput["currentLifecycleId_ASC_NULLS_FIRST"] = "currentLifecycleId_ASC_NULLS_FIRST";
2510
+ PositionLifecycleOrderByInput["currentLifecycleId_ASC_NULLS_LAST"] = "currentLifecycleId_ASC_NULLS_LAST";
2511
+ PositionLifecycleOrderByInput["currentLifecycleId_DESC"] = "currentLifecycleId_DESC";
2512
+ PositionLifecycleOrderByInput["currentLifecycleId_DESC_NULLS_FIRST"] = "currentLifecycleId_DESC_NULLS_FIRST";
2513
+ PositionLifecycleOrderByInput["currentLifecycleId_DESC_NULLS_LAST"] = "currentLifecycleId_DESC_NULLS_LAST";
2514
+ PositionLifecycleOrderByInput["id_ASC"] = "id_ASC";
2515
+ PositionLifecycleOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
2516
+ PositionLifecycleOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
2517
+ PositionLifecycleOrderByInput["id_DESC"] = "id_DESC";
2518
+ PositionLifecycleOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
2519
+ PositionLifecycleOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
2520
+ PositionLifecycleOrderByInput["isOpen_ASC"] = "isOpen_ASC";
2521
+ PositionLifecycleOrderByInput["isOpen_ASC_NULLS_FIRST"] = "isOpen_ASC_NULLS_FIRST";
2522
+ PositionLifecycleOrderByInput["isOpen_ASC_NULLS_LAST"] = "isOpen_ASC_NULLS_LAST";
2523
+ PositionLifecycleOrderByInput["isOpen_DESC"] = "isOpen_DESC";
2524
+ PositionLifecycleOrderByInput["isOpen_DESC_NULLS_FIRST"] = "isOpen_DESC_NULLS_FIRST";
2525
+ PositionLifecycleOrderByInput["isOpen_DESC_NULLS_LAST"] = "isOpen_DESC_NULLS_LAST";
2526
+ PositionLifecycleOrderByInput["lastClosedLifecycleId_ASC"] = "lastClosedLifecycleId_ASC";
2527
+ PositionLifecycleOrderByInput["lastClosedLifecycleId_ASC_NULLS_FIRST"] = "lastClosedLifecycleId_ASC_NULLS_FIRST";
2528
+ PositionLifecycleOrderByInput["lastClosedLifecycleId_ASC_NULLS_LAST"] = "lastClosedLifecycleId_ASC_NULLS_LAST";
2529
+ PositionLifecycleOrderByInput["lastClosedLifecycleId_DESC"] = "lastClosedLifecycleId_DESC";
2530
+ PositionLifecycleOrderByInput["lastClosedLifecycleId_DESC_NULLS_FIRST"] = "lastClosedLifecycleId_DESC_NULLS_FIRST";
2531
+ PositionLifecycleOrderByInput["lastClosedLifecycleId_DESC_NULLS_LAST"] = "lastClosedLifecycleId_DESC_NULLS_LAST";
2532
+ PositionLifecycleOrderByInput["updatedAtBlock_ASC"] = "updatedAtBlock_ASC";
2533
+ PositionLifecycleOrderByInput["updatedAtBlock_ASC_NULLS_FIRST"] = "updatedAtBlock_ASC_NULLS_FIRST";
2534
+ PositionLifecycleOrderByInput["updatedAtBlock_ASC_NULLS_LAST"] = "updatedAtBlock_ASC_NULLS_LAST";
2535
+ PositionLifecycleOrderByInput["updatedAtBlock_DESC"] = "updatedAtBlock_DESC";
2536
+ PositionLifecycleOrderByInput["updatedAtBlock_DESC_NULLS_FIRST"] = "updatedAtBlock_DESC_NULLS_FIRST";
2537
+ PositionLifecycleOrderByInput["updatedAtBlock_DESC_NULLS_LAST"] = "updatedAtBlock_DESC_NULLS_LAST";
2538
+ })(PositionLifecycleOrderByInput || (PositionLifecycleOrderByInput = {}));
2224
2539
  export var PositionOrderByInput;
2225
2540
  (function (PositionOrderByInput) {
2541
+ PositionOrderByInput["accountStat_account_ASC"] = "accountStat_account_ASC";
2542
+ PositionOrderByInput["accountStat_account_ASC_NULLS_FIRST"] = "accountStat_account_ASC_NULLS_FIRST";
2543
+ PositionOrderByInput["accountStat_account_ASC_NULLS_LAST"] = "accountStat_account_ASC_NULLS_LAST";
2544
+ PositionOrderByInput["accountStat_account_DESC"] = "accountStat_account_DESC";
2545
+ PositionOrderByInput["accountStat_account_DESC_NULLS_FIRST"] = "accountStat_account_DESC_NULLS_FIRST";
2546
+ PositionOrderByInput["accountStat_account_DESC_NULLS_LAST"] = "accountStat_account_DESC_NULLS_LAST";
2226
2547
  PositionOrderByInput["accountStat_closedCount_ASC"] = "accountStat_closedCount_ASC";
2227
2548
  PositionOrderByInput["accountStat_closedCount_ASC_NULLS_FIRST"] = "accountStat_closedCount_ASC_NULLS_FIRST";
2228
2549
  PositionOrderByInput["accountStat_closedCount_ASC_NULLS_LAST"] = "accountStat_closedCount_ASC_NULLS_LAST";
@@ -2241,6 +2562,12 @@ export var PositionOrderByInput;
2241
2562
  PositionOrderByInput["accountStat_cumsumSize_DESC"] = "accountStat_cumsumSize_DESC";
2242
2563
  PositionOrderByInput["accountStat_cumsumSize_DESC_NULLS_FIRST"] = "accountStat_cumsumSize_DESC_NULLS_FIRST";
2243
2564
  PositionOrderByInput["accountStat_cumsumSize_DESC_NULLS_LAST"] = "accountStat_cumsumSize_DESC_NULLS_LAST";
2565
+ PositionOrderByInput["accountStat_dayTimestamp_ASC"] = "accountStat_dayTimestamp_ASC";
2566
+ PositionOrderByInput["accountStat_dayTimestamp_ASC_NULLS_FIRST"] = "accountStat_dayTimestamp_ASC_NULLS_FIRST";
2567
+ PositionOrderByInput["accountStat_dayTimestamp_ASC_NULLS_LAST"] = "accountStat_dayTimestamp_ASC_NULLS_LAST";
2568
+ PositionOrderByInput["accountStat_dayTimestamp_DESC"] = "accountStat_dayTimestamp_DESC";
2569
+ PositionOrderByInput["accountStat_dayTimestamp_DESC_NULLS_FIRST"] = "accountStat_dayTimestamp_DESC_NULLS_FIRST";
2570
+ PositionOrderByInput["accountStat_dayTimestamp_DESC_NULLS_LAST"] = "accountStat_dayTimestamp_DESC_NULLS_LAST";
2244
2571
  PositionOrderByInput["accountStat_deposits_ASC"] = "accountStat_deposits_ASC";
2245
2572
  PositionOrderByInput["accountStat_deposits_ASC_NULLS_FIRST"] = "accountStat_deposits_ASC_NULLS_FIRST";
2246
2573
  PositionOrderByInput["accountStat_deposits_ASC_NULLS_LAST"] = "accountStat_deposits_ASC_NULLS_LAST";
@@ -2265,12 +2592,36 @@ export var PositionOrderByInput;
2265
2592
  PositionOrderByInput["accountStat_maxCapital_DESC"] = "accountStat_maxCapital_DESC";
2266
2593
  PositionOrderByInput["accountStat_maxCapital_DESC_NULLS_FIRST"] = "accountStat_maxCapital_DESC_NULLS_FIRST";
2267
2594
  PositionOrderByInput["accountStat_maxCapital_DESC_NULLS_LAST"] = "accountStat_maxCapital_DESC_NULLS_LAST";
2595
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_ASC"] = "accountStat_maxNetCapitalRunningDelta_ASC";
2596
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_ASC_NULLS_FIRST"] = "accountStat_maxNetCapitalRunningDelta_ASC_NULLS_FIRST";
2597
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_ASC_NULLS_LAST"] = "accountStat_maxNetCapitalRunningDelta_ASC_NULLS_LAST";
2598
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_DESC"] = "accountStat_maxNetCapitalRunningDelta_DESC";
2599
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_DESC_NULLS_FIRST"] = "accountStat_maxNetCapitalRunningDelta_DESC_NULLS_FIRST";
2600
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_DESC_NULLS_LAST"] = "accountStat_maxNetCapitalRunningDelta_DESC_NULLS_LAST";
2601
+ PositionOrderByInput["accountStat_netCapitalDelta_ASC"] = "accountStat_netCapitalDelta_ASC";
2602
+ PositionOrderByInput["accountStat_netCapitalDelta_ASC_NULLS_FIRST"] = "accountStat_netCapitalDelta_ASC_NULLS_FIRST";
2603
+ PositionOrderByInput["accountStat_netCapitalDelta_ASC_NULLS_LAST"] = "accountStat_netCapitalDelta_ASC_NULLS_LAST";
2604
+ PositionOrderByInput["accountStat_netCapitalDelta_DESC"] = "accountStat_netCapitalDelta_DESC";
2605
+ PositionOrderByInput["accountStat_netCapitalDelta_DESC_NULLS_FIRST"] = "accountStat_netCapitalDelta_DESC_NULLS_FIRST";
2606
+ PositionOrderByInput["accountStat_netCapitalDelta_DESC_NULLS_LAST"] = "accountStat_netCapitalDelta_DESC_NULLS_LAST";
2268
2607
  PositionOrderByInput["accountStat_netCapital_ASC"] = "accountStat_netCapital_ASC";
2269
2608
  PositionOrderByInput["accountStat_netCapital_ASC_NULLS_FIRST"] = "accountStat_netCapital_ASC_NULLS_FIRST";
2270
2609
  PositionOrderByInput["accountStat_netCapital_ASC_NULLS_LAST"] = "accountStat_netCapital_ASC_NULLS_LAST";
2271
2610
  PositionOrderByInput["accountStat_netCapital_DESC"] = "accountStat_netCapital_DESC";
2272
2611
  PositionOrderByInput["accountStat_netCapital_DESC_NULLS_FIRST"] = "accountStat_netCapital_DESC_NULLS_FIRST";
2273
2612
  PositionOrderByInput["accountStat_netCapital_DESC_NULLS_LAST"] = "accountStat_netCapital_DESC_NULLS_LAST";
2613
+ PositionOrderByInput["accountStat_period_ASC"] = "accountStat_period_ASC";
2614
+ PositionOrderByInput["accountStat_period_ASC_NULLS_FIRST"] = "accountStat_period_ASC_NULLS_FIRST";
2615
+ PositionOrderByInput["accountStat_period_ASC_NULLS_LAST"] = "accountStat_period_ASC_NULLS_LAST";
2616
+ PositionOrderByInput["accountStat_period_DESC"] = "accountStat_period_DESC";
2617
+ PositionOrderByInput["accountStat_period_DESC_NULLS_FIRST"] = "accountStat_period_DESC_NULLS_FIRST";
2618
+ PositionOrderByInput["accountStat_period_DESC_NULLS_LAST"] = "accountStat_period_DESC_NULLS_LAST";
2619
+ PositionOrderByInput["accountStat_positiveFundingFeesUsd_ASC"] = "accountStat_positiveFundingFeesUsd_ASC";
2620
+ PositionOrderByInput["accountStat_positiveFundingFeesUsd_ASC_NULLS_FIRST"] = "accountStat_positiveFundingFeesUsd_ASC_NULLS_FIRST";
2621
+ PositionOrderByInput["accountStat_positiveFundingFeesUsd_ASC_NULLS_LAST"] = "accountStat_positiveFundingFeesUsd_ASC_NULLS_LAST";
2622
+ PositionOrderByInput["accountStat_positiveFundingFeesUsd_DESC"] = "accountStat_positiveFundingFeesUsd_DESC";
2623
+ PositionOrderByInput["accountStat_positiveFundingFeesUsd_DESC_NULLS_FIRST"] = "accountStat_positiveFundingFeesUsd_DESC_NULLS_FIRST";
2624
+ PositionOrderByInput["accountStat_positiveFundingFeesUsd_DESC_NULLS_LAST"] = "accountStat_positiveFundingFeesUsd_DESC_NULLS_LAST";
2274
2625
  PositionOrderByInput["accountStat_realizedFees_ASC"] = "accountStat_realizedFees_ASC";
2275
2626
  PositionOrderByInput["accountStat_realizedFees_ASC_NULLS_FIRST"] = "accountStat_realizedFees_ASC_NULLS_FIRST";
2276
2627
  PositionOrderByInput["accountStat_realizedFees_ASC_NULLS_LAST"] = "accountStat_realizedFees_ASC_NULLS_LAST";
@@ -2289,6 +2640,12 @@ export var PositionOrderByInput;
2289
2640
  PositionOrderByInput["accountStat_realizedPriceImpact_DESC"] = "accountStat_realizedPriceImpact_DESC";
2290
2641
  PositionOrderByInput["accountStat_realizedPriceImpact_DESC_NULLS_FIRST"] = "accountStat_realizedPriceImpact_DESC_NULLS_FIRST";
2291
2642
  PositionOrderByInput["accountStat_realizedPriceImpact_DESC_NULLS_LAST"] = "accountStat_realizedPriceImpact_DESC_NULLS_LAST";
2643
+ PositionOrderByInput["accountStat_realizedSwapFees_ASC"] = "accountStat_realizedSwapFees_ASC";
2644
+ PositionOrderByInput["accountStat_realizedSwapFees_ASC_NULLS_FIRST"] = "accountStat_realizedSwapFees_ASC_NULLS_FIRST";
2645
+ PositionOrderByInput["accountStat_realizedSwapFees_ASC_NULLS_LAST"] = "accountStat_realizedSwapFees_ASC_NULLS_LAST";
2646
+ PositionOrderByInput["accountStat_realizedSwapFees_DESC"] = "accountStat_realizedSwapFees_DESC";
2647
+ PositionOrderByInput["accountStat_realizedSwapFees_DESC_NULLS_FIRST"] = "accountStat_realizedSwapFees_DESC_NULLS_FIRST";
2648
+ PositionOrderByInput["accountStat_realizedSwapFees_DESC_NULLS_LAST"] = "accountStat_realizedSwapFees_DESC_NULLS_LAST";
2292
2649
  PositionOrderByInput["accountStat_realizedSwapImpact_ASC"] = "accountStat_realizedSwapImpact_ASC";
2293
2650
  PositionOrderByInput["accountStat_realizedSwapImpact_ASC_NULLS_FIRST"] = "accountStat_realizedSwapImpact_ASC_NULLS_FIRST";
2294
2651
  PositionOrderByInput["accountStat_realizedSwapImpact_ASC_NULLS_LAST"] = "accountStat_realizedSwapImpact_ASC_NULLS_LAST";
@@ -2367,6 +2724,12 @@ export var PositionOrderByInput;
2367
2724
  PositionOrderByInput["market_DESC"] = "market_DESC";
2368
2725
  PositionOrderByInput["market_DESC_NULLS_FIRST"] = "market_DESC_NULLS_FIRST";
2369
2726
  PositionOrderByInput["market_DESC_NULLS_LAST"] = "market_DESC_NULLS_LAST";
2727
+ PositionOrderByInput["maxCapital_ASC"] = "maxCapital_ASC";
2728
+ PositionOrderByInput["maxCapital_ASC_NULLS_FIRST"] = "maxCapital_ASC_NULLS_FIRST";
2729
+ PositionOrderByInput["maxCapital_ASC_NULLS_LAST"] = "maxCapital_ASC_NULLS_LAST";
2730
+ PositionOrderByInput["maxCapital_DESC"] = "maxCapital_DESC";
2731
+ PositionOrderByInput["maxCapital_DESC_NULLS_FIRST"] = "maxCapital_DESC_NULLS_FIRST";
2732
+ PositionOrderByInput["maxCapital_DESC_NULLS_LAST"] = "maxCapital_DESC_NULLS_LAST";
2370
2733
  PositionOrderByInput["maxSize_ASC"] = "maxSize_ASC";
2371
2734
  PositionOrderByInput["maxSize_ASC_NULLS_FIRST"] = "maxSize_ASC_NULLS_FIRST";
2372
2735
  PositionOrderByInput["maxSize_ASC_NULLS_LAST"] = "maxSize_ASC_NULLS_LAST";
@@ -2570,6 +2933,120 @@ export var ProcessorStatusOrderByInput;
2570
2933
  ProcessorStatusOrderByInput["lastProcessorCallTimestamp_DESC_NULLS_FIRST"] = "lastProcessorCallTimestamp_DESC_NULLS_FIRST";
2571
2934
  ProcessorStatusOrderByInput["lastProcessorCallTimestamp_DESC_NULLS_LAST"] = "lastProcessorCallTimestamp_DESC_NULLS_LAST";
2572
2935
  })(ProcessorStatusOrderByInput || (ProcessorStatusOrderByInput = {}));
2936
+ export var ReferralCodeOwnerOrderByInput;
2937
+ (function (ReferralCodeOwnerOrderByInput) {
2938
+ ReferralCodeOwnerOrderByInput["id_ASC"] = "id_ASC";
2939
+ ReferralCodeOwnerOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
2940
+ ReferralCodeOwnerOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
2941
+ ReferralCodeOwnerOrderByInput["id_DESC"] = "id_DESC";
2942
+ ReferralCodeOwnerOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
2943
+ ReferralCodeOwnerOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
2944
+ ReferralCodeOwnerOrderByInput["owner_ASC"] = "owner_ASC";
2945
+ ReferralCodeOwnerOrderByInput["owner_ASC_NULLS_FIRST"] = "owner_ASC_NULLS_FIRST";
2946
+ ReferralCodeOwnerOrderByInput["owner_ASC_NULLS_LAST"] = "owner_ASC_NULLS_LAST";
2947
+ ReferralCodeOwnerOrderByInput["owner_DESC"] = "owner_DESC";
2948
+ ReferralCodeOwnerOrderByInput["owner_DESC_NULLS_FIRST"] = "owner_DESC_NULLS_FIRST";
2949
+ ReferralCodeOwnerOrderByInput["owner_DESC_NULLS_LAST"] = "owner_DESC_NULLS_LAST";
2950
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_ASC"] = "updatedAtBlock_ASC";
2951
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_ASC_NULLS_FIRST"] = "updatedAtBlock_ASC_NULLS_FIRST";
2952
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_ASC_NULLS_LAST"] = "updatedAtBlock_ASC_NULLS_LAST";
2953
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_DESC"] = "updatedAtBlock_DESC";
2954
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_DESC_NULLS_FIRST"] = "updatedAtBlock_DESC_NULLS_FIRST";
2955
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_DESC_NULLS_LAST"] = "updatedAtBlock_DESC_NULLS_LAST";
2956
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_ASC"] = "updatedAtTimestamp_ASC";
2957
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_ASC_NULLS_FIRST"] = "updatedAtTimestamp_ASC_NULLS_FIRST";
2958
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_ASC_NULLS_LAST"] = "updatedAtTimestamp_ASC_NULLS_LAST";
2959
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_DESC"] = "updatedAtTimestamp_DESC";
2960
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_DESC_NULLS_FIRST"] = "updatedAtTimestamp_DESC_NULLS_FIRST";
2961
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_DESC_NULLS_LAST"] = "updatedAtTimestamp_DESC_NULLS_LAST";
2962
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_ASC"] = "updatedTxnHash_ASC";
2963
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_ASC_NULLS_FIRST"] = "updatedTxnHash_ASC_NULLS_FIRST";
2964
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_ASC_NULLS_LAST"] = "updatedTxnHash_ASC_NULLS_LAST";
2965
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_DESC"] = "updatedTxnHash_DESC";
2966
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_DESC_NULLS_FIRST"] = "updatedTxnHash_DESC_NULLS_FIRST";
2967
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_DESC_NULLS_LAST"] = "updatedTxnHash_DESC_NULLS_LAST";
2968
+ })(ReferralCodeOwnerOrderByInput || (ReferralCodeOwnerOrderByInput = {}));
2969
+ export var ReferralTierOrderByInput;
2970
+ (function (ReferralTierOrderByInput) {
2971
+ ReferralTierOrderByInput["discountShare_ASC"] = "discountShare_ASC";
2972
+ ReferralTierOrderByInput["discountShare_ASC_NULLS_FIRST"] = "discountShare_ASC_NULLS_FIRST";
2973
+ ReferralTierOrderByInput["discountShare_ASC_NULLS_LAST"] = "discountShare_ASC_NULLS_LAST";
2974
+ ReferralTierOrderByInput["discountShare_DESC"] = "discountShare_DESC";
2975
+ ReferralTierOrderByInput["discountShare_DESC_NULLS_FIRST"] = "discountShare_DESC_NULLS_FIRST";
2976
+ ReferralTierOrderByInput["discountShare_DESC_NULLS_LAST"] = "discountShare_DESC_NULLS_LAST";
2977
+ ReferralTierOrderByInput["id_ASC"] = "id_ASC";
2978
+ ReferralTierOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
2979
+ ReferralTierOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
2980
+ ReferralTierOrderByInput["id_DESC"] = "id_DESC";
2981
+ ReferralTierOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
2982
+ ReferralTierOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
2983
+ ReferralTierOrderByInput["totalRebate_ASC"] = "totalRebate_ASC";
2984
+ ReferralTierOrderByInput["totalRebate_ASC_NULLS_FIRST"] = "totalRebate_ASC_NULLS_FIRST";
2985
+ ReferralTierOrderByInput["totalRebate_ASC_NULLS_LAST"] = "totalRebate_ASC_NULLS_LAST";
2986
+ ReferralTierOrderByInput["totalRebate_DESC"] = "totalRebate_DESC";
2987
+ ReferralTierOrderByInput["totalRebate_DESC_NULLS_FIRST"] = "totalRebate_DESC_NULLS_FIRST";
2988
+ ReferralTierOrderByInput["totalRebate_DESC_NULLS_LAST"] = "totalRebate_DESC_NULLS_LAST";
2989
+ })(ReferralTierOrderByInput || (ReferralTierOrderByInput = {}));
2990
+ export var ReferrerTierOrderByInput;
2991
+ (function (ReferrerTierOrderByInput) {
2992
+ ReferrerTierOrderByInput["id_ASC"] = "id_ASC";
2993
+ ReferrerTierOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
2994
+ ReferrerTierOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
2995
+ ReferrerTierOrderByInput["id_DESC"] = "id_DESC";
2996
+ ReferrerTierOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
2997
+ ReferrerTierOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
2998
+ ReferrerTierOrderByInput["tierId_ASC"] = "tierId_ASC";
2999
+ ReferrerTierOrderByInput["tierId_ASC_NULLS_FIRST"] = "tierId_ASC_NULLS_FIRST";
3000
+ ReferrerTierOrderByInput["tierId_ASC_NULLS_LAST"] = "tierId_ASC_NULLS_LAST";
3001
+ ReferrerTierOrderByInput["tierId_DESC"] = "tierId_DESC";
3002
+ ReferrerTierOrderByInput["tierId_DESC_NULLS_FIRST"] = "tierId_DESC_NULLS_FIRST";
3003
+ ReferrerTierOrderByInput["tierId_DESC_NULLS_LAST"] = "tierId_DESC_NULLS_LAST";
3004
+ })(ReferrerTierOrderByInput || (ReferrerTierOrderByInput = {}));
3005
+ export var StakingPowerOrderByInput;
3006
+ (function (StakingPowerOrderByInput) {
3007
+ StakingPowerOrderByInput["accumulatedPower_ASC"] = "accumulatedPower_ASC";
3008
+ StakingPowerOrderByInput["accumulatedPower_ASC_NULLS_FIRST"] = "accumulatedPower_ASC_NULLS_FIRST";
3009
+ StakingPowerOrderByInput["accumulatedPower_ASC_NULLS_LAST"] = "accumulatedPower_ASC_NULLS_LAST";
3010
+ StakingPowerOrderByInput["accumulatedPower_DESC"] = "accumulatedPower_DESC";
3011
+ StakingPowerOrderByInput["accumulatedPower_DESC_NULLS_FIRST"] = "accumulatedPower_DESC_NULLS_FIRST";
3012
+ StakingPowerOrderByInput["accumulatedPower_DESC_NULLS_LAST"] = "accumulatedPower_DESC_NULLS_LAST";
3013
+ StakingPowerOrderByInput["currentStakedBalance_ASC"] = "currentStakedBalance_ASC";
3014
+ StakingPowerOrderByInput["currentStakedBalance_ASC_NULLS_FIRST"] = "currentStakedBalance_ASC_NULLS_FIRST";
3015
+ StakingPowerOrderByInput["currentStakedBalance_ASC_NULLS_LAST"] = "currentStakedBalance_ASC_NULLS_LAST";
3016
+ StakingPowerOrderByInput["currentStakedBalance_DESC"] = "currentStakedBalance_DESC";
3017
+ StakingPowerOrderByInput["currentStakedBalance_DESC_NULLS_FIRST"] = "currentStakedBalance_DESC_NULLS_FIRST";
3018
+ StakingPowerOrderByInput["currentStakedBalance_DESC_NULLS_LAST"] = "currentStakedBalance_DESC_NULLS_LAST";
3019
+ StakingPowerOrderByInput["historicalMaxStaked_ASC"] = "historicalMaxStaked_ASC";
3020
+ StakingPowerOrderByInput["historicalMaxStaked_ASC_NULLS_FIRST"] = "historicalMaxStaked_ASC_NULLS_FIRST";
3021
+ StakingPowerOrderByInput["historicalMaxStaked_ASC_NULLS_LAST"] = "historicalMaxStaked_ASC_NULLS_LAST";
3022
+ StakingPowerOrderByInput["historicalMaxStaked_DESC"] = "historicalMaxStaked_DESC";
3023
+ StakingPowerOrderByInput["historicalMaxStaked_DESC_NULLS_FIRST"] = "historicalMaxStaked_DESC_NULLS_FIRST";
3024
+ StakingPowerOrderByInput["historicalMaxStaked_DESC_NULLS_LAST"] = "historicalMaxStaked_DESC_NULLS_LAST";
3025
+ StakingPowerOrderByInput["id_ASC"] = "id_ASC";
3026
+ StakingPowerOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3027
+ StakingPowerOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3028
+ StakingPowerOrderByInput["id_DESC"] = "id_DESC";
3029
+ StakingPowerOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3030
+ StakingPowerOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3031
+ StakingPowerOrderByInput["lastPowerResetAt_ASC"] = "lastPowerResetAt_ASC";
3032
+ StakingPowerOrderByInput["lastPowerResetAt_ASC_NULLS_FIRST"] = "lastPowerResetAt_ASC_NULLS_FIRST";
3033
+ StakingPowerOrderByInput["lastPowerResetAt_ASC_NULLS_LAST"] = "lastPowerResetAt_ASC_NULLS_LAST";
3034
+ StakingPowerOrderByInput["lastPowerResetAt_DESC"] = "lastPowerResetAt_DESC";
3035
+ StakingPowerOrderByInput["lastPowerResetAt_DESC_NULLS_FIRST"] = "lastPowerResetAt_DESC_NULLS_FIRST";
3036
+ StakingPowerOrderByInput["lastPowerResetAt_DESC_NULLS_LAST"] = "lastPowerResetAt_DESC_NULLS_LAST";
3037
+ StakingPowerOrderByInput["lastUpdateTimestamp_ASC"] = "lastUpdateTimestamp_ASC";
3038
+ StakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_FIRST"] = "lastUpdateTimestamp_ASC_NULLS_FIRST";
3039
+ StakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_LAST"] = "lastUpdateTimestamp_ASC_NULLS_LAST";
3040
+ StakingPowerOrderByInput["lastUpdateTimestamp_DESC"] = "lastUpdateTimestamp_DESC";
3041
+ StakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_FIRST"] = "lastUpdateTimestamp_DESC_NULLS_FIRST";
3042
+ StakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_LAST"] = "lastUpdateTimestamp_DESC_NULLS_LAST";
3043
+ StakingPowerOrderByInput["powerResetCount_ASC"] = "powerResetCount_ASC";
3044
+ StakingPowerOrderByInput["powerResetCount_ASC_NULLS_FIRST"] = "powerResetCount_ASC_NULLS_FIRST";
3045
+ StakingPowerOrderByInput["powerResetCount_ASC_NULLS_LAST"] = "powerResetCount_ASC_NULLS_LAST";
3046
+ StakingPowerOrderByInput["powerResetCount_DESC"] = "powerResetCount_DESC";
3047
+ StakingPowerOrderByInput["powerResetCount_DESC_NULLS_FIRST"] = "powerResetCount_DESC_NULLS_FIRST";
3048
+ StakingPowerOrderByInput["powerResetCount_DESC_NULLS_LAST"] = "powerResetCount_DESC_NULLS_LAST";
3049
+ })(StakingPowerOrderByInput || (StakingPowerOrderByInput = {}));
2573
3050
  export var SwapFeesInfoOrderByInput;
2574
3051
  (function (SwapFeesInfoOrderByInput) {
2575
3052
  SwapFeesInfoOrderByInput["feeReceiverAmount_ASC"] = "feeReceiverAmount_ASC";
@@ -2614,49 +3091,46 @@ export var SwapFeesInfoOrderByInput;
2614
3091
  SwapFeesInfoOrderByInput["tokenPrice_DESC"] = "tokenPrice_DESC";
2615
3092
  SwapFeesInfoOrderByInput["tokenPrice_DESC_NULLS_FIRST"] = "tokenPrice_DESC_NULLS_FIRST";
2616
3093
  SwapFeesInfoOrderByInput["tokenPrice_DESC_NULLS_LAST"] = "tokenPrice_DESC_NULLS_LAST";
2617
- SwapFeesInfoOrderByInput["transaction_blockNumber_ASC"] = "transaction_blockNumber_ASC";
2618
- SwapFeesInfoOrderByInput["transaction_blockNumber_ASC_NULLS_FIRST"] = "transaction_blockNumber_ASC_NULLS_FIRST";
2619
- SwapFeesInfoOrderByInput["transaction_blockNumber_ASC_NULLS_LAST"] = "transaction_blockNumber_ASC_NULLS_LAST";
2620
- SwapFeesInfoOrderByInput["transaction_blockNumber_DESC"] = "transaction_blockNumber_DESC";
2621
- SwapFeesInfoOrderByInput["transaction_blockNumber_DESC_NULLS_FIRST"] = "transaction_blockNumber_DESC_NULLS_FIRST";
2622
- SwapFeesInfoOrderByInput["transaction_blockNumber_DESC_NULLS_LAST"] = "transaction_blockNumber_DESC_NULLS_LAST";
2623
- SwapFeesInfoOrderByInput["transaction_from_ASC"] = "transaction_from_ASC";
2624
- SwapFeesInfoOrderByInput["transaction_from_ASC_NULLS_FIRST"] = "transaction_from_ASC_NULLS_FIRST";
2625
- SwapFeesInfoOrderByInput["transaction_from_ASC_NULLS_LAST"] = "transaction_from_ASC_NULLS_LAST";
2626
- SwapFeesInfoOrderByInput["transaction_from_DESC"] = "transaction_from_DESC";
2627
- SwapFeesInfoOrderByInput["transaction_from_DESC_NULLS_FIRST"] = "transaction_from_DESC_NULLS_FIRST";
2628
- SwapFeesInfoOrderByInput["transaction_from_DESC_NULLS_LAST"] = "transaction_from_DESC_NULLS_LAST";
2629
- SwapFeesInfoOrderByInput["transaction_hash_ASC"] = "transaction_hash_ASC";
2630
- SwapFeesInfoOrderByInput["transaction_hash_ASC_NULLS_FIRST"] = "transaction_hash_ASC_NULLS_FIRST";
2631
- SwapFeesInfoOrderByInput["transaction_hash_ASC_NULLS_LAST"] = "transaction_hash_ASC_NULLS_LAST";
2632
- SwapFeesInfoOrderByInput["transaction_hash_DESC"] = "transaction_hash_DESC";
2633
- SwapFeesInfoOrderByInput["transaction_hash_DESC_NULLS_FIRST"] = "transaction_hash_DESC_NULLS_FIRST";
2634
- SwapFeesInfoOrderByInput["transaction_hash_DESC_NULLS_LAST"] = "transaction_hash_DESC_NULLS_LAST";
2635
- SwapFeesInfoOrderByInput["transaction_id_ASC"] = "transaction_id_ASC";
2636
- SwapFeesInfoOrderByInput["transaction_id_ASC_NULLS_FIRST"] = "transaction_id_ASC_NULLS_FIRST";
2637
- SwapFeesInfoOrderByInput["transaction_id_ASC_NULLS_LAST"] = "transaction_id_ASC_NULLS_LAST";
2638
- SwapFeesInfoOrderByInput["transaction_id_DESC"] = "transaction_id_DESC";
2639
- SwapFeesInfoOrderByInput["transaction_id_DESC_NULLS_FIRST"] = "transaction_id_DESC_NULLS_FIRST";
2640
- SwapFeesInfoOrderByInput["transaction_id_DESC_NULLS_LAST"] = "transaction_id_DESC_NULLS_LAST";
2641
- SwapFeesInfoOrderByInput["transaction_timestamp_ASC"] = "transaction_timestamp_ASC";
2642
- SwapFeesInfoOrderByInput["transaction_timestamp_ASC_NULLS_FIRST"] = "transaction_timestamp_ASC_NULLS_FIRST";
2643
- SwapFeesInfoOrderByInput["transaction_timestamp_ASC_NULLS_LAST"] = "transaction_timestamp_ASC_NULLS_LAST";
2644
- SwapFeesInfoOrderByInput["transaction_timestamp_DESC"] = "transaction_timestamp_DESC";
2645
- SwapFeesInfoOrderByInput["transaction_timestamp_DESC_NULLS_FIRST"] = "transaction_timestamp_DESC_NULLS_FIRST";
2646
- SwapFeesInfoOrderByInput["transaction_timestamp_DESC_NULLS_LAST"] = "transaction_timestamp_DESC_NULLS_LAST";
2647
- SwapFeesInfoOrderByInput["transaction_to_ASC"] = "transaction_to_ASC";
2648
- SwapFeesInfoOrderByInput["transaction_to_ASC_NULLS_FIRST"] = "transaction_to_ASC_NULLS_FIRST";
2649
- SwapFeesInfoOrderByInput["transaction_to_ASC_NULLS_LAST"] = "transaction_to_ASC_NULLS_LAST";
2650
- SwapFeesInfoOrderByInput["transaction_to_DESC"] = "transaction_to_DESC";
2651
- SwapFeesInfoOrderByInput["transaction_to_DESC_NULLS_FIRST"] = "transaction_to_DESC_NULLS_FIRST";
2652
- SwapFeesInfoOrderByInput["transaction_to_DESC_NULLS_LAST"] = "transaction_to_DESC_NULLS_LAST";
2653
- SwapFeesInfoOrderByInput["transaction_transactionIndex_ASC"] = "transaction_transactionIndex_ASC";
2654
- SwapFeesInfoOrderByInput["transaction_transactionIndex_ASC_NULLS_FIRST"] = "transaction_transactionIndex_ASC_NULLS_FIRST";
2655
- SwapFeesInfoOrderByInput["transaction_transactionIndex_ASC_NULLS_LAST"] = "transaction_transactionIndex_ASC_NULLS_LAST";
2656
- SwapFeesInfoOrderByInput["transaction_transactionIndex_DESC"] = "transaction_transactionIndex_DESC";
2657
- SwapFeesInfoOrderByInput["transaction_transactionIndex_DESC_NULLS_FIRST"] = "transaction_transactionIndex_DESC_NULLS_FIRST";
2658
- SwapFeesInfoOrderByInput["transaction_transactionIndex_DESC_NULLS_LAST"] = "transaction_transactionIndex_DESC_NULLS_LAST";
3094
+ SwapFeesInfoOrderByInput["transactionHash_ASC"] = "transactionHash_ASC";
3095
+ SwapFeesInfoOrderByInput["transactionHash_ASC_NULLS_FIRST"] = "transactionHash_ASC_NULLS_FIRST";
3096
+ SwapFeesInfoOrderByInput["transactionHash_ASC_NULLS_LAST"] = "transactionHash_ASC_NULLS_LAST";
3097
+ SwapFeesInfoOrderByInput["transactionHash_DESC"] = "transactionHash_DESC";
3098
+ SwapFeesInfoOrderByInput["transactionHash_DESC_NULLS_FIRST"] = "transactionHash_DESC_NULLS_FIRST";
3099
+ SwapFeesInfoOrderByInput["transactionHash_DESC_NULLS_LAST"] = "transactionHash_DESC_NULLS_LAST";
2659
3100
  })(SwapFeesInfoOrderByInput || (SwapFeesInfoOrderByInput = {}));
3101
+ export var SwapFeesInfoWithPeriodOrderByInput;
3102
+ (function (SwapFeesInfoWithPeriodOrderByInput) {
3103
+ SwapFeesInfoWithPeriodOrderByInput["id_ASC"] = "id_ASC";
3104
+ SwapFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3105
+ SwapFeesInfoWithPeriodOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3106
+ SwapFeesInfoWithPeriodOrderByInput["id_DESC"] = "id_DESC";
3107
+ SwapFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3108
+ SwapFeesInfoWithPeriodOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3109
+ SwapFeesInfoWithPeriodOrderByInput["period_ASC"] = "period_ASC";
3110
+ SwapFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
3111
+ SwapFeesInfoWithPeriodOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
3112
+ SwapFeesInfoWithPeriodOrderByInput["period_DESC"] = "period_DESC";
3113
+ SwapFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
3114
+ SwapFeesInfoWithPeriodOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
3115
+ SwapFeesInfoWithPeriodOrderByInput["timestamp_ASC"] = "timestamp_ASC";
3116
+ SwapFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
3117
+ SwapFeesInfoWithPeriodOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
3118
+ SwapFeesInfoWithPeriodOrderByInput["timestamp_DESC"] = "timestamp_DESC";
3119
+ SwapFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
3120
+ SwapFeesInfoWithPeriodOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
3121
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_ASC"] = "totalFeeReceiverUsd_ASC";
3122
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_ASC_NULLS_FIRST"] = "totalFeeReceiverUsd_ASC_NULLS_FIRST";
3123
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_ASC_NULLS_LAST"] = "totalFeeReceiverUsd_ASC_NULLS_LAST";
3124
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_DESC"] = "totalFeeReceiverUsd_DESC";
3125
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_DESC_NULLS_FIRST"] = "totalFeeReceiverUsd_DESC_NULLS_FIRST";
3126
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeReceiverUsd_DESC_NULLS_LAST"] = "totalFeeReceiverUsd_DESC_NULLS_LAST";
3127
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_ASC"] = "totalFeeUsdForPool_ASC";
3128
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_ASC_NULLS_FIRST"] = "totalFeeUsdForPool_ASC_NULLS_FIRST";
3129
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_ASC_NULLS_LAST"] = "totalFeeUsdForPool_ASC_NULLS_LAST";
3130
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_DESC"] = "totalFeeUsdForPool_DESC";
3131
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_DESC_NULLS_FIRST"] = "totalFeeUsdForPool_DESC_NULLS_FIRST";
3132
+ SwapFeesInfoWithPeriodOrderByInput["totalFeeUsdForPool_DESC_NULLS_LAST"] = "totalFeeUsdForPool_DESC_NULLS_LAST";
3133
+ })(SwapFeesInfoWithPeriodOrderByInput || (SwapFeesInfoWithPeriodOrderByInput = {}));
2660
3134
  export var SwapInfoOrderByInput;
2661
3135
  (function (SwapInfoOrderByInput) {
2662
3136
  SwapInfoOrderByInput["amountInAfterFees_ASC"] = "amountInAfterFees_ASC";
@@ -2731,48 +3205,12 @@ export var SwapInfoOrderByInput;
2731
3205
  SwapInfoOrderByInput["tokenOutPrice_DESC"] = "tokenOutPrice_DESC";
2732
3206
  SwapInfoOrderByInput["tokenOutPrice_DESC_NULLS_FIRST"] = "tokenOutPrice_DESC_NULLS_FIRST";
2733
3207
  SwapInfoOrderByInput["tokenOutPrice_DESC_NULLS_LAST"] = "tokenOutPrice_DESC_NULLS_LAST";
2734
- SwapInfoOrderByInput["transaction_blockNumber_ASC"] = "transaction_blockNumber_ASC";
2735
- SwapInfoOrderByInput["transaction_blockNumber_ASC_NULLS_FIRST"] = "transaction_blockNumber_ASC_NULLS_FIRST";
2736
- SwapInfoOrderByInput["transaction_blockNumber_ASC_NULLS_LAST"] = "transaction_blockNumber_ASC_NULLS_LAST";
2737
- SwapInfoOrderByInput["transaction_blockNumber_DESC"] = "transaction_blockNumber_DESC";
2738
- SwapInfoOrderByInput["transaction_blockNumber_DESC_NULLS_FIRST"] = "transaction_blockNumber_DESC_NULLS_FIRST";
2739
- SwapInfoOrderByInput["transaction_blockNumber_DESC_NULLS_LAST"] = "transaction_blockNumber_DESC_NULLS_LAST";
2740
- SwapInfoOrderByInput["transaction_from_ASC"] = "transaction_from_ASC";
2741
- SwapInfoOrderByInput["transaction_from_ASC_NULLS_FIRST"] = "transaction_from_ASC_NULLS_FIRST";
2742
- SwapInfoOrderByInput["transaction_from_ASC_NULLS_LAST"] = "transaction_from_ASC_NULLS_LAST";
2743
- SwapInfoOrderByInput["transaction_from_DESC"] = "transaction_from_DESC";
2744
- SwapInfoOrderByInput["transaction_from_DESC_NULLS_FIRST"] = "transaction_from_DESC_NULLS_FIRST";
2745
- SwapInfoOrderByInput["transaction_from_DESC_NULLS_LAST"] = "transaction_from_DESC_NULLS_LAST";
2746
- SwapInfoOrderByInput["transaction_hash_ASC"] = "transaction_hash_ASC";
2747
- SwapInfoOrderByInput["transaction_hash_ASC_NULLS_FIRST"] = "transaction_hash_ASC_NULLS_FIRST";
2748
- SwapInfoOrderByInput["transaction_hash_ASC_NULLS_LAST"] = "transaction_hash_ASC_NULLS_LAST";
2749
- SwapInfoOrderByInput["transaction_hash_DESC"] = "transaction_hash_DESC";
2750
- SwapInfoOrderByInput["transaction_hash_DESC_NULLS_FIRST"] = "transaction_hash_DESC_NULLS_FIRST";
2751
- SwapInfoOrderByInput["transaction_hash_DESC_NULLS_LAST"] = "transaction_hash_DESC_NULLS_LAST";
2752
- SwapInfoOrderByInput["transaction_id_ASC"] = "transaction_id_ASC";
2753
- SwapInfoOrderByInput["transaction_id_ASC_NULLS_FIRST"] = "transaction_id_ASC_NULLS_FIRST";
2754
- SwapInfoOrderByInput["transaction_id_ASC_NULLS_LAST"] = "transaction_id_ASC_NULLS_LAST";
2755
- SwapInfoOrderByInput["transaction_id_DESC"] = "transaction_id_DESC";
2756
- SwapInfoOrderByInput["transaction_id_DESC_NULLS_FIRST"] = "transaction_id_DESC_NULLS_FIRST";
2757
- SwapInfoOrderByInput["transaction_id_DESC_NULLS_LAST"] = "transaction_id_DESC_NULLS_LAST";
2758
- SwapInfoOrderByInput["transaction_timestamp_ASC"] = "transaction_timestamp_ASC";
2759
- SwapInfoOrderByInput["transaction_timestamp_ASC_NULLS_FIRST"] = "transaction_timestamp_ASC_NULLS_FIRST";
2760
- SwapInfoOrderByInput["transaction_timestamp_ASC_NULLS_LAST"] = "transaction_timestamp_ASC_NULLS_LAST";
2761
- SwapInfoOrderByInput["transaction_timestamp_DESC"] = "transaction_timestamp_DESC";
2762
- SwapInfoOrderByInput["transaction_timestamp_DESC_NULLS_FIRST"] = "transaction_timestamp_DESC_NULLS_FIRST";
2763
- SwapInfoOrderByInput["transaction_timestamp_DESC_NULLS_LAST"] = "transaction_timestamp_DESC_NULLS_LAST";
2764
- SwapInfoOrderByInput["transaction_to_ASC"] = "transaction_to_ASC";
2765
- SwapInfoOrderByInput["transaction_to_ASC_NULLS_FIRST"] = "transaction_to_ASC_NULLS_FIRST";
2766
- SwapInfoOrderByInput["transaction_to_ASC_NULLS_LAST"] = "transaction_to_ASC_NULLS_LAST";
2767
- SwapInfoOrderByInput["transaction_to_DESC"] = "transaction_to_DESC";
2768
- SwapInfoOrderByInput["transaction_to_DESC_NULLS_FIRST"] = "transaction_to_DESC_NULLS_FIRST";
2769
- SwapInfoOrderByInput["transaction_to_DESC_NULLS_LAST"] = "transaction_to_DESC_NULLS_LAST";
2770
- SwapInfoOrderByInput["transaction_transactionIndex_ASC"] = "transaction_transactionIndex_ASC";
2771
- SwapInfoOrderByInput["transaction_transactionIndex_ASC_NULLS_FIRST"] = "transaction_transactionIndex_ASC_NULLS_FIRST";
2772
- SwapInfoOrderByInput["transaction_transactionIndex_ASC_NULLS_LAST"] = "transaction_transactionIndex_ASC_NULLS_LAST";
2773
- SwapInfoOrderByInput["transaction_transactionIndex_DESC"] = "transaction_transactionIndex_DESC";
2774
- SwapInfoOrderByInput["transaction_transactionIndex_DESC_NULLS_FIRST"] = "transaction_transactionIndex_DESC_NULLS_FIRST";
2775
- SwapInfoOrderByInput["transaction_transactionIndex_DESC_NULLS_LAST"] = "transaction_transactionIndex_DESC_NULLS_LAST";
3208
+ SwapInfoOrderByInput["transactionHash_ASC"] = "transactionHash_ASC";
3209
+ SwapInfoOrderByInput["transactionHash_ASC_NULLS_FIRST"] = "transactionHash_ASC_NULLS_FIRST";
3210
+ SwapInfoOrderByInput["transactionHash_ASC_NULLS_LAST"] = "transactionHash_ASC_NULLS_LAST";
3211
+ SwapInfoOrderByInput["transactionHash_DESC"] = "transactionHash_DESC";
3212
+ SwapInfoOrderByInput["transactionHash_DESC_NULLS_FIRST"] = "transactionHash_DESC_NULLS_FIRST";
3213
+ SwapInfoOrderByInput["transactionHash_DESC_NULLS_LAST"] = "transactionHash_DESC_NULLS_LAST";
2776
3214
  })(SwapInfoOrderByInput || (SwapInfoOrderByInput = {}));
2777
3215
  export var SwapVolumeInfoOrderByInput;
2778
3216
  (function (SwapVolumeInfoOrderByInput) {
@@ -2941,6 +3379,12 @@ export var TradeActionOrderByInput;
2941
3379
  TradeActionOrderByInput["marketAddress_DESC"] = "marketAddress_DESC";
2942
3380
  TradeActionOrderByInput["marketAddress_DESC_NULLS_FIRST"] = "marketAddress_DESC_NULLS_FIRST";
2943
3381
  TradeActionOrderByInput["marketAddress_DESC_NULLS_LAST"] = "marketAddress_DESC_NULLS_LAST";
3382
+ TradeActionOrderByInput["minCollateralFactorForLiquidation_ASC"] = "minCollateralFactorForLiquidation_ASC";
3383
+ TradeActionOrderByInput["minCollateralFactorForLiquidation_ASC_NULLS_FIRST"] = "minCollateralFactorForLiquidation_ASC_NULLS_FIRST";
3384
+ TradeActionOrderByInput["minCollateralFactorForLiquidation_ASC_NULLS_LAST"] = "minCollateralFactorForLiquidation_ASC_NULLS_LAST";
3385
+ TradeActionOrderByInput["minCollateralFactorForLiquidation_DESC"] = "minCollateralFactorForLiquidation_DESC";
3386
+ TradeActionOrderByInput["minCollateralFactorForLiquidation_DESC_NULLS_FIRST"] = "minCollateralFactorForLiquidation_DESC_NULLS_FIRST";
3387
+ TradeActionOrderByInput["minCollateralFactorForLiquidation_DESC_NULLS_LAST"] = "minCollateralFactorForLiquidation_DESC_NULLS_LAST";
2944
3388
  TradeActionOrderByInput["minOutputAmount_ASC"] = "minOutputAmount_ASC";
2945
3389
  TradeActionOrderByInput["minOutputAmount_ASC_NULLS_FIRST"] = "minOutputAmount_ASC_NULLS_FIRST";
2946
3390
  TradeActionOrderByInput["minOutputAmount_ASC_NULLS_LAST"] = "minOutputAmount_ASC_NULLS_LAST";
@@ -2977,6 +3421,30 @@ export var TradeActionOrderByInput;
2977
3421
  TradeActionOrderByInput["positionFeeAmount_DESC"] = "positionFeeAmount_DESC";
2978
3422
  TradeActionOrderByInput["positionFeeAmount_DESC_NULLS_FIRST"] = "positionFeeAmount_DESC_NULLS_FIRST";
2979
3423
  TradeActionOrderByInput["positionFeeAmount_DESC_NULLS_LAST"] = "positionFeeAmount_DESC_NULLS_LAST";
3424
+ TradeActionOrderByInput["positionKey_ASC"] = "positionKey_ASC";
3425
+ TradeActionOrderByInput["positionKey_ASC_NULLS_FIRST"] = "positionKey_ASC_NULLS_FIRST";
3426
+ TradeActionOrderByInput["positionKey_ASC_NULLS_LAST"] = "positionKey_ASC_NULLS_LAST";
3427
+ TradeActionOrderByInput["positionKey_DESC"] = "positionKey_DESC";
3428
+ TradeActionOrderByInput["positionKey_DESC_NULLS_FIRST"] = "positionKey_DESC_NULLS_FIRST";
3429
+ TradeActionOrderByInput["positionKey_DESC_NULLS_LAST"] = "positionKey_DESC_NULLS_LAST";
3430
+ TradeActionOrderByInput["positionLifecycleId_ASC"] = "positionLifecycleId_ASC";
3431
+ TradeActionOrderByInput["positionLifecycleId_ASC_NULLS_FIRST"] = "positionLifecycleId_ASC_NULLS_FIRST";
3432
+ TradeActionOrderByInput["positionLifecycleId_ASC_NULLS_LAST"] = "positionLifecycleId_ASC_NULLS_LAST";
3433
+ TradeActionOrderByInput["positionLifecycleId_DESC"] = "positionLifecycleId_DESC";
3434
+ TradeActionOrderByInput["positionLifecycleId_DESC_NULLS_FIRST"] = "positionLifecycleId_DESC_NULLS_FIRST";
3435
+ TradeActionOrderByInput["positionLifecycleId_DESC_NULLS_LAST"] = "positionLifecycleId_DESC_NULLS_LAST";
3436
+ TradeActionOrderByInput["positionSizeInTokens_ASC"] = "positionSizeInTokens_ASC";
3437
+ TradeActionOrderByInput["positionSizeInTokens_ASC_NULLS_FIRST"] = "positionSizeInTokens_ASC_NULLS_FIRST";
3438
+ TradeActionOrderByInput["positionSizeInTokens_ASC_NULLS_LAST"] = "positionSizeInTokens_ASC_NULLS_LAST";
3439
+ TradeActionOrderByInput["positionSizeInTokens_DESC"] = "positionSizeInTokens_DESC";
3440
+ TradeActionOrderByInput["positionSizeInTokens_DESC_NULLS_FIRST"] = "positionSizeInTokens_DESC_NULLS_FIRST";
3441
+ TradeActionOrderByInput["positionSizeInTokens_DESC_NULLS_LAST"] = "positionSizeInTokens_DESC_NULLS_LAST";
3442
+ TradeActionOrderByInput["positionSizeInUsd_ASC"] = "positionSizeInUsd_ASC";
3443
+ TradeActionOrderByInput["positionSizeInUsd_ASC_NULLS_FIRST"] = "positionSizeInUsd_ASC_NULLS_FIRST";
3444
+ TradeActionOrderByInput["positionSizeInUsd_ASC_NULLS_LAST"] = "positionSizeInUsd_ASC_NULLS_LAST";
3445
+ TradeActionOrderByInput["positionSizeInUsd_DESC"] = "positionSizeInUsd_DESC";
3446
+ TradeActionOrderByInput["positionSizeInUsd_DESC_NULLS_FIRST"] = "positionSizeInUsd_DESC_NULLS_FIRST";
3447
+ TradeActionOrderByInput["positionSizeInUsd_DESC_NULLS_LAST"] = "positionSizeInUsd_DESC_NULLS_LAST";
2980
3448
  TradeActionOrderByInput["priceImpactAmount_ASC"] = "priceImpactAmount_ASC";
2981
3449
  TradeActionOrderByInput["priceImpactAmount_ASC_NULLS_FIRST"] = "priceImpactAmount_ASC_NULLS_FIRST";
2982
3450
  TradeActionOrderByInput["priceImpactAmount_ASC_NULLS_LAST"] = "priceImpactAmount_ASC_NULLS_LAST";
@@ -3037,6 +3505,12 @@ export var TradeActionOrderByInput;
3037
3505
  TradeActionOrderByInput["srcChainId_DESC"] = "srcChainId_DESC";
3038
3506
  TradeActionOrderByInput["srcChainId_DESC_NULLS_FIRST"] = "srcChainId_DESC_NULLS_FIRST";
3039
3507
  TradeActionOrderByInput["srcChainId_DESC_NULLS_LAST"] = "srcChainId_DESC_NULLS_LAST";
3508
+ TradeActionOrderByInput["swapFeeUsd_ASC"] = "swapFeeUsd_ASC";
3509
+ TradeActionOrderByInput["swapFeeUsd_ASC_NULLS_FIRST"] = "swapFeeUsd_ASC_NULLS_FIRST";
3510
+ TradeActionOrderByInput["swapFeeUsd_ASC_NULLS_LAST"] = "swapFeeUsd_ASC_NULLS_LAST";
3511
+ TradeActionOrderByInput["swapFeeUsd_DESC"] = "swapFeeUsd_DESC";
3512
+ TradeActionOrderByInput["swapFeeUsd_DESC_NULLS_FIRST"] = "swapFeeUsd_DESC_NULLS_FIRST";
3513
+ TradeActionOrderByInput["swapFeeUsd_DESC_NULLS_LAST"] = "swapFeeUsd_DESC_NULLS_LAST";
3040
3514
  TradeActionOrderByInput["swapImpactUsd_ASC"] = "swapImpactUsd_ASC";
3041
3515
  TradeActionOrderByInput["swapImpactUsd_ASC_NULLS_FIRST"] = "swapImpactUsd_ASC_NULLS_FIRST";
3042
3516
  TradeActionOrderByInput["swapImpactUsd_ASC_NULLS_LAST"] = "swapImpactUsd_ASC_NULLS_LAST";
@@ -3055,48 +3529,18 @@ export var TradeActionOrderByInput;
3055
3529
  TradeActionOrderByInput["totalImpactUsd_DESC"] = "totalImpactUsd_DESC";
3056
3530
  TradeActionOrderByInput["totalImpactUsd_DESC_NULLS_FIRST"] = "totalImpactUsd_DESC_NULLS_FIRST";
3057
3531
  TradeActionOrderByInput["totalImpactUsd_DESC_NULLS_LAST"] = "totalImpactUsd_DESC_NULLS_LAST";
3058
- TradeActionOrderByInput["transaction_blockNumber_ASC"] = "transaction_blockNumber_ASC";
3059
- TradeActionOrderByInput["transaction_blockNumber_ASC_NULLS_FIRST"] = "transaction_blockNumber_ASC_NULLS_FIRST";
3060
- TradeActionOrderByInput["transaction_blockNumber_ASC_NULLS_LAST"] = "transaction_blockNumber_ASC_NULLS_LAST";
3061
- TradeActionOrderByInput["transaction_blockNumber_DESC"] = "transaction_blockNumber_DESC";
3062
- TradeActionOrderByInput["transaction_blockNumber_DESC_NULLS_FIRST"] = "transaction_blockNumber_DESC_NULLS_FIRST";
3063
- TradeActionOrderByInput["transaction_blockNumber_DESC_NULLS_LAST"] = "transaction_blockNumber_DESC_NULLS_LAST";
3064
- TradeActionOrderByInput["transaction_from_ASC"] = "transaction_from_ASC";
3065
- TradeActionOrderByInput["transaction_from_ASC_NULLS_FIRST"] = "transaction_from_ASC_NULLS_FIRST";
3066
- TradeActionOrderByInput["transaction_from_ASC_NULLS_LAST"] = "transaction_from_ASC_NULLS_LAST";
3067
- TradeActionOrderByInput["transaction_from_DESC"] = "transaction_from_DESC";
3068
- TradeActionOrderByInput["transaction_from_DESC_NULLS_FIRST"] = "transaction_from_DESC_NULLS_FIRST";
3069
- TradeActionOrderByInput["transaction_from_DESC_NULLS_LAST"] = "transaction_from_DESC_NULLS_LAST";
3070
- TradeActionOrderByInput["transaction_hash_ASC"] = "transaction_hash_ASC";
3071
- TradeActionOrderByInput["transaction_hash_ASC_NULLS_FIRST"] = "transaction_hash_ASC_NULLS_FIRST";
3072
- TradeActionOrderByInput["transaction_hash_ASC_NULLS_LAST"] = "transaction_hash_ASC_NULLS_LAST";
3073
- TradeActionOrderByInput["transaction_hash_DESC"] = "transaction_hash_DESC";
3074
- TradeActionOrderByInput["transaction_hash_DESC_NULLS_FIRST"] = "transaction_hash_DESC_NULLS_FIRST";
3075
- TradeActionOrderByInput["transaction_hash_DESC_NULLS_LAST"] = "transaction_hash_DESC_NULLS_LAST";
3076
- TradeActionOrderByInput["transaction_id_ASC"] = "transaction_id_ASC";
3077
- TradeActionOrderByInput["transaction_id_ASC_NULLS_FIRST"] = "transaction_id_ASC_NULLS_FIRST";
3078
- TradeActionOrderByInput["transaction_id_ASC_NULLS_LAST"] = "transaction_id_ASC_NULLS_LAST";
3079
- TradeActionOrderByInput["transaction_id_DESC"] = "transaction_id_DESC";
3080
- TradeActionOrderByInput["transaction_id_DESC_NULLS_FIRST"] = "transaction_id_DESC_NULLS_FIRST";
3081
- TradeActionOrderByInput["transaction_id_DESC_NULLS_LAST"] = "transaction_id_DESC_NULLS_LAST";
3082
- TradeActionOrderByInput["transaction_timestamp_ASC"] = "transaction_timestamp_ASC";
3083
- TradeActionOrderByInput["transaction_timestamp_ASC_NULLS_FIRST"] = "transaction_timestamp_ASC_NULLS_FIRST";
3084
- TradeActionOrderByInput["transaction_timestamp_ASC_NULLS_LAST"] = "transaction_timestamp_ASC_NULLS_LAST";
3085
- TradeActionOrderByInput["transaction_timestamp_DESC"] = "transaction_timestamp_DESC";
3086
- TradeActionOrderByInput["transaction_timestamp_DESC_NULLS_FIRST"] = "transaction_timestamp_DESC_NULLS_FIRST";
3087
- TradeActionOrderByInput["transaction_timestamp_DESC_NULLS_LAST"] = "transaction_timestamp_DESC_NULLS_LAST";
3088
- TradeActionOrderByInput["transaction_to_ASC"] = "transaction_to_ASC";
3089
- TradeActionOrderByInput["transaction_to_ASC_NULLS_FIRST"] = "transaction_to_ASC_NULLS_FIRST";
3090
- TradeActionOrderByInput["transaction_to_ASC_NULLS_LAST"] = "transaction_to_ASC_NULLS_LAST";
3091
- TradeActionOrderByInput["transaction_to_DESC"] = "transaction_to_DESC";
3092
- TradeActionOrderByInput["transaction_to_DESC_NULLS_FIRST"] = "transaction_to_DESC_NULLS_FIRST";
3093
- TradeActionOrderByInput["transaction_to_DESC_NULLS_LAST"] = "transaction_to_DESC_NULLS_LAST";
3094
- TradeActionOrderByInput["transaction_transactionIndex_ASC"] = "transaction_transactionIndex_ASC";
3095
- TradeActionOrderByInput["transaction_transactionIndex_ASC_NULLS_FIRST"] = "transaction_transactionIndex_ASC_NULLS_FIRST";
3096
- TradeActionOrderByInput["transaction_transactionIndex_ASC_NULLS_LAST"] = "transaction_transactionIndex_ASC_NULLS_LAST";
3097
- TradeActionOrderByInput["transaction_transactionIndex_DESC"] = "transaction_transactionIndex_DESC";
3098
- TradeActionOrderByInput["transaction_transactionIndex_DESC_NULLS_FIRST"] = "transaction_transactionIndex_DESC_NULLS_FIRST";
3099
- TradeActionOrderByInput["transaction_transactionIndex_DESC_NULLS_LAST"] = "transaction_transactionIndex_DESC_NULLS_LAST";
3532
+ TradeActionOrderByInput["traderDiscountAmount_ASC"] = "traderDiscountAmount_ASC";
3533
+ TradeActionOrderByInput["traderDiscountAmount_ASC_NULLS_FIRST"] = "traderDiscountAmount_ASC_NULLS_FIRST";
3534
+ TradeActionOrderByInput["traderDiscountAmount_ASC_NULLS_LAST"] = "traderDiscountAmount_ASC_NULLS_LAST";
3535
+ TradeActionOrderByInput["traderDiscountAmount_DESC"] = "traderDiscountAmount_DESC";
3536
+ TradeActionOrderByInput["traderDiscountAmount_DESC_NULLS_FIRST"] = "traderDiscountAmount_DESC_NULLS_FIRST";
3537
+ TradeActionOrderByInput["traderDiscountAmount_DESC_NULLS_LAST"] = "traderDiscountAmount_DESC_NULLS_LAST";
3538
+ TradeActionOrderByInput["transactionHash_ASC"] = "transactionHash_ASC";
3539
+ TradeActionOrderByInput["transactionHash_ASC_NULLS_FIRST"] = "transactionHash_ASC_NULLS_FIRST";
3540
+ TradeActionOrderByInput["transactionHash_ASC_NULLS_LAST"] = "transactionHash_ASC_NULLS_LAST";
3541
+ TradeActionOrderByInput["transactionHash_DESC"] = "transactionHash_DESC";
3542
+ TradeActionOrderByInput["transactionHash_DESC_NULLS_FIRST"] = "transactionHash_DESC_NULLS_FIRST";
3543
+ TradeActionOrderByInput["transactionHash_DESC_NULLS_LAST"] = "transactionHash_DESC_NULLS_LAST";
3100
3544
  TradeActionOrderByInput["triggerPrice_ASC"] = "triggerPrice_ASC";
3101
3545
  TradeActionOrderByInput["triggerPrice_ASC_NULLS_FIRST"] = "triggerPrice_ASC_NULLS_FIRST";
3102
3546
  TradeActionOrderByInput["triggerPrice_ASC_NULLS_LAST"] = "triggerPrice_ASC_NULLS_LAST";
@@ -3109,6 +3553,12 @@ export var TradeActionOrderByInput;
3109
3553
  TradeActionOrderByInput["twapGroupId_DESC"] = "twapGroupId_DESC";
3110
3554
  TradeActionOrderByInput["twapGroupId_DESC_NULLS_FIRST"] = "twapGroupId_DESC_NULLS_FIRST";
3111
3555
  TradeActionOrderByInput["twapGroupId_DESC_NULLS_LAST"] = "twapGroupId_DESC_NULLS_LAST";
3556
+ TradeActionOrderByInput["uiFeeFactor_ASC"] = "uiFeeFactor_ASC";
3557
+ TradeActionOrderByInput["uiFeeFactor_ASC_NULLS_FIRST"] = "uiFeeFactor_ASC_NULLS_FIRST";
3558
+ TradeActionOrderByInput["uiFeeFactor_ASC_NULLS_LAST"] = "uiFeeFactor_ASC_NULLS_LAST";
3559
+ TradeActionOrderByInput["uiFeeFactor_DESC"] = "uiFeeFactor_DESC";
3560
+ TradeActionOrderByInput["uiFeeFactor_DESC_NULLS_FIRST"] = "uiFeeFactor_DESC_NULLS_FIRST";
3561
+ TradeActionOrderByInput["uiFeeFactor_DESC_NULLS_LAST"] = "uiFeeFactor_DESC_NULLS_LAST";
3112
3562
  TradeActionOrderByInput["uiFeeReceiver_ASC"] = "uiFeeReceiver_ASC";
3113
3563
  TradeActionOrderByInput["uiFeeReceiver_ASC_NULLS_FIRST"] = "uiFeeReceiver_ASC_NULLS_FIRST";
3114
3564
  TradeActionOrderByInput["uiFeeReceiver_ASC_NULLS_LAST"] = "uiFeeReceiver_ASC_NULLS_LAST";
@@ -3116,51 +3566,111 @@ export var TradeActionOrderByInput;
3116
3566
  TradeActionOrderByInput["uiFeeReceiver_DESC_NULLS_FIRST"] = "uiFeeReceiver_DESC_NULLS_FIRST";
3117
3567
  TradeActionOrderByInput["uiFeeReceiver_DESC_NULLS_LAST"] = "uiFeeReceiver_DESC_NULLS_LAST";
3118
3568
  })(TradeActionOrderByInput || (TradeActionOrderByInput = {}));
3119
- export var TransactionOrderByInput;
3120
- (function (TransactionOrderByInput) {
3121
- TransactionOrderByInput["blockNumber_ASC"] = "blockNumber_ASC";
3122
- TransactionOrderByInput["blockNumber_ASC_NULLS_FIRST"] = "blockNumber_ASC_NULLS_FIRST";
3123
- TransactionOrderByInput["blockNumber_ASC_NULLS_LAST"] = "blockNumber_ASC_NULLS_LAST";
3124
- TransactionOrderByInput["blockNumber_DESC"] = "blockNumber_DESC";
3125
- TransactionOrderByInput["blockNumber_DESC_NULLS_FIRST"] = "blockNumber_DESC_NULLS_FIRST";
3126
- TransactionOrderByInput["blockNumber_DESC_NULLS_LAST"] = "blockNumber_DESC_NULLS_LAST";
3127
- TransactionOrderByInput["from_ASC"] = "from_ASC";
3128
- TransactionOrderByInput["from_ASC_NULLS_FIRST"] = "from_ASC_NULLS_FIRST";
3129
- TransactionOrderByInput["from_ASC_NULLS_LAST"] = "from_ASC_NULLS_LAST";
3130
- TransactionOrderByInput["from_DESC"] = "from_DESC";
3131
- TransactionOrderByInput["from_DESC_NULLS_FIRST"] = "from_DESC_NULLS_FIRST";
3132
- TransactionOrderByInput["from_DESC_NULLS_LAST"] = "from_DESC_NULLS_LAST";
3133
- TransactionOrderByInput["hash_ASC"] = "hash_ASC";
3134
- TransactionOrderByInput["hash_ASC_NULLS_FIRST"] = "hash_ASC_NULLS_FIRST";
3135
- TransactionOrderByInput["hash_ASC_NULLS_LAST"] = "hash_ASC_NULLS_LAST";
3136
- TransactionOrderByInput["hash_DESC"] = "hash_DESC";
3137
- TransactionOrderByInput["hash_DESC_NULLS_FIRST"] = "hash_DESC_NULLS_FIRST";
3138
- TransactionOrderByInput["hash_DESC_NULLS_LAST"] = "hash_DESC_NULLS_LAST";
3139
- TransactionOrderByInput["id_ASC"] = "id_ASC";
3140
- TransactionOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3141
- TransactionOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3142
- TransactionOrderByInput["id_DESC"] = "id_DESC";
3143
- TransactionOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3144
- TransactionOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3145
- TransactionOrderByInput["timestamp_ASC"] = "timestamp_ASC";
3146
- TransactionOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
3147
- TransactionOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
3148
- TransactionOrderByInput["timestamp_DESC"] = "timestamp_DESC";
3149
- TransactionOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
3150
- TransactionOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
3151
- TransactionOrderByInput["to_ASC"] = "to_ASC";
3152
- TransactionOrderByInput["to_ASC_NULLS_FIRST"] = "to_ASC_NULLS_FIRST";
3153
- TransactionOrderByInput["to_ASC_NULLS_LAST"] = "to_ASC_NULLS_LAST";
3154
- TransactionOrderByInput["to_DESC"] = "to_DESC";
3155
- TransactionOrderByInput["to_DESC_NULLS_FIRST"] = "to_DESC_NULLS_FIRST";
3156
- TransactionOrderByInput["to_DESC_NULLS_LAST"] = "to_DESC_NULLS_LAST";
3157
- TransactionOrderByInput["transactionIndex_ASC"] = "transactionIndex_ASC";
3158
- TransactionOrderByInput["transactionIndex_ASC_NULLS_FIRST"] = "transactionIndex_ASC_NULLS_FIRST";
3159
- TransactionOrderByInput["transactionIndex_ASC_NULLS_LAST"] = "transactionIndex_ASC_NULLS_LAST";
3160
- TransactionOrderByInput["transactionIndex_DESC"] = "transactionIndex_DESC";
3161
- TransactionOrderByInput["transactionIndex_DESC_NULLS_FIRST"] = "transactionIndex_DESC_NULLS_FIRST";
3162
- TransactionOrderByInput["transactionIndex_DESC_NULLS_LAST"] = "transactionIndex_DESC_NULLS_LAST";
3163
- })(TransactionOrderByInput || (TransactionOrderByInput = {}));
3569
+ export var TraderFirstReferralOrderByInput;
3570
+ (function (TraderFirstReferralOrderByInput) {
3571
+ TraderFirstReferralOrderByInput["id_ASC"] = "id_ASC";
3572
+ TraderFirstReferralOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3573
+ TraderFirstReferralOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3574
+ TraderFirstReferralOrderByInput["id_DESC"] = "id_DESC";
3575
+ TraderFirstReferralOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3576
+ TraderFirstReferralOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3577
+ TraderFirstReferralOrderByInput["referralCode_ASC"] = "referralCode_ASC";
3578
+ TraderFirstReferralOrderByInput["referralCode_ASC_NULLS_FIRST"] = "referralCode_ASC_NULLS_FIRST";
3579
+ TraderFirstReferralOrderByInput["referralCode_ASC_NULLS_LAST"] = "referralCode_ASC_NULLS_LAST";
3580
+ TraderFirstReferralOrderByInput["referralCode_DESC"] = "referralCode_DESC";
3581
+ TraderFirstReferralOrderByInput["referralCode_DESC_NULLS_FIRST"] = "referralCode_DESC_NULLS_FIRST";
3582
+ TraderFirstReferralOrderByInput["referralCode_DESC_NULLS_LAST"] = "referralCode_DESC_NULLS_LAST";
3583
+ TraderFirstReferralOrderByInput["timestamp_ASC"] = "timestamp_ASC";
3584
+ TraderFirstReferralOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
3585
+ TraderFirstReferralOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
3586
+ TraderFirstReferralOrderByInput["timestamp_DESC"] = "timestamp_DESC";
3587
+ TraderFirstReferralOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
3588
+ TraderFirstReferralOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
3589
+ TraderFirstReferralOrderByInput["trader_ASC"] = "trader_ASC";
3590
+ TraderFirstReferralOrderByInput["trader_ASC_NULLS_FIRST"] = "trader_ASC_NULLS_FIRST";
3591
+ TraderFirstReferralOrderByInput["trader_ASC_NULLS_LAST"] = "trader_ASC_NULLS_LAST";
3592
+ TraderFirstReferralOrderByInput["trader_DESC"] = "trader_DESC";
3593
+ TraderFirstReferralOrderByInput["trader_DESC_NULLS_FIRST"] = "trader_DESC_NULLS_FIRST";
3594
+ TraderFirstReferralOrderByInput["trader_DESC_NULLS_LAST"] = "trader_DESC_NULLS_LAST";
3595
+ })(TraderFirstReferralOrderByInput || (TraderFirstReferralOrderByInput = {}));
3596
+ export var TraderReferralOrderByInput;
3597
+ (function (TraderReferralOrderByInput) {
3598
+ TraderReferralOrderByInput["affiliate_ASC"] = "affiliate_ASC";
3599
+ TraderReferralOrderByInput["affiliate_ASC_NULLS_FIRST"] = "affiliate_ASC_NULLS_FIRST";
3600
+ TraderReferralOrderByInput["affiliate_ASC_NULLS_LAST"] = "affiliate_ASC_NULLS_LAST";
3601
+ TraderReferralOrderByInput["affiliate_DESC"] = "affiliate_DESC";
3602
+ TraderReferralOrderByInput["affiliate_DESC_NULLS_FIRST"] = "affiliate_DESC_NULLS_FIRST";
3603
+ TraderReferralOrderByInput["affiliate_DESC_NULLS_LAST"] = "affiliate_DESC_NULLS_LAST";
3604
+ TraderReferralOrderByInput["id_ASC"] = "id_ASC";
3605
+ TraderReferralOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3606
+ TraderReferralOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3607
+ TraderReferralOrderByInput["id_DESC"] = "id_DESC";
3608
+ TraderReferralOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3609
+ TraderReferralOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3610
+ TraderReferralOrderByInput["referralCode_ASC"] = "referralCode_ASC";
3611
+ TraderReferralOrderByInput["referralCode_ASC_NULLS_FIRST"] = "referralCode_ASC_NULLS_FIRST";
3612
+ TraderReferralOrderByInput["referralCode_ASC_NULLS_LAST"] = "referralCode_ASC_NULLS_LAST";
3613
+ TraderReferralOrderByInput["referralCode_DESC"] = "referralCode_DESC";
3614
+ TraderReferralOrderByInput["referralCode_DESC_NULLS_FIRST"] = "referralCode_DESC_NULLS_FIRST";
3615
+ TraderReferralOrderByInput["referralCode_DESC_NULLS_LAST"] = "referralCode_DESC_NULLS_LAST";
3616
+ TraderReferralOrderByInput["updatedAtBlock_ASC"] = "updatedAtBlock_ASC";
3617
+ TraderReferralOrderByInput["updatedAtBlock_ASC_NULLS_FIRST"] = "updatedAtBlock_ASC_NULLS_FIRST";
3618
+ TraderReferralOrderByInput["updatedAtBlock_ASC_NULLS_LAST"] = "updatedAtBlock_ASC_NULLS_LAST";
3619
+ TraderReferralOrderByInput["updatedAtBlock_DESC"] = "updatedAtBlock_DESC";
3620
+ TraderReferralOrderByInput["updatedAtBlock_DESC_NULLS_FIRST"] = "updatedAtBlock_DESC_NULLS_FIRST";
3621
+ TraderReferralOrderByInput["updatedAtBlock_DESC_NULLS_LAST"] = "updatedAtBlock_DESC_NULLS_LAST";
3622
+ TraderReferralOrderByInput["updatedAtTimestamp_ASC"] = "updatedAtTimestamp_ASC";
3623
+ TraderReferralOrderByInput["updatedAtTimestamp_ASC_NULLS_FIRST"] = "updatedAtTimestamp_ASC_NULLS_FIRST";
3624
+ TraderReferralOrderByInput["updatedAtTimestamp_ASC_NULLS_LAST"] = "updatedAtTimestamp_ASC_NULLS_LAST";
3625
+ TraderReferralOrderByInput["updatedAtTimestamp_DESC"] = "updatedAtTimestamp_DESC";
3626
+ TraderReferralOrderByInput["updatedAtTimestamp_DESC_NULLS_FIRST"] = "updatedAtTimestamp_DESC_NULLS_FIRST";
3627
+ TraderReferralOrderByInput["updatedAtTimestamp_DESC_NULLS_LAST"] = "updatedAtTimestamp_DESC_NULLS_LAST";
3628
+ TraderReferralOrderByInput["updatedTxnHash_ASC"] = "updatedTxnHash_ASC";
3629
+ TraderReferralOrderByInput["updatedTxnHash_ASC_NULLS_FIRST"] = "updatedTxnHash_ASC_NULLS_FIRST";
3630
+ TraderReferralOrderByInput["updatedTxnHash_ASC_NULLS_LAST"] = "updatedTxnHash_ASC_NULLS_LAST";
3631
+ TraderReferralOrderByInput["updatedTxnHash_DESC"] = "updatedTxnHash_DESC";
3632
+ TraderReferralOrderByInput["updatedTxnHash_DESC_NULLS_FIRST"] = "updatedTxnHash_DESC_NULLS_FIRST";
3633
+ TraderReferralOrderByInput["updatedTxnHash_DESC_NULLS_LAST"] = "updatedTxnHash_DESC_NULLS_LAST";
3634
+ })(TraderReferralOrderByInput || (TraderReferralOrderByInput = {}));
3635
+ export var TraderReferralTradeStatsByHourOrderByInput;
3636
+ (function (TraderReferralTradeStatsByHourOrderByInput) {
3637
+ TraderReferralTradeStatsByHourOrderByInput["affiliateRewardsUsd_ASC"] = "affiliateRewardsUsd_ASC";
3638
+ TraderReferralTradeStatsByHourOrderByInput["affiliateRewardsUsd_ASC_NULLS_FIRST"] = "affiliateRewardsUsd_ASC_NULLS_FIRST";
3639
+ TraderReferralTradeStatsByHourOrderByInput["affiliateRewardsUsd_ASC_NULLS_LAST"] = "affiliateRewardsUsd_ASC_NULLS_LAST";
3640
+ TraderReferralTradeStatsByHourOrderByInput["affiliateRewardsUsd_DESC"] = "affiliateRewardsUsd_DESC";
3641
+ TraderReferralTradeStatsByHourOrderByInput["affiliateRewardsUsd_DESC_NULLS_FIRST"] = "affiliateRewardsUsd_DESC_NULLS_FIRST";
3642
+ TraderReferralTradeStatsByHourOrderByInput["affiliateRewardsUsd_DESC_NULLS_LAST"] = "affiliateRewardsUsd_DESC_NULLS_LAST";
3643
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_ASC"] = "discountsUsd_ASC";
3644
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_ASC_NULLS_FIRST"] = "discountsUsd_ASC_NULLS_FIRST";
3645
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_ASC_NULLS_LAST"] = "discountsUsd_ASC_NULLS_LAST";
3646
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_DESC"] = "discountsUsd_DESC";
3647
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_DESC_NULLS_FIRST"] = "discountsUsd_DESC_NULLS_FIRST";
3648
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_DESC_NULLS_LAST"] = "discountsUsd_DESC_NULLS_LAST";
3649
+ TraderReferralTradeStatsByHourOrderByInput["id_ASC"] = "id_ASC";
3650
+ TraderReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3651
+ TraderReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3652
+ TraderReferralTradeStatsByHourOrderByInput["id_DESC"] = "id_DESC";
3653
+ TraderReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3654
+ TraderReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3655
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_ASC"] = "timestamp_ASC";
3656
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
3657
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
3658
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_DESC"] = "timestamp_DESC";
3659
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
3660
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
3661
+ TraderReferralTradeStatsByHourOrderByInput["trader_ASC"] = "trader_ASC";
3662
+ TraderReferralTradeStatsByHourOrderByInput["trader_ASC_NULLS_FIRST"] = "trader_ASC_NULLS_FIRST";
3663
+ TraderReferralTradeStatsByHourOrderByInput["trader_ASC_NULLS_LAST"] = "trader_ASC_NULLS_LAST";
3664
+ TraderReferralTradeStatsByHourOrderByInput["trader_DESC"] = "trader_DESC";
3665
+ TraderReferralTradeStatsByHourOrderByInput["trader_DESC_NULLS_FIRST"] = "trader_DESC_NULLS_FIRST";
3666
+ TraderReferralTradeStatsByHourOrderByInput["trader_DESC_NULLS_LAST"] = "trader_DESC_NULLS_LAST";
3667
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_ASC"] = "volumeUsd_ASC";
3668
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_FIRST"] = "volumeUsd_ASC_NULLS_FIRST";
3669
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_LAST"] = "volumeUsd_ASC_NULLS_LAST";
3670
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_DESC"] = "volumeUsd_DESC";
3671
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_FIRST"] = "volumeUsd_DESC_NULLS_FIRST";
3672
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_LAST"] = "volumeUsd_DESC_NULLS_LAST";
3673
+ })(TraderReferralTradeStatsByHourOrderByInput || (TraderReferralTradeStatsByHourOrderByInput = {}));
3164
3674
  export var VolumeInfoOrderByInput;
3165
3675
  (function (VolumeInfoOrderByInput) {
3166
3676
  VolumeInfoOrderByInput["depositVolumeUsd_ASC"] = "depositVolumeUsd_ASC";