@gmx-io/sdk 1.4.2 → 1.5.0-alpha-2

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 (442) hide show
  1. package/build/cjs/scripts/generate-platform-tokens.js +200 -0
  2. package/build/cjs/scripts/prebuild/index.js +6 -1
  3. package/build/cjs/scripts/prebuild/prebuildKinkModelMarketRatesKeys.js +2 -28
  4. package/build/cjs/scripts/prebuild/prebuildMarketConfigKeys.js +2 -2
  5. package/build/cjs/scripts/prebuild/prebuildMarketValuesKeys.js +2 -2
  6. package/build/cjs/scripts/subsquid-codegen.js +26 -0
  7. package/build/cjs/src/{utils → clients/v1}/callContract.js +4 -6
  8. package/build/cjs/src/{index.js → clients/v1/index.js} +4 -4
  9. package/build/cjs/src/{modules → clients/v1/modules}/accounts/accounts.js +1 -1
  10. package/build/cjs/src/{modules → clients/v1/modules}/accounts/accounts.spec.js +1 -1
  11. package/build/cjs/src/clients/v1/modules/markets/index.js +227 -0
  12. package/build/cjs/src/{modules → clients/v1/modules}/markets/markets.spec.js +3 -3
  13. package/build/cjs/src/{modules → clients/v1/modules}/oracle.js +1 -1
  14. package/build/cjs/src/{modules → clients/v1/modules}/orders/helpers.js +9 -9
  15. package/build/cjs/src/{modules → clients/v1/modules}/orders/helpers.spec.js +5 -5
  16. package/build/cjs/src/{modules → clients/v1/modules}/orders/orders.js +14 -14
  17. package/build/cjs/src/{modules → clients/v1/modules}/orders/orders.spec.js +1 -1
  18. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.js +2 -2
  19. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.js +7 -7
  20. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.js +11 -11
  21. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.js +10 -10
  22. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.js +2 -2
  23. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.js +3 -3
  24. package/build/cjs/src/{modules → clients/v1/modules}/orders/utils.js +7 -7
  25. package/build/cjs/src/{modules → clients/v1/modules}/positions/positions.js +16 -158
  26. package/build/cjs/src/{modules → clients/v1/modules}/positions/positions.spec.js +1 -1
  27. package/build/cjs/src/{modules → clients/v1/modules}/tokens/tokens.js +3 -3
  28. package/build/cjs/src/{modules → clients/v1/modules}/tokens/tokens.spec.js +3 -3
  29. package/build/cjs/src/{modules → clients/v1/modules}/trades/trades.js +19 -19
  30. package/build/cjs/src/{modules → clients/v1/modules}/trades/trades.spec.js +1 -1
  31. package/build/cjs/src/{modules → clients/v1/modules}/utils/utils.js +8 -8
  32. package/build/cjs/src/{utils → clients/v1}/multicall.js +2 -2
  33. package/build/cjs/src/{utils → clients/v1}/simulateExecuteOrder.js +5 -5
  34. package/build/cjs/src/{utils → clients/v1}/testUtil.js +2 -2
  35. package/build/cjs/src/clients/v2/index.js +29 -0
  36. package/build/cjs/src/codegen/platformTokens.json +134 -0
  37. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedKinkModelMarketRatesKeys.json +24 -0
  38. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedMarketConfigKeys.json +171 -0
  39. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedMarketValuesKeys.json +45 -0
  40. package/build/cjs/src/codegen/prebuilt/index.js +16 -0
  41. package/build/cjs/src/{types → codegen}/subsquid.js +142 -22
  42. package/build/cjs/src/configs/api.js +15 -0
  43. package/build/cjs/src/configs/chains.js +29 -1
  44. package/build/cjs/src/configs/dataStore.js +6 -2
  45. package/build/cjs/src/configs/markets.js +21 -0
  46. package/build/cjs/src/configs/multichain.js +29 -19
  47. package/build/cjs/src/configs/tokens.js +36 -0
  48. package/build/cjs/src/test/mock.js +5 -122
  49. package/build/cjs/src/utils/24h/index.js +17 -0
  50. package/build/cjs/src/utils/LruCache/index.js +17 -0
  51. package/build/cjs/src/utils/__tests__/fees.spec.js +2 -2
  52. package/build/cjs/src/utils/__tests__/numbers.spec.js +1 -1
  53. package/build/cjs/src/utils/__tests__/orderTransactions/batchUtils.spec.js +3 -3
  54. package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +34 -34
  55. package/build/cjs/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +5 -5
  56. package/build/cjs/src/utils/__tests__/orderTransactions/externalCalls.spec.js +1 -1
  57. package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +29 -29
  58. package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +21 -21
  59. package/build/cjs/src/utils/__tests__/orderTransactions/updateOrder.spec.js +4 -4
  60. package/build/cjs/src/utils/__tests__/parseError.spec.js +40 -0
  61. package/build/cjs/src/utils/__tests__/positions.spec.js +1 -1
  62. package/build/cjs/src/utils/__tests__/prices.spec.js +18 -18
  63. package/build/cjs/src/utils/__tests__/tokens.spec.js +191 -4
  64. package/build/cjs/src/utils/abort/index.js +17 -0
  65. package/build/cjs/src/utils/bigmath/index.js +17 -0
  66. package/build/cjs/src/utils/buildUrl/index.js +17 -0
  67. package/build/cjs/src/utils/chains/index.js +17 -0
  68. package/build/cjs/src/utils/common/index.js +17 -0
  69. package/build/cjs/src/utils/{common.js → common/utils.js} +1 -2
  70. package/build/cjs/src/utils/errors/parseError.js +67 -25
  71. package/build/cjs/src/utils/fees/executionFee.js +2 -2
  72. package/build/cjs/src/utils/fees/index.js +9 -9
  73. package/build/cjs/src/utils/fees/priceImpact.js +6 -1
  74. package/build/cjs/src/utils/gelatoRelay/index.js +17 -0
  75. package/build/cjs/src/utils/graphqlFetcher/index.js +8 -0
  76. package/build/cjs/src/utils/hash/index.js +17 -0
  77. package/build/cjs/src/utils/{hash.js → hash/utils.js} +1 -1
  78. package/build/cjs/src/utils/http/http.js +33 -0
  79. package/build/cjs/src/utils/indexers/index.js +17 -0
  80. package/build/cjs/src/utils/{indexers.js → indexers/utils.js} +1 -1
  81. package/build/cjs/src/utils/markets/__tests__/mockMarkets.js +129 -0
  82. package/build/cjs/src/utils/markets/api.js +14 -0
  83. package/build/cjs/src/utils/{marketKeysAndConfigs.js → markets/hashKeys.js} +32 -3
  84. package/build/cjs/src/utils/markets/index.js +21 -0
  85. package/build/cjs/src/{modules/markets/query-builders.js → utils/markets/multicall.js} +149 -42
  86. package/build/cjs/src/utils/markets/utils.js +398 -0
  87. package/build/cjs/src/utils/numbers/index.js +17 -0
  88. package/build/cjs/src/utils/{numbers.js → numbers/utils.js} +12 -5
  89. package/build/cjs/src/utils/objects/index.js +17 -0
  90. package/build/cjs/src/utils/{objects.js → objects/utils.js} +9 -1
  91. package/build/cjs/src/utils/orderTransactions/index.js +17 -0
  92. package/build/cjs/src/utils/{orderTransactions.js → orderTransactions/utils.js} +22 -22
  93. package/build/cjs/src/utils/orders/api.js +13 -0
  94. package/build/cjs/src/utils/orders/index.js +19 -0
  95. package/build/cjs/src/utils/{orders.js → orders/utils.js} +22 -22
  96. package/build/cjs/src/utils/positions/api.js +14 -0
  97. package/build/cjs/src/utils/positions/index.js +19 -0
  98. package/build/cjs/src/utils/positions/utils.js +425 -0
  99. package/build/cjs/src/utils/prices/index.js +17 -0
  100. package/build/cjs/src/utils/{prices.js → prices/utils.js} +15 -15
  101. package/build/cjs/src/utils/referrals/index.js +18 -0
  102. package/build/cjs/src/utils/sidecarOrders/index.js +17 -0
  103. package/build/cjs/src/utils/swap/__tests__/mockRouting.spec.js +15 -15
  104. package/build/cjs/src/utils/swap/__tests__/swapRouting.spec.js +6 -6
  105. package/build/cjs/src/utils/swap/__tests__/swapStats.spec.js +10 -10
  106. package/build/cjs/src/utils/swap/botanixStaking.js +3 -3
  107. package/build/cjs/src/utils/swap/buildSwapStrategy.js +2 -2
  108. package/build/cjs/src/utils/swap/externalSwapPath.js +2 -2
  109. package/build/cjs/src/utils/swap/externalSwapQuoteByPath.js +2 -2
  110. package/build/cjs/src/utils/swap/index.js +12 -0
  111. package/build/cjs/src/utils/swap/swapPath.js +3 -3
  112. package/build/cjs/src/utils/swap/swapValues.js +4 -4
  113. package/build/cjs/src/utils/time/index.js +17 -0
  114. package/build/cjs/src/utils/tokens/index.js +18 -0
  115. package/build/cjs/src/utils/{tokens.js → tokens/utils.js} +27 -7
  116. package/build/cjs/src/utils/trade/decrease.js +8 -8
  117. package/build/cjs/src/utils/trade/increase.js +2 -2
  118. package/build/cjs/src/utils/trade/index.js +3 -0
  119. package/build/cjs/src/utils/trade/trade.js +10 -10
  120. package/build/cjs/src/utils/tradeHistory/index.js +18 -0
  121. package/build/cjs/src/utils/{tradeHistory.js → tradeHistory/utils.js} +4 -4
  122. package/build/cjs/src/utils/twap/index.js +15 -0
  123. package/build/cjs/src/utils/types/index.js +7 -0
  124. package/build/esm/scripts/generate-platform-tokens.js +195 -0
  125. package/build/esm/scripts/prebuild/index.js +3 -1
  126. package/build/esm/scripts/prebuild/prebuildKinkModelMarketRatesKeys.js +2 -28
  127. package/build/esm/scripts/prebuild/prebuildMarketConfigKeys.js +1 -1
  128. package/build/esm/scripts/prebuild/prebuildMarketValuesKeys.js +1 -1
  129. package/build/esm/scripts/subsquid-codegen.js +24 -0
  130. package/build/esm/src/{utils → clients/v1}/callContract.js +5 -5
  131. package/build/esm/src/{index.js → clients/v1/index.js} +4 -4
  132. package/build/esm/src/{modules → clients/v1/modules}/accounts/accounts.js +1 -1
  133. package/build/esm/src/{modules → clients/v1/modules}/accounts/accounts.spec.js +1 -1
  134. package/build/esm/src/clients/v1/modules/markets/index.js +220 -0
  135. package/build/esm/src/{modules → clients/v1/modules}/markets/markets.spec.js +2 -2
  136. package/build/esm/src/{modules → clients/v1/modules}/oracle.js +1 -1
  137. package/build/esm/src/{modules → clients/v1/modules}/orders/helpers.js +6 -6
  138. package/build/esm/src/{modules → clients/v1/modules}/orders/helpers.spec.js +5 -5
  139. package/build/esm/src/{modules → clients/v1/modules}/orders/orders.js +7 -7
  140. package/build/esm/src/{modules → clients/v1/modules}/orders/orders.spec.js +1 -1
  141. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.js +2 -2
  142. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.js +7 -7
  143. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.js +8 -8
  144. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.js +7 -7
  145. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.js +2 -2
  146. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.js +3 -3
  147. package/build/esm/src/{modules → clients/v1/modules}/orders/utils.js +7 -7
  148. package/build/esm/src/{modules → clients/v1/modules}/positions/positions.js +16 -158
  149. package/build/esm/src/{modules → clients/v1/modules}/positions/positions.spec.js +1 -1
  150. package/build/esm/src/{modules → clients/v1/modules}/tokens/tokens.js +3 -3
  151. package/build/esm/src/{modules → clients/v1/modules}/tokens/tokens.spec.js +1 -1
  152. package/build/esm/src/{modules → clients/v1/modules}/trades/trades.js +8 -8
  153. package/build/esm/src/{modules → clients/v1/modules}/trades/trades.spec.js +1 -1
  154. package/build/esm/src/{modules → clients/v1/modules}/utils/utils.js +8 -8
  155. package/build/esm/src/{utils → clients/v1}/multicall.js +2 -2
  156. package/build/esm/src/{utils → clients/v1}/simulateExecuteOrder.js +5 -5
  157. package/build/esm/src/{utils → clients/v1}/testUtil.js +2 -2
  158. package/build/esm/src/clients/v2/index.js +25 -0
  159. package/build/esm/src/codegen/platformTokens.json +134 -0
  160. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedKinkModelMarketRatesKeys.json +24 -0
  161. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedMarketConfigKeys.json +171 -0
  162. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedMarketValuesKeys.json +45 -0
  163. package/build/esm/src/codegen/prebuilt/index.js +10 -0
  164. package/build/esm/src/{types → codegen}/subsquid.js +141 -21
  165. package/build/esm/src/configs/api.js +11 -0
  166. package/build/esm/src/configs/chains.js +29 -1
  167. package/build/esm/src/configs/dataStore.js +3 -0
  168. package/build/esm/src/configs/markets.js +21 -0
  169. package/build/esm/src/configs/multichain.js +28 -19
  170. package/build/esm/src/configs/tokens.js +36 -0
  171. package/build/esm/src/test/mock.js +3 -120
  172. package/build/esm/src/utils/24h/index.js +1 -0
  173. package/build/esm/src/utils/LruCache/index.js +1 -0
  174. package/build/esm/src/utils/__tests__/fees.spec.js +2 -2
  175. package/build/esm/src/utils/__tests__/numbers.spec.js +1 -1
  176. package/build/esm/src/utils/__tests__/orderTransactions/batchUtils.spec.js +2 -2
  177. package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +2 -2
  178. package/build/esm/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +2 -2
  179. package/build/esm/src/utils/__tests__/orderTransactions/externalCalls.spec.js +1 -1
  180. package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +2 -2
  181. package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +2 -2
  182. package/build/esm/src/utils/__tests__/orderTransactions/updateOrder.spec.js +2 -2
  183. package/build/esm/src/utils/__tests__/parseError.spec.js +40 -0
  184. package/build/esm/src/utils/__tests__/positions.spec.js +1 -1
  185. package/build/esm/src/utils/__tests__/prices.spec.js +2 -2
  186. package/build/esm/src/utils/__tests__/tokens.spec.js +192 -5
  187. package/build/esm/src/utils/abort/index.js +1 -0
  188. package/build/esm/src/utils/bigmath/index.js +1 -0
  189. package/build/esm/src/utils/buildUrl/index.js +1 -0
  190. package/build/esm/src/utils/chains/index.js +1 -0
  191. package/build/esm/src/utils/common/index.js +1 -0
  192. package/build/esm/src/utils/{common.js → common/utils.js} +0 -1
  193. package/build/esm/src/utils/errors/parseError.js +64 -24
  194. package/build/esm/src/utils/fees/executionFee.js +1 -1
  195. package/build/esm/src/utils/fees/index.js +7 -7
  196. package/build/esm/src/utils/fees/priceImpact.js +5 -1
  197. package/build/esm/src/utils/gelatoRelay/index.js +1 -0
  198. package/build/esm/src/utils/graphqlFetcher/index.js +1 -0
  199. package/build/esm/src/utils/hash/index.js +1 -0
  200. package/build/esm/src/utils/{hash.js → hash/utils.js} +1 -1
  201. package/build/esm/src/utils/http/http.js +26 -0
  202. package/build/esm/src/utils/indexers/index.js +1 -0
  203. package/build/esm/src/utils/{indexers.js → indexers/utils.js} +1 -1
  204. package/build/esm/src/utils/markets/__tests__/mockMarkets.js +124 -0
  205. package/build/esm/src/utils/markets/api.js +9 -0
  206. package/build/esm/src/utils/{marketKeysAndConfigs.js → markets/hashKeys.js} +30 -2
  207. package/build/esm/src/utils/markets/index.js +5 -0
  208. package/build/esm/src/{modules/markets/query-builders.js → utils/markets/multicall.js} +146 -41
  209. package/build/esm/src/utils/markets/utils.js +364 -0
  210. package/build/esm/src/utils/numbers/index.js +1 -0
  211. package/build/esm/src/utils/{numbers.js → numbers/utils.js} +10 -3
  212. package/build/esm/src/utils/objects/index.js +1 -0
  213. package/build/esm/src/utils/{objects.js → objects/utils.js} +7 -0
  214. package/build/esm/src/utils/orderTransactions/index.js +1 -0
  215. package/build/esm/src/utils/{orderTransactions.js → orderTransactions/utils.js} +14 -14
  216. package/build/esm/src/utils/orders/api.js +9 -0
  217. package/build/esm/src/utils/orders/index.js +3 -0
  218. package/build/esm/src/utils/{orders.js → orders/utils.js} +8 -8
  219. package/build/esm/src/utils/positions/api.js +10 -0
  220. package/build/esm/src/utils/positions/index.js +3 -0
  221. package/build/esm/src/utils/positions/utils.js +407 -0
  222. package/build/esm/src/utils/prices/index.js +1 -0
  223. package/build/esm/src/utils/{prices.js → prices/utils.js} +7 -7
  224. package/build/esm/src/utils/referrals/index.js +2 -0
  225. package/build/esm/src/utils/sidecarOrders/index.js +1 -0
  226. package/build/esm/src/utils/swap/__tests__/mockRouting.spec.js +2 -2
  227. package/build/esm/src/utils/swap/__tests__/swapRouting.spec.js +2 -2
  228. package/build/esm/src/utils/swap/__tests__/swapStats.spec.js +1 -1
  229. package/build/esm/src/utils/swap/botanixStaking.js +1 -1
  230. package/build/esm/src/utils/swap/buildSwapStrategy.js +1 -1
  231. package/build/esm/src/utils/swap/externalSwapPath.js +1 -1
  232. package/build/esm/src/utils/swap/externalSwapQuoteByPath.js +1 -1
  233. package/build/esm/src/utils/swap/index.js +12 -0
  234. package/build/esm/src/utils/swap/swapPath.js +1 -1
  235. package/build/esm/src/utils/swap/swapValues.js +1 -1
  236. package/build/esm/src/utils/time/index.js +1 -0
  237. package/build/esm/src/utils/tokens/index.js +2 -0
  238. package/build/esm/src/utils/{tokens.js → tokens/utils.js} +27 -7
  239. package/build/esm/src/utils/trade/decrease.js +1 -1
  240. package/build/esm/src/utils/trade/increase.js +1 -1
  241. package/build/esm/src/utils/trade/index.js +3 -0
  242. package/build/esm/src/utils/trade/trade.js +2 -2
  243. package/build/esm/src/utils/tradeHistory/index.js +2 -0
  244. package/build/esm/src/utils/{tradeHistory.js → tradeHistory/utils.js} +4 -4
  245. package/build/esm/src/utils/twap/index.js +1 -0
  246. package/build/esm/src/utils/types/index.js +3 -0
  247. package/build/types/scripts/generate-platform-tokens.d.ts +27 -0
  248. package/build/types/scripts/subsquid-codegen.d.ts +3 -0
  249. package/build/types/src/clients/v1/callContract.d.ts +7 -0
  250. package/build/types/src/{index.d.ts → clients/v1/index.d.ts} +3 -3
  251. package/build/types/src/{modules → clients/v1/modules}/markets/index.d.ts +12 -1
  252. package/build/types/src/{modules → clients/v1/modules}/oracle.d.ts +2 -2
  253. package/build/types/src/{modules → clients/v1/modules}/orders/helpers.d.ts +3 -3
  254. package/build/types/src/{modules → clients/v1/modules}/orders/orders.d.ts +6 -6
  255. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.d.ts +1 -1
  256. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.d.ts +3 -3
  257. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.d.ts +4 -4
  258. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.d.ts +2 -2
  259. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.d.ts +1 -1
  260. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.d.ts +2 -2
  261. package/build/types/src/{modules → clients/v1/modules}/orders/utils.d.ts +9 -9
  262. package/build/types/src/{modules → clients/v1/modules}/positions/positions.d.ts +4 -4
  263. package/build/types/src/{modules → clients/v1/modules}/tokens/tokens.d.ts +1 -1
  264. package/build/types/src/{modules → clients/v1/modules}/trades/trades.d.ts +4 -4
  265. package/build/types/src/{modules → clients/v1/modules}/utils/utils.d.ts +4 -4
  266. package/build/types/src/{utils → clients/v1}/multicall.d.ts +2 -2
  267. package/build/types/src/{utils → clients/v1}/simulateExecuteOrder.d.ts +3 -3
  268. package/build/types/src/{utils → clients/v1}/testUtil.d.ts +2 -2
  269. package/build/types/src/{types/sdk.d.ts → clients/v1/types.d.ts} +3 -3
  270. package/build/types/src/clients/v2/index.d.ts +20 -0
  271. package/build/types/src/codegen/prebuilt/index.d.ts +13876 -0
  272. package/build/types/src/{types → codegen}/subsquid.d.ts +505 -60
  273. package/build/types/src/configs/api.d.ts +1 -0
  274. package/build/types/src/configs/chains.d.ts +26 -2
  275. package/build/types/src/configs/dataStore.d.ts +1 -0
  276. package/build/types/src/configs/express.d.ts +1 -1
  277. package/build/types/src/configs/gasLimits.d.ts +1 -1
  278. package/build/types/src/configs/markets.d.ts +1 -1
  279. package/build/types/src/configs/multichain.d.ts +6 -3
  280. package/build/types/src/configs/tokens.d.ts +1 -1
  281. package/build/types/src/test/mock.d.ts +3 -7
  282. package/build/types/src/utils/24h/index.d.ts +1 -0
  283. package/build/types/src/utils/24h/types.d.ts +7 -0
  284. package/build/types/src/utils/LruCache/index.d.ts +1 -0
  285. package/build/types/src/utils/abort/index.d.ts +1 -0
  286. package/build/types/src/utils/bigmath/index.d.ts +1 -0
  287. package/build/types/src/utils/buildUrl/index.d.ts +1 -0
  288. package/build/types/src/utils/chains/index.d.ts +1 -0
  289. package/build/types/src/utils/common/index.d.ts +1 -0
  290. package/build/types/src/utils/{common.d.ts → common/utils.d.ts} +0 -1
  291. package/build/types/src/utils/errors/parseError.d.ts +13 -1
  292. package/build/types/src/utils/fees/executionFee.d.ts +3 -3
  293. package/build/types/src/utils/fees/getNaiveEstimatedGasBySwapCount.d.ts +1 -1
  294. package/build/types/src/utils/fees/index.d.ts +10 -13
  295. package/build/types/src/utils/fees/priceImpact.d.ts +4 -3
  296. package/build/types/src/{types/fees.d.ts → utils/fees/types.d.ts} +2 -2
  297. package/build/types/src/utils/gelatoRelay/index.d.ts +1 -0
  298. package/build/types/src/utils/graphqlFetcher/index.d.ts +1 -0
  299. package/build/types/src/utils/hash/index.d.ts +1 -0
  300. package/build/types/src/utils/http/http.d.ts +9 -0
  301. package/build/types/src/utils/http/types.d.ts +7 -0
  302. package/build/types/src/utils/indexers/index.d.ts +1 -0
  303. package/build/types/src/utils/markets/__tests__/mockMarkets.d.ts +9 -0
  304. package/build/types/src/utils/markets/api.d.ts +9 -0
  305. package/build/types/src/utils/markets/hashKeys.d.ts +23 -0
  306. package/build/types/src/utils/markets/index.d.ts +5 -0
  307. package/build/types/src/utils/markets/multicall.d.ts +25 -0
  308. package/build/types/src/{types/markets.d.ts → utils/markets/types.d.ts} +64 -1
  309. package/build/types/src/utils/markets/utils.d.ts +122 -0
  310. package/build/types/src/utils/numbers/index.d.ts +1 -0
  311. package/build/types/src/utils/{numbers.d.ts → numbers/utils.d.ts} +5 -1
  312. package/build/types/src/utils/objects/index.d.ts +1 -0
  313. package/build/types/src/utils/{objects.d.ts → objects/utils.d.ts} +1 -0
  314. package/build/types/src/utils/orderTransactions/index.d.ts +1 -0
  315. package/build/types/src/utils/{orderTransactions.d.ts → orderTransactions/utils.d.ts} +6 -6
  316. package/build/types/src/utils/orders/api.d.ts +7 -0
  317. package/build/types/src/utils/orders/index.d.ts +3 -0
  318. package/build/types/src/{types/orders.d.ts → utils/orders/types.d.ts} +30 -3
  319. package/build/types/src/utils/{orders.d.ts → orders/utils.d.ts} +3 -3
  320. package/build/types/src/utils/positions/api.d.ts +8 -0
  321. package/build/types/src/utils/positions/index.d.ts +3 -0
  322. package/build/types/src/{types/positions.d.ts → utils/positions/types.d.ts} +7 -18
  323. package/build/types/src/utils/{positions.d.ts → positions/utils.d.ts} +45 -4
  324. package/build/types/src/utils/prices/index.d.ts +1 -0
  325. package/build/types/src/utils/{prices.d.ts → prices/utils.d.ts} +4 -4
  326. package/build/types/src/utils/referrals/index.d.ts +2 -0
  327. package/build/types/src/utils/sidecarOrders/index.d.ts +1 -0
  328. package/build/types/src/{types/sidecarOrders.d.ts → utils/sidecarOrders/types.d.ts} +2 -2
  329. package/build/types/src/utils/swap/botanixStaking.d.ts +2 -2
  330. package/build/types/src/utils/swap/buildSwapStrategy.d.ts +5 -5
  331. package/build/types/src/utils/swap/externalSwapPath.d.ts +1 -1
  332. package/build/types/src/utils/swap/externalSwapQuoteByPath.d.ts +1 -1
  333. package/build/types/src/utils/swap/findSwapPathsBetweenTokens.d.ts +1 -1
  334. package/build/types/src/utils/swap/index.d.ts +12 -0
  335. package/build/types/src/utils/swap/preparedSwapData.d.ts +1 -1
  336. package/build/types/src/utils/swap/swapPath.d.ts +6 -6
  337. package/build/types/src/utils/swap/swapRouting.d.ts +5 -5
  338. package/build/types/src/utils/swap/swapStats.d.ts +3 -3
  339. package/build/types/src/utils/swap/swapValues.d.ts +4 -4
  340. package/build/types/src/{types/swapStrategy.d.ts → utils/swap/types.d.ts} +1 -1
  341. package/build/types/src/utils/time/index.d.ts +1 -0
  342. package/build/types/src/utils/tokens/index.d.ts +2 -0
  343. package/build/types/src/{types/tokens.d.ts → utils/tokens/types.d.ts} +1 -1
  344. package/build/types/src/utils/{tokens.d.ts → tokens/utils.d.ts} +2 -2
  345. package/build/types/src/utils/trade/decrease.d.ts +5 -5
  346. package/build/types/src/utils/trade/increase.d.ts +5 -5
  347. package/build/types/src/utils/trade/index.d.ts +3 -0
  348. package/build/types/src/utils/trade/trade.d.ts +1 -1
  349. package/build/types/src/{types/trade.d.ts → utils/trade/types.d.ts} +4 -4
  350. package/build/types/src/utils/tradeHistory/index.d.ts +2 -0
  351. package/build/types/src/{types/tradeHistory.d.ts → utils/tradeHistory/types.d.ts} +5 -5
  352. package/build/types/src/utils/{tradeHistory.d.ts → tradeHistory/utils.d.ts} +4 -4
  353. package/build/types/src/utils/twap/index.d.ts +3 -2
  354. package/build/types/src/utils/{types.d.ts → types/index.d.ts} +0 -1
  355. package/package.json +280 -31
  356. package/build/cjs/src/modules/markets/index.js +0 -366
  357. package/build/cjs/src/prebuilt/index.js +0 -15
  358. package/build/cjs/src/utils/markets.js +0 -195
  359. package/build/cjs/src/utils/positions.js +0 -213
  360. package/build/cjs/src/utils/types.js +0 -13
  361. package/build/esm/src/modules/markets/index.js +0 -359
  362. package/build/esm/src/prebuilt/index.js +0 -7
  363. package/build/esm/src/utils/markets.js +0 -171
  364. package/build/esm/src/utils/positions.js +0 -197
  365. package/build/esm/src/utils/types.js +0 -8
  366. package/build/types/src/modules/markets/query-builders.d.ts +0 -42
  367. package/build/types/src/modules/markets/types.d.ts +0 -51
  368. package/build/types/src/prebuilt/index.d.ts +0 -24
  369. package/build/types/src/types/common.d.ts +0 -1
  370. package/build/types/src/utils/callContract.d.ts +0 -17
  371. package/build/types/src/utils/marketKeysAndConfigs.d.ts +0 -73
  372. package/build/types/src/utils/markets.d.ts +0 -58
  373. /package/build/cjs/src/{modules → clients/v1/modules}/base.js +0 -0
  374. /package/build/cjs/src/{modules/markets → clients/v1}/types.js +0 -0
  375. /package/build/cjs/src/{types/chains.js → utils/24h/types.js} +0 -0
  376. /package/build/cjs/src/utils/{LruCache.js → LruCache/utils.js} +0 -0
  377. /package/build/cjs/src/utils/{abort.js → abort/utils.js} +0 -0
  378. /package/build/cjs/src/utils/{bigmath.js → bigmath/utils.js} +0 -0
  379. /package/build/cjs/src/utils/{buildUrl.js → buildUrl/utils.js} +0 -0
  380. /package/build/cjs/src/{types/common.js → utils/chains/types.js} +0 -0
  381. /package/build/cjs/src/{types/fees.js → utils/fees/types.js} +0 -0
  382. /package/build/cjs/src/utils/{gelatoRelay.js → gelatoRelay/utils.js} +0 -0
  383. /package/build/cjs/src/utils/{graphqlFetcher.js → graphqlFetcher/utils.js} +0 -0
  384. /package/build/cjs/src/{types/markets.js → utils/http/types.js} +0 -0
  385. /package/build/cjs/src/{types/positions.js → utils/markets/types.js} +0 -0
  386. /package/build/cjs/src/{types/orders.js → utils/orders/types.js} +0 -0
  387. /package/build/cjs/src/{types/sdk.js → utils/positions/types.js} +0 -0
  388. /package/build/cjs/src/{types/referrals.js → utils/referrals/types.js} +0 -0
  389. /package/build/cjs/src/utils/{referrals.js → referrals/utils.js} +0 -0
  390. /package/build/cjs/src/{types/sidecarOrders.js → utils/sidecarOrders/types.js} +0 -0
  391. /package/build/cjs/src/{types/swapStrategy.js → utils/swap/types.js} +0 -0
  392. /package/build/cjs/src/utils/{time.js → time/utils.js} +0 -0
  393. /package/build/cjs/src/{types/tokens.js → utils/tokens/types.js} +0 -0
  394. /package/build/cjs/src/{types/trade.js → utils/trade/types.js} +0 -0
  395. /package/build/cjs/src/{types/tradeHistory.js → utils/tradeHistory/types.js} +0 -0
  396. /package/build/cjs/src/{types/twap.js → utils/twap/types.js} +0 -0
  397. /package/build/esm/src/{modules → clients/v1/modules}/base.js +0 -0
  398. /package/build/esm/src/{modules/markets → clients/v1}/types.js +0 -0
  399. /package/build/esm/src/{types/chains.js → utils/24h/types.js} +0 -0
  400. /package/build/esm/src/utils/{LruCache.js → LruCache/utils.js} +0 -0
  401. /package/build/esm/src/utils/{abort.js → abort/utils.js} +0 -0
  402. /package/build/esm/src/utils/{bigmath.js → bigmath/utils.js} +0 -0
  403. /package/build/esm/src/utils/{buildUrl.js → buildUrl/utils.js} +0 -0
  404. /package/build/esm/src/{types/common.js → utils/chains/types.js} +0 -0
  405. /package/build/esm/src/{types/fees.js → utils/fees/types.js} +0 -0
  406. /package/build/esm/src/utils/{gelatoRelay.js → gelatoRelay/utils.js} +0 -0
  407. /package/build/esm/src/utils/{graphqlFetcher.js → graphqlFetcher/utils.js} +0 -0
  408. /package/build/esm/src/{types/markets.js → utils/http/types.js} +0 -0
  409. /package/build/esm/src/{types/positions.js → utils/markets/types.js} +0 -0
  410. /package/build/esm/src/{types/orders.js → utils/orders/types.js} +0 -0
  411. /package/build/esm/src/{types/sdk.js → utils/positions/types.js} +0 -0
  412. /package/build/esm/src/{types/referrals.js → utils/referrals/types.js} +0 -0
  413. /package/build/esm/src/utils/{referrals.js → referrals/utils.js} +0 -0
  414. /package/build/esm/src/{types/sidecarOrders.js → utils/sidecarOrders/types.js} +0 -0
  415. /package/build/esm/src/{types/swapStrategy.js → utils/swap/types.js} +0 -0
  416. /package/build/esm/src/utils/{time.js → time/utils.js} +0 -0
  417. /package/build/esm/src/{types/tokens.js → utils/tokens/types.js} +0 -0
  418. /package/build/esm/src/{types/trade.js → utils/trade/types.js} +0 -0
  419. /package/build/esm/src/{types/tradeHistory.js → utils/tradeHistory/types.js} +0 -0
  420. /package/build/esm/src/{types/twap.js → utils/twap/types.js} +0 -0
  421. /package/build/types/src/{modules → clients/v1/modules}/accounts/accounts.d.ts +0 -0
  422. /package/build/types/src/{modules → clients/v1/modules}/accounts/accounts.spec.d.ts +0 -0
  423. /package/build/types/src/{modules → clients/v1/modules}/base.d.ts +0 -0
  424. /package/build/types/src/{modules → clients/v1/modules}/markets/markets.spec.d.ts +0 -0
  425. /package/build/types/src/{modules → clients/v1/modules}/orders/helpers.spec.d.ts +0 -0
  426. /package/build/types/src/{modules → clients/v1/modules}/orders/orders.spec.d.ts +0 -0
  427. /package/build/types/src/{modules → clients/v1/modules}/positions/positions.spec.d.ts +0 -0
  428. /package/build/types/src/{modules → clients/v1/modules}/tokens/tokens.spec.d.ts +0 -0
  429. /package/build/types/src/{modules → clients/v1/modules}/trades/trades.spec.d.ts +0 -0
  430. /package/build/types/src/utils/{LruCache.d.ts → LruCache/utils.d.ts} +0 -0
  431. /package/build/types/src/utils/{abort.d.ts → abort/utils.d.ts} +0 -0
  432. /package/build/types/src/utils/{bigmath.d.ts → bigmath/utils.d.ts} +0 -0
  433. /package/build/types/src/utils/{buildUrl.d.ts → buildUrl/utils.d.ts} +0 -0
  434. /package/build/types/src/{types/chains.d.ts → utils/chains/types.d.ts} +0 -0
  435. /package/build/types/src/utils/{gelatoRelay.d.ts → gelatoRelay/utils.d.ts} +0 -0
  436. /package/build/types/src/utils/{graphqlFetcher.d.ts → graphqlFetcher/utils.d.ts} +0 -0
  437. /package/build/types/src/utils/{hash.d.ts → hash/utils.d.ts} +0 -0
  438. /package/build/types/src/utils/{indexers.d.ts → indexers/utils.d.ts} +0 -0
  439. /package/build/types/src/{types/referrals.d.ts → utils/referrals/types.d.ts} +0 -0
  440. /package/build/types/src/utils/{referrals.d.ts → referrals/utils.d.ts} +0 -0
  441. /package/build/types/src/utils/{time.d.ts → time/utils.d.ts} +0 -0
  442. /package/build/types/src/{types/twap.d.ts → utils/twap/types.d.ts} +0 -0
@@ -386,6 +386,15 @@ export interface AccountStatsConnection {
386
386
  pageInfo: PageInfo;
387
387
  totalCount: Scalars["Int"]["output"];
388
388
  }
389
+ export interface AccountVolumeStatObject {
390
+ __typename?: "AccountVolumeStatObject";
391
+ last7DaysVolume: Scalars["BigInt"]["output"];
392
+ last14DaysVolume: Scalars["BigInt"]["output"];
393
+ maxDailyVolume: Scalars["BigInt"]["output"];
394
+ }
395
+ export interface AccountVolumeWhereInput {
396
+ account: Scalars["String"]["input"];
397
+ }
389
398
  export interface AnnualizedPerformanceObject {
390
399
  __typename?: "AnnualizedPerformanceObject";
391
400
  address: Scalars["String"]["output"];
@@ -4536,46 +4545,94 @@ export interface MultichainFundingWhereInput {
4536
4545
  id?: InputMaybe<Scalars["String"]["input"]>;
4537
4546
  sourceChainId?: InputMaybe<Scalars["Float"]["input"]>;
4538
4547
  }
4539
- export interface MultichainMetadata {
4540
- __typename?: "MultichainMetadata";
4548
+ export interface MultichainSamechainFundingEvent {
4549
+ __typename?: "MultichainSamechainFundingEvent";
4550
+ account: Scalars["String"]["output"];
4551
+ amount: Scalars["BigInt"]["output"];
4541
4552
  id: Scalars["String"]["output"];
4542
- lastBlockNumber: Scalars["Int"]["output"];
4543
- lastBlockTimestamp: Scalars["Int"]["output"];
4544
- }
4545
- export interface MultichainMetadataConnection {
4546
- __typename?: "MultichainMetadataConnection";
4547
- edges: Array<MultichainMetadataEdge>;
4548
- pageInfo: PageInfo;
4549
- totalCount: Scalars["Int"]["output"];
4553
+ operation: MultichainFundingOperation;
4554
+ timestamp: Scalars["Int"]["output"];
4555
+ token: Scalars["String"]["output"];
4556
+ txHash: Scalars["String"]["output"];
4550
4557
  }
4551
- export interface MultichainMetadataEdge {
4552
- __typename?: "MultichainMetadataEdge";
4558
+ export interface MultichainSamechainFundingEventEdge {
4559
+ __typename?: "MultichainSamechainFundingEventEdge";
4553
4560
  cursor: Scalars["String"]["output"];
4554
- node: MultichainMetadata;
4561
+ node: MultichainSamechainFundingEvent;
4555
4562
  }
4556
- export declare enum MultichainMetadataOrderByInput {
4563
+ export declare enum MultichainSamechainFundingEventOrderByInput {
4564
+ account_ASC = "account_ASC",
4565
+ account_ASC_NULLS_FIRST = "account_ASC_NULLS_FIRST",
4566
+ account_ASC_NULLS_LAST = "account_ASC_NULLS_LAST",
4567
+ account_DESC = "account_DESC",
4568
+ account_DESC_NULLS_FIRST = "account_DESC_NULLS_FIRST",
4569
+ account_DESC_NULLS_LAST = "account_DESC_NULLS_LAST",
4570
+ amount_ASC = "amount_ASC",
4571
+ amount_ASC_NULLS_FIRST = "amount_ASC_NULLS_FIRST",
4572
+ amount_ASC_NULLS_LAST = "amount_ASC_NULLS_LAST",
4573
+ amount_DESC = "amount_DESC",
4574
+ amount_DESC_NULLS_FIRST = "amount_DESC_NULLS_FIRST",
4575
+ amount_DESC_NULLS_LAST = "amount_DESC_NULLS_LAST",
4557
4576
  id_ASC = "id_ASC",
4558
4577
  id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
4559
4578
  id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
4560
4579
  id_DESC = "id_DESC",
4561
4580
  id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
4562
4581
  id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
4563
- lastBlockNumber_ASC = "lastBlockNumber_ASC",
4564
- lastBlockNumber_ASC_NULLS_FIRST = "lastBlockNumber_ASC_NULLS_FIRST",
4565
- lastBlockNumber_ASC_NULLS_LAST = "lastBlockNumber_ASC_NULLS_LAST",
4566
- lastBlockNumber_DESC = "lastBlockNumber_DESC",
4567
- lastBlockNumber_DESC_NULLS_FIRST = "lastBlockNumber_DESC_NULLS_FIRST",
4568
- lastBlockNumber_DESC_NULLS_LAST = "lastBlockNumber_DESC_NULLS_LAST",
4569
- lastBlockTimestamp_ASC = "lastBlockTimestamp_ASC",
4570
- lastBlockTimestamp_ASC_NULLS_FIRST = "lastBlockTimestamp_ASC_NULLS_FIRST",
4571
- lastBlockTimestamp_ASC_NULLS_LAST = "lastBlockTimestamp_ASC_NULLS_LAST",
4572
- lastBlockTimestamp_DESC = "lastBlockTimestamp_DESC",
4573
- lastBlockTimestamp_DESC_NULLS_FIRST = "lastBlockTimestamp_DESC_NULLS_FIRST",
4574
- lastBlockTimestamp_DESC_NULLS_LAST = "lastBlockTimestamp_DESC_NULLS_LAST"
4575
- }
4576
- export interface MultichainMetadataWhereInput {
4577
- AND?: InputMaybe<Array<MultichainMetadataWhereInput>>;
4578
- OR?: InputMaybe<Array<MultichainMetadataWhereInput>>;
4582
+ operation_ASC = "operation_ASC",
4583
+ operation_ASC_NULLS_FIRST = "operation_ASC_NULLS_FIRST",
4584
+ operation_ASC_NULLS_LAST = "operation_ASC_NULLS_LAST",
4585
+ operation_DESC = "operation_DESC",
4586
+ operation_DESC_NULLS_FIRST = "operation_DESC_NULLS_FIRST",
4587
+ operation_DESC_NULLS_LAST = "operation_DESC_NULLS_LAST",
4588
+ timestamp_ASC = "timestamp_ASC",
4589
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
4590
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
4591
+ timestamp_DESC = "timestamp_DESC",
4592
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
4593
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
4594
+ token_ASC = "token_ASC",
4595
+ token_ASC_NULLS_FIRST = "token_ASC_NULLS_FIRST",
4596
+ token_ASC_NULLS_LAST = "token_ASC_NULLS_LAST",
4597
+ token_DESC = "token_DESC",
4598
+ token_DESC_NULLS_FIRST = "token_DESC_NULLS_FIRST",
4599
+ token_DESC_NULLS_LAST = "token_DESC_NULLS_LAST",
4600
+ txHash_ASC = "txHash_ASC",
4601
+ txHash_ASC_NULLS_FIRST = "txHash_ASC_NULLS_FIRST",
4602
+ txHash_ASC_NULLS_LAST = "txHash_ASC_NULLS_LAST",
4603
+ txHash_DESC = "txHash_DESC",
4604
+ txHash_DESC_NULLS_FIRST = "txHash_DESC_NULLS_FIRST",
4605
+ txHash_DESC_NULLS_LAST = "txHash_DESC_NULLS_LAST"
4606
+ }
4607
+ export interface MultichainSamechainFundingEventWhereInput {
4608
+ AND?: InputMaybe<Array<MultichainSamechainFundingEventWhereInput>>;
4609
+ OR?: InputMaybe<Array<MultichainSamechainFundingEventWhereInput>>;
4610
+ account_contains?: InputMaybe<Scalars["String"]["input"]>;
4611
+ account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4612
+ account_endsWith?: InputMaybe<Scalars["String"]["input"]>;
4613
+ account_eq?: InputMaybe<Scalars["String"]["input"]>;
4614
+ account_gt?: InputMaybe<Scalars["String"]["input"]>;
4615
+ account_gte?: InputMaybe<Scalars["String"]["input"]>;
4616
+ account_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4617
+ account_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4618
+ account_lt?: InputMaybe<Scalars["String"]["input"]>;
4619
+ account_lte?: InputMaybe<Scalars["String"]["input"]>;
4620
+ account_not_contains?: InputMaybe<Scalars["String"]["input"]>;
4621
+ account_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4622
+ account_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
4623
+ account_not_eq?: InputMaybe<Scalars["String"]["input"]>;
4624
+ account_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4625
+ account_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4626
+ account_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4627
+ amount_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4628
+ amount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4629
+ amount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4630
+ amount_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4631
+ amount_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4632
+ amount_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4633
+ amount_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4634
+ amount_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4635
+ amount_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4579
4636
  id_contains?: InputMaybe<Scalars["String"]["input"]>;
4580
4637
  id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4581
4638
  id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -4593,24 +4650,60 @@ export interface MultichainMetadataWhereInput {
4593
4650
  id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4594
4651
  id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4595
4652
  id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4596
- lastBlockNumber_eq?: InputMaybe<Scalars["Int"]["input"]>;
4597
- lastBlockNumber_gt?: InputMaybe<Scalars["Int"]["input"]>;
4598
- lastBlockNumber_gte?: InputMaybe<Scalars["Int"]["input"]>;
4599
- lastBlockNumber_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4600
- lastBlockNumber_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4601
- lastBlockNumber_lt?: InputMaybe<Scalars["Int"]["input"]>;
4602
- lastBlockNumber_lte?: InputMaybe<Scalars["Int"]["input"]>;
4603
- lastBlockNumber_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
4604
- lastBlockNumber_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4605
- lastBlockTimestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
4606
- lastBlockTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
4607
- lastBlockTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
4608
- lastBlockTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4609
- lastBlockTimestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4610
- lastBlockTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
4611
- lastBlockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
4612
- lastBlockTimestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
4613
- lastBlockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4653
+ operation_eq?: InputMaybe<MultichainFundingOperation>;
4654
+ operation_in?: InputMaybe<Array<MultichainFundingOperation>>;
4655
+ operation_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4656
+ operation_not_eq?: InputMaybe<MultichainFundingOperation>;
4657
+ operation_not_in?: InputMaybe<Array<MultichainFundingOperation>>;
4658
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
4659
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
4660
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
4661
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4662
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4663
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
4664
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
4665
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
4666
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4667
+ token_contains?: InputMaybe<Scalars["String"]["input"]>;
4668
+ token_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4669
+ token_endsWith?: InputMaybe<Scalars["String"]["input"]>;
4670
+ token_eq?: InputMaybe<Scalars["String"]["input"]>;
4671
+ token_gt?: InputMaybe<Scalars["String"]["input"]>;
4672
+ token_gte?: InputMaybe<Scalars["String"]["input"]>;
4673
+ token_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4674
+ token_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4675
+ token_lt?: InputMaybe<Scalars["String"]["input"]>;
4676
+ token_lte?: InputMaybe<Scalars["String"]["input"]>;
4677
+ token_not_contains?: InputMaybe<Scalars["String"]["input"]>;
4678
+ token_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4679
+ token_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
4680
+ token_not_eq?: InputMaybe<Scalars["String"]["input"]>;
4681
+ token_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4682
+ token_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4683
+ token_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4684
+ txHash_contains?: InputMaybe<Scalars["String"]["input"]>;
4685
+ txHash_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4686
+ txHash_endsWith?: InputMaybe<Scalars["String"]["input"]>;
4687
+ txHash_eq?: InputMaybe<Scalars["String"]["input"]>;
4688
+ txHash_gt?: InputMaybe<Scalars["String"]["input"]>;
4689
+ txHash_gte?: InputMaybe<Scalars["String"]["input"]>;
4690
+ txHash_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4691
+ txHash_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4692
+ txHash_lt?: InputMaybe<Scalars["String"]["input"]>;
4693
+ txHash_lte?: InputMaybe<Scalars["String"]["input"]>;
4694
+ txHash_not_contains?: InputMaybe<Scalars["String"]["input"]>;
4695
+ txHash_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4696
+ txHash_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
4697
+ txHash_not_eq?: InputMaybe<Scalars["String"]["input"]>;
4698
+ txHash_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
4699
+ txHash_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4700
+ txHash_startsWith?: InputMaybe<Scalars["String"]["input"]>;
4701
+ }
4702
+ export interface MultichainSamechainFundingEventsConnection {
4703
+ __typename?: "MultichainSamechainFundingEventsConnection";
4704
+ edges: Array<MultichainSamechainFundingEventEdge>;
4705
+ pageInfo: PageInfo;
4706
+ totalCount: Scalars["Int"]["output"];
4614
4707
  }
4615
4708
  export interface OnChainSetting {
4616
4709
  __typename?: "OnChainSetting";
@@ -6606,6 +6699,202 @@ export interface PositionFeesEntityWhereInput {
6606
6699
  type_not_eq?: InputMaybe<PositionFeesEntityType>;
6607
6700
  type_not_in?: InputMaybe<Array<PositionFeesEntityType>>;
6608
6701
  }
6702
+ export interface PositionFeesInfoWithPeriod {
6703
+ __typename?: "PositionFeesInfoWithPeriod";
6704
+ id: Scalars["String"]["output"];
6705
+ period: Scalars["String"]["output"];
6706
+ timestamp?: Maybe<Scalars["Int"]["output"]>;
6707
+ totalBorrowingFeeUsd: Scalars["BigInt"]["output"];
6708
+ totalLiquidationFeeAmount: Scalars["BigInt"]["output"];
6709
+ totalLiquidationFeeUsd: Scalars["BigInt"]["output"];
6710
+ totalPositionFeeAmount: Scalars["BigInt"]["output"];
6711
+ totalPositionFeeAmountForPool: Scalars["BigInt"]["output"];
6712
+ totalPositionFeeUsd: Scalars["BigInt"]["output"];
6713
+ totalPositionFeeUsdForPool: Scalars["BigInt"]["output"];
6714
+ }
6715
+ export interface PositionFeesInfoWithPeriodEdge {
6716
+ __typename?: "PositionFeesInfoWithPeriodEdge";
6717
+ cursor: Scalars["String"]["output"];
6718
+ node: PositionFeesInfoWithPeriod;
6719
+ }
6720
+ export declare enum PositionFeesInfoWithPeriodOrderByInput {
6721
+ id_ASC = "id_ASC",
6722
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
6723
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
6724
+ id_DESC = "id_DESC",
6725
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
6726
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
6727
+ period_ASC = "period_ASC",
6728
+ period_ASC_NULLS_FIRST = "period_ASC_NULLS_FIRST",
6729
+ period_ASC_NULLS_LAST = "period_ASC_NULLS_LAST",
6730
+ period_DESC = "period_DESC",
6731
+ period_DESC_NULLS_FIRST = "period_DESC_NULLS_FIRST",
6732
+ period_DESC_NULLS_LAST = "period_DESC_NULLS_LAST",
6733
+ timestamp_ASC = "timestamp_ASC",
6734
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
6735
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
6736
+ timestamp_DESC = "timestamp_DESC",
6737
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
6738
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
6739
+ totalBorrowingFeeUsd_ASC = "totalBorrowingFeeUsd_ASC",
6740
+ totalBorrowingFeeUsd_ASC_NULLS_FIRST = "totalBorrowingFeeUsd_ASC_NULLS_FIRST",
6741
+ totalBorrowingFeeUsd_ASC_NULLS_LAST = "totalBorrowingFeeUsd_ASC_NULLS_LAST",
6742
+ totalBorrowingFeeUsd_DESC = "totalBorrowingFeeUsd_DESC",
6743
+ totalBorrowingFeeUsd_DESC_NULLS_FIRST = "totalBorrowingFeeUsd_DESC_NULLS_FIRST",
6744
+ totalBorrowingFeeUsd_DESC_NULLS_LAST = "totalBorrowingFeeUsd_DESC_NULLS_LAST",
6745
+ totalLiquidationFeeAmount_ASC = "totalLiquidationFeeAmount_ASC",
6746
+ totalLiquidationFeeAmount_ASC_NULLS_FIRST = "totalLiquidationFeeAmount_ASC_NULLS_FIRST",
6747
+ totalLiquidationFeeAmount_ASC_NULLS_LAST = "totalLiquidationFeeAmount_ASC_NULLS_LAST",
6748
+ totalLiquidationFeeAmount_DESC = "totalLiquidationFeeAmount_DESC",
6749
+ totalLiquidationFeeAmount_DESC_NULLS_FIRST = "totalLiquidationFeeAmount_DESC_NULLS_FIRST",
6750
+ totalLiquidationFeeAmount_DESC_NULLS_LAST = "totalLiquidationFeeAmount_DESC_NULLS_LAST",
6751
+ totalLiquidationFeeUsd_ASC = "totalLiquidationFeeUsd_ASC",
6752
+ totalLiquidationFeeUsd_ASC_NULLS_FIRST = "totalLiquidationFeeUsd_ASC_NULLS_FIRST",
6753
+ totalLiquidationFeeUsd_ASC_NULLS_LAST = "totalLiquidationFeeUsd_ASC_NULLS_LAST",
6754
+ totalLiquidationFeeUsd_DESC = "totalLiquidationFeeUsd_DESC",
6755
+ totalLiquidationFeeUsd_DESC_NULLS_FIRST = "totalLiquidationFeeUsd_DESC_NULLS_FIRST",
6756
+ totalLiquidationFeeUsd_DESC_NULLS_LAST = "totalLiquidationFeeUsd_DESC_NULLS_LAST",
6757
+ totalPositionFeeAmountForPool_ASC = "totalPositionFeeAmountForPool_ASC",
6758
+ totalPositionFeeAmountForPool_ASC_NULLS_FIRST = "totalPositionFeeAmountForPool_ASC_NULLS_FIRST",
6759
+ totalPositionFeeAmountForPool_ASC_NULLS_LAST = "totalPositionFeeAmountForPool_ASC_NULLS_LAST",
6760
+ totalPositionFeeAmountForPool_DESC = "totalPositionFeeAmountForPool_DESC",
6761
+ totalPositionFeeAmountForPool_DESC_NULLS_FIRST = "totalPositionFeeAmountForPool_DESC_NULLS_FIRST",
6762
+ totalPositionFeeAmountForPool_DESC_NULLS_LAST = "totalPositionFeeAmountForPool_DESC_NULLS_LAST",
6763
+ totalPositionFeeAmount_ASC = "totalPositionFeeAmount_ASC",
6764
+ totalPositionFeeAmount_ASC_NULLS_FIRST = "totalPositionFeeAmount_ASC_NULLS_FIRST",
6765
+ totalPositionFeeAmount_ASC_NULLS_LAST = "totalPositionFeeAmount_ASC_NULLS_LAST",
6766
+ totalPositionFeeAmount_DESC = "totalPositionFeeAmount_DESC",
6767
+ totalPositionFeeAmount_DESC_NULLS_FIRST = "totalPositionFeeAmount_DESC_NULLS_FIRST",
6768
+ totalPositionFeeAmount_DESC_NULLS_LAST = "totalPositionFeeAmount_DESC_NULLS_LAST",
6769
+ totalPositionFeeUsdForPool_ASC = "totalPositionFeeUsdForPool_ASC",
6770
+ totalPositionFeeUsdForPool_ASC_NULLS_FIRST = "totalPositionFeeUsdForPool_ASC_NULLS_FIRST",
6771
+ totalPositionFeeUsdForPool_ASC_NULLS_LAST = "totalPositionFeeUsdForPool_ASC_NULLS_LAST",
6772
+ totalPositionFeeUsdForPool_DESC = "totalPositionFeeUsdForPool_DESC",
6773
+ totalPositionFeeUsdForPool_DESC_NULLS_FIRST = "totalPositionFeeUsdForPool_DESC_NULLS_FIRST",
6774
+ totalPositionFeeUsdForPool_DESC_NULLS_LAST = "totalPositionFeeUsdForPool_DESC_NULLS_LAST",
6775
+ totalPositionFeeUsd_ASC = "totalPositionFeeUsd_ASC",
6776
+ totalPositionFeeUsd_ASC_NULLS_FIRST = "totalPositionFeeUsd_ASC_NULLS_FIRST",
6777
+ totalPositionFeeUsd_ASC_NULLS_LAST = "totalPositionFeeUsd_ASC_NULLS_LAST",
6778
+ totalPositionFeeUsd_DESC = "totalPositionFeeUsd_DESC",
6779
+ totalPositionFeeUsd_DESC_NULLS_FIRST = "totalPositionFeeUsd_DESC_NULLS_FIRST",
6780
+ totalPositionFeeUsd_DESC_NULLS_LAST = "totalPositionFeeUsd_DESC_NULLS_LAST"
6781
+ }
6782
+ export interface PositionFeesInfoWithPeriodWhereInput {
6783
+ AND?: InputMaybe<Array<PositionFeesInfoWithPeriodWhereInput>>;
6784
+ OR?: InputMaybe<Array<PositionFeesInfoWithPeriodWhereInput>>;
6785
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
6786
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
6787
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
6788
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
6789
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
6790
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
6791
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
6792
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6793
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
6794
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
6795
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
6796
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
6797
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
6798
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
6799
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
6800
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6801
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6802
+ period_contains?: InputMaybe<Scalars["String"]["input"]>;
6803
+ period_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
6804
+ period_endsWith?: InputMaybe<Scalars["String"]["input"]>;
6805
+ period_eq?: InputMaybe<Scalars["String"]["input"]>;
6806
+ period_gt?: InputMaybe<Scalars["String"]["input"]>;
6807
+ period_gte?: InputMaybe<Scalars["String"]["input"]>;
6808
+ period_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
6809
+ period_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6810
+ period_lt?: InputMaybe<Scalars["String"]["input"]>;
6811
+ period_lte?: InputMaybe<Scalars["String"]["input"]>;
6812
+ period_not_contains?: InputMaybe<Scalars["String"]["input"]>;
6813
+ period_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
6814
+ period_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
6815
+ period_not_eq?: InputMaybe<Scalars["String"]["input"]>;
6816
+ period_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
6817
+ period_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6818
+ period_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6819
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
6820
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
6821
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
6822
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
6823
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6824
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
6825
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
6826
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
6827
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
6828
+ totalBorrowingFeeUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6829
+ totalBorrowingFeeUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6830
+ totalBorrowingFeeUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6831
+ totalBorrowingFeeUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6832
+ totalBorrowingFeeUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6833
+ totalBorrowingFeeUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6834
+ totalBorrowingFeeUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6835
+ totalBorrowingFeeUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6836
+ totalBorrowingFeeUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6837
+ totalLiquidationFeeAmount_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6838
+ totalLiquidationFeeAmount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6839
+ totalLiquidationFeeAmount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6840
+ totalLiquidationFeeAmount_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6841
+ totalLiquidationFeeAmount_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6842
+ totalLiquidationFeeAmount_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6843
+ totalLiquidationFeeAmount_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6844
+ totalLiquidationFeeAmount_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6845
+ totalLiquidationFeeAmount_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6846
+ totalLiquidationFeeUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6847
+ totalLiquidationFeeUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6848
+ totalLiquidationFeeUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6849
+ totalLiquidationFeeUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6850
+ totalLiquidationFeeUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6851
+ totalLiquidationFeeUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6852
+ totalLiquidationFeeUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6853
+ totalLiquidationFeeUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6854
+ totalLiquidationFeeUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6855
+ totalPositionFeeAmountForPool_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6856
+ totalPositionFeeAmountForPool_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6857
+ totalPositionFeeAmountForPool_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6858
+ totalPositionFeeAmountForPool_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6859
+ totalPositionFeeAmountForPool_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6860
+ totalPositionFeeAmountForPool_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6861
+ totalPositionFeeAmountForPool_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6862
+ totalPositionFeeAmountForPool_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6863
+ totalPositionFeeAmountForPool_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6864
+ totalPositionFeeAmount_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6865
+ totalPositionFeeAmount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6866
+ totalPositionFeeAmount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6867
+ totalPositionFeeAmount_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6868
+ totalPositionFeeAmount_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6869
+ totalPositionFeeAmount_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6870
+ totalPositionFeeAmount_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6871
+ totalPositionFeeAmount_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6872
+ totalPositionFeeAmount_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6873
+ totalPositionFeeUsdForPool_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6874
+ totalPositionFeeUsdForPool_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6875
+ totalPositionFeeUsdForPool_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6876
+ totalPositionFeeUsdForPool_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6877
+ totalPositionFeeUsdForPool_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6878
+ totalPositionFeeUsdForPool_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6879
+ totalPositionFeeUsdForPool_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6880
+ totalPositionFeeUsdForPool_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6881
+ totalPositionFeeUsdForPool_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6882
+ totalPositionFeeUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6883
+ totalPositionFeeUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6884
+ totalPositionFeeUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6885
+ totalPositionFeeUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6886
+ totalPositionFeeUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6887
+ totalPositionFeeUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6888
+ totalPositionFeeUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6889
+ totalPositionFeeUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6890
+ totalPositionFeeUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6891
+ }
6892
+ export interface PositionFeesInfoWithPeriodsConnection {
6893
+ __typename?: "PositionFeesInfoWithPeriodsConnection";
6894
+ edges: Array<PositionFeesInfoWithPeriodEdge>;
6895
+ pageInfo: PageInfo;
6896
+ totalCount: Scalars["Int"]["output"];
6897
+ }
6609
6898
  export interface PositionMarketVolumeInfo {
6610
6899
  __typename?: "PositionMarketVolumeInfo";
6611
6900
  market: Scalars["String"]["output"];
@@ -7549,9 +7838,9 @@ export interface Query {
7549
7838
  multichainFundingSendEventById?: Maybe<MultichainFundingSendEvent>;
7550
7839
  multichainFundingSendEvents: Array<MultichainFundingSendEvent>;
7551
7840
  multichainFundingSendEventsConnection: MultichainFundingSendEventsConnection;
7552
- multichainMetadata: Array<MultichainMetadata>;
7553
- multichainMetadataById?: Maybe<MultichainMetadata>;
7554
- multichainMetadataConnection: MultichainMetadataConnection;
7841
+ multichainSamechainFundingEventById?: Maybe<MultichainSamechainFundingEvent>;
7842
+ multichainSamechainFundingEvents: Array<MultichainSamechainFundingEvent>;
7843
+ multichainSamechainFundingEventsConnection: MultichainSamechainFundingEventsConnection;
7555
7844
  onChainSettingById?: Maybe<OnChainSetting>;
7556
7845
  onChainSettings: Array<OnChainSetting>;
7557
7846
  onChainSettingsConnection: OnChainSettingsConnection;
@@ -7560,6 +7849,7 @@ export interface Query {
7560
7849
  ordersConnection: OrdersConnection;
7561
7850
  performanceSnapshots: Array<PerformanceSnapshots>;
7562
7851
  periodAccountStats: Array<PeriodAccountStatObject>;
7852
+ periodAccountVolume: AccountVolumeStatObject;
7563
7853
  platformStats: Array<PlatformStats>;
7564
7854
  platformStatsById?: Maybe<PlatformStats>;
7565
7855
  platformStatsConnection: PlatformStatsConnection;
@@ -7573,6 +7863,9 @@ export interface Query {
7573
7863
  positionFeesEntities: Array<PositionFeesEntity>;
7574
7864
  positionFeesEntitiesConnection: PositionFeesEntitiesConnection;
7575
7865
  positionFeesEntityById?: Maybe<PositionFeesEntity>;
7866
+ positionFeesInfoWithPeriodById?: Maybe<PositionFeesInfoWithPeriod>;
7867
+ positionFeesInfoWithPeriods: Array<PositionFeesInfoWithPeriod>;
7868
+ positionFeesInfoWithPeriodsConnection: PositionFeesInfoWithPeriodsConnection;
7576
7869
  positionTotalCollateralAmount: Array<PositionTotalCollateralAmount>;
7577
7870
  positionVolumeInfoById?: Maybe<PositionVolumeInfo>;
7578
7871
  positionVolumeInfos: Array<PositionVolumeInfo>;
@@ -7588,6 +7881,9 @@ export interface Query {
7588
7881
  processorStatusesConnection: ProcessorStatusesConnection;
7589
7882
  squidStatus: SquidStatus;
7590
7883
  swapFeesInfoById?: Maybe<SwapFeesInfo>;
7884
+ swapFeesInfoWithPeriodById?: Maybe<SwapFeesInfoWithPeriod>;
7885
+ swapFeesInfoWithPeriods: Array<SwapFeesInfoWithPeriod>;
7886
+ swapFeesInfoWithPeriodsConnection: SwapFeesInfoWithPeriodsConnection;
7591
7887
  swapFeesInfos: Array<SwapFeesInfo>;
7592
7888
  swapFeesInfosConnection: SwapFeesInfosConnection;
7593
7889
  swapInfoById?: Maybe<SwapInfo>;
@@ -7902,20 +8198,20 @@ export interface QuerymultichainFundingSendEventsConnectionArgs {
7902
8198
  orderBy: Array<MultichainFundingSendEventOrderByInput>;
7903
8199
  where?: InputMaybe<MultichainFundingSendEventWhereInput>;
7904
8200
  }
7905
- export interface QuerymultichainMetadataArgs {
8201
+ export interface QuerymultichainSamechainFundingEventByIdArgs {
8202
+ id: Scalars["String"]["input"];
8203
+ }
8204
+ export interface QuerymultichainSamechainFundingEventsArgs {
7906
8205
  limit?: InputMaybe<Scalars["Int"]["input"]>;
7907
8206
  offset?: InputMaybe<Scalars["Int"]["input"]>;
7908
- orderBy?: InputMaybe<Array<MultichainMetadataOrderByInput>>;
7909
- where?: InputMaybe<MultichainMetadataWhereInput>;
8207
+ orderBy?: InputMaybe<Array<MultichainSamechainFundingEventOrderByInput>>;
8208
+ where?: InputMaybe<MultichainSamechainFundingEventWhereInput>;
7910
8209
  }
7911
- export interface QuerymultichainMetadataByIdArgs {
7912
- id: Scalars["String"]["input"];
7913
- }
7914
- export interface QuerymultichainMetadataConnectionArgs {
8210
+ export interface QuerymultichainSamechainFundingEventsConnectionArgs {
7915
8211
  after?: InputMaybe<Scalars["String"]["input"]>;
7916
8212
  first?: InputMaybe<Scalars["Int"]["input"]>;
7917
- orderBy: Array<MultichainMetadataOrderByInput>;
7918
- where?: InputMaybe<MultichainMetadataWhereInput>;
8213
+ orderBy: Array<MultichainSamechainFundingEventOrderByInput>;
8214
+ where?: InputMaybe<MultichainSamechainFundingEventWhereInput>;
7919
8215
  }
7920
8216
  export interface QueryonChainSettingByIdArgs {
7921
8217
  id: Scalars["String"]["input"];
@@ -7955,6 +8251,9 @@ export interface QueryperiodAccountStatsArgs {
7955
8251
  offset?: InputMaybe<Scalars["Float"]["input"]>;
7956
8252
  where?: InputMaybe<WhereInput>;
7957
8253
  }
8254
+ export interface QueryperiodAccountVolumeArgs {
8255
+ where?: InputMaybe<AccountVolumeWhereInput>;
8256
+ }
7958
8257
  export interface QueryplatformStatsArgs {
7959
8258
  limit?: InputMaybe<Scalars["Int"]["input"]>;
7960
8259
  offset?: InputMaybe<Scalars["Int"]["input"]>;
@@ -8018,6 +8317,21 @@ export interface QuerypositionFeesEntitiesConnectionArgs {
8018
8317
  export interface QuerypositionFeesEntityByIdArgs {
8019
8318
  id: Scalars["String"]["input"];
8020
8319
  }
8320
+ export interface QuerypositionFeesInfoWithPeriodByIdArgs {
8321
+ id: Scalars["String"]["input"];
8322
+ }
8323
+ export interface QuerypositionFeesInfoWithPeriodsArgs {
8324
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
8325
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
8326
+ orderBy?: InputMaybe<Array<PositionFeesInfoWithPeriodOrderByInput>>;
8327
+ where?: InputMaybe<PositionFeesInfoWithPeriodWhereInput>;
8328
+ }
8329
+ export interface QuerypositionFeesInfoWithPeriodsConnectionArgs {
8330
+ after?: InputMaybe<Scalars["String"]["input"]>;
8331
+ first?: InputMaybe<Scalars["Int"]["input"]>;
8332
+ orderBy: Array<PositionFeesInfoWithPeriodOrderByInput>;
8333
+ where?: InputMaybe<PositionFeesInfoWithPeriodWhereInput>;
8334
+ }
8021
8335
  export interface QuerypositionTotalCollateralAmountArgs {
8022
8336
  where?: InputMaybe<PositionTotalCollateralAmountWhereInput>;
8023
8337
  }
@@ -8084,6 +8398,21 @@ export interface QueryprocessorStatusesConnectionArgs {
8084
8398
  export interface QueryswapFeesInfoByIdArgs {
8085
8399
  id: Scalars["String"]["input"];
8086
8400
  }
8401
+ export interface QueryswapFeesInfoWithPeriodByIdArgs {
8402
+ id: Scalars["String"]["input"];
8403
+ }
8404
+ export interface QueryswapFeesInfoWithPeriodsArgs {
8405
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
8406
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
8407
+ orderBy?: InputMaybe<Array<SwapFeesInfoWithPeriodOrderByInput>>;
8408
+ where?: InputMaybe<SwapFeesInfoWithPeriodWhereInput>;
8409
+ }
8410
+ export interface QueryswapFeesInfoWithPeriodsConnectionArgs {
8411
+ after?: InputMaybe<Scalars["String"]["input"]>;
8412
+ first?: InputMaybe<Scalars["Int"]["input"]>;
8413
+ orderBy: Array<SwapFeesInfoWithPeriodOrderByInput>;
8414
+ where?: InputMaybe<SwapFeesInfoWithPeriodWhereInput>;
8415
+ }
8087
8416
  export interface QueryswapFeesInfosArgs {
8088
8417
  limit?: InputMaybe<Scalars["Int"]["input"]>;
8089
8418
  offset?: InputMaybe<Scalars["Int"]["input"]>;
@@ -8379,6 +8708,122 @@ export interface SwapFeesInfoWhereInput {
8379
8708
  transaction?: InputMaybe<TransactionWhereInput>;
8380
8709
  transaction_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8381
8710
  }
8711
+ export interface SwapFeesInfoWithPeriod {
8712
+ __typename?: "SwapFeesInfoWithPeriod";
8713
+ id: Scalars["String"]["output"];
8714
+ period: Scalars["String"]["output"];
8715
+ timestamp?: Maybe<Scalars["Int"]["output"]>;
8716
+ totalFeeReceiverUsd: Scalars["BigInt"]["output"];
8717
+ totalFeeUsdForPool: Scalars["BigInt"]["output"];
8718
+ }
8719
+ export interface SwapFeesInfoWithPeriodEdge {
8720
+ __typename?: "SwapFeesInfoWithPeriodEdge";
8721
+ cursor: Scalars["String"]["output"];
8722
+ node: SwapFeesInfoWithPeriod;
8723
+ }
8724
+ export declare enum SwapFeesInfoWithPeriodOrderByInput {
8725
+ id_ASC = "id_ASC",
8726
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
8727
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
8728
+ id_DESC = "id_DESC",
8729
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
8730
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
8731
+ period_ASC = "period_ASC",
8732
+ period_ASC_NULLS_FIRST = "period_ASC_NULLS_FIRST",
8733
+ period_ASC_NULLS_LAST = "period_ASC_NULLS_LAST",
8734
+ period_DESC = "period_DESC",
8735
+ period_DESC_NULLS_FIRST = "period_DESC_NULLS_FIRST",
8736
+ period_DESC_NULLS_LAST = "period_DESC_NULLS_LAST",
8737
+ timestamp_ASC = "timestamp_ASC",
8738
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
8739
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
8740
+ timestamp_DESC = "timestamp_DESC",
8741
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
8742
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
8743
+ totalFeeReceiverUsd_ASC = "totalFeeReceiverUsd_ASC",
8744
+ totalFeeReceiverUsd_ASC_NULLS_FIRST = "totalFeeReceiverUsd_ASC_NULLS_FIRST",
8745
+ totalFeeReceiverUsd_ASC_NULLS_LAST = "totalFeeReceiverUsd_ASC_NULLS_LAST",
8746
+ totalFeeReceiverUsd_DESC = "totalFeeReceiverUsd_DESC",
8747
+ totalFeeReceiverUsd_DESC_NULLS_FIRST = "totalFeeReceiverUsd_DESC_NULLS_FIRST",
8748
+ totalFeeReceiverUsd_DESC_NULLS_LAST = "totalFeeReceiverUsd_DESC_NULLS_LAST",
8749
+ totalFeeUsdForPool_ASC = "totalFeeUsdForPool_ASC",
8750
+ totalFeeUsdForPool_ASC_NULLS_FIRST = "totalFeeUsdForPool_ASC_NULLS_FIRST",
8751
+ totalFeeUsdForPool_ASC_NULLS_LAST = "totalFeeUsdForPool_ASC_NULLS_LAST",
8752
+ totalFeeUsdForPool_DESC = "totalFeeUsdForPool_DESC",
8753
+ totalFeeUsdForPool_DESC_NULLS_FIRST = "totalFeeUsdForPool_DESC_NULLS_FIRST",
8754
+ totalFeeUsdForPool_DESC_NULLS_LAST = "totalFeeUsdForPool_DESC_NULLS_LAST"
8755
+ }
8756
+ export interface SwapFeesInfoWithPeriodWhereInput {
8757
+ AND?: InputMaybe<Array<SwapFeesInfoWithPeriodWhereInput>>;
8758
+ OR?: InputMaybe<Array<SwapFeesInfoWithPeriodWhereInput>>;
8759
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
8760
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8761
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8762
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
8763
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
8764
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
8765
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8766
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8767
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
8768
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
8769
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8770
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8771
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8772
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8773
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8774
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8775
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8776
+ period_contains?: InputMaybe<Scalars["String"]["input"]>;
8777
+ period_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8778
+ period_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8779
+ period_eq?: InputMaybe<Scalars["String"]["input"]>;
8780
+ period_gt?: InputMaybe<Scalars["String"]["input"]>;
8781
+ period_gte?: InputMaybe<Scalars["String"]["input"]>;
8782
+ period_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8783
+ period_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8784
+ period_lt?: InputMaybe<Scalars["String"]["input"]>;
8785
+ period_lte?: InputMaybe<Scalars["String"]["input"]>;
8786
+ period_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8787
+ period_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8788
+ period_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8789
+ period_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8790
+ period_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8791
+ period_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8792
+ period_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8793
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
8794
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
8795
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
8796
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
8797
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8798
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
8799
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
8800
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
8801
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
8802
+ totalFeeReceiverUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
8803
+ totalFeeReceiverUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
8804
+ totalFeeReceiverUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
8805
+ totalFeeReceiverUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
8806
+ totalFeeReceiverUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8807
+ totalFeeReceiverUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
8808
+ totalFeeReceiverUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
8809
+ totalFeeReceiverUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
8810
+ totalFeeReceiverUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
8811
+ totalFeeUsdForPool_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
8812
+ totalFeeUsdForPool_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
8813
+ totalFeeUsdForPool_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
8814
+ totalFeeUsdForPool_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
8815
+ totalFeeUsdForPool_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8816
+ totalFeeUsdForPool_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
8817
+ totalFeeUsdForPool_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
8818
+ totalFeeUsdForPool_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
8819
+ totalFeeUsdForPool_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
8820
+ }
8821
+ export interface SwapFeesInfoWithPeriodsConnection {
8822
+ __typename?: "SwapFeesInfoWithPeriodsConnection";
8823
+ edges: Array<SwapFeesInfoWithPeriodEdge>;
8824
+ pageInfo: PageInfo;
8825
+ totalCount: Scalars["Int"]["output"];
8826
+ }
8382
8827
  export interface SwapFeesInfosConnection {
8383
8828
  __typename?: "SwapFeesInfosConnection";
8384
8829
  edges: Array<SwapFeesInfoEdge>;