@gmx-io/sdk 1.5.0-alpha-9 → 1.5.0-alpha-10

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 (201) hide show
  1. package/build/cjs/scripts/subsquid-codegen.js +1 -1
  2. package/build/cjs/src/clients/v2/__tests__/data.spec.js +85 -0
  3. package/build/cjs/src/clients/v2/__tests__/decrease.spec.js +471 -0
  4. package/build/cjs/src/clients/v2/__tests__/editCancel.spec.js +259 -0
  5. package/build/cjs/src/clients/v2/__tests__/errors.spec.js +261 -0
  6. package/build/cjs/src/clients/v2/__tests__/increase.spec.js +764 -0
  7. package/build/cjs/src/clients/v2/__tests__/subaccount.spec.js +74 -0
  8. package/build/cjs/src/clients/v2/__tests__/swap.spec.js +192 -0
  9. package/build/cjs/src/clients/v2/__tests__/testUtil.js +136 -0
  10. package/build/cjs/src/clients/v2/index.js +162 -27
  11. package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +48 -0
  12. package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +342 -0
  13. package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +90 -0
  14. package/build/cjs/src/codegen/subsquid.js +323 -1
  15. package/build/cjs/src/configs/chains.js +11 -1
  16. package/build/cjs/src/configs/contracts.js +7 -7
  17. package/build/cjs/src/configs/markets.js +56 -2
  18. package/build/cjs/src/configs/tokens.js +63 -132
  19. package/build/cjs/src/test/mock.js +1 -1
  20. package/build/cjs/src/utils/__tests__/markets.spec.js +10 -0
  21. package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +2 -0
  22. package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +2 -0
  23. package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -0
  24. package/build/cjs/src/utils/__tests__/positions.spec.js +59 -7
  25. package/build/cjs/src/utils/__tests__/uiFeeReceiver.spec.js +34 -0
  26. package/build/cjs/src/utils/balances/api.js +65 -0
  27. package/build/cjs/src/utils/buyback/api.js +7 -0
  28. package/build/cjs/src/utils/buyback/types.js +2 -0
  29. package/build/cjs/src/utils/errors/index.js +1 -0
  30. package/build/cjs/src/utils/errors/isIgnoredEstimateGasError.js +23 -0
  31. package/build/cjs/src/utils/express/index.js +18 -0
  32. package/build/cjs/src/utils/express/types.js +2 -0
  33. package/build/cjs/src/utils/express/utils/batchOrderUtils.js +218 -0
  34. package/build/cjs/src/utils/express/utils/bridgeOutUtils.js +73 -0
  35. package/build/cjs/src/utils/express/utils/estimateExpressParams.js +244 -0
  36. package/build/cjs/src/utils/express/utils/expressParamsUtils.js +22 -0
  37. package/build/cjs/src/utils/express/utils/fetchGelatoGasTankBalance.js +13 -0
  38. package/build/cjs/src/utils/express/utils/gelatoRelayUtils.js +77 -0
  39. package/build/cjs/src/utils/express/utils/globalExpressParams.js +40 -0
  40. package/build/cjs/src/utils/express/utils/index.js +27 -0
  41. package/build/cjs/src/utils/express/utils/oracleParamsUtils.js +49 -0
  42. package/build/cjs/src/utils/express/utils/referralUtils.js +35 -0
  43. package/build/cjs/src/utils/express/utils/relayParamsUtils.js +208 -0
  44. package/build/cjs/src/utils/fees/priceImpact.js +1 -2
  45. package/build/cjs/src/utils/http/http.js +86 -13
  46. package/build/cjs/src/utils/markets/utils.js +8 -0
  47. package/build/cjs/src/utils/metrics/index.js +7 -0
  48. package/build/cjs/src/utils/numbers/utils.js +29 -27
  49. package/build/cjs/src/utils/orderTransactions/api.js +88 -0
  50. package/build/cjs/src/utils/orderTransactions/index.js +2 -0
  51. package/build/cjs/src/utils/orderTransactions/simulation.js +141 -0
  52. package/build/cjs/src/utils/orderTransactions/utils.js +4 -1
  53. package/build/cjs/src/utils/orderTransactions/validateTypedData.js +100 -0
  54. package/build/cjs/src/utils/positions/utils.js +5 -19
  55. package/build/cjs/src/utils/rpc/createViemRpc.js +39 -0
  56. package/build/cjs/src/utils/rpc/index.js +5 -0
  57. package/build/cjs/src/utils/signer/index.js +5 -0
  58. package/build/cjs/src/utils/signer/privateKeySigner.js +42 -0
  59. package/build/cjs/src/utils/subaccount/api.js +22 -0
  60. package/build/cjs/src/utils/subaccount/generateSubaccount.js +19 -0
  61. package/build/cjs/src/utils/subaccount/getEmptySubaccountApproval.js +24 -0
  62. package/build/cjs/src/utils/subaccount/getSubaccountApprovalTypedData.js +51 -0
  63. package/build/cjs/src/utils/subaccount/hashSubaccountApproval.js +28 -0
  64. package/build/cjs/src/utils/subaccount/index.js +30 -0
  65. package/build/cjs/src/utils/subaccount/types.js +2 -0
  66. package/build/cjs/src/utils/swap/swapPath.js +4 -1
  67. package/build/cjs/src/utils/trade/types.js +1 -1
  68. package/build/cjs/src/utils/tradeHistory/utils.js +14 -28
  69. package/build/cjs/src/utils/twap/index.js +4 -1
  70. package/build/cjs/src/utils/twap/uiFeeReceiver.js +23 -7
  71. package/build/esm/scripts/subsquid-codegen.js +1 -1
  72. package/build/esm/src/clients/v2/__tests__/data.spec.js +83 -0
  73. package/build/esm/src/clients/v2/__tests__/decrease.spec.js +469 -0
  74. package/build/esm/src/clients/v2/__tests__/editCancel.spec.js +257 -0
  75. package/build/esm/src/clients/v2/__tests__/errors.spec.js +259 -0
  76. package/build/esm/src/clients/v2/__tests__/increase.spec.js +762 -0
  77. package/build/esm/src/clients/v2/__tests__/subaccount.spec.js +72 -0
  78. package/build/esm/src/clients/v2/__tests__/swap.spec.js +190 -0
  79. package/build/esm/src/clients/v2/__tests__/testUtil.js +124 -0
  80. package/build/esm/src/clients/v2/index.js +136 -4
  81. package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +48 -0
  82. package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +342 -0
  83. package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +90 -0
  84. package/build/esm/src/codegen/subsquid.js +321 -0
  85. package/build/esm/src/configs/chains.js +11 -1
  86. package/build/esm/src/configs/contracts.js +7 -7
  87. package/build/esm/src/configs/markets.js +55 -1
  88. package/build/esm/src/configs/tokens.js +62 -130
  89. package/build/esm/src/test/mock.js +1 -1
  90. package/build/esm/src/utils/__tests__/markets.spec.js +10 -0
  91. package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +2 -0
  92. package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +2 -0
  93. package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -0
  94. package/build/esm/src/utils/__tests__/positions.spec.js +60 -8
  95. package/build/esm/src/utils/__tests__/uiFeeReceiver.spec.js +35 -1
  96. package/build/esm/src/utils/balances/api.js +56 -0
  97. package/build/esm/src/utils/buyback/api.js +3 -0
  98. package/build/esm/src/utils/buyback/types.js +1 -0
  99. package/build/esm/src/utils/errors/index.js +1 -0
  100. package/build/esm/src/utils/errors/isIgnoredEstimateGasError.js +19 -0
  101. package/build/esm/src/utils/express/index.js +2 -0
  102. package/build/esm/src/utils/express/types.js +1 -0
  103. package/build/esm/src/utils/express/utils/batchOrderUtils.js +210 -0
  104. package/build/esm/src/utils/express/utils/bridgeOutUtils.js +69 -0
  105. package/build/esm/src/utils/express/utils/estimateExpressParams.js +238 -0
  106. package/build/esm/src/utils/express/utils/expressParamsUtils.js +16 -0
  107. package/build/esm/src/utils/express/utils/fetchGelatoGasTankBalance.js +9 -0
  108. package/build/esm/src/utils/express/utils/gelatoRelayUtils.js +71 -0
  109. package/build/esm/src/utils/express/utils/globalExpressParams.js +36 -0
  110. package/build/esm/src/utils/express/utils/index.js +11 -0
  111. package/build/esm/src/utils/express/utils/oracleParamsUtils.js +42 -0
  112. package/build/esm/src/utils/express/utils/referralUtils.js +30 -0
  113. package/build/esm/src/utils/express/utils/relayParamsUtils.js +198 -0
  114. package/build/esm/src/utils/fees/priceImpact.js +1 -2
  115. package/build/esm/src/utils/http/http.js +84 -12
  116. package/build/esm/src/utils/markets/utils.js +8 -0
  117. package/build/esm/src/utils/metrics/index.js +4 -0
  118. package/build/esm/src/utils/numbers/utils.js +25 -24
  119. package/build/esm/src/utils/orderTransactions/api.js +77 -0
  120. package/build/esm/src/utils/orderTransactions/index.js +2 -0
  121. package/build/esm/src/utils/orderTransactions/simulation.js +136 -0
  122. package/build/esm/src/utils/orderTransactions/utils.js +4 -1
  123. package/build/esm/src/utils/orderTransactions/validateTypedData.js +95 -0
  124. package/build/esm/src/utils/positions/utils.js +5 -19
  125. package/build/esm/src/utils/rpc/createViemRpc.js +35 -0
  126. package/build/esm/src/utils/rpc/index.js +1 -0
  127. package/build/esm/src/utils/signer/index.js +1 -0
  128. package/build/esm/src/utils/signer/privateKeySigner.js +38 -0
  129. package/build/esm/src/utils/subaccount/api.js +16 -0
  130. package/build/esm/src/utils/subaccount/generateSubaccount.js +15 -0
  131. package/build/esm/src/utils/subaccount/getEmptySubaccountApproval.js +20 -0
  132. package/build/esm/src/utils/subaccount/getSubaccountApprovalTypedData.js +47 -0
  133. package/build/esm/src/utils/subaccount/hashSubaccountApproval.js +24 -0
  134. package/build/esm/src/utils/subaccount/index.js +6 -0
  135. package/build/esm/src/utils/subaccount/types.js +1 -0
  136. package/build/esm/src/utils/swap/swapPath.js +5 -2
  137. package/build/esm/src/utils/trade/types.js +1 -1
  138. package/build/esm/src/utils/tradeHistory/utils.js +13 -26
  139. package/build/esm/src/utils/twap/index.js +1 -0
  140. package/build/esm/src/utils/twap/uiFeeReceiver.js +20 -6
  141. package/build/types/src/clients/v2/__tests__/data.spec.d.ts +1 -0
  142. package/build/types/src/clients/v2/__tests__/decrease.spec.d.ts +1 -0
  143. package/build/types/src/clients/v2/__tests__/editCancel.spec.d.ts +1 -0
  144. package/build/types/src/clients/v2/__tests__/errors.spec.d.ts +1 -0
  145. package/build/types/src/clients/v2/__tests__/increase.spec.d.ts +1 -0
  146. package/build/types/src/clients/v2/__tests__/subaccount.spec.d.ts +1 -0
  147. package/build/types/src/clients/v2/__tests__/swap.spec.d.ts +1 -0
  148. package/build/types/src/clients/v2/__tests__/testUtil.d.ts +25 -0
  149. package/build/types/src/clients/v2/index.d.ts +59 -1
  150. package/build/types/src/codegen/prebuilt/index.d.ts +480 -0
  151. package/build/types/src/codegen/subsquid.d.ts +1276 -44
  152. package/build/types/src/configs/chains.d.ts +10 -1
  153. package/build/types/src/configs/contracts.d.ts +6 -6
  154. package/build/types/src/configs/markets.d.ts +5 -0
  155. package/build/types/src/configs/tokens.d.ts +6 -1
  156. package/build/types/src/utils/balances/api.d.ts +39 -0
  157. package/build/types/src/utils/buyback/api.d.ts +5 -0
  158. package/build/types/src/utils/buyback/types.d.ts +15 -0
  159. package/build/types/src/utils/chains/types.d.ts +1 -0
  160. package/build/types/src/utils/errors/index.d.ts +1 -0
  161. package/build/types/src/utils/errors/isIgnoredEstimateGasError.d.ts +2 -0
  162. package/build/types/src/utils/express/index.d.ts +2 -0
  163. package/build/types/src/utils/express/types.d.ts +95 -0
  164. package/build/types/src/utils/express/utils/batchOrderUtils.d.ts +98 -0
  165. package/build/types/src/utils/express/utils/bridgeOutUtils.d.ts +21 -0
  166. package/build/types/src/utils/express/utils/estimateExpressParams.d.ts +37 -0
  167. package/build/types/src/utils/express/utils/expressParamsUtils.d.ts +19 -0
  168. package/build/types/src/utils/express/utils/fetchGelatoGasTankBalance.d.ts +5 -0
  169. package/build/types/src/utils/express/utils/gelatoRelayUtils.d.ts +25 -0
  170. package/build/types/src/utils/express/utils/globalExpressParams.d.ts +31 -0
  171. package/build/types/src/utils/express/utils/index.d.ts +11 -0
  172. package/build/types/src/utils/express/utils/oracleParamsUtils.d.ts +10 -0
  173. package/build/types/src/utils/express/utils/referralUtils.d.ts +17 -0
  174. package/build/types/src/utils/express/utils/relayParamsUtils.d.ts +63 -0
  175. package/build/types/src/utils/http/http.d.ts +16 -1
  176. package/build/types/src/utils/http/types.d.ts +3 -0
  177. package/build/types/src/utils/metrics/index.d.ts +4 -0
  178. package/build/types/src/utils/numbers/utils.d.ts +2 -5
  179. package/build/types/src/utils/orderTransactions/api.d.ts +158 -0
  180. package/build/types/src/utils/orderTransactions/index.d.ts +2 -0
  181. package/build/types/src/utils/orderTransactions/simulation.d.ts +26 -0
  182. package/build/types/src/utils/orderTransactions/validateTypedData.d.ts +6 -0
  183. package/build/types/src/utils/positions/utils.d.ts +1 -9
  184. package/build/types/src/utils/rpc/createViemRpc.d.ts +3 -0
  185. package/build/types/src/utils/rpc/index.d.ts +26 -0
  186. package/build/types/src/utils/signer/index.d.ts +23 -0
  187. package/build/types/src/utils/signer/privateKeySigner.d.ts +19 -0
  188. package/build/types/src/utils/subaccount/api.d.ts +50 -0
  189. package/build/types/src/utils/subaccount/generateSubaccount.d.ts +8 -0
  190. package/build/types/src/utils/subaccount/getEmptySubaccountApproval.d.ts +9 -0
  191. package/build/types/src/utils/subaccount/getSubaccountApprovalTypedData.d.ts +24 -0
  192. package/build/types/src/utils/subaccount/hashSubaccountApproval.d.ts +1 -0
  193. package/build/types/src/utils/subaccount/index.d.ts +7 -0
  194. package/build/types/src/utils/subaccount/types.d.ts +55 -0
  195. package/build/types/src/utils/tokens/types.d.ts +0 -1
  196. package/build/types/src/utils/trade/types.d.ts +1 -1
  197. package/build/types/src/utils/tradeHistory/utils.d.ts +0 -1
  198. package/build/types/src/utils/twap/index.d.ts +1 -0
  199. package/build/types/src/utils/twap/types.d.ts +2 -0
  200. package/build/types/src/utils/twap/uiFeeReceiver.d.ts +10 -2
  201. package/package.json +40 -3
@@ -1,8 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VolumeInfoOrderByInput = exports.TradeActionOrderByInput = exports.SwapVolumeInfoOrderByInput = exports.SwapInfoOrderByInput = exports.SwapFeesInfoWithPeriodOrderByInput = exports.SwapFeesInfoOrderByInput = exports.ProcessorStatusOrderByInput = exports.PriceType = exports.PriceOrderByInput = exports.PositionVolumeInfoOrderByInput = exports.PositionOrderByInput = exports.PositionFeesInfoWithPeriodOrderByInput = exports.PositionFeesEntityType = exports.PositionFeesEntityOrderByInput = exports.PositionChangeType = exports.PositionChangeOrderByInput = exports.PnlAprSnapshotOrderByInput = exports.PlatformStatsOrderByInput = exports.OrderStatus = exports.OrderOrderByInput = exports.OnChainSettingType = exports.OnChainSettingOrderByInput = exports.MultichainSamechainFundingEventOrderByInput = exports.MultichainFundingSendEventOrderByInput = exports.MultichainFundingReceiveEventOrderByInput = exports.MultichainFundingOperation = exports.MarketOrderByInput = exports.MarketInfoOrderByInput = exports.GlvOrderByInput = exports.FundingRateSnapshotOrderByInput = exports.EntityType = exports.DistributionOrderByInput = exports.CumulativePoolValueOrderByInput = exports.CumulativePnlOrderByInput = exports.CollectedFeesInfoOrderByInput = exports.ClaimableFundingFeeInfoOrderByInput = exports.ClaimableCollateralOrderByInput = exports.ClaimableCollateralGroupOrderByInput = exports.ClaimableAmountOrderByInput = exports.ClaimRefOrderByInput = exports.ClaimActionType = exports.ClaimActionOrderByInput = exports.BorrowingRateSnapshotOrderByInput = exports.AprSnapshotOrderByInput = exports.AccountStatOrderByInput = void 0;
3
+ exports.TraderReferralOrderByInput = exports.TradeActionOrderByInput = exports.SwapVolumeInfoOrderByInput = exports.SwapInfoOrderByInput = exports.SwapFeesInfoWithPeriodOrderByInput = exports.SwapFeesInfoOrderByInput = exports.StakingPowerOrderByInput = exports.ReferralCodeOwnerOrderByInput = exports.ProcessorStatusOrderByInput = exports.PriceType = exports.PriceOrderByInput = exports.PositionVolumeInfoOrderByInput = exports.PositionOrderByInput = exports.PositionFeesInfoWithPeriodOrderByInput = exports.PositionFeesEntityType = exports.PositionFeesEntityOrderByInput = exports.PositionChangeType = exports.PositionChangeOrderByInput = exports.PnlAprSnapshotOrderByInput = exports.PlatformStatsOrderByInput = exports.OrderStatus = exports.OrderOrderByInput = exports.OnChainSettingType = exports.OnChainSettingOrderByInput = exports.NetworkStakingPowerOrderByInput = exports.MultichainSamechainFundingEventOrderByInput = exports.MultichainFundingSendEventOrderByInput = exports.MultichainFundingReceiveEventOrderByInput = exports.MultichainFundingOperation = exports.MarketOrderByInput = exports.MarketInfoOrderByInput = exports.GlvOrderByInput = exports.FundingRateSnapshotOrderByInput = exports.EntityType = exports.DistributionOrderByInput = exports.CumulativePoolValueOrderByInput = exports.CumulativePnlOrderByInput = exports.CollectedFeesInfoOrderByInput = exports.ClaimableFundingFeeInfoOrderByInput = exports.ClaimableCollateralOrderByInput = exports.ClaimableCollateralGroupOrderByInput = exports.ClaimableAmountOrderByInput = exports.ClaimRefOrderByInput = exports.ClaimActionType = exports.ClaimActionOrderByInput = exports.BorrowingRateSnapshotOrderByInput = exports.AprSnapshotOrderByInput = exports.AffiliateTraderStatsByHourOrderByInput = exports.AffiliateReferralTradeStatsByHourOrderByInput = exports.AccountStatOrderByInput = void 0;
4
+ exports.VolumeInfoOrderByInput = exports.TraderReferralTradeStatsByHourOrderByInput = void 0;
4
5
  var AccountStatOrderByInput;
5
6
  (function (AccountStatOrderByInput) {
7
+ AccountStatOrderByInput["account_ASC"] = "account_ASC";
8
+ AccountStatOrderByInput["account_ASC_NULLS_FIRST"] = "account_ASC_NULLS_FIRST";
9
+ AccountStatOrderByInput["account_ASC_NULLS_LAST"] = "account_ASC_NULLS_LAST";
10
+ AccountStatOrderByInput["account_DESC"] = "account_DESC";
11
+ AccountStatOrderByInput["account_DESC_NULLS_FIRST"] = "account_DESC_NULLS_FIRST";
12
+ AccountStatOrderByInput["account_DESC_NULLS_LAST"] = "account_DESC_NULLS_LAST";
6
13
  AccountStatOrderByInput["closedCount_ASC"] = "closedCount_ASC";
7
14
  AccountStatOrderByInput["closedCount_ASC_NULLS_FIRST"] = "closedCount_ASC_NULLS_FIRST";
8
15
  AccountStatOrderByInput["closedCount_ASC_NULLS_LAST"] = "closedCount_ASC_NULLS_LAST";
@@ -21,6 +28,12 @@ var AccountStatOrderByInput;
21
28
  AccountStatOrderByInput["cumsumSize_DESC"] = "cumsumSize_DESC";
22
29
  AccountStatOrderByInput["cumsumSize_DESC_NULLS_FIRST"] = "cumsumSize_DESC_NULLS_FIRST";
23
30
  AccountStatOrderByInput["cumsumSize_DESC_NULLS_LAST"] = "cumsumSize_DESC_NULLS_LAST";
31
+ AccountStatOrderByInput["dayTimestamp_ASC"] = "dayTimestamp_ASC";
32
+ AccountStatOrderByInput["dayTimestamp_ASC_NULLS_FIRST"] = "dayTimestamp_ASC_NULLS_FIRST";
33
+ AccountStatOrderByInput["dayTimestamp_ASC_NULLS_LAST"] = "dayTimestamp_ASC_NULLS_LAST";
34
+ AccountStatOrderByInput["dayTimestamp_DESC"] = "dayTimestamp_DESC";
35
+ AccountStatOrderByInput["dayTimestamp_DESC_NULLS_FIRST"] = "dayTimestamp_DESC_NULLS_FIRST";
36
+ AccountStatOrderByInput["dayTimestamp_DESC_NULLS_LAST"] = "dayTimestamp_DESC_NULLS_LAST";
24
37
  AccountStatOrderByInput["deposits_ASC"] = "deposits_ASC";
25
38
  AccountStatOrderByInput["deposits_ASC_NULLS_FIRST"] = "deposits_ASC_NULLS_FIRST";
26
39
  AccountStatOrderByInput["deposits_ASC_NULLS_LAST"] = "deposits_ASC_NULLS_LAST";
@@ -45,12 +58,30 @@ var AccountStatOrderByInput;
45
58
  AccountStatOrderByInput["maxCapital_DESC"] = "maxCapital_DESC";
46
59
  AccountStatOrderByInput["maxCapital_DESC_NULLS_FIRST"] = "maxCapital_DESC_NULLS_FIRST";
47
60
  AccountStatOrderByInput["maxCapital_DESC_NULLS_LAST"] = "maxCapital_DESC_NULLS_LAST";
61
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_ASC"] = "maxNetCapitalRunningDelta_ASC";
62
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_ASC_NULLS_FIRST"] = "maxNetCapitalRunningDelta_ASC_NULLS_FIRST";
63
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_ASC_NULLS_LAST"] = "maxNetCapitalRunningDelta_ASC_NULLS_LAST";
64
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_DESC"] = "maxNetCapitalRunningDelta_DESC";
65
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_DESC_NULLS_FIRST"] = "maxNetCapitalRunningDelta_DESC_NULLS_FIRST";
66
+ AccountStatOrderByInput["maxNetCapitalRunningDelta_DESC_NULLS_LAST"] = "maxNetCapitalRunningDelta_DESC_NULLS_LAST";
67
+ AccountStatOrderByInput["netCapitalDelta_ASC"] = "netCapitalDelta_ASC";
68
+ AccountStatOrderByInput["netCapitalDelta_ASC_NULLS_FIRST"] = "netCapitalDelta_ASC_NULLS_FIRST";
69
+ AccountStatOrderByInput["netCapitalDelta_ASC_NULLS_LAST"] = "netCapitalDelta_ASC_NULLS_LAST";
70
+ AccountStatOrderByInput["netCapitalDelta_DESC"] = "netCapitalDelta_DESC";
71
+ AccountStatOrderByInput["netCapitalDelta_DESC_NULLS_FIRST"] = "netCapitalDelta_DESC_NULLS_FIRST";
72
+ AccountStatOrderByInput["netCapitalDelta_DESC_NULLS_LAST"] = "netCapitalDelta_DESC_NULLS_LAST";
48
73
  AccountStatOrderByInput["netCapital_ASC"] = "netCapital_ASC";
49
74
  AccountStatOrderByInput["netCapital_ASC_NULLS_FIRST"] = "netCapital_ASC_NULLS_FIRST";
50
75
  AccountStatOrderByInput["netCapital_ASC_NULLS_LAST"] = "netCapital_ASC_NULLS_LAST";
51
76
  AccountStatOrderByInput["netCapital_DESC"] = "netCapital_DESC";
52
77
  AccountStatOrderByInput["netCapital_DESC_NULLS_FIRST"] = "netCapital_DESC_NULLS_FIRST";
53
78
  AccountStatOrderByInput["netCapital_DESC_NULLS_LAST"] = "netCapital_DESC_NULLS_LAST";
79
+ AccountStatOrderByInput["period_ASC"] = "period_ASC";
80
+ AccountStatOrderByInput["period_ASC_NULLS_FIRST"] = "period_ASC_NULLS_FIRST";
81
+ AccountStatOrderByInput["period_ASC_NULLS_LAST"] = "period_ASC_NULLS_LAST";
82
+ AccountStatOrderByInput["period_DESC"] = "period_DESC";
83
+ AccountStatOrderByInput["period_DESC_NULLS_FIRST"] = "period_DESC_NULLS_FIRST";
84
+ AccountStatOrderByInput["period_DESC_NULLS_LAST"] = "period_DESC_NULLS_LAST";
54
85
  AccountStatOrderByInput["realizedFees_ASC"] = "realizedFees_ASC";
55
86
  AccountStatOrderByInput["realizedFees_ASC_NULLS_FIRST"] = "realizedFees_ASC_NULLS_FIRST";
56
87
  AccountStatOrderByInput["realizedFees_ASC_NULLS_LAST"] = "realizedFees_ASC_NULLS_LAST";
@@ -94,6 +125,84 @@ var AccountStatOrderByInput;
94
125
  AccountStatOrderByInput["wins_DESC_NULLS_FIRST"] = "wins_DESC_NULLS_FIRST";
95
126
  AccountStatOrderByInput["wins_DESC_NULLS_LAST"] = "wins_DESC_NULLS_LAST";
96
127
  })(AccountStatOrderByInput || (exports.AccountStatOrderByInput = AccountStatOrderByInput = {}));
128
+ var AffiliateReferralTradeStatsByHourOrderByInput;
129
+ (function (AffiliateReferralTradeStatsByHourOrderByInput) {
130
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_ASC"] = "affiliate_ASC";
131
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_ASC_NULLS_FIRST"] = "affiliate_ASC_NULLS_FIRST";
132
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_ASC_NULLS_LAST"] = "affiliate_ASC_NULLS_LAST";
133
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_DESC"] = "affiliate_DESC";
134
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_DESC_NULLS_FIRST"] = "affiliate_DESC_NULLS_FIRST";
135
+ AffiliateReferralTradeStatsByHourOrderByInput["affiliate_DESC_NULLS_LAST"] = "affiliate_DESC_NULLS_LAST";
136
+ AffiliateReferralTradeStatsByHourOrderByInput["id_ASC"] = "id_ASC";
137
+ AffiliateReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
138
+ AffiliateReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
139
+ AffiliateReferralTradeStatsByHourOrderByInput["id_DESC"] = "id_DESC";
140
+ AffiliateReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
141
+ AffiliateReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
142
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_ASC"] = "rebatesUsd_ASC";
143
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_ASC_NULLS_FIRST"] = "rebatesUsd_ASC_NULLS_FIRST";
144
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_ASC_NULLS_LAST"] = "rebatesUsd_ASC_NULLS_LAST";
145
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_DESC"] = "rebatesUsd_DESC";
146
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_DESC_NULLS_FIRST"] = "rebatesUsd_DESC_NULLS_FIRST";
147
+ AffiliateReferralTradeStatsByHourOrderByInput["rebatesUsd_DESC_NULLS_LAST"] = "rebatesUsd_DESC_NULLS_LAST";
148
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_ASC"] = "timestamp_ASC";
149
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
150
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
151
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_DESC"] = "timestamp_DESC";
152
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
153
+ AffiliateReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
154
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_ASC"] = "tradesCount_ASC";
155
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_ASC_NULLS_FIRST"] = "tradesCount_ASC_NULLS_FIRST";
156
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_ASC_NULLS_LAST"] = "tradesCount_ASC_NULLS_LAST";
157
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_DESC"] = "tradesCount_DESC";
158
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_DESC_NULLS_FIRST"] = "tradesCount_DESC_NULLS_FIRST";
159
+ AffiliateReferralTradeStatsByHourOrderByInput["tradesCount_DESC_NULLS_LAST"] = "tradesCount_DESC_NULLS_LAST";
160
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_ASC"] = "volumeUsd_ASC";
161
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_FIRST"] = "volumeUsd_ASC_NULLS_FIRST";
162
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_LAST"] = "volumeUsd_ASC_NULLS_LAST";
163
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_DESC"] = "volumeUsd_DESC";
164
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_FIRST"] = "volumeUsd_DESC_NULLS_FIRST";
165
+ AffiliateReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_LAST"] = "volumeUsd_DESC_NULLS_LAST";
166
+ })(AffiliateReferralTradeStatsByHourOrderByInput || (exports.AffiliateReferralTradeStatsByHourOrderByInput = AffiliateReferralTradeStatsByHourOrderByInput = {}));
167
+ var AffiliateTraderStatsByHourOrderByInput;
168
+ (function (AffiliateTraderStatsByHourOrderByInput) {
169
+ AffiliateTraderStatsByHourOrderByInput["affiliate_ASC"] = "affiliate_ASC";
170
+ AffiliateTraderStatsByHourOrderByInput["affiliate_ASC_NULLS_FIRST"] = "affiliate_ASC_NULLS_FIRST";
171
+ AffiliateTraderStatsByHourOrderByInput["affiliate_ASC_NULLS_LAST"] = "affiliate_ASC_NULLS_LAST";
172
+ AffiliateTraderStatsByHourOrderByInput["affiliate_DESC"] = "affiliate_DESC";
173
+ AffiliateTraderStatsByHourOrderByInput["affiliate_DESC_NULLS_FIRST"] = "affiliate_DESC_NULLS_FIRST";
174
+ AffiliateTraderStatsByHourOrderByInput["affiliate_DESC_NULLS_LAST"] = "affiliate_DESC_NULLS_LAST";
175
+ AffiliateTraderStatsByHourOrderByInput["id_ASC"] = "id_ASC";
176
+ AffiliateTraderStatsByHourOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
177
+ AffiliateTraderStatsByHourOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
178
+ AffiliateTraderStatsByHourOrderByInput["id_DESC"] = "id_DESC";
179
+ AffiliateTraderStatsByHourOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
180
+ AffiliateTraderStatsByHourOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
181
+ AffiliateTraderStatsByHourOrderByInput["timestamp_ASC"] = "timestamp_ASC";
182
+ AffiliateTraderStatsByHourOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
183
+ AffiliateTraderStatsByHourOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
184
+ AffiliateTraderStatsByHourOrderByInput["timestamp_DESC"] = "timestamp_DESC";
185
+ AffiliateTraderStatsByHourOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
186
+ AffiliateTraderStatsByHourOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
187
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_ASC"] = "tradersGained_ASC";
188
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_ASC_NULLS_FIRST"] = "tradersGained_ASC_NULLS_FIRST";
189
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_ASC_NULLS_LAST"] = "tradersGained_ASC_NULLS_LAST";
190
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_DESC"] = "tradersGained_DESC";
191
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_DESC_NULLS_FIRST"] = "tradersGained_DESC_NULLS_FIRST";
192
+ AffiliateTraderStatsByHourOrderByInput["tradersGained_DESC_NULLS_LAST"] = "tradersGained_DESC_NULLS_LAST";
193
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_ASC"] = "tradersLost_ASC";
194
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_ASC_NULLS_FIRST"] = "tradersLost_ASC_NULLS_FIRST";
195
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_ASC_NULLS_LAST"] = "tradersLost_ASC_NULLS_LAST";
196
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_DESC"] = "tradersLost_DESC";
197
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_DESC_NULLS_FIRST"] = "tradersLost_DESC_NULLS_FIRST";
198
+ AffiliateTraderStatsByHourOrderByInput["tradersLost_DESC_NULLS_LAST"] = "tradersLost_DESC_NULLS_LAST";
199
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_ASC"] = "tradersNet_ASC";
200
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_ASC_NULLS_FIRST"] = "tradersNet_ASC_NULLS_FIRST";
201
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_ASC_NULLS_LAST"] = "tradersNet_ASC_NULLS_LAST";
202
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_DESC"] = "tradersNet_DESC";
203
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_DESC_NULLS_FIRST"] = "tradersNet_DESC_NULLS_FIRST";
204
+ AffiliateTraderStatsByHourOrderByInput["tradersNet_DESC_NULLS_LAST"] = "tradersNet_DESC_NULLS_LAST";
205
+ })(AffiliateTraderStatsByHourOrderByInput || (exports.AffiliateTraderStatsByHourOrderByInput = AffiliateTraderStatsByHourOrderByInput = {}));
97
206
  var AprSnapshotOrderByInput;
98
207
  (function (AprSnapshotOrderByInput) {
99
208
  AprSnapshotOrderByInput["address_ASC"] = "address_ASC";
@@ -1483,6 +1592,33 @@ var MultichainSamechainFundingEventOrderByInput;
1483
1592
  MultichainSamechainFundingEventOrderByInput["txHash_DESC_NULLS_FIRST"] = "txHash_DESC_NULLS_FIRST";
1484
1593
  MultichainSamechainFundingEventOrderByInput["txHash_DESC_NULLS_LAST"] = "txHash_DESC_NULLS_LAST";
1485
1594
  })(MultichainSamechainFundingEventOrderByInput || (exports.MultichainSamechainFundingEventOrderByInput = MultichainSamechainFundingEventOrderByInput = {}));
1595
+ var NetworkStakingPowerOrderByInput;
1596
+ (function (NetworkStakingPowerOrderByInput) {
1597
+ NetworkStakingPowerOrderByInput["id_ASC"] = "id_ASC";
1598
+ NetworkStakingPowerOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
1599
+ NetworkStakingPowerOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
1600
+ NetworkStakingPowerOrderByInput["id_DESC"] = "id_DESC";
1601
+ NetworkStakingPowerOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
1602
+ NetworkStakingPowerOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
1603
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_ASC"] = "lastUpdateTimestamp_ASC";
1604
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_FIRST"] = "lastUpdateTimestamp_ASC_NULLS_FIRST";
1605
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_LAST"] = "lastUpdateTimestamp_ASC_NULLS_LAST";
1606
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_DESC"] = "lastUpdateTimestamp_DESC";
1607
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_FIRST"] = "lastUpdateTimestamp_DESC_NULLS_FIRST";
1608
+ NetworkStakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_LAST"] = "lastUpdateTimestamp_DESC_NULLS_LAST";
1609
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_ASC"] = "totalAccumulatedPower_ASC";
1610
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_ASC_NULLS_FIRST"] = "totalAccumulatedPower_ASC_NULLS_FIRST";
1611
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_ASC_NULLS_LAST"] = "totalAccumulatedPower_ASC_NULLS_LAST";
1612
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_DESC"] = "totalAccumulatedPower_DESC";
1613
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_DESC_NULLS_FIRST"] = "totalAccumulatedPower_DESC_NULLS_FIRST";
1614
+ NetworkStakingPowerOrderByInput["totalAccumulatedPower_DESC_NULLS_LAST"] = "totalAccumulatedPower_DESC_NULLS_LAST";
1615
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_ASC"] = "totalCurrentStaked_ASC";
1616
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_ASC_NULLS_FIRST"] = "totalCurrentStaked_ASC_NULLS_FIRST";
1617
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_ASC_NULLS_LAST"] = "totalCurrentStaked_ASC_NULLS_LAST";
1618
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_DESC"] = "totalCurrentStaked_DESC";
1619
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_DESC_NULLS_FIRST"] = "totalCurrentStaked_DESC_NULLS_FIRST";
1620
+ NetworkStakingPowerOrderByInput["totalCurrentStaked_DESC_NULLS_LAST"] = "totalCurrentStaked_DESC_NULLS_LAST";
1621
+ })(NetworkStakingPowerOrderByInput || (exports.NetworkStakingPowerOrderByInput = NetworkStakingPowerOrderByInput = {}));
1486
1622
  var OnChainSettingOrderByInput;
1487
1623
  (function (OnChainSettingOrderByInput) {
1488
1624
  OnChainSettingOrderByInput["id_ASC"] = "id_ASC";
@@ -2136,6 +2272,12 @@ var PositionFeesInfoWithPeriodOrderByInput;
2136
2272
  })(PositionFeesInfoWithPeriodOrderByInput || (exports.PositionFeesInfoWithPeriodOrderByInput = PositionFeesInfoWithPeriodOrderByInput = {}));
2137
2273
  var PositionOrderByInput;
2138
2274
  (function (PositionOrderByInput) {
2275
+ PositionOrderByInput["accountStat_account_ASC"] = "accountStat_account_ASC";
2276
+ PositionOrderByInput["accountStat_account_ASC_NULLS_FIRST"] = "accountStat_account_ASC_NULLS_FIRST";
2277
+ PositionOrderByInput["accountStat_account_ASC_NULLS_LAST"] = "accountStat_account_ASC_NULLS_LAST";
2278
+ PositionOrderByInput["accountStat_account_DESC"] = "accountStat_account_DESC";
2279
+ PositionOrderByInput["accountStat_account_DESC_NULLS_FIRST"] = "accountStat_account_DESC_NULLS_FIRST";
2280
+ PositionOrderByInput["accountStat_account_DESC_NULLS_LAST"] = "accountStat_account_DESC_NULLS_LAST";
2139
2281
  PositionOrderByInput["accountStat_closedCount_ASC"] = "accountStat_closedCount_ASC";
2140
2282
  PositionOrderByInput["accountStat_closedCount_ASC_NULLS_FIRST"] = "accountStat_closedCount_ASC_NULLS_FIRST";
2141
2283
  PositionOrderByInput["accountStat_closedCount_ASC_NULLS_LAST"] = "accountStat_closedCount_ASC_NULLS_LAST";
@@ -2154,6 +2296,12 @@ var PositionOrderByInput;
2154
2296
  PositionOrderByInput["accountStat_cumsumSize_DESC"] = "accountStat_cumsumSize_DESC";
2155
2297
  PositionOrderByInput["accountStat_cumsumSize_DESC_NULLS_FIRST"] = "accountStat_cumsumSize_DESC_NULLS_FIRST";
2156
2298
  PositionOrderByInput["accountStat_cumsumSize_DESC_NULLS_LAST"] = "accountStat_cumsumSize_DESC_NULLS_LAST";
2299
+ PositionOrderByInput["accountStat_dayTimestamp_ASC"] = "accountStat_dayTimestamp_ASC";
2300
+ PositionOrderByInput["accountStat_dayTimestamp_ASC_NULLS_FIRST"] = "accountStat_dayTimestamp_ASC_NULLS_FIRST";
2301
+ PositionOrderByInput["accountStat_dayTimestamp_ASC_NULLS_LAST"] = "accountStat_dayTimestamp_ASC_NULLS_LAST";
2302
+ PositionOrderByInput["accountStat_dayTimestamp_DESC"] = "accountStat_dayTimestamp_DESC";
2303
+ PositionOrderByInput["accountStat_dayTimestamp_DESC_NULLS_FIRST"] = "accountStat_dayTimestamp_DESC_NULLS_FIRST";
2304
+ PositionOrderByInput["accountStat_dayTimestamp_DESC_NULLS_LAST"] = "accountStat_dayTimestamp_DESC_NULLS_LAST";
2157
2305
  PositionOrderByInput["accountStat_deposits_ASC"] = "accountStat_deposits_ASC";
2158
2306
  PositionOrderByInput["accountStat_deposits_ASC_NULLS_FIRST"] = "accountStat_deposits_ASC_NULLS_FIRST";
2159
2307
  PositionOrderByInput["accountStat_deposits_ASC_NULLS_LAST"] = "accountStat_deposits_ASC_NULLS_LAST";
@@ -2178,12 +2326,30 @@ var PositionOrderByInput;
2178
2326
  PositionOrderByInput["accountStat_maxCapital_DESC"] = "accountStat_maxCapital_DESC";
2179
2327
  PositionOrderByInput["accountStat_maxCapital_DESC_NULLS_FIRST"] = "accountStat_maxCapital_DESC_NULLS_FIRST";
2180
2328
  PositionOrderByInput["accountStat_maxCapital_DESC_NULLS_LAST"] = "accountStat_maxCapital_DESC_NULLS_LAST";
2329
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_ASC"] = "accountStat_maxNetCapitalRunningDelta_ASC";
2330
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_ASC_NULLS_FIRST"] = "accountStat_maxNetCapitalRunningDelta_ASC_NULLS_FIRST";
2331
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_ASC_NULLS_LAST"] = "accountStat_maxNetCapitalRunningDelta_ASC_NULLS_LAST";
2332
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_DESC"] = "accountStat_maxNetCapitalRunningDelta_DESC";
2333
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_DESC_NULLS_FIRST"] = "accountStat_maxNetCapitalRunningDelta_DESC_NULLS_FIRST";
2334
+ PositionOrderByInput["accountStat_maxNetCapitalRunningDelta_DESC_NULLS_LAST"] = "accountStat_maxNetCapitalRunningDelta_DESC_NULLS_LAST";
2335
+ PositionOrderByInput["accountStat_netCapitalDelta_ASC"] = "accountStat_netCapitalDelta_ASC";
2336
+ PositionOrderByInput["accountStat_netCapitalDelta_ASC_NULLS_FIRST"] = "accountStat_netCapitalDelta_ASC_NULLS_FIRST";
2337
+ PositionOrderByInput["accountStat_netCapitalDelta_ASC_NULLS_LAST"] = "accountStat_netCapitalDelta_ASC_NULLS_LAST";
2338
+ PositionOrderByInput["accountStat_netCapitalDelta_DESC"] = "accountStat_netCapitalDelta_DESC";
2339
+ PositionOrderByInput["accountStat_netCapitalDelta_DESC_NULLS_FIRST"] = "accountStat_netCapitalDelta_DESC_NULLS_FIRST";
2340
+ PositionOrderByInput["accountStat_netCapitalDelta_DESC_NULLS_LAST"] = "accountStat_netCapitalDelta_DESC_NULLS_LAST";
2181
2341
  PositionOrderByInput["accountStat_netCapital_ASC"] = "accountStat_netCapital_ASC";
2182
2342
  PositionOrderByInput["accountStat_netCapital_ASC_NULLS_FIRST"] = "accountStat_netCapital_ASC_NULLS_FIRST";
2183
2343
  PositionOrderByInput["accountStat_netCapital_ASC_NULLS_LAST"] = "accountStat_netCapital_ASC_NULLS_LAST";
2184
2344
  PositionOrderByInput["accountStat_netCapital_DESC"] = "accountStat_netCapital_DESC";
2185
2345
  PositionOrderByInput["accountStat_netCapital_DESC_NULLS_FIRST"] = "accountStat_netCapital_DESC_NULLS_FIRST";
2186
2346
  PositionOrderByInput["accountStat_netCapital_DESC_NULLS_LAST"] = "accountStat_netCapital_DESC_NULLS_LAST";
2347
+ PositionOrderByInput["accountStat_period_ASC"] = "accountStat_period_ASC";
2348
+ PositionOrderByInput["accountStat_period_ASC_NULLS_FIRST"] = "accountStat_period_ASC_NULLS_FIRST";
2349
+ PositionOrderByInput["accountStat_period_ASC_NULLS_LAST"] = "accountStat_period_ASC_NULLS_LAST";
2350
+ PositionOrderByInput["accountStat_period_DESC"] = "accountStat_period_DESC";
2351
+ PositionOrderByInput["accountStat_period_DESC_NULLS_FIRST"] = "accountStat_period_DESC_NULLS_FIRST";
2352
+ PositionOrderByInput["accountStat_period_DESC_NULLS_LAST"] = "accountStat_period_DESC_NULLS_LAST";
2187
2353
  PositionOrderByInput["accountStat_realizedFees_ASC"] = "accountStat_realizedFees_ASC";
2188
2354
  PositionOrderByInput["accountStat_realizedFees_ASC_NULLS_FIRST"] = "accountStat_realizedFees_ASC_NULLS_FIRST";
2189
2355
  PositionOrderByInput["accountStat_realizedFees_ASC_NULLS_LAST"] = "accountStat_realizedFees_ASC_NULLS_LAST";
@@ -2280,6 +2446,12 @@ var PositionOrderByInput;
2280
2446
  PositionOrderByInput["market_DESC"] = "market_DESC";
2281
2447
  PositionOrderByInput["market_DESC_NULLS_FIRST"] = "market_DESC_NULLS_FIRST";
2282
2448
  PositionOrderByInput["market_DESC_NULLS_LAST"] = "market_DESC_NULLS_LAST";
2449
+ PositionOrderByInput["maxCapital_ASC"] = "maxCapital_ASC";
2450
+ PositionOrderByInput["maxCapital_ASC_NULLS_FIRST"] = "maxCapital_ASC_NULLS_FIRST";
2451
+ PositionOrderByInput["maxCapital_ASC_NULLS_LAST"] = "maxCapital_ASC_NULLS_LAST";
2452
+ PositionOrderByInput["maxCapital_DESC"] = "maxCapital_DESC";
2453
+ PositionOrderByInput["maxCapital_DESC_NULLS_FIRST"] = "maxCapital_DESC_NULLS_FIRST";
2454
+ PositionOrderByInput["maxCapital_DESC_NULLS_LAST"] = "maxCapital_DESC_NULLS_LAST";
2283
2455
  PositionOrderByInput["maxSize_ASC"] = "maxSize_ASC";
2284
2456
  PositionOrderByInput["maxSize_ASC_NULLS_FIRST"] = "maxSize_ASC_NULLS_FIRST";
2285
2457
  PositionOrderByInput["maxSize_ASC_NULLS_LAST"] = "maxSize_ASC_NULLS_LAST";
@@ -2483,6 +2655,84 @@ var ProcessorStatusOrderByInput;
2483
2655
  ProcessorStatusOrderByInput["lastProcessorCallTimestamp_DESC_NULLS_FIRST"] = "lastProcessorCallTimestamp_DESC_NULLS_FIRST";
2484
2656
  ProcessorStatusOrderByInput["lastProcessorCallTimestamp_DESC_NULLS_LAST"] = "lastProcessorCallTimestamp_DESC_NULLS_LAST";
2485
2657
  })(ProcessorStatusOrderByInput || (exports.ProcessorStatusOrderByInput = ProcessorStatusOrderByInput = {}));
2658
+ var ReferralCodeOwnerOrderByInput;
2659
+ (function (ReferralCodeOwnerOrderByInput) {
2660
+ ReferralCodeOwnerOrderByInput["id_ASC"] = "id_ASC";
2661
+ ReferralCodeOwnerOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
2662
+ ReferralCodeOwnerOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
2663
+ ReferralCodeOwnerOrderByInput["id_DESC"] = "id_DESC";
2664
+ ReferralCodeOwnerOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
2665
+ ReferralCodeOwnerOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
2666
+ ReferralCodeOwnerOrderByInput["owner_ASC"] = "owner_ASC";
2667
+ ReferralCodeOwnerOrderByInput["owner_ASC_NULLS_FIRST"] = "owner_ASC_NULLS_FIRST";
2668
+ ReferralCodeOwnerOrderByInput["owner_ASC_NULLS_LAST"] = "owner_ASC_NULLS_LAST";
2669
+ ReferralCodeOwnerOrderByInput["owner_DESC"] = "owner_DESC";
2670
+ ReferralCodeOwnerOrderByInput["owner_DESC_NULLS_FIRST"] = "owner_DESC_NULLS_FIRST";
2671
+ ReferralCodeOwnerOrderByInput["owner_DESC_NULLS_LAST"] = "owner_DESC_NULLS_LAST";
2672
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_ASC"] = "updatedAtBlock_ASC";
2673
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_ASC_NULLS_FIRST"] = "updatedAtBlock_ASC_NULLS_FIRST";
2674
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_ASC_NULLS_LAST"] = "updatedAtBlock_ASC_NULLS_LAST";
2675
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_DESC"] = "updatedAtBlock_DESC";
2676
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_DESC_NULLS_FIRST"] = "updatedAtBlock_DESC_NULLS_FIRST";
2677
+ ReferralCodeOwnerOrderByInput["updatedAtBlock_DESC_NULLS_LAST"] = "updatedAtBlock_DESC_NULLS_LAST";
2678
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_ASC"] = "updatedAtTimestamp_ASC";
2679
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_ASC_NULLS_FIRST"] = "updatedAtTimestamp_ASC_NULLS_FIRST";
2680
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_ASC_NULLS_LAST"] = "updatedAtTimestamp_ASC_NULLS_LAST";
2681
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_DESC"] = "updatedAtTimestamp_DESC";
2682
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_DESC_NULLS_FIRST"] = "updatedAtTimestamp_DESC_NULLS_FIRST";
2683
+ ReferralCodeOwnerOrderByInput["updatedAtTimestamp_DESC_NULLS_LAST"] = "updatedAtTimestamp_DESC_NULLS_LAST";
2684
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_ASC"] = "updatedTxnHash_ASC";
2685
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_ASC_NULLS_FIRST"] = "updatedTxnHash_ASC_NULLS_FIRST";
2686
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_ASC_NULLS_LAST"] = "updatedTxnHash_ASC_NULLS_LAST";
2687
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_DESC"] = "updatedTxnHash_DESC";
2688
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_DESC_NULLS_FIRST"] = "updatedTxnHash_DESC_NULLS_FIRST";
2689
+ ReferralCodeOwnerOrderByInput["updatedTxnHash_DESC_NULLS_LAST"] = "updatedTxnHash_DESC_NULLS_LAST";
2690
+ })(ReferralCodeOwnerOrderByInput || (exports.ReferralCodeOwnerOrderByInput = ReferralCodeOwnerOrderByInput = {}));
2691
+ var StakingPowerOrderByInput;
2692
+ (function (StakingPowerOrderByInput) {
2693
+ StakingPowerOrderByInput["accumulatedPower_ASC"] = "accumulatedPower_ASC";
2694
+ StakingPowerOrderByInput["accumulatedPower_ASC_NULLS_FIRST"] = "accumulatedPower_ASC_NULLS_FIRST";
2695
+ StakingPowerOrderByInput["accumulatedPower_ASC_NULLS_LAST"] = "accumulatedPower_ASC_NULLS_LAST";
2696
+ StakingPowerOrderByInput["accumulatedPower_DESC"] = "accumulatedPower_DESC";
2697
+ StakingPowerOrderByInput["accumulatedPower_DESC_NULLS_FIRST"] = "accumulatedPower_DESC_NULLS_FIRST";
2698
+ StakingPowerOrderByInput["accumulatedPower_DESC_NULLS_LAST"] = "accumulatedPower_DESC_NULLS_LAST";
2699
+ StakingPowerOrderByInput["currentStakedBalance_ASC"] = "currentStakedBalance_ASC";
2700
+ StakingPowerOrderByInput["currentStakedBalance_ASC_NULLS_FIRST"] = "currentStakedBalance_ASC_NULLS_FIRST";
2701
+ StakingPowerOrderByInput["currentStakedBalance_ASC_NULLS_LAST"] = "currentStakedBalance_ASC_NULLS_LAST";
2702
+ StakingPowerOrderByInput["currentStakedBalance_DESC"] = "currentStakedBalance_DESC";
2703
+ StakingPowerOrderByInput["currentStakedBalance_DESC_NULLS_FIRST"] = "currentStakedBalance_DESC_NULLS_FIRST";
2704
+ StakingPowerOrderByInput["currentStakedBalance_DESC_NULLS_LAST"] = "currentStakedBalance_DESC_NULLS_LAST";
2705
+ StakingPowerOrderByInput["historicalMaxStaked_ASC"] = "historicalMaxStaked_ASC";
2706
+ StakingPowerOrderByInput["historicalMaxStaked_ASC_NULLS_FIRST"] = "historicalMaxStaked_ASC_NULLS_FIRST";
2707
+ StakingPowerOrderByInput["historicalMaxStaked_ASC_NULLS_LAST"] = "historicalMaxStaked_ASC_NULLS_LAST";
2708
+ StakingPowerOrderByInput["historicalMaxStaked_DESC"] = "historicalMaxStaked_DESC";
2709
+ StakingPowerOrderByInput["historicalMaxStaked_DESC_NULLS_FIRST"] = "historicalMaxStaked_DESC_NULLS_FIRST";
2710
+ StakingPowerOrderByInput["historicalMaxStaked_DESC_NULLS_LAST"] = "historicalMaxStaked_DESC_NULLS_LAST";
2711
+ StakingPowerOrderByInput["id_ASC"] = "id_ASC";
2712
+ StakingPowerOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
2713
+ StakingPowerOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
2714
+ StakingPowerOrderByInput["id_DESC"] = "id_DESC";
2715
+ StakingPowerOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
2716
+ StakingPowerOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
2717
+ StakingPowerOrderByInput["lastPowerResetAt_ASC"] = "lastPowerResetAt_ASC";
2718
+ StakingPowerOrderByInput["lastPowerResetAt_ASC_NULLS_FIRST"] = "lastPowerResetAt_ASC_NULLS_FIRST";
2719
+ StakingPowerOrderByInput["lastPowerResetAt_ASC_NULLS_LAST"] = "lastPowerResetAt_ASC_NULLS_LAST";
2720
+ StakingPowerOrderByInput["lastPowerResetAt_DESC"] = "lastPowerResetAt_DESC";
2721
+ StakingPowerOrderByInput["lastPowerResetAt_DESC_NULLS_FIRST"] = "lastPowerResetAt_DESC_NULLS_FIRST";
2722
+ StakingPowerOrderByInput["lastPowerResetAt_DESC_NULLS_LAST"] = "lastPowerResetAt_DESC_NULLS_LAST";
2723
+ StakingPowerOrderByInput["lastUpdateTimestamp_ASC"] = "lastUpdateTimestamp_ASC";
2724
+ StakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_FIRST"] = "lastUpdateTimestamp_ASC_NULLS_FIRST";
2725
+ StakingPowerOrderByInput["lastUpdateTimestamp_ASC_NULLS_LAST"] = "lastUpdateTimestamp_ASC_NULLS_LAST";
2726
+ StakingPowerOrderByInput["lastUpdateTimestamp_DESC"] = "lastUpdateTimestamp_DESC";
2727
+ StakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_FIRST"] = "lastUpdateTimestamp_DESC_NULLS_FIRST";
2728
+ StakingPowerOrderByInput["lastUpdateTimestamp_DESC_NULLS_LAST"] = "lastUpdateTimestamp_DESC_NULLS_LAST";
2729
+ StakingPowerOrderByInput["powerResetCount_ASC"] = "powerResetCount_ASC";
2730
+ StakingPowerOrderByInput["powerResetCount_ASC_NULLS_FIRST"] = "powerResetCount_ASC_NULLS_FIRST";
2731
+ StakingPowerOrderByInput["powerResetCount_ASC_NULLS_LAST"] = "powerResetCount_ASC_NULLS_LAST";
2732
+ StakingPowerOrderByInput["powerResetCount_DESC"] = "powerResetCount_DESC";
2733
+ StakingPowerOrderByInput["powerResetCount_DESC_NULLS_FIRST"] = "powerResetCount_DESC_NULLS_FIRST";
2734
+ StakingPowerOrderByInput["powerResetCount_DESC_NULLS_LAST"] = "powerResetCount_DESC_NULLS_LAST";
2735
+ })(StakingPowerOrderByInput || (exports.StakingPowerOrderByInput = StakingPowerOrderByInput = {}));
2486
2736
  var SwapFeesInfoOrderByInput;
2487
2737
  (function (SwapFeesInfoOrderByInput) {
2488
2738
  SwapFeesInfoOrderByInput["feeReceiverAmount_ASC"] = "feeReceiverAmount_ASC";
@@ -2954,6 +3204,78 @@ var TradeActionOrderByInput;
2954
3204
  TradeActionOrderByInput["uiFeeReceiver_DESC_NULLS_FIRST"] = "uiFeeReceiver_DESC_NULLS_FIRST";
2955
3205
  TradeActionOrderByInput["uiFeeReceiver_DESC_NULLS_LAST"] = "uiFeeReceiver_DESC_NULLS_LAST";
2956
3206
  })(TradeActionOrderByInput || (exports.TradeActionOrderByInput = TradeActionOrderByInput = {}));
3207
+ var TraderReferralOrderByInput;
3208
+ (function (TraderReferralOrderByInput) {
3209
+ TraderReferralOrderByInput["affiliate_ASC"] = "affiliate_ASC";
3210
+ TraderReferralOrderByInput["affiliate_ASC_NULLS_FIRST"] = "affiliate_ASC_NULLS_FIRST";
3211
+ TraderReferralOrderByInput["affiliate_ASC_NULLS_LAST"] = "affiliate_ASC_NULLS_LAST";
3212
+ TraderReferralOrderByInput["affiliate_DESC"] = "affiliate_DESC";
3213
+ TraderReferralOrderByInput["affiliate_DESC_NULLS_FIRST"] = "affiliate_DESC_NULLS_FIRST";
3214
+ TraderReferralOrderByInput["affiliate_DESC_NULLS_LAST"] = "affiliate_DESC_NULLS_LAST";
3215
+ TraderReferralOrderByInput["id_ASC"] = "id_ASC";
3216
+ TraderReferralOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3217
+ TraderReferralOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3218
+ TraderReferralOrderByInput["id_DESC"] = "id_DESC";
3219
+ TraderReferralOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3220
+ TraderReferralOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3221
+ TraderReferralOrderByInput["referralCode_ASC"] = "referralCode_ASC";
3222
+ TraderReferralOrderByInput["referralCode_ASC_NULLS_FIRST"] = "referralCode_ASC_NULLS_FIRST";
3223
+ TraderReferralOrderByInput["referralCode_ASC_NULLS_LAST"] = "referralCode_ASC_NULLS_LAST";
3224
+ TraderReferralOrderByInput["referralCode_DESC"] = "referralCode_DESC";
3225
+ TraderReferralOrderByInput["referralCode_DESC_NULLS_FIRST"] = "referralCode_DESC_NULLS_FIRST";
3226
+ TraderReferralOrderByInput["referralCode_DESC_NULLS_LAST"] = "referralCode_DESC_NULLS_LAST";
3227
+ TraderReferralOrderByInput["updatedAtBlock_ASC"] = "updatedAtBlock_ASC";
3228
+ TraderReferralOrderByInput["updatedAtBlock_ASC_NULLS_FIRST"] = "updatedAtBlock_ASC_NULLS_FIRST";
3229
+ TraderReferralOrderByInput["updatedAtBlock_ASC_NULLS_LAST"] = "updatedAtBlock_ASC_NULLS_LAST";
3230
+ TraderReferralOrderByInput["updatedAtBlock_DESC"] = "updatedAtBlock_DESC";
3231
+ TraderReferralOrderByInput["updatedAtBlock_DESC_NULLS_FIRST"] = "updatedAtBlock_DESC_NULLS_FIRST";
3232
+ TraderReferralOrderByInput["updatedAtBlock_DESC_NULLS_LAST"] = "updatedAtBlock_DESC_NULLS_LAST";
3233
+ TraderReferralOrderByInput["updatedAtTimestamp_ASC"] = "updatedAtTimestamp_ASC";
3234
+ TraderReferralOrderByInput["updatedAtTimestamp_ASC_NULLS_FIRST"] = "updatedAtTimestamp_ASC_NULLS_FIRST";
3235
+ TraderReferralOrderByInput["updatedAtTimestamp_ASC_NULLS_LAST"] = "updatedAtTimestamp_ASC_NULLS_LAST";
3236
+ TraderReferralOrderByInput["updatedAtTimestamp_DESC"] = "updatedAtTimestamp_DESC";
3237
+ TraderReferralOrderByInput["updatedAtTimestamp_DESC_NULLS_FIRST"] = "updatedAtTimestamp_DESC_NULLS_FIRST";
3238
+ TraderReferralOrderByInput["updatedAtTimestamp_DESC_NULLS_LAST"] = "updatedAtTimestamp_DESC_NULLS_LAST";
3239
+ TraderReferralOrderByInput["updatedTxnHash_ASC"] = "updatedTxnHash_ASC";
3240
+ TraderReferralOrderByInput["updatedTxnHash_ASC_NULLS_FIRST"] = "updatedTxnHash_ASC_NULLS_FIRST";
3241
+ TraderReferralOrderByInput["updatedTxnHash_ASC_NULLS_LAST"] = "updatedTxnHash_ASC_NULLS_LAST";
3242
+ TraderReferralOrderByInput["updatedTxnHash_DESC"] = "updatedTxnHash_DESC";
3243
+ TraderReferralOrderByInput["updatedTxnHash_DESC_NULLS_FIRST"] = "updatedTxnHash_DESC_NULLS_FIRST";
3244
+ TraderReferralOrderByInput["updatedTxnHash_DESC_NULLS_LAST"] = "updatedTxnHash_DESC_NULLS_LAST";
3245
+ })(TraderReferralOrderByInput || (exports.TraderReferralOrderByInput = TraderReferralOrderByInput = {}));
3246
+ var TraderReferralTradeStatsByHourOrderByInput;
3247
+ (function (TraderReferralTradeStatsByHourOrderByInput) {
3248
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_ASC"] = "discountsUsd_ASC";
3249
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_ASC_NULLS_FIRST"] = "discountsUsd_ASC_NULLS_FIRST";
3250
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_ASC_NULLS_LAST"] = "discountsUsd_ASC_NULLS_LAST";
3251
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_DESC"] = "discountsUsd_DESC";
3252
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_DESC_NULLS_FIRST"] = "discountsUsd_DESC_NULLS_FIRST";
3253
+ TraderReferralTradeStatsByHourOrderByInput["discountsUsd_DESC_NULLS_LAST"] = "discountsUsd_DESC_NULLS_LAST";
3254
+ TraderReferralTradeStatsByHourOrderByInput["id_ASC"] = "id_ASC";
3255
+ TraderReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
3256
+ TraderReferralTradeStatsByHourOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
3257
+ TraderReferralTradeStatsByHourOrderByInput["id_DESC"] = "id_DESC";
3258
+ TraderReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
3259
+ TraderReferralTradeStatsByHourOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
3260
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_ASC"] = "timestamp_ASC";
3261
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_FIRST"] = "timestamp_ASC_NULLS_FIRST";
3262
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_ASC_NULLS_LAST"] = "timestamp_ASC_NULLS_LAST";
3263
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_DESC"] = "timestamp_DESC";
3264
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_FIRST"] = "timestamp_DESC_NULLS_FIRST";
3265
+ TraderReferralTradeStatsByHourOrderByInput["timestamp_DESC_NULLS_LAST"] = "timestamp_DESC_NULLS_LAST";
3266
+ TraderReferralTradeStatsByHourOrderByInput["trader_ASC"] = "trader_ASC";
3267
+ TraderReferralTradeStatsByHourOrderByInput["trader_ASC_NULLS_FIRST"] = "trader_ASC_NULLS_FIRST";
3268
+ TraderReferralTradeStatsByHourOrderByInput["trader_ASC_NULLS_LAST"] = "trader_ASC_NULLS_LAST";
3269
+ TraderReferralTradeStatsByHourOrderByInput["trader_DESC"] = "trader_DESC";
3270
+ TraderReferralTradeStatsByHourOrderByInput["trader_DESC_NULLS_FIRST"] = "trader_DESC_NULLS_FIRST";
3271
+ TraderReferralTradeStatsByHourOrderByInput["trader_DESC_NULLS_LAST"] = "trader_DESC_NULLS_LAST";
3272
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_ASC"] = "volumeUsd_ASC";
3273
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_FIRST"] = "volumeUsd_ASC_NULLS_FIRST";
3274
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_ASC_NULLS_LAST"] = "volumeUsd_ASC_NULLS_LAST";
3275
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_DESC"] = "volumeUsd_DESC";
3276
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_FIRST"] = "volumeUsd_DESC_NULLS_FIRST";
3277
+ TraderReferralTradeStatsByHourOrderByInput["volumeUsd_DESC_NULLS_LAST"] = "volumeUsd_DESC_NULLS_LAST";
3278
+ })(TraderReferralTradeStatsByHourOrderByInput || (exports.TraderReferralTradeStatsByHourOrderByInput = TraderReferralTradeStatsByHourOrderByInput = {}));
2957
3279
  var VolumeInfoOrderByInput;
2958
3280
  (function (VolumeInfoOrderByInput) {
2959
3281
  VolumeInfoOrderByInput["depositVolumeUsd_ASC"] = "depositVolumeUsd_ASC";
@@ -158,54 +158,63 @@ const SOURCE_CHAIN_CONFIGS = {
158
158
  name: "Optimism Sepolia",
159
159
  slug: "optimism-sepolia",
160
160
  explorerUrl: "https://sepolia-optimism.etherscan.io/",
161
+ gasPriceBuffer: undefined,
161
162
  },
162
163
  [chainIds_1.SOURCE_SEPOLIA]: {
163
164
  chainId: chainIds_1.SOURCE_SEPOLIA,
164
165
  name: "Sepolia",
165
166
  slug: "sepolia",
166
167
  explorerUrl: "https://sepolia.etherscan.io/",
168
+ gasPriceBuffer: undefined,
167
169
  },
168
170
  [chainIds_1.SOURCE_BASE_MAINNET]: {
169
171
  chainId: chainIds_1.SOURCE_BASE_MAINNET,
170
172
  name: "Base",
171
173
  slug: "base-mainnet",
172
174
  explorerUrl: "https://basescan.org/",
175
+ gasPriceBuffer: 3000n, // 30%
173
176
  },
174
177
  [chainIds_1.SOURCE_BSC_MAINNET]: {
175
178
  chainId: chainIds_1.SOURCE_BSC_MAINNET,
176
179
  name: "BNB",
177
180
  slug: "bnb-mainnet",
178
181
  explorerUrl: "https://bscscan.com/",
182
+ gasPriceBuffer: 3000n, // 30%
179
183
  },
180
184
  [chainIds_1.SOURCE_ETHEREUM_MAINNET]: {
181
185
  chainId: chainIds_1.SOURCE_ETHEREUM_MAINNET,
182
186
  name: "Ethereum",
183
187
  slug: "ethereum-mainnet",
184
188
  explorerUrl: "https://etherscan.io/",
189
+ gasPriceBuffer: 3000n, // 30%
185
190
  },
186
191
  [chainIds_1.ARBITRUM]: {
187
192
  chainId: chainIds_1.ARBITRUM,
188
193
  name: "Arbitrum",
189
194
  slug: "arbitrum",
190
195
  explorerUrl: "https://arbiscan.io/",
196
+ gasPriceBuffer: undefined,
191
197
  },
192
198
  [chainIds_1.AVALANCHE]: {
193
199
  chainId: chainIds_1.AVALANCHE,
194
200
  name: "Avalanche",
195
201
  slug: "avalanche",
196
202
  explorerUrl: "https://snowtrace.io/",
203
+ gasPriceBuffer: undefined,
197
204
  },
198
205
  [chainIds_1.ARBITRUM_SEPOLIA]: {
199
206
  chainId: chainIds_1.ARBITRUM_SEPOLIA,
200
207
  name: "Arbitrum Sepolia",
201
208
  slug: "arbitrum-sepolia",
202
209
  explorerUrl: "https://sepolia.arbiscan.io/",
210
+ gasPriceBuffer: undefined,
203
211
  },
204
212
  [chainIds_1.AVALANCHE_FUJI]: {
205
213
  chainId: chainIds_1.AVALANCHE_FUJI,
206
214
  name: "Avalanche Fuji",
207
215
  slug: "avalanche-fuji",
208
216
  explorerUrl: "https://testnet.snowtrace.io/",
217
+ gasPriceBuffer: undefined,
209
218
  },
210
219
  // Use this notation to correctly infer chain names, etc. from config
211
220
  };
@@ -330,7 +339,8 @@ function getMinExecutionFeeUsd(chainId) {
330
339
  }
331
340
  exports.getMinExecutionFeeUsd = getMinExecutionFeeUsd;
332
341
  function getGasPriceBuffer(chainId) {
333
- return CONTRACTS_CHAIN_CONFIGS[chainId]?.gasPriceBuffer;
342
+ return (CONTRACTS_CHAIN_CONFIGS[chainId]?.gasPriceBuffer ??
343
+ SOURCE_CHAIN_CONFIGS[chainId]?.gasPriceBuffer);
334
344
  }
335
345
  exports.getGasPriceBuffer = getGasPriceBuffer;
336
346
  function isChainDisabled(chainId) {
@@ -34,7 +34,7 @@ exports.CONTRACTS = {
34
34
  AffiliateVester: "0x7c100c0F55A15221A4c1C5a25Db8C98A81df49B2",
35
35
  PositionRouter: "0xb87a436B93fFE9D75c5cFA7bAcFff96430b09868",
36
36
  UniswapGmxEthPool: "0x80A9ae39310abf666A87C743d6ebBD0E8C42158E",
37
- ReferralStorage: "0xe6fab3f0c7199b0d34d7fbe83394fc0e0d06e99d",
37
+ ReferralStorage: "0xe6fab3F0c7199b0d34d7FbE83394fc0e0D06e99d",
38
38
  // Synthetics
39
39
  DataStore: "0xFD70de6b91282D8017aA4E741e9Ae325CAb992d8",
40
40
  EventEmitter: "0xC8ee91A54287DB53897056e12D9819156D3822Fb",
@@ -63,7 +63,7 @@ exports.CONTRACTS = {
63
63
  ClaimHandler: "0x8a83F2a71A53d3860a60C9F2E68AB2C46Ff9624e",
64
64
  // External
65
65
  ExternalHandler: "0x389CEf541397e872dC04421f166B5Bc2E0b374a5",
66
- OpenOceanRouter: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64",
66
+ KyberSwapRouter: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
67
67
  Multicall: "0xe79118d6D92a4b23369ba356C90b9A7ABf1CB961",
68
68
  ArbitrumNodeInterface: "0x00000000000000000000000000000000000000C8",
69
69
  LayerZeroEndpoint: "0x1a44076050125825900e736c501f859c50fE728c",
@@ -128,7 +128,7 @@ exports.CONTRACTS = {
128
128
  ClaimHandler: "0xefCAdA759241D10B45d9Cb6265B19ADec97ceced",
129
129
  // External
130
130
  ExternalHandler: "0xD149573a098223a9185433290a5A5CDbFa54a8A9",
131
- OpenOceanRouter: "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64",
131
+ KyberSwapRouter: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
132
132
  Multicall: "0x50474CAe810B316c294111807F94F9f48527e7F8",
133
133
  ArbitrumNodeInterface: viem_1.zeroAddress,
134
134
  LayerZeroEndpoint: "0x1a44076050125825900e736c501f859c50fE728c",
@@ -163,7 +163,7 @@ exports.CONTRACTS = {
163
163
  ClaimHandler: "0x162e3a5B47C9a45ff762E5b4b23D048D6780C14e",
164
164
  // External
165
165
  ExternalHandler: "0x36b906eA6AE7c74aeEE8cDE66D01B3f1f8843872",
166
- OpenOceanRouter: viem_1.zeroAddress,
166
+ KyberSwapRouter: viem_1.zeroAddress,
167
167
  Multicall: "0x4BaA24f93a657f0c1b4A0Ffc72B91011E35cA46b",
168
168
  LayerZeroEndpoint: "0x6F475642a6e85809B1c36Fa62763669b1b48DD5B",
169
169
  ArbitrumNodeInterface: viem_1.zeroAddress,
@@ -232,7 +232,7 @@ exports.CONTRACTS = {
232
232
  ClaimHandler: "0x7e42e350FEF7c0A766590A6b2F4eF3F38D8A2988",
233
233
  // External
234
234
  ExternalHandler: "0xa7EE2737249e0099906cB079BCEe85f0bbd837d4",
235
- OpenOceanRouter: viem_1.zeroAddress,
235
+ KyberSwapRouter: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
236
236
  Multicall: "0xF516BC01c50eebdBad4d7E506c8f690ae8EAFc52",
237
237
  LayerZeroEndpoint: "0x6F475642a6e85809B1c36Fa62763669b1b48DD5B",
238
238
  ArbitrumNodeInterface: viem_1.zeroAddress,
@@ -328,7 +328,7 @@ exports.CONTRACTS = {
328
328
  ChainlinkPriceFeedProvider: "0x2e149AbC99cDC98FB0207d6F184DC323CEBB955B",
329
329
  ClaimHandler: "0x01D68cf13B8f67b041b8D565931e1370774cCeBd",
330
330
  // External
331
- OpenOceanRouter: viem_1.zeroAddress,
331
+ KyberSwapRouter: viem_1.zeroAddress,
332
332
  ExternalHandler: "0x0d9F90c66C392c4d0e70EE0d399c43729B942512",
333
333
  Multicall: "0x966D1F5c54a714C6443205F0Ec49eEF81F10fdfD",
334
334
  ArbitrumNodeInterface: viem_1.zeroAddress,
@@ -375,7 +375,7 @@ exports.CONTRACTS = {
375
375
  BN_GMX: viem_1.zeroAddress,
376
376
  USDG: viem_1.zeroAddress,
377
377
  ES_GMX_IOU: viem_1.zeroAddress,
378
- OpenOceanRouter: viem_1.zeroAddress,
378
+ KyberSwapRouter: viem_1.zeroAddress,
379
379
  Vault: viem_1.zeroAddress,
380
380
  PositionRouter: viem_1.zeroAddress,
381
381
  RewardRouter: viem_1.zeroAddress,