@gmx-io/sdk 1.5.0-alpha-8 → 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 (235) hide show
  1. package/build/cjs/scripts/subsquid-codegen.js +1 -1
  2. package/build/cjs/src/clients/v1/testUtil.js +1 -1
  3. package/build/cjs/src/clients/v2/__tests__/data.spec.js +85 -0
  4. package/build/cjs/src/clients/v2/__tests__/decrease.spec.js +471 -0
  5. package/build/cjs/src/clients/v2/__tests__/editCancel.spec.js +259 -0
  6. package/build/cjs/src/clients/v2/__tests__/errors.spec.js +261 -0
  7. package/build/cjs/src/clients/v2/__tests__/increase.spec.js +764 -0
  8. package/build/cjs/src/clients/v2/__tests__/subaccount.spec.js +74 -0
  9. package/build/cjs/src/clients/v2/__tests__/swap.spec.js +192 -0
  10. package/build/cjs/src/clients/v2/__tests__/testUtil.js +136 -0
  11. package/build/cjs/src/clients/v2/index.js +164 -25
  12. package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +82 -0
  13. package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +572 -0
  14. package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +152 -0
  15. package/build/cjs/src/codegen/subsquid.js +323 -1
  16. package/build/cjs/src/configs/__tests__/tokens.spec.js +1 -0
  17. package/build/cjs/src/configs/api.js +4 -3
  18. package/build/cjs/src/configs/batch.js +13 -0
  19. package/build/cjs/src/configs/chainIds.js +2 -1
  20. package/build/cjs/src/configs/chains.js +59 -3
  21. package/build/cjs/src/configs/contracts.js +73 -6
  22. package/build/cjs/src/configs/express.js +2 -0
  23. package/build/cjs/src/configs/gasLimits.js +7 -0
  24. package/build/cjs/src/configs/markets.js +86 -2
  25. package/build/cjs/src/configs/oracleKeeper.js +2 -0
  26. package/build/cjs/src/configs/tokens.js +151 -132
  27. package/build/cjs/src/test/mock.js +1 -1
  28. package/build/cjs/src/utils/__tests__/markets.spec.js +10 -0
  29. package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +4 -0
  30. package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +4 -0
  31. package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +2 -0
  32. package/build/cjs/src/utils/__tests__/positions.spec.js +59 -7
  33. package/build/cjs/src/utils/__tests__/uiFeeReceiver.spec.js +58 -0
  34. package/build/cjs/src/utils/balances/api.js +65 -0
  35. package/build/cjs/src/utils/buyback/api.js +7 -0
  36. package/build/cjs/src/utils/buyback/types.js +2 -0
  37. package/build/cjs/src/utils/errors/index.js +1 -0
  38. package/build/cjs/src/utils/errors/isIgnoredEstimateGasError.js +23 -0
  39. package/build/cjs/src/utils/errors/parseError.js +3 -0
  40. package/build/cjs/src/utils/express/index.js +18 -0
  41. package/build/cjs/src/utils/express/types.js +2 -0
  42. package/build/cjs/src/utils/express/utils/batchOrderUtils.js +218 -0
  43. package/build/cjs/src/utils/express/utils/bridgeOutUtils.js +73 -0
  44. package/build/cjs/src/utils/express/utils/estimateExpressParams.js +244 -0
  45. package/build/cjs/src/utils/express/utils/expressParamsUtils.js +22 -0
  46. package/build/cjs/src/utils/express/utils/fetchGelatoGasTankBalance.js +13 -0
  47. package/build/cjs/src/utils/express/utils/gelatoRelayUtils.js +77 -0
  48. package/build/cjs/src/utils/express/utils/globalExpressParams.js +40 -0
  49. package/build/cjs/src/utils/express/utils/index.js +27 -0
  50. package/build/cjs/src/utils/express/utils/oracleParamsUtils.js +49 -0
  51. package/build/cjs/src/utils/express/utils/referralUtils.js +35 -0
  52. package/build/cjs/src/utils/express/utils/relayParamsUtils.js +208 -0
  53. package/build/cjs/src/utils/fees/priceImpact.js +1 -2
  54. package/build/cjs/src/utils/http/http.js +86 -13
  55. package/build/cjs/src/utils/markets/utils.js +8 -0
  56. package/build/cjs/src/utils/metrics/index.js +7 -0
  57. package/build/cjs/src/utils/numbers/utils.js +29 -27
  58. package/build/cjs/src/utils/orderTransactions/api.js +88 -0
  59. package/build/cjs/src/utils/orderTransactions/index.js +2 -0
  60. package/build/cjs/src/utils/orderTransactions/simulation.js +141 -0
  61. package/build/cjs/src/utils/orderTransactions/utils.js +4 -1
  62. package/build/cjs/src/utils/orderTransactions/validateTypedData.js +100 -0
  63. package/build/cjs/src/utils/positions/utils.js +5 -19
  64. package/build/cjs/src/utils/rpc/createViemRpc.js +39 -0
  65. package/build/cjs/src/utils/rpc/index.js +5 -0
  66. package/build/cjs/src/utils/signer/index.js +5 -0
  67. package/build/cjs/src/utils/signer/privateKeySigner.js +42 -0
  68. package/build/cjs/src/utils/staking/api.js +11 -0
  69. package/build/cjs/src/utils/staking/types.js +2 -0
  70. package/build/cjs/src/utils/subaccount/api.js +22 -0
  71. package/build/cjs/src/utils/subaccount/generateSubaccount.js +19 -0
  72. package/build/cjs/src/utils/subaccount/getEmptySubaccountApproval.js +24 -0
  73. package/build/cjs/src/utils/subaccount/getSubaccountApprovalTypedData.js +51 -0
  74. package/build/cjs/src/utils/subaccount/hashSubaccountApproval.js +28 -0
  75. package/build/cjs/src/utils/subaccount/index.js +30 -0
  76. package/build/cjs/src/utils/subaccount/types.js +2 -0
  77. package/build/cjs/src/utils/swap/swapPath.js +4 -1
  78. package/build/cjs/src/utils/trade/decrease.js +131 -6
  79. package/build/cjs/src/utils/trade/increase.js +2 -6
  80. package/build/cjs/src/utils/trade/types.js +1 -1
  81. package/build/cjs/src/utils/tradeHistory/utils.js +14 -28
  82. package/build/cjs/src/utils/twap/index.js +4 -1
  83. package/build/cjs/src/utils/twap/uiFeeReceiver.js +46 -14
  84. package/build/esm/scripts/subsquid-codegen.js +1 -1
  85. package/build/esm/src/clients/v1/testUtil.js +1 -1
  86. package/build/esm/src/clients/v2/__tests__/data.spec.js +83 -0
  87. package/build/esm/src/clients/v2/__tests__/decrease.spec.js +469 -0
  88. package/build/esm/src/clients/v2/__tests__/editCancel.spec.js +257 -0
  89. package/build/esm/src/clients/v2/__tests__/errors.spec.js +259 -0
  90. package/build/esm/src/clients/v2/__tests__/increase.spec.js +762 -0
  91. package/build/esm/src/clients/v2/__tests__/subaccount.spec.js +72 -0
  92. package/build/esm/src/clients/v2/__tests__/swap.spec.js +190 -0
  93. package/build/esm/src/clients/v2/__tests__/testUtil.js +124 -0
  94. package/build/esm/src/clients/v2/index.js +140 -4
  95. package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +82 -0
  96. package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +572 -0
  97. package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +152 -0
  98. package/build/esm/src/codegen/subsquid.js +321 -0
  99. package/build/esm/src/configs/__tests__/tokens.spec.js +2 -1
  100. package/build/esm/src/configs/api.js +5 -4
  101. package/build/esm/src/configs/batch.js +14 -1
  102. package/build/esm/src/configs/chainIds.js +1 -0
  103. package/build/esm/src/configs/chains.js +59 -4
  104. package/build/esm/src/configs/contracts.js +74 -7
  105. package/build/esm/src/configs/express.js +3 -1
  106. package/build/esm/src/configs/gasLimits.js +8 -1
  107. package/build/esm/src/configs/markets.js +86 -2
  108. package/build/esm/src/configs/oracleKeeper.js +3 -1
  109. package/build/esm/src/configs/tokens.js +151 -131
  110. package/build/esm/src/test/mock.js +1 -1
  111. package/build/esm/src/utils/__tests__/markets.spec.js +10 -0
  112. package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +4 -0
  113. package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +4 -0
  114. package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +2 -0
  115. package/build/esm/src/utils/__tests__/positions.spec.js +60 -8
  116. package/build/esm/src/utils/__tests__/uiFeeReceiver.spec.js +59 -1
  117. package/build/esm/src/utils/balances/api.js +56 -0
  118. package/build/esm/src/utils/buyback/api.js +3 -0
  119. package/build/esm/src/utils/buyback/types.js +1 -0
  120. package/build/esm/src/utils/errors/index.js +1 -0
  121. package/build/esm/src/utils/errors/isIgnoredEstimateGasError.js +19 -0
  122. package/build/esm/src/utils/errors/parseError.js +3 -0
  123. package/build/esm/src/utils/express/index.js +2 -0
  124. package/build/esm/src/utils/express/types.js +1 -0
  125. package/build/esm/src/utils/express/utils/batchOrderUtils.js +210 -0
  126. package/build/esm/src/utils/express/utils/bridgeOutUtils.js +69 -0
  127. package/build/esm/src/utils/express/utils/estimateExpressParams.js +238 -0
  128. package/build/esm/src/utils/express/utils/expressParamsUtils.js +16 -0
  129. package/build/esm/src/utils/express/utils/fetchGelatoGasTankBalance.js +9 -0
  130. package/build/esm/src/utils/express/utils/gelatoRelayUtils.js +71 -0
  131. package/build/esm/src/utils/express/utils/globalExpressParams.js +36 -0
  132. package/build/esm/src/utils/express/utils/index.js +11 -0
  133. package/build/esm/src/utils/express/utils/oracleParamsUtils.js +42 -0
  134. package/build/esm/src/utils/express/utils/referralUtils.js +30 -0
  135. package/build/esm/src/utils/express/utils/relayParamsUtils.js +198 -0
  136. package/build/esm/src/utils/fees/priceImpact.js +1 -2
  137. package/build/esm/src/utils/http/http.js +84 -12
  138. package/build/esm/src/utils/markets/utils.js +8 -0
  139. package/build/esm/src/utils/metrics/index.js +4 -0
  140. package/build/esm/src/utils/numbers/utils.js +25 -24
  141. package/build/esm/src/utils/orderTransactions/api.js +77 -0
  142. package/build/esm/src/utils/orderTransactions/index.js +2 -0
  143. package/build/esm/src/utils/orderTransactions/simulation.js +136 -0
  144. package/build/esm/src/utils/orderTransactions/utils.js +4 -1
  145. package/build/esm/src/utils/orderTransactions/validateTypedData.js +95 -0
  146. package/build/esm/src/utils/positions/utils.js +5 -19
  147. package/build/esm/src/utils/rpc/createViemRpc.js +35 -0
  148. package/build/esm/src/utils/rpc/index.js +1 -0
  149. package/build/esm/src/utils/signer/index.js +1 -0
  150. package/build/esm/src/utils/signer/privateKeySigner.js +38 -0
  151. package/build/esm/src/utils/staking/api.js +7 -0
  152. package/build/esm/src/utils/staking/types.js +1 -0
  153. package/build/esm/src/utils/subaccount/api.js +16 -0
  154. package/build/esm/src/utils/subaccount/generateSubaccount.js +15 -0
  155. package/build/esm/src/utils/subaccount/getEmptySubaccountApproval.js +20 -0
  156. package/build/esm/src/utils/subaccount/getSubaccountApprovalTypedData.js +47 -0
  157. package/build/esm/src/utils/subaccount/hashSubaccountApproval.js +24 -0
  158. package/build/esm/src/utils/subaccount/index.js +6 -0
  159. package/build/esm/src/utils/subaccount/types.js +1 -0
  160. package/build/esm/src/utils/swap/swapPath.js +5 -2
  161. package/build/esm/src/utils/trade/decrease.js +127 -7
  162. package/build/esm/src/utils/trade/increase.js +3 -7
  163. package/build/esm/src/utils/trade/types.js +1 -1
  164. package/build/esm/src/utils/tradeHistory/utils.js +13 -26
  165. package/build/esm/src/utils/twap/index.js +1 -0
  166. package/build/esm/src/utils/twap/uiFeeReceiver.js +42 -13
  167. package/build/types/src/clients/v1/index.d.ts +1 -1
  168. package/build/types/src/clients/v1/modules/base.d.ts +1 -1
  169. package/build/types/src/clients/v1/multicall.d.ts +1 -1
  170. package/build/types/src/clients/v2/__tests__/data.spec.d.ts +1 -0
  171. package/build/types/src/clients/v2/__tests__/decrease.spec.d.ts +1 -0
  172. package/build/types/src/clients/v2/__tests__/editCancel.spec.d.ts +1 -0
  173. package/build/types/src/clients/v2/__tests__/errors.spec.d.ts +1 -0
  174. package/build/types/src/clients/v2/__tests__/increase.spec.d.ts +1 -0
  175. package/build/types/src/clients/v2/__tests__/subaccount.spec.d.ts +1 -0
  176. package/build/types/src/clients/v2/__tests__/swap.spec.d.ts +1 -0
  177. package/build/types/src/clients/v2/__tests__/testUtil.d.ts +25 -0
  178. package/build/types/src/clients/v2/index.d.ts +64 -1
  179. package/build/types/src/codegen/prebuilt/index.d.ts +960 -154
  180. package/build/types/src/codegen/subsquid.d.ts +1276 -44
  181. package/build/types/src/configs/chainIds.d.ts +1 -0
  182. package/build/types/src/configs/chains.d.ts +36 -7
  183. package/build/types/src/configs/contracts.d.ts +69 -5
  184. package/build/types/src/configs/markets.d.ts +5 -0
  185. package/build/types/src/configs/tokens.d.ts +6 -1
  186. package/build/types/src/utils/balances/api.d.ts +39 -0
  187. package/build/types/src/utils/buyback/api.d.ts +5 -0
  188. package/build/types/src/utils/buyback/types.d.ts +15 -0
  189. package/build/types/src/utils/chains/types.d.ts +1 -0
  190. package/build/types/src/utils/errors/index.d.ts +1 -0
  191. package/build/types/src/utils/errors/isIgnoredEstimateGasError.d.ts +2 -0
  192. package/build/types/src/utils/errors/parseError.d.ts +3 -0
  193. package/build/types/src/utils/express/index.d.ts +2 -0
  194. package/build/types/src/utils/express/types.d.ts +95 -0
  195. package/build/types/src/utils/express/utils/batchOrderUtils.d.ts +98 -0
  196. package/build/types/src/utils/express/utils/bridgeOutUtils.d.ts +21 -0
  197. package/build/types/src/utils/express/utils/estimateExpressParams.d.ts +37 -0
  198. package/build/types/src/utils/express/utils/expressParamsUtils.d.ts +19 -0
  199. package/build/types/src/utils/express/utils/fetchGelatoGasTankBalance.d.ts +5 -0
  200. package/build/types/src/utils/express/utils/gelatoRelayUtils.d.ts +25 -0
  201. package/build/types/src/utils/express/utils/globalExpressParams.d.ts +31 -0
  202. package/build/types/src/utils/express/utils/index.d.ts +11 -0
  203. package/build/types/src/utils/express/utils/oracleParamsUtils.d.ts +10 -0
  204. package/build/types/src/utils/express/utils/referralUtils.d.ts +17 -0
  205. package/build/types/src/utils/express/utils/relayParamsUtils.d.ts +63 -0
  206. package/build/types/src/utils/http/http.d.ts +16 -1
  207. package/build/types/src/utils/http/types.d.ts +3 -0
  208. package/build/types/src/utils/metrics/index.d.ts +4 -0
  209. package/build/types/src/utils/numbers/utils.d.ts +2 -5
  210. package/build/types/src/utils/orderTransactions/api.d.ts +158 -0
  211. package/build/types/src/utils/orderTransactions/index.d.ts +2 -0
  212. package/build/types/src/utils/orderTransactions/simulation.d.ts +26 -0
  213. package/build/types/src/utils/orderTransactions/validateTypedData.d.ts +6 -0
  214. package/build/types/src/utils/positions/utils.d.ts +1 -9
  215. package/build/types/src/utils/rpc/createViemRpc.d.ts +3 -0
  216. package/build/types/src/utils/rpc/index.d.ts +26 -0
  217. package/build/types/src/utils/signer/index.d.ts +23 -0
  218. package/build/types/src/utils/signer/privateKeySigner.d.ts +19 -0
  219. package/build/types/src/utils/staking/api.d.ts +7 -0
  220. package/build/types/src/utils/staking/types.d.ts +14 -0
  221. package/build/types/src/utils/subaccount/api.d.ts +50 -0
  222. package/build/types/src/utils/subaccount/generateSubaccount.d.ts +8 -0
  223. package/build/types/src/utils/subaccount/getEmptySubaccountApproval.d.ts +9 -0
  224. package/build/types/src/utils/subaccount/getSubaccountApprovalTypedData.d.ts +24 -0
  225. package/build/types/src/utils/subaccount/hashSubaccountApproval.d.ts +1 -0
  226. package/build/types/src/utils/subaccount/index.d.ts +7 -0
  227. package/build/types/src/utils/subaccount/types.d.ts +55 -0
  228. package/build/types/src/utils/tokens/types.d.ts +0 -1
  229. package/build/types/src/utils/trade/decrease.d.ts +41 -2
  230. package/build/types/src/utils/trade/types.d.ts +9 -1
  231. package/build/types/src/utils/tradeHistory/utils.d.ts +0 -1
  232. package/build/types/src/utils/twap/index.d.ts +1 -0
  233. package/build/types/src/utils/twap/types.d.ts +2 -0
  234. package/build/types/src/utils/twap/uiFeeReceiver.d.ts +18 -7
  235. package/package.json +40 -3
@@ -110,14 +110,19 @@ export interface AccountPnlSummaryBucketObject {
110
110
  }
111
111
  export interface AccountStat {
112
112
  __typename?: "AccountStat";
113
+ account: Scalars["String"]["output"];
113
114
  closedCount: Scalars["Int"]["output"];
114
115
  cumsumCollateral: Scalars["BigInt"]["output"];
115
116
  cumsumSize: Scalars["BigInt"]["output"];
117
+ dayTimestamp?: Maybe<Scalars["Int"]["output"]>;
116
118
  deposits: Scalars["BigInt"]["output"];
117
119
  id: Scalars["String"]["output"];
118
120
  losses: Scalars["Int"]["output"];
119
121
  maxCapital: Scalars["BigInt"]["output"];
122
+ maxNetCapitalRunningDelta?: Maybe<Scalars["BigInt"]["output"]>;
120
123
  netCapital: Scalars["BigInt"]["output"];
124
+ netCapitalDelta?: Maybe<Scalars["BigInt"]["output"]>;
125
+ period: Scalars["String"]["output"];
121
126
  positions: Array<Position>;
122
127
  realizedFees: Scalars["BigInt"]["output"];
123
128
  realizedPnl: Scalars["BigInt"]["output"];
@@ -139,6 +144,12 @@ export interface AccountStatEdge {
139
144
  node: AccountStat;
140
145
  }
141
146
  export declare enum AccountStatOrderByInput {
147
+ account_ASC = "account_ASC",
148
+ account_ASC_NULLS_FIRST = "account_ASC_NULLS_FIRST",
149
+ account_ASC_NULLS_LAST = "account_ASC_NULLS_LAST",
150
+ account_DESC = "account_DESC",
151
+ account_DESC_NULLS_FIRST = "account_DESC_NULLS_FIRST",
152
+ account_DESC_NULLS_LAST = "account_DESC_NULLS_LAST",
142
153
  closedCount_ASC = "closedCount_ASC",
143
154
  closedCount_ASC_NULLS_FIRST = "closedCount_ASC_NULLS_FIRST",
144
155
  closedCount_ASC_NULLS_LAST = "closedCount_ASC_NULLS_LAST",
@@ -157,6 +168,12 @@ export declare enum AccountStatOrderByInput {
157
168
  cumsumSize_DESC = "cumsumSize_DESC",
158
169
  cumsumSize_DESC_NULLS_FIRST = "cumsumSize_DESC_NULLS_FIRST",
159
170
  cumsumSize_DESC_NULLS_LAST = "cumsumSize_DESC_NULLS_LAST",
171
+ dayTimestamp_ASC = "dayTimestamp_ASC",
172
+ dayTimestamp_ASC_NULLS_FIRST = "dayTimestamp_ASC_NULLS_FIRST",
173
+ dayTimestamp_ASC_NULLS_LAST = "dayTimestamp_ASC_NULLS_LAST",
174
+ dayTimestamp_DESC = "dayTimestamp_DESC",
175
+ dayTimestamp_DESC_NULLS_FIRST = "dayTimestamp_DESC_NULLS_FIRST",
176
+ dayTimestamp_DESC_NULLS_LAST = "dayTimestamp_DESC_NULLS_LAST",
160
177
  deposits_ASC = "deposits_ASC",
161
178
  deposits_ASC_NULLS_FIRST = "deposits_ASC_NULLS_FIRST",
162
179
  deposits_ASC_NULLS_LAST = "deposits_ASC_NULLS_LAST",
@@ -181,12 +198,30 @@ export declare enum AccountStatOrderByInput {
181
198
  maxCapital_DESC = "maxCapital_DESC",
182
199
  maxCapital_DESC_NULLS_FIRST = "maxCapital_DESC_NULLS_FIRST",
183
200
  maxCapital_DESC_NULLS_LAST = "maxCapital_DESC_NULLS_LAST",
201
+ maxNetCapitalRunningDelta_ASC = "maxNetCapitalRunningDelta_ASC",
202
+ maxNetCapitalRunningDelta_ASC_NULLS_FIRST = "maxNetCapitalRunningDelta_ASC_NULLS_FIRST",
203
+ maxNetCapitalRunningDelta_ASC_NULLS_LAST = "maxNetCapitalRunningDelta_ASC_NULLS_LAST",
204
+ maxNetCapitalRunningDelta_DESC = "maxNetCapitalRunningDelta_DESC",
205
+ maxNetCapitalRunningDelta_DESC_NULLS_FIRST = "maxNetCapitalRunningDelta_DESC_NULLS_FIRST",
206
+ maxNetCapitalRunningDelta_DESC_NULLS_LAST = "maxNetCapitalRunningDelta_DESC_NULLS_LAST",
207
+ netCapitalDelta_ASC = "netCapitalDelta_ASC",
208
+ netCapitalDelta_ASC_NULLS_FIRST = "netCapitalDelta_ASC_NULLS_FIRST",
209
+ netCapitalDelta_ASC_NULLS_LAST = "netCapitalDelta_ASC_NULLS_LAST",
210
+ netCapitalDelta_DESC = "netCapitalDelta_DESC",
211
+ netCapitalDelta_DESC_NULLS_FIRST = "netCapitalDelta_DESC_NULLS_FIRST",
212
+ netCapitalDelta_DESC_NULLS_LAST = "netCapitalDelta_DESC_NULLS_LAST",
184
213
  netCapital_ASC = "netCapital_ASC",
185
214
  netCapital_ASC_NULLS_FIRST = "netCapital_ASC_NULLS_FIRST",
186
215
  netCapital_ASC_NULLS_LAST = "netCapital_ASC_NULLS_LAST",
187
216
  netCapital_DESC = "netCapital_DESC",
188
217
  netCapital_DESC_NULLS_FIRST = "netCapital_DESC_NULLS_FIRST",
189
218
  netCapital_DESC_NULLS_LAST = "netCapital_DESC_NULLS_LAST",
219
+ period_ASC = "period_ASC",
220
+ period_ASC_NULLS_FIRST = "period_ASC_NULLS_FIRST",
221
+ period_ASC_NULLS_LAST = "period_ASC_NULLS_LAST",
222
+ period_DESC = "period_DESC",
223
+ period_DESC_NULLS_FIRST = "period_DESC_NULLS_FIRST",
224
+ period_DESC_NULLS_LAST = "period_DESC_NULLS_LAST",
190
225
  realizedFees_ASC = "realizedFees_ASC",
191
226
  realizedFees_ASC_NULLS_FIRST = "realizedFees_ASC_NULLS_FIRST",
192
227
  realizedFees_ASC_NULLS_LAST = "realizedFees_ASC_NULLS_LAST",
@@ -233,6 +268,23 @@ export declare enum AccountStatOrderByInput {
233
268
  export interface AccountStatWhereInput {
234
269
  AND?: InputMaybe<Array<AccountStatWhereInput>>;
235
270
  OR?: InputMaybe<Array<AccountStatWhereInput>>;
271
+ account_contains?: InputMaybe<Scalars["String"]["input"]>;
272
+ account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
273
+ account_endsWith?: InputMaybe<Scalars["String"]["input"]>;
274
+ account_eq?: InputMaybe<Scalars["String"]["input"]>;
275
+ account_gt?: InputMaybe<Scalars["String"]["input"]>;
276
+ account_gte?: InputMaybe<Scalars["String"]["input"]>;
277
+ account_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
278
+ account_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
279
+ account_lt?: InputMaybe<Scalars["String"]["input"]>;
280
+ account_lte?: InputMaybe<Scalars["String"]["input"]>;
281
+ account_not_contains?: InputMaybe<Scalars["String"]["input"]>;
282
+ account_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
283
+ account_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
284
+ account_not_eq?: InputMaybe<Scalars["String"]["input"]>;
285
+ account_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
286
+ account_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
287
+ account_startsWith?: InputMaybe<Scalars["String"]["input"]>;
236
288
  closedCount_eq?: InputMaybe<Scalars["Int"]["input"]>;
237
289
  closedCount_gt?: InputMaybe<Scalars["Int"]["input"]>;
238
290
  closedCount_gte?: InputMaybe<Scalars["Int"]["input"]>;
@@ -260,6 +312,15 @@ export interface AccountStatWhereInput {
260
312
  cumsumSize_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
261
313
  cumsumSize_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
262
314
  cumsumSize_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
315
+ dayTimestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
316
+ dayTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
317
+ dayTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
318
+ dayTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
319
+ dayTimestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
320
+ dayTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
321
+ dayTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
322
+ dayTimestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
323
+ dayTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
263
324
  deposits_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
264
325
  deposits_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
265
326
  deposits_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -304,6 +365,24 @@ export interface AccountStatWhereInput {
304
365
  maxCapital_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
305
366
  maxCapital_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
306
367
  maxCapital_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
368
+ maxNetCapitalRunningDelta_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
369
+ maxNetCapitalRunningDelta_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
370
+ maxNetCapitalRunningDelta_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
371
+ maxNetCapitalRunningDelta_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
372
+ maxNetCapitalRunningDelta_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
373
+ maxNetCapitalRunningDelta_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
374
+ maxNetCapitalRunningDelta_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
375
+ maxNetCapitalRunningDelta_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
376
+ maxNetCapitalRunningDelta_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
377
+ netCapitalDelta_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
378
+ netCapitalDelta_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
379
+ netCapitalDelta_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
380
+ netCapitalDelta_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
381
+ netCapitalDelta_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
382
+ netCapitalDelta_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
383
+ netCapitalDelta_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
384
+ netCapitalDelta_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
385
+ netCapitalDelta_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
307
386
  netCapital_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
308
387
  netCapital_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
309
388
  netCapital_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -313,6 +392,23 @@ export interface AccountStatWhereInput {
313
392
  netCapital_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
314
393
  netCapital_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
315
394
  netCapital_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
395
+ period_contains?: InputMaybe<Scalars["String"]["input"]>;
396
+ period_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
397
+ period_endsWith?: InputMaybe<Scalars["String"]["input"]>;
398
+ period_eq?: InputMaybe<Scalars["String"]["input"]>;
399
+ period_gt?: InputMaybe<Scalars["String"]["input"]>;
400
+ period_gte?: InputMaybe<Scalars["String"]["input"]>;
401
+ period_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
402
+ period_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
403
+ period_lt?: InputMaybe<Scalars["String"]["input"]>;
404
+ period_lte?: InputMaybe<Scalars["String"]["input"]>;
405
+ period_not_contains?: InputMaybe<Scalars["String"]["input"]>;
406
+ period_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
407
+ period_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
408
+ period_not_eq?: InputMaybe<Scalars["String"]["input"]>;
409
+ period_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
410
+ period_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
411
+ period_startsWith?: InputMaybe<Scalars["String"]["input"]>;
316
412
  positions_every?: InputMaybe<PositionWhereInput>;
317
413
  positions_none?: InputMaybe<PositionWhereInput>;
318
414
  positions_some?: InputMaybe<PositionWhereInput>;
@@ -396,6 +492,312 @@ export interface AccountVolumeStatObject {
396
492
  export interface AccountVolumeWhereInput {
397
493
  account: Scalars["String"]["input"];
398
494
  }
495
+ export interface AffiliateReferralTradeStatsByHour {
496
+ __typename?: "AffiliateReferralTradeStatsByHour";
497
+ affiliate: Scalars["String"]["output"];
498
+ id: Scalars["String"]["output"];
499
+ rebatesUsd: Scalars["BigInt"]["output"];
500
+ timestamp: Scalars["Int"]["output"];
501
+ tradesCount: Scalars["Int"]["output"];
502
+ volumeUsd: Scalars["BigInt"]["output"];
503
+ }
504
+ export interface AffiliateReferralTradeStatsByHourEdge {
505
+ __typename?: "AffiliateReferralTradeStatsByHourEdge";
506
+ cursor: Scalars["String"]["output"];
507
+ node: AffiliateReferralTradeStatsByHour;
508
+ }
509
+ export declare enum AffiliateReferralTradeStatsByHourOrderByInput {
510
+ affiliate_ASC = "affiliate_ASC",
511
+ affiliate_ASC_NULLS_FIRST = "affiliate_ASC_NULLS_FIRST",
512
+ affiliate_ASC_NULLS_LAST = "affiliate_ASC_NULLS_LAST",
513
+ affiliate_DESC = "affiliate_DESC",
514
+ affiliate_DESC_NULLS_FIRST = "affiliate_DESC_NULLS_FIRST",
515
+ affiliate_DESC_NULLS_LAST = "affiliate_DESC_NULLS_LAST",
516
+ id_ASC = "id_ASC",
517
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
518
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
519
+ id_DESC = "id_DESC",
520
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
521
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
522
+ rebatesUsd_ASC = "rebatesUsd_ASC",
523
+ rebatesUsd_ASC_NULLS_FIRST = "rebatesUsd_ASC_NULLS_FIRST",
524
+ rebatesUsd_ASC_NULLS_LAST = "rebatesUsd_ASC_NULLS_LAST",
525
+ rebatesUsd_DESC = "rebatesUsd_DESC",
526
+ rebatesUsd_DESC_NULLS_FIRST = "rebatesUsd_DESC_NULLS_FIRST",
527
+ rebatesUsd_DESC_NULLS_LAST = "rebatesUsd_DESC_NULLS_LAST",
528
+ timestamp_ASC = "timestamp_ASC",
529
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
530
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
531
+ timestamp_DESC = "timestamp_DESC",
532
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
533
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
534
+ tradesCount_ASC = "tradesCount_ASC",
535
+ tradesCount_ASC_NULLS_FIRST = "tradesCount_ASC_NULLS_FIRST",
536
+ tradesCount_ASC_NULLS_LAST = "tradesCount_ASC_NULLS_LAST",
537
+ tradesCount_DESC = "tradesCount_DESC",
538
+ tradesCount_DESC_NULLS_FIRST = "tradesCount_DESC_NULLS_FIRST",
539
+ tradesCount_DESC_NULLS_LAST = "tradesCount_DESC_NULLS_LAST",
540
+ volumeUsd_ASC = "volumeUsd_ASC",
541
+ volumeUsd_ASC_NULLS_FIRST = "volumeUsd_ASC_NULLS_FIRST",
542
+ volumeUsd_ASC_NULLS_LAST = "volumeUsd_ASC_NULLS_LAST",
543
+ volumeUsd_DESC = "volumeUsd_DESC",
544
+ volumeUsd_DESC_NULLS_FIRST = "volumeUsd_DESC_NULLS_FIRST",
545
+ volumeUsd_DESC_NULLS_LAST = "volumeUsd_DESC_NULLS_LAST"
546
+ }
547
+ export interface AffiliateReferralTradeStatsByHourWhereInput {
548
+ AND?: InputMaybe<Array<AffiliateReferralTradeStatsByHourWhereInput>>;
549
+ OR?: InputMaybe<Array<AffiliateReferralTradeStatsByHourWhereInput>>;
550
+ affiliate_contains?: InputMaybe<Scalars["String"]["input"]>;
551
+ affiliate_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
552
+ affiliate_endsWith?: InputMaybe<Scalars["String"]["input"]>;
553
+ affiliate_eq?: InputMaybe<Scalars["String"]["input"]>;
554
+ affiliate_gt?: InputMaybe<Scalars["String"]["input"]>;
555
+ affiliate_gte?: InputMaybe<Scalars["String"]["input"]>;
556
+ affiliate_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
557
+ affiliate_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
558
+ affiliate_lt?: InputMaybe<Scalars["String"]["input"]>;
559
+ affiliate_lte?: InputMaybe<Scalars["String"]["input"]>;
560
+ affiliate_not_contains?: InputMaybe<Scalars["String"]["input"]>;
561
+ affiliate_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
562
+ affiliate_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
563
+ affiliate_not_eq?: InputMaybe<Scalars["String"]["input"]>;
564
+ affiliate_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
565
+ affiliate_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
566
+ affiliate_startsWith?: InputMaybe<Scalars["String"]["input"]>;
567
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
568
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
569
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
570
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
571
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
572
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
573
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
574
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
575
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
576
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
577
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
578
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
579
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
580
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
581
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
582
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
583
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
584
+ rebatesUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
585
+ rebatesUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
586
+ rebatesUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
587
+ rebatesUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
588
+ rebatesUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
589
+ rebatesUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
590
+ rebatesUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
591
+ rebatesUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
592
+ rebatesUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
593
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
594
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
595
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
596
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
597
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
598
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
599
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
600
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
601
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
602
+ tradesCount_eq?: InputMaybe<Scalars["Int"]["input"]>;
603
+ tradesCount_gt?: InputMaybe<Scalars["Int"]["input"]>;
604
+ tradesCount_gte?: InputMaybe<Scalars["Int"]["input"]>;
605
+ tradesCount_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
606
+ tradesCount_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
607
+ tradesCount_lt?: InputMaybe<Scalars["Int"]["input"]>;
608
+ tradesCount_lte?: InputMaybe<Scalars["Int"]["input"]>;
609
+ tradesCount_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
610
+ tradesCount_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
611
+ volumeUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
612
+ volumeUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
613
+ volumeUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
614
+ volumeUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
615
+ volumeUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
616
+ volumeUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
617
+ volumeUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
618
+ volumeUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
619
+ volumeUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
620
+ }
621
+ export interface AffiliateReferralTradeStatsByHoursConnection {
622
+ __typename?: "AffiliateReferralTradeStatsByHoursConnection";
623
+ edges: Array<AffiliateReferralTradeStatsByHourEdge>;
624
+ pageInfo: PageInfo;
625
+ totalCount: Scalars["Int"]["output"];
626
+ }
627
+ export interface AffiliateStatsPoint {
628
+ __typename?: "AffiliateStatsPoint";
629
+ rebatesUsd: Scalars["BigInt"]["output"];
630
+ timestamp: Scalars["Float"]["output"];
631
+ tradersGained: Scalars["Float"]["output"];
632
+ tradersLost: Scalars["Float"]["output"];
633
+ tradersNet: Scalars["Float"]["output"];
634
+ tradesCount: Scalars["Float"]["output"];
635
+ volumeUsd: Scalars["BigInt"]["output"];
636
+ }
637
+ export interface AffiliateStatsResponse {
638
+ __typename?: "AffiliateStatsResponse";
639
+ affiliate: Scalars["String"]["output"];
640
+ bucketSizeSeconds: Scalars["Float"]["output"];
641
+ compareFrom?: Maybe<Scalars["Float"]["output"]>;
642
+ compareTo?: Maybe<Scalars["Float"]["output"]>;
643
+ from: Scalars["Float"]["output"];
644
+ hasComparison: Scalars["Boolean"]["output"];
645
+ points: Array<AffiliateStatsPoint>;
646
+ summary: AffiliateStatsSummary;
647
+ to: Scalars["Float"]["output"];
648
+ }
649
+ export interface AffiliateStatsSummary {
650
+ __typename?: "AffiliateStatsSummary";
651
+ rebatesUsd: Scalars["BigInt"]["output"];
652
+ rebatesUsdDelta?: Maybe<Scalars["BigInt"]["output"]>;
653
+ tradersGained?: Maybe<Scalars["Float"]["output"]>;
654
+ tradersGainedDelta?: Maybe<Scalars["Float"]["output"]>;
655
+ tradersLost?: Maybe<Scalars["Float"]["output"]>;
656
+ tradersLostDelta?: Maybe<Scalars["Float"]["output"]>;
657
+ tradersNet?: Maybe<Scalars["Float"]["output"]>;
658
+ tradersNetDelta?: Maybe<Scalars["Float"]["output"]>;
659
+ tradesCount: Scalars["Float"]["output"];
660
+ tradesCountDelta?: Maybe<Scalars["Float"]["output"]>;
661
+ volumeUsd: Scalars["BigInt"]["output"];
662
+ volumeUsdDelta?: Maybe<Scalars["BigInt"]["output"]>;
663
+ }
664
+ export interface AffiliateStatsWhereInput {
665
+ affiliate: Scalars["String"]["input"];
666
+ from?: InputMaybe<Scalars["Float"]["input"]>;
667
+ to?: InputMaybe<Scalars["Float"]["input"]>;
668
+ }
669
+ export interface AffiliateTraderStatsByHour {
670
+ __typename?: "AffiliateTraderStatsByHour";
671
+ affiliate: Scalars["String"]["output"];
672
+ id: Scalars["String"]["output"];
673
+ timestamp: Scalars["Int"]["output"];
674
+ tradersGained: Scalars["Int"]["output"];
675
+ tradersLost: Scalars["Int"]["output"];
676
+ tradersNet: Scalars["Int"]["output"];
677
+ }
678
+ export interface AffiliateTraderStatsByHourEdge {
679
+ __typename?: "AffiliateTraderStatsByHourEdge";
680
+ cursor: Scalars["String"]["output"];
681
+ node: AffiliateTraderStatsByHour;
682
+ }
683
+ export declare enum AffiliateTraderStatsByHourOrderByInput {
684
+ affiliate_ASC = "affiliate_ASC",
685
+ affiliate_ASC_NULLS_FIRST = "affiliate_ASC_NULLS_FIRST",
686
+ affiliate_ASC_NULLS_LAST = "affiliate_ASC_NULLS_LAST",
687
+ affiliate_DESC = "affiliate_DESC",
688
+ affiliate_DESC_NULLS_FIRST = "affiliate_DESC_NULLS_FIRST",
689
+ affiliate_DESC_NULLS_LAST = "affiliate_DESC_NULLS_LAST",
690
+ id_ASC = "id_ASC",
691
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
692
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
693
+ id_DESC = "id_DESC",
694
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
695
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
696
+ timestamp_ASC = "timestamp_ASC",
697
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
698
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
699
+ timestamp_DESC = "timestamp_DESC",
700
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
701
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
702
+ tradersGained_ASC = "tradersGained_ASC",
703
+ tradersGained_ASC_NULLS_FIRST = "tradersGained_ASC_NULLS_FIRST",
704
+ tradersGained_ASC_NULLS_LAST = "tradersGained_ASC_NULLS_LAST",
705
+ tradersGained_DESC = "tradersGained_DESC",
706
+ tradersGained_DESC_NULLS_FIRST = "tradersGained_DESC_NULLS_FIRST",
707
+ tradersGained_DESC_NULLS_LAST = "tradersGained_DESC_NULLS_LAST",
708
+ tradersLost_ASC = "tradersLost_ASC",
709
+ tradersLost_ASC_NULLS_FIRST = "tradersLost_ASC_NULLS_FIRST",
710
+ tradersLost_ASC_NULLS_LAST = "tradersLost_ASC_NULLS_LAST",
711
+ tradersLost_DESC = "tradersLost_DESC",
712
+ tradersLost_DESC_NULLS_FIRST = "tradersLost_DESC_NULLS_FIRST",
713
+ tradersLost_DESC_NULLS_LAST = "tradersLost_DESC_NULLS_LAST",
714
+ tradersNet_ASC = "tradersNet_ASC",
715
+ tradersNet_ASC_NULLS_FIRST = "tradersNet_ASC_NULLS_FIRST",
716
+ tradersNet_ASC_NULLS_LAST = "tradersNet_ASC_NULLS_LAST",
717
+ tradersNet_DESC = "tradersNet_DESC",
718
+ tradersNet_DESC_NULLS_FIRST = "tradersNet_DESC_NULLS_FIRST",
719
+ tradersNet_DESC_NULLS_LAST = "tradersNet_DESC_NULLS_LAST"
720
+ }
721
+ export interface AffiliateTraderStatsByHourWhereInput {
722
+ AND?: InputMaybe<Array<AffiliateTraderStatsByHourWhereInput>>;
723
+ OR?: InputMaybe<Array<AffiliateTraderStatsByHourWhereInput>>;
724
+ affiliate_contains?: InputMaybe<Scalars["String"]["input"]>;
725
+ affiliate_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
726
+ affiliate_endsWith?: InputMaybe<Scalars["String"]["input"]>;
727
+ affiliate_eq?: InputMaybe<Scalars["String"]["input"]>;
728
+ affiliate_gt?: InputMaybe<Scalars["String"]["input"]>;
729
+ affiliate_gte?: InputMaybe<Scalars["String"]["input"]>;
730
+ affiliate_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
731
+ affiliate_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
732
+ affiliate_lt?: InputMaybe<Scalars["String"]["input"]>;
733
+ affiliate_lte?: InputMaybe<Scalars["String"]["input"]>;
734
+ affiliate_not_contains?: InputMaybe<Scalars["String"]["input"]>;
735
+ affiliate_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
736
+ affiliate_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
737
+ affiliate_not_eq?: InputMaybe<Scalars["String"]["input"]>;
738
+ affiliate_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
739
+ affiliate_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
740
+ affiliate_startsWith?: InputMaybe<Scalars["String"]["input"]>;
741
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
742
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
743
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
744
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
745
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
746
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
747
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
748
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
749
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
750
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
751
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
752
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
753
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
754
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
755
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
756
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
757
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
758
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
759
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
760
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
761
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
762
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
763
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
764
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
765
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
766
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
767
+ tradersGained_eq?: InputMaybe<Scalars["Int"]["input"]>;
768
+ tradersGained_gt?: InputMaybe<Scalars["Int"]["input"]>;
769
+ tradersGained_gte?: InputMaybe<Scalars["Int"]["input"]>;
770
+ tradersGained_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
771
+ tradersGained_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
772
+ tradersGained_lt?: InputMaybe<Scalars["Int"]["input"]>;
773
+ tradersGained_lte?: InputMaybe<Scalars["Int"]["input"]>;
774
+ tradersGained_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
775
+ tradersGained_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
776
+ tradersLost_eq?: InputMaybe<Scalars["Int"]["input"]>;
777
+ tradersLost_gt?: InputMaybe<Scalars["Int"]["input"]>;
778
+ tradersLost_gte?: InputMaybe<Scalars["Int"]["input"]>;
779
+ tradersLost_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
780
+ tradersLost_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
781
+ tradersLost_lt?: InputMaybe<Scalars["Int"]["input"]>;
782
+ tradersLost_lte?: InputMaybe<Scalars["Int"]["input"]>;
783
+ tradersLost_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
784
+ tradersLost_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
785
+ tradersNet_eq?: InputMaybe<Scalars["Int"]["input"]>;
786
+ tradersNet_gt?: InputMaybe<Scalars["Int"]["input"]>;
787
+ tradersNet_gte?: InputMaybe<Scalars["Int"]["input"]>;
788
+ tradersNet_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
789
+ tradersNet_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
790
+ tradersNet_lt?: InputMaybe<Scalars["Int"]["input"]>;
791
+ tradersNet_lte?: InputMaybe<Scalars["Int"]["input"]>;
792
+ tradersNet_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
793
+ tradersNet_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
794
+ }
795
+ export interface AffiliateTraderStatsByHoursConnection {
796
+ __typename?: "AffiliateTraderStatsByHoursConnection";
797
+ edges: Array<AffiliateTraderStatsByHourEdge>;
798
+ pageInfo: PageInfo;
799
+ totalCount: Scalars["Int"]["output"];
800
+ }
399
801
  export interface AnnualizedPerformanceObject {
400
802
  __typename?: "AnnualizedPerformanceObject";
401
803
  address: Scalars["String"]["output"];
@@ -4817,58 +5219,150 @@ export interface MultichainSamechainFundingEventsConnection {
4817
5219
  pageInfo: PageInfo;
4818
5220
  totalCount: Scalars["Int"]["output"];
4819
5221
  }
4820
- export interface OnChainSetting {
4821
- __typename?: "OnChainSetting";
5222
+ export interface NetworkStakingPower {
5223
+ __typename?: "NetworkStakingPower";
4822
5224
  id: Scalars["String"]["output"];
4823
- key: Scalars["String"]["output"];
4824
- type: OnChainSettingType;
4825
- value: Scalars["String"]["output"];
5225
+ lastUpdateTimestamp: Scalars["Int"]["output"];
5226
+ totalAccumulatedPower: Scalars["BigInt"]["output"];
5227
+ totalCurrentStaked: Scalars["BigInt"]["output"];
4826
5228
  }
4827
- export interface OnChainSettingEdge {
4828
- __typename?: "OnChainSettingEdge";
5229
+ export interface NetworkStakingPowerEdge {
5230
+ __typename?: "NetworkStakingPowerEdge";
4829
5231
  cursor: Scalars["String"]["output"];
4830
- node: OnChainSetting;
5232
+ node: NetworkStakingPower;
4831
5233
  }
4832
- export declare enum OnChainSettingOrderByInput {
5234
+ export declare enum NetworkStakingPowerOrderByInput {
4833
5235
  id_ASC = "id_ASC",
4834
5236
  id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
4835
5237
  id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
4836
5238
  id_DESC = "id_DESC",
4837
5239
  id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
4838
5240
  id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
4839
- key_ASC = "key_ASC",
4840
- key_ASC_NULLS_FIRST = "key_ASC_NULLS_FIRST",
4841
- key_ASC_NULLS_LAST = "key_ASC_NULLS_LAST",
4842
- key_DESC = "key_DESC",
4843
- key_DESC_NULLS_FIRST = "key_DESC_NULLS_FIRST",
4844
- key_DESC_NULLS_LAST = "key_DESC_NULLS_LAST",
4845
- type_ASC = "type_ASC",
4846
- type_ASC_NULLS_FIRST = "type_ASC_NULLS_FIRST",
4847
- type_ASC_NULLS_LAST = "type_ASC_NULLS_LAST",
4848
- type_DESC = "type_DESC",
4849
- type_DESC_NULLS_FIRST = "type_DESC_NULLS_FIRST",
4850
- type_DESC_NULLS_LAST = "type_DESC_NULLS_LAST",
4851
- value_ASC = "value_ASC",
4852
- value_ASC_NULLS_FIRST = "value_ASC_NULLS_FIRST",
4853
- value_ASC_NULLS_LAST = "value_ASC_NULLS_LAST",
4854
- value_DESC = "value_DESC",
4855
- value_DESC_NULLS_FIRST = "value_DESC_NULLS_FIRST",
4856
- value_DESC_NULLS_LAST = "value_DESC_NULLS_LAST"
4857
- }
4858
- export declare enum OnChainSettingType {
4859
- bool = "bool",
4860
- bytes32 = "bytes32",
4861
- string = "string",
4862
- uint = "uint"
4863
- }
4864
- export interface OnChainSettingWhereInput {
4865
- AND?: InputMaybe<Array<OnChainSettingWhereInput>>;
4866
- OR?: InputMaybe<Array<OnChainSettingWhereInput>>;
4867
- id_contains?: InputMaybe<Scalars["String"]["input"]>;
4868
- id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4869
- id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
4870
- id_eq?: InputMaybe<Scalars["String"]["input"]>;
4871
- id_gt?: InputMaybe<Scalars["String"]["input"]>;
5241
+ lastUpdateTimestamp_ASC = "lastUpdateTimestamp_ASC",
5242
+ lastUpdateTimestamp_ASC_NULLS_FIRST = "lastUpdateTimestamp_ASC_NULLS_FIRST",
5243
+ lastUpdateTimestamp_ASC_NULLS_LAST = "lastUpdateTimestamp_ASC_NULLS_LAST",
5244
+ lastUpdateTimestamp_DESC = "lastUpdateTimestamp_DESC",
5245
+ lastUpdateTimestamp_DESC_NULLS_FIRST = "lastUpdateTimestamp_DESC_NULLS_FIRST",
5246
+ lastUpdateTimestamp_DESC_NULLS_LAST = "lastUpdateTimestamp_DESC_NULLS_LAST",
5247
+ totalAccumulatedPower_ASC = "totalAccumulatedPower_ASC",
5248
+ totalAccumulatedPower_ASC_NULLS_FIRST = "totalAccumulatedPower_ASC_NULLS_FIRST",
5249
+ totalAccumulatedPower_ASC_NULLS_LAST = "totalAccumulatedPower_ASC_NULLS_LAST",
5250
+ totalAccumulatedPower_DESC = "totalAccumulatedPower_DESC",
5251
+ totalAccumulatedPower_DESC_NULLS_FIRST = "totalAccumulatedPower_DESC_NULLS_FIRST",
5252
+ totalAccumulatedPower_DESC_NULLS_LAST = "totalAccumulatedPower_DESC_NULLS_LAST",
5253
+ totalCurrentStaked_ASC = "totalCurrentStaked_ASC",
5254
+ totalCurrentStaked_ASC_NULLS_FIRST = "totalCurrentStaked_ASC_NULLS_FIRST",
5255
+ totalCurrentStaked_ASC_NULLS_LAST = "totalCurrentStaked_ASC_NULLS_LAST",
5256
+ totalCurrentStaked_DESC = "totalCurrentStaked_DESC",
5257
+ totalCurrentStaked_DESC_NULLS_FIRST = "totalCurrentStaked_DESC_NULLS_FIRST",
5258
+ totalCurrentStaked_DESC_NULLS_LAST = "totalCurrentStaked_DESC_NULLS_LAST"
5259
+ }
5260
+ export interface NetworkStakingPowerWhereInput {
5261
+ AND?: InputMaybe<Array<NetworkStakingPowerWhereInput>>;
5262
+ OR?: InputMaybe<Array<NetworkStakingPowerWhereInput>>;
5263
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
5264
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
5265
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
5266
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
5267
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
5268
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
5269
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
5270
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
5271
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
5272
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
5273
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
5274
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
5275
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
5276
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
5277
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
5278
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
5279
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
5280
+ lastUpdateTimestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
5281
+ lastUpdateTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
5282
+ lastUpdateTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
5283
+ lastUpdateTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
5284
+ lastUpdateTimestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
5285
+ lastUpdateTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
5286
+ lastUpdateTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
5287
+ lastUpdateTimestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
5288
+ lastUpdateTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
5289
+ totalAccumulatedPower_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
5290
+ totalAccumulatedPower_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
5291
+ totalAccumulatedPower_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
5292
+ totalAccumulatedPower_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
5293
+ totalAccumulatedPower_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
5294
+ totalAccumulatedPower_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
5295
+ totalAccumulatedPower_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
5296
+ totalAccumulatedPower_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
5297
+ totalAccumulatedPower_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
5298
+ totalCurrentStaked_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
5299
+ totalCurrentStaked_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
5300
+ totalCurrentStaked_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
5301
+ totalCurrentStaked_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
5302
+ totalCurrentStaked_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
5303
+ totalCurrentStaked_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
5304
+ totalCurrentStaked_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
5305
+ totalCurrentStaked_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
5306
+ totalCurrentStaked_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
5307
+ }
5308
+ export interface NetworkStakingPowersConnection {
5309
+ __typename?: "NetworkStakingPowersConnection";
5310
+ edges: Array<NetworkStakingPowerEdge>;
5311
+ pageInfo: PageInfo;
5312
+ totalCount: Scalars["Int"]["output"];
5313
+ }
5314
+ export interface OnChainSetting {
5315
+ __typename?: "OnChainSetting";
5316
+ id: Scalars["String"]["output"];
5317
+ key: Scalars["String"]["output"];
5318
+ type: OnChainSettingType;
5319
+ value: Scalars["String"]["output"];
5320
+ }
5321
+ export interface OnChainSettingEdge {
5322
+ __typename?: "OnChainSettingEdge";
5323
+ cursor: Scalars["String"]["output"];
5324
+ node: OnChainSetting;
5325
+ }
5326
+ export declare enum OnChainSettingOrderByInput {
5327
+ id_ASC = "id_ASC",
5328
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
5329
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
5330
+ id_DESC = "id_DESC",
5331
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
5332
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
5333
+ key_ASC = "key_ASC",
5334
+ key_ASC_NULLS_FIRST = "key_ASC_NULLS_FIRST",
5335
+ key_ASC_NULLS_LAST = "key_ASC_NULLS_LAST",
5336
+ key_DESC = "key_DESC",
5337
+ key_DESC_NULLS_FIRST = "key_DESC_NULLS_FIRST",
5338
+ key_DESC_NULLS_LAST = "key_DESC_NULLS_LAST",
5339
+ type_ASC = "type_ASC",
5340
+ type_ASC_NULLS_FIRST = "type_ASC_NULLS_FIRST",
5341
+ type_ASC_NULLS_LAST = "type_ASC_NULLS_LAST",
5342
+ type_DESC = "type_DESC",
5343
+ type_DESC_NULLS_FIRST = "type_DESC_NULLS_FIRST",
5344
+ type_DESC_NULLS_LAST = "type_DESC_NULLS_LAST",
5345
+ value_ASC = "value_ASC",
5346
+ value_ASC_NULLS_FIRST = "value_ASC_NULLS_FIRST",
5347
+ value_ASC_NULLS_LAST = "value_ASC_NULLS_LAST",
5348
+ value_DESC = "value_DESC",
5349
+ value_DESC_NULLS_FIRST = "value_DESC_NULLS_FIRST",
5350
+ value_DESC_NULLS_LAST = "value_DESC_NULLS_LAST"
5351
+ }
5352
+ export declare enum OnChainSettingType {
5353
+ bool = "bool",
5354
+ bytes32 = "bytes32",
5355
+ string = "string",
5356
+ uint = "uint"
5357
+ }
5358
+ export interface OnChainSettingWhereInput {
5359
+ AND?: InputMaybe<Array<OnChainSettingWhereInput>>;
5360
+ OR?: InputMaybe<Array<OnChainSettingWhereInput>>;
5361
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
5362
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
5363
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
5364
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
5365
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
4872
5366
  id_gte?: InputMaybe<Scalars["String"]["input"]>;
4873
5367
  id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4874
5368
  id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
@@ -5800,6 +6294,7 @@ export interface Position {
5800
6294
  isSnapshot: Scalars["Boolean"]["output"];
5801
6295
  leverage: Scalars["BigInt"]["output"];
5802
6296
  market: Scalars["String"]["output"];
6297
+ maxCapital: Scalars["BigInt"]["output"];
5803
6298
  maxSize: Scalars["BigInt"]["output"];
5804
6299
  openedAt: Scalars["Int"]["output"];
5805
6300
  positionKey: Scalars["String"]["output"];
@@ -6929,6 +7424,12 @@ export interface PositionMarketVolumeInfo {
6929
7424
  volume: Scalars["BigInt"]["output"];
6930
7425
  }
6931
7426
  export declare enum PositionOrderByInput {
7427
+ accountStat_account_ASC = "accountStat_account_ASC",
7428
+ accountStat_account_ASC_NULLS_FIRST = "accountStat_account_ASC_NULLS_FIRST",
7429
+ accountStat_account_ASC_NULLS_LAST = "accountStat_account_ASC_NULLS_LAST",
7430
+ accountStat_account_DESC = "accountStat_account_DESC",
7431
+ accountStat_account_DESC_NULLS_FIRST = "accountStat_account_DESC_NULLS_FIRST",
7432
+ accountStat_account_DESC_NULLS_LAST = "accountStat_account_DESC_NULLS_LAST",
6932
7433
  accountStat_closedCount_ASC = "accountStat_closedCount_ASC",
6933
7434
  accountStat_closedCount_ASC_NULLS_FIRST = "accountStat_closedCount_ASC_NULLS_FIRST",
6934
7435
  accountStat_closedCount_ASC_NULLS_LAST = "accountStat_closedCount_ASC_NULLS_LAST",
@@ -6947,6 +7448,12 @@ export declare enum PositionOrderByInput {
6947
7448
  accountStat_cumsumSize_DESC = "accountStat_cumsumSize_DESC",
6948
7449
  accountStat_cumsumSize_DESC_NULLS_FIRST = "accountStat_cumsumSize_DESC_NULLS_FIRST",
6949
7450
  accountStat_cumsumSize_DESC_NULLS_LAST = "accountStat_cumsumSize_DESC_NULLS_LAST",
7451
+ accountStat_dayTimestamp_ASC = "accountStat_dayTimestamp_ASC",
7452
+ accountStat_dayTimestamp_ASC_NULLS_FIRST = "accountStat_dayTimestamp_ASC_NULLS_FIRST",
7453
+ accountStat_dayTimestamp_ASC_NULLS_LAST = "accountStat_dayTimestamp_ASC_NULLS_LAST",
7454
+ accountStat_dayTimestamp_DESC = "accountStat_dayTimestamp_DESC",
7455
+ accountStat_dayTimestamp_DESC_NULLS_FIRST = "accountStat_dayTimestamp_DESC_NULLS_FIRST",
7456
+ accountStat_dayTimestamp_DESC_NULLS_LAST = "accountStat_dayTimestamp_DESC_NULLS_LAST",
6950
7457
  accountStat_deposits_ASC = "accountStat_deposits_ASC",
6951
7458
  accountStat_deposits_ASC_NULLS_FIRST = "accountStat_deposits_ASC_NULLS_FIRST",
6952
7459
  accountStat_deposits_ASC_NULLS_LAST = "accountStat_deposits_ASC_NULLS_LAST",
@@ -6971,12 +7478,30 @@ export declare enum PositionOrderByInput {
6971
7478
  accountStat_maxCapital_DESC = "accountStat_maxCapital_DESC",
6972
7479
  accountStat_maxCapital_DESC_NULLS_FIRST = "accountStat_maxCapital_DESC_NULLS_FIRST",
6973
7480
  accountStat_maxCapital_DESC_NULLS_LAST = "accountStat_maxCapital_DESC_NULLS_LAST",
7481
+ accountStat_maxNetCapitalRunningDelta_ASC = "accountStat_maxNetCapitalRunningDelta_ASC",
7482
+ accountStat_maxNetCapitalRunningDelta_ASC_NULLS_FIRST = "accountStat_maxNetCapitalRunningDelta_ASC_NULLS_FIRST",
7483
+ accountStat_maxNetCapitalRunningDelta_ASC_NULLS_LAST = "accountStat_maxNetCapitalRunningDelta_ASC_NULLS_LAST",
7484
+ accountStat_maxNetCapitalRunningDelta_DESC = "accountStat_maxNetCapitalRunningDelta_DESC",
7485
+ accountStat_maxNetCapitalRunningDelta_DESC_NULLS_FIRST = "accountStat_maxNetCapitalRunningDelta_DESC_NULLS_FIRST",
7486
+ accountStat_maxNetCapitalRunningDelta_DESC_NULLS_LAST = "accountStat_maxNetCapitalRunningDelta_DESC_NULLS_LAST",
7487
+ accountStat_netCapitalDelta_ASC = "accountStat_netCapitalDelta_ASC",
7488
+ accountStat_netCapitalDelta_ASC_NULLS_FIRST = "accountStat_netCapitalDelta_ASC_NULLS_FIRST",
7489
+ accountStat_netCapitalDelta_ASC_NULLS_LAST = "accountStat_netCapitalDelta_ASC_NULLS_LAST",
7490
+ accountStat_netCapitalDelta_DESC = "accountStat_netCapitalDelta_DESC",
7491
+ accountStat_netCapitalDelta_DESC_NULLS_FIRST = "accountStat_netCapitalDelta_DESC_NULLS_FIRST",
7492
+ accountStat_netCapitalDelta_DESC_NULLS_LAST = "accountStat_netCapitalDelta_DESC_NULLS_LAST",
6974
7493
  accountStat_netCapital_ASC = "accountStat_netCapital_ASC",
6975
7494
  accountStat_netCapital_ASC_NULLS_FIRST = "accountStat_netCapital_ASC_NULLS_FIRST",
6976
7495
  accountStat_netCapital_ASC_NULLS_LAST = "accountStat_netCapital_ASC_NULLS_LAST",
6977
7496
  accountStat_netCapital_DESC = "accountStat_netCapital_DESC",
6978
7497
  accountStat_netCapital_DESC_NULLS_FIRST = "accountStat_netCapital_DESC_NULLS_FIRST",
6979
7498
  accountStat_netCapital_DESC_NULLS_LAST = "accountStat_netCapital_DESC_NULLS_LAST",
7499
+ accountStat_period_ASC = "accountStat_period_ASC",
7500
+ accountStat_period_ASC_NULLS_FIRST = "accountStat_period_ASC_NULLS_FIRST",
7501
+ accountStat_period_ASC_NULLS_LAST = "accountStat_period_ASC_NULLS_LAST",
7502
+ accountStat_period_DESC = "accountStat_period_DESC",
7503
+ accountStat_period_DESC_NULLS_FIRST = "accountStat_period_DESC_NULLS_FIRST",
7504
+ accountStat_period_DESC_NULLS_LAST = "accountStat_period_DESC_NULLS_LAST",
6980
7505
  accountStat_realizedFees_ASC = "accountStat_realizedFees_ASC",
6981
7506
  accountStat_realizedFees_ASC_NULLS_FIRST = "accountStat_realizedFees_ASC_NULLS_FIRST",
6982
7507
  accountStat_realizedFees_ASC_NULLS_LAST = "accountStat_realizedFees_ASC_NULLS_LAST",
@@ -7073,6 +7598,12 @@ export declare enum PositionOrderByInput {
7073
7598
  market_DESC = "market_DESC",
7074
7599
  market_DESC_NULLS_FIRST = "market_DESC_NULLS_FIRST",
7075
7600
  market_DESC_NULLS_LAST = "market_DESC_NULLS_LAST",
7601
+ maxCapital_ASC = "maxCapital_ASC",
7602
+ maxCapital_ASC_NULLS_FIRST = "maxCapital_ASC_NULLS_FIRST",
7603
+ maxCapital_ASC_NULLS_LAST = "maxCapital_ASC_NULLS_LAST",
7604
+ maxCapital_DESC = "maxCapital_DESC",
7605
+ maxCapital_DESC_NULLS_FIRST = "maxCapital_DESC_NULLS_FIRST",
7606
+ maxCapital_DESC_NULLS_LAST = "maxCapital_DESC_NULLS_LAST",
7076
7607
  maxSize_ASC = "maxSize_ASC",
7077
7608
  maxSize_ASC_NULLS_FIRST = "maxSize_ASC_NULLS_FIRST",
7078
7609
  maxSize_ASC_NULLS_LAST = "maxSize_ASC_NULLS_LAST",
@@ -7418,6 +7949,15 @@ export interface PositionWhereInput {
7418
7949
  market_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
7419
7950
  market_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
7420
7951
  market_startsWith?: InputMaybe<Scalars["String"]["input"]>;
7952
+ maxCapital_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
7953
+ maxCapital_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
7954
+ maxCapital_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
7955
+ maxCapital_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
7956
+ maxCapital_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
7957
+ maxCapital_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
7958
+ maxCapital_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
7959
+ maxCapital_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
7960
+ maxCapital_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
7421
7961
  maxSize_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
7422
7962
  maxSize_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
7423
7963
  maxSize_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -7809,6 +8349,13 @@ export interface Query {
7809
8349
  accountStatById?: Maybe<AccountStat>;
7810
8350
  accountStats: Array<AccountStat>;
7811
8351
  accountStatsConnection: AccountStatsConnection;
8352
+ affiliateReferralTradeStatsByHourById?: Maybe<AffiliateReferralTradeStatsByHour>;
8353
+ affiliateReferralTradeStatsByHours: Array<AffiliateReferralTradeStatsByHour>;
8354
+ affiliateReferralTradeStatsByHoursConnection: AffiliateReferralTradeStatsByHoursConnection;
8355
+ affiliateStats: AffiliateStatsResponse;
8356
+ affiliateTraderStatsByHourById?: Maybe<AffiliateTraderStatsByHour>;
8357
+ affiliateTraderStatsByHours: Array<AffiliateTraderStatsByHour>;
8358
+ affiliateTraderStatsByHoursConnection: AffiliateTraderStatsByHoursConnection;
7812
8359
  annualizedPerformance: Array<AnnualizedPerformanceObject>;
7813
8360
  aprSnapshotById?: Maybe<AprSnapshot>;
7814
8361
  aprSnapshots: Array<AprSnapshot>;
@@ -7873,6 +8420,9 @@ export interface Query {
7873
8420
  multichainSamechainFundingEventById?: Maybe<MultichainSamechainFundingEvent>;
7874
8421
  multichainSamechainFundingEvents: Array<MultichainSamechainFundingEvent>;
7875
8422
  multichainSamechainFundingEventsConnection: MultichainSamechainFundingEventsConnection;
8423
+ networkStakingPowerById?: Maybe<NetworkStakingPower>;
8424
+ networkStakingPowers: Array<NetworkStakingPower>;
8425
+ networkStakingPowersConnection: NetworkStakingPowersConnection;
7876
8426
  onChainSettingById?: Maybe<OnChainSetting>;
7877
8427
  onChainSettings: Array<OnChainSetting>;
7878
8428
  onChainSettingsConnection: OnChainSettingsConnection;
@@ -7911,7 +8461,13 @@ export interface Query {
7911
8461
  processorStatusById?: Maybe<ProcessorStatus>;
7912
8462
  processorStatuses: Array<ProcessorStatus>;
7913
8463
  processorStatusesConnection: ProcessorStatusesConnection;
8464
+ referralCodeOwnerById?: Maybe<ReferralCodeOwner>;
8465
+ referralCodeOwners: Array<ReferralCodeOwner>;
8466
+ referralCodeOwnersConnection: ReferralCodeOwnersConnection;
7914
8467
  squidStatus: SquidStatus;
8468
+ stakingPowerById?: Maybe<StakingPower>;
8469
+ stakingPowers: Array<StakingPower>;
8470
+ stakingPowersConnection: StakingPowersConnection;
7915
8471
  swapFeesInfoById?: Maybe<SwapFeesInfo>;
7916
8472
  swapFeesInfoWithPeriodById?: Maybe<SwapFeesInfoWithPeriod>;
7917
8473
  swapFeesInfoWithPeriods: Array<SwapFeesInfoWithPeriod>;
@@ -7928,6 +8484,13 @@ export interface Query {
7928
8484
  tradeActionById?: Maybe<TradeAction>;
7929
8485
  tradeActions: Array<TradeAction>;
7930
8486
  tradeActionsConnection: TradeActionsConnection;
8487
+ traderReferralById?: Maybe<TraderReferral>;
8488
+ traderReferralStats: TraderReferralStatsResponse;
8489
+ traderReferralTradeStatsByHourById?: Maybe<TraderReferralTradeStatsByHour>;
8490
+ traderReferralTradeStatsByHours: Array<TraderReferralTradeStatsByHour>;
8491
+ traderReferralTradeStatsByHoursConnection: TraderReferralTradeStatsByHoursConnection;
8492
+ traderReferrals: Array<TraderReferral>;
8493
+ traderReferralsConnection: TraderReferralsConnection;
7931
8494
  volumeInfoById?: Maybe<VolumeInfo>;
7932
8495
  volumeInfos: Array<VolumeInfo>;
7933
8496
  volumeInfosConnection: VolumeInfosConnection;
@@ -7954,6 +8517,39 @@ export interface QueryaccountStatsConnectionArgs {
7954
8517
  orderBy: Array<AccountStatOrderByInput>;
7955
8518
  where?: InputMaybe<AccountStatWhereInput>;
7956
8519
  }
8520
+ export interface QueryaffiliateReferralTradeStatsByHourByIdArgs {
8521
+ id: Scalars["String"]["input"];
8522
+ }
8523
+ export interface QueryaffiliateReferralTradeStatsByHoursArgs {
8524
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
8525
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
8526
+ orderBy?: InputMaybe<Array<AffiliateReferralTradeStatsByHourOrderByInput>>;
8527
+ where?: InputMaybe<AffiliateReferralTradeStatsByHourWhereInput>;
8528
+ }
8529
+ export interface QueryaffiliateReferralTradeStatsByHoursConnectionArgs {
8530
+ after?: InputMaybe<Scalars["String"]["input"]>;
8531
+ first?: InputMaybe<Scalars["Int"]["input"]>;
8532
+ orderBy: Array<AffiliateReferralTradeStatsByHourOrderByInput>;
8533
+ where?: InputMaybe<AffiliateReferralTradeStatsByHourWhereInput>;
8534
+ }
8535
+ export interface QueryaffiliateStatsArgs {
8536
+ where?: InputMaybe<AffiliateStatsWhereInput>;
8537
+ }
8538
+ export interface QueryaffiliateTraderStatsByHourByIdArgs {
8539
+ id: Scalars["String"]["input"];
8540
+ }
8541
+ export interface QueryaffiliateTraderStatsByHoursArgs {
8542
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
8543
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
8544
+ orderBy?: InputMaybe<Array<AffiliateTraderStatsByHourOrderByInput>>;
8545
+ where?: InputMaybe<AffiliateTraderStatsByHourWhereInput>;
8546
+ }
8547
+ export interface QueryaffiliateTraderStatsByHoursConnectionArgs {
8548
+ after?: InputMaybe<Scalars["String"]["input"]>;
8549
+ first?: InputMaybe<Scalars["Int"]["input"]>;
8550
+ orderBy: Array<AffiliateTraderStatsByHourOrderByInput>;
8551
+ where?: InputMaybe<AffiliateTraderStatsByHourWhereInput>;
8552
+ }
7957
8553
  export interface QueryannualizedPerformanceArgs {
7958
8554
  where?: InputMaybe<PerformanceWhereInput>;
7959
8555
  }
@@ -8260,6 +8856,21 @@ export interface QuerymultichainSamechainFundingEventsConnectionArgs {
8260
8856
  orderBy: Array<MultichainSamechainFundingEventOrderByInput>;
8261
8857
  where?: InputMaybe<MultichainSamechainFundingEventWhereInput>;
8262
8858
  }
8859
+ export interface QuerynetworkStakingPowerByIdArgs {
8860
+ id: Scalars["String"]["input"];
8861
+ }
8862
+ export interface QuerynetworkStakingPowersArgs {
8863
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
8864
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
8865
+ orderBy?: InputMaybe<Array<NetworkStakingPowerOrderByInput>>;
8866
+ where?: InputMaybe<NetworkStakingPowerWhereInput>;
8867
+ }
8868
+ export interface QuerynetworkStakingPowersConnectionArgs {
8869
+ after?: InputMaybe<Scalars["String"]["input"]>;
8870
+ first?: InputMaybe<Scalars["Int"]["input"]>;
8871
+ orderBy: Array<NetworkStakingPowerOrderByInput>;
8872
+ where?: InputMaybe<NetworkStakingPowerWhereInput>;
8873
+ }
8263
8874
  export interface QueryonChainSettingByIdArgs {
8264
8875
  id: Scalars["String"]["input"];
8265
8876
  }
@@ -8442,6 +9053,36 @@ export interface QueryprocessorStatusesConnectionArgs {
8442
9053
  orderBy: Array<ProcessorStatusOrderByInput>;
8443
9054
  where?: InputMaybe<ProcessorStatusWhereInput>;
8444
9055
  }
9056
+ export interface QueryreferralCodeOwnerByIdArgs {
9057
+ id: Scalars["String"]["input"];
9058
+ }
9059
+ export interface QueryreferralCodeOwnersArgs {
9060
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9061
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9062
+ orderBy?: InputMaybe<Array<ReferralCodeOwnerOrderByInput>>;
9063
+ where?: InputMaybe<ReferralCodeOwnerWhereInput>;
9064
+ }
9065
+ export interface QueryreferralCodeOwnersConnectionArgs {
9066
+ after?: InputMaybe<Scalars["String"]["input"]>;
9067
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9068
+ orderBy: Array<ReferralCodeOwnerOrderByInput>;
9069
+ where?: InputMaybe<ReferralCodeOwnerWhereInput>;
9070
+ }
9071
+ export interface QuerystakingPowerByIdArgs {
9072
+ id: Scalars["String"]["input"];
9073
+ }
9074
+ export interface QuerystakingPowersArgs {
9075
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9076
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9077
+ orderBy?: InputMaybe<Array<StakingPowerOrderByInput>>;
9078
+ where?: InputMaybe<StakingPowerWhereInput>;
9079
+ }
9080
+ export interface QuerystakingPowersConnectionArgs {
9081
+ after?: InputMaybe<Scalars["String"]["input"]>;
9082
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9083
+ orderBy: Array<StakingPowerOrderByInput>;
9084
+ where?: InputMaybe<StakingPowerWhereInput>;
9085
+ }
8445
9086
  export interface QueryswapFeesInfoByIdArgs {
8446
9087
  id: Scalars["String"]["input"];
8447
9088
  }
@@ -8517,6 +9158,39 @@ export interface QuerytradeActionsConnectionArgs {
8517
9158
  orderBy: Array<TradeActionOrderByInput>;
8518
9159
  where?: InputMaybe<TradeActionWhereInput>;
8519
9160
  }
9161
+ export interface QuerytraderReferralByIdArgs {
9162
+ id: Scalars["String"]["input"];
9163
+ }
9164
+ export interface QuerytraderReferralStatsArgs {
9165
+ where?: InputMaybe<TraderReferralStatsWhereInput>;
9166
+ }
9167
+ export interface QuerytraderReferralTradeStatsByHourByIdArgs {
9168
+ id: Scalars["String"]["input"];
9169
+ }
9170
+ export interface QuerytraderReferralTradeStatsByHoursArgs {
9171
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9172
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9173
+ orderBy?: InputMaybe<Array<TraderReferralTradeStatsByHourOrderByInput>>;
9174
+ where?: InputMaybe<TraderReferralTradeStatsByHourWhereInput>;
9175
+ }
9176
+ export interface QuerytraderReferralTradeStatsByHoursConnectionArgs {
9177
+ after?: InputMaybe<Scalars["String"]["input"]>;
9178
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9179
+ orderBy: Array<TraderReferralTradeStatsByHourOrderByInput>;
9180
+ where?: InputMaybe<TraderReferralTradeStatsByHourWhereInput>;
9181
+ }
9182
+ export interface QuerytraderReferralsArgs {
9183
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9184
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9185
+ orderBy?: InputMaybe<Array<TraderReferralOrderByInput>>;
9186
+ where?: InputMaybe<TraderReferralWhereInput>;
9187
+ }
9188
+ export interface QuerytraderReferralsConnectionArgs {
9189
+ after?: InputMaybe<Scalars["String"]["input"]>;
9190
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9191
+ orderBy: Array<TraderReferralOrderByInput>;
9192
+ where?: InputMaybe<TraderReferralWhereInput>;
9193
+ }
8520
9194
  export interface QueryvolumeInfoByIdArgs {
8521
9195
  id: Scalars["String"]["input"];
8522
9196
  }
@@ -8532,10 +9206,274 @@ export interface QueryvolumeInfosConnectionArgs {
8532
9206
  orderBy: Array<VolumeInfoOrderByInput>;
8533
9207
  where?: InputMaybe<VolumeInfoWhereInput>;
8534
9208
  }
9209
+ export interface ReferralCodeOwner {
9210
+ __typename?: "ReferralCodeOwner";
9211
+ id: Scalars["String"]["output"];
9212
+ owner: Scalars["String"]["output"];
9213
+ updatedAtBlock: Scalars["Int"]["output"];
9214
+ updatedAtTimestamp: Scalars["Int"]["output"];
9215
+ updatedTxnHash: Scalars["String"]["output"];
9216
+ }
9217
+ export interface ReferralCodeOwnerEdge {
9218
+ __typename?: "ReferralCodeOwnerEdge";
9219
+ cursor: Scalars["String"]["output"];
9220
+ node: ReferralCodeOwner;
9221
+ }
9222
+ export declare enum ReferralCodeOwnerOrderByInput {
9223
+ id_ASC = "id_ASC",
9224
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
9225
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
9226
+ id_DESC = "id_DESC",
9227
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
9228
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
9229
+ owner_ASC = "owner_ASC",
9230
+ owner_ASC_NULLS_FIRST = "owner_ASC_NULLS_FIRST",
9231
+ owner_ASC_NULLS_LAST = "owner_ASC_NULLS_LAST",
9232
+ owner_DESC = "owner_DESC",
9233
+ owner_DESC_NULLS_FIRST = "owner_DESC_NULLS_FIRST",
9234
+ owner_DESC_NULLS_LAST = "owner_DESC_NULLS_LAST",
9235
+ updatedAtBlock_ASC = "updatedAtBlock_ASC",
9236
+ updatedAtBlock_ASC_NULLS_FIRST = "updatedAtBlock_ASC_NULLS_FIRST",
9237
+ updatedAtBlock_ASC_NULLS_LAST = "updatedAtBlock_ASC_NULLS_LAST",
9238
+ updatedAtBlock_DESC = "updatedAtBlock_DESC",
9239
+ updatedAtBlock_DESC_NULLS_FIRST = "updatedAtBlock_DESC_NULLS_FIRST",
9240
+ updatedAtBlock_DESC_NULLS_LAST = "updatedAtBlock_DESC_NULLS_LAST",
9241
+ updatedAtTimestamp_ASC = "updatedAtTimestamp_ASC",
9242
+ updatedAtTimestamp_ASC_NULLS_FIRST = "updatedAtTimestamp_ASC_NULLS_FIRST",
9243
+ updatedAtTimestamp_ASC_NULLS_LAST = "updatedAtTimestamp_ASC_NULLS_LAST",
9244
+ updatedAtTimestamp_DESC = "updatedAtTimestamp_DESC",
9245
+ updatedAtTimestamp_DESC_NULLS_FIRST = "updatedAtTimestamp_DESC_NULLS_FIRST",
9246
+ updatedAtTimestamp_DESC_NULLS_LAST = "updatedAtTimestamp_DESC_NULLS_LAST",
9247
+ updatedTxnHash_ASC = "updatedTxnHash_ASC",
9248
+ updatedTxnHash_ASC_NULLS_FIRST = "updatedTxnHash_ASC_NULLS_FIRST",
9249
+ updatedTxnHash_ASC_NULLS_LAST = "updatedTxnHash_ASC_NULLS_LAST",
9250
+ updatedTxnHash_DESC = "updatedTxnHash_DESC",
9251
+ updatedTxnHash_DESC_NULLS_FIRST = "updatedTxnHash_DESC_NULLS_FIRST",
9252
+ updatedTxnHash_DESC_NULLS_LAST = "updatedTxnHash_DESC_NULLS_LAST"
9253
+ }
9254
+ export interface ReferralCodeOwnerWhereInput {
9255
+ AND?: InputMaybe<Array<ReferralCodeOwnerWhereInput>>;
9256
+ OR?: InputMaybe<Array<ReferralCodeOwnerWhereInput>>;
9257
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
9258
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9259
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9260
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
9261
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
9262
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
9263
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9264
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9265
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
9266
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
9267
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
9268
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9269
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9270
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
9271
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9272
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9273
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9274
+ owner_contains?: InputMaybe<Scalars["String"]["input"]>;
9275
+ owner_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9276
+ owner_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9277
+ owner_eq?: InputMaybe<Scalars["String"]["input"]>;
9278
+ owner_gt?: InputMaybe<Scalars["String"]["input"]>;
9279
+ owner_gte?: InputMaybe<Scalars["String"]["input"]>;
9280
+ owner_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9281
+ owner_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9282
+ owner_lt?: InputMaybe<Scalars["String"]["input"]>;
9283
+ owner_lte?: InputMaybe<Scalars["String"]["input"]>;
9284
+ owner_not_contains?: InputMaybe<Scalars["String"]["input"]>;
9285
+ owner_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9286
+ owner_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9287
+ owner_not_eq?: InputMaybe<Scalars["String"]["input"]>;
9288
+ owner_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9289
+ owner_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9290
+ owner_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9291
+ updatedAtBlock_eq?: InputMaybe<Scalars["Int"]["input"]>;
9292
+ updatedAtBlock_gt?: InputMaybe<Scalars["Int"]["input"]>;
9293
+ updatedAtBlock_gte?: InputMaybe<Scalars["Int"]["input"]>;
9294
+ updatedAtBlock_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9295
+ updatedAtBlock_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9296
+ updatedAtBlock_lt?: InputMaybe<Scalars["Int"]["input"]>;
9297
+ updatedAtBlock_lte?: InputMaybe<Scalars["Int"]["input"]>;
9298
+ updatedAtBlock_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
9299
+ updatedAtBlock_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9300
+ updatedAtTimestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
9301
+ updatedAtTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
9302
+ updatedAtTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
9303
+ updatedAtTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9304
+ updatedAtTimestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9305
+ updatedAtTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
9306
+ updatedAtTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
9307
+ updatedAtTimestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
9308
+ updatedAtTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9309
+ updatedTxnHash_contains?: InputMaybe<Scalars["String"]["input"]>;
9310
+ updatedTxnHash_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9311
+ updatedTxnHash_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9312
+ updatedTxnHash_eq?: InputMaybe<Scalars["String"]["input"]>;
9313
+ updatedTxnHash_gt?: InputMaybe<Scalars["String"]["input"]>;
9314
+ updatedTxnHash_gte?: InputMaybe<Scalars["String"]["input"]>;
9315
+ updatedTxnHash_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9316
+ updatedTxnHash_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9317
+ updatedTxnHash_lt?: InputMaybe<Scalars["String"]["input"]>;
9318
+ updatedTxnHash_lte?: InputMaybe<Scalars["String"]["input"]>;
9319
+ updatedTxnHash_not_contains?: InputMaybe<Scalars["String"]["input"]>;
9320
+ updatedTxnHash_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9321
+ updatedTxnHash_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9322
+ updatedTxnHash_not_eq?: InputMaybe<Scalars["String"]["input"]>;
9323
+ updatedTxnHash_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9324
+ updatedTxnHash_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9325
+ updatedTxnHash_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9326
+ }
9327
+ export interface ReferralCodeOwnersConnection {
9328
+ __typename?: "ReferralCodeOwnersConnection";
9329
+ edges: Array<ReferralCodeOwnerEdge>;
9330
+ pageInfo: PageInfo;
9331
+ totalCount: Scalars["Int"]["output"];
9332
+ }
8535
9333
  export interface SquidStatus {
8536
9334
  __typename?: "SquidStatus";
8537
- finalizedHeight: Scalars["Float"]["output"];
8538
- height: Scalars["Float"]["output"];
9335
+ finalizedHeight: Scalars["Int"]["output"];
9336
+ height: Scalars["Int"]["output"];
9337
+ }
9338
+ export interface StakingPower {
9339
+ __typename?: "StakingPower";
9340
+ accumulatedPower: Scalars["BigInt"]["output"];
9341
+ currentStakedBalance: Scalars["BigInt"]["output"];
9342
+ historicalMaxStaked?: Maybe<Scalars["BigInt"]["output"]>;
9343
+ id: Scalars["String"]["output"];
9344
+ lastPowerResetAt?: Maybe<Scalars["Int"]["output"]>;
9345
+ lastUpdateTimestamp: Scalars["Int"]["output"];
9346
+ powerResetCount: Scalars["Int"]["output"];
9347
+ }
9348
+ export interface StakingPowerEdge {
9349
+ __typename?: "StakingPowerEdge";
9350
+ cursor: Scalars["String"]["output"];
9351
+ node: StakingPower;
9352
+ }
9353
+ export declare enum StakingPowerOrderByInput {
9354
+ accumulatedPower_ASC = "accumulatedPower_ASC",
9355
+ accumulatedPower_ASC_NULLS_FIRST = "accumulatedPower_ASC_NULLS_FIRST",
9356
+ accumulatedPower_ASC_NULLS_LAST = "accumulatedPower_ASC_NULLS_LAST",
9357
+ accumulatedPower_DESC = "accumulatedPower_DESC",
9358
+ accumulatedPower_DESC_NULLS_FIRST = "accumulatedPower_DESC_NULLS_FIRST",
9359
+ accumulatedPower_DESC_NULLS_LAST = "accumulatedPower_DESC_NULLS_LAST",
9360
+ currentStakedBalance_ASC = "currentStakedBalance_ASC",
9361
+ currentStakedBalance_ASC_NULLS_FIRST = "currentStakedBalance_ASC_NULLS_FIRST",
9362
+ currentStakedBalance_ASC_NULLS_LAST = "currentStakedBalance_ASC_NULLS_LAST",
9363
+ currentStakedBalance_DESC = "currentStakedBalance_DESC",
9364
+ currentStakedBalance_DESC_NULLS_FIRST = "currentStakedBalance_DESC_NULLS_FIRST",
9365
+ currentStakedBalance_DESC_NULLS_LAST = "currentStakedBalance_DESC_NULLS_LAST",
9366
+ historicalMaxStaked_ASC = "historicalMaxStaked_ASC",
9367
+ historicalMaxStaked_ASC_NULLS_FIRST = "historicalMaxStaked_ASC_NULLS_FIRST",
9368
+ historicalMaxStaked_ASC_NULLS_LAST = "historicalMaxStaked_ASC_NULLS_LAST",
9369
+ historicalMaxStaked_DESC = "historicalMaxStaked_DESC",
9370
+ historicalMaxStaked_DESC_NULLS_FIRST = "historicalMaxStaked_DESC_NULLS_FIRST",
9371
+ historicalMaxStaked_DESC_NULLS_LAST = "historicalMaxStaked_DESC_NULLS_LAST",
9372
+ id_ASC = "id_ASC",
9373
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
9374
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
9375
+ id_DESC = "id_DESC",
9376
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
9377
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
9378
+ lastPowerResetAt_ASC = "lastPowerResetAt_ASC",
9379
+ lastPowerResetAt_ASC_NULLS_FIRST = "lastPowerResetAt_ASC_NULLS_FIRST",
9380
+ lastPowerResetAt_ASC_NULLS_LAST = "lastPowerResetAt_ASC_NULLS_LAST",
9381
+ lastPowerResetAt_DESC = "lastPowerResetAt_DESC",
9382
+ lastPowerResetAt_DESC_NULLS_FIRST = "lastPowerResetAt_DESC_NULLS_FIRST",
9383
+ lastPowerResetAt_DESC_NULLS_LAST = "lastPowerResetAt_DESC_NULLS_LAST",
9384
+ lastUpdateTimestamp_ASC = "lastUpdateTimestamp_ASC",
9385
+ lastUpdateTimestamp_ASC_NULLS_FIRST = "lastUpdateTimestamp_ASC_NULLS_FIRST",
9386
+ lastUpdateTimestamp_ASC_NULLS_LAST = "lastUpdateTimestamp_ASC_NULLS_LAST",
9387
+ lastUpdateTimestamp_DESC = "lastUpdateTimestamp_DESC",
9388
+ lastUpdateTimestamp_DESC_NULLS_FIRST = "lastUpdateTimestamp_DESC_NULLS_FIRST",
9389
+ lastUpdateTimestamp_DESC_NULLS_LAST = "lastUpdateTimestamp_DESC_NULLS_LAST",
9390
+ powerResetCount_ASC = "powerResetCount_ASC",
9391
+ powerResetCount_ASC_NULLS_FIRST = "powerResetCount_ASC_NULLS_FIRST",
9392
+ powerResetCount_ASC_NULLS_LAST = "powerResetCount_ASC_NULLS_LAST",
9393
+ powerResetCount_DESC = "powerResetCount_DESC",
9394
+ powerResetCount_DESC_NULLS_FIRST = "powerResetCount_DESC_NULLS_FIRST",
9395
+ powerResetCount_DESC_NULLS_LAST = "powerResetCount_DESC_NULLS_LAST"
9396
+ }
9397
+ export interface StakingPowerWhereInput {
9398
+ AND?: InputMaybe<Array<StakingPowerWhereInput>>;
9399
+ OR?: InputMaybe<Array<StakingPowerWhereInput>>;
9400
+ accumulatedPower_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
9401
+ accumulatedPower_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
9402
+ accumulatedPower_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
9403
+ accumulatedPower_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
9404
+ accumulatedPower_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9405
+ accumulatedPower_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
9406
+ accumulatedPower_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
9407
+ accumulatedPower_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
9408
+ accumulatedPower_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
9409
+ currentStakedBalance_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
9410
+ currentStakedBalance_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
9411
+ currentStakedBalance_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
9412
+ currentStakedBalance_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
9413
+ currentStakedBalance_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9414
+ currentStakedBalance_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
9415
+ currentStakedBalance_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
9416
+ currentStakedBalance_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
9417
+ currentStakedBalance_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
9418
+ historicalMaxStaked_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
9419
+ historicalMaxStaked_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
9420
+ historicalMaxStaked_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
9421
+ historicalMaxStaked_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
9422
+ historicalMaxStaked_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9423
+ historicalMaxStaked_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
9424
+ historicalMaxStaked_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
9425
+ historicalMaxStaked_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
9426
+ historicalMaxStaked_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
9427
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
9428
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9429
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9430
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
9431
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
9432
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
9433
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9434
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9435
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
9436
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
9437
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
9438
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
9439
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
9440
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
9441
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
9442
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9443
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
9444
+ lastPowerResetAt_eq?: InputMaybe<Scalars["Int"]["input"]>;
9445
+ lastPowerResetAt_gt?: InputMaybe<Scalars["Int"]["input"]>;
9446
+ lastPowerResetAt_gte?: InputMaybe<Scalars["Int"]["input"]>;
9447
+ lastPowerResetAt_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9448
+ lastPowerResetAt_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9449
+ lastPowerResetAt_lt?: InputMaybe<Scalars["Int"]["input"]>;
9450
+ lastPowerResetAt_lte?: InputMaybe<Scalars["Int"]["input"]>;
9451
+ lastPowerResetAt_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
9452
+ lastPowerResetAt_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9453
+ lastUpdateTimestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
9454
+ lastUpdateTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
9455
+ lastUpdateTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
9456
+ lastUpdateTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9457
+ lastUpdateTimestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9458
+ lastUpdateTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
9459
+ lastUpdateTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
9460
+ lastUpdateTimestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
9461
+ lastUpdateTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9462
+ powerResetCount_eq?: InputMaybe<Scalars["Int"]["input"]>;
9463
+ powerResetCount_gt?: InputMaybe<Scalars["Int"]["input"]>;
9464
+ powerResetCount_gte?: InputMaybe<Scalars["Int"]["input"]>;
9465
+ powerResetCount_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9466
+ powerResetCount_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
9467
+ powerResetCount_lt?: InputMaybe<Scalars["Int"]["input"]>;
9468
+ powerResetCount_lte?: InputMaybe<Scalars["Int"]["input"]>;
9469
+ powerResetCount_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
9470
+ powerResetCount_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
9471
+ }
9472
+ export interface StakingPowersConnection {
9473
+ __typename?: "StakingPowersConnection";
9474
+ edges: Array<StakingPowerEdge>;
9475
+ pageInfo: PageInfo;
9476
+ totalCount: Scalars["Int"]["output"];
8539
9477
  }
8540
9478
  export interface SwapFeesInfo {
8541
9479
  __typename?: "SwapFeesInfo";
@@ -10078,6 +11016,300 @@ export interface TradeActionsConnection {
10078
11016
  pageInfo: PageInfo;
10079
11017
  totalCount: Scalars["Int"]["output"];
10080
11018
  }
11019
+ export interface TraderReferral {
11020
+ __typename?: "TraderReferral";
11021
+ affiliate?: Maybe<Scalars["String"]["output"]>;
11022
+ id: Scalars["String"]["output"];
11023
+ referralCode?: Maybe<Scalars["String"]["output"]>;
11024
+ updatedAtBlock: Scalars["Int"]["output"];
11025
+ updatedAtTimestamp: Scalars["Int"]["output"];
11026
+ updatedTxnHash: Scalars["String"]["output"];
11027
+ }
11028
+ export interface TraderReferralEdge {
11029
+ __typename?: "TraderReferralEdge";
11030
+ cursor: Scalars["String"]["output"];
11031
+ node: TraderReferral;
11032
+ }
11033
+ export declare enum TraderReferralOrderByInput {
11034
+ affiliate_ASC = "affiliate_ASC",
11035
+ affiliate_ASC_NULLS_FIRST = "affiliate_ASC_NULLS_FIRST",
11036
+ affiliate_ASC_NULLS_LAST = "affiliate_ASC_NULLS_LAST",
11037
+ affiliate_DESC = "affiliate_DESC",
11038
+ affiliate_DESC_NULLS_FIRST = "affiliate_DESC_NULLS_FIRST",
11039
+ affiliate_DESC_NULLS_LAST = "affiliate_DESC_NULLS_LAST",
11040
+ id_ASC = "id_ASC",
11041
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
11042
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
11043
+ id_DESC = "id_DESC",
11044
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
11045
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
11046
+ referralCode_ASC = "referralCode_ASC",
11047
+ referralCode_ASC_NULLS_FIRST = "referralCode_ASC_NULLS_FIRST",
11048
+ referralCode_ASC_NULLS_LAST = "referralCode_ASC_NULLS_LAST",
11049
+ referralCode_DESC = "referralCode_DESC",
11050
+ referralCode_DESC_NULLS_FIRST = "referralCode_DESC_NULLS_FIRST",
11051
+ referralCode_DESC_NULLS_LAST = "referralCode_DESC_NULLS_LAST",
11052
+ updatedAtBlock_ASC = "updatedAtBlock_ASC",
11053
+ updatedAtBlock_ASC_NULLS_FIRST = "updatedAtBlock_ASC_NULLS_FIRST",
11054
+ updatedAtBlock_ASC_NULLS_LAST = "updatedAtBlock_ASC_NULLS_LAST",
11055
+ updatedAtBlock_DESC = "updatedAtBlock_DESC",
11056
+ updatedAtBlock_DESC_NULLS_FIRST = "updatedAtBlock_DESC_NULLS_FIRST",
11057
+ updatedAtBlock_DESC_NULLS_LAST = "updatedAtBlock_DESC_NULLS_LAST",
11058
+ updatedAtTimestamp_ASC = "updatedAtTimestamp_ASC",
11059
+ updatedAtTimestamp_ASC_NULLS_FIRST = "updatedAtTimestamp_ASC_NULLS_FIRST",
11060
+ updatedAtTimestamp_ASC_NULLS_LAST = "updatedAtTimestamp_ASC_NULLS_LAST",
11061
+ updatedAtTimestamp_DESC = "updatedAtTimestamp_DESC",
11062
+ updatedAtTimestamp_DESC_NULLS_FIRST = "updatedAtTimestamp_DESC_NULLS_FIRST",
11063
+ updatedAtTimestamp_DESC_NULLS_LAST = "updatedAtTimestamp_DESC_NULLS_LAST",
11064
+ updatedTxnHash_ASC = "updatedTxnHash_ASC",
11065
+ updatedTxnHash_ASC_NULLS_FIRST = "updatedTxnHash_ASC_NULLS_FIRST",
11066
+ updatedTxnHash_ASC_NULLS_LAST = "updatedTxnHash_ASC_NULLS_LAST",
11067
+ updatedTxnHash_DESC = "updatedTxnHash_DESC",
11068
+ updatedTxnHash_DESC_NULLS_FIRST = "updatedTxnHash_DESC_NULLS_FIRST",
11069
+ updatedTxnHash_DESC_NULLS_LAST = "updatedTxnHash_DESC_NULLS_LAST"
11070
+ }
11071
+ export interface TraderReferralStatsPoint {
11072
+ __typename?: "TraderReferralStatsPoint";
11073
+ discountsUsd: Scalars["BigInt"]["output"];
11074
+ timestamp: Scalars["Float"]["output"];
11075
+ volumeUsd: Scalars["BigInt"]["output"];
11076
+ }
11077
+ export interface TraderReferralStatsResponse {
11078
+ __typename?: "TraderReferralStatsResponse";
11079
+ bucketSizeSeconds: Scalars["Float"]["output"];
11080
+ compareFrom?: Maybe<Scalars["Float"]["output"]>;
11081
+ compareTo?: Maybe<Scalars["Float"]["output"]>;
11082
+ from: Scalars["Float"]["output"];
11083
+ hasComparison: Scalars["Boolean"]["output"];
11084
+ points: Array<TraderReferralStatsPoint>;
11085
+ summary: TraderReferralStatsSummary;
11086
+ to: Scalars["Float"]["output"];
11087
+ trader: Scalars["String"]["output"];
11088
+ }
11089
+ export interface TraderReferralStatsSummary {
11090
+ __typename?: "TraderReferralStatsSummary";
11091
+ discountsUsd: Scalars["BigInt"]["output"];
11092
+ discountsUsdDelta?: Maybe<Scalars["BigInt"]["output"]>;
11093
+ volumeUsd: Scalars["BigInt"]["output"];
11094
+ volumeUsdDelta?: Maybe<Scalars["BigInt"]["output"]>;
11095
+ }
11096
+ export interface TraderReferralStatsWhereInput {
11097
+ from?: InputMaybe<Scalars["Float"]["input"]>;
11098
+ to?: InputMaybe<Scalars["Float"]["input"]>;
11099
+ trader: Scalars["String"]["input"];
11100
+ }
11101
+ export interface TraderReferralTradeStatsByHour {
11102
+ __typename?: "TraderReferralTradeStatsByHour";
11103
+ discountsUsd: Scalars["BigInt"]["output"];
11104
+ id: Scalars["String"]["output"];
11105
+ timestamp: Scalars["Int"]["output"];
11106
+ trader: Scalars["String"]["output"];
11107
+ volumeUsd: Scalars["BigInt"]["output"];
11108
+ }
11109
+ export interface TraderReferralTradeStatsByHourEdge {
11110
+ __typename?: "TraderReferralTradeStatsByHourEdge";
11111
+ cursor: Scalars["String"]["output"];
11112
+ node: TraderReferralTradeStatsByHour;
11113
+ }
11114
+ export declare enum TraderReferralTradeStatsByHourOrderByInput {
11115
+ discountsUsd_ASC = "discountsUsd_ASC",
11116
+ discountsUsd_ASC_NULLS_FIRST = "discountsUsd_ASC_NULLS_FIRST",
11117
+ discountsUsd_ASC_NULLS_LAST = "discountsUsd_ASC_NULLS_LAST",
11118
+ discountsUsd_DESC = "discountsUsd_DESC",
11119
+ discountsUsd_DESC_NULLS_FIRST = "discountsUsd_DESC_NULLS_FIRST",
11120
+ discountsUsd_DESC_NULLS_LAST = "discountsUsd_DESC_NULLS_LAST",
11121
+ id_ASC = "id_ASC",
11122
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
11123
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
11124
+ id_DESC = "id_DESC",
11125
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
11126
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
11127
+ timestamp_ASC = "timestamp_ASC",
11128
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
11129
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
11130
+ timestamp_DESC = "timestamp_DESC",
11131
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
11132
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
11133
+ trader_ASC = "trader_ASC",
11134
+ trader_ASC_NULLS_FIRST = "trader_ASC_NULLS_FIRST",
11135
+ trader_ASC_NULLS_LAST = "trader_ASC_NULLS_LAST",
11136
+ trader_DESC = "trader_DESC",
11137
+ trader_DESC_NULLS_FIRST = "trader_DESC_NULLS_FIRST",
11138
+ trader_DESC_NULLS_LAST = "trader_DESC_NULLS_LAST",
11139
+ volumeUsd_ASC = "volumeUsd_ASC",
11140
+ volumeUsd_ASC_NULLS_FIRST = "volumeUsd_ASC_NULLS_FIRST",
11141
+ volumeUsd_ASC_NULLS_LAST = "volumeUsd_ASC_NULLS_LAST",
11142
+ volumeUsd_DESC = "volumeUsd_DESC",
11143
+ volumeUsd_DESC_NULLS_FIRST = "volumeUsd_DESC_NULLS_FIRST",
11144
+ volumeUsd_DESC_NULLS_LAST = "volumeUsd_DESC_NULLS_LAST"
11145
+ }
11146
+ export interface TraderReferralTradeStatsByHourWhereInput {
11147
+ AND?: InputMaybe<Array<TraderReferralTradeStatsByHourWhereInput>>;
11148
+ OR?: InputMaybe<Array<TraderReferralTradeStatsByHourWhereInput>>;
11149
+ discountsUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
11150
+ discountsUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
11151
+ discountsUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
11152
+ discountsUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11153
+ discountsUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11154
+ discountsUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
11155
+ discountsUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
11156
+ discountsUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
11157
+ discountsUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11158
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
11159
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11160
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11161
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
11162
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
11163
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
11164
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11165
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11166
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
11167
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
11168
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
11169
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11170
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11171
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
11172
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11173
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11174
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11175
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
11176
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
11177
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
11178
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
11179
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11180
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
11181
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
11182
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
11183
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
11184
+ trader_contains?: InputMaybe<Scalars["String"]["input"]>;
11185
+ trader_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11186
+ trader_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11187
+ trader_eq?: InputMaybe<Scalars["String"]["input"]>;
11188
+ trader_gt?: InputMaybe<Scalars["String"]["input"]>;
11189
+ trader_gte?: InputMaybe<Scalars["String"]["input"]>;
11190
+ trader_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11191
+ trader_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11192
+ trader_lt?: InputMaybe<Scalars["String"]["input"]>;
11193
+ trader_lte?: InputMaybe<Scalars["String"]["input"]>;
11194
+ trader_not_contains?: InputMaybe<Scalars["String"]["input"]>;
11195
+ trader_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11196
+ trader_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11197
+ trader_not_eq?: InputMaybe<Scalars["String"]["input"]>;
11198
+ trader_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11199
+ trader_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11200
+ trader_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11201
+ volumeUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
11202
+ volumeUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
11203
+ volumeUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
11204
+ volumeUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11205
+ volumeUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11206
+ volumeUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
11207
+ volumeUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
11208
+ volumeUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
11209
+ volumeUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11210
+ }
11211
+ export interface TraderReferralTradeStatsByHoursConnection {
11212
+ __typename?: "TraderReferralTradeStatsByHoursConnection";
11213
+ edges: Array<TraderReferralTradeStatsByHourEdge>;
11214
+ pageInfo: PageInfo;
11215
+ totalCount: Scalars["Int"]["output"];
11216
+ }
11217
+ export interface TraderReferralWhereInput {
11218
+ AND?: InputMaybe<Array<TraderReferralWhereInput>>;
11219
+ OR?: InputMaybe<Array<TraderReferralWhereInput>>;
11220
+ affiliate_contains?: InputMaybe<Scalars["String"]["input"]>;
11221
+ affiliate_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11222
+ affiliate_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11223
+ affiliate_eq?: InputMaybe<Scalars["String"]["input"]>;
11224
+ affiliate_gt?: InputMaybe<Scalars["String"]["input"]>;
11225
+ affiliate_gte?: InputMaybe<Scalars["String"]["input"]>;
11226
+ affiliate_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11227
+ affiliate_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11228
+ affiliate_lt?: InputMaybe<Scalars["String"]["input"]>;
11229
+ affiliate_lte?: InputMaybe<Scalars["String"]["input"]>;
11230
+ affiliate_not_contains?: InputMaybe<Scalars["String"]["input"]>;
11231
+ affiliate_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11232
+ affiliate_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11233
+ affiliate_not_eq?: InputMaybe<Scalars["String"]["input"]>;
11234
+ affiliate_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11235
+ affiliate_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11236
+ affiliate_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11237
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
11238
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11239
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11240
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
11241
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
11242
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
11243
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11244
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11245
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
11246
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
11247
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
11248
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11249
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11250
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
11251
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11252
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11253
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11254
+ referralCode_contains?: InputMaybe<Scalars["String"]["input"]>;
11255
+ referralCode_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11256
+ referralCode_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11257
+ referralCode_eq?: InputMaybe<Scalars["String"]["input"]>;
11258
+ referralCode_gt?: InputMaybe<Scalars["String"]["input"]>;
11259
+ referralCode_gte?: InputMaybe<Scalars["String"]["input"]>;
11260
+ referralCode_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11261
+ referralCode_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11262
+ referralCode_lt?: InputMaybe<Scalars["String"]["input"]>;
11263
+ referralCode_lte?: InputMaybe<Scalars["String"]["input"]>;
11264
+ referralCode_not_contains?: InputMaybe<Scalars["String"]["input"]>;
11265
+ referralCode_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11266
+ referralCode_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11267
+ referralCode_not_eq?: InputMaybe<Scalars["String"]["input"]>;
11268
+ referralCode_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11269
+ referralCode_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11270
+ referralCode_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11271
+ updatedAtBlock_eq?: InputMaybe<Scalars["Int"]["input"]>;
11272
+ updatedAtBlock_gt?: InputMaybe<Scalars["Int"]["input"]>;
11273
+ updatedAtBlock_gte?: InputMaybe<Scalars["Int"]["input"]>;
11274
+ updatedAtBlock_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
11275
+ updatedAtBlock_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11276
+ updatedAtBlock_lt?: InputMaybe<Scalars["Int"]["input"]>;
11277
+ updatedAtBlock_lte?: InputMaybe<Scalars["Int"]["input"]>;
11278
+ updatedAtBlock_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
11279
+ updatedAtBlock_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
11280
+ updatedAtTimestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
11281
+ updatedAtTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
11282
+ updatedAtTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
11283
+ updatedAtTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
11284
+ updatedAtTimestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11285
+ updatedAtTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
11286
+ updatedAtTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
11287
+ updatedAtTimestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
11288
+ updatedAtTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
11289
+ updatedTxnHash_contains?: InputMaybe<Scalars["String"]["input"]>;
11290
+ updatedTxnHash_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11291
+ updatedTxnHash_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11292
+ updatedTxnHash_eq?: InputMaybe<Scalars["String"]["input"]>;
11293
+ updatedTxnHash_gt?: InputMaybe<Scalars["String"]["input"]>;
11294
+ updatedTxnHash_gte?: InputMaybe<Scalars["String"]["input"]>;
11295
+ updatedTxnHash_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11296
+ updatedTxnHash_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
11297
+ updatedTxnHash_lt?: InputMaybe<Scalars["String"]["input"]>;
11298
+ updatedTxnHash_lte?: InputMaybe<Scalars["String"]["input"]>;
11299
+ updatedTxnHash_not_contains?: InputMaybe<Scalars["String"]["input"]>;
11300
+ updatedTxnHash_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11301
+ updatedTxnHash_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
11302
+ updatedTxnHash_not_eq?: InputMaybe<Scalars["String"]["input"]>;
11303
+ updatedTxnHash_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11304
+ updatedTxnHash_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11305
+ updatedTxnHash_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11306
+ }
11307
+ export interface TraderReferralsConnection {
11308
+ __typename?: "TraderReferralsConnection";
11309
+ edges: Array<TraderReferralEdge>;
11310
+ pageInfo: PageInfo;
11311
+ totalCount: Scalars["Int"]["output"];
11312
+ }
10081
11313
  export interface VolumeInfo {
10082
11314
  __typename?: "VolumeInfo";
10083
11315
  depositVolumeUsd: Scalars["BigInt"]["output"];