@gmx-io/sdk 1.4.1 → 1.5.0-alpha-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/build/cjs/scripts/prebuild/index.js +6 -1
  2. package/build/cjs/scripts/prebuild/prebuildKinkModelMarketRatesKeys.js +2 -28
  3. package/build/cjs/scripts/prebuild/prebuildMarketConfigKeys.js +2 -2
  4. package/build/cjs/scripts/prebuild/prebuildMarketValuesKeys.js +2 -2
  5. package/build/cjs/scripts/subsquid-codegen.js +26 -0
  6. package/build/cjs/src/{utils → clients/v1}/callContract.js +4 -6
  7. package/build/cjs/src/{index.js → clients/v1/index.js} +4 -4
  8. package/build/cjs/src/{modules → clients/v1/modules}/accounts/accounts.js +1 -1
  9. package/build/cjs/src/{modules → clients/v1/modules}/accounts/accounts.spec.js +1 -1
  10. package/build/cjs/src/clients/v1/modules/markets/index.js +227 -0
  11. package/build/cjs/src/{modules → clients/v1/modules}/markets/markets.spec.js +1 -1
  12. package/build/cjs/src/{modules → clients/v1/modules}/oracle.js +1 -1
  13. package/build/cjs/src/{modules → clients/v1/modules}/orders/helpers.js +11 -9
  14. package/build/cjs/src/{modules → clients/v1/modules}/orders/helpers.spec.js +5 -5
  15. package/build/cjs/src/{modules → clients/v1/modules}/orders/orders.js +11 -11
  16. package/build/cjs/src/{modules → clients/v1/modules}/orders/orders.spec.js +1 -1
  17. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.js +2 -2
  18. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.js +7 -7
  19. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.js +11 -11
  20. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.js +10 -10
  21. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.js +2 -2
  22. package/build/cjs/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.js +3 -3
  23. package/build/cjs/src/{modules → clients/v1/modules}/orders/utils.js +7 -7
  24. package/build/cjs/src/{modules → clients/v1/modules}/positions/positions.js +11 -11
  25. package/build/cjs/src/{modules → clients/v1/modules}/positions/positions.spec.js +1 -1
  26. package/build/cjs/src/{modules → clients/v1/modules}/tokens/tokens.js +3 -3
  27. package/build/cjs/src/{modules → clients/v1/modules}/tokens/tokens.spec.js +1 -1
  28. package/build/cjs/src/{modules → clients/v1/modules}/trades/trades.js +19 -19
  29. package/build/cjs/src/{modules → clients/v1/modules}/trades/trades.spec.js +1 -1
  30. package/build/cjs/src/{modules → clients/v1/modules}/utils/utils.js +8 -8
  31. package/build/cjs/src/{utils → clients/v1}/multicall.js +4 -4
  32. package/build/cjs/src/{utils → clients/v1}/simulateExecuteOrder.js +5 -5
  33. package/build/cjs/src/{utils → clients/v1}/testUtil.js +2 -2
  34. package/build/cjs/src/clients/v2/index.js +21 -0
  35. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedKinkModelMarketRatesKeys.json +40 -0
  36. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedMarketConfigKeys.json +285 -0
  37. package/build/cjs/src/{prebuilt → codegen/prebuilt}/hashedMarketValuesKeys.json +75 -0
  38. package/build/cjs/src/codegen/prebuilt/index.js +16 -0
  39. package/build/cjs/src/configs/api.js +15 -0
  40. package/build/cjs/src/configs/chains.js +29 -1
  41. package/build/cjs/src/configs/dataStore.js +6 -2
  42. package/build/cjs/src/configs/markets.js +35 -0
  43. package/build/cjs/src/configs/multichain.js +29 -19
  44. package/build/cjs/src/configs/tokens.js +49 -169
  45. package/build/cjs/src/test/mock.js +5 -122
  46. package/build/cjs/src/utils/24h/index.js +17 -0
  47. package/build/cjs/src/utils/LruCache/index.js +17 -0
  48. package/build/cjs/src/utils/__tests__/fees.spec.js +1 -1
  49. package/build/cjs/src/utils/__tests__/orderTransactions/batchUtils.spec.js +2 -2
  50. package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +33 -33
  51. package/build/cjs/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +4 -4
  52. package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +28 -28
  53. package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +20 -20
  54. package/build/cjs/src/utils/__tests__/orderTransactions/updateOrder.spec.js +3 -3
  55. package/build/cjs/src/utils/__tests__/prices.spec.js +18 -18
  56. package/build/cjs/src/utils/abort/index.js +17 -0
  57. package/build/cjs/src/utils/bigmath/index.js +17 -0
  58. package/build/cjs/src/utils/buildUrl/index.js +17 -0
  59. package/build/cjs/src/utils/chains/index.js +17 -0
  60. package/build/cjs/src/utils/common/index.js +17 -0
  61. package/build/cjs/src/utils/{common.js → common/utils.js} +1 -2
  62. package/build/cjs/src/utils/fees/executionFee.js +2 -2
  63. package/build/cjs/src/utils/fees/index.js +9 -9
  64. package/build/cjs/src/utils/gelatoRelay/index.js +17 -0
  65. package/build/cjs/src/utils/graphqlFetcher/index.js +8 -0
  66. package/build/cjs/src/utils/hash/index.js +17 -0
  67. package/build/cjs/src/utils/{hash.js → hash/utils.js} +1 -1
  68. package/build/cjs/src/utils/http/http.js +33 -0
  69. package/build/cjs/src/utils/indexers/index.js +17 -0
  70. package/build/cjs/src/utils/{indexers.js → indexers/utils.js} +1 -1
  71. package/build/cjs/src/utils/markets/__tests__/mockMarkets.js +129 -0
  72. package/build/cjs/src/utils/markets/api.js +14 -0
  73. package/build/cjs/src/utils/{marketKeysAndConfigs.js → markets/hashKeys.js} +32 -3
  74. package/build/cjs/src/utils/markets/index.js +21 -0
  75. package/build/cjs/src/{modules/markets/query-builders.js → utils/markets/multicall.js} +149 -42
  76. package/build/cjs/src/utils/markets/utils.js +398 -0
  77. package/build/cjs/src/utils/numbers/index.js +17 -0
  78. package/build/cjs/src/utils/{numbers.js → numbers/utils.js} +8 -3
  79. package/build/cjs/src/utils/objects/index.js +17 -0
  80. package/build/cjs/src/utils/{objects.js → objects/utils.js} +9 -1
  81. package/build/cjs/src/utils/orderTransactions/index.js +17 -0
  82. package/build/cjs/src/utils/{orderTransactions.js → orderTransactions/utils.js} +22 -22
  83. package/build/cjs/src/utils/orders/index.js +18 -0
  84. package/build/cjs/src/utils/{orders.js → orders/utils.js} +22 -22
  85. package/build/cjs/src/utils/positions/index.js +18 -0
  86. package/build/cjs/src/utils/{positions.js → positions/utils.js} +6 -6
  87. package/build/cjs/src/utils/prices/index.js +17 -0
  88. package/build/cjs/src/utils/{prices.js → prices/utils.js} +15 -15
  89. package/build/cjs/src/utils/referrals/index.js +18 -0
  90. package/build/cjs/src/utils/sidecarOrders/index.js +17 -0
  91. package/build/cjs/src/utils/swap/__tests__/findSwapPathsBetweenTokens.spec.js +22 -0
  92. package/build/cjs/src/utils/swap/__tests__/mockRouting.spec.js +264 -7
  93. package/build/cjs/src/utils/swap/__tests__/swapRouting.spec.js +5 -5
  94. package/build/cjs/src/utils/swap/__tests__/swapStats.spec.js +10 -10
  95. package/build/cjs/src/utils/swap/botanixStaking.js +3 -3
  96. package/build/cjs/src/utils/swap/buildSwapStrategy.js +13 -5
  97. package/build/cjs/src/utils/swap/externalSwapPath.js +2 -2
  98. package/build/cjs/src/utils/swap/externalSwapQuoteByPath.js +2 -2
  99. package/build/cjs/src/utils/swap/findSwapPathsBetweenTokens.js +8 -4
  100. package/build/cjs/src/utils/swap/index.js +12 -0
  101. package/build/cjs/src/utils/swap/swapPath.js +3 -3
  102. package/build/cjs/src/utils/swap/swapValues.js +17 -10
  103. package/build/cjs/src/utils/time/index.js +17 -0
  104. package/build/cjs/src/utils/tokens/index.js +18 -0
  105. package/build/cjs/src/utils/{tokens.js → tokens/utils.js} +4 -4
  106. package/build/cjs/src/utils/trade/decrease.js +8 -8
  107. package/build/cjs/src/utils/trade/increase.js +5 -2
  108. package/build/cjs/src/utils/trade/index.js +3 -0
  109. package/build/cjs/src/utils/trade/trade.js +10 -10
  110. package/build/cjs/src/utils/tradeHistory/index.js +18 -0
  111. package/build/cjs/src/utils/{tradeHistory.js → tradeHistory/utils.js} +4 -4
  112. package/build/cjs/src/utils/twap/index.js +15 -0
  113. package/build/cjs/src/utils/types/index.js +7 -0
  114. package/build/esm/scripts/prebuild/index.js +3 -1
  115. package/build/esm/scripts/prebuild/prebuildKinkModelMarketRatesKeys.js +2 -28
  116. package/build/esm/scripts/prebuild/prebuildMarketConfigKeys.js +1 -1
  117. package/build/esm/scripts/prebuild/prebuildMarketValuesKeys.js +1 -1
  118. package/build/esm/scripts/subsquid-codegen.js +24 -0
  119. package/build/esm/src/{utils → clients/v1}/callContract.js +5 -5
  120. package/build/esm/src/{index.js → clients/v1/index.js} +4 -4
  121. package/build/esm/src/{modules → clients/v1/modules}/accounts/accounts.js +1 -1
  122. package/build/esm/src/{modules → clients/v1/modules}/accounts/accounts.spec.js +1 -1
  123. package/build/esm/src/clients/v1/modules/markets/index.js +220 -0
  124. package/build/esm/src/{modules → clients/v1/modules}/markets/markets.spec.js +1 -1
  125. package/build/esm/src/{modules → clients/v1/modules}/oracle.js +1 -1
  126. package/build/esm/src/{modules → clients/v1/modules}/orders/helpers.js +8 -6
  127. package/build/esm/src/{modules → clients/v1/modules}/orders/helpers.spec.js +5 -5
  128. package/build/esm/src/{modules → clients/v1/modules}/orders/orders.js +4 -4
  129. package/build/esm/src/{modules → clients/v1/modules}/orders/orders.spec.js +1 -1
  130. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.js +2 -2
  131. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.js +7 -7
  132. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.js +8 -8
  133. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.js +7 -7
  134. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.js +2 -2
  135. package/build/esm/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.js +3 -3
  136. package/build/esm/src/{modules → clients/v1/modules}/orders/utils.js +7 -7
  137. package/build/esm/src/{modules → clients/v1/modules}/positions/positions.js +11 -11
  138. package/build/esm/src/{modules → clients/v1/modules}/positions/positions.spec.js +1 -1
  139. package/build/esm/src/{modules → clients/v1/modules}/tokens/tokens.js +3 -3
  140. package/build/esm/src/{modules → clients/v1/modules}/tokens/tokens.spec.js +1 -1
  141. package/build/esm/src/{modules → clients/v1/modules}/trades/trades.js +8 -8
  142. package/build/esm/src/{modules → clients/v1/modules}/trades/trades.spec.js +1 -1
  143. package/build/esm/src/{modules → clients/v1/modules}/utils/utils.js +8 -8
  144. package/build/esm/src/{utils → clients/v1}/multicall.js +4 -4
  145. package/build/esm/src/{utils → clients/v1}/simulateExecuteOrder.js +5 -5
  146. package/build/esm/src/{utils → clients/v1}/testUtil.js +2 -2
  147. package/build/esm/src/clients/v2/index.js +17 -0
  148. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedKinkModelMarketRatesKeys.json +40 -0
  149. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedMarketConfigKeys.json +285 -0
  150. package/build/esm/src/{prebuilt → codegen/prebuilt}/hashedMarketValuesKeys.json +75 -0
  151. package/build/esm/src/codegen/prebuilt/index.js +10 -0
  152. package/build/esm/src/configs/api.js +11 -0
  153. package/build/esm/src/configs/chains.js +29 -1
  154. package/build/esm/src/configs/dataStore.js +3 -0
  155. package/build/esm/src/configs/markets.js +35 -0
  156. package/build/esm/src/configs/multichain.js +28 -19
  157. package/build/esm/src/configs/tokens.js +49 -169
  158. package/build/esm/src/test/mock.js +3 -120
  159. package/build/esm/src/utils/24h/index.js +1 -0
  160. package/build/esm/src/utils/LruCache/index.js +1 -0
  161. package/build/esm/src/utils/__tests__/fees.spec.js +1 -1
  162. package/build/esm/src/utils/__tests__/orderTransactions/batchUtils.spec.js +1 -1
  163. package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +1 -1
  164. package/build/esm/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +1 -1
  165. package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +1 -1
  166. package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -1
  167. package/build/esm/src/utils/__tests__/orderTransactions/updateOrder.spec.js +1 -1
  168. package/build/esm/src/utils/__tests__/prices.spec.js +2 -2
  169. package/build/esm/src/utils/abort/index.js +1 -0
  170. package/build/esm/src/utils/bigmath/index.js +1 -0
  171. package/build/esm/src/utils/buildUrl/index.js +1 -0
  172. package/build/esm/src/utils/chains/index.js +1 -0
  173. package/build/esm/src/utils/common/index.js +1 -0
  174. package/build/esm/src/utils/{common.js → common/utils.js} +0 -1
  175. package/build/esm/src/utils/fees/executionFee.js +1 -1
  176. package/build/esm/src/utils/fees/index.js +7 -7
  177. package/build/esm/src/utils/gelatoRelay/index.js +1 -0
  178. package/build/esm/src/utils/graphqlFetcher/index.js +1 -0
  179. package/build/esm/src/utils/hash/index.js +1 -0
  180. package/build/esm/src/utils/{hash.js → hash/utils.js} +1 -1
  181. package/build/esm/src/utils/http/http.js +26 -0
  182. package/build/esm/src/utils/indexers/index.js +1 -0
  183. package/build/esm/src/utils/{indexers.js → indexers/utils.js} +1 -1
  184. package/build/esm/src/utils/markets/__tests__/mockMarkets.js +124 -0
  185. package/build/esm/src/utils/markets/api.js +9 -0
  186. package/build/esm/src/utils/{marketKeysAndConfigs.js → markets/hashKeys.js} +30 -2
  187. package/build/esm/src/utils/markets/index.js +5 -0
  188. package/build/esm/src/{modules/markets/query-builders.js → utils/markets/multicall.js} +146 -41
  189. package/build/esm/src/utils/markets/utils.js +364 -0
  190. package/build/esm/src/utils/numbers/index.js +1 -0
  191. package/build/esm/src/utils/{numbers.js → numbers/utils.js} +8 -3
  192. package/build/esm/src/utils/objects/index.js +1 -0
  193. package/build/esm/src/utils/{objects.js → objects/utils.js} +7 -0
  194. package/build/esm/src/utils/orderTransactions/index.js +1 -0
  195. package/build/esm/src/utils/{orderTransactions.js → orderTransactions/utils.js} +14 -14
  196. package/build/esm/src/utils/orders/index.js +2 -0
  197. package/build/esm/src/utils/{orders.js → orders/utils.js} +8 -8
  198. package/build/esm/src/utils/positions/index.js +2 -0
  199. package/build/esm/src/utils/{positions.js → positions/utils.js} +6 -6
  200. package/build/esm/src/utils/prices/index.js +1 -0
  201. package/build/esm/src/utils/{prices.js → prices/utils.js} +7 -7
  202. package/build/esm/src/utils/referrals/index.js +2 -0
  203. package/build/esm/src/utils/sidecarOrders/index.js +1 -0
  204. package/build/esm/src/utils/swap/__tests__/findSwapPathsBetweenTokens.spec.js +22 -0
  205. package/build/esm/src/utils/swap/__tests__/mockRouting.spec.js +258 -1
  206. package/build/esm/src/utils/swap/__tests__/swapRouting.spec.js +1 -1
  207. package/build/esm/src/utils/swap/__tests__/swapStats.spec.js +1 -1
  208. package/build/esm/src/utils/swap/botanixStaking.js +1 -1
  209. package/build/esm/src/utils/swap/buildSwapStrategy.js +14 -6
  210. package/build/esm/src/utils/swap/externalSwapPath.js +1 -1
  211. package/build/esm/src/utils/swap/externalSwapQuoteByPath.js +1 -1
  212. package/build/esm/src/utils/swap/findSwapPathsBetweenTokens.js +8 -4
  213. package/build/esm/src/utils/swap/index.js +12 -0
  214. package/build/esm/src/utils/swap/swapPath.js +1 -1
  215. package/build/esm/src/utils/swap/swapValues.js +15 -8
  216. package/build/esm/src/utils/time/index.js +1 -0
  217. package/build/esm/src/utils/tokens/index.js +2 -0
  218. package/build/esm/src/utils/{tokens.js → tokens/utils.js} +4 -4
  219. package/build/esm/src/utils/trade/decrease.js +1 -1
  220. package/build/esm/src/utils/trade/increase.js +4 -1
  221. package/build/esm/src/utils/trade/index.js +3 -0
  222. package/build/esm/src/utils/trade/trade.js +2 -2
  223. package/build/esm/src/utils/tradeHistory/index.js +2 -0
  224. package/build/esm/src/utils/{tradeHistory.js → tradeHistory/utils.js} +4 -4
  225. package/build/esm/src/utils/twap/index.js +1 -0
  226. package/build/esm/src/utils/types/index.js +3 -0
  227. package/build/types/scripts/subsquid-codegen.d.ts +3 -0
  228. package/build/types/src/clients/v1/callContract.d.ts +7 -0
  229. package/build/types/src/{index.d.ts → clients/v1/index.d.ts} +3 -3
  230. package/build/types/src/{modules → clients/v1/modules}/markets/index.d.ts +12 -1
  231. package/build/types/src/{modules → clients/v1/modules}/oracle.d.ts +1 -1
  232. package/build/types/src/{modules → clients/v1/modules}/orders/helpers.d.ts +3 -3
  233. package/build/types/src/{modules → clients/v1/modules}/orders/orders.d.ts +5 -5
  234. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createDecreaseOrderTxn.d.ts +2 -2
  235. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createIncreaseOrderTxn.d.ts +4 -4
  236. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createSwapOrderTxn.d.ts +2 -2
  237. package/build/types/src/{modules → clients/v1/modules}/orders/transactions/updateOrderTxn.d.ts +1 -1
  238. package/build/types/src/{modules → clients/v1/modules}/orders/utils.d.ts +8 -8
  239. package/build/types/src/{modules → clients/v1/modules}/positions/positions.d.ts +4 -4
  240. package/build/types/src/{modules → clients/v1/modules}/tokens/tokens.d.ts +1 -1
  241. package/build/types/src/{modules → clients/v1/modules}/trades/trades.d.ts +4 -4
  242. package/build/types/src/{modules → clients/v1/modules}/utils/utils.d.ts +4 -4
  243. package/build/types/src/{utils → clients/v1}/multicall.d.ts +4 -4
  244. package/build/types/src/{utils → clients/v1}/simulateExecuteOrder.d.ts +3 -3
  245. package/build/types/src/{utils → clients/v1}/testUtil.d.ts +2 -2
  246. package/build/types/src/{types/sdk.d.ts → clients/v1/types.d.ts} +3 -3
  247. package/build/types/src/clients/v2/index.d.ts +13 -0
  248. package/build/types/src/codegen/prebuilt/index.d.ts +13636 -0
  249. package/build/types/src/{types → codegen}/subsquid.d.ts +13 -0
  250. package/build/types/src/configs/api.d.ts +1 -0
  251. package/build/types/src/configs/chains.d.ts +26 -2
  252. package/build/types/src/configs/dataStore.d.ts +1 -0
  253. package/build/types/src/configs/express.d.ts +1 -1
  254. package/build/types/src/configs/gasLimits.d.ts +1 -1
  255. package/build/types/src/configs/markets.d.ts +1 -1
  256. package/build/types/src/configs/multichain.d.ts +6 -3
  257. package/build/types/src/configs/tokens.d.ts +1 -1
  258. package/build/types/src/test/mock.d.ts +3 -7
  259. package/build/types/src/utils/24h/index.d.ts +1 -0
  260. package/build/types/src/utils/24h/types.d.ts +7 -0
  261. package/build/types/src/utils/LruCache/index.d.ts +1 -0
  262. package/build/types/src/utils/abort/index.d.ts +1 -0
  263. package/build/types/src/utils/bigmath/index.d.ts +1 -0
  264. package/build/types/src/utils/buildUrl/index.d.ts +1 -0
  265. package/build/types/src/utils/chains/index.d.ts +1 -0
  266. package/build/types/src/utils/common/index.d.ts +1 -0
  267. package/build/types/src/utils/{common.d.ts → common/utils.d.ts} +0 -1
  268. package/build/types/src/utils/fees/executionFee.d.ts +3 -3
  269. package/build/types/src/utils/fees/getNaiveEstimatedGasBySwapCount.d.ts +1 -1
  270. package/build/types/src/utils/fees/index.d.ts +10 -13
  271. package/build/types/src/utils/fees/priceImpact.d.ts +3 -3
  272. package/build/types/src/{types/fees.d.ts → utils/fees/types.d.ts} +2 -2
  273. package/build/types/src/utils/gelatoRelay/index.d.ts +1 -0
  274. package/build/types/src/utils/graphqlFetcher/index.d.ts +1 -0
  275. package/build/types/src/utils/hash/index.d.ts +1 -0
  276. package/build/types/src/utils/http/http.d.ts +9 -0
  277. package/build/types/src/utils/http/types.d.ts +7 -0
  278. package/build/types/src/utils/indexers/index.d.ts +1 -0
  279. package/build/types/src/utils/markets/__tests__/mockMarkets.d.ts +9 -0
  280. package/build/types/src/utils/markets/api.d.ts +9 -0
  281. package/build/types/src/utils/markets/hashKeys.d.ts +23 -0
  282. package/build/types/src/utils/markets/index.d.ts +5 -0
  283. package/build/types/src/utils/markets/multicall.d.ts +25 -0
  284. package/build/types/src/{types/markets.d.ts → utils/markets/types.d.ts} +64 -1
  285. package/build/types/src/utils/markets/utils.d.ts +122 -0
  286. package/build/types/src/utils/numbers/index.d.ts +1 -0
  287. package/build/types/src/utils/{numbers.d.ts → numbers/utils.d.ts} +3 -1
  288. package/build/types/src/utils/objects/index.d.ts +1 -0
  289. package/build/types/src/utils/{objects.d.ts → objects/utils.d.ts} +1 -0
  290. package/build/types/src/utils/orderTransactions/index.d.ts +1 -0
  291. package/build/types/src/utils/{orderTransactions.d.ts → orderTransactions/utils.d.ts} +6 -6
  292. package/build/types/src/utils/orders/index.d.ts +2 -0
  293. package/build/types/src/{types/orders.d.ts → utils/orders/types.d.ts} +3 -3
  294. package/build/types/src/utils/{orders.d.ts → orders/utils.d.ts} +3 -3
  295. package/build/types/src/utils/positions/index.d.ts +2 -0
  296. package/build/types/src/{types/positions.d.ts → utils/positions/types.d.ts} +2 -2
  297. package/build/types/src/utils/{positions.d.ts → positions/utils.d.ts} +4 -4
  298. package/build/types/src/utils/prices/index.d.ts +1 -0
  299. package/build/types/src/utils/{prices.d.ts → prices/utils.d.ts} +4 -4
  300. package/build/types/src/utils/referrals/index.d.ts +2 -0
  301. package/build/types/src/utils/sidecarOrders/index.d.ts +1 -0
  302. package/build/types/src/{types/sidecarOrders.d.ts → utils/sidecarOrders/types.d.ts} +2 -2
  303. package/build/types/src/utils/swap/botanixStaking.d.ts +2 -2
  304. package/build/types/src/utils/swap/buildSwapStrategy.d.ts +9 -7
  305. package/build/types/src/utils/swap/externalSwapPath.d.ts +1 -1
  306. package/build/types/src/utils/swap/externalSwapQuoteByPath.d.ts +1 -1
  307. package/build/types/src/utils/swap/findSwapPathsBetweenTokens.d.ts +1 -1
  308. package/build/types/src/utils/swap/index.d.ts +12 -0
  309. package/build/types/src/utils/swap/preparedSwapData.d.ts +1 -1
  310. package/build/types/src/utils/swap/swapPath.d.ts +6 -6
  311. package/build/types/src/utils/swap/swapRouting.d.ts +5 -5
  312. package/build/types/src/utils/swap/swapStats.d.ts +3 -3
  313. package/build/types/src/utils/swap/swapValues.d.ts +6 -4
  314. package/build/types/src/{types/swapStrategy.d.ts → utils/swap/types.d.ts} +1 -1
  315. package/build/types/src/utils/time/index.d.ts +1 -0
  316. package/build/types/src/utils/tokens/index.d.ts +2 -0
  317. package/build/types/src/{types/tokens.d.ts → utils/tokens/types.d.ts} +0 -3
  318. package/build/types/src/utils/{tokens.d.ts → tokens/utils.d.ts} +2 -2
  319. package/build/types/src/utils/trade/decrease.d.ts +5 -5
  320. package/build/types/src/utils/trade/increase.d.ts +5 -5
  321. package/build/types/src/utils/trade/index.d.ts +3 -0
  322. package/build/types/src/utils/trade/trade.d.ts +1 -1
  323. package/build/types/src/{types/trade.d.ts → utils/trade/types.d.ts} +4 -4
  324. package/build/types/src/utils/tradeHistory/index.d.ts +2 -0
  325. package/build/types/src/{types/tradeHistory.d.ts → utils/tradeHistory/types.d.ts} +3 -3
  326. package/build/types/src/utils/{tradeHistory.d.ts → tradeHistory/utils.d.ts} +4 -4
  327. package/build/types/src/utils/twap/index.d.ts +3 -2
  328. package/build/types/src/utils/{types.d.ts → types/index.d.ts} +0 -1
  329. package/package.json +286 -32
  330. package/build/cjs/src/modules/markets/index.js +0 -366
  331. package/build/cjs/src/prebuilt/index.js +0 -15
  332. package/build/cjs/src/utils/markets.js +0 -195
  333. package/build/cjs/src/utils/types.js +0 -13
  334. package/build/esm/src/modules/markets/index.js +0 -359
  335. package/build/esm/src/prebuilt/index.js +0 -7
  336. package/build/esm/src/utils/markets.js +0 -171
  337. package/build/esm/src/utils/types.js +0 -8
  338. package/build/types/src/modules/markets/query-builders.d.ts +0 -42
  339. package/build/types/src/modules/markets/types.d.ts +0 -51
  340. package/build/types/src/prebuilt/index.d.ts +0 -24
  341. package/build/types/src/types/common.d.ts +0 -1
  342. package/build/types/src/utils/callContract.d.ts +0 -17
  343. package/build/types/src/utils/marketKeysAndConfigs.d.ts +0 -73
  344. package/build/types/src/utils/markets.d.ts +0 -58
  345. /package/build/cjs/src/{modules → clients/v1/modules}/base.js +0 -0
  346. /package/build/cjs/src/{modules/markets → clients/v1}/types.js +0 -0
  347. /package/build/cjs/src/{types → codegen}/subsquid.js +0 -0
  348. /package/build/cjs/src/{types/chains.js → utils/24h/types.js} +0 -0
  349. /package/build/cjs/src/utils/{LruCache.js → LruCache/utils.js} +0 -0
  350. /package/build/cjs/src/utils/{abort.js → abort/utils.js} +0 -0
  351. /package/build/cjs/src/utils/{bigmath.js → bigmath/utils.js} +0 -0
  352. /package/build/cjs/src/utils/{buildUrl.js → buildUrl/utils.js} +0 -0
  353. /package/build/cjs/src/{types/common.js → utils/chains/types.js} +0 -0
  354. /package/build/cjs/src/{types/fees.js → utils/fees/types.js} +0 -0
  355. /package/build/cjs/src/utils/{gelatoRelay.js → gelatoRelay/utils.js} +0 -0
  356. /package/build/cjs/src/utils/{graphqlFetcher.js → graphqlFetcher/utils.js} +0 -0
  357. /package/build/cjs/src/{types/markets.js → utils/http/types.js} +0 -0
  358. /package/build/cjs/src/{types/positions.js → utils/markets/types.js} +0 -0
  359. /package/build/cjs/src/{types/orders.js → utils/orders/types.js} +0 -0
  360. /package/build/cjs/src/{types/sdk.js → utils/positions/types.js} +0 -0
  361. /package/build/cjs/src/{types/referrals.js → utils/referrals/types.js} +0 -0
  362. /package/build/cjs/src/utils/{referrals.js → referrals/utils.js} +0 -0
  363. /package/build/cjs/src/{types/sidecarOrders.js → utils/sidecarOrders/types.js} +0 -0
  364. /package/build/cjs/src/{types/swapStrategy.js → utils/swap/types.js} +0 -0
  365. /package/build/cjs/src/utils/{time.js → time/utils.js} +0 -0
  366. /package/build/cjs/src/{types/tokens.js → utils/tokens/types.js} +0 -0
  367. /package/build/cjs/src/{types/trade.js → utils/trade/types.js} +0 -0
  368. /package/build/cjs/src/{types/tradeHistory.js → utils/tradeHistory/types.js} +0 -0
  369. /package/build/cjs/src/{types/twap.js → utils/twap/types.js} +0 -0
  370. /package/build/esm/src/{modules → clients/v1/modules}/base.js +0 -0
  371. /package/build/esm/src/{modules/markets → clients/v1}/types.js +0 -0
  372. /package/build/esm/src/{types → codegen}/subsquid.js +0 -0
  373. /package/build/esm/src/{types/chains.js → utils/24h/types.js} +0 -0
  374. /package/build/esm/src/utils/{LruCache.js → LruCache/utils.js} +0 -0
  375. /package/build/esm/src/utils/{abort.js → abort/utils.js} +0 -0
  376. /package/build/esm/src/utils/{bigmath.js → bigmath/utils.js} +0 -0
  377. /package/build/esm/src/utils/{buildUrl.js → buildUrl/utils.js} +0 -0
  378. /package/build/esm/src/{types/common.js → utils/chains/types.js} +0 -0
  379. /package/build/esm/src/{types/fees.js → utils/fees/types.js} +0 -0
  380. /package/build/esm/src/utils/{gelatoRelay.js → gelatoRelay/utils.js} +0 -0
  381. /package/build/esm/src/utils/{graphqlFetcher.js → graphqlFetcher/utils.js} +0 -0
  382. /package/build/esm/src/{types/markets.js → utils/http/types.js} +0 -0
  383. /package/build/esm/src/{types/positions.js → utils/markets/types.js} +0 -0
  384. /package/build/esm/src/{types/orders.js → utils/orders/types.js} +0 -0
  385. /package/build/esm/src/{types/sdk.js → utils/positions/types.js} +0 -0
  386. /package/build/esm/src/{types/referrals.js → utils/referrals/types.js} +0 -0
  387. /package/build/esm/src/utils/{referrals.js → referrals/utils.js} +0 -0
  388. /package/build/esm/src/{types/sidecarOrders.js → utils/sidecarOrders/types.js} +0 -0
  389. /package/build/esm/src/{types/swapStrategy.js → utils/swap/types.js} +0 -0
  390. /package/build/esm/src/utils/{time.js → time/utils.js} +0 -0
  391. /package/build/esm/src/{types/tokens.js → utils/tokens/types.js} +0 -0
  392. /package/build/esm/src/{types/trade.js → utils/trade/types.js} +0 -0
  393. /package/build/esm/src/{types/tradeHistory.js → utils/tradeHistory/types.js} +0 -0
  394. /package/build/esm/src/{types/twap.js → utils/twap/types.js} +0 -0
  395. /package/build/types/src/{modules → clients/v1/modules}/accounts/accounts.d.ts +0 -0
  396. /package/build/types/src/{modules → clients/v1/modules}/accounts/accounts.spec.d.ts +0 -0
  397. /package/build/types/src/{modules → clients/v1/modules}/base.d.ts +0 -0
  398. /package/build/types/src/{modules → clients/v1/modules}/markets/markets.spec.d.ts +0 -0
  399. /package/build/types/src/{modules → clients/v1/modules}/orders/helpers.spec.d.ts +0 -0
  400. /package/build/types/src/{modules → clients/v1/modules}/orders/orders.spec.d.ts +0 -0
  401. /package/build/types/src/{modules → clients/v1/modules}/orders/transactions/cancelOrdersTxn.d.ts +0 -0
  402. /package/build/types/src/{modules → clients/v1/modules}/orders/transactions/createWrapOrUnwrapTxn.d.ts +0 -0
  403. /package/build/types/src/{modules → clients/v1/modules}/positions/positions.spec.d.ts +0 -0
  404. /package/build/types/src/{modules → clients/v1/modules}/tokens/tokens.spec.d.ts +0 -0
  405. /package/build/types/src/{modules → clients/v1/modules}/trades/trades.spec.d.ts +0 -0
  406. /package/build/types/src/utils/{LruCache.d.ts → LruCache/utils.d.ts} +0 -0
  407. /package/build/types/src/utils/{abort.d.ts → abort/utils.d.ts} +0 -0
  408. /package/build/types/src/utils/{bigmath.d.ts → bigmath/utils.d.ts} +0 -0
  409. /package/build/types/src/utils/{buildUrl.d.ts → buildUrl/utils.d.ts} +0 -0
  410. /package/build/types/src/{types/chains.d.ts → utils/chains/types.d.ts} +0 -0
  411. /package/build/types/src/utils/{gelatoRelay.d.ts → gelatoRelay/utils.d.ts} +0 -0
  412. /package/build/types/src/utils/{graphqlFetcher.d.ts → graphqlFetcher/utils.d.ts} +0 -0
  413. /package/build/types/src/utils/{hash.d.ts → hash/utils.d.ts} +0 -0
  414. /package/build/types/src/utils/{indexers.d.ts → indexers/utils.d.ts} +0 -0
  415. /package/build/types/src/{types/referrals.d.ts → utils/referrals/types.d.ts} +0 -0
  416. /package/build/types/src/utils/{referrals.d.ts → referrals/utils.d.ts} +0 -0
  417. /package/build/types/src/utils/{time.d.ts → time/utils.d.ts} +0 -0
  418. /package/build/types/src/{types/twap.d.ts → utils/twap/types.d.ts} +0 -0
@@ -6841,6 +6841,291 @@
6841
6841
  "virtualMarketId": "0x29d0856f1f93b7379ccb047a97f9c040c0eeba0b56cfe885fefbf17cd08c5dcc",
6842
6842
  "virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
6843
6843
  "virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
6844
+ },
6845
+ "0xfa19f7d23a475575BD0270AE7de4FC6852442945": {
6846
+ "isDisabled": "0xd5e8e99903d1982ff2f0aba73d43f3147e49859ab324b93754bbe3a8d4e0bd18",
6847
+ "maxLongPoolAmount": "0xa2202520e24528b697fd0a585d61e8ff2ef6ff773272553d3d6fc6b1d4f37e9f",
6848
+ "maxShortPoolAmount": "0x0ef5e1c146eb47a40b09c13e5bc1424cfbd0964d4351591f6bcfe829dbb23d3b",
6849
+ "maxLongPoolUsdForDeposit": "0xc9743a9f1c8fc8309a3708e9989f2c00089ce6c4194154b4dccc57dc85e96e56",
6850
+ "maxShortPoolUsdForDeposit": "0xe62ef6b7962a06d4a1617f870e0e0f1052d134def6badf75fcc7b9955d6c1a75",
6851
+ "reserveFactorLong": "0x620e26d53f8f7e6b05ae162196778239aa6e84c58f262307ca12da9e344df231",
6852
+ "reserveFactorShort": "0x235b8e593ae705c4ed7f6bda09b23b6ae92bf2bc202cacb3f542274ab9043173",
6853
+ "openInterestReserveFactorLong": "0xb581454711311d0c006aa8865bf61fea3b6b1e336813417574ffc01ad05285b9",
6854
+ "openInterestReserveFactorShort": "0x8fff399ded7ecb649c133b63641d6946f20b1ee0f84c02f434babfa04b702e26",
6855
+ "maxOpenInterestLong": "0xe40cee9911e9fa24e37778f80ca292a397b1d35f3c472c7aec980f828c73b544",
6856
+ "maxOpenInterestShort": "0xce0149bcc98acb7071b33d6b7bb0251d886f6da38e490f3aa554a909171f1f70",
6857
+ "minPositionImpactPoolAmount": "0x930df6864a5f9a0fcafb4f2c11810c174a00bad90034aa7b5743e35f83208d56",
6858
+ "positionImpactPoolDistributionRate": "0xa8df2a71ee5c773d44d01c8a6baa65433a7dd4a77b2ab8d1c1373f6cd02eda51",
6859
+ "borrowingFactorLong": "0x09d9d0ef4ca5ede613a1ce1cc1e017284da69f0ab97a916f6dfa948bb87c4505",
6860
+ "borrowingFactorShort": "0x1557c62c7ed32c456c4618d6e9b1caee61f01f76782d7d1241f997b264439996",
6861
+ "borrowingExponentFactorLong": "0x98c46b7cbc21068b7de90510cb9aa2627dbfbf94d845d188671f7f3adc88301b",
6862
+ "borrowingExponentFactorShort": "0x9f7a0a3e1fe4986b0fb2b2760943fe035df89c44af8c0228b677a15e6b46bf8e",
6863
+ "fundingFactor": "0x10c60267741e2ef993e2507e3b5024e126ddc3ef51099e3d4fc482f87d483eaa",
6864
+ "fundingExponentFactor": "0xf641f785aa8769483aaad5aad662a71034f092f6bc3db69a23d359618da5ec5d",
6865
+ "fundingIncreaseFactorPerSecond": "0xa9b29dfc5f94ff2d153424541c72ffaebb50b6a3bb0b3bfa4e7902469c9a7390",
6866
+ "fundingDecreaseFactorPerSecond": "0x8d075d81bb8240a8660e865e569bbd8494331893d5756864a4f9eabf56b7f278",
6867
+ "thresholdForStableFunding": "0x9da49f83985f2faafbe252d0a56335fa423dc3d94a4a67ac2020e5fd08f1d095",
6868
+ "thresholdForDecreaseFunding": "0xad6af882638705490c8d04088aeb7e42aef8ba347abb10b4e4c26c1cc687f44b",
6869
+ "minFundingFactorPerSecond": "0xfd964a3a29fd424d7311a4786af02acf183b322db770989652382df7eb79c27c",
6870
+ "maxFundingFactorPerSecond": "0xdb6dd86d16d888da748656220c63ae92a5cc3fd6a6194a4d554400774d6afaae",
6871
+ "maxPnlFactorForTradersLong": "0x4c6b0712ce919d6bfd40cdb7b44a0626834cdded8ff7d62e6f13a7b37539a3ec",
6872
+ "maxPnlFactorForTradersShort": "0x7a036a74b7f2d5b0de6664548cb1f0e024eb3ad9d53ac45a78760d9d0f1e6cb9",
6873
+ "positionFeeFactorForBalanceWasImproved": "0x6660243175177b85fd48e65e1244f37572795637397bba063123ea360e5a5c5b",
6874
+ "positionFeeFactorForBalanceWasNotImproved": "0xb60397cd8ad1d71c9dfc16f41435e052cde83256e6b5880dba330c4105dfc82e",
6875
+ "positionImpactFactorPositive": "0xf842ad333dda146aeba1e5e9e4fb92ee0dbaea6f15dcbf42cdcb1220e587df13",
6876
+ "positionImpactFactorNegative": "0x58928bb0a4feb981ad70e012a093481289b1a37e40cf3e73cc94e9be0140f582",
6877
+ "maxPositionImpactFactorPositive": "0xefff39677d312cc3f0ca2906c3261831c47e80c301ca7d8f3622b3605304a5fe",
6878
+ "maxPositionImpactFactorNegative": "0x10c1b26a7fa0be0087f098496ff25cf4d97ce2f01473be115b264364bc275c16",
6879
+ "maxPositionImpactFactorForLiquidations": "0x7567eeea7476254dd0927fe2eaf2e0e70c4bd023f7326e487195e1f64a176c7c",
6880
+ "maxLendableImpactFactor": "0x8788593a098636f3ea848abe5d68cfc082c5cf1f07bea795021bf90262e04c1b",
6881
+ "maxLendableImpactFactorForWithdrawals": "0xa375149ade8e9a09eaa2611518071a5e500602170c72b6b60687c9734783800e",
6882
+ "maxLendableImpactUsd": "0x85b6175fb88dc9e634170d7f79074742cd30d453c7a8144d7479ea8487155ecb",
6883
+ "lentPositionImpactPoolAmount": "0x29f93bcafe5b965c799d12daf4da6b16d57735f0fef150cc341b8214fe2c59f0",
6884
+ "minCollateralFactor": "0x4e740b8bbbb18eacbe5a698ae895b047098a052c5c3a345abb94f5dcf8160ffb",
6885
+ "minCollateralFactorForLiquidation": "0xf821ca416c334937aad973b4f66c503a66f436b02f1a58006cda3490b6221cb2",
6886
+ "minCollateralFactorForOpenInterestLong": "0x496ede699192830a13f59e9f59b75bc80c980380d0518a9699227326b900c59a",
6887
+ "minCollateralFactorForOpenInterestShort": "0x091c1e021dfc4201a8f5bb9bf9beb778369ee56e7bae2e89d9439b9f681b5d3d",
6888
+ "positionImpactExponentFactorPositive": "0x92a3eecd803e5d8b5804ffa4fa9cbf4b5222436e7aa19595ae59ca4f160d8b2f",
6889
+ "positionImpactExponentFactorNegative": "0xce312f9476c39d5332c932ac3a5f8f17a315621fc2f0e98077294b1096e1e3b8",
6890
+ "swapFeeFactorForBalanceWasImproved": "0x33e6b4f6fd5753a8687a70c01cb7c4d83e63c09af7a6951fbf2dddfa3ad19f91",
6891
+ "swapFeeFactorForBalanceWasNotImproved": "0x175c296e249535a7e8a54867958f88787a2b78dd1bdbdfc000e633ddd4266bdc",
6892
+ "atomicSwapFeeFactor": "0x89e54dc6fdd123c1f9307b504f787cb6cd949a0f06fc65fffa6128ff77876077",
6893
+ "swapImpactFactorPositive": "0x9ee7bc76e5eb44d9bb0d6fa6a6a5cee3c542d5dce6949b35dd01cd55bb445429",
6894
+ "swapImpactFactorNegative": "0xa4bdd4537072f9bb0f9878a4cf85ef22e17585e6f3336cc2a4b6da06cdb128e5",
6895
+ "swapImpactExponentFactor": "0x79adf0f2914fdac816c5c1838afe70302db4da430c87d737ba137f275155ffde",
6896
+ "withdrawalFeeFactorBalanceWasImproved": "0xf9a01e0d42a4b2122d6ea74eccdfa9d97e016cffd55b487cff522e41cecf21bf",
6897
+ "withdrawalFeeFactorBalanceWasNotImproved": "0x2eb49baa316249d31b76d8bc7cb9508f2990f9289c36565df394821e4bcccf00",
6898
+ "virtualMarketId": "0xf2e55d7f8d06ca77e66806915651699ab539b969f3006bda6e38e92d215ca48b",
6899
+ "virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
6900
+ "virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
6901
+ },
6902
+ "0x728Ff0679c89267434D6EF1824c8C8eED4aC3DBC": {
6903
+ "isDisabled": "0x70de91b53a1934aa462917d6aa24257bf4d87b9b37b221802f7eb0464f4717b8",
6904
+ "maxLongPoolAmount": "0x83c69bf4e33e4384abe6eb915bebf6b34b657cb8f1d2156947778a525ccc5bd8",
6905
+ "maxShortPoolAmount": "0x2feff46ea77e7c4dd80ecb78437e5ce4e92642243d00201eac112a60f344d674",
6906
+ "maxLongPoolUsdForDeposit": "0x315c7e813f1accb339e256089a50fa25c4333d0e8cbf231fc876a8791f6151e9",
6907
+ "maxShortPoolUsdForDeposit": "0xa97c12bf04505c00cfa6f0103998e7d1eec49fbd8328be93f7a5379b828fbb22",
6908
+ "reserveFactorLong": "0x27b121b177d25cdc789be676d4007546b9270bce344610a7cd0cc14bd1e8eced",
6909
+ "reserveFactorShort": "0x427354ac44421fa2066d11f765b15e9dd58216c1073b27998e0921abb768a15b",
6910
+ "openInterestReserveFactorLong": "0xbb93359bf1731a0a15bbb14137ee69859b3397f72983d7ed292dcfe326b70bab",
6911
+ "openInterestReserveFactorShort": "0xa227c5473ecc94a200978b022dce4aa05c4bd2f4d75b8f54a18619159340fcfc",
6912
+ "maxOpenInterestLong": "0x00943337e3c3d6b4d768eb2edfdcddf694306ca45ccc77ba0602b316551852b5",
6913
+ "maxOpenInterestShort": "0x993b73451a60adb37385d0c6041d1d539ae20ec2d53f94c6c5473c3a46243fb4",
6914
+ "minPositionImpactPoolAmount": "0x69c7ac77ba8f268f9ebae7b7204839cf0d9b4eb38277b8eaa768bb6df6387cba",
6915
+ "positionImpactPoolDistributionRate": "0xa11c3177cdada7ed51439cad267e4dbde153affab9b55e33de8ecf6283e26a70",
6916
+ "borrowingFactorLong": "0x94f296bd09b822cc927cd6d232109ee0a9c1a6e25abb5cf6ee71522737daf318",
6917
+ "borrowingFactorShort": "0x68a5a9f03ec16775df8511de1600783afca89ef1b1cb0e10ba45b75503168993",
6918
+ "borrowingExponentFactorLong": "0x338c89a4a0cf06859425ef4c9353a20e9e3081c123cffe681c0256097edb6262",
6919
+ "borrowingExponentFactorShort": "0xdca7e1ab5bf64ffaca9d0667566fa998b53353d056ba3bc3dbc5434d7e9c0acb",
6920
+ "fundingFactor": "0xc31d7be53e98aed1f5142755b8aea4e843aba4935314c0b03d2d70f6e6ec777a",
6921
+ "fundingExponentFactor": "0x0cf314284361fdbe833f2e5e1138ef1cfe5da057e737018f6631222fb716b786",
6922
+ "fundingIncreaseFactorPerSecond": "0x6160415f6e23b49e56fe132cb7a6a68c4749974e54a39223aa0fdea71808c715",
6923
+ "fundingDecreaseFactorPerSecond": "0x2c91b6083a90fa62714cc17dc2fa03d6c407949257724768240ba2024e30507f",
6924
+ "thresholdForStableFunding": "0x1177162fc7a00382876ca5e394121a9a77e446e588ee93db1de51f0cf01c1cce",
6925
+ "thresholdForDecreaseFunding": "0x332634d54b35228b50bfc97911c0f723afbd0121b7b01b314678ab950e8365bf",
6926
+ "minFundingFactorPerSecond": "0x58f484c817a49b11b50a38c89439f226178aede34d74049b7962d45bee3ee4dd",
6927
+ "maxFundingFactorPerSecond": "0x106c1aadfbd3fc1b49e56fb9069429e143ad8828fb13e0398c5783c3cebf5bf9",
6928
+ "maxPnlFactorForTradersLong": "0x9339a5663da393291a2a1b3bf52928903960ccc4178555a1598dede3a192c819",
6929
+ "maxPnlFactorForTradersShort": "0x419e632bea5daaba9fd0348056db4cbbaad7350e03b5ee00c30e03fcfa59e01b",
6930
+ "positionFeeFactorForBalanceWasImproved": "0x17350baa4219e0a8824cc80acf3b8b0afc8d3498c0aea535614567b9af8e0815",
6931
+ "positionFeeFactorForBalanceWasNotImproved": "0xf96849d122eaaea447f70ce4945e2baef78fe2a8f66d2617cabc255532f94f7f",
6932
+ "positionImpactFactorPositive": "0x9aed3a45fb7a97bec6d2cef49bbecaf2357e1cc3a7a022b7cdc2ad96d7dc9057",
6933
+ "positionImpactFactorNegative": "0x597f3ba76a793f677baa72f892738ac28ecbe2cae7124213d165d5280a1367fb",
6934
+ "maxPositionImpactFactorPositive": "0x75ed394aece4523cb6c4efd2eb58b40805cd8f87a3708d37259895061c4a10df",
6935
+ "maxPositionImpactFactorNegative": "0x9e8a2be607db00fe7cc9a216860ad595216f6a384bfd798e103b22d48fa10cef",
6936
+ "maxPositionImpactFactorForLiquidations": "0xf89da578fff364716d1e90e9bfdd9eb0ec9567996dee0c899946862664b4cb6c",
6937
+ "maxLendableImpactFactor": "0x9d4e2046acc7f32e21a1ae69f3910612a28a4040522fcd59503ed190e8e6e724",
6938
+ "maxLendableImpactFactorForWithdrawals": "0xce9dcc91ccb27a635517cb76ec9f9c1045f708dc5bb054291583d2d7f499a0a7",
6939
+ "maxLendableImpactUsd": "0xc93f46fdda86565e4b3585a561143c4790a86c6274d7df3ec09bf8e312bd7366",
6940
+ "lentPositionImpactPoolAmount": "0xdd70e5f3b2a1804887d983bede73967f45100144a44cf62200b6d8b6f4080521",
6941
+ "minCollateralFactor": "0x91db5bfec4dd26ed41bda2e716e2ee62a6e599f0442271d800a025305b7c5b86",
6942
+ "minCollateralFactorForLiquidation": "0x7045dad6c0614066012493aee9751576547b19f371519339989f1ff036d66d94",
6943
+ "minCollateralFactorForOpenInterestLong": "0x44729ff6da0b28ddf6e0c17fe00fd325d77f46122166fa231ed2ecd1eac8800d",
6944
+ "minCollateralFactorForOpenInterestShort": "0x0ff2f958ab14d0ca729ddb7eceac1a63e1e5fd66796d7b5096a1b2b5a7d52417",
6945
+ "positionImpactExponentFactorPositive": "0x235c4008238097757e20dd21338bf2040c4afd16eda0bdba7b71c410e8878f49",
6946
+ "positionImpactExponentFactorNegative": "0x82136a23c8005eaa1255397749ae751f282369b6dd5a88a83ce2c02a679b7cee",
6947
+ "swapFeeFactorForBalanceWasImproved": "0x335c54b4296c7717b3da22c577d34f1463c33b8356b4ac872611de8d73396617",
6948
+ "swapFeeFactorForBalanceWasNotImproved": "0x3adb8305cebbc8dee9591fa11bfeb0511843be67b2052c28b21bade3e1fb9257",
6949
+ "atomicSwapFeeFactor": "0x9b2db91336bb744fe730244408fb7b7b81ba08b130660c78efb136c5ed708495",
6950
+ "swapImpactFactorPositive": "0x67c57c197e27e8c046f195c25d1109fed6a00d63585ecaff60b0d16d6956b406",
6951
+ "swapImpactFactorNegative": "0xee3a76b26129dbae8b4e730fd77ca5a770cf5b9b26757b8fe97a8be643af8b5c",
6952
+ "swapImpactExponentFactor": "0xb7cc12ee3ae1ff6221c71bf8609d5164bbd92b7c437fa43f0df9cb3ea4f33c01",
6953
+ "withdrawalFeeFactorBalanceWasImproved": "0xfb149a72f73efb7d86ef3993d8336d68cdf49bad916ea492d1f5e370ac5fe05a",
6954
+ "withdrawalFeeFactorBalanceWasNotImproved": "0xdfc322fbd3fc5c4e5e7b8bac9e70b4d96133814122cb00971e18a528516cfd1f",
6955
+ "virtualMarketId": "0x1c3c6978286d02d913d36e5ef0e9a1720594f40ee13a58a33a53963423e89bb6",
6956
+ "virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
6957
+ "virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
6958
+ },
6959
+ "0x3B4689d69516b9D4b1aaf7545c6fC4d3ED70b70b": {
6960
+ "isDisabled": "0xeb6dc50e0b391f50e8b3e5607816ab325bfac4d751d238cafec85b586f72d42a",
6961
+ "maxLongPoolAmount": "0xb1939230afa46351eb2fad54a51aa2f196239b898ef3eea907010993bc2c5018",
6962
+ "maxShortPoolAmount": "0xc96ca68bb7fa5a48b0085b7fc3d5bd2ec36d8d2ff6ea81d1a1749e19e4acbdee",
6963
+ "maxLongPoolUsdForDeposit": "0xd98c3b04e91b92c6b03ca49c53d081bdfcb4ff7c6baaffc7645cf17304682a80",
6964
+ "maxShortPoolUsdForDeposit": "0xd15b1ebb74bf56745e26f1bd29fb2998d99f9b564a57c355af7d9f91742b3315",
6965
+ "reserveFactorLong": "0x718830b0ed8bc0e991aad9faded468c0ed44487e2c7c7096442558733e0a3c15",
6966
+ "reserveFactorShort": "0xfeb95f028671d1f174f32b4bb51d8a1d32234537f1614294117920e48855c6fa",
6967
+ "openInterestReserveFactorLong": "0x1f113928b17b711427ebe1d9f32ab52a73536b78e04841d6b3349142c5ab8173",
6968
+ "openInterestReserveFactorShort": "0xfa0282bdb86d089703b934383927d4e65c66fd69347d74641d992532907752d8",
6969
+ "maxOpenInterestLong": "0x0de48af48ef8449f3b4377876e0738f9be498e69c2100dfaa49a013f72a61acc",
6970
+ "maxOpenInterestShort": "0x28d1487b317050092284b3aca922574b7484c08919bfc90be285f9419ce254ea",
6971
+ "minPositionImpactPoolAmount": "0x6b5e33bf6c4d4b8eddc7656f9d0e5622537d286f134cde4c958a3678abc4c4cd",
6972
+ "positionImpactPoolDistributionRate": "0x86c19e3e733c7b8ab6440cede0f2f8c80992117535269bdfaf5f632c044a959d",
6973
+ "borrowingFactorLong": "0xf9372e70b835889a4eaadbce0a12b6f7b7f384252196ddf827029ddf2d4165a6",
6974
+ "borrowingFactorShort": "0x57b29f3eadb84c21c98005659ce7fe80e45e0d0e5e2e664a7a633f005b2952f3",
6975
+ "borrowingExponentFactorLong": "0x8b50d845f90fdcd56abf0b9006414dff11f816e034e6fd7a25c8a13b9bf7b61e",
6976
+ "borrowingExponentFactorShort": "0x975a2c9ba69259837d64609e2b70969f9eff8527824a9ead6930c1d8a9271f2e",
6977
+ "fundingFactor": "0xf48ad4a28097c244228f7696376686974851c6220e5f18a582b69fdb7195d6ee",
6978
+ "fundingExponentFactor": "0x3621a311f877a4d567d70f598ec8e9707ddb6c5271e306ae6fb1ce6d106cd290",
6979
+ "fundingIncreaseFactorPerSecond": "0x1e865193e452b2f67fae7dd8cb88b2f407251f5ba1d7ddbd41c888cd25921448",
6980
+ "fundingDecreaseFactorPerSecond": "0xb99734abdca8c116e20f97cad8aba55ca80b0ac3424e9a168f43d4d21d932485",
6981
+ "thresholdForStableFunding": "0x467c86ad87e2c9805153b9259d710f76aeda9461a96ed9e52be473f7fa1f4a82",
6982
+ "thresholdForDecreaseFunding": "0xbef0ee3c130853bb8ab1bebb452f31f0e00a09c2e050983b79d333bf0255d786",
6983
+ "minFundingFactorPerSecond": "0x7f0527996045a222a4deefc9ad5a53b3dcb33e7e6f662a8df9aa4ae4378d772f",
6984
+ "maxFundingFactorPerSecond": "0x43df0c88f8c0e125e81ff173f567aec54fce5e15c021b15721ba685b6fc4524b",
6985
+ "maxPnlFactorForTradersLong": "0xb263460050c4e7b041521bb01aeae878690bcac47f8738a237b37a964205d935",
6986
+ "maxPnlFactorForTradersShort": "0xfe4b19d8a75ebf2be379c287f869c0982a0d98022a35540756af6cb35acda5c7",
6987
+ "positionFeeFactorForBalanceWasImproved": "0x03993da92585905fc5a6a608f2ec097b415b688e6c477b2960cd1c64b13fbdca",
6988
+ "positionFeeFactorForBalanceWasNotImproved": "0xd7df052da016d0b4ac34197e282839387e8150c83769362b8a5782b8d57e2e06",
6989
+ "positionImpactFactorPositive": "0x6f3012140026a3df963c18bfe65bb32a00a5e1dd17d76f0a679f7560e0ac33b8",
6990
+ "positionImpactFactorNegative": "0x195621ce27d276f9275a3372501c2dc58258766b7ee39bd109878bba49f5b039",
6991
+ "maxPositionImpactFactorPositive": "0x12675ce9de381210024e9c471506e5809ecdbdbd60b8a5abd03b76492294eb7a",
6992
+ "maxPositionImpactFactorNegative": "0xbc687d895e7acc02856de799533b883f0361264bc979798d07e59d44d12591a1",
6993
+ "maxPositionImpactFactorForLiquidations": "0x74567bd83a74dcec3f945f24c9d3d0e4128af161c52cd3e29d348771486e4d9a",
6994
+ "maxLendableImpactFactor": "0x0036c680733e841dfc25caffffcd1df282045d881322d11b41d848177cd2c593",
6995
+ "maxLendableImpactFactorForWithdrawals": "0xb5f2e2cb647cf162cccac2cf4bd56d2a44f17f89ad0bc60aefcd1f8b26c9735f",
6996
+ "maxLendableImpactUsd": "0x760f26b9e49a822da39a16610f1721963d429939c4506e295b76fa4aedf3dadf",
6997
+ "lentPositionImpactPoolAmount": "0x6e1e1226056a1ac4456a6aa086409579bd8740c819fe2f7bdf3640f377dc64bb",
6998
+ "minCollateralFactor": "0xe7a22c1ef9dd2449a55bc81f95aab5cc558b0f0578939ed931a08d5d66d1359b",
6999
+ "minCollateralFactorForLiquidation": "0x1c901a1574da770a7dad655c1dbe529c2cd0f2d9aecdb5ac622af0a6bb8d22be",
7000
+ "minCollateralFactorForOpenInterestLong": "0x5c9fdf06346ac113fb71a18a61a6234b8f27116aee07aec1edaa592a1d50596f",
7001
+ "minCollateralFactorForOpenInterestShort": "0x11988d657950a220cab26f5b9c63940f04bb00ecdedc4855c011b16ecac7048f",
7002
+ "positionImpactExponentFactorPositive": "0xe466968d2d9faebca2eeb99aa40799f8b5eb7369f4bdaf4235f4bac4a0c081e9",
7003
+ "positionImpactExponentFactorNegative": "0x1d597b773c69527916f97494658599a5c10a00b4332bff27fc8a38c99112414c",
7004
+ "swapFeeFactorForBalanceWasImproved": "0x615c73a8565974226cca26612a8ba378fac45992bdb959ad96baf17d5413677d",
7005
+ "swapFeeFactorForBalanceWasNotImproved": "0xd96c1d4a7fc9e00c6db80d7649e5435c4e8d115b3f8f6ec8031976c88de56bed",
7006
+ "atomicSwapFeeFactor": "0x42290097b4cf8e5e3a7bee1727f33a8e0124c11a3563ffc40298dad36d77e557",
7007
+ "swapImpactFactorPositive": "0xb47d5bc76b340aad1672ad411626ff0bf40cb4a78edaf8b0e5cf719589dc1fc2",
7008
+ "swapImpactFactorNegative": "0xaafc438d18210312abf86dfd410d5371571c8bbe1ab4fdf7024bba8254ac6eb4",
7009
+ "swapImpactExponentFactor": "0x4a456ec09bd6ff7d262a65cc8800ef18c3d4c3b875d3985d2379547c9d8b4fce",
7010
+ "withdrawalFeeFactorBalanceWasImproved": "0x18aee05a0674e86387f01986495c5a822b0082721d105151248168e261b0eafd",
7011
+ "withdrawalFeeFactorBalanceWasNotImproved": "0xc2743392729f14dfc9d475e9f5d63ce61aae4a8b4c24bf655f94ca25d17f1873",
7012
+ "virtualMarketId": "0xcefcccb17b721181e3fd4e3051bda14b562b8c889f97e774cffd4485adda7b92",
7013
+ "virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
7014
+ "virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
7015
+ },
7016
+ "0x8965e821c7C8c09c6eB3Cb9cCf7Eb6f386441EA2": {
7017
+ "isDisabled": "0x72da1255d5a5e539391a86d5c64df7a32ae77974f206c87c0fd5633a8b9620db",
7018
+ "maxLongPoolAmount": "0x62aff0731010e38295bbfcb385da983120f0cc510fcfd7abd2ab495545e275f2",
7019
+ "maxShortPoolAmount": "0x827162628b043cfc8cb2f2408daf282125038db151c8247683015fcb4c7d26ab",
7020
+ "maxLongPoolUsdForDeposit": "0x84133df0d4d0bdcb490031484c51cd7f8b606843fa698d0296cecf9c3a55458a",
7021
+ "maxShortPoolUsdForDeposit": "0xd56342eeb01e3b1ddd1519b2760f4a6c8ee9ad034447c40117ad751cabe37241",
7022
+ "reserveFactorLong": "0xa66031fe7f5e929cc3325c4802e98d2931770d99386c1c50eda7508fa930e688",
7023
+ "reserveFactorShort": "0x9dc7b7e5057323daefa57c5089b538b77a0c85ef6e14a46737cd76ce0dc8e263",
7024
+ "openInterestReserveFactorLong": "0x18dfa8d82417e716c88cde44beba5b71570ed06c65824b4bc615e6c1f27d6c5c",
7025
+ "openInterestReserveFactorShort": "0xfb6ea271cb85a8411b2b95b115af559b14a5c45cd1b6b66e923ad5e3c6d44329",
7026
+ "maxOpenInterestLong": "0xb68c26a0163ae38b4cadafe8ed92d6cc3b1f58b98abcabc8faa369e340d6dfc4",
7027
+ "maxOpenInterestShort": "0xf6051d1ca997724baa8576ccc68ee8d7d3bfd91a9dca7ff2952acefd5199260a",
7028
+ "minPositionImpactPoolAmount": "0x0677a53537cf26fc5beafecc288cd395a9c6ed082998e7fa2f006cc4220abdab",
7029
+ "positionImpactPoolDistributionRate": "0x998ae7f53081f4a4afc260e13d7dbc2d8f23a7ccbc02b1307eee0d5c4f4b4086",
7030
+ "borrowingFactorLong": "0x04a1e0e8ecffa2d30f984062e62e0916fdf07e69a021ae5bc202e8a2ff5a0413",
7031
+ "borrowingFactorShort": "0x065885842a14df30e4b6d4ed04dfb5ca15d4ba98c5cb48a9e7375fc44491d70c",
7032
+ "borrowingExponentFactorLong": "0x9489f4a51e9ef639c7079a0f57ac0b51210b3b4ae43f886e4c16ec25a8c7ef60",
7033
+ "borrowingExponentFactorShort": "0x8677fcb70a548652bea1a23647061f1c860096f1de9eea67bc3b7750f5dcf1e8",
7034
+ "fundingFactor": "0x76b644a99300975463ded5c668242c7c09596facd1be47cd50b4694e951471ff",
7035
+ "fundingExponentFactor": "0x2063edc4a98d83c8832bd3d8b1a53260aa913805b38027e386d5303da8f7992f",
7036
+ "fundingIncreaseFactorPerSecond": "0x6ae2f409d869e14b6f599068ad28565f14abbf02a59dc9d48cf68156fe9394ab",
7037
+ "fundingDecreaseFactorPerSecond": "0x3dfb5fe327591354f4654d317c1907295526a7651a82eabb9ffdb432bd12778a",
7038
+ "thresholdForStableFunding": "0xc7ace667521a757074f607331138563dd7d2a4067dc8ee3735a0532930a2ea52",
7039
+ "thresholdForDecreaseFunding": "0x803ca9eb7d9d265aba53ca3bf3bbb542060cc9b4281d51847cc0843ee6438ea3",
7040
+ "minFundingFactorPerSecond": "0xedc37288af3ca8b35634a4e2f7d3a1e1f967cc17b288a2f8f767b049e97c299d",
7041
+ "maxFundingFactorPerSecond": "0x5217407ecdcf0e08eb5347857d9d09e185d5852d6863f880c61cd4a426445aae",
7042
+ "maxPnlFactorForTradersLong": "0x93154a300e1352bf7944507fc70053da6d60ee6465552452d83dcc3380dc097d",
7043
+ "maxPnlFactorForTradersShort": "0x5717a0eb3d19d541a591a42d865d115a93a07c52e1b5c6f740e80438cf7444a8",
7044
+ "positionFeeFactorForBalanceWasImproved": "0x16a16151867d6063de6c4bc626bb1ae4e497a76ead666e67a9f2d727339b06e3",
7045
+ "positionFeeFactorForBalanceWasNotImproved": "0x695e690795f3c52a7837ba9e4bfafbd42443f5806173dadd506f1ccae14ed6e6",
7046
+ "positionImpactFactorPositive": "0xe30cc600d8b1917ebdb5a710b865d7c0ba60285efece4c36e5902dce9c43a564",
7047
+ "positionImpactFactorNegative": "0xe2f576ce2b09a132cf10e103c27179d8ef266ebd5180b029bf34a241979fba33",
7048
+ "maxPositionImpactFactorPositive": "0x18a396dced1fbd6e30a7019e493a54ee43e72937ebd6a6ad1c4adee7e40f07a5",
7049
+ "maxPositionImpactFactorNegative": "0x8f529ebd643ab367c55ed9aa0dbb79d88264b8e40d992228371781e3b392faba",
7050
+ "maxPositionImpactFactorForLiquidations": "0x92c76e74584eb00dd11fc34b679a63b1cdddae048b872a6db12c4280850fad70",
7051
+ "maxLendableImpactFactor": "0xd00d17cc231ccd2eb250a2e02449e1a1db6711dcefcb7da3c2a297a446b33fd9",
7052
+ "maxLendableImpactFactorForWithdrawals": "0x539d703bb6ee60a2e8dc971af936311ff22ad3861e416f373a36c0895b78c374",
7053
+ "maxLendableImpactUsd": "0x320ef78c9983027394d66967ed0dba8ee6b5eeb8405422dc23e40d68d9fa8514",
7054
+ "lentPositionImpactPoolAmount": "0x586502dfa1fbf23983033660d252b77504e039c2ffd843271afa76419e87a8e6",
7055
+ "minCollateralFactor": "0x738291f1def73c84284a322c6c57e05ec564a6250ded680bd655e4bfdba441b9",
7056
+ "minCollateralFactorForLiquidation": "0xdde2b79b728f542ec732cfdb7bb60d57e16376e8ca9ed008d94d6bfc0b72445a",
7057
+ "minCollateralFactorForOpenInterestLong": "0x1f6e3fe057516297aaf25615c9726b5eda400f4968dae71207e5293cbdd3ab2e",
7058
+ "minCollateralFactorForOpenInterestShort": "0x054002a12c33de0db3b7f2d720e626c8051c5803f630769bcc033a2c59d23624",
7059
+ "positionImpactExponentFactorPositive": "0x67c986caa3cafb1a21ac44d32656579d800d4a51150c89d3de5be8fbda4df81c",
7060
+ "positionImpactExponentFactorNegative": "0x9b6013de37bf3ec4d6a7d8781b9afdb3e19a043ff55c5d44fd05248b8f8f421e",
7061
+ "swapFeeFactorForBalanceWasImproved": "0x7445dbe41cb013ed694d8a97ba2b12f216796a627d7b3f504fc01ca7b741139f",
7062
+ "swapFeeFactorForBalanceWasNotImproved": "0x41851e16614d05350548dd9481cc03006528a108f1079eb93e2fa9e75dabc3f4",
7063
+ "atomicSwapFeeFactor": "0x83602ca6c635dc3f42269642dbfa105058637f660d81fa381d494f9cabbf79ee",
7064
+ "swapImpactFactorPositive": "0x1287d127bf96ce555208d89dd9203b4d0701f9f0ab8df224882b05695e4e1597",
7065
+ "swapImpactFactorNegative": "0x12bfec1d60c95ccfc1641b6999ef9038f2410daa2353752c403f353423b9f5fe",
7066
+ "swapImpactExponentFactor": "0x7a8280d5f7ad4bc9c8923d18752d7560ef52f0de115ae5fdeac0907135c3c2a0",
7067
+ "withdrawalFeeFactorBalanceWasImproved": "0xc28141869117ef19086e5130378d7044e643baaf5e301279d3cb21d2a0cf05f5",
7068
+ "withdrawalFeeFactorBalanceWasNotImproved": "0x4479172b83c305678b2210535629b939a230ad970097356288eeb1cb1859ff02",
7069
+ "virtualMarketId": "0x53431e894dfb40c8915ba5fa60dc99c8b9050441e012dbc68769ca1169ef1dfb",
7070
+ "virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
7071
+ "virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
7072
+ },
7073
+ "0x3600592DdEd7e6E0B05029DfB637fFc5A85D6f6B": {
7074
+ "isDisabled": "0xc35048e8e441ee5c8539bf335bd8fa8e1740456ef828058fc7b79c44e83b6313",
7075
+ "maxLongPoolAmount": "0x247c18cda79f004a1721cd2fcd3f1216c7388fb631fcde053a243dc6118331b6",
7076
+ "maxShortPoolAmount": "0xc7566818a233dcf2a0212f947afc7a173ff18aec4e24b312c877168d0c5967d3",
7077
+ "maxLongPoolUsdForDeposit": "0xa6bba228d2544bb282a1519324d4f32d92b8333908b2fbcfc3632a044db1d2ea",
7078
+ "maxShortPoolUsdForDeposit": "0xd8410df1de7df460afa1a09422b127057d7ec8a501cb10711fca2dbf529124f4",
7079
+ "reserveFactorLong": "0xae5a7b3795d8610abdf74d42b08b8f93f6fb36de20893907deca58e9fc34c298",
7080
+ "reserveFactorShort": "0x756b4b5b10bb1debe002d40d849569ee3371e6601ff16d12a33f54ab3c1a711d",
7081
+ "openInterestReserveFactorLong": "0xfd0d51647a1e8e30efbf7c915f783b1a6c87386136b5cdd98971efb59b5de002",
7082
+ "openInterestReserveFactorShort": "0x678a615cf16a71ab6035e057a9c6a8052ab89ec1d9b246160fd7295f2c0b19dc",
7083
+ "maxOpenInterestLong": "0x66e657f9435e809cb5e3b3689fc1c7a85e1511c28aff6602b68b684b0110b627",
7084
+ "maxOpenInterestShort": "0xba9899e904ec0ee9866b2a8586f2edae0625ed51419f304a558f68ec902da9d6",
7085
+ "minPositionImpactPoolAmount": "0x04c0c1a7d1b8975159f23f5578364cb82e78d6eb01674e3139e23dacd1368f2b",
7086
+ "positionImpactPoolDistributionRate": "0xbe8738159c6ce4881b9d64e785acc6368c441c44bf639b36a5bfdfe8f4dd9c59",
7087
+ "borrowingFactorLong": "0x623390d943b1ff0d90640bd58d99f22c9bf2368805df5a4b7c4025a3f1b8a3bd",
7088
+ "borrowingFactorShort": "0x3e4f08038a413a23f9c7d23cc61cad00f62b675a56e434958f1c374284e6f716",
7089
+ "borrowingExponentFactorLong": "0x7fd0d026aa5f9d84c5a824cf7d66aa068a5e9ce38eceb2f3d46229cc728869ef",
7090
+ "borrowingExponentFactorShort": "0x8696f8a9381005c0e5121c13705158491bbd4102bb777ab85f408b2e6f6a7f91",
7091
+ "fundingFactor": "0x3fe83286047d8140a745f8a8706d558da91911de1ce1c39ee0e59cfa5832ab38",
7092
+ "fundingExponentFactor": "0xa899775a16d5376eec0bfe0465d9dc277be519896423012ff8279fc6f5324ea9",
7093
+ "fundingIncreaseFactorPerSecond": "0xb76840fc1e5b0e165fb87778706fdb717b4a7333c30034c6635e957ccf701932",
7094
+ "fundingDecreaseFactorPerSecond": "0x83b66f6eb58bc515e0a209fd23fce2e3a1117805f584d99f83f97f16420b655d",
7095
+ "thresholdForStableFunding": "0x51cbed590545adea5db1686e37b6c8d576a88f5572327aa04795586cb18cdcc9",
7096
+ "thresholdForDecreaseFunding": "0x68ba2b4d598e2e044aae54e2cddcf5b0edf8560dd1f06b5edfb76b66b0bb88f4",
7097
+ "minFundingFactorPerSecond": "0x25ae4068b34ee414e89cd2f8c3fdbd9b253cf11301a153aca6f554450aea80e6",
7098
+ "maxFundingFactorPerSecond": "0x0335ab98df3a1a7a2fa37eb6e1a1406bbdb57ffca44d2dcefaa81052d17309a9",
7099
+ "maxPnlFactorForTradersLong": "0xd9af1aee0f0fd100e117563f535156328eb899182082b76aaaab5c2140308695",
7100
+ "maxPnlFactorForTradersShort": "0x7a0be271600c95d1aca2eaec1289797bd29ed79379fa0a2bcaf7b5205bf5b92c",
7101
+ "positionFeeFactorForBalanceWasImproved": "0x0cff67f3b4dc2e4679f215f3a90fbeb24418ba1e67fd6cde5e2d82f55d7c1ecd",
7102
+ "positionFeeFactorForBalanceWasNotImproved": "0x1988fade66183c2573ff3323123301a159ab9227c07afe4f7e94655e19803f27",
7103
+ "positionImpactFactorPositive": "0x35b463a141dcd2bad37faca3ddaefc98c14e7d616dea33f209cfffb1201369af",
7104
+ "positionImpactFactorNegative": "0x63300684deb3ad972af29c6f1bbbd9a44bab0c307933a711bed34a7d80bdaa97",
7105
+ "maxPositionImpactFactorPositive": "0xda8934682740b2fa518d962fc6ea9c75e4555c1eef5ffa80ae3256029005bf54",
7106
+ "maxPositionImpactFactorNegative": "0x592ce7799597234aeb52fb7b12875c21f66114eb3ea04ee57e143da88dbb69d0",
7107
+ "maxPositionImpactFactorForLiquidations": "0x5ef91c82c64217c4a651734e7379d78101c4ea77b0175f1e4db7bc7155214de3",
7108
+ "maxLendableImpactFactor": "0x6ca2b38863b5b816a60e14b6cb6f934332cf0b516c122feaf875b076e1657870",
7109
+ "maxLendableImpactFactorForWithdrawals": "0x7fe66cd03d94e6843634bf25cc8a2be8def94a0b6800e07d230080dc2a604fcb",
7110
+ "maxLendableImpactUsd": "0x0d6c2697cd6e12154d1065faa5e762bc1a413011b843e1ea4bda8f5a359c4147",
7111
+ "lentPositionImpactPoolAmount": "0x7a3a94d071073ab7388019687bb15af4ff32da47912e007638f182eca5f0cdec",
7112
+ "minCollateralFactor": "0x34d113d77a39a4190b2537176067b4048293b4960c7ee813694d0b50f80ceb86",
7113
+ "minCollateralFactorForLiquidation": "0x05e1b2237e7dab569d254c94e63a0464930b118c513bc5123b40af573798d628",
7114
+ "minCollateralFactorForOpenInterestLong": "0xd10861a2f97531298d2882a9e6e157378ffb210f774c2a080d6865e34583c898",
7115
+ "minCollateralFactorForOpenInterestShort": "0x44477c5813bbf6f218776371e318733482a48bd78ca0bd054a50a0dfea42acdc",
7116
+ "positionImpactExponentFactorPositive": "0xc100ec178ec72f262f8d47c9b49fc0c0141c65107e6f68740d04ece9c1da52cd",
7117
+ "positionImpactExponentFactorNegative": "0xaab425d48b00c0f92e5fae8fb0a779a6a71af680b57916b9d790569a13f87ce8",
7118
+ "swapFeeFactorForBalanceWasImproved": "0x6b7acc9ed048128f9b56a034dfaf61a9909f1fccee3b54a69d500f788591c20c",
7119
+ "swapFeeFactorForBalanceWasNotImproved": "0xb1f5b23400042df011c392bd57042e5ab782d10a3588775056ea137a58c54b35",
7120
+ "atomicSwapFeeFactor": "0x4e2dfc287d1aee6ca96f7f48cbcad4102c573338af866cac44ebc45feeb734a9",
7121
+ "swapImpactFactorPositive": "0x0720e9e1a8474bf25f8972134f07976745f535ee955605ca21b70e75577b666d",
7122
+ "swapImpactFactorNegative": "0xd49bb85fdeae145e76e5ddeef32e10698bdcb202889eed44679d301fe96e16cc",
7123
+ "swapImpactExponentFactor": "0x94c9a51254fb3f91c7e73ed7936b85d6fc3c088e3a40376b5635d361dbddee2b",
7124
+ "withdrawalFeeFactorBalanceWasImproved": "0x090ace464da5ac0394fdb90421848aaa6118749ec9cf4dfc90f81e47c92daffc",
7125
+ "withdrawalFeeFactorBalanceWasNotImproved": "0x4cdd01f9df78ff8c14b193c09a6eaab8c291ff3392657c2cb274517a785e5261",
7126
+ "virtualMarketId": "0x841882a446312167f062b94703f31d90437c94aeb0f26da7966c9f8064afb2e7",
7127
+ "virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
7128
+ "virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
6844
7129
  }
6845
7130
  },
6846
7131
  "43113": {
@@ -1801,6 +1801,81 @@
1801
1801
  "longInterestInTokensUsingShortToken": "0x10be684d3b02317e078f4c9f561ad313cbdf6701163346bb271543b58a6cfcc7",
1802
1802
  "shortInterestInTokensUsingLongToken": "0x74b8efa44465155c5fc9951e7518290fba4cbed2741539562502e86745b04058",
1803
1803
  "shortInterestInTokensUsingShortToken": "0x344592d78feae63ecf187af3a66c1e0d1b24afc5abdd978cf47dc7fca9928e97"
1804
+ },
1805
+ "0xfa19f7d23a475575BD0270AE7de4FC6852442945": {
1806
+ "longPoolAmount": "0x769b2651dfd9ff67fd2e120c87e1652e4863ad9d1ea31a933380ba783dba54a5",
1807
+ "shortPoolAmount": "0xbed82a81070b1ab45a407cef21f962f701deb420921c73a5069b28256a2b5225",
1808
+ "positionImpactPoolAmount": "0xac5163fefc03ca42b5823258cb610e0ae35abb3eea3b6fb62c17cf423c63d0fa",
1809
+ "swapImpactPoolAmountLong": "0x9571bde89a2343aec021e1a8a511542e608fa1d0a39b8c5188d4820620e57632",
1810
+ "swapImpactPoolAmountShort": "0x2be194b6240863c6bddfd264f3e6f754a454b3ac6b76c52193e82cb54fded9ed",
1811
+ "longInterestUsingLongToken": "0x7a535299a4d0299c912f9e346db03a833b0db7d3deccae48e9bc7a905d21b59b",
1812
+ "longInterestUsingShortToken": "0x3499a85f002f9f15f4a7e2de7fecfebe9956bb7d11895642996f25364cfbadb5",
1813
+ "shortInterestUsingLongToken": "0x541b372595b60ed62c865ec7372d6ae9d2ae79dbf068f3bfc877e3d794a2564e",
1814
+ "shortInterestUsingShortToken": "0xeef7fcbeed3bbefa8f4c5cfafc45fb839a8b6a9022b91bd53d484f7946e9bc1f",
1815
+ "longInterestInTokensUsingLongToken": "0x8a70cf1f1fcd6f797dbc54614a64f3ebc3943e1ee03a59d879aff5db4f06d23f",
1816
+ "longInterestInTokensUsingShortToken": "0x45009651c58ab1a8b57e58cdbacb1582880b02b1fb611b02ec70cd2c80e2b9a1",
1817
+ "shortInterestInTokensUsingLongToken": "0x6fb34e78ef0a17cb11997a13703c97b31a5a7caf40ca5fce0489a0c45ef20f83",
1818
+ "shortInterestInTokensUsingShortToken": "0xf3c401cbeaa5338350dc9a9b7d5c7d86b7c818712598ff1ae8d2e0ed9e87ab78"
1819
+ },
1820
+ "0x728Ff0679c89267434D6EF1824c8C8eED4aC3DBC": {
1821
+ "longPoolAmount": "0x8979b875f2cd668c03a6eeb4c7cb1c85e5bd7ef67bc71b187e4db592b2b4abeb",
1822
+ "shortPoolAmount": "0x010804628d49699c77e2af9acc6a74af43c2e0a35ee9a6f89a4f54c6fdc0d353",
1823
+ "positionImpactPoolAmount": "0xdb1fa0ad6859b4db39a7bed43e8c8bb60affc0fc13ae93384d735999d72a3e54",
1824
+ "swapImpactPoolAmountLong": "0xaf99ec074c87574b6f977edfad3626dd4e7c73933a564b7c552fbef7cd86482a",
1825
+ "swapImpactPoolAmountShort": "0xd3ec47bbf27d70ccd98a4a150fcde17ada195f4e216a8fd1785029f262ab3fa3",
1826
+ "longInterestUsingLongToken": "0xfb3098cd3f646a599404948ec43125a5a6006d5d608b90ad120c55dd7346b318",
1827
+ "longInterestUsingShortToken": "0x1bf2ea7f64430bf9d2acdbaf17071819a4ea4ab8bc8fdc03dabb36d48806511e",
1828
+ "shortInterestUsingLongToken": "0x5ec33cf714ea01ce18a026b33cecc5c8850e4a84069905614bcb322fe8b5608c",
1829
+ "shortInterestUsingShortToken": "0x8d67de51d82871c9465d5258916733392f1ace6f953f6d700f2bda8de06638fe",
1830
+ "longInterestInTokensUsingLongToken": "0x22701602701a07a786dad6f414d252f0bd9954f6e0253d35de3136b4762f5fda",
1831
+ "longInterestInTokensUsingShortToken": "0x258b4030ed7c58b4a6e3bbd6ebd647bb00b8f8095ca68b498542f45cc16f092b",
1832
+ "shortInterestInTokensUsingLongToken": "0xcfea4b65f382ac5c5f6f664bbe35c58e2980f0c3b8c690fc637323b0e5d6417e",
1833
+ "shortInterestInTokensUsingShortToken": "0xb2db20fe0f91b03004bcfc9495c138715913e79f6b5b044862fcdde38a7cf58c"
1834
+ },
1835
+ "0x3B4689d69516b9D4b1aaf7545c6fC4d3ED70b70b": {
1836
+ "longPoolAmount": "0x859662ec513e44158ee0ccf5a94d120305a12348a9dbddd5ccd206b177cdf4eb",
1837
+ "shortPoolAmount": "0xb46fc4659eb29cdb837e8fcc935210c77e42fcb8a583179df17ae04debf80d89",
1838
+ "positionImpactPoolAmount": "0xb228ecb1939e901d51f21798d9d6b8557ae6f235a0975715a3991e06700c85d7",
1839
+ "swapImpactPoolAmountLong": "0x7ef60434ad174496a492e5b9ace2ae6ee22b017a336e75d334c1d8c9e7814016",
1840
+ "swapImpactPoolAmountShort": "0x6c3dafe20f5e8c7a321b0e0e8fa6a988e6a5a4aadf5c61f2205093b0e0b31d82",
1841
+ "longInterestUsingLongToken": "0xe8f4b28bc33ceb87f02d0e177873b9091fcf87e46716312348d152b1d8a9b4b5",
1842
+ "longInterestUsingShortToken": "0x4b8631f0ea309d974664c44b27fb09cbe96b76778b3ddcdaf7525676b5541ff5",
1843
+ "shortInterestUsingLongToken": "0xe4c5de8cf12381a14d65c5365a68e6633716bd2dd4405e02af710d2d30a787f4",
1844
+ "shortInterestUsingShortToken": "0x34224448ae12e28a09f00339d1b5f64ca76b00fbf3c474ccd9e172ef3e9cd4fc",
1845
+ "longInterestInTokensUsingLongToken": "0x09ff271595434f54483367c25e9d1207348ceb4b63585c39ec4ee0a3c22d4a4f",
1846
+ "longInterestInTokensUsingShortToken": "0xbc29e7c6ca04597e9d15181e93cdaa6ba363a958d55f0e62f7fe5ef507d2c94c",
1847
+ "shortInterestInTokensUsingLongToken": "0x594e7e708b5fa4f6f4c87ee055dc894ddfec6017e2f52c885278a8f2ec1ac8b7",
1848
+ "shortInterestInTokensUsingShortToken": "0x960c34b07813fb70855820dfb601ee4b76897109d5c3a2dd1d30fae8712555a0"
1849
+ },
1850
+ "0x8965e821c7C8c09c6eB3Cb9cCf7Eb6f386441EA2": {
1851
+ "longPoolAmount": "0xb6d889395a9d64218892ea61d11c7174637e0f94a99ca67da71109d1bcc7bcf3",
1852
+ "shortPoolAmount": "0x440e08650f5ec7138b1d2776eab730f2ca4975f6f41eddbda38d85aa526bc7d5",
1853
+ "positionImpactPoolAmount": "0xab8a4c4147176530c89b9a3f39c33a9a4fa5afc44c0e5a9050bbdf0089d52c61",
1854
+ "swapImpactPoolAmountLong": "0xa9259e1d5ae5a703af9afc82f0d3f410696af0089d7070b4f9ca8ad6206dcb3d",
1855
+ "swapImpactPoolAmountShort": "0x8e601e1818c6698cc9671b03e9d9a902ea712d307c7ec6eba62118f12395ed83",
1856
+ "longInterestUsingLongToken": "0xb59330e96e848a4d8e8569d021e6632dc1c315331b8ba7ff7ae8a6945d73a222",
1857
+ "longInterestUsingShortToken": "0x3fdfae07e54ab044da2db02e0de0160ed9671226991be877fe833d82a1d9a872",
1858
+ "shortInterestUsingLongToken": "0x196229caa3dfdf1e7adb24d742b422b6f1b072a38a9f07938e899f2a24fbd6bd",
1859
+ "shortInterestUsingShortToken": "0x7c4cc952a9892b3fa804923021517f88ceac512d1fa430efd5f8dfbb5017ee49",
1860
+ "longInterestInTokensUsingLongToken": "0xfeb9915fc6eab71e687974ff896833fd8133748bf3c8858847c1f5547c623db4",
1861
+ "longInterestInTokensUsingShortToken": "0xb7216cb22e3d88515c66240afbe7270af82c56662fbe02175cdb8a4c536bb653",
1862
+ "shortInterestInTokensUsingLongToken": "0xb1f03517e53f64ea61c2c020ea83b65d1f285917d6f740ce7bb7904e8e783c20",
1863
+ "shortInterestInTokensUsingShortToken": "0x711ef4606c1e48b3454a208e31088d694917c745893c54ee39f0a011ba2410bf"
1864
+ },
1865
+ "0x3600592DdEd7e6E0B05029DfB637fFc5A85D6f6B": {
1866
+ "longPoolAmount": "0x668ee8f6776025dbda07f90d5b7477e0535d09f923c862e11119c2190b4cea3b",
1867
+ "shortPoolAmount": "0xb666179d743eb811335cd7b70c756eac867214b684c4ca27757c7a0552ff7365",
1868
+ "positionImpactPoolAmount": "0x41c353f4e81e3fd7f01e1b1f01778bfe13fd5f94ed982f49862fec78af45dfb8",
1869
+ "swapImpactPoolAmountLong": "0x231927a1820c359ec257c6e3fc4e3b6659f562417b37465802fe60c99174f2cf",
1870
+ "swapImpactPoolAmountShort": "0x41f8fde1d6545da3fa3be39508b35e31ecc9f8e03f8775d85384af53fdf508ba",
1871
+ "longInterestUsingLongToken": "0x59f608056e5b384ceebe52810464d60ad32fc408b7d694509b6f3e55c2b4b8ba",
1872
+ "longInterestUsingShortToken": "0x0e99a19843cfde40ef0736f377392cf7ea7893b4a6a93be7abd142cb14e07fc7",
1873
+ "shortInterestUsingLongToken": "0x2497df001e1741822c0d4f646596f0d1ed9e70f5dbd90ff4236a06a09132d50b",
1874
+ "shortInterestUsingShortToken": "0x4e5400c0395037b7c640c88360bda543229ee50d0e33883ef2aae2ae96ceb7d0",
1875
+ "longInterestInTokensUsingLongToken": "0x9649688da2dd7172e852d091969f6ed87dcda9fb2c6537d6ae35f665ef1868aa",
1876
+ "longInterestInTokensUsingShortToken": "0x2dc01b3b85d756baf87d00c973daa5407d890d823b6d0c3e3319969af87c09a7",
1877
+ "shortInterestInTokensUsingLongToken": "0xbdc14076a36f44c7f3a721b002fbe90479cef53c30049cf42365a196f962978d",
1878
+ "shortInterestInTokensUsingShortToken": "0x4807b52cfdf6c2cebdc1e028aa6e5ea81dc95ff2d40ac3888f859c3973fdfe1b"
1804
1879
  }
1805
1880
  },
1806
1881
  "43113": {
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.HASHED_KINK_MODEL_MARKET_RATES_KEYS = exports.HASHED_MARKET_CONFIG_KEYS = exports.HASHED_MARKET_VALUES_KEYS = void 0;
7
+ /**
8
+ * Json files in this directory are prebuild by scripts from the `scripts/prebuild` directory.
9
+ * No need to edit them manually, use `yarn run prebuild` command instead.
10
+ */
11
+ const hashedKinkModelMarketRatesKeys_json_1 = __importDefault(require("./hashedKinkModelMarketRatesKeys.json"));
12
+ const hashedMarketConfigKeys_json_1 = __importDefault(require("./hashedMarketConfigKeys.json"));
13
+ const hashedMarketValuesKeys_json_1 = __importDefault(require("./hashedMarketValuesKeys.json"));
14
+ exports.HASHED_MARKET_VALUES_KEYS = hashedMarketValuesKeys_json_1.default;
15
+ exports.HASHED_MARKET_CONFIG_KEYS = hashedMarketConfigKeys_json_1.default;
16
+ exports.HASHED_KINK_MODEL_MARKET_RATES_KEYS = hashedKinkModelMarketRatesKeys_json_1.default;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getApiUrl = void 0;
4
+ const chains_1 = require("./chains");
5
+ const API_URLS = {
6
+ [chains_1.ARBITRUM]: "https://gmx-api-arbitrum-dev-ikpem.ondigitalocean.app/api/v1",
7
+ [chains_1.AVALANCHE]: "",
8
+ [chains_1.AVALANCHE_FUJI]: "",
9
+ [chains_1.BOTANIX]: "",
10
+ [chains_1.ARBITRUM_SEPOLIA]: "",
11
+ };
12
+ function getApiUrl(chainId) {
13
+ return API_URLS[chainId];
14
+ }
15
+ exports.getApiUrl = getApiUrl;
@@ -17,13 +17,17 @@ Object.defineProperty(exports, "SOURCE_SEPOLIA", { enumerable: true, get: functi
17
17
  exports.CONTRACTS_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE, chainIds_1.BOTANIX];
18
18
  exports.CONTRACTS_CHAIN_IDS_DEV = [...exports.CONTRACTS_CHAIN_IDS, chainIds_1.AVALANCHE_FUJI, chainIds_1.ARBITRUM_SEPOLIA];
19
19
  exports.SETTLEMENT_CHAIN_IDS = [chainIds_1.ARBITRUM, chainIds_1.AVALANCHE];
20
- exports.SETTLEMENT_CHAIN_IDS_DEV = [...exports.SETTLEMENT_CHAIN_IDS, chainIds_1.ARBITRUM_SEPOLIA];
20
+ exports.SETTLEMENT_CHAIN_IDS_DEV = [...exports.SETTLEMENT_CHAIN_IDS, chainIds_1.ARBITRUM_SEPOLIA, chainIds_1.AVALANCHE_FUJI];
21
21
  exports.SOURCE_CHAIN_IDS = [
22
22
  chainIds_1.SOURCE_OPTIMISM_SEPOLIA,
23
23
  chainIds_1.SOURCE_SEPOLIA,
24
24
  chainIds_1.SOURCE_BASE_MAINNET,
25
25
  chainIds_1.SOURCE_BSC_MAINNET,
26
26
  chainIds_1.SOURCE_ETHEREUM_MAINNET,
27
+ chainIds_1.ARBITRUM_SEPOLIA,
28
+ chainIds_1.ARBITRUM,
29
+ chainIds_1.AVALANCHE,
30
+ chainIds_1.AVALANCHE_FUJI,
27
31
  ];
28
32
  exports.GMX_ACCOUNT_PSEUDO_CHAIN_ID = 0;
29
33
  const CONTRACTS_CHAIN_CONFIGS = {
@@ -159,6 +163,30 @@ const SOURCE_CHAIN_CONFIGS = {
159
163
  slug: "ethereum-mainnet",
160
164
  explorerUrl: "https://etherscan.io/",
161
165
  },
166
+ [chainIds_1.ARBITRUM]: {
167
+ chainId: chainIds_1.ARBITRUM,
168
+ name: "Arbitrum",
169
+ slug: "arbitrum",
170
+ explorerUrl: "https://arbiscan.io/",
171
+ },
172
+ [chainIds_1.AVALANCHE]: {
173
+ chainId: chainIds_1.AVALANCHE,
174
+ name: "Avalanche",
175
+ slug: "avalanche",
176
+ explorerUrl: "https://snowtrace.io/",
177
+ },
178
+ [chainIds_1.ARBITRUM_SEPOLIA]: {
179
+ chainId: chainIds_1.ARBITRUM_SEPOLIA,
180
+ name: "Arbitrum Sepolia",
181
+ slug: "arbitrum-sepolia",
182
+ explorerUrl: "https://sepolia.arbiscan.io/",
183
+ },
184
+ [chainIds_1.AVALANCHE_FUJI]: {
185
+ chainId: chainIds_1.AVALANCHE_FUJI,
186
+ name: "Avalanche Fuji",
187
+ slug: "avalanche-fuji",
188
+ explorerUrl: "https://testnet.snowtrace.io/",
189
+ },
162
190
  // Use this notation to correctly infer chain names, etc. from config
163
191
  };
164
192
  const ALL_CHAIN_CONFIGS = {
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.POSITION_IMPACT_POOL_DISTRIBUTION_RATE_KEY = exports.MIN_POSITION_IMPACT_POOL_AMOUNT_KEY = exports.POSITION_IMPACT_POOL_AMOUNT_KEY = exports.LENT_POSITION_IMPACT_POOL_AMOUNT_KEY = exports.MAX_LENDABLE_IMPACT_FACTOR_FOR_WITHDRAWALS_KEY = exports.MAX_LENDABLE_IMPACT_USD_KEY = exports.MAX_LENDABLE_IMPACT_FACTOR_KEY = exports.CLAIMABLE_COLLATERAL_TIME_DIVISOR_KEY = exports.CLAIMABLE_COLLATERAL_REDUCTION_FACTOR_KEY = exports.CLAIMABLE_COLLATERAL_DELAY_KEY = exports.MAX_POSITION_IMPACT_FACTOR_FOR_LIQUIDATIONS_KEY = exports.MAX_PNL_FACTOR_FOR_TRADERS_KEY = exports.MAX_PNL_FACTOR_FOR_DEPOSITS_KEY = exports.MAX_PNL_FACTOR_FOR_WITHDRAWALS_KEY = exports.MAX_PNL_FACTOR_KEY = exports.THRESHOLD_FOR_DECREASE_FUNDING = exports.THRESHOLD_FOR_STABLE_FUNDING = exports.MAX_FUNDING_FACTOR_PER_SECOND = exports.MIN_FUNDING_FACTOR_PER_SECOND = exports.FUNDING_DECREASE_FACTOR_PER_SECOND = exports.FUNDING_INCREASE_FACTOR_PER_SECOND = exports.FUNDING_EXPONENT_FACTOR_KEY = exports.FUNDING_FACTOR_KEY = exports.TOTAL_BORROWING_KEY = exports.CUMULATIVE_BORROWING_FACTOR_KEY = exports.BORROWING_EXPONENT_FACTOR_KEY = exports.BORROWING_FACTOR_KEY = exports.NONCE_KEY = exports.MAX_OPEN_INTEREST_KEY = exports.OPEN_INTEREST_RESERVE_FACTOR_KEY = exports.RESERVE_FACTOR_KEY = exports.MAX_POOL_AMOUNT_KEY = exports.MAX_POOL_USD_FOR_DEPOSIT_KEY = exports.POOL_AMOUNT_KEY = exports.OPEN_INTEREST_IN_TOKENS_KEY = exports.OPEN_INTEREST_KEY = exports.FEE_RECEIVER_POSITION_FACTOR_KEY = exports.FEE_RECEIVER_SWAP_FACTOR_KEY = exports.FEE_RECEIVER_WITHDRAWAL_FACTOR_KEY = exports.BORROWING_FEE_RECEIVER_FACTOR_KEY = exports.FEE_RECEIVER_DEPOSIT_FACTOR_KEY = exports.WITHDRAWAL_FEE_FACTOR_KEY = exports.ATOMIC_SWAP_FEE_FACTOR_KEY = exports.SWAP_FEE_FACTOR_KEY = exports.SWAP_IMPACT_EXPONENT_FACTOR_KEY = exports.SWAP_IMPACT_FACTOR_KEY = exports.POSITION_FEE_FACTOR_KEY = exports.POSITION_IMPACT_EXPONENT_FACTOR_KEY = exports.MAX_POSITION_IMPACT_FACTOR_KEY = exports.POSITION_IMPACT_FACTOR_KEY = void 0;
4
4
  exports.SUBACCOUNT_EXPIRES_AT = exports.ABOVE_OPTIMAL_USAGE_BORROWING_FACTOR = exports.BASE_BORROWING_FACTOR = exports.OPTIMAL_USAGE_FACTOR = exports.MAX_AUTO_CANCEL_ORDERS_KEY = exports.GLV_PER_MARKET_GAS_LIMIT = exports.GLV_WITHDRAWAL_GAS_LIMIT = exports.GLV_DEPOSIT_GAS_LIMIT = exports.GLV_SHIFT_MIN_INTERVAL = exports.GLV_SHIFT_LAST_EXECUTED_AT = exports.IS_GLV_MARKET_DISABLED = exports.GLV_MAX_MARKET_TOKEN_BALANCE_AMOUNT = exports.MIN_COLLATERAL_FACTOR_FOR_LIQUIDATION_KEY = exports.GLV_MAX_MARKET_TOKEN_BALANCE_USD = exports.SUBACCOUNT_AUTO_TOP_UP_AMOUNT = exports.SUBACCOUNT_INTEGRATION_ID = exports.SUBACCOUNT_ORDER_ACTION = exports.SUBACCOUNT_ACTION_COUNT = exports.MAX_ALLOWED_SUBACCOUNT_ACTION_COUNT = exports.SUBACCOUNT_LIST_KEY = exports.UI_FEE_FACTOR = exports.IS_MARKET_DISABLED_KEY = exports.AFFILIATE_REWARD_KEY = exports.VIRTUAL_INVENTORY_FOR_SWAPS_KEY = exports.VIRTUAL_INVENTORY_FOR_POSITIONS_KEY = exports.VIRTUAL_MARKET_ID_KEY = exports.VIRTUAL_TOKEN_ID_KEY = exports.CLAIMABLE_FUNDING_AMOUNT = exports.ACCOUNT_ORDER_LIST_KEY = exports.ORDER_LIST_KEY = exports.POSITION_LIST_KEY = exports.MARKET_LIST_KEY = exports.ESTIMATED_GAS_FEE_MULTIPLIER_FACTOR = exports.ESTIMATED_GAS_FEE_PER_ORACLE_PRICE = exports.ESTIMATED_GAS_FEE_BASE_AMOUNT_V2_1 = exports.NATIVE_TOKEN_TRANSFER_GAS_LIMIT_KEY = exports.TOKEN_TRANSFER_GAS_LIMIT_KEY = exports.SINGLE_SWAP_GAS_LIMIT_KEY = exports.SHIFT_GAS_LIMIT_KEY = exports.SWAP_ORDER_GAS_LIMIT_KEY = exports.DECREASE_ORDER_GAS_LIMIT_KEY = exports.INCREASE_ORDER_GAS_LIMIT_KEY = exports.WITHDRAWAL_GAS_LIMIT_KEY = exports.DEPOSIT_GAS_LIMIT_KEY = exports.MAX_LEVERAGE_KEY = exports.MIN_POSITION_SIZE_USD_KEY = exports.MIN_COLLATERAL_FACTOR_FOR_OPEN_INTEREST_MULTIPLIER_KEY = exports.MIN_COLLATERAL_FACTOR_KEY = exports.MIN_COLLATERAL_USD_KEY = exports.SWAP_IMPACT_POOL_AMOUNT_KEY = void 0;
5
- exports.withdrawalGasLimitKey = exports.depositGasLimitKey = exports.orderKey = exports.swapImpactPoolAmountKey = exports.maxPositionImpactFactorForLiquidationsKey = exports.positionImpactPoolDistributionRateKey = exports.minPositionImpactPoolAmountKey = exports.positionImpactPoolAmountKey = exports.maxPnlFactorKey = exports.thresholdForDecreaseFundingKey = exports.thresholdForStableFundingKey = exports.maxFundingFactorPerSecondKey = exports.minFundingFactorPerSecondKey = exports.fundingDecreaseFactorPerSecondKey = exports.fundingIncreaseFactorPerSecondKey = exports.fundingExponentFactorKey = exports.fundingFactorKey = exports.totalBorrowingKey = exports.cumulativeBorrowingFactorKey = exports.borrowingExponentFactorKey = exports.borrowingFactorKey = exports.maxOpenInterestKey = exports.openInterestReserveFactorKey = exports.reserveFactorKey = exports.poolAmountKey = exports.openInterestInTokensKey = exports.openInterestKey = exports.atomicSwapFeeFactorKey = exports.swapFeeFactorKey = exports.swapImpactExponentFactorKey = exports.swapImpactFactorKey = exports.positionFeeFactorKey = exports.maxPositionImpactFactorKey = exports.positionImpactExponentFactorKey = exports.positionImpactFactorKey = exports.isGlvDisabledKey = exports.glvMaxMarketTokenBalanceAmountKey = exports.glvMaxMarketTokenBalanceUsdKey = exports.glvShiftMinIntervalKey = exports.glvShiftLastExecutedAtKey = exports.subaccountExpiresAtKey = exports.USE_OPEN_INTEREST_IN_TOKENS_FOR_BALANCE = exports.GENERAL_CLAIM_FEATURE_DISABLED = exports.CLAIM_TERMS_KEY = exports.GMX_SIMULATION_ORIGIN = exports.REQUEST_EXPIRATION_TIME_KEY = exports.GELATO_RELAY_FEE_MULTIPLIER_FACTOR_KEY = exports.GASLESS_FEATURE_DISABLED_KEY = exports.PRICE_FEED_KEY = exports.MULTICHAIN_BALANCE = void 0;
6
- exports.claimsDisabledKey = exports.claimTermsKey = exports.gaslessFeatureDisabledKey = exports.priceFeedKey = exports.multichainBalanceKey = exports.subaccountAutoTopUpAmountKey = exports.subaccountIntegrationIdKey = exports.maxLendableImpactUsdKey = exports.maxLendableImpactFactorForWithdrawalsKey = exports.maxLendableImpactFactorKey = exports.subaccountActionCountKey = exports.maxAllowedSubaccountActionCountKey = exports.subaccountListKey = exports.uiFeeFactorKey = exports.maxPoolAmountKey = exports.maxPoolUsdForDepositKey = exports.isMarketDisabledKey = exports.affiliateRewardKey = exports.virtualInventoryForPositionsKey = exports.virtualInventoryForSwapsKey = exports.virtualMarketIdKey = exports.virtualTokenIdKey = exports.claimableFundingAmountKey = exports.hashedPositionKey = exports.minCollateralFactorForOpenInterest = exports.minCollateralFactorForLiquidationKey = exports.minCollateralFactorKey = exports.accountOrderListKey = exports.swapOrderGasLimitKey = exports.decreaseOrderGasLimitKey = exports.increaseOrderGasLimitKey = exports.singleSwapGasLimitKey = exports.shiftGasLimitKey = void 0;
5
+ exports.depositGasLimitKey = exports.orderKey = exports.swapImpactPoolAmountKey = exports.maxPositionImpactFactorForLiquidationsKey = exports.positionImpactPoolDistributionRateKey = exports.minPositionImpactPoolAmountKey = exports.positionImpactPoolAmountKey = exports.maxPnlFactorKey = exports.thresholdForDecreaseFundingKey = exports.thresholdForStableFundingKey = exports.maxFundingFactorPerSecondKey = exports.minFundingFactorPerSecondKey = exports.fundingDecreaseFactorPerSecondKey = exports.fundingIncreaseFactorPerSecondKey = exports.fundingExponentFactorKey = exports.fundingFactorKey = exports.totalBorrowingKey = exports.cumulativeBorrowingFactorKey = exports.borrowingExponentFactorKey = exports.borrowingFactorKey = exports.maxOpenInterestKey = exports.openInterestReserveFactorKey = exports.reserveFactorKey = exports.poolAmountKey = exports.openInterestInTokensKey = exports.openInterestKey = exports.withdrawalFeeFactorKey = exports.atomicSwapFeeFactorKey = exports.swapFeeFactorKey = exports.swapImpactExponentFactorKey = exports.swapImpactFactorKey = exports.positionFeeFactorKey = exports.maxPositionImpactFactorKey = exports.positionImpactExponentFactorKey = exports.positionImpactFactorKey = exports.isGlvDisabledKey = exports.glvMaxMarketTokenBalanceAmountKey = exports.glvMaxMarketTokenBalanceUsdKey = exports.glvShiftMinIntervalKey = exports.glvShiftLastExecutedAtKey = exports.subaccountExpiresAtKey = exports.USE_OPEN_INTEREST_IN_TOKENS_FOR_BALANCE = exports.GENERAL_CLAIM_FEATURE_DISABLED = exports.CLAIM_TERMS_KEY = exports.GMX_SIMULATION_ORIGIN = exports.REQUEST_EXPIRATION_TIME_KEY = exports.GELATO_RELAY_FEE_MULTIPLIER_FACTOR_KEY = exports.GASLESS_FEATURE_DISABLED_KEY = exports.PRICE_FEED_KEY = exports.MULTICHAIN_BALANCE = void 0;
6
+ exports.claimsDisabledKey = exports.claimTermsKey = exports.gaslessFeatureDisabledKey = exports.priceFeedKey = exports.multichainBalanceKey = exports.subaccountAutoTopUpAmountKey = exports.subaccountIntegrationIdKey = exports.maxLendableImpactUsdKey = exports.maxLendableImpactFactorForWithdrawalsKey = exports.maxLendableImpactFactorKey = exports.subaccountActionCountKey = exports.maxAllowedSubaccountActionCountKey = exports.subaccountListKey = exports.uiFeeFactorKey = exports.maxPoolAmountKey = exports.maxPoolUsdForDepositKey = exports.isMarketDisabledKey = exports.affiliateRewardKey = exports.virtualInventoryForPositionsKey = exports.virtualInventoryForSwapsKey = exports.virtualMarketIdKey = exports.virtualTokenIdKey = exports.claimableFundingAmountKey = exports.hashedPositionKey = exports.minCollateralFactorForOpenInterest = exports.minCollateralFactorForLiquidationKey = exports.minCollateralFactorKey = exports.accountOrderListKey = exports.swapOrderGasLimitKey = exports.decreaseOrderGasLimitKey = exports.increaseOrderGasLimitKey = exports.singleSwapGasLimitKey = exports.shiftGasLimitKey = exports.withdrawalGasLimitKey = void 0;
7
7
  const hash_1 = require("../utils/hash");
8
8
  exports.POSITION_IMPACT_FACTOR_KEY = (0, hash_1.hashString)("POSITION_IMPACT_FACTOR");
9
9
  exports.MAX_POSITION_IMPACT_FACTOR_KEY = (0, hash_1.hashString)("MAX_POSITION_IMPACT_FACTOR");
@@ -170,6 +170,10 @@ function atomicSwapFeeFactorKey(market) {
170
170
  return (0, hash_1.hashData)(["bytes32", "address"], [exports.ATOMIC_SWAP_FEE_FACTOR_KEY, market]);
171
171
  }
172
172
  exports.atomicSwapFeeFactorKey = atomicSwapFeeFactorKey;
173
+ function withdrawalFeeFactorKey(market, forBalanceWasImproved) {
174
+ return (0, hash_1.hashData)(["bytes32", "address", "bool"], [exports.WITHDRAWAL_FEE_FACTOR_KEY, market, forBalanceWasImproved]);
175
+ }
176
+ exports.withdrawalFeeFactorKey = withdrawalFeeFactorKey;
173
177
  function openInterestKey(market, collateralToken, isLong) {
174
178
  return (0, hash_1.hashData)(["bytes32", "address", "address", "bool"], [exports.OPEN_INTEREST_KEY, market, collateralToken, isLong]);
175
179
  }
@@ -834,6 +834,41 @@ exports.MARKETS = {
834
834
  longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
835
835
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
836
836
  },
837
+ // AR/USD [WBTC-USDC]
838
+ "0xfa19f7d23a475575BD0270AE7de4FC6852442945": {
839
+ marketTokenAddress: "0xfa19f7d23a475575BD0270AE7de4FC6852442945",
840
+ indexTokenAddress: "0x4b9a2b862E1a30e6E844c991D31Dc6387c9d65D5",
841
+ longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
842
+ shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
843
+ },
844
+ // DASH/USD [WBTC-USDC]
845
+ "0x728Ff0679c89267434D6EF1824c8C8eED4aC3DBC": {
846
+ marketTokenAddress: "0x728Ff0679c89267434D6EF1824c8C8eED4aC3DBC",
847
+ indexTokenAddress: "0x426FE015a5F4E6Ad4E6497ad79265D07EA9F121e",
848
+ longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
849
+ shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
850
+ },
851
+ // JTO/USD [WBTC-USDC]
852
+ "0x3B4689d69516b9D4b1aaf7545c6fC4d3ED70b70b": {
853
+ marketTokenAddress: "0x3B4689d69516b9D4b1aaf7545c6fC4d3ED70b70b",
854
+ indexTokenAddress: "0xF01D2AA2f3f903A93D57c4Bf672C8096DE485FA7",
855
+ longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
856
+ shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
857
+ },
858
+ // SYRUP/USD [WETH-USDC]
859
+ "0x8965e821c7C8c09c6eB3Cb9cCf7Eb6f386441EA2": {
860
+ marketTokenAddress: "0x8965e821c7C8c09c6eB3Cb9cCf7Eb6f386441EA2",
861
+ indexTokenAddress: "0x9759C297fb6C91e252c7292cECa30a509558E5De",
862
+ longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
863
+ shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
864
+ },
865
+ // CHZ/USD [WETH-USDC]
866
+ "0x3600592DdEd7e6E0B05029DfB637fFc5A85D6f6B": {
867
+ marketTokenAddress: "0x3600592DdEd7e6E0B05029DfB637fFc5A85D6f6B",
868
+ indexTokenAddress: "0x5dB4692926C8ceebF6Da0995358Bbc438F3fd80C",
869
+ longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
870
+ shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
871
+ },
837
872
  },
838
873
  [chains_1.AVALANCHE]: {
839
874
  // BTC/USD [BTC-USDC]