@katanaperps/katana-perps-sdk 0.0.0-placeholder

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 (428) hide show
  1. package/.nvmrc +1 -0
  2. package/LICENSE +21 -0
  3. package/README.md +90 -0
  4. package/dist/abis/ERC20.json +288 -0
  5. package/dist/abis/EarningsEscrow.json +468 -0
  6. package/dist/abis/Exchange_v1.json +3644 -0
  7. package/dist/abis/IOFT.json +447 -0
  8. package/dist/bridge/config.d.ts +262 -0
  9. package/dist/bridge/config.d.ts.map +1 -0
  10. package/dist/bridge/config.js +221 -0
  11. package/dist/bridge/deposit.d.ts +107 -0
  12. package/dist/bridge/deposit.d.ts.map +1 -0
  13. package/dist/bridge/deposit.js +284 -0
  14. package/dist/bridge/index.d.ts +5 -0
  15. package/dist/bridge/index.d.ts.map +1 -0
  16. package/dist/bridge/index.js +7 -0
  17. package/dist/bridge/utils.d.ts +140 -0
  18. package/dist/bridge/utils.d.ts.map +1 -0
  19. package/dist/bridge/utils.js +66 -0
  20. package/dist/bridge/withdraw.d.ts +42 -0
  21. package/dist/bridge/withdraw.d.ts.map +1 -0
  22. package/dist/bridge/withdraw.js +86 -0
  23. package/dist/client/index.d.ts +4 -0
  24. package/dist/client/index.d.ts.map +1 -0
  25. package/dist/client/index.js +6 -0
  26. package/dist/client/orderBook/index.d.ts +2 -0
  27. package/dist/client/orderBook/index.d.ts.map +1 -0
  28. package/dist/client/orderBook/index.js +4 -0
  29. package/dist/client/orderBook/realTime.d.ts +180 -0
  30. package/dist/client/orderBook/realTime.d.ts.map +1 -0
  31. package/dist/client/orderBook/realTime.js +344 -0
  32. package/dist/client/orderBook/utils.d.ts +15 -0
  33. package/dist/client/orderBook/utils.d.ts.map +1 -0
  34. package/dist/client/orderBook/utils.js +77 -0
  35. package/dist/client/rest/authenticated.d.ts +1199 -0
  36. package/dist/client/rest/authenticated.d.ts.map +1 -0
  37. package/dist/client/rest/authenticated.js +1311 -0
  38. package/dist/client/rest/index.d.ts +3 -0
  39. package/dist/client/rest/index.d.ts.map +1 -0
  40. package/dist/client/rest/index.js +5 -0
  41. package/dist/client/rest/public.d.ts +436 -0
  42. package/dist/client/rest/public.d.ts.map +1 -0
  43. package/dist/client/rest/public.js +502 -0
  44. package/dist/client/webSocket/guards.d.ts +15 -0
  45. package/dist/client/webSocket/guards.d.ts.map +1 -0
  46. package/dist/client/webSocket/guards.js +37 -0
  47. package/dist/client/webSocket/index.d.ts +632 -0
  48. package/dist/client/webSocket/index.d.ts.map +1 -0
  49. package/dist/client/webSocket/index.js +1048 -0
  50. package/dist/client/webSocket/transform.d.ts +3 -0
  51. package/dist/client/webSocket/transform.d.ts.map +1 -0
  52. package/dist/client/webSocket/transform.js +244 -0
  53. package/dist/constants.d.ts +34 -0
  54. package/dist/constants.d.ts.map +1 -0
  55. package/dist/constants.js +38 -0
  56. package/dist/index.d.ts +9 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +14 -0
  59. package/dist/orderbook/apiConversions.d.ts +8 -0
  60. package/dist/orderbook/apiConversions.d.ts.map +1 -0
  61. package/dist/orderbook/apiConversions.js +100 -0
  62. package/dist/orderbook/demo.d.ts +2 -0
  63. package/dist/orderbook/demo.d.ts.map +1 -0
  64. package/dist/orderbook/demo.js +68 -0
  65. package/dist/orderbook/index.d.ts +3 -0
  66. package/dist/orderbook/index.d.ts.map +1 -0
  67. package/dist/orderbook/index.js +5 -0
  68. package/dist/orderbook/quantities.d.ts +112 -0
  69. package/dist/orderbook/quantities.d.ts.map +1 -0
  70. package/dist/orderbook/quantities.js +257 -0
  71. package/dist/orderbook/utils.d.ts +8 -0
  72. package/dist/orderbook/utils.d.ts.map +1 -0
  73. package/dist/orderbook/utils.js +28 -0
  74. package/dist/pipmath.d.ts +21 -0
  75. package/dist/pipmath.d.ts.map +1 -0
  76. package/dist/pipmath.js +110 -0
  77. package/dist/signatures.d.ts +37 -0
  78. package/dist/signatures.d.ts.map +1 -0
  79. package/dist/signatures.js +450 -0
  80. package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.d.ts +2 -0
  81. package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.d.ts.map +1 -0
  82. package/dist/tests/orderbook/quantities/calculateInitialMarginFractionWithOverride.test.js +49 -0
  83. package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.d.ts +2 -0
  84. package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.d.ts.map +1 -0
  85. package/dist/tests/orderbook/quantities/calculateMaximumInitialMarginFractionOverride.test.js +122 -0
  86. package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.d.ts +2 -0
  87. package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.d.ts.map +1 -0
  88. package/dist/tests/orderbook/quantities/determineMaximumReduceOnlyQuantityAvailableAtPriceLevel.test.js +138 -0
  89. package/dist/tests/orderbook/quantities.test.d.ts +2 -0
  90. package/dist/tests/orderbook/quantities.test.d.ts.map +1 -0
  91. package/dist/tests/orderbook/quantities.test.js +310 -0
  92. package/dist/tests/testHelpers.d.ts +2 -0
  93. package/dist/tests/testHelpers.d.ts.map +1 -0
  94. package/dist/tests/testHelpers.js +16 -0
  95. package/dist/tests/utils/deriveBaseURL.test.d.ts +2 -0
  96. package/dist/tests/utils/deriveBaseURL.test.d.ts.map +1 -0
  97. package/dist/tests/utils/deriveBaseURL.test.js +46 -0
  98. package/dist/typechain-types/ERC20.d.ts +170 -0
  99. package/dist/typechain-types/ERC20.d.ts.map +1 -0
  100. package/dist/typechain-types/ERC20.js +2 -0
  101. package/dist/typechain-types/EarningsEscrow.d.ts +210 -0
  102. package/dist/typechain-types/EarningsEscrow.d.ts.map +1 -0
  103. package/dist/typechain-types/EarningsEscrow.js +2 -0
  104. package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts +253 -0
  105. package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts.map +1 -0
  106. package/dist/typechain-types/ExchangeLayerZeroAdapter.js +2 -0
  107. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts +338 -0
  108. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts.map +1 -0
  109. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.js +2 -0
  110. package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts +413 -0
  111. package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts.map +1 -0
  112. package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.js +2 -0
  113. package/dist/typechain-types/Exchange_v1.d.ts +2172 -0
  114. package/dist/typechain-types/Exchange_v1.d.ts.map +1 -0
  115. package/dist/typechain-types/Exchange_v1.js +2 -0
  116. package/dist/typechain-types/Exchange_v2.d.ts +2148 -0
  117. package/dist/typechain-types/Exchange_v2.d.ts.map +1 -0
  118. package/dist/typechain-types/Exchange_v2.js +2 -0
  119. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts +148 -0
  120. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.d.ts.map +1 -0
  121. package/dist/typechain-types/FixedIncomeVaultProviderStateAggregator_v1.js +2 -0
  122. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts +1204 -0
  123. package/dist/typechain-types/FixedIncomeVaultProvider_v1.d.ts.map +1 -0
  124. package/dist/typechain-types/FixedIncomeVaultProvider_v1.js +2 -0
  125. package/dist/typechain-types/IOFT.d.ts +247 -0
  126. package/dist/typechain-types/IOFT.d.ts.map +1 -0
  127. package/dist/typechain-types/IOFT.js +2 -0
  128. package/dist/typechain-types/IRewardVault.d.ts +649 -0
  129. package/dist/typechain-types/IRewardVault.d.ts.map +1 -0
  130. package/dist/typechain-types/IRewardVault.js +2 -0
  131. package/dist/typechain-types/KumaOFTAdapterUSDC.d.ts +638 -0
  132. package/dist/typechain-types/KumaOFTAdapterUSDC.d.ts.map +1 -0
  133. package/dist/typechain-types/KumaOFTAdapterUSDC.js +2 -0
  134. package/dist/typechain-types/KumaOFTUSDC.d.ts +756 -0
  135. package/dist/typechain-types/KumaOFTUSDC.d.ts.map +1 -0
  136. package/dist/typechain-types/KumaOFTUSDC.js +2 -0
  137. package/dist/typechain-types/KumaStargateForwarder_v1.d.ts +252 -0
  138. package/dist/typechain-types/KumaStargateForwarder_v1.d.ts.map +1 -0
  139. package/dist/typechain-types/KumaStargateForwarder_v1.js +2 -0
  140. package/dist/typechain-types/KumaStargateForwarder_v2.d.ts +252 -0
  141. package/dist/typechain-types/KumaStargateForwarder_v2.d.ts.map +1 -0
  142. package/dist/typechain-types/KumaStargateForwarder_v2.js +2 -0
  143. package/dist/typechain-types/ProfitShareVaultProvider_v1.d.ts +1095 -0
  144. package/dist/typechain-types/ProfitShareVaultProvider_v1.d.ts.map +1 -0
  145. package/dist/typechain-types/ProfitShareVaultProvider_v1.js +2 -0
  146. package/dist/typechain-types/StargatePoolUSDC.d.ts +956 -0
  147. package/dist/typechain-types/StargatePoolUSDC.d.ts.map +1 -0
  148. package/dist/typechain-types/StargatePoolUSDC.js +2 -0
  149. package/dist/typechain-types/common.d.ts +51 -0
  150. package/dist/typechain-types/common.d.ts.map +1 -0
  151. package/dist/typechain-types/common.js +2 -0
  152. package/dist/typechain-types/factories/ERC20__factory.d.ts +226 -0
  153. package/dist/typechain-types/factories/ERC20__factory.d.ts.map +1 -0
  154. package/dist/typechain-types/factories/ERC20__factory.js +305 -0
  155. package/dist/typechain-types/factories/EarningsEscrow__factory.d.ts +370 -0
  156. package/dist/typechain-types/factories/EarningsEscrow__factory.d.ts.map +1 -0
  157. package/dist/typechain-types/factories/EarningsEscrow__factory.js +485 -0
  158. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts +359 -0
  159. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts.map +1 -0
  160. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.js +471 -0
  161. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts +419 -0
  162. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts.map +1 -0
  163. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.js +545 -0
  164. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.d.ts +546 -0
  165. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.d.ts.map +1 -0
  166. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v3__factory.js +710 -0
  167. package/dist/typechain-types/factories/Exchange_v1__factory.d.ts +2852 -0
  168. package/dist/typechain-types/factories/Exchange_v1__factory.d.ts.map +1 -0
  169. package/dist/typechain-types/factories/Exchange_v1__factory.js +3661 -0
  170. package/dist/typechain-types/factories/Exchange_v2__factory.d.ts +2832 -0
  171. package/dist/typechain-types/factories/Exchange_v2__factory.d.ts.map +1 -0
  172. package/dist/typechain-types/factories/Exchange_v2__factory.js +3636 -0
  173. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts +180 -0
  174. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.d.ts.map +1 -0
  175. package/dist/typechain-types/factories/FixedIncomeVaultProviderStateAggregator_v1__factory.js +246 -0
  176. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts +2092 -0
  177. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.d.ts.map +1 -0
  178. package/dist/typechain-types/factories/FixedIncomeVaultProvider_v1__factory.js +2702 -0
  179. package/dist/typechain-types/factories/IOFT__factory.d.ts +352 -0
  180. package/dist/typechain-types/factories/IOFT__factory.d.ts.map +1 -0
  181. package/dist/typechain-types/factories/IOFT__factory.js +464 -0
  182. package/dist/typechain-types/factories/IRewardVault__factory.d.ts +1019 -0
  183. package/dist/typechain-types/factories/IRewardVault__factory.d.ts.map +1 -0
  184. package/dist/typechain-types/factories/IRewardVault__factory.js +1311 -0
  185. package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.d.ts +996 -0
  186. package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.d.ts.map +1 -0
  187. package/dist/typechain-types/factories/KumaOFTAdapterUSDC__factory.js +1306 -0
  188. package/dist/typechain-types/factories/KumaOFTUSDC__factory.d.ts +1234 -0
  189. package/dist/typechain-types/factories/KumaOFTUSDC__factory.d.ts.map +1 -0
  190. package/dist/typechain-types/factories/KumaOFTUSDC__factory.js +1619 -0
  191. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts +354 -0
  192. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts.map +1 -0
  193. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.js +464 -0
  194. package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts +370 -0
  195. package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts.map +1 -0
  196. package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.js +486 -0
  197. package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.d.ts +1914 -0
  198. package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.d.ts.map +1 -0
  199. package/dist/typechain-types/factories/ProfitShareVaultProvider_v1__factory.js +2475 -0
  200. package/dist/typechain-types/factories/StargatePoolUSDC__factory.d.ts +1557 -0
  201. package/dist/typechain-types/factories/StargatePoolUSDC__factory.d.ts.map +1 -0
  202. package/dist/typechain-types/factories/StargatePoolUSDC__factory.js +2019 -0
  203. package/dist/typechain-types/factories/index.d.ts +5 -0
  204. package/dist/typechain-types/factories/index.d.ts.map +1 -0
  205. package/dist/typechain-types/factories/index.js +13 -0
  206. package/dist/typechain-types/index.d.ts +10 -0
  207. package/dist/typechain-types/index.d.ts.map +1 -0
  208. package/dist/typechain-types/index.js +15 -0
  209. package/dist/types/delegatedKeys.d.ts +44 -0
  210. package/dist/types/delegatedKeys.d.ts.map +1 -0
  211. package/dist/types/delegatedKeys.js +2 -0
  212. package/dist/types/enums/index.d.ts +4 -0
  213. package/dist/types/enums/index.d.ts.map +1 -0
  214. package/dist/types/enums/index.js +6 -0
  215. package/dist/types/enums/request.d.ts +980 -0
  216. package/dist/types/enums/request.d.ts.map +1 -0
  217. package/dist/types/enums/request.js +906 -0
  218. package/dist/types/enums/response.d.ts +329 -0
  219. package/dist/types/enums/response.d.ts.map +1 -0
  220. package/dist/types/enums/response.js +296 -0
  221. package/dist/types/enums/signature.d.ts +118 -0
  222. package/dist/types/enums/signature.d.ts.map +1 -0
  223. package/dist/types/enums/signature.js +131 -0
  224. package/dist/types/errors.d.ts +5 -0
  225. package/dist/types/errors.d.ts.map +1 -0
  226. package/dist/types/errors.js +2 -0
  227. package/dist/types/index.d.ts +9 -0
  228. package/dist/types/index.d.ts.map +1 -0
  229. package/dist/types/index.js +10 -0
  230. package/dist/types/orderBook.d.ts +72 -0
  231. package/dist/types/orderBook.d.ts.map +1 -0
  232. package/dist/types/orderBook.js +2 -0
  233. package/dist/types/rest/common/common.d.ts +118 -0
  234. package/dist/types/rest/common/common.d.ts.map +1 -0
  235. package/dist/types/rest/common/common.js +2 -0
  236. package/dist/types/rest/common/guards.d.ts +8 -0
  237. package/dist/types/rest/common/guards.d.ts.map +1 -0
  238. package/dist/types/rest/common/guards.js +14 -0
  239. package/dist/types/rest/endpoints/AssociateWallet.d.ts +40 -0
  240. package/dist/types/rest/endpoints/AssociateWallet.d.ts.map +1 -0
  241. package/dist/types/rest/endpoints/AssociateWallet.js +2 -0
  242. package/dist/types/rest/endpoints/CancelOrders.d.ts +134 -0
  243. package/dist/types/rest/endpoints/CancelOrders.d.ts.map +1 -0
  244. package/dist/types/rest/endpoints/CancelOrders.js +2 -0
  245. package/dist/types/rest/endpoints/CreateOrder.d.ts +401 -0
  246. package/dist/types/rest/endpoints/CreateOrder.d.ts.map +1 -0
  247. package/dist/types/rest/endpoints/CreateOrder.js +2 -0
  248. package/dist/types/rest/endpoints/GetAuthenticationToken.d.ts +39 -0
  249. package/dist/types/rest/endpoints/GetAuthenticationToken.d.ts.map +1 -0
  250. package/dist/types/rest/endpoints/GetAuthenticationToken.js +2 -0
  251. package/dist/types/rest/endpoints/GetCandles.d.ts +115 -0
  252. package/dist/types/rest/endpoints/GetCandles.d.ts.map +1 -0
  253. package/dist/types/rest/endpoints/GetCandles.js +2 -0
  254. package/dist/types/rest/endpoints/GetDeposits.d.ts +109 -0
  255. package/dist/types/rest/endpoints/GetDeposits.d.ts.map +1 -0
  256. package/dist/types/rest/endpoints/GetDeposits.js +2 -0
  257. package/dist/types/rest/endpoints/GetExchange.d.ts +78 -0
  258. package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -0
  259. package/dist/types/rest/endpoints/GetExchange.js +9 -0
  260. package/dist/types/rest/endpoints/GetFills.d.ts +178 -0
  261. package/dist/types/rest/endpoints/GetFills.d.ts.map +1 -0
  262. package/dist/types/rest/endpoints/GetFills.js +2 -0
  263. package/dist/types/rest/endpoints/GetFundingPayments.d.ts +52 -0
  264. package/dist/types/rest/endpoints/GetFundingPayments.d.ts.map +1 -0
  265. package/dist/types/rest/endpoints/GetFundingPayments.js +2 -0
  266. package/dist/types/rest/endpoints/GetFundingRates.d.ts +34 -0
  267. package/dist/types/rest/endpoints/GetFundingRates.d.ts.map +1 -0
  268. package/dist/types/rest/endpoints/GetFundingRates.js +2 -0
  269. package/dist/types/rest/endpoints/GetGasFees.d.ts +23 -0
  270. package/dist/types/rest/endpoints/GetGasFees.d.ts.map +1 -0
  271. package/dist/types/rest/endpoints/GetGasFees.js +2 -0
  272. package/dist/types/rest/endpoints/GetHistoricalPnL.d.ts +39 -0
  273. package/dist/types/rest/endpoints/GetHistoricalPnL.d.ts.map +1 -0
  274. package/dist/types/rest/endpoints/GetHistoricalPnL.js +2 -0
  275. package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.d.ts +31 -0
  276. package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.d.ts.map +1 -0
  277. package/dist/types/rest/endpoints/GetInitialMarginFractionOverride.js +2 -0
  278. package/dist/types/rest/endpoints/GetLiquidations.d.ts +52 -0
  279. package/dist/types/rest/endpoints/GetLiquidations.d.ts.map +1 -0
  280. package/dist/types/rest/endpoints/GetLiquidations.js +2 -0
  281. package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.d.ts +534 -0
  282. package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.d.ts.map +1 -0
  283. package/dist/types/rest/endpoints/GetMarketMakerRewardsEpochs.js +2 -0
  284. package/dist/types/rest/endpoints/GetMarkets.d.ts +161 -0
  285. package/dist/types/rest/endpoints/GetMarkets.d.ts.map +1 -0
  286. package/dist/types/rest/endpoints/GetMarkets.js +2 -0
  287. package/dist/types/rest/endpoints/GetOrderBook.d.ts +176 -0
  288. package/dist/types/rest/endpoints/GetOrderBook.d.ts.map +1 -0
  289. package/dist/types/rest/endpoints/GetOrderBook.js +2 -0
  290. package/dist/types/rest/endpoints/GetOrders.d.ts +188 -0
  291. package/dist/types/rest/endpoints/GetOrders.d.ts.map +1 -0
  292. package/dist/types/rest/endpoints/GetOrders.js +2 -0
  293. package/dist/types/rest/endpoints/GetPing.d.ts +8 -0
  294. package/dist/types/rest/endpoints/GetPing.d.ts.map +1 -0
  295. package/dist/types/rest/endpoints/GetPing.js +2 -0
  296. package/dist/types/rest/endpoints/GetPositions.d.ts +104 -0
  297. package/dist/types/rest/endpoints/GetPositions.d.ts.map +1 -0
  298. package/dist/types/rest/endpoints/GetPositions.js +2 -0
  299. package/dist/types/rest/endpoints/GetTickers.d.ts +129 -0
  300. package/dist/types/rest/endpoints/GetTickers.d.ts.map +1 -0
  301. package/dist/types/rest/endpoints/GetTickers.js +2 -0
  302. package/dist/types/rest/endpoints/GetTime.d.ts +14 -0
  303. package/dist/types/rest/endpoints/GetTime.d.ts.map +1 -0
  304. package/dist/types/rest/endpoints/GetTime.js +2 -0
  305. package/dist/types/rest/endpoints/GetTrades.d.ts +62 -0
  306. package/dist/types/rest/endpoints/GetTrades.d.ts.map +1 -0
  307. package/dist/types/rest/endpoints/GetTrades.js +2 -0
  308. package/dist/types/rest/endpoints/GetWallets.d.ts +121 -0
  309. package/dist/types/rest/endpoints/GetWallets.d.ts.map +1 -0
  310. package/dist/types/rest/endpoints/GetWallets.js +2 -0
  311. package/dist/types/rest/endpoints/GetWithdrawals.d.ts +98 -0
  312. package/dist/types/rest/endpoints/GetWithdrawals.d.ts.map +1 -0
  313. package/dist/types/rest/endpoints/GetWithdrawals.js +2 -0
  314. package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.d.ts +98 -0
  315. package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.d.ts.map +1 -0
  316. package/dist/types/rest/endpoints/GetWithdrawalsFromManagedAccount.js +2 -0
  317. package/dist/types/rest/endpoints/Payouts.d.ts +199 -0
  318. package/dist/types/rest/endpoints/Payouts.d.ts.map +1 -0
  319. package/dist/types/rest/endpoints/Payouts.js +2 -0
  320. package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.d.ts +83 -0
  321. package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.d.ts.map +1 -0
  322. package/dist/types/rest/endpoints/SetInitialMarginFractionOverride.js +2 -0
  323. package/dist/types/rest/endpoints/WithdrawFunds.d.ts +144 -0
  324. package/dist/types/rest/endpoints/WithdrawFunds.d.ts.map +1 -0
  325. package/dist/types/rest/endpoints/WithdrawFunds.js +2 -0
  326. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.d.ts +161 -0
  327. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.d.ts.map +1 -0
  328. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByQuantity.js +2 -0
  329. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.d.ts +160 -0
  330. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.d.ts.map +1 -0
  331. package/dist/types/rest/endpoints/WithdrawFundsFromManagedAccountByShares.js +2 -0
  332. package/dist/types/rest/endpoints/index.d.ts +33 -0
  333. package/dist/types/rest/endpoints/index.d.ts.map +1 -0
  334. package/dist/types/rest/endpoints/index.js +35 -0
  335. package/dist/types/rest/endpoints/internal.d.ts +329 -0
  336. package/dist/types/rest/endpoints/internal.d.ts.map +1 -0
  337. package/dist/types/rest/endpoints/internal.js +14 -0
  338. package/dist/types/rest/index.d.ts +4 -0
  339. package/dist/types/rest/index.d.ts.map +1 -0
  340. package/dist/types/rest/index.js +6 -0
  341. package/dist/types/swaps.d.ts +11 -0
  342. package/dist/types/swaps.d.ts.map +1 -0
  343. package/dist/types/swaps.js +2 -0
  344. package/dist/types/utils.d.ts +67 -0
  345. package/dist/types/utils.d.ts.map +1 -0
  346. package/dist/types/utils.js +3 -0
  347. package/dist/types/webSocket/base.d.ts +83 -0
  348. package/dist/types/webSocket/base.d.ts.map +1 -0
  349. package/dist/types/webSocket/base.js +2 -0
  350. package/dist/types/webSocket/constants.d.ts +41 -0
  351. package/dist/types/webSocket/constants.d.ts.map +1 -0
  352. package/dist/types/webSocket/constants.js +54 -0
  353. package/dist/types/webSocket/index.d.ts +6 -0
  354. package/dist/types/webSocket/index.d.ts.map +1 -0
  355. package/dist/types/webSocket/index.js +8 -0
  356. package/dist/types/webSocket/options.d.ts +276 -0
  357. package/dist/types/webSocket/options.d.ts.map +1 -0
  358. package/dist/types/webSocket/options.js +2 -0
  359. package/dist/types/webSocket/request/index.d.ts +3 -0
  360. package/dist/types/webSocket/request/index.d.ts.map +1 -0
  361. package/dist/types/webSocket/request/index.js +5 -0
  362. package/dist/types/webSocket/request/request.d.ts +137 -0
  363. package/dist/types/webSocket/request/request.d.ts.map +1 -0
  364. package/dist/types/webSocket/request/request.js +2 -0
  365. package/dist/types/webSocket/request/subscriptions.d.ts +498 -0
  366. package/dist/types/webSocket/request/subscriptions.d.ts.map +1 -0
  367. package/dist/types/webSocket/request/subscriptions.js +2 -0
  368. package/dist/types/webSocket/response/candles.d.ts +138 -0
  369. package/dist/types/webSocket/response/candles.d.ts.map +1 -0
  370. package/dist/types/webSocket/response/candles.js +2 -0
  371. package/dist/types/webSocket/response/deposits.d.ts +80 -0
  372. package/dist/types/webSocket/response/deposits.d.ts.map +1 -0
  373. package/dist/types/webSocket/response/deposits.js +2 -0
  374. package/dist/types/webSocket/response/fundingPayments.d.ts +78 -0
  375. package/dist/types/webSocket/response/fundingPayments.d.ts.map +1 -0
  376. package/dist/types/webSocket/response/fundingPayments.js +2 -0
  377. package/dist/types/webSocket/response/index.d.ts +13 -0
  378. package/dist/types/webSocket/response/index.d.ts.map +1 -0
  379. package/dist/types/webSocket/response/index.js +15 -0
  380. package/dist/types/webSocket/response/liquidations.d.ts +78 -0
  381. package/dist/types/webSocket/response/liquidations.d.ts.map +1 -0
  382. package/dist/types/webSocket/response/liquidations.js +2 -0
  383. package/dist/types/webSocket/response/orderbook.d.ts +214 -0
  384. package/dist/types/webSocket/response/orderbook.d.ts.map +1 -0
  385. package/dist/types/webSocket/response/orderbook.js +2 -0
  386. package/dist/types/webSocket/response/orders.d.ts +355 -0
  387. package/dist/types/webSocket/response/orders.d.ts.map +1 -0
  388. package/dist/types/webSocket/response/orders.js +2 -0
  389. package/dist/types/webSocket/response/ordersFill.d.ts +138 -0
  390. package/dist/types/webSocket/response/ordersFill.d.ts.map +1 -0
  391. package/dist/types/webSocket/response/ordersFill.js +2 -0
  392. package/dist/types/webSocket/response/positions.d.ts +120 -0
  393. package/dist/types/webSocket/response/positions.d.ts.map +1 -0
  394. package/dist/types/webSocket/response/positions.js +2 -0
  395. package/dist/types/webSocket/response/tickers.d.ts +131 -0
  396. package/dist/types/webSocket/response/tickers.d.ts.map +1 -0
  397. package/dist/types/webSocket/response/tickers.js +2 -0
  398. package/dist/types/webSocket/response/trades.d.ts +90 -0
  399. package/dist/types/webSocket/response/trades.d.ts.map +1 -0
  400. package/dist/types/webSocket/response/trades.js +2 -0
  401. package/dist/types/webSocket/response/webclient/base.d.ts +24 -0
  402. package/dist/types/webSocket/response/webclient/base.d.ts.map +1 -0
  403. package/dist/types/webSocket/response/webclient/base.js +2 -0
  404. package/dist/types/webSocket/response/webclient/events/exchangeStatus.d.ts +31 -0
  405. package/dist/types/webSocket/response/webclient/events/exchangeStatus.d.ts.map +1 -0
  406. package/dist/types/webSocket/response/webclient/events/exchangeStatus.js +2 -0
  407. package/dist/types/webSocket/response/webclient/events/index.d.ts +4 -0
  408. package/dist/types/webSocket/response/webclient/events/index.d.ts.map +1 -0
  409. package/dist/types/webSocket/response/webclient/events/index.js +6 -0
  410. package/dist/types/webSocket/response/webclient/events/reloadBanners.d.ts +17 -0
  411. package/dist/types/webSocket/response/webclient/events/reloadBanners.d.ts.map +1 -0
  412. package/dist/types/webSocket/response/webclient/events/reloadBanners.js +2 -0
  413. package/dist/types/webSocket/response/webclient/events/transactionSettled.d.ts +76 -0
  414. package/dist/types/webSocket/response/webclient/events/transactionSettled.d.ts.map +1 -0
  415. package/dist/types/webSocket/response/webclient/events/transactionSettled.js +2 -0
  416. package/dist/types/webSocket/response/webclient/index.d.ts +3 -0
  417. package/dist/types/webSocket/response/webclient/index.d.ts.map +1 -0
  418. package/dist/types/webSocket/response/webclient/index.js +5 -0
  419. package/dist/types/webSocket/response/webclient/webclient.d.ts +13 -0
  420. package/dist/types/webSocket/response/webclient/webclient.d.ts.map +1 -0
  421. package/dist/types/webSocket/response/webclient/webclient.js +2 -0
  422. package/dist/types/webSocket/response/withdrawals.d.ts +83 -0
  423. package/dist/types/webSocket/response/withdrawals.d.ts.map +1 -0
  424. package/dist/types/webSocket/response/withdrawals.js +2 -0
  425. package/dist/utils.d.ts +63 -0
  426. package/dist/utils.d.ts.map +1 -0
  427. package/dist/utils.js +136 -0
  428. package/package.json +200 -0
@@ -0,0 +1,3661 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Exchange_v1__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: 'contract IExchange',
13
+ name: 'balanceMigrationSource',
14
+ type: 'address',
15
+ },
16
+ {
17
+ internalType: 'address',
18
+ name: 'exitFundWallet_',
19
+ type: 'address',
20
+ },
21
+ {
22
+ internalType: 'address',
23
+ name: 'feeWallet_',
24
+ type: 'address',
25
+ },
26
+ {
27
+ internalType: 'contract IIndexPriceAdapter[]',
28
+ name: 'indexPriceAdapters',
29
+ type: 'address[]',
30
+ },
31
+ {
32
+ internalType: 'address',
33
+ name: 'insuranceFundWallet_',
34
+ type: 'address',
35
+ },
36
+ {
37
+ internalType: 'contract IOraclePriceAdapter',
38
+ name: 'oraclePriceAdapter_',
39
+ type: 'address',
40
+ },
41
+ {
42
+ internalType: 'address',
43
+ name: 'quoteTokenAddress_',
44
+ type: 'address',
45
+ },
46
+ ],
47
+ stateMutability: 'nonpayable',
48
+ type: 'constructor',
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: 'ExitFundCannotHaveOpenPosition',
53
+ type: 'error',
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: 'ExitFundHasNoPositions',
58
+ type: 'error',
59
+ },
60
+ {
61
+ inputs: [],
62
+ name: 'InvalidContractAddress',
63
+ type: 'error',
64
+ },
65
+ {
66
+ inputs: [],
67
+ name: 'InvalidShortString',
68
+ type: 'error',
69
+ },
70
+ {
71
+ inputs: [],
72
+ name: 'InvalidWalletAddress',
73
+ type: 'error',
74
+ },
75
+ {
76
+ inputs: [],
77
+ name: 'NewInsuranceFundWalletCannotBeExited',
78
+ type: 'error',
79
+ },
80
+ {
81
+ inputs: [],
82
+ name: 'NewValueExceedsMaximum',
83
+ type: 'error',
84
+ },
85
+ {
86
+ inputs: [],
87
+ name: 'NewValueMustBeDifferentFromCurrent',
88
+ type: 'error',
89
+ },
90
+ {
91
+ inputs: [],
92
+ name: 'SenderMustBeAdmin',
93
+ type: 'error',
94
+ },
95
+ {
96
+ inputs: [],
97
+ name: 'SenderMustBeAdminOrDispatcher',
98
+ type: 'error',
99
+ },
100
+ {
101
+ inputs: [],
102
+ name: 'SenderMustBeDispatcher',
103
+ type: 'error',
104
+ },
105
+ {
106
+ inputs: [],
107
+ name: 'SenderMustBeGovernance',
108
+ type: 'error',
109
+ },
110
+ {
111
+ inputs: [],
112
+ name: 'SenderMustBeOwner',
113
+ type: 'error',
114
+ },
115
+ {
116
+ inputs: [
117
+ {
118
+ internalType: 'string',
119
+ name: 'str',
120
+ type: 'string',
121
+ },
122
+ ],
123
+ name: 'StringTooLong',
124
+ type: 'error',
125
+ },
126
+ {
127
+ inputs: [],
128
+ name: 'UnknownBaseAssetSymbol',
129
+ type: 'error',
130
+ },
131
+ {
132
+ inputs: [],
133
+ name: 'ValueCanOnlyBetSetOnce',
134
+ type: 'error',
135
+ },
136
+ {
137
+ inputs: [],
138
+ name: 'WalletCannotBeExited',
139
+ type: 'error',
140
+ },
141
+ {
142
+ inputs: [],
143
+ name: 'WalletHasNoOverridesForMarket',
144
+ type: 'error',
145
+ },
146
+ {
147
+ inputs: [],
148
+ name: 'WalletMustBeExited',
149
+ type: 'error',
150
+ },
151
+ {
152
+ anonymous: false,
153
+ inputs: [
154
+ {
155
+ indexed: false,
156
+ internalType: 'uint256',
157
+ name: 'previousValue',
158
+ type: 'uint256',
159
+ },
160
+ {
161
+ indexed: false,
162
+ internalType: 'uint256',
163
+ name: 'newValue',
164
+ type: 'uint256',
165
+ },
166
+ ],
167
+ name: 'ChainPropagationPeriodChanged',
168
+ type: 'event',
169
+ },
170
+ {
171
+ anonymous: false,
172
+ inputs: [
173
+ {
174
+ indexed: false,
175
+ internalType: 'uint256',
176
+ name: 'previousValue',
177
+ type: 'uint256',
178
+ },
179
+ {
180
+ indexed: false,
181
+ internalType: 'uint256',
182
+ name: 'newValue',
183
+ type: 'uint256',
184
+ },
185
+ ],
186
+ name: 'DelegateKeyExpirationPeriodChanged',
187
+ type: 'event',
188
+ },
189
+ {
190
+ anonymous: false,
191
+ inputs: [
192
+ {
193
+ indexed: false,
194
+ internalType: 'string',
195
+ name: 'baseAssetSymbol',
196
+ type: 'string',
197
+ },
198
+ {
199
+ indexed: false,
200
+ internalType: 'address',
201
+ name: 'counterpartyWallet',
202
+ type: 'address',
203
+ },
204
+ {
205
+ indexed: false,
206
+ internalType: 'address',
207
+ name: 'liquidatingWallet',
208
+ type: 'address',
209
+ },
210
+ {
211
+ indexed: false,
212
+ internalType: 'uint64',
213
+ name: 'liquidationBaseQuantity',
214
+ type: 'uint64',
215
+ },
216
+ {
217
+ indexed: false,
218
+ internalType: 'uint64',
219
+ name: 'liquidationQuoteQuantity',
220
+ type: 'uint64',
221
+ },
222
+ ],
223
+ name: 'DeleveragedExitAcquisition',
224
+ type: 'event',
225
+ },
226
+ {
227
+ anonymous: false,
228
+ inputs: [
229
+ {
230
+ indexed: false,
231
+ internalType: 'string',
232
+ name: 'baseAssetSymbol',
233
+ type: 'string',
234
+ },
235
+ {
236
+ indexed: false,
237
+ internalType: 'address',
238
+ name: 'counterpartyWallet',
239
+ type: 'address',
240
+ },
241
+ {
242
+ indexed: false,
243
+ internalType: 'address',
244
+ name: 'exitFundWallet',
245
+ type: 'address',
246
+ },
247
+ {
248
+ indexed: false,
249
+ internalType: 'uint64',
250
+ name: 'liquidationBaseQuantity',
251
+ type: 'uint64',
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: 'uint64',
256
+ name: 'liquidationQuoteQuantity',
257
+ type: 'uint64',
258
+ },
259
+ ],
260
+ name: 'DeleveragedExitFundClosure',
261
+ type: 'event',
262
+ },
263
+ {
264
+ anonymous: false,
265
+ inputs: [
266
+ {
267
+ indexed: false,
268
+ internalType: 'string',
269
+ name: 'baseAssetSymbol',
270
+ type: 'string',
271
+ },
272
+ {
273
+ indexed: false,
274
+ internalType: 'address',
275
+ name: 'counterpartyWallet',
276
+ type: 'address',
277
+ },
278
+ {
279
+ indexed: false,
280
+ internalType: 'address',
281
+ name: 'liquidatingWallet',
282
+ type: 'address',
283
+ },
284
+ {
285
+ indexed: false,
286
+ internalType: 'uint64',
287
+ name: 'liquidationBaseQuantity',
288
+ type: 'uint64',
289
+ },
290
+ {
291
+ indexed: false,
292
+ internalType: 'uint64',
293
+ name: 'liquidationQuoteQuantity',
294
+ type: 'uint64',
295
+ },
296
+ ],
297
+ name: 'DeleveragedInMaintenanceAcquisition',
298
+ type: 'event',
299
+ },
300
+ {
301
+ anonymous: false,
302
+ inputs: [
303
+ {
304
+ indexed: false,
305
+ internalType: 'string',
306
+ name: 'baseAssetSymbol',
307
+ type: 'string',
308
+ },
309
+ {
310
+ indexed: false,
311
+ internalType: 'address',
312
+ name: 'counterpartyWallet',
313
+ type: 'address',
314
+ },
315
+ {
316
+ indexed: false,
317
+ internalType: 'address',
318
+ name: 'insuranceFundWallet',
319
+ type: 'address',
320
+ },
321
+ {
322
+ indexed: false,
323
+ internalType: 'uint64',
324
+ name: 'liquidationBaseQuantity',
325
+ type: 'uint64',
326
+ },
327
+ {
328
+ indexed: false,
329
+ internalType: 'uint64',
330
+ name: 'liquidationQuoteQuantity',
331
+ type: 'uint64',
332
+ },
333
+ ],
334
+ name: 'DeleveragedInsuranceFundClosure',
335
+ type: 'event',
336
+ },
337
+ {
338
+ anonymous: false,
339
+ inputs: [
340
+ {
341
+ indexed: false,
342
+ internalType: 'uint64',
343
+ name: 'index',
344
+ type: 'uint64',
345
+ },
346
+ {
347
+ indexed: false,
348
+ internalType: 'address',
349
+ name: 'sourceWallet',
350
+ type: 'address',
351
+ },
352
+ {
353
+ indexed: false,
354
+ internalType: 'address',
355
+ name: 'depositorWallet',
356
+ type: 'address',
357
+ },
358
+ {
359
+ indexed: false,
360
+ internalType: 'uint64',
361
+ name: 'quantity',
362
+ type: 'uint64',
363
+ },
364
+ {
365
+ indexed: false,
366
+ internalType: 'bool',
367
+ name: 'isAssociatedWithManagedAccount',
368
+ type: 'bool',
369
+ },
370
+ ],
371
+ name: 'Deposited',
372
+ type: 'event',
373
+ },
374
+ {
375
+ anonymous: false,
376
+ inputs: [],
377
+ name: 'DepositsDisabled',
378
+ type: 'event',
379
+ },
380
+ {
381
+ anonymous: false,
382
+ inputs: [],
383
+ name: 'DepositsEnabled',
384
+ type: 'event',
385
+ },
386
+ {
387
+ anonymous: false,
388
+ inputs: [
389
+ {
390
+ indexed: false,
391
+ internalType: 'address',
392
+ name: 'previousValue',
393
+ type: 'address',
394
+ },
395
+ {
396
+ indexed: false,
397
+ internalType: 'address',
398
+ name: 'newValue',
399
+ type: 'address',
400
+ },
401
+ ],
402
+ name: 'DispatcherChanged',
403
+ type: 'event',
404
+ },
405
+ {
406
+ anonymous: false,
407
+ inputs: [],
408
+ name: 'EIP712DomainChanged',
409
+ type: 'event',
410
+ },
411
+ {
412
+ anonymous: false,
413
+ inputs: [
414
+ {
415
+ indexed: false,
416
+ internalType: 'address',
417
+ name: 'previousValue',
418
+ type: 'address',
419
+ },
420
+ {
421
+ indexed: false,
422
+ internalType: 'address',
423
+ name: 'newValue',
424
+ type: 'address',
425
+ },
426
+ ],
427
+ name: 'ExitFundWalletChanged',
428
+ type: 'event',
429
+ },
430
+ {
431
+ anonymous: false,
432
+ inputs: [
433
+ {
434
+ indexed: false,
435
+ internalType: 'address',
436
+ name: 'previousValue',
437
+ type: 'address',
438
+ },
439
+ {
440
+ indexed: false,
441
+ internalType: 'address',
442
+ name: 'newValue',
443
+ type: 'address',
444
+ },
445
+ ],
446
+ name: 'FeeWalletChanged',
447
+ type: 'event',
448
+ },
449
+ {
450
+ anonymous: false,
451
+ inputs: [
452
+ {
453
+ indexed: false,
454
+ internalType: 'string',
455
+ name: 'baseAssetSymbol',
456
+ type: 'string',
457
+ },
458
+ {
459
+ indexed: false,
460
+ internalType: 'int64',
461
+ name: 'fundingRate',
462
+ type: 'int64',
463
+ },
464
+ ],
465
+ name: 'FundingRatePublished',
466
+ type: 'event',
467
+ },
468
+ {
469
+ anonymous: false,
470
+ inputs: [
471
+ {
472
+ indexed: false,
473
+ internalType: 'string',
474
+ name: 'baseAssetSymbol',
475
+ type: 'string',
476
+ },
477
+ {
478
+ indexed: false,
479
+ internalType: 'uint64',
480
+ name: 'timestampInMs',
481
+ type: 'uint64',
482
+ },
483
+ {
484
+ indexed: false,
485
+ internalType: 'uint64',
486
+ name: 'price',
487
+ type: 'uint64',
488
+ },
489
+ ],
490
+ name: 'IndexPricePublished',
491
+ type: 'event',
492
+ },
493
+ {
494
+ anonymous: false,
495
+ inputs: [
496
+ {
497
+ indexed: false,
498
+ internalType: 'string',
499
+ name: 'baseAssetSymbol',
500
+ type: 'string',
501
+ },
502
+ {
503
+ indexed: false,
504
+ internalType: 'address',
505
+ name: 'liquidatingWallet',
506
+ type: 'address',
507
+ },
508
+ {
509
+ indexed: false,
510
+ internalType: 'uint64',
511
+ name: 'liquidationBaseQuantity',
512
+ type: 'uint64',
513
+ },
514
+ {
515
+ indexed: false,
516
+ internalType: 'uint64',
517
+ name: 'liquidationQuoteQuantity',
518
+ type: 'uint64',
519
+ },
520
+ ],
521
+ name: 'LiquidatedPositionBelowMinimum',
522
+ type: 'event',
523
+ },
524
+ {
525
+ anonymous: false,
526
+ inputs: [
527
+ {
528
+ indexed: false,
529
+ internalType: 'string',
530
+ name: 'baseAssetSymbol',
531
+ type: 'string',
532
+ },
533
+ {
534
+ indexed: false,
535
+ internalType: 'address',
536
+ name: 'liquidatingWallet',
537
+ type: 'address',
538
+ },
539
+ {
540
+ indexed: false,
541
+ internalType: 'uint64',
542
+ name: 'liquidationBaseQuantity',
543
+ type: 'uint64',
544
+ },
545
+ {
546
+ indexed: false,
547
+ internalType: 'uint64',
548
+ name: 'liquidationQuoteQuantity',
549
+ type: 'uint64',
550
+ },
551
+ ],
552
+ name: 'LiquidatedPositionInDeactivatedMarket',
553
+ type: 'event',
554
+ },
555
+ {
556
+ anonymous: false,
557
+ inputs: [
558
+ {
559
+ indexed: false,
560
+ internalType: 'address',
561
+ name: 'liquidatingWallet',
562
+ type: 'address',
563
+ },
564
+ ],
565
+ name: 'LiquidatedWalletExit',
566
+ type: 'event',
567
+ },
568
+ {
569
+ anonymous: false,
570
+ inputs: [
571
+ {
572
+ indexed: false,
573
+ internalType: 'address',
574
+ name: 'liquidatingWallet',
575
+ type: 'address',
576
+ },
577
+ ],
578
+ name: 'LiquidatedWalletInMaintenance',
579
+ type: 'event',
580
+ },
581
+ {
582
+ anonymous: false,
583
+ inputs: [
584
+ {
585
+ indexed: false,
586
+ internalType: 'address',
587
+ name: 'liquidatingWallet',
588
+ type: 'address',
589
+ },
590
+ ],
591
+ name: 'LiquidatedWalletInMaintenanceDuringSystemRecovery',
592
+ type: 'event',
593
+ },
594
+ {
595
+ anonymous: false,
596
+ inputs: [
597
+ {
598
+ indexed: false,
599
+ internalType: 'address',
600
+ name: 'buyWallet',
601
+ type: 'address',
602
+ },
603
+ {
604
+ indexed: false,
605
+ internalType: 'address',
606
+ name: 'sellWallet',
607
+ type: 'address',
608
+ },
609
+ {
610
+ indexed: false,
611
+ internalType: 'string',
612
+ name: 'baseAssetSymbol',
613
+ type: 'string',
614
+ },
615
+ {
616
+ indexed: false,
617
+ internalType: 'string',
618
+ name: 'quoteAssetSymbol',
619
+ type: 'string',
620
+ },
621
+ {
622
+ indexed: false,
623
+ internalType: 'uint64',
624
+ name: 'baseQuantity',
625
+ type: 'uint64',
626
+ },
627
+ {
628
+ indexed: false,
629
+ internalType: 'uint64',
630
+ name: 'quoteQuantity',
631
+ type: 'uint64',
632
+ },
633
+ {
634
+ indexed: false,
635
+ internalType: 'enum OrderSide',
636
+ name: 'makerSide',
637
+ type: 'uint8',
638
+ },
639
+ {
640
+ indexed: false,
641
+ internalType: 'int64',
642
+ name: 'makerFeeQuantity',
643
+ type: 'int64',
644
+ },
645
+ {
646
+ indexed: false,
647
+ internalType: 'uint64',
648
+ name: 'takerFeeQuantity',
649
+ type: 'uint64',
650
+ },
651
+ ],
652
+ name: 'LiquidationAcquisitionExecuted',
653
+ type: 'event',
654
+ },
655
+ {
656
+ anonymous: false,
657
+ inputs: [
658
+ {
659
+ indexed: false,
660
+ internalType: 'string',
661
+ name: 'baseAssetSymbol',
662
+ type: 'string',
663
+ },
664
+ ],
665
+ name: 'MarketActivated',
666
+ type: 'event',
667
+ },
668
+ {
669
+ anonymous: false,
670
+ inputs: [
671
+ {
672
+ indexed: false,
673
+ internalType: 'string',
674
+ name: 'baseAssetSymbol',
675
+ type: 'string',
676
+ },
677
+ ],
678
+ name: 'MarketAdded',
679
+ type: 'event',
680
+ },
681
+ {
682
+ anonymous: false,
683
+ inputs: [
684
+ {
685
+ indexed: false,
686
+ internalType: 'string',
687
+ name: 'baseAssetSymbol',
688
+ type: 'string',
689
+ },
690
+ ],
691
+ name: 'MarketDeactivated',
692
+ type: 'event',
693
+ },
694
+ {
695
+ anonymous: false,
696
+ inputs: [
697
+ {
698
+ indexed: false,
699
+ internalType: 'string',
700
+ name: 'baseAssetSymbol',
701
+ type: 'string',
702
+ },
703
+ {
704
+ indexed: false,
705
+ internalType: 'address',
706
+ name: 'wallet',
707
+ type: 'address',
708
+ },
709
+ ],
710
+ name: 'MarketOverridesUnset',
711
+ type: 'event',
712
+ },
713
+ {
714
+ anonymous: false,
715
+ inputs: [
716
+ {
717
+ indexed: false,
718
+ internalType: 'address',
719
+ name: 'wallet',
720
+ type: 'address',
721
+ },
722
+ {
723
+ indexed: false,
724
+ internalType: 'uint128',
725
+ name: 'nonce',
726
+ type: 'uint128',
727
+ },
728
+ {
729
+ indexed: false,
730
+ internalType: 'uint128',
731
+ name: 'timestampInMs',
732
+ type: 'uint128',
733
+ },
734
+ {
735
+ indexed: false,
736
+ internalType: 'uint256',
737
+ name: 'effectiveBlockTimestamp',
738
+ type: 'uint256',
739
+ },
740
+ ],
741
+ name: 'OrderNonceInvalidated',
742
+ type: 'event',
743
+ },
744
+ {
745
+ anonymous: false,
746
+ inputs: [
747
+ {
748
+ indexed: false,
749
+ internalType: 'address',
750
+ name: 'wallet',
751
+ type: 'address',
752
+ },
753
+ {
754
+ indexed: false,
755
+ internalType: 'uint64',
756
+ name: 'quantity',
757
+ type: 'uint64',
758
+ },
759
+ {
760
+ indexed: false,
761
+ internalType: 'int64',
762
+ name: 'newExchangeBalance',
763
+ type: 'int64',
764
+ },
765
+ {
766
+ indexed: false,
767
+ internalType: 'bool',
768
+ name: 'isAssociatedWithManagedAccount',
769
+ type: 'bool',
770
+ },
771
+ ],
772
+ name: 'PendingDepositApplied',
773
+ type: 'event',
774
+ },
775
+ {
776
+ anonymous: false,
777
+ inputs: [
778
+ {
779
+ indexed: false,
780
+ internalType: 'uint256',
781
+ name: 'previousValue',
782
+ type: 'uint256',
783
+ },
784
+ {
785
+ indexed: false,
786
+ internalType: 'uint256',
787
+ name: 'newValue',
788
+ type: 'uint256',
789
+ },
790
+ ],
791
+ name: 'PositionBelowMinimumLiquidationPriceToleranceMultiplierChanged',
792
+ type: 'event',
793
+ },
794
+ {
795
+ anonymous: false,
796
+ inputs: [
797
+ {
798
+ indexed: false,
799
+ internalType: 'address',
800
+ name: 'previousValue',
801
+ type: 'address',
802
+ },
803
+ {
804
+ indexed: false,
805
+ internalType: 'address',
806
+ name: 'newValue',
807
+ type: 'address',
808
+ },
809
+ ],
810
+ name: 'QuoteTokenAddressChanged',
811
+ type: 'event',
812
+ },
813
+ {
814
+ anonymous: false,
815
+ inputs: [
816
+ {
817
+ indexed: false,
818
+ internalType: 'address',
819
+ name: 'buyWallet',
820
+ type: 'address',
821
+ },
822
+ {
823
+ indexed: false,
824
+ internalType: 'address',
825
+ name: 'sellWallet',
826
+ type: 'address',
827
+ },
828
+ {
829
+ indexed: false,
830
+ internalType: 'string',
831
+ name: 'baseAssetSymbol',
832
+ type: 'string',
833
+ },
834
+ {
835
+ indexed: false,
836
+ internalType: 'string',
837
+ name: 'quoteAssetSymbol',
838
+ type: 'string',
839
+ },
840
+ {
841
+ indexed: false,
842
+ internalType: 'uint64',
843
+ name: 'baseQuantity',
844
+ type: 'uint64',
845
+ },
846
+ {
847
+ indexed: false,
848
+ internalType: 'uint64',
849
+ name: 'quoteQuantity',
850
+ type: 'uint64',
851
+ },
852
+ {
853
+ indexed: false,
854
+ internalType: 'enum OrderSide',
855
+ name: 'makerSide',
856
+ type: 'uint8',
857
+ },
858
+ {
859
+ indexed: false,
860
+ internalType: 'int64',
861
+ name: 'makerFeeQuantity',
862
+ type: 'int64',
863
+ },
864
+ {
865
+ indexed: false,
866
+ internalType: 'uint64',
867
+ name: 'takerFeeQuantity',
868
+ type: 'uint64',
869
+ },
870
+ ],
871
+ name: 'TradeExecuted',
872
+ type: 'event',
873
+ },
874
+ {
875
+ anonymous: false,
876
+ inputs: [
877
+ {
878
+ indexed: false,
879
+ internalType: 'address',
880
+ name: 'destinationWallet',
881
+ type: 'address',
882
+ },
883
+ {
884
+ indexed: false,
885
+ internalType: 'address',
886
+ name: 'sourceWallet',
887
+ type: 'address',
888
+ },
889
+ {
890
+ indexed: false,
891
+ internalType: 'uint64',
892
+ name: 'quantity',
893
+ type: 'uint64',
894
+ },
895
+ {
896
+ indexed: false,
897
+ internalType: 'int64',
898
+ name: 'newDestinationWalletExchangeBalance',
899
+ type: 'int64',
900
+ },
901
+ {
902
+ indexed: false,
903
+ internalType: 'int64',
904
+ name: 'newSourceWalletExchangeBalance',
905
+ type: 'int64',
906
+ },
907
+ ],
908
+ name: 'Transferred',
909
+ type: 'event',
910
+ },
911
+ {
912
+ anonymous: false,
913
+ inputs: [
914
+ {
915
+ indexed: false,
916
+ internalType: 'address',
917
+ name: 'wallet',
918
+ type: 'address',
919
+ },
920
+ ],
921
+ name: 'WalletExitCleared',
922
+ type: 'event',
923
+ },
924
+ {
925
+ anonymous: false,
926
+ inputs: [
927
+ {
928
+ indexed: false,
929
+ internalType: 'address',
930
+ name: 'managerWallet',
931
+ type: 'address',
932
+ },
933
+ {
934
+ indexed: false,
935
+ internalType: 'address',
936
+ name: 'depositorWallet',
937
+ type: 'address',
938
+ },
939
+ {
940
+ indexed: false,
941
+ internalType: 'uint64',
942
+ name: 'quantity',
943
+ type: 'uint64',
944
+ },
945
+ ],
946
+ name: 'WalletExitFromManagedAccountWithdrawn',
947
+ type: 'event',
948
+ },
949
+ {
950
+ anonymous: false,
951
+ inputs: [
952
+ {
953
+ indexed: false,
954
+ internalType: 'address',
955
+ name: 'wallet',
956
+ type: 'address',
957
+ },
958
+ {
959
+ indexed: false,
960
+ internalType: 'uint64',
961
+ name: 'quantity',
962
+ type: 'uint64',
963
+ },
964
+ ],
965
+ name: 'WalletExitWithdrawn',
966
+ type: 'event',
967
+ },
968
+ {
969
+ anonymous: false,
970
+ inputs: [
971
+ {
972
+ indexed: false,
973
+ internalType: 'address',
974
+ name: 'wallet',
975
+ type: 'address',
976
+ },
977
+ {
978
+ indexed: false,
979
+ internalType: 'uint256',
980
+ name: 'effectiveBlockTimestamp',
981
+ type: 'uint256',
982
+ },
983
+ {
984
+ indexed: false,
985
+ internalType: 'bool',
986
+ name: 'isAssociatedWithManagedAccount',
987
+ type: 'bool',
988
+ },
989
+ ],
990
+ name: 'WalletExited',
991
+ type: 'event',
992
+ },
993
+ {
994
+ anonymous: false,
995
+ inputs: [
996
+ {
997
+ indexed: false,
998
+ internalType: 'address',
999
+ name: 'wallet',
1000
+ type: 'address',
1001
+ },
1002
+ {
1003
+ indexed: false,
1004
+ internalType: 'uint64',
1005
+ name: 'quantity',
1006
+ type: 'uint64',
1007
+ },
1008
+ {
1009
+ indexed: false,
1010
+ internalType: 'int64',
1011
+ name: 'newExchangeBalance',
1012
+ type: 'int64',
1013
+ },
1014
+ ],
1015
+ name: 'WithdrawalFromManagedAccountCanceled',
1016
+ type: 'event',
1017
+ },
1018
+ {
1019
+ anonymous: false,
1020
+ inputs: [
1021
+ {
1022
+ indexed: false,
1023
+ internalType: 'address',
1024
+ name: 'wallet',
1025
+ type: 'address',
1026
+ },
1027
+ {
1028
+ indexed: false,
1029
+ internalType: 'uint64',
1030
+ name: 'quantity',
1031
+ type: 'uint64',
1032
+ },
1033
+ {
1034
+ indexed: false,
1035
+ internalType: 'int64',
1036
+ name: 'newExchangeBalance',
1037
+ type: 'int64',
1038
+ },
1039
+ {
1040
+ indexed: false,
1041
+ internalType: 'bool',
1042
+ name: 'isAssociatedWithManagedAccount',
1043
+ type: 'bool',
1044
+ },
1045
+ ],
1046
+ name: 'Withdrawn',
1047
+ type: 'event',
1048
+ },
1049
+ {
1050
+ inputs: [
1051
+ {
1052
+ internalType: 'string',
1053
+ name: 'baseAssetSymbol',
1054
+ type: 'string',
1055
+ },
1056
+ ],
1057
+ name: 'activateMarket',
1058
+ outputs: [],
1059
+ stateMutability: 'nonpayable',
1060
+ type: 'function',
1061
+ },
1062
+ {
1063
+ inputs: [
1064
+ {
1065
+ components: [
1066
+ {
1067
+ internalType: 'bool',
1068
+ name: 'exists',
1069
+ type: 'bool',
1070
+ },
1071
+ {
1072
+ internalType: 'bool',
1073
+ name: 'isActive',
1074
+ type: 'bool',
1075
+ },
1076
+ {
1077
+ internalType: 'string',
1078
+ name: 'baseAssetSymbol',
1079
+ type: 'string',
1080
+ },
1081
+ {
1082
+ internalType: 'uint64',
1083
+ name: 'indexPriceAtDeactivation',
1084
+ type: 'uint64',
1085
+ },
1086
+ {
1087
+ internalType: 'uint64',
1088
+ name: 'lastIndexPrice',
1089
+ type: 'uint64',
1090
+ },
1091
+ {
1092
+ internalType: 'uint64',
1093
+ name: 'lastIndexPriceTimestampInMs',
1094
+ type: 'uint64',
1095
+ },
1096
+ {
1097
+ components: [
1098
+ {
1099
+ internalType: 'uint64',
1100
+ name: 'initialMarginFraction',
1101
+ type: 'uint64',
1102
+ },
1103
+ {
1104
+ internalType: 'uint64',
1105
+ name: 'maintenanceMarginFraction',
1106
+ type: 'uint64',
1107
+ },
1108
+ {
1109
+ internalType: 'uint64',
1110
+ name: 'incrementalInitialMarginFraction',
1111
+ type: 'uint64',
1112
+ },
1113
+ {
1114
+ internalType: 'uint64',
1115
+ name: 'baselinePositionSize',
1116
+ type: 'uint64',
1117
+ },
1118
+ {
1119
+ internalType: 'uint64',
1120
+ name: 'incrementalPositionSize',
1121
+ type: 'uint64',
1122
+ },
1123
+ {
1124
+ internalType: 'uint64',
1125
+ name: 'maximumPositionSize',
1126
+ type: 'uint64',
1127
+ },
1128
+ {
1129
+ internalType: 'uint64',
1130
+ name: 'minimumPositionSize',
1131
+ type: 'uint64',
1132
+ },
1133
+ ],
1134
+ internalType: 'struct OverridableMarketFields',
1135
+ name: 'overridableFields',
1136
+ type: 'tuple',
1137
+ },
1138
+ ],
1139
+ internalType: 'struct Market',
1140
+ name: 'newMarket',
1141
+ type: 'tuple',
1142
+ },
1143
+ ],
1144
+ name: 'addMarket',
1145
+ outputs: [],
1146
+ stateMutability: 'nonpayable',
1147
+ type: 'function',
1148
+ },
1149
+ {
1150
+ inputs: [],
1151
+ name: 'adminWallet',
1152
+ outputs: [
1153
+ {
1154
+ internalType: 'address',
1155
+ name: '',
1156
+ type: 'address',
1157
+ },
1158
+ ],
1159
+ stateMutability: 'view',
1160
+ type: 'function',
1161
+ },
1162
+ {
1163
+ inputs: [
1164
+ {
1165
+ internalType: 'address',
1166
+ name: 'wallet',
1167
+ type: 'address',
1168
+ },
1169
+ {
1170
+ internalType: 'string',
1171
+ name: 'baseAssetSymbol',
1172
+ type: 'string',
1173
+ },
1174
+ ],
1175
+ name: 'applyOutstandingWalletFundingForMarket',
1176
+ outputs: [],
1177
+ stateMutability: 'nonpayable',
1178
+ type: 'function',
1179
+ },
1180
+ {
1181
+ inputs: [
1182
+ {
1183
+ internalType: 'uint64',
1184
+ name: 'depositIndex_',
1185
+ type: 'uint64',
1186
+ },
1187
+ {
1188
+ internalType: 'uint64',
1189
+ name: 'quantity',
1190
+ type: 'uint64',
1191
+ },
1192
+ {
1193
+ internalType: 'address',
1194
+ name: 'managerWallet',
1195
+ type: 'address',
1196
+ },
1197
+ ],
1198
+ name: 'applyPendingDepositToManagedAccount',
1199
+ outputs: [],
1200
+ stateMutability: 'nonpayable',
1201
+ type: 'function',
1202
+ },
1203
+ {
1204
+ inputs: [
1205
+ {
1206
+ internalType: 'uint64',
1207
+ name: 'quantity',
1208
+ type: 'uint64',
1209
+ },
1210
+ {
1211
+ internalType: 'address',
1212
+ name: 'wallet',
1213
+ type: 'address',
1214
+ },
1215
+ ],
1216
+ name: 'applyPendingDepositsForWallet',
1217
+ outputs: [],
1218
+ stateMutability: 'nonpayable',
1219
+ type: 'function',
1220
+ },
1221
+ {
1222
+ inputs: [
1223
+ {
1224
+ components: [
1225
+ {
1226
+ internalType: 'enum ManagedAccountWithdrawalType',
1227
+ name: 'withdrawalType',
1228
+ type: 'uint8',
1229
+ },
1230
+ {
1231
+ components: [
1232
+ {
1233
+ internalType: 'uint128',
1234
+ name: 'nonce',
1235
+ type: 'uint128',
1236
+ },
1237
+ {
1238
+ internalType: 'address',
1239
+ name: 'managerWallet',
1240
+ type: 'address',
1241
+ },
1242
+ {
1243
+ internalType: 'address',
1244
+ name: 'depositorWallet',
1245
+ type: 'address',
1246
+ },
1247
+ {
1248
+ internalType: 'uint64',
1249
+ name: 'grossQuantity',
1250
+ type: 'uint64',
1251
+ },
1252
+ {
1253
+ internalType: 'uint64',
1254
+ name: 'maxShares',
1255
+ type: 'uint64',
1256
+ },
1257
+ {
1258
+ internalType: 'uint64',
1259
+ name: 'maximumGasFee',
1260
+ type: 'uint64',
1261
+ },
1262
+ {
1263
+ internalType: 'contract IManagedAccountProvider',
1264
+ name: 'managedAccountProvider',
1265
+ type: 'address',
1266
+ },
1267
+ {
1268
+ internalType: 'bytes',
1269
+ name: 'managedAccountProviderPayload',
1270
+ type: 'bytes',
1271
+ },
1272
+ {
1273
+ internalType: 'address',
1274
+ name: 'bridgeAdapter',
1275
+ type: 'address',
1276
+ },
1277
+ {
1278
+ internalType: 'bytes',
1279
+ name: 'bridgeAdapterPayload',
1280
+ type: 'bytes',
1281
+ },
1282
+ {
1283
+ internalType: 'uint64',
1284
+ name: 'gasFee',
1285
+ type: 'uint64',
1286
+ },
1287
+ {
1288
+ internalType: 'bytes',
1289
+ name: 'walletSignature',
1290
+ type: 'bytes',
1291
+ },
1292
+ ],
1293
+ internalType: 'struct WithdrawalFromManagedAccountByQuantity',
1294
+ name: 'withdrawalByQuantity',
1295
+ type: 'tuple',
1296
+ },
1297
+ {
1298
+ components: [
1299
+ {
1300
+ internalType: 'uint128',
1301
+ name: 'nonce',
1302
+ type: 'uint128',
1303
+ },
1304
+ {
1305
+ internalType: 'address',
1306
+ name: 'managerWallet',
1307
+ type: 'address',
1308
+ },
1309
+ {
1310
+ internalType: 'address',
1311
+ name: 'depositorWallet',
1312
+ type: 'address',
1313
+ },
1314
+ {
1315
+ internalType: 'uint64',
1316
+ name: 'shares',
1317
+ type: 'uint64',
1318
+ },
1319
+ {
1320
+ internalType: 'uint64',
1321
+ name: 'minimumQuantity',
1322
+ type: 'uint64',
1323
+ },
1324
+ {
1325
+ internalType: 'uint64',
1326
+ name: 'maximumGasFee',
1327
+ type: 'uint64',
1328
+ },
1329
+ {
1330
+ internalType: 'contract IManagedAccountProvider',
1331
+ name: 'managedAccountProvider',
1332
+ type: 'address',
1333
+ },
1334
+ {
1335
+ internalType: 'bytes',
1336
+ name: 'managedAccountProviderPayload',
1337
+ type: 'bytes',
1338
+ },
1339
+ {
1340
+ internalType: 'address',
1341
+ name: 'bridgeAdapter',
1342
+ type: 'address',
1343
+ },
1344
+ {
1345
+ internalType: 'bytes',
1346
+ name: 'bridgeAdapterPayload',
1347
+ type: 'bytes',
1348
+ },
1349
+ {
1350
+ internalType: 'uint64',
1351
+ name: 'gasFee',
1352
+ type: 'uint64',
1353
+ },
1354
+ {
1355
+ internalType: 'uint64',
1356
+ name: 'grossQuantity',
1357
+ type: 'uint64',
1358
+ },
1359
+ {
1360
+ internalType: 'bytes',
1361
+ name: 'walletSignature',
1362
+ type: 'bytes',
1363
+ },
1364
+ ],
1365
+ internalType: 'struct WithdrawalFromManagedAccountByShares',
1366
+ name: 'withdrawalByShares',
1367
+ type: 'tuple',
1368
+ },
1369
+ ],
1370
+ internalType: 'struct WithdrawalFromManagedAccount',
1371
+ name: 'withdrawal',
1372
+ type: 'tuple',
1373
+ },
1374
+ ],
1375
+ name: 'applyPendingWithdrawalFromManagedAccount',
1376
+ outputs: [],
1377
+ stateMutability: 'nonpayable',
1378
+ type: 'function',
1379
+ },
1380
+ {
1381
+ inputs: [
1382
+ {
1383
+ internalType: 'address',
1384
+ name: 'managerWallet',
1385
+ type: 'address',
1386
+ },
1387
+ ],
1388
+ name: 'associateManagerWalletWithManagedAccount',
1389
+ outputs: [],
1390
+ stateMutability: 'nonpayable',
1391
+ type: 'function',
1392
+ },
1393
+ {
1394
+ inputs: [
1395
+ {
1396
+ components: [
1397
+ {
1398
+ internalType: 'enum ManagedAccountWithdrawalType',
1399
+ name: 'withdrawalType',
1400
+ type: 'uint8',
1401
+ },
1402
+ {
1403
+ components: [
1404
+ {
1405
+ internalType: 'uint128',
1406
+ name: 'nonce',
1407
+ type: 'uint128',
1408
+ },
1409
+ {
1410
+ internalType: 'address',
1411
+ name: 'managerWallet',
1412
+ type: 'address',
1413
+ },
1414
+ {
1415
+ internalType: 'address',
1416
+ name: 'depositorWallet',
1417
+ type: 'address',
1418
+ },
1419
+ {
1420
+ internalType: 'uint64',
1421
+ name: 'grossQuantity',
1422
+ type: 'uint64',
1423
+ },
1424
+ {
1425
+ internalType: 'uint64',
1426
+ name: 'maxShares',
1427
+ type: 'uint64',
1428
+ },
1429
+ {
1430
+ internalType: 'uint64',
1431
+ name: 'maximumGasFee',
1432
+ type: 'uint64',
1433
+ },
1434
+ {
1435
+ internalType: 'contract IManagedAccountProvider',
1436
+ name: 'managedAccountProvider',
1437
+ type: 'address',
1438
+ },
1439
+ {
1440
+ internalType: 'bytes',
1441
+ name: 'managedAccountProviderPayload',
1442
+ type: 'bytes',
1443
+ },
1444
+ {
1445
+ internalType: 'address',
1446
+ name: 'bridgeAdapter',
1447
+ type: 'address',
1448
+ },
1449
+ {
1450
+ internalType: 'bytes',
1451
+ name: 'bridgeAdapterPayload',
1452
+ type: 'bytes',
1453
+ },
1454
+ {
1455
+ internalType: 'uint64',
1456
+ name: 'gasFee',
1457
+ type: 'uint64',
1458
+ },
1459
+ {
1460
+ internalType: 'bytes',
1461
+ name: 'walletSignature',
1462
+ type: 'bytes',
1463
+ },
1464
+ ],
1465
+ internalType: 'struct WithdrawalFromManagedAccountByQuantity',
1466
+ name: 'withdrawalByQuantity',
1467
+ type: 'tuple',
1468
+ },
1469
+ {
1470
+ components: [
1471
+ {
1472
+ internalType: 'uint128',
1473
+ name: 'nonce',
1474
+ type: 'uint128',
1475
+ },
1476
+ {
1477
+ internalType: 'address',
1478
+ name: 'managerWallet',
1479
+ type: 'address',
1480
+ },
1481
+ {
1482
+ internalType: 'address',
1483
+ name: 'depositorWallet',
1484
+ type: 'address',
1485
+ },
1486
+ {
1487
+ internalType: 'uint64',
1488
+ name: 'shares',
1489
+ type: 'uint64',
1490
+ },
1491
+ {
1492
+ internalType: 'uint64',
1493
+ name: 'minimumQuantity',
1494
+ type: 'uint64',
1495
+ },
1496
+ {
1497
+ internalType: 'uint64',
1498
+ name: 'maximumGasFee',
1499
+ type: 'uint64',
1500
+ },
1501
+ {
1502
+ internalType: 'contract IManagedAccountProvider',
1503
+ name: 'managedAccountProvider',
1504
+ type: 'address',
1505
+ },
1506
+ {
1507
+ internalType: 'bytes',
1508
+ name: 'managedAccountProviderPayload',
1509
+ type: 'bytes',
1510
+ },
1511
+ {
1512
+ internalType: 'address',
1513
+ name: 'bridgeAdapter',
1514
+ type: 'address',
1515
+ },
1516
+ {
1517
+ internalType: 'bytes',
1518
+ name: 'bridgeAdapterPayload',
1519
+ type: 'bytes',
1520
+ },
1521
+ {
1522
+ internalType: 'uint64',
1523
+ name: 'gasFee',
1524
+ type: 'uint64',
1525
+ },
1526
+ {
1527
+ internalType: 'uint64',
1528
+ name: 'grossQuantity',
1529
+ type: 'uint64',
1530
+ },
1531
+ {
1532
+ internalType: 'bytes',
1533
+ name: 'walletSignature',
1534
+ type: 'bytes',
1535
+ },
1536
+ ],
1537
+ internalType: 'struct WithdrawalFromManagedAccountByShares',
1538
+ name: 'withdrawalByShares',
1539
+ type: 'tuple',
1540
+ },
1541
+ ],
1542
+ internalType: 'struct WithdrawalFromManagedAccount',
1543
+ name: 'withdrawal',
1544
+ type: 'tuple',
1545
+ },
1546
+ ],
1547
+ name: 'cancelPendingWithdrawalFromManagedAccount',
1548
+ outputs: [],
1549
+ stateMutability: 'nonpayable',
1550
+ type: 'function',
1551
+ },
1552
+ {
1553
+ inputs: [],
1554
+ name: 'chainPropagationPeriodInS',
1555
+ outputs: [
1556
+ {
1557
+ internalType: 'uint256',
1558
+ name: '',
1559
+ type: 'uint256',
1560
+ },
1561
+ ],
1562
+ stateMutability: 'view',
1563
+ type: 'function',
1564
+ },
1565
+ {
1566
+ inputs: [],
1567
+ name: 'clearWalletExit',
1568
+ outputs: [],
1569
+ stateMutability: 'nonpayable',
1570
+ type: 'function',
1571
+ },
1572
+ {
1573
+ inputs: [],
1574
+ name: 'custodian',
1575
+ outputs: [
1576
+ {
1577
+ internalType: 'contract ICustodian',
1578
+ name: '',
1579
+ type: 'address',
1580
+ },
1581
+ ],
1582
+ stateMutability: 'view',
1583
+ type: 'function',
1584
+ },
1585
+ {
1586
+ inputs: [
1587
+ {
1588
+ internalType: 'string',
1589
+ name: 'baseAssetSymbol',
1590
+ type: 'string',
1591
+ },
1592
+ ],
1593
+ name: 'deactivateMarket',
1594
+ outputs: [],
1595
+ stateMutability: 'nonpayable',
1596
+ type: 'function',
1597
+ },
1598
+ {
1599
+ inputs: [],
1600
+ name: 'delegateKeyExpirationPeriodInMs',
1601
+ outputs: [
1602
+ {
1603
+ internalType: 'uint64',
1604
+ name: '',
1605
+ type: 'uint64',
1606
+ },
1607
+ ],
1608
+ stateMutability: 'view',
1609
+ type: 'function',
1610
+ },
1611
+ {
1612
+ inputs: [
1613
+ {
1614
+ components: [
1615
+ {
1616
+ internalType: 'string',
1617
+ name: 'baseAssetSymbol',
1618
+ type: 'string',
1619
+ },
1620
+ {
1621
+ internalType: 'address',
1622
+ name: 'counterpartyWallet',
1623
+ type: 'address',
1624
+ },
1625
+ {
1626
+ internalType: 'address',
1627
+ name: 'liquidatingWallet',
1628
+ type: 'address',
1629
+ },
1630
+ {
1631
+ internalType: 'uint64',
1632
+ name: 'liquidationBaseQuantity',
1633
+ type: 'uint64',
1634
+ },
1635
+ {
1636
+ internalType: 'uint64',
1637
+ name: 'liquidationQuoteQuantity',
1638
+ type: 'uint64',
1639
+ },
1640
+ ],
1641
+ internalType: 'struct AcquisitionDeleverageArguments',
1642
+ name: 'deleverageArguments',
1643
+ type: 'tuple',
1644
+ },
1645
+ ],
1646
+ name: 'deleverageExitAcquisition',
1647
+ outputs: [],
1648
+ stateMutability: 'nonpayable',
1649
+ type: 'function',
1650
+ },
1651
+ {
1652
+ inputs: [
1653
+ {
1654
+ components: [
1655
+ {
1656
+ internalType: 'string',
1657
+ name: 'baseAssetSymbol',
1658
+ type: 'string',
1659
+ },
1660
+ {
1661
+ internalType: 'address',
1662
+ name: 'counterpartyWallet',
1663
+ type: 'address',
1664
+ },
1665
+ {
1666
+ internalType: 'address',
1667
+ name: 'liquidatingWallet',
1668
+ type: 'address',
1669
+ },
1670
+ {
1671
+ internalType: 'uint64',
1672
+ name: 'liquidationBaseQuantity',
1673
+ type: 'uint64',
1674
+ },
1675
+ {
1676
+ internalType: 'uint64',
1677
+ name: 'liquidationQuoteQuantity',
1678
+ type: 'uint64',
1679
+ },
1680
+ ],
1681
+ internalType: 'struct ClosureDeleverageArguments',
1682
+ name: 'deleverageArguments',
1683
+ type: 'tuple',
1684
+ },
1685
+ ],
1686
+ name: 'deleverageExitFundClosure',
1687
+ outputs: [],
1688
+ stateMutability: 'nonpayable',
1689
+ type: 'function',
1690
+ },
1691
+ {
1692
+ inputs: [
1693
+ {
1694
+ components: [
1695
+ {
1696
+ internalType: 'string',
1697
+ name: 'baseAssetSymbol',
1698
+ type: 'string',
1699
+ },
1700
+ {
1701
+ internalType: 'address',
1702
+ name: 'counterpartyWallet',
1703
+ type: 'address',
1704
+ },
1705
+ {
1706
+ internalType: 'address',
1707
+ name: 'liquidatingWallet',
1708
+ type: 'address',
1709
+ },
1710
+ {
1711
+ internalType: 'uint64',
1712
+ name: 'liquidationBaseQuantity',
1713
+ type: 'uint64',
1714
+ },
1715
+ {
1716
+ internalType: 'uint64',
1717
+ name: 'liquidationQuoteQuantity',
1718
+ type: 'uint64',
1719
+ },
1720
+ ],
1721
+ internalType: 'struct AcquisitionDeleverageArguments',
1722
+ name: 'deleverageArguments',
1723
+ type: 'tuple',
1724
+ },
1725
+ ],
1726
+ name: 'deleverageInMaintenanceAcquisition',
1727
+ outputs: [],
1728
+ stateMutability: 'nonpayable',
1729
+ type: 'function',
1730
+ },
1731
+ {
1732
+ inputs: [
1733
+ {
1734
+ components: [
1735
+ {
1736
+ internalType: 'string',
1737
+ name: 'baseAssetSymbol',
1738
+ type: 'string',
1739
+ },
1740
+ {
1741
+ internalType: 'address',
1742
+ name: 'counterpartyWallet',
1743
+ type: 'address',
1744
+ },
1745
+ {
1746
+ internalType: 'address',
1747
+ name: 'liquidatingWallet',
1748
+ type: 'address',
1749
+ },
1750
+ {
1751
+ internalType: 'uint64',
1752
+ name: 'liquidationBaseQuantity',
1753
+ type: 'uint64',
1754
+ },
1755
+ {
1756
+ internalType: 'uint64',
1757
+ name: 'liquidationQuoteQuantity',
1758
+ type: 'uint64',
1759
+ },
1760
+ ],
1761
+ internalType: 'struct ClosureDeleverageArguments',
1762
+ name: 'deleverageArguments',
1763
+ type: 'tuple',
1764
+ },
1765
+ ],
1766
+ name: 'deleverageInsuranceFundClosure',
1767
+ outputs: [],
1768
+ stateMutability: 'nonpayable',
1769
+ type: 'function',
1770
+ },
1771
+ {
1772
+ inputs: [
1773
+ {
1774
+ internalType: 'uint256',
1775
+ name: 'quantityInAssetUnits',
1776
+ type: 'uint256',
1777
+ },
1778
+ {
1779
+ internalType: 'address',
1780
+ name: 'depositorWallet',
1781
+ type: 'address',
1782
+ },
1783
+ ],
1784
+ name: 'deposit',
1785
+ outputs: [],
1786
+ stateMutability: 'nonpayable',
1787
+ type: 'function',
1788
+ },
1789
+ {
1790
+ inputs: [],
1791
+ name: 'depositIndex',
1792
+ outputs: [
1793
+ {
1794
+ internalType: 'uint64',
1795
+ name: '',
1796
+ type: 'uint64',
1797
+ },
1798
+ ],
1799
+ stateMutability: 'view',
1800
+ type: 'function',
1801
+ },
1802
+ {
1803
+ inputs: [
1804
+ {
1805
+ internalType: 'uint256',
1806
+ name: 'quantityInAssetUnits',
1807
+ type: 'uint256',
1808
+ },
1809
+ {
1810
+ internalType: 'address',
1811
+ name: 'depositorWallet',
1812
+ type: 'address',
1813
+ },
1814
+ {
1815
+ internalType: 'contract IManagedAccountProvider',
1816
+ name: 'managedAccountProvider',
1817
+ type: 'address',
1818
+ },
1819
+ {
1820
+ internalType: 'bytes',
1821
+ name: 'managedAccountProviderPayload',
1822
+ type: 'bytes',
1823
+ },
1824
+ {
1825
+ internalType: 'address',
1826
+ name: 'managerWallet',
1827
+ type: 'address',
1828
+ },
1829
+ ],
1830
+ name: 'depositToManagedAccount',
1831
+ outputs: [],
1832
+ stateMutability: 'nonpayable',
1833
+ type: 'function',
1834
+ },
1835
+ {
1836
+ inputs: [],
1837
+ name: 'dispatcherWallet',
1838
+ outputs: [
1839
+ {
1840
+ internalType: 'address',
1841
+ name: '',
1842
+ type: 'address',
1843
+ },
1844
+ ],
1845
+ stateMutability: 'view',
1846
+ type: 'function',
1847
+ },
1848
+ {
1849
+ inputs: [],
1850
+ name: 'domainSeparatorV4',
1851
+ outputs: [
1852
+ {
1853
+ internalType: 'bytes32',
1854
+ name: '',
1855
+ type: 'bytes32',
1856
+ },
1857
+ ],
1858
+ stateMutability: 'view',
1859
+ type: 'function',
1860
+ },
1861
+ {
1862
+ inputs: [],
1863
+ name: 'eip712Domain',
1864
+ outputs: [
1865
+ {
1866
+ internalType: 'bytes1',
1867
+ name: 'fields',
1868
+ type: 'bytes1',
1869
+ },
1870
+ {
1871
+ internalType: 'string',
1872
+ name: 'name',
1873
+ type: 'string',
1874
+ },
1875
+ {
1876
+ internalType: 'string',
1877
+ name: 'version',
1878
+ type: 'string',
1879
+ },
1880
+ {
1881
+ internalType: 'uint256',
1882
+ name: 'chainId',
1883
+ type: 'uint256',
1884
+ },
1885
+ {
1886
+ internalType: 'address',
1887
+ name: 'verifyingContract',
1888
+ type: 'address',
1889
+ },
1890
+ {
1891
+ internalType: 'bytes32',
1892
+ name: 'salt',
1893
+ type: 'bytes32',
1894
+ },
1895
+ {
1896
+ internalType: 'uint256[]',
1897
+ name: 'extensions',
1898
+ type: 'uint256[]',
1899
+ },
1900
+ ],
1901
+ stateMutability: 'view',
1902
+ type: 'function',
1903
+ },
1904
+ {
1905
+ inputs: [
1906
+ {
1907
+ components: [
1908
+ {
1909
+ internalType: 'string',
1910
+ name: 'baseAssetSymbol',
1911
+ type: 'string',
1912
+ },
1913
+ {
1914
+ internalType: 'uint64',
1915
+ name: 'baseQuantity',
1916
+ type: 'uint64',
1917
+ },
1918
+ {
1919
+ internalType: 'uint64',
1920
+ name: 'quoteQuantity',
1921
+ type: 'uint64',
1922
+ },
1923
+ {
1924
+ internalType: 'int64',
1925
+ name: 'makerFeeQuantity',
1926
+ type: 'int64',
1927
+ },
1928
+ {
1929
+ internalType: 'uint64',
1930
+ name: 'takerFeeQuantity',
1931
+ type: 'uint64',
1932
+ },
1933
+ {
1934
+ internalType: 'uint64',
1935
+ name: 'price',
1936
+ type: 'uint64',
1937
+ },
1938
+ {
1939
+ internalType: 'enum OrderSide',
1940
+ name: 'makerSide',
1941
+ type: 'uint8',
1942
+ },
1943
+ ],
1944
+ internalType: 'struct Trade',
1945
+ name: 'trade',
1946
+ type: 'tuple',
1947
+ },
1948
+ {
1949
+ components: [
1950
+ {
1951
+ internalType: 'uint128',
1952
+ name: 'nonce',
1953
+ type: 'uint128',
1954
+ },
1955
+ {
1956
+ internalType: 'address',
1957
+ name: 'wallet',
1958
+ type: 'address',
1959
+ },
1960
+ {
1961
+ internalType: 'enum OrderType',
1962
+ name: 'orderType',
1963
+ type: 'uint8',
1964
+ },
1965
+ {
1966
+ internalType: 'enum OrderSide',
1967
+ name: 'side',
1968
+ type: 'uint8',
1969
+ },
1970
+ {
1971
+ internalType: 'uint64',
1972
+ name: 'quantity',
1973
+ type: 'uint64',
1974
+ },
1975
+ {
1976
+ internalType: 'uint64',
1977
+ name: 'limitPrice',
1978
+ type: 'uint64',
1979
+ },
1980
+ {
1981
+ internalType: 'uint64',
1982
+ name: 'triggerPrice',
1983
+ type: 'uint64',
1984
+ },
1985
+ {
1986
+ internalType: 'enum OrderTriggerType',
1987
+ name: 'triggerType',
1988
+ type: 'uint8',
1989
+ },
1990
+ {
1991
+ internalType: 'uint64',
1992
+ name: 'callbackRate',
1993
+ type: 'uint64',
1994
+ },
1995
+ {
1996
+ internalType: 'uint128',
1997
+ name: 'conditionalOrderId',
1998
+ type: 'uint128',
1999
+ },
2000
+ {
2001
+ internalType: 'bool',
2002
+ name: 'isReduceOnly',
2003
+ type: 'bool',
2004
+ },
2005
+ {
2006
+ internalType: 'enum OrderTimeInForce',
2007
+ name: 'timeInForce',
2008
+ type: 'uint8',
2009
+ },
2010
+ {
2011
+ internalType: 'enum OrderSelfTradePrevention',
2012
+ name: 'selfTradePrevention',
2013
+ type: 'uint8',
2014
+ },
2015
+ {
2016
+ internalType: 'bool',
2017
+ name: 'isLiquidationAcquisitionOnly',
2018
+ type: 'bool',
2019
+ },
2020
+ {
2021
+ internalType: 'bool',
2022
+ name: 'isSignedByDelegatedKey',
2023
+ type: 'bool',
2024
+ },
2025
+ {
2026
+ components: [
2027
+ {
2028
+ internalType: 'uint128',
2029
+ name: 'nonce',
2030
+ type: 'uint128',
2031
+ },
2032
+ {
2033
+ internalType: 'address',
2034
+ name: 'delegatedPublicKey',
2035
+ type: 'address',
2036
+ },
2037
+ {
2038
+ internalType: 'bytes',
2039
+ name: 'signature',
2040
+ type: 'bytes',
2041
+ },
2042
+ ],
2043
+ internalType: 'struct DelegatedKeyAuthorization',
2044
+ name: 'delegatedKeyAuthorization',
2045
+ type: 'tuple',
2046
+ },
2047
+ {
2048
+ internalType: 'string',
2049
+ name: 'clientOrderId',
2050
+ type: 'string',
2051
+ },
2052
+ {
2053
+ internalType: 'bytes',
2054
+ name: 'walletSignature',
2055
+ type: 'bytes',
2056
+ },
2057
+ ],
2058
+ internalType: 'struct Order',
2059
+ name: 'buy',
2060
+ type: 'tuple',
2061
+ },
2062
+ {
2063
+ components: [
2064
+ {
2065
+ internalType: 'uint128',
2066
+ name: 'nonce',
2067
+ type: 'uint128',
2068
+ },
2069
+ {
2070
+ internalType: 'address',
2071
+ name: 'wallet',
2072
+ type: 'address',
2073
+ },
2074
+ {
2075
+ internalType: 'enum OrderType',
2076
+ name: 'orderType',
2077
+ type: 'uint8',
2078
+ },
2079
+ {
2080
+ internalType: 'enum OrderSide',
2081
+ name: 'side',
2082
+ type: 'uint8',
2083
+ },
2084
+ {
2085
+ internalType: 'uint64',
2086
+ name: 'quantity',
2087
+ type: 'uint64',
2088
+ },
2089
+ {
2090
+ internalType: 'uint64',
2091
+ name: 'limitPrice',
2092
+ type: 'uint64',
2093
+ },
2094
+ {
2095
+ internalType: 'uint64',
2096
+ name: 'triggerPrice',
2097
+ type: 'uint64',
2098
+ },
2099
+ {
2100
+ internalType: 'enum OrderTriggerType',
2101
+ name: 'triggerType',
2102
+ type: 'uint8',
2103
+ },
2104
+ {
2105
+ internalType: 'uint64',
2106
+ name: 'callbackRate',
2107
+ type: 'uint64',
2108
+ },
2109
+ {
2110
+ internalType: 'uint128',
2111
+ name: 'conditionalOrderId',
2112
+ type: 'uint128',
2113
+ },
2114
+ {
2115
+ internalType: 'bool',
2116
+ name: 'isReduceOnly',
2117
+ type: 'bool',
2118
+ },
2119
+ {
2120
+ internalType: 'enum OrderTimeInForce',
2121
+ name: 'timeInForce',
2122
+ type: 'uint8',
2123
+ },
2124
+ {
2125
+ internalType: 'enum OrderSelfTradePrevention',
2126
+ name: 'selfTradePrevention',
2127
+ type: 'uint8',
2128
+ },
2129
+ {
2130
+ internalType: 'bool',
2131
+ name: 'isLiquidationAcquisitionOnly',
2132
+ type: 'bool',
2133
+ },
2134
+ {
2135
+ internalType: 'bool',
2136
+ name: 'isSignedByDelegatedKey',
2137
+ type: 'bool',
2138
+ },
2139
+ {
2140
+ components: [
2141
+ {
2142
+ internalType: 'uint128',
2143
+ name: 'nonce',
2144
+ type: 'uint128',
2145
+ },
2146
+ {
2147
+ internalType: 'address',
2148
+ name: 'delegatedPublicKey',
2149
+ type: 'address',
2150
+ },
2151
+ {
2152
+ internalType: 'bytes',
2153
+ name: 'signature',
2154
+ type: 'bytes',
2155
+ },
2156
+ ],
2157
+ internalType: 'struct DelegatedKeyAuthorization',
2158
+ name: 'delegatedKeyAuthorization',
2159
+ type: 'tuple',
2160
+ },
2161
+ {
2162
+ internalType: 'string',
2163
+ name: 'clientOrderId',
2164
+ type: 'string',
2165
+ },
2166
+ {
2167
+ internalType: 'bytes',
2168
+ name: 'walletSignature',
2169
+ type: 'bytes',
2170
+ },
2171
+ ],
2172
+ internalType: 'struct Order',
2173
+ name: 'sell',
2174
+ type: 'tuple',
2175
+ },
2176
+ ],
2177
+ name: 'executeTrade',
2178
+ outputs: [],
2179
+ stateMutability: 'nonpayable',
2180
+ type: 'function',
2181
+ },
2182
+ {
2183
+ inputs: [],
2184
+ name: 'exitFundPositionOpenedAtBlockTimestamp',
2185
+ outputs: [
2186
+ {
2187
+ internalType: 'uint256',
2188
+ name: '',
2189
+ type: 'uint256',
2190
+ },
2191
+ ],
2192
+ stateMutability: 'view',
2193
+ type: 'function',
2194
+ },
2195
+ {
2196
+ inputs: [],
2197
+ name: 'exitFundWallet',
2198
+ outputs: [
2199
+ {
2200
+ internalType: 'address',
2201
+ name: '',
2202
+ type: 'address',
2203
+ },
2204
+ ],
2205
+ stateMutability: 'view',
2206
+ type: 'function',
2207
+ },
2208
+ {
2209
+ inputs: [
2210
+ {
2211
+ internalType: 'address',
2212
+ name: 'wallet',
2213
+ type: 'address',
2214
+ },
2215
+ ],
2216
+ name: 'exitWallet',
2217
+ outputs: [],
2218
+ stateMutability: 'nonpayable',
2219
+ type: 'function',
2220
+ },
2221
+ {
2222
+ inputs: [],
2223
+ name: 'feeWallet',
2224
+ outputs: [
2225
+ {
2226
+ internalType: 'address',
2227
+ name: '',
2228
+ type: 'address',
2229
+ },
2230
+ ],
2231
+ stateMutability: 'view',
2232
+ type: 'function',
2233
+ },
2234
+ {
2235
+ inputs: [
2236
+ {
2237
+ internalType: 'string',
2238
+ name: '',
2239
+ type: 'string',
2240
+ },
2241
+ {
2242
+ internalType: 'uint256',
2243
+ name: '',
2244
+ type: 'uint256',
2245
+ },
2246
+ ],
2247
+ name: 'fundingMultipliersByBaseAssetSymbol',
2248
+ outputs: [
2249
+ {
2250
+ internalType: 'int64',
2251
+ name: 'fundingMultiplier0',
2252
+ type: 'int64',
2253
+ },
2254
+ {
2255
+ internalType: 'int64',
2256
+ name: 'fundingMultiplier1',
2257
+ type: 'int64',
2258
+ },
2259
+ {
2260
+ internalType: 'int64',
2261
+ name: 'fundingMultiplier2',
2262
+ type: 'int64',
2263
+ },
2264
+ {
2265
+ internalType: 'int64',
2266
+ name: 'fundingMultiplier3',
2267
+ type: 'int64',
2268
+ },
2269
+ ],
2270
+ stateMutability: 'view',
2271
+ type: 'function',
2272
+ },
2273
+ {
2274
+ inputs: [],
2275
+ name: 'insuranceFundWallet',
2276
+ outputs: [
2277
+ {
2278
+ internalType: 'address',
2279
+ name: '',
2280
+ type: 'address',
2281
+ },
2282
+ ],
2283
+ stateMutability: 'view',
2284
+ type: 'function',
2285
+ },
2286
+ {
2287
+ inputs: [
2288
+ {
2289
+ internalType: 'uint128',
2290
+ name: 'nonce',
2291
+ type: 'uint128',
2292
+ },
2293
+ ],
2294
+ name: 'invalidateNonce',
2295
+ outputs: [],
2296
+ stateMutability: 'nonpayable',
2297
+ type: 'function',
2298
+ },
2299
+ {
2300
+ inputs: [],
2301
+ name: 'isDepositEnabled',
2302
+ outputs: [
2303
+ {
2304
+ internalType: 'bool',
2305
+ name: '',
2306
+ type: 'bool',
2307
+ },
2308
+ ],
2309
+ stateMutability: 'view',
2310
+ type: 'function',
2311
+ },
2312
+ {
2313
+ inputs: [
2314
+ {
2315
+ internalType: 'string',
2316
+ name: '',
2317
+ type: 'string',
2318
+ },
2319
+ ],
2320
+ name: 'lastFundingRatePublishTimestampInMsByBaseAssetSymbol',
2321
+ outputs: [
2322
+ {
2323
+ internalType: 'uint64',
2324
+ name: '',
2325
+ type: 'uint64',
2326
+ },
2327
+ ],
2328
+ stateMutability: 'view',
2329
+ type: 'function',
2330
+ },
2331
+ {
2332
+ inputs: [
2333
+ {
2334
+ components: [
2335
+ {
2336
+ internalType: 'string',
2337
+ name: 'baseAssetSymbol',
2338
+ type: 'string',
2339
+ },
2340
+ {
2341
+ internalType: 'address',
2342
+ name: 'liquidatingWallet',
2343
+ type: 'address',
2344
+ },
2345
+ {
2346
+ internalType: 'uint64',
2347
+ name: 'liquidationQuoteQuantity',
2348
+ type: 'uint64',
2349
+ },
2350
+ ],
2351
+ internalType: 'struct PositionBelowMinimumLiquidationArguments',
2352
+ name: 'liquidationArguments',
2353
+ type: 'tuple',
2354
+ },
2355
+ ],
2356
+ name: 'liquidatePositionBelowMinimum',
2357
+ outputs: [],
2358
+ stateMutability: 'nonpayable',
2359
+ type: 'function',
2360
+ },
2361
+ {
2362
+ inputs: [
2363
+ {
2364
+ components: [
2365
+ {
2366
+ internalType: 'string',
2367
+ name: 'baseAssetSymbol',
2368
+ type: 'string',
2369
+ },
2370
+ {
2371
+ internalType: 'uint64',
2372
+ name: 'feeQuantity',
2373
+ type: 'uint64',
2374
+ },
2375
+ {
2376
+ internalType: 'address',
2377
+ name: 'liquidatingWallet',
2378
+ type: 'address',
2379
+ },
2380
+ {
2381
+ internalType: 'uint64',
2382
+ name: 'liquidationQuoteQuantity',
2383
+ type: 'uint64',
2384
+ },
2385
+ ],
2386
+ internalType: 'struct PositionInDeactivatedMarketLiquidationArguments',
2387
+ name: 'liquidationArguments',
2388
+ type: 'tuple',
2389
+ },
2390
+ ],
2391
+ name: 'liquidatePositionInDeactivatedMarket',
2392
+ outputs: [],
2393
+ stateMutability: 'nonpayable',
2394
+ type: 'function',
2395
+ },
2396
+ {
2397
+ inputs: [
2398
+ {
2399
+ components: [
2400
+ {
2401
+ internalType: 'address',
2402
+ name: 'counterpartyWallet',
2403
+ type: 'address',
2404
+ },
2405
+ {
2406
+ internalType: 'address',
2407
+ name: 'liquidatingWallet',
2408
+ type: 'address',
2409
+ },
2410
+ {
2411
+ internalType: 'uint64[]',
2412
+ name: 'liquidationQuoteQuantities',
2413
+ type: 'uint64[]',
2414
+ },
2415
+ ],
2416
+ internalType: 'struct WalletLiquidationArguments',
2417
+ name: 'liquidationArguments',
2418
+ type: 'tuple',
2419
+ },
2420
+ ],
2421
+ name: 'liquidateWalletExit',
2422
+ outputs: [],
2423
+ stateMutability: 'nonpayable',
2424
+ type: 'function',
2425
+ },
2426
+ {
2427
+ inputs: [
2428
+ {
2429
+ components: [
2430
+ {
2431
+ internalType: 'address',
2432
+ name: 'counterpartyWallet',
2433
+ type: 'address',
2434
+ },
2435
+ {
2436
+ internalType: 'address',
2437
+ name: 'liquidatingWallet',
2438
+ type: 'address',
2439
+ },
2440
+ {
2441
+ internalType: 'uint64[]',
2442
+ name: 'liquidationQuoteQuantities',
2443
+ type: 'uint64[]',
2444
+ },
2445
+ ],
2446
+ internalType: 'struct WalletLiquidationArguments',
2447
+ name: 'liquidationArguments',
2448
+ type: 'tuple',
2449
+ },
2450
+ ],
2451
+ name: 'liquidateWalletInMaintenance',
2452
+ outputs: [],
2453
+ stateMutability: 'nonpayable',
2454
+ type: 'function',
2455
+ },
2456
+ {
2457
+ inputs: [
2458
+ {
2459
+ components: [
2460
+ {
2461
+ internalType: 'address',
2462
+ name: 'counterpartyWallet',
2463
+ type: 'address',
2464
+ },
2465
+ {
2466
+ internalType: 'address',
2467
+ name: 'liquidatingWallet',
2468
+ type: 'address',
2469
+ },
2470
+ {
2471
+ internalType: 'uint64[]',
2472
+ name: 'liquidationQuoteQuantities',
2473
+ type: 'uint64[]',
2474
+ },
2475
+ ],
2476
+ internalType: 'struct WalletLiquidationArguments',
2477
+ name: 'liquidationArguments',
2478
+ type: 'tuple',
2479
+ },
2480
+ ],
2481
+ name: 'liquidateWalletInMaintenanceDuringSystemRecovery',
2482
+ outputs: [],
2483
+ stateMutability: 'nonpayable',
2484
+ type: 'function',
2485
+ },
2486
+ {
2487
+ inputs: [
2488
+ {
2489
+ internalType: 'address',
2490
+ name: 'wallet',
2491
+ type: 'address',
2492
+ },
2493
+ {
2494
+ internalType: 'string',
2495
+ name: 'assetSymbol',
2496
+ type: 'string',
2497
+ },
2498
+ ],
2499
+ name: 'loadBalanceBySymbol',
2500
+ outputs: [
2501
+ {
2502
+ internalType: 'int64',
2503
+ name: '',
2504
+ type: 'int64',
2505
+ },
2506
+ ],
2507
+ stateMutability: 'view',
2508
+ type: 'function',
2509
+ },
2510
+ {
2511
+ inputs: [
2512
+ {
2513
+ internalType: 'address',
2514
+ name: 'wallet',
2515
+ type: 'address',
2516
+ },
2517
+ {
2518
+ internalType: 'string',
2519
+ name: 'assetSymbol',
2520
+ type: 'string',
2521
+ },
2522
+ ],
2523
+ name: 'loadBalanceStructBySymbol',
2524
+ outputs: [
2525
+ {
2526
+ components: [
2527
+ {
2528
+ internalType: 'bool',
2529
+ name: 'isMigrated',
2530
+ type: 'bool',
2531
+ },
2532
+ {
2533
+ internalType: 'int64',
2534
+ name: 'balance',
2535
+ type: 'int64',
2536
+ },
2537
+ {
2538
+ internalType: 'int64',
2539
+ name: 'costBasis',
2540
+ type: 'int64',
2541
+ },
2542
+ {
2543
+ internalType: 'uint64',
2544
+ name: 'lastUpdateTimestampInMs',
2545
+ type: 'uint64',
2546
+ },
2547
+ {
2548
+ internalType: 'contract IManagedAccountProvider',
2549
+ name: 'managedAccountProvider',
2550
+ type: 'address',
2551
+ },
2552
+ ],
2553
+ internalType: 'struct Balance',
2554
+ name: '',
2555
+ type: 'tuple',
2556
+ },
2557
+ ],
2558
+ stateMutability: 'view',
2559
+ type: 'function',
2560
+ },
2561
+ {
2562
+ inputs: [
2563
+ {
2564
+ internalType: 'address',
2565
+ name: 'wallet',
2566
+ type: 'address',
2567
+ },
2568
+ ],
2569
+ name: 'loadBaseAssetSymbolsWithOpenPositionsByWallet',
2570
+ outputs: [
2571
+ {
2572
+ internalType: 'string[]',
2573
+ name: '',
2574
+ type: 'string[]',
2575
+ },
2576
+ ],
2577
+ stateMutability: 'view',
2578
+ type: 'function',
2579
+ },
2580
+ {
2581
+ inputs: [
2582
+ {
2583
+ internalType: 'uint8',
2584
+ name: 'index',
2585
+ type: 'uint8',
2586
+ },
2587
+ ],
2588
+ name: 'loadBridgeAdapter',
2589
+ outputs: [
2590
+ {
2591
+ internalType: 'contract IBridgeAdapter',
2592
+ name: '',
2593
+ type: 'address',
2594
+ },
2595
+ ],
2596
+ stateMutability: 'view',
2597
+ type: 'function',
2598
+ },
2599
+ {
2600
+ inputs: [],
2601
+ name: 'loadBridgeAdaptersLength',
2602
+ outputs: [
2603
+ {
2604
+ internalType: 'uint256',
2605
+ name: '',
2606
+ type: 'uint256',
2607
+ },
2608
+ ],
2609
+ stateMutability: 'view',
2610
+ type: 'function',
2611
+ },
2612
+ {
2613
+ inputs: [
2614
+ {
2615
+ internalType: 'uint8',
2616
+ name: 'index',
2617
+ type: 'uint8',
2618
+ },
2619
+ ],
2620
+ name: 'loadIndexPriceAdapter',
2621
+ outputs: [
2622
+ {
2623
+ internalType: 'contract IIndexPriceAdapter',
2624
+ name: '',
2625
+ type: 'address',
2626
+ },
2627
+ ],
2628
+ stateMutability: 'view',
2629
+ type: 'function',
2630
+ },
2631
+ {
2632
+ inputs: [],
2633
+ name: 'loadIndexPriceAdaptersLength',
2634
+ outputs: [
2635
+ {
2636
+ internalType: 'uint256',
2637
+ name: '',
2638
+ type: 'uint256',
2639
+ },
2640
+ ],
2641
+ stateMutability: 'view',
2642
+ type: 'function',
2643
+ },
2644
+ {
2645
+ inputs: [
2646
+ {
2647
+ internalType: 'address',
2648
+ name: 'wallet',
2649
+ type: 'address',
2650
+ },
2651
+ ],
2652
+ name: 'loadLastNonceInvalidationForWallet',
2653
+ outputs: [
2654
+ {
2655
+ components: [
2656
+ {
2657
+ internalType: 'uint64',
2658
+ name: 'timestampInMs',
2659
+ type: 'uint64',
2660
+ },
2661
+ {
2662
+ internalType: 'uint256',
2663
+ name: 'effectiveBlockTimestamp',
2664
+ type: 'uint256',
2665
+ },
2666
+ ],
2667
+ internalType: 'struct NonceInvalidation',
2668
+ name: 'nonceInvalidation',
2669
+ type: 'tuple',
2670
+ },
2671
+ ],
2672
+ stateMutability: 'view',
2673
+ type: 'function',
2674
+ },
2675
+ {
2676
+ inputs: [
2677
+ {
2678
+ internalType: 'uint8',
2679
+ name: 'index',
2680
+ type: 'uint8',
2681
+ },
2682
+ ],
2683
+ name: 'loadManagedAccountProvider',
2684
+ outputs: [
2685
+ {
2686
+ internalType: 'contract IManagedAccountProvider',
2687
+ name: '',
2688
+ type: 'address',
2689
+ },
2690
+ ],
2691
+ stateMutability: 'view',
2692
+ type: 'function',
2693
+ },
2694
+ {
2695
+ inputs: [],
2696
+ name: 'loadManagedAccountProvidersLength',
2697
+ outputs: [
2698
+ {
2699
+ internalType: 'uint256',
2700
+ name: '',
2701
+ type: 'uint256',
2702
+ },
2703
+ ],
2704
+ stateMutability: 'view',
2705
+ type: 'function',
2706
+ },
2707
+ {
2708
+ inputs: [
2709
+ {
2710
+ internalType: 'uint8',
2711
+ name: 'index',
2712
+ type: 'uint8',
2713
+ },
2714
+ ],
2715
+ name: 'loadMarket',
2716
+ outputs: [
2717
+ {
2718
+ components: [
2719
+ {
2720
+ internalType: 'bool',
2721
+ name: 'exists',
2722
+ type: 'bool',
2723
+ },
2724
+ {
2725
+ internalType: 'bool',
2726
+ name: 'isActive',
2727
+ type: 'bool',
2728
+ },
2729
+ {
2730
+ internalType: 'string',
2731
+ name: 'baseAssetSymbol',
2732
+ type: 'string',
2733
+ },
2734
+ {
2735
+ internalType: 'uint64',
2736
+ name: 'indexPriceAtDeactivation',
2737
+ type: 'uint64',
2738
+ },
2739
+ {
2740
+ internalType: 'uint64',
2741
+ name: 'lastIndexPrice',
2742
+ type: 'uint64',
2743
+ },
2744
+ {
2745
+ internalType: 'uint64',
2746
+ name: 'lastIndexPriceTimestampInMs',
2747
+ type: 'uint64',
2748
+ },
2749
+ {
2750
+ components: [
2751
+ {
2752
+ internalType: 'uint64',
2753
+ name: 'initialMarginFraction',
2754
+ type: 'uint64',
2755
+ },
2756
+ {
2757
+ internalType: 'uint64',
2758
+ name: 'maintenanceMarginFraction',
2759
+ type: 'uint64',
2760
+ },
2761
+ {
2762
+ internalType: 'uint64',
2763
+ name: 'incrementalInitialMarginFraction',
2764
+ type: 'uint64',
2765
+ },
2766
+ {
2767
+ internalType: 'uint64',
2768
+ name: 'baselinePositionSize',
2769
+ type: 'uint64',
2770
+ },
2771
+ {
2772
+ internalType: 'uint64',
2773
+ name: 'incrementalPositionSize',
2774
+ type: 'uint64',
2775
+ },
2776
+ {
2777
+ internalType: 'uint64',
2778
+ name: 'maximumPositionSize',
2779
+ type: 'uint64',
2780
+ },
2781
+ {
2782
+ internalType: 'uint64',
2783
+ name: 'minimumPositionSize',
2784
+ type: 'uint64',
2785
+ },
2786
+ ],
2787
+ internalType: 'struct OverridableMarketFields',
2788
+ name: 'overridableFields',
2789
+ type: 'tuple',
2790
+ },
2791
+ ],
2792
+ internalType: 'struct Market',
2793
+ name: '',
2794
+ type: 'tuple',
2795
+ },
2796
+ ],
2797
+ stateMutability: 'view',
2798
+ type: 'function',
2799
+ },
2800
+ {
2801
+ inputs: [],
2802
+ name: 'loadMarketsLength',
2803
+ outputs: [
2804
+ {
2805
+ internalType: 'uint256',
2806
+ name: '',
2807
+ type: 'uint256',
2808
+ },
2809
+ ],
2810
+ stateMutability: 'view',
2811
+ type: 'function',
2812
+ },
2813
+ {
2814
+ inputs: [
2815
+ {
2816
+ internalType: 'address',
2817
+ name: 'wallet',
2818
+ type: 'address',
2819
+ },
2820
+ ],
2821
+ name: 'loadOutstandingWalletFunding',
2822
+ outputs: [
2823
+ {
2824
+ internalType: 'int64',
2825
+ name: '',
2826
+ type: 'int64',
2827
+ },
2828
+ ],
2829
+ stateMutability: 'view',
2830
+ type: 'function',
2831
+ },
2832
+ {
2833
+ inputs: [
2834
+ {
2835
+ internalType: 'address',
2836
+ name: 'wallet',
2837
+ type: 'address',
2838
+ },
2839
+ ],
2840
+ name: 'loadQuoteQuantityAvailableForExitWithdrawal',
2841
+ outputs: [
2842
+ {
2843
+ internalType: 'int64',
2844
+ name: '',
2845
+ type: 'int64',
2846
+ },
2847
+ ],
2848
+ stateMutability: 'view',
2849
+ type: 'function',
2850
+ },
2851
+ {
2852
+ inputs: [
2853
+ {
2854
+ internalType: 'address',
2855
+ name: 'wallet',
2856
+ type: 'address',
2857
+ },
2858
+ ],
2859
+ name: 'loadTotalAccountValueFromIndexPrices',
2860
+ outputs: [
2861
+ {
2862
+ internalType: 'int64',
2863
+ name: '',
2864
+ type: 'int64',
2865
+ },
2866
+ ],
2867
+ stateMutability: 'view',
2868
+ type: 'function',
2869
+ },
2870
+ {
2871
+ inputs: [
2872
+ {
2873
+ internalType: 'address',
2874
+ name: 'wallet',
2875
+ type: 'address',
2876
+ },
2877
+ ],
2878
+ name: 'loadTotalAccountValueFromOraclePrices',
2879
+ outputs: [
2880
+ {
2881
+ internalType: 'int64',
2882
+ name: '',
2883
+ type: 'int64',
2884
+ },
2885
+ ],
2886
+ stateMutability: 'view',
2887
+ type: 'function',
2888
+ },
2889
+ {
2890
+ inputs: [
2891
+ {
2892
+ internalType: 'address',
2893
+ name: 'wallet',
2894
+ type: 'address',
2895
+ },
2896
+ ],
2897
+ name: 'loadTotalInitialMarginRequirementFromIndexPrices',
2898
+ outputs: [
2899
+ {
2900
+ internalType: 'uint64',
2901
+ name: '',
2902
+ type: 'uint64',
2903
+ },
2904
+ ],
2905
+ stateMutability: 'view',
2906
+ type: 'function',
2907
+ },
2908
+ {
2909
+ inputs: [
2910
+ {
2911
+ internalType: 'address',
2912
+ name: 'wallet',
2913
+ type: 'address',
2914
+ },
2915
+ ],
2916
+ name: 'loadTotalInitialMarginRequirementFromOraclePrices',
2917
+ outputs: [
2918
+ {
2919
+ internalType: 'uint64',
2920
+ name: '',
2921
+ type: 'uint64',
2922
+ },
2923
+ ],
2924
+ stateMutability: 'view',
2925
+ type: 'function',
2926
+ },
2927
+ {
2928
+ inputs: [
2929
+ {
2930
+ internalType: 'address',
2931
+ name: 'wallet',
2932
+ type: 'address',
2933
+ },
2934
+ ],
2935
+ name: 'loadTotalMaintenanceMarginRequirementFromIndexPrices',
2936
+ outputs: [
2937
+ {
2938
+ internalType: 'uint64',
2939
+ name: '',
2940
+ type: 'uint64',
2941
+ },
2942
+ ],
2943
+ stateMutability: 'view',
2944
+ type: 'function',
2945
+ },
2946
+ {
2947
+ inputs: [
2948
+ {
2949
+ internalType: 'address',
2950
+ name: 'wallet',
2951
+ type: 'address',
2952
+ },
2953
+ ],
2954
+ name: 'loadTotalMaintenanceMarginRequirementFromOraclePrices',
2955
+ outputs: [
2956
+ {
2957
+ internalType: 'uint64',
2958
+ name: '',
2959
+ type: 'uint64',
2960
+ },
2961
+ ],
2962
+ stateMutability: 'view',
2963
+ type: 'function',
2964
+ },
2965
+ {
2966
+ inputs: [
2967
+ {
2968
+ internalType: 'address',
2969
+ name: 'wallet',
2970
+ type: 'address',
2971
+ },
2972
+ ],
2973
+ name: 'loadWalletExitStatus',
2974
+ outputs: [
2975
+ {
2976
+ components: [
2977
+ {
2978
+ internalType: 'bool',
2979
+ name: 'exists',
2980
+ type: 'bool',
2981
+ },
2982
+ {
2983
+ internalType: 'uint64',
2984
+ name: 'effectiveBlockTimestamp',
2985
+ type: 'uint64',
2986
+ },
2987
+ {
2988
+ internalType: 'enum WalletExitAcquisitionDeleveragePriceStrategy',
2989
+ name: 'deleveragePriceStrategy',
2990
+ type: 'uint8',
2991
+ },
2992
+ ],
2993
+ internalType: 'struct WalletExit',
2994
+ name: '',
2995
+ type: 'tuple',
2996
+ },
2997
+ ],
2998
+ stateMutability: 'view',
2999
+ type: 'function',
3000
+ },
3001
+ {
3002
+ inputs: [
3003
+ {
3004
+ internalType: 'string',
3005
+ name: '',
3006
+ type: 'string',
3007
+ },
3008
+ {
3009
+ internalType: 'address',
3010
+ name: '',
3011
+ type: 'address',
3012
+ },
3013
+ ],
3014
+ name: 'marketOverridesByBaseAssetSymbolAndWallet',
3015
+ outputs: [
3016
+ {
3017
+ internalType: 'bool',
3018
+ name: 'exists',
3019
+ type: 'bool',
3020
+ },
3021
+ {
3022
+ components: [
3023
+ {
3024
+ internalType: 'uint64',
3025
+ name: 'initialMarginFraction',
3026
+ type: 'uint64',
3027
+ },
3028
+ {
3029
+ internalType: 'uint64',
3030
+ name: 'maintenanceMarginFraction',
3031
+ type: 'uint64',
3032
+ },
3033
+ {
3034
+ internalType: 'uint64',
3035
+ name: 'incrementalInitialMarginFraction',
3036
+ type: 'uint64',
3037
+ },
3038
+ {
3039
+ internalType: 'uint64',
3040
+ name: 'baselinePositionSize',
3041
+ type: 'uint64',
3042
+ },
3043
+ {
3044
+ internalType: 'uint64',
3045
+ name: 'incrementalPositionSize',
3046
+ type: 'uint64',
3047
+ },
3048
+ {
3049
+ internalType: 'uint64',
3050
+ name: 'maximumPositionSize',
3051
+ type: 'uint64',
3052
+ },
3053
+ {
3054
+ internalType: 'uint64',
3055
+ name: 'minimumPositionSize',
3056
+ type: 'uint64',
3057
+ },
3058
+ ],
3059
+ internalType: 'struct OverridableMarketFields',
3060
+ name: 'overridableFields',
3061
+ type: 'tuple',
3062
+ },
3063
+ ],
3064
+ stateMutability: 'view',
3065
+ type: 'function',
3066
+ },
3067
+ {
3068
+ inputs: [],
3069
+ name: 'migrateQuoteTokenAddress',
3070
+ outputs: [],
3071
+ stateMutability: 'nonpayable',
3072
+ type: 'function',
3073
+ },
3074
+ {
3075
+ inputs: [],
3076
+ name: 'oraclePriceAdapter',
3077
+ outputs: [
3078
+ {
3079
+ internalType: 'contract IOraclePriceAdapter',
3080
+ name: '',
3081
+ type: 'address',
3082
+ },
3083
+ ],
3084
+ stateMutability: 'view',
3085
+ type: 'function',
3086
+ },
3087
+ {
3088
+ inputs: [],
3089
+ name: 'ownerWallet',
3090
+ outputs: [
3091
+ {
3092
+ internalType: 'address',
3093
+ name: '',
3094
+ type: 'address',
3095
+ },
3096
+ ],
3097
+ stateMutability: 'view',
3098
+ type: 'function',
3099
+ },
3100
+ {
3101
+ inputs: [
3102
+ {
3103
+ internalType: 'address',
3104
+ name: '',
3105
+ type: 'address',
3106
+ },
3107
+ ],
3108
+ name: 'pendingDepositQuantityByWallet',
3109
+ outputs: [
3110
+ {
3111
+ internalType: 'uint64',
3112
+ name: '',
3113
+ type: 'uint64',
3114
+ },
3115
+ ],
3116
+ stateMutability: 'view',
3117
+ type: 'function',
3118
+ },
3119
+ {
3120
+ inputs: [],
3121
+ name: 'positionBelowMinimumLiquidationPriceToleranceMultiplier',
3122
+ outputs: [
3123
+ {
3124
+ internalType: 'uint64',
3125
+ name: '',
3126
+ type: 'uint64',
3127
+ },
3128
+ ],
3129
+ stateMutability: 'view',
3130
+ type: 'function',
3131
+ },
3132
+ {
3133
+ inputs: [
3134
+ {
3135
+ internalType: 'string',
3136
+ name: 'baseAssetSymbol',
3137
+ type: 'string',
3138
+ },
3139
+ {
3140
+ internalType: 'int64',
3141
+ name: 'fundingRate',
3142
+ type: 'int64',
3143
+ },
3144
+ ],
3145
+ name: 'publishFundingMultiplier',
3146
+ outputs: [],
3147
+ stateMutability: 'nonpayable',
3148
+ type: 'function',
3149
+ },
3150
+ {
3151
+ inputs: [
3152
+ {
3153
+ components: [
3154
+ {
3155
+ internalType: 'address',
3156
+ name: 'indexPriceAdapter',
3157
+ type: 'address',
3158
+ },
3159
+ {
3160
+ internalType: 'bytes',
3161
+ name: 'payload',
3162
+ type: 'bytes',
3163
+ },
3164
+ ],
3165
+ internalType: 'struct IndexPricePayload[]',
3166
+ name: 'encodedIndexPrices',
3167
+ type: 'tuple[]',
3168
+ },
3169
+ ],
3170
+ name: 'publishIndexPrices',
3171
+ outputs: [],
3172
+ stateMutability: 'nonpayable',
3173
+ type: 'function',
3174
+ },
3175
+ {
3176
+ inputs: [],
3177
+ name: 'quoteTokenAddress',
3178
+ outputs: [
3179
+ {
3180
+ internalType: 'address',
3181
+ name: '',
3182
+ type: 'address',
3183
+ },
3184
+ ],
3185
+ stateMutability: 'view',
3186
+ type: 'function',
3187
+ },
3188
+ {
3189
+ inputs: [],
3190
+ name: 'removeAdmin',
3191
+ outputs: [],
3192
+ stateMutability: 'nonpayable',
3193
+ type: 'function',
3194
+ },
3195
+ {
3196
+ inputs: [],
3197
+ name: 'removeDispatcher',
3198
+ outputs: [],
3199
+ stateMutability: 'nonpayable',
3200
+ type: 'function',
3201
+ },
3202
+ {
3203
+ inputs: [],
3204
+ name: 'removeOwner',
3205
+ outputs: [],
3206
+ stateMutability: 'nonpayable',
3207
+ type: 'function',
3208
+ },
3209
+ {
3210
+ inputs: [
3211
+ {
3212
+ internalType: 'address',
3213
+ name: 'newAdmin',
3214
+ type: 'address',
3215
+ },
3216
+ ],
3217
+ name: 'setAdmin',
3218
+ outputs: [],
3219
+ stateMutability: 'nonpayable',
3220
+ type: 'function',
3221
+ },
3222
+ {
3223
+ inputs: [
3224
+ {
3225
+ internalType: 'contract IBridgeAdapter[]',
3226
+ name: 'newBridgeAdapters',
3227
+ type: 'address[]',
3228
+ },
3229
+ ],
3230
+ name: 'setBridgeAdapters',
3231
+ outputs: [],
3232
+ stateMutability: 'nonpayable',
3233
+ type: 'function',
3234
+ },
3235
+ {
3236
+ inputs: [
3237
+ {
3238
+ internalType: 'uint256',
3239
+ name: 'newChainPropagationPeriodInS',
3240
+ type: 'uint256',
3241
+ },
3242
+ ],
3243
+ name: 'setChainPropagationPeriod',
3244
+ outputs: [],
3245
+ stateMutability: 'nonpayable',
3246
+ type: 'function',
3247
+ },
3248
+ {
3249
+ inputs: [
3250
+ {
3251
+ internalType: 'contract ICustodian',
3252
+ name: 'newCustodian',
3253
+ type: 'address',
3254
+ },
3255
+ ],
3256
+ name: 'setCustodian',
3257
+ outputs: [],
3258
+ stateMutability: 'nonpayable',
3259
+ type: 'function',
3260
+ },
3261
+ {
3262
+ inputs: [
3263
+ {
3264
+ internalType: 'uint64',
3265
+ name: 'newDelegateKeyExpirationPeriodInMs',
3266
+ type: 'uint64',
3267
+ },
3268
+ ],
3269
+ name: 'setDelegatedKeyExpirationPeriod',
3270
+ outputs: [],
3271
+ stateMutability: 'nonpayable',
3272
+ type: 'function',
3273
+ },
3274
+ {
3275
+ inputs: [
3276
+ {
3277
+ internalType: 'bool',
3278
+ name: 'isEnabled',
3279
+ type: 'bool',
3280
+ },
3281
+ ],
3282
+ name: 'setDepositEnabled',
3283
+ outputs: [],
3284
+ stateMutability: 'nonpayable',
3285
+ type: 'function',
3286
+ },
3287
+ {
3288
+ inputs: [],
3289
+ name: 'setDepositIndex',
3290
+ outputs: [],
3291
+ stateMutability: 'nonpayable',
3292
+ type: 'function',
3293
+ },
3294
+ {
3295
+ inputs: [
3296
+ {
3297
+ internalType: 'address',
3298
+ name: 'newDispatcherWallet',
3299
+ type: 'address',
3300
+ },
3301
+ ],
3302
+ name: 'setDispatcher',
3303
+ outputs: [],
3304
+ stateMutability: 'nonpayable',
3305
+ type: 'function',
3306
+ },
3307
+ {
3308
+ inputs: [
3309
+ {
3310
+ internalType: 'address',
3311
+ name: 'newExitFundWallet',
3312
+ type: 'address',
3313
+ },
3314
+ ],
3315
+ name: 'setExitFundWallet',
3316
+ outputs: [],
3317
+ stateMutability: 'nonpayable',
3318
+ type: 'function',
3319
+ },
3320
+ {
3321
+ inputs: [
3322
+ {
3323
+ internalType: 'address',
3324
+ name: 'newFeeWallet',
3325
+ type: 'address',
3326
+ },
3327
+ ],
3328
+ name: 'setFeeWallet',
3329
+ outputs: [],
3330
+ stateMutability: 'nonpayable',
3331
+ type: 'function',
3332
+ },
3333
+ {
3334
+ inputs: [
3335
+ {
3336
+ internalType: 'contract IIndexPriceAdapter[]',
3337
+ name: 'newIndexPriceAdapters',
3338
+ type: 'address[]',
3339
+ },
3340
+ ],
3341
+ name: 'setIndexPriceAdapters',
3342
+ outputs: [],
3343
+ stateMutability: 'nonpayable',
3344
+ type: 'function',
3345
+ },
3346
+ {
3347
+ inputs: [
3348
+ {
3349
+ internalType: 'address',
3350
+ name: 'newInsuranceFundWallet',
3351
+ type: 'address',
3352
+ },
3353
+ ],
3354
+ name: 'setInsuranceFundWallet',
3355
+ outputs: [],
3356
+ stateMutability: 'nonpayable',
3357
+ type: 'function',
3358
+ },
3359
+ {
3360
+ inputs: [
3361
+ {
3362
+ internalType: 'contract IManagedAccountProvider[]',
3363
+ name: 'newManagedAccountProviders',
3364
+ type: 'address[]',
3365
+ },
3366
+ ],
3367
+ name: 'setManagedAccountProviders',
3368
+ outputs: [],
3369
+ stateMutability: 'nonpayable',
3370
+ type: 'function',
3371
+ },
3372
+ {
3373
+ inputs: [
3374
+ {
3375
+ internalType: 'string',
3376
+ name: 'baseAssetSymbol',
3377
+ type: 'string',
3378
+ },
3379
+ {
3380
+ components: [
3381
+ {
3382
+ internalType: 'uint64',
3383
+ name: 'initialMarginFraction',
3384
+ type: 'uint64',
3385
+ },
3386
+ {
3387
+ internalType: 'uint64',
3388
+ name: 'maintenanceMarginFraction',
3389
+ type: 'uint64',
3390
+ },
3391
+ {
3392
+ internalType: 'uint64',
3393
+ name: 'incrementalInitialMarginFraction',
3394
+ type: 'uint64',
3395
+ },
3396
+ {
3397
+ internalType: 'uint64',
3398
+ name: 'baselinePositionSize',
3399
+ type: 'uint64',
3400
+ },
3401
+ {
3402
+ internalType: 'uint64',
3403
+ name: 'incrementalPositionSize',
3404
+ type: 'uint64',
3405
+ },
3406
+ {
3407
+ internalType: 'uint64',
3408
+ name: 'maximumPositionSize',
3409
+ type: 'uint64',
3410
+ },
3411
+ {
3412
+ internalType: 'uint64',
3413
+ name: 'minimumPositionSize',
3414
+ type: 'uint64',
3415
+ },
3416
+ ],
3417
+ internalType: 'struct OverridableMarketFields',
3418
+ name: 'overridableFields',
3419
+ type: 'tuple',
3420
+ },
3421
+ {
3422
+ internalType: 'address',
3423
+ name: 'wallet',
3424
+ type: 'address',
3425
+ },
3426
+ ],
3427
+ name: 'setMarketOverrides',
3428
+ outputs: [],
3429
+ stateMutability: 'nonpayable',
3430
+ type: 'function',
3431
+ },
3432
+ {
3433
+ inputs: [
3434
+ {
3435
+ internalType: 'contract IOraclePriceAdapter',
3436
+ name: 'newOraclePriceAdapter',
3437
+ type: 'address',
3438
+ },
3439
+ ],
3440
+ name: 'setOraclePriceAdapter',
3441
+ outputs: [],
3442
+ stateMutability: 'nonpayable',
3443
+ type: 'function',
3444
+ },
3445
+ {
3446
+ inputs: [
3447
+ {
3448
+ internalType: 'address',
3449
+ name: 'newOwner',
3450
+ type: 'address',
3451
+ },
3452
+ ],
3453
+ name: 'setOwner',
3454
+ outputs: [],
3455
+ stateMutability: 'nonpayable',
3456
+ type: 'function',
3457
+ },
3458
+ {
3459
+ inputs: [
3460
+ {
3461
+ internalType: 'uint64',
3462
+ name: 'newPositionBelowMinimumLiquidationPriceToleranceMultiplier',
3463
+ type: 'uint64',
3464
+ },
3465
+ ],
3466
+ name: 'setPositionBelowMinimumLiquidationPriceToleranceMultiplier',
3467
+ outputs: [],
3468
+ stateMutability: 'nonpayable',
3469
+ type: 'function',
3470
+ },
3471
+ {
3472
+ inputs: [
3473
+ {
3474
+ internalType: 'address',
3475
+ name: 'tokenAddress',
3476
+ type: 'address',
3477
+ },
3478
+ ],
3479
+ name: 'skim',
3480
+ outputs: [],
3481
+ stateMutability: 'nonpayable',
3482
+ type: 'function',
3483
+ },
3484
+ {
3485
+ inputs: [
3486
+ {
3487
+ components: [
3488
+ {
3489
+ internalType: 'uint128',
3490
+ name: 'nonce',
3491
+ type: 'uint128',
3492
+ },
3493
+ {
3494
+ internalType: 'address',
3495
+ name: 'sourceWallet',
3496
+ type: 'address',
3497
+ },
3498
+ {
3499
+ internalType: 'address',
3500
+ name: 'destinationWallet',
3501
+ type: 'address',
3502
+ },
3503
+ {
3504
+ internalType: 'uint64',
3505
+ name: 'grossQuantity',
3506
+ type: 'uint64',
3507
+ },
3508
+ {
3509
+ internalType: 'uint64',
3510
+ name: 'gasFee',
3511
+ type: 'uint64',
3512
+ },
3513
+ {
3514
+ internalType: 'bytes',
3515
+ name: 'walletSignature',
3516
+ type: 'bytes',
3517
+ },
3518
+ ],
3519
+ internalType: 'struct Transfer',
3520
+ name: 'transfer_',
3521
+ type: 'tuple',
3522
+ },
3523
+ ],
3524
+ name: 'transfer',
3525
+ outputs: [],
3526
+ stateMutability: 'nonpayable',
3527
+ type: 'function',
3528
+ },
3529
+ {
3530
+ inputs: [
3531
+ {
3532
+ internalType: 'string',
3533
+ name: 'baseAssetSymbol',
3534
+ type: 'string',
3535
+ },
3536
+ {
3537
+ internalType: 'address',
3538
+ name: 'wallet',
3539
+ type: 'address',
3540
+ },
3541
+ ],
3542
+ name: 'unsetMarketOverridesForWallet',
3543
+ outputs: [],
3544
+ stateMutability: 'nonpayable',
3545
+ type: 'function',
3546
+ },
3547
+ {
3548
+ inputs: [
3549
+ {
3550
+ components: [
3551
+ {
3552
+ internalType: 'uint128',
3553
+ name: 'nonce',
3554
+ type: 'uint128',
3555
+ },
3556
+ {
3557
+ internalType: 'address',
3558
+ name: 'wallet',
3559
+ type: 'address',
3560
+ },
3561
+ {
3562
+ internalType: 'uint64',
3563
+ name: 'grossQuantity',
3564
+ type: 'uint64',
3565
+ },
3566
+ {
3567
+ internalType: 'uint64',
3568
+ name: 'maximumGasFee',
3569
+ type: 'uint64',
3570
+ },
3571
+ {
3572
+ internalType: 'address',
3573
+ name: 'bridgeAdapter',
3574
+ type: 'address',
3575
+ },
3576
+ {
3577
+ internalType: 'bytes',
3578
+ name: 'bridgeAdapterPayload',
3579
+ type: 'bytes',
3580
+ },
3581
+ {
3582
+ internalType: 'uint64',
3583
+ name: 'gasFee',
3584
+ type: 'uint64',
3585
+ },
3586
+ {
3587
+ internalType: 'bytes',
3588
+ name: 'walletSignature',
3589
+ type: 'bytes',
3590
+ },
3591
+ ],
3592
+ internalType: 'struct Withdrawal',
3593
+ name: 'withdrawal',
3594
+ type: 'tuple',
3595
+ },
3596
+ ],
3597
+ name: 'withdraw',
3598
+ outputs: [],
3599
+ stateMutability: 'nonpayable',
3600
+ type: 'function',
3601
+ },
3602
+ {
3603
+ inputs: [
3604
+ {
3605
+ internalType: 'address',
3606
+ name: 'wallet',
3607
+ type: 'address',
3608
+ },
3609
+ ],
3610
+ name: 'withdrawExit',
3611
+ outputs: [],
3612
+ stateMutability: 'nonpayable',
3613
+ type: 'function',
3614
+ },
3615
+ {
3616
+ inputs: [
3617
+ {
3618
+ internalType: 'address',
3619
+ name: 'wallet',
3620
+ type: 'address',
3621
+ },
3622
+ ],
3623
+ name: 'withdrawExitAdmin',
3624
+ outputs: [],
3625
+ stateMutability: 'nonpayable',
3626
+ type: 'function',
3627
+ },
3628
+ {
3629
+ inputs: [
3630
+ {
3631
+ internalType: 'address',
3632
+ name: 'depositorWallet',
3633
+ type: 'address',
3634
+ },
3635
+ {
3636
+ internalType: 'address',
3637
+ name: 'managerWallet',
3638
+ type: 'address',
3639
+ },
3640
+ {
3641
+ internalType: 'uint64',
3642
+ name: 'quantity',
3643
+ type: 'uint64',
3644
+ },
3645
+ ],
3646
+ name: 'withdrawExitFromManagedAccount',
3647
+ outputs: [],
3648
+ stateMutability: 'nonpayable',
3649
+ type: 'function',
3650
+ },
3651
+ ];
3652
+ class Exchange_v1__factory {
3653
+ static abi = _abi;
3654
+ static createInterface() {
3655
+ return new ethers_1.Interface(_abi);
3656
+ }
3657
+ static connect(address, runner) {
3658
+ return new ethers_1.Contract(address, _abi, runner);
3659
+ }
3660
+ }
3661
+ exports.Exchange_v1__factory = Exchange_v1__factory;