@symmio/trading-core 0.1.1 → 1.0.0

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 (467) hide show
  1. package/README.md +2 -2
  2. package/dist/balance-history/get-balance-history/balance-history-filter.d.ts +1 -1
  3. package/dist/balance-history/get-balance-history/get-balance-history.d.ts +3 -3
  4. package/dist/balance-history/get-balance-history/index.d.ts +5 -5
  5. package/dist/balance-history/get-balance-history/query-document.d.ts +2 -2
  6. package/dist/balance-history/get-balance-history/query.d.ts +4 -4
  7. package/dist/balance-history/get-balance-history/to-balance-history-row.d.ts +2 -2
  8. package/dist/balance-history/index.d.ts +1 -1
  9. package/dist/core/chains/actions/get-chain-config.d.ts +1 -1
  10. package/dist/core/chains/actions/list-supported-chains.d.ts +1 -1
  11. package/dist/core/chains/index.d.ts +5 -5
  12. package/dist/core/chains/registry.d.ts +1 -1
  13. package/dist/core/config/config-key.d.ts +1 -1
  14. package/dist/core/config/create-config.d.ts +44 -8
  15. package/dist/core/config/create-config.d.ts.map +1 -1
  16. package/dist/core/config/create-config.js +29 -22
  17. package/dist/core/config/create-config.js.map +1 -1
  18. package/dist/core/config/index.d.ts +1 -1
  19. package/dist/core/config/merge-chain-config.d.ts +2 -2
  20. package/dist/index.d.ts +58 -41
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +142 -127
  23. package/dist/muon/client.d.ts +1 -1
  24. package/dist/muon/deallocate-upnl-sig/get-deallocate-upnl-sig.d.ts +3 -3
  25. package/dist/muon/deallocate-upnl-sig/index.d.ts +2 -2
  26. package/dist/muon/deallocate-upnl-sig/query.d.ts +4 -4
  27. package/dist/muon/index.d.ts +11 -11
  28. package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts +4 -4
  29. package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts.map +1 -1
  30. package/dist/muon/party-a-overview/get-muon-party-a-overview.js.map +1 -1
  31. package/dist/muon/party-a-overview/index.d.ts +2 -2
  32. package/dist/muon/party-a-overview/query.d.ts +4 -4
  33. package/dist/muon/price/get-muon-price.d.ts +3 -3
  34. package/dist/muon/price/index.d.ts +2 -2
  35. package/dist/muon/price/query.d.ts +4 -4
  36. package/dist/muon/price-range/get-muon-price-range.d.ts +4 -4
  37. package/dist/muon/price-range/get-muon-price-range.d.ts.map +1 -1
  38. package/dist/muon/price-range/get-muon-price-range.js.map +1 -1
  39. package/dist/muon/price-range/index.d.ts +2 -2
  40. package/dist/muon/price-range/query.d.ts +4 -4
  41. package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts +4 -4
  42. package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts.map +1 -1
  43. package/dist/muon/settle-upnl/get-muon-settle-upnl.js.map +1 -1
  44. package/dist/muon/settle-upnl/index.d.ts +2 -2
  45. package/dist/muon/settle-upnl/query.d.ts +4 -4
  46. package/dist/muon/upnl/get-muon-upnl.d.ts +4 -4
  47. package/dist/muon/upnl/get-muon-upnl.d.ts.map +1 -1
  48. package/dist/muon/upnl/get-muon-upnl.js.map +1 -1
  49. package/dist/muon/upnl/index.d.ts +2 -2
  50. package/dist/muon/upnl/query.d.ts +4 -4
  51. package/dist/muon/upnl-a/get-muon-upnl-a.d.ts +4 -4
  52. package/dist/muon/upnl-a/get-muon-upnl-a.d.ts.map +1 -1
  53. package/dist/muon/upnl-a/get-muon-upnl-a.js.map +1 -1
  54. package/dist/muon/upnl-a/index.d.ts +2 -2
  55. package/dist/muon/upnl-a/query.d.ts +4 -4
  56. package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts +4 -4
  57. package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts.map +1 -1
  58. package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js.map +1 -1
  59. package/dist/muon/upnl-a-with-symbol-price/index.d.ts +2 -2
  60. package/dist/muon/upnl-a-with-symbol-price/query.d.ts +4 -4
  61. package/dist/muon/upnl-b/get-muon-upnl-b.d.ts +3 -3
  62. package/dist/muon/upnl-b/index.d.ts +2 -2
  63. package/dist/muon/upnl-b/query.d.ts +4 -4
  64. package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts +4 -4
  65. package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts.map +1 -1
  66. package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js.map +1 -1
  67. package/dist/muon/upnl-with-symbol-price/index.d.ts +2 -2
  68. package/dist/muon/upnl-with-symbol-price/query.d.ts +4 -4
  69. package/dist/notifications/index.d.ts +2 -2
  70. package/dist/notifications/search/index.d.ts +2 -2
  71. package/dist/notifications/search/query.d.ts +4 -4
  72. package/dist/notifications/search/search-notifications.d.ts +3 -3
  73. package/dist/notifications/types.d.ts +1 -1
  74. package/dist/price-service/enigma/health/get-enigma-price-service-health.d.ts +2 -2
  75. package/dist/price-service/enigma/health/index.d.ts +2 -2
  76. package/dist/price-service/enigma/health/query.d.ts +4 -4
  77. package/dist/price-service/enigma/index.d.ts +5 -5
  78. package/dist/price-service/enigma/metadata/get-enigma-price-service-metadata.d.ts +3 -3
  79. package/dist/price-service/enigma/metadata/index.d.ts +2 -2
  80. package/dist/price-service/enigma/metadata/query.d.ts +4 -4
  81. package/dist/price-service/enigma/prices-by-addresses/get-enigma-price-service-prices-by-addresses.d.ts +3 -3
  82. package/dist/price-service/enigma/prices-by-addresses/index.d.ts +2 -2
  83. package/dist/price-service/enigma/prices-by-addresses/query.d.ts +4 -4
  84. package/dist/price-service/enigma/prices-by-names/get-enigma-price-service-prices-by-names.d.ts +3 -3
  85. package/dist/price-service/enigma/prices-by-names/index.d.ts +2 -2
  86. package/dist/price-service/enigma/prices-by-names/query.d.ts +4 -4
  87. package/dist/price-service/enigma/symbols-info/get-enigma-price-service-symbols-info.d.ts +3 -3
  88. package/dist/price-service/enigma/symbols-info/index.d.ts +2 -2
  89. package/dist/price-service/enigma/symbols-info/query.d.ts +4 -4
  90. package/dist/price-service/index.d.ts +1 -1
  91. package/dist/quotes/apply-notification.d.ts +2 -2
  92. package/dist/quotes/fees/index.d.ts +2 -2
  93. package/dist/quotes/fingerprint.d.ts +1 -1
  94. package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts +3 -3
  95. package/dist/quotes/get-quote-events-by-type/index.d.ts +4 -4
  96. package/dist/quotes/get-quote-events-by-type/query-document.d.ts +2 -2
  97. package/dist/quotes/get-quote-events-by-type/query.d.ts +5 -5
  98. package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts +2 -2
  99. package/dist/quotes/get-quote-funding/get-quote-funding.d.ts +3 -3
  100. package/dist/quotes/get-quote-funding/index.d.ts +4 -4
  101. package/dist/quotes/get-quote-funding/query-document.d.ts +1 -1
  102. package/dist/quotes/get-quote-funding/query.d.ts +4 -4
  103. package/dist/quotes/get-quote-funding/to-funding-row.d.ts +2 -2
  104. package/dist/quotes/get-quote-history/close-type.d.ts +2 -2
  105. package/dist/quotes/get-quote-history/get-quote-history.d.ts +3 -3
  106. package/dist/quotes/get-quote-history/index.d.ts +5 -5
  107. package/dist/quotes/get-quote-history/query-document.d.ts +2 -2
  108. package/dist/quotes/get-quote-history/query.d.ts +4 -4
  109. package/dist/quotes/get-quote-history/to-history-row.d.ts +2 -2
  110. package/dist/quotes/get-quote-history/types.d.ts +1 -1
  111. package/dist/quotes/get-sub-account-quotes/get-sub-account-quotes.d.ts +3 -3
  112. package/dist/quotes/get-sub-account-quotes/index.d.ts +2 -2
  113. package/dist/quotes/get-sub-account-quotes/query.d.ts +4 -4
  114. package/dist/quotes/grouping/aggregate-metrics.d.ts +2 -2
  115. package/dist/quotes/grouping/group-quotes.d.ts +2 -2
  116. package/dist/quotes/grouping/group-strategy.d.ts +1 -1
  117. package/dist/quotes/grouping/index.d.ts +5 -5
  118. package/dist/quotes/grouping/partition-quotes.d.ts +1 -1
  119. package/dist/quotes/grouping/quote-group.d.ts +3 -3
  120. package/dist/quotes/index.d.ts +16 -16
  121. package/dist/quotes/liquidation/calculate-liquidation-price.d.ts +1 -1
  122. package/dist/quotes/liquidation/index.d.ts +1 -1
  123. package/dist/quotes/open-quantity.d.ts +1 -1
  124. package/dist/quotes/reconcile-quotes.d.ts +5 -5
  125. package/dist/quotes/resolve-quote-accounts.d.ts +3 -3
  126. package/dist/quotes/should-accelerate.d.ts +1 -1
  127. package/dist/quotes/to-unified-quote.d.ts +4 -4
  128. package/dist/quotes/unified-quote.d.ts +3 -3
  129. package/dist/quotes/upnl/calculate-quote-pnl.d.ts +1 -1
  130. package/dist/quotes/upnl/calculate-quote-upnl.d.ts +1 -1
  131. package/dist/quotes/upnl/index.d.ts +3 -3
  132. package/dist/shared/utils/simulate-before-write.d.ts +2 -2
  133. package/dist/solvers/error-codes/get-solver-error-codes.d.ts +2 -2
  134. package/dist/solvers/error-codes/index.d.ts +2 -2
  135. package/dist/solvers/error-codes/query.d.ts +4 -4
  136. package/dist/solvers/estimated-price/get-estimated-price.d.ts +58 -0
  137. package/dist/solvers/estimated-price/get-estimated-price.d.ts.map +1 -0
  138. package/dist/solvers/estimated-price/get-estimated-price.js +30 -0
  139. package/dist/solvers/estimated-price/get-estimated-price.js.map +1 -0
  140. package/dist/solvers/estimated-price/index.d.ts +5 -0
  141. package/dist/solvers/estimated-price/index.d.ts.map +1 -0
  142. package/dist/solvers/estimated-price/price-impact.d.ts +25 -0
  143. package/dist/solvers/estimated-price/price-impact.d.ts.map +1 -0
  144. package/dist/solvers/estimated-price/price-impact.js +9 -0
  145. package/dist/solvers/estimated-price/price-impact.js.map +1 -0
  146. package/dist/solvers/estimated-price/query.d.ts +26 -0
  147. package/dist/solvers/estimated-price/query.d.ts.map +1 -0
  148. package/dist/solvers/estimated-price/query.js +28 -0
  149. package/dist/solvers/estimated-price/query.js.map +1 -0
  150. package/dist/solvers/estimated-price/to-estimated-price.d.ts +9 -0
  151. package/dist/solvers/estimated-price/to-estimated-price.d.ts.map +1 -0
  152. package/dist/solvers/estimated-price/to-estimated-price.js +8 -0
  153. package/dist/solvers/estimated-price/to-estimated-price.js.map +1 -0
  154. package/dist/solvers/funding-info/get-funding-info.d.ts +37 -0
  155. package/dist/solvers/funding-info/get-funding-info.d.ts.map +1 -0
  156. package/dist/solvers/funding-info/get-funding-info.js +24 -0
  157. package/dist/solvers/funding-info/get-funding-info.js.map +1 -0
  158. package/dist/solvers/funding-info/index.d.ts +6 -0
  159. package/dist/solvers/funding-info/index.d.ts.map +1 -0
  160. package/dist/solvers/funding-info/project-funding-rate.d.ts +30 -0
  161. package/dist/solvers/funding-info/project-funding-rate.d.ts.map +1 -0
  162. package/dist/solvers/funding-info/project-funding-rate.js +9 -0
  163. package/dist/solvers/funding-info/project-funding-rate.js.map +1 -0
  164. package/dist/solvers/funding-info/query.d.ts +28 -0
  165. package/dist/solvers/funding-info/query.d.ts.map +1 -0
  166. package/dist/solvers/funding-info/query.js +24 -0
  167. package/dist/solvers/funding-info/query.js.map +1 -0
  168. package/dist/solvers/funding-info/to-funding-info.d.ts +14 -0
  169. package/dist/solvers/funding-info/to-funding-info.d.ts.map +1 -0
  170. package/dist/solvers/funding-info/to-funding-info.js +15 -0
  171. package/dist/solvers/funding-info/to-funding-info.js.map +1 -0
  172. package/dist/solvers/funding-info/types.d.ts +35 -0
  173. package/dist/solvers/funding-info/types.d.ts.map +1 -0
  174. package/dist/solvers/instant-close/get-instant-closes/get-instant-closes.d.ts +3 -3
  175. package/dist/solvers/instant-close/get-instant-closes/index.d.ts +3 -3
  176. package/dist/solvers/instant-close/get-instant-closes/query.d.ts +4 -4
  177. package/dist/solvers/instant-close/get-instant-closes/to-pending-instant-close.d.ts +1 -1
  178. package/dist/solvers/instant-close/index.d.ts +7 -7
  179. package/dist/solvers/instant-close/instant-close/index.d.ts +2 -2
  180. package/dist/solvers/instant-close/instant-close/instant-close.d.ts +3 -3
  181. package/dist/solvers/instant-close/instant-close/query.d.ts +3 -3
  182. package/dist/solvers/instant-close/instant-close-auto/index.d.ts +2 -2
  183. package/dist/solvers/instant-close/instant-close-auto/instant-close-auto.d.ts +3 -3
  184. package/dist/solvers/instant-close/instant-close-auto/query.d.ts +3 -3
  185. package/dist/solvers/instant-close/instant-close-bulk/index.d.ts +2 -2
  186. package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.d.ts +3 -3
  187. package/dist/solvers/instant-close/instant-close-bulk/query.d.ts +3 -3
  188. package/dist/solvers/instant-close/instant-close-bulk-auto/index.d.ts +2 -2
  189. package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.d.ts +4 -4
  190. package/dist/solvers/instant-close/instant-close-bulk-auto/query.d.ts +3 -3
  191. package/dist/solvers/instant-close/prepare-instant-close-params/index.d.ts +1 -1
  192. package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.d.ts +4 -4
  193. package/dist/solvers/instant-close/shared/close-math.d.ts +1 -1
  194. package/dist/solvers/instant-close/shared/hedger-api.d.ts +3 -3
  195. package/dist/solvers/instant-close/shared/index.d.ts +5 -5
  196. package/dist/solvers/instant-close/shared/quote-constraints.d.ts +1 -1
  197. package/dist/solvers/instant-close/shared/types.d.ts +2 -2
  198. package/dist/solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.d.ts +2 -2
  199. package/dist/solvers/instant-open/get-instant-open-quote-id/index.d.ts +2 -2
  200. package/dist/solvers/instant-open/get-instant-open-quote-id/query.d.ts +4 -4
  201. package/dist/solvers/instant-open/get-instant-opens/get-instant-opens.d.ts +3 -3
  202. package/dist/solvers/instant-open/get-instant-opens/index.d.ts +3 -3
  203. package/dist/solvers/instant-open/get-instant-opens/query.d.ts +4 -4
  204. package/dist/solvers/instant-open/get-instant-opens/to-pending-instant-open.d.ts +2 -2
  205. package/dist/solvers/instant-open/index.d.ts +6 -6
  206. package/dist/solvers/instant-open/instant-open/index.d.ts +2 -2
  207. package/dist/solvers/instant-open/instant-open/instant-open.d.ts +3 -3
  208. package/dist/solvers/instant-open/instant-open/query.d.ts +3 -3
  209. package/dist/solvers/instant-open/instant-open-auto/index.d.ts +2 -2
  210. package/dist/solvers/instant-open/instant-open-auto/instant-open-auto.d.ts +3 -3
  211. package/dist/solvers/instant-open/instant-open-auto/query.d.ts +3 -3
  212. package/dist/solvers/instant-open/prepare-instant-open-params/index.d.ts +2 -2
  213. package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts +6 -6
  214. package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/index.d.ts +4 -4
  215. package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.d.ts +3 -3
  216. package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.d.ts +3 -3
  217. package/dist/solvers/instant-open/shared/calldata.d.ts +1 -1
  218. package/dist/solvers/instant-open/shared/eip712.d.ts +2 -2
  219. package/dist/solvers/instant-open/shared/hedger-api.d.ts +3 -3
  220. package/dist/solvers/instant-open/shared/index.d.ts +8 -8
  221. package/dist/solvers/instant-open/shared/operations.d.ts +2 -2
  222. package/dist/solvers/instant-open/shared/quote-constraints.d.ts +3 -3
  223. package/dist/solvers/instant-open/shared/trade-math.d.ts +49 -1
  224. package/dist/solvers/instant-open/shared/trade-math.d.ts.map +1 -1
  225. package/dist/solvers/instant-open/shared/trade-math.js +5 -1
  226. package/dist/solvers/instant-open/shared/trade-math.js.map +1 -1
  227. package/dist/solvers/instant-open/shared/types.d.ts +4 -4
  228. package/dist/solvers/locked-params/get-locked-params.d.ts +3 -3
  229. package/dist/solvers/locked-params/index.d.ts +3 -3
  230. package/dist/solvers/locked-params/query.d.ts +4 -4
  231. package/dist/solvers/market-info/get-market-info.d.ts +32 -0
  232. package/dist/solvers/market-info/get-market-info.d.ts.map +1 -0
  233. package/dist/solvers/market-info/get-market-info.js +23 -0
  234. package/dist/solvers/market-info/get-market-info.js.map +1 -0
  235. package/dist/solvers/market-info/index.d.ts +5 -0
  236. package/dist/solvers/market-info/index.d.ts.map +1 -0
  237. package/dist/solvers/market-info/query.d.ts +29 -0
  238. package/dist/solvers/market-info/query.d.ts.map +1 -0
  239. package/dist/solvers/market-info/query.js +21 -0
  240. package/dist/solvers/market-info/query.js.map +1 -0
  241. package/dist/solvers/market-info/to-market-info.d.ts +13 -0
  242. package/dist/solvers/market-info/to-market-info.d.ts.map +1 -0
  243. package/dist/solvers/market-info/to-market-info.js +28 -0
  244. package/dist/solvers/market-info/to-market-info.js.map +1 -0
  245. package/dist/solvers/market-info/types.d.ts +32 -0
  246. package/dist/solvers/market-info/types.d.ts.map +1 -0
  247. package/dist/solvers/markets/get-markets.d.ts +3 -3
  248. package/dist/solvers/markets/index.d.ts +3 -3
  249. package/dist/solvers/markets/query.d.ts +4 -4
  250. package/dist/solvers/notional-cap/check-notional-cap.d.ts +2 -2
  251. package/dist/solvers/notional-cap/get-notional-cap-all.d.ts +3 -3
  252. package/dist/solvers/notional-cap/get-notional-cap-all.d.ts.map +1 -1
  253. package/dist/solvers/notional-cap/get-notional-cap-all.js +1 -5
  254. package/dist/solvers/notional-cap/get-notional-cap-all.js.map +1 -1
  255. package/dist/solvers/notional-cap/get-notional-cap-by-symbol-id.d.ts +3 -3
  256. package/dist/solvers/notional-cap/get-open-interest-by-symbol-id.d.ts +2 -2
  257. package/dist/solvers/notional-cap/index.d.ts +9 -9
  258. package/dist/solvers/notional-cap/query-all.d.ts +4 -4
  259. package/dist/solvers/notional-cap/query-open-interest.d.ts +4 -4
  260. package/dist/solvers/notional-cap/query.d.ts +4 -4
  261. package/dist/solvers/notional-cap/to-market-notional-cap.d.ts +2 -2
  262. package/dist/solvers/notional-cap/to-market-notional-cap.d.ts.map +1 -1
  263. package/dist/solvers/notional-cap/to-market-notional-cap.js +1 -5
  264. package/dist/solvers/notional-cap/to-market-notional-cap.js.map +1 -1
  265. package/dist/solvers/shared/index.d.ts +1 -1
  266. package/dist/solvers/shared/resolvers/index.d.ts +3 -3
  267. package/dist/solvers/shared/resolvers/resolve-mark-price.d.ts +1 -1
  268. package/dist/solvers/shared/resolvers/resolve-market.d.ts +2 -2
  269. package/dist/solvers/types/generated/enigma-solver.js +16 -4
  270. package/dist/solvers/types/generated/enigma-solver.js.map +1 -1
  271. package/dist/symmio-contracts/abi/index.d.ts +3 -3
  272. package/dist/symmio-contracts/abi/v0.8.5/index.d.ts +3 -3
  273. package/dist/symmio-contracts/account-layer/actions/add-margin.d.ts +2 -2
  274. package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.d.ts +3 -3
  275. package/dist/symmio-contracts/account-layer/actions/delete-sub-account.d.ts +2 -2
  276. package/dist/symmio-contracts/account-layer/actions/deposit-and-allocate-for-account.d.ts +2 -2
  277. package/dist/symmio-contracts/account-layer/actions/deposit-for-account.d.ts +2 -2
  278. package/dist/symmio-contracts/account-layer/actions/edit-account-name.d.ts +2 -2
  279. package/dist/symmio-contracts/account-layer/actions/get-account-balance-info.d.ts +3 -3
  280. package/dist/symmio-contracts/account-layer/actions/get-account-balance-of.d.ts +2 -2
  281. package/dist/symmio-contracts/account-layer/actions/get-sub-account-virtual-nonce.d.ts +2 -2
  282. package/dist/symmio-contracts/account-layer/actions/get-sub-account.d.ts +3 -3
  283. package/dist/symmio-contracts/account-layer/actions/get-sub-accounts-count-of-user.d.ts +2 -2
  284. package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.d.ts +3 -3
  285. package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.js.map +1 -1
  286. package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.d.ts +4 -4
  287. package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.js.map +1 -1
  288. package/dist/symmio-contracts/account-layer/actions/get-virtual-account.d.ts +3 -3
  289. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-addresses-of-sub-account.d.ts +2 -2
  290. package/dist/symmio-contracts/account-layer/actions/predict-next-virtual-account.d.ts +3 -3
  291. package/dist/symmio-contracts/account-layer/actions/remove-margin.d.ts +3 -3
  292. package/dist/symmio-contracts/account-layer/actions/simulate-add-margin.d.ts +4 -4
  293. package/dist/symmio-contracts/account-layer/actions/simulate-create-sub-accounts.d.ts +4 -4
  294. package/dist/symmio-contracts/account-layer/actions/simulate-delete-sub-account.d.ts +4 -4
  295. package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.d.ts +4 -4
  296. package/dist/symmio-contracts/account-layer/actions/simulate-deposit-for-account.d.ts +4 -4
  297. package/dist/symmio-contracts/account-layer/actions/simulate-edit-account-name.d.ts +4 -4
  298. package/dist/symmio-contracts/account-layer/actions/simulate-remove-margin.d.ts +4 -4
  299. package/dist/symmio-contracts/account-layer/index.d.ts +49 -49
  300. package/dist/symmio-contracts/account-layer/query/add-margin.d.ts +2 -2
  301. package/dist/symmio-contracts/account-layer/query/create-sub-accounts.d.ts +2 -2
  302. package/dist/symmio-contracts/account-layer/query/delete-sub-account.d.ts +2 -2
  303. package/dist/symmio-contracts/account-layer/query/deposit-and-allocate-for-account.d.ts +2 -2
  304. package/dist/symmio-contracts/account-layer/query/deposit-for-account.d.ts +2 -2
  305. package/dist/symmio-contracts/account-layer/query/edit-account-name.d.ts +2 -2
  306. package/dist/symmio-contracts/account-layer/query/get-account-balance-info.d.ts +4 -4
  307. package/dist/symmio-contracts/account-layer/query/get-account-balance-of.d.ts +4 -4
  308. package/dist/symmio-contracts/account-layer/query/get-sub-account-virtual-nonce.d.ts +4 -4
  309. package/dist/symmio-contracts/account-layer/query/get-sub-account.d.ts +4 -4
  310. package/dist/symmio-contracts/account-layer/query/get-sub-accounts-count-of-user.d.ts +4 -4
  311. package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts-addresses.d.ts +4 -4
  312. package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts.d.ts +4 -4
  313. package/dist/symmio-contracts/account-layer/query/get-virtual-account.d.ts +4 -4
  314. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-addresses-of-sub-account.d.ts +4 -4
  315. package/dist/symmio-contracts/account-layer/query/predict-next-virtual-account.d.ts +4 -4
  316. package/dist/symmio-contracts/account-layer/query/remove-margin.d.ts +2 -2
  317. package/dist/symmio-contracts/account-layer/query/simulate-add-margin.d.ts +3 -3
  318. package/dist/symmio-contracts/account-layer/query/simulate-create-sub-accounts.d.ts +3 -3
  319. package/dist/symmio-contracts/account-layer/query/simulate-delete-sub-account.d.ts +3 -3
  320. package/dist/symmio-contracts/account-layer/query/simulate-deposit-and-allocate-for-account.d.ts +3 -3
  321. package/dist/symmio-contracts/account-layer/query/simulate-deposit-for-account.d.ts +3 -3
  322. package/dist/symmio-contracts/account-layer/query/simulate-edit-account-name.d.ts +3 -3
  323. package/dist/symmio-contracts/account-layer/query/simulate-remove-margin.d.ts +3 -3
  324. package/dist/symmio-contracts/collateral/actions/approve-collateral.d.ts +2 -2
  325. package/dist/symmio-contracts/collateral/actions/get-collateral-allowance.d.ts +2 -2
  326. package/dist/symmio-contracts/collateral/actions/get-collateral-balance.d.ts +2 -2
  327. package/dist/symmio-contracts/collateral/actions/simulate-approve-collateral.d.ts +3 -3
  328. package/dist/symmio-contracts/collateral/index.d.ts +8 -8
  329. package/dist/symmio-contracts/collateral/query/approve-collateral.d.ts +2 -2
  330. package/dist/symmio-contracts/collateral/query/get-collateral-allowance.d.ts +4 -4
  331. package/dist/symmio-contracts/collateral/query/get-collateral-balance.d.ts +4 -4
  332. package/dist/symmio-contracts/collateral/query/simulate-approve-collateral.d.ts +3 -3
  333. package/dist/symmio-contracts/instant-layer/actions/get-delegation-expiry.d.ts +2 -2
  334. package/dist/symmio-contracts/instant-layer/actions/get-is-delegation-active.d.ts +2 -2
  335. package/dist/symmio-contracts/instant-layer/actions/grant-delegation.d.ts +3 -3
  336. package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegation.d.ts +4 -4
  337. package/dist/symmio-contracts/instant-layer/index.d.ts +9 -9
  338. package/dist/symmio-contracts/instant-layer/query/get-delegation-expiry.d.ts +4 -4
  339. package/dist/symmio-contracts/instant-layer/query/get-is-delegation-active.d.ts +4 -4
  340. package/dist/symmio-contracts/instant-layer/query/grant-delegation.d.ts +2 -2
  341. package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegation.d.ts +3 -3
  342. package/dist/symmio-contracts/symmio/actions/allocate.d.ts +2 -2
  343. package/dist/symmio-contracts/symmio/actions/deallocate.d.ts +3 -3
  344. package/dist/symmio-contracts/symmio/actions/finalize-withdraw-request.d.ts +2 -2
  345. package/dist/symmio-contracts/symmio/actions/get-fee-for-user.d.ts +2 -2
  346. package/dist/symmio-contracts/symmio/actions/get-last-withdraw-request-id.d.ts +2 -2
  347. package/dist/symmio-contracts/symmio/actions/get-onchain-contract-markets.d.ts +2 -2
  348. package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts +4 -4
  349. package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts.map +1 -1
  350. package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.js.map +1 -1
  351. package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts +3 -3
  352. package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts.map +1 -1
  353. package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.js.map +1 -1
  354. package/dist/symmio-contracts/symmio/actions/get-pending-withdraw-requests.d.ts +3 -3
  355. package/dist/symmio-contracts/symmio/actions/get-quote.d.ts +3 -3
  356. package/dist/symmio-contracts/symmio/actions/get-withdraw-requests.d.ts +3 -3
  357. package/dist/symmio-contracts/symmio/actions/get-withdrawable-time.d.ts +2 -2
  358. package/dist/symmio-contracts/symmio/actions/initiate-withdraw.d.ts +3 -3
  359. package/dist/symmio-contracts/symmio/actions/request-cancel-withdraw.d.ts +2 -2
  360. package/dist/symmio-contracts/symmio/actions/simulate-allocate.d.ts +4 -4
  361. package/dist/symmio-contracts/symmio/actions/simulate-deallocate.d.ts +4 -4
  362. package/dist/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.d.ts +4 -4
  363. package/dist/symmio-contracts/symmio/actions/simulate-initiate-withdraw.d.ts +4 -4
  364. package/dist/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.d.ts +4 -4
  365. package/dist/symmio-contracts/symmio/index.d.ts +40 -40
  366. package/dist/symmio-contracts/symmio/internal/call-as-sub-account.d.ts +1 -1
  367. package/dist/symmio-contracts/symmio/internal/simulate-call-as-sub-account.d.ts +2 -2
  368. package/dist/symmio-contracts/symmio/parts.d.ts +1 -1
  369. package/dist/symmio-contracts/symmio/query/allocate.d.ts +2 -2
  370. package/dist/symmio-contracts/symmio/query/deallocate.d.ts +2 -2
  371. package/dist/symmio-contracts/symmio/query/finalize-withdraw-request.d.ts +2 -2
  372. package/dist/symmio-contracts/symmio/query/get-fee-for-user.d.ts +4 -4
  373. package/dist/symmio-contracts/symmio/query/get-last-withdraw-request-id.d.ts +4 -4
  374. package/dist/symmio-contracts/symmio/query/get-onchain-contract-markets.d.ts +4 -4
  375. package/dist/symmio-contracts/symmio/query/get-party-a-open-positions.d.ts +4 -4
  376. package/dist/symmio-contracts/symmio/query/get-party-a-pending-quotes.d.ts +4 -4
  377. package/dist/symmio-contracts/symmio/query/get-pending-withdraw-requests.d.ts +4 -4
  378. package/dist/symmio-contracts/symmio/query/get-quote.d.ts +4 -4
  379. package/dist/symmio-contracts/symmio/query/get-withdraw-requests.d.ts +4 -4
  380. package/dist/symmio-contracts/symmio/query/get-withdrawable-time.d.ts +4 -4
  381. package/dist/symmio-contracts/symmio/query/initiate-withdraw.d.ts +2 -2
  382. package/dist/symmio-contracts/symmio/query/request-cancel-withdraw.d.ts +2 -2
  383. package/dist/symmio-contracts/symmio/query/simulate-allocate.d.ts +3 -3
  384. package/dist/symmio-contracts/symmio/query/simulate-deallocate.d.ts +3 -3
  385. package/dist/symmio-contracts/symmio/query/simulate-finalize-withdraw-request.d.ts +3 -3
  386. package/dist/symmio-contracts/symmio/query/simulate-initiate-withdraw.d.ts +3 -3
  387. package/dist/symmio-contracts/symmio/query/simulate-request-cancel-withdraw.d.ts +3 -3
  388. package/dist/symmio-contracts/symmio/types.d.ts +1 -1
  389. package/dist/symmio-contracts/symmio/types.d.ts.map +1 -1
  390. package/dist/symmio-contracts/symmio/types.js.map +1 -1
  391. package/dist/symmio-subgraph/index.d.ts +1 -1
  392. package/dist/symmio-subgraph/query-subgraph/index.d.ts +2 -2
  393. package/dist/symmio-subgraph/query-subgraph/query-subgraph.d.ts +3 -3
  394. package/dist/symmio-subgraph/query-subgraph/query.d.ts +4 -4
  395. package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +4 -4
  396. package/dist/symmio-subgraph/types/generated/analytics/index.d.ts +1 -1
  397. package/dist/symmio-subgraph/types/generated/events/gql.d.ts +1 -1
  398. package/dist/symmio-subgraph/types/generated/events/index.d.ts +1 -1
  399. package/dist/tpsl/config/get-tpsl-config.d.ts +3 -3
  400. package/dist/tpsl/config/index.d.ts +2 -2
  401. package/dist/tpsl/config/query.d.ts +4 -4
  402. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts +37 -0
  403. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts.map +1 -0
  404. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js +43 -0
  405. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js.map +1 -0
  406. package/dist/tpsl/delete-quote-tpsl/index.d.ts +3 -0
  407. package/dist/tpsl/delete-quote-tpsl/index.d.ts.map +1 -0
  408. package/dist/tpsl/delete-quote-tpsl/query.d.ts +15 -0
  409. package/dist/tpsl/delete-quote-tpsl/query.d.ts.map +1 -0
  410. package/dist/tpsl/delete-quote-tpsl/query.js +12 -0
  411. package/dist/tpsl/delete-quote-tpsl/query.js.map +1 -0
  412. package/dist/tpsl/get-quote-tpsl/get-quote-tpsl.d.ts +4 -4
  413. package/dist/tpsl/get-quote-tpsl/index.d.ts +2 -2
  414. package/dist/tpsl/get-quote-tpsl/query.d.ts +7 -5
  415. package/dist/tpsl/get-quote-tpsl/query.d.ts.map +1 -1
  416. package/dist/tpsl/get-quote-tpsl/query.js +4 -1
  417. package/dist/tpsl/get-quote-tpsl/query.js.map +1 -1
  418. package/dist/tpsl/index.d.ts +8 -7
  419. package/dist/tpsl/index.d.ts.map +1 -1
  420. package/dist/tpsl/internal/resolve-tpsl-config.d.ts +2 -2
  421. package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.d.ts +1 -1
  422. package/dist/tpsl/set-quote-tpsl/build-conditional-order-message.d.ts +1 -1
  423. package/dist/tpsl/set-quote-tpsl/index.d.ts +5 -5
  424. package/dist/tpsl/set-quote-tpsl/query.d.ts +3 -3
  425. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.d.ts +4 -4
  426. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.js +11 -11
  427. package/dist/tpsl/set-quote-tpsl/sign-tpsl-request.d.ts +2 -2
  428. package/dist/tpsl/signing-spec/delete-query.d.ts +12 -0
  429. package/dist/tpsl/signing-spec/delete-query.d.ts.map +1 -0
  430. package/dist/tpsl/signing-spec/delete-query.js +21 -0
  431. package/dist/tpsl/signing-spec/delete-query.js.map +1 -0
  432. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts +18 -0
  433. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts.map +1 -0
  434. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js +25 -0
  435. package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js.map +1 -0
  436. package/dist/tpsl/signing-spec/get-tpsl-signing-spec.d.ts +3 -3
  437. package/dist/tpsl/signing-spec/index.d.ts +4 -2
  438. package/dist/tpsl/signing-spec/index.d.ts.map +1 -1
  439. package/dist/tpsl/signing-spec/query.d.ts +4 -4
  440. package/dist/tpsl/slippage.d.ts +1 -1
  441. package/dist/tpsl/types/generated/tpsl-handler.js +6 -3
  442. package/dist/tpsl/types/generated/tpsl-handler.js.map +1 -1
  443. package/dist/tpsl/validate-tpsl.d.ts +2 -2
  444. package/dist/transfers/get-transfer-history/get-transfer-history.d.ts +3 -3
  445. package/dist/transfers/get-transfer-history/index.d.ts +4 -4
  446. package/dist/transfers/get-transfer-history/query-document.d.ts +2 -2
  447. package/dist/transfers/get-transfer-history/query.d.ts +4 -4
  448. package/dist/transfers/get-transfer-history/to-transfer-row.d.ts +2 -2
  449. package/dist/transfers/index.d.ts +1 -1
  450. package/dist/websocket/index.d.ts +3 -3
  451. package/dist/websocket/notifications/build-subscribe-message.d.ts +1 -1
  452. package/dist/websocket/notifications/index.d.ts +5 -5
  453. package/dist/websocket/notifications/normalize-notification.d.ts +1 -1
  454. package/dist/websocket/notifications/parse-notification-frame.d.ts +2 -2
  455. package/dist/websocket/notifications/watch-notifications.d.ts +4 -4
  456. package/dist/websocket/prices/index.d.ts +3 -3
  457. package/dist/websocket/prices/parse-price-frame.d.ts +1 -1
  458. package/dist/websocket/prices/watch-enigma-prices.d.ts +5 -5
  459. package/dist/websocket/socket/create-reconnecting-socket.d.ts +2 -2
  460. package/dist/websocket/socket/get-socket-pool.d.ts +2 -2
  461. package/dist/websocket/socket/index.d.ts +4 -4
  462. package/dist/websocket/socket/socket-pool.d.ts +2 -2
  463. package/dist/websocket/tpsl/index.d.ts +3 -3
  464. package/dist/websocket/tpsl/parse-tpsl-frame.d.ts +1 -1
  465. package/dist/websocket/tpsl/types.d.ts +1 -1
  466. package/dist/websocket/tpsl/watch-tpsl-notifications.d.ts +4 -4
  467. package/package.json +11 -9
package/dist/index.js CHANGED
@@ -135,130 +135,145 @@ import { searchNotifications as on } from "./notifications/search/search-notific
135
135
  import { searchNotificationsQueryKey as sn, searchNotificationsQueryOptions as cn } from "./notifications/search/query.js";
136
136
  import { getMarkets as ln } from "./solvers/markets/get-markets.js";
137
137
  import { getMarketsQueryKey as un, getMarketsQueryOptions as dn } from "./solvers/markets/query.js";
138
- import { getLockedParams as fn } from "./solvers/locked-params/get-locked-params.js";
139
- import { getLockedParamsQueryKey as pn, getLockedParamsQueryOptions as mn } from "./solvers/locked-params/query.js";
140
- import { checkNotionalCap as hn } from "./solvers/notional-cap/check-notional-cap.js";
141
- import { toMarketNotionalCap as gn } from "./solvers/notional-cap/to-market-notional-cap.js";
142
- import { getNotionalCapAll as _n } from "./solvers/notional-cap/get-notional-cap-all.js";
143
- import { getNotionalCapBySymbolId as vn } from "./solvers/notional-cap/get-notional-cap-by-symbol-id.js";
144
- import { getOpenInterestBySymbolId as yn } from "./solvers/notional-cap/get-open-interest-by-symbol-id.js";
145
- import { getNotionalCapBySymbolIdQueryKey as bn, getNotionalCapBySymbolIdQueryOptions as xn } from "./solvers/notional-cap/query.js";
146
- import { getNotionalCapAllQueryKey as Sn, getNotionalCapAllQueryOptions as Cn } from "./solvers/notional-cap/query-all.js";
147
- import { getOpenInterestBySymbolIdQueryKey as wn, getOpenInterestBySymbolIdQueryOptions as Tn } from "./solvers/notional-cap/query-open-interest.js";
148
- import { getSolverErrorCodes as En } from "./solvers/error-codes/get-solver-error-codes.js";
149
- import { getSolverErrorCodesQueryKey as Dn, getSolverErrorCodesQueryOptions as On } from "./solvers/error-codes/query.js";
150
- import { MUON_APP as kn, MUON_METHOD_PARTY_A_OVERVIEW as An, MUON_METHOD_PRICE as jn, MUON_METHOD_PRICE_RANGE as Mn, MUON_METHOD_SETTLE_UPNL as Nn, MUON_METHOD_UPNL_A as Pn, MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE as Fn, MUON_METHOD_UPNL_B as In, MUON_METHOD_UPNL_PAIR as Ln, MUON_METHOD_UPNL_WITH_SYMBOL_PRICE as Rn } from "./muon/types.js";
151
- import { getDeallocateUpnlSig as zn } from "./muon/deallocate-upnl-sig/get-deallocate-upnl-sig.js";
152
- import { getDeallocateUpnlSigQueryKey as Bn, getDeallocateUpnlSigQueryOptions as Vn } from "./muon/deallocate-upnl-sig/query.js";
153
- import { getMuonPartyAOverview as Hn } from "./muon/party-a-overview/get-muon-party-a-overview.js";
154
- import { getMuonPartyAOverviewQueryKey as Un, getMuonPartyAOverviewQueryOptions as Wn } from "./muon/party-a-overview/query.js";
155
- import { getMuonPrice as Gn } from "./muon/price/get-muon-price.js";
156
- import { getMuonPriceQueryKey as Kn, getMuonPriceQueryOptions as qn } from "./muon/price/query.js";
157
- import { getMuonPriceRange as Jn } from "./muon/price-range/get-muon-price-range.js";
158
- import { getMuonPriceRangeQueryKey as Yn, getMuonPriceRangeQueryOptions as Xn } from "./muon/price-range/query.js";
159
- import { getMuonSettleUpnl as Zn } from "./muon/settle-upnl/get-muon-settle-upnl.js";
160
- import { getMuonSettleUpnlQueryKey as Qn, getMuonSettleUpnlQueryOptions as $n } from "./muon/settle-upnl/query.js";
161
- import { getMuonUpnl as er } from "./muon/upnl/get-muon-upnl.js";
162
- import { getMuonUpnlQueryKey as tr, getMuonUpnlQueryOptions as nr } from "./muon/upnl/query.js";
163
- import { getMuonUpnlA as rr } from "./muon/upnl-a/get-muon-upnl-a.js";
164
- import { getMuonUpnlAQueryKey as ir, getMuonUpnlAQueryOptions as ar } from "./muon/upnl-a/query.js";
165
- import { getMuonUpnlAWithSymbolPrice as or } from "./muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js";
166
- import { getMuonUpnlAWithSymbolPriceQueryKey as sr, getMuonUpnlAWithSymbolPriceQueryOptions as cr } from "./muon/upnl-a-with-symbol-price/query.js";
167
- import { getMuonUpnlB as lr } from "./muon/upnl-b/get-muon-upnl-b.js";
168
- import { getMuonUpnlBQueryKey as ur, getMuonUpnlBQueryOptions as dr } from "./muon/upnl-b/query.js";
169
- import { getMuonUpnlWithSymbolPrice as fr } from "./muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js";
170
- import { getMuonUpnlWithSymbolPriceQueryKey as pr, getMuonUpnlWithSymbolPriceQueryOptions as mr } from "./muon/upnl-with-symbol-price/query.js";
171
- import { getInstantOpenQuoteId as hr } from "./solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.js";
172
- import { getInstantOpenQuoteIdQueryKey as gr, getInstantOpenQuoteIdQueryOptions as _r } from "./solvers/instant-open/get-instant-open-quote-id/query.js";
173
- import { getInstantOpens as vr } from "./solvers/instant-open/get-instant-opens/get-instant-opens.js";
174
- import { getInstantOpensQueryKey as yr, getInstantOpensQueryOptions as br } from "./solvers/instant-open/get-instant-opens/query.js";
175
- import { ZERO_UPNL_SIG as xr, buildQuoteMetadata as Sr, encodeAddMarginToNextVA as Cr, encodeSendQuoteWithAffiliateAndData as wr, getFakeSendQuoteMuonSignature as Tr } from "./solvers/instant-open/shared/calldata.js";
176
- import { sendInstantOpen as Er } from "./solvers/instant-open/shared/hedger-api.js";
177
- import { INSTANT_LAYER_EIP712_DOMAIN_NAME as Dr, INSTANT_LAYER_EIP712_DOMAIN_VERSION as Or, SIGNED_OPERATION_TYPES as kr, getInstantLayerEip712Domain as Ar, signSignedOperation as jr } from "./solvers/instant-open/shared/eip712.js";
178
- import { buildSignedOperation as Mr, formatSignedOperationPayload as Nr, generateSalt as Pr, signAndFormatInstantOperation as Fr } from "./solvers/instant-open/shared/operations.js";
179
- import { ORDER_TYPE_MARKET as Ir, VIRTUAL_ACCOUNT_ISOLATION_TYPE as Lr, isolationTypeForSide as Rr } from "./solvers/instant-open/shared/types.js";
180
- import { MARKET_ORDER_DEADLINE_SECONDS as zr, calculateMargin as Br, calculateTradeParams as Vr, computePlatformFee as Hr, getMarketOrderDeadline as Ur, toWeiBigInt as Wr } from "./solvers/instant-open/shared/trade-math.js";
181
- import { instantOpen as Gr } from "./solvers/instant-open/instant-open/instant-open.js";
182
- import { instantOpenMutationOptions as Kr } from "./solvers/instant-open/instant-open/query.js";
183
- import { resolveMarkPrice as qr } from "./solvers/shared/resolvers/resolve-mark-price.js";
184
- import { resolveMarket as Jr } from "./solvers/shared/resolvers/resolve-market.js";
185
- import { resolveFeeRates as Yr } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.js";
186
- import { resolveLockedParams as Xr } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.js";
187
- import { prepareInstantOpenParams as Zr } from "./solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js";
188
- import { instantOpenAuto as Qr } from "./solvers/instant-open/instant-open-auto/instant-open-auto.js";
189
- import { instantOpenAutoMutationOptions as $r } from "./solvers/instant-open/instant-open-auto/query.js";
190
- import { validateInstantOpenAgainstMarket as ei } from "./solvers/instant-open/shared/quote-constraints.js";
191
- import { ADD_MARGIN_TO_NEXT_VA_SELECTOR as ti, INSTANT_TRADE_REQUIRED_SELECTORS as ni, REQUEST_TO_CLOSE_POSITION_SELECTOR as ri, SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR as ii } from "./solvers/instant-open/shared/selectors.js";
192
- import { toPendingInstantClose as ai } from "./solvers/instant-close/get-instant-closes/to-pending-instant-close.js";
193
- import { getInstantCloses as oi } from "./solvers/instant-close/get-instant-closes/get-instant-closes.js";
194
- import { getInstantClosesQueryKey as si, getInstantClosesQueryOptions as ci } from "./solvers/instant-close/get-instant-closes/query.js";
195
- import { encodeRequestToClosePosition as li } from "./solvers/instant-close/shared/calldata.js";
196
- import { sendInstantClose as ui } from "./solvers/instant-close/shared/hedger-api.js";
197
- import { instantClose as di } from "./solvers/instant-close/instant-close/instant-close.js";
198
- import { instantCloseMutationOptions as fi } from "./solvers/instant-close/instant-close/query.js";
199
- import { calculateClosePrice as pi, clampClosePrecision as mi } from "./solvers/instant-close/shared/close-math.js";
200
- import { prepareInstantCloseParams as hi } from "./solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.js";
201
- import { instantCloseAuto as gi } from "./solvers/instant-close/instant-close-auto/instant-close-auto.js";
202
- import { instantCloseAutoMutationOptions as _i } from "./solvers/instant-close/instant-close-auto/query.js";
203
- import { MAX_INSTANT_CLOSE_BULK_ORDERS as vi, instantCloseBulk as yi } from "./solvers/instant-close/instant-close-bulk/instant-close-bulk.js";
204
- import { instantCloseBulkMutationOptions as bi } from "./solvers/instant-close/instant-close-bulk/query.js";
205
- import { instantCloseBulkAuto as xi } from "./solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.js";
206
- import { instantCloseBulkAutoMutationOptions as Si } from "./solvers/instant-close/instant-close-bulk-auto/query.js";
207
- import { validateInstantCloseAgainstMarket as Ci } from "./solvers/instant-close/shared/quote-constraints.js";
208
- import { QuoteLifecycle as wi } from "./quotes/unified-quote.js";
209
- import { applyNotificationToQuotes as Ti, classifyQuoteNotificationAction as Ei } from "./quotes/apply-notification.js";
210
- import { calculateClosePlatformFee as Di } from "./quotes/fees/calculate-close-platform-fee.js";
211
- import { calculateOpenPlatformFee as Oi } from "./quotes/fees/calculate-open-platform-fee.js";
212
- import { fingerprintQuote as ki } from "./quotes/fingerprint.js";
213
- import { querySubgraph as Ai } from "./symmio-subgraph/query-subgraph/query-subgraph.js";
214
- import { getQuerySubgraphQueryKey as ji, querySubgraphQueryOptions as Mi } from "./symmio-subgraph/query-subgraph/query.js";
215
- import { toQuoteEventRow as Ni } from "./quotes/get-quote-events-by-type/to-quote-event-row.js";
216
- import { DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE as Pi, getQuoteEventsByType as Fi } from "./quotes/get-quote-events-by-type/get-quote-events-by-type.js";
217
- import { getQuoteEventsByTypeQueryKey as Ii, getQuoteEventsByTypeQueryOptions as Li } from "./quotes/get-quote-events-by-type/query.js";
218
- import { PRICE_HISTORY_EVENT_TYPES as Ri, QuoteEventType as zi } from "./quotes/get-quote-events-by-type/types.js";
219
- import { toQuoteFundingRow as Bi } from "./quotes/get-quote-funding/to-funding-row.js";
220
- import { getQuoteFunding as Vi } from "./quotes/get-quote-funding/get-quote-funding.js";
221
- import { getQuoteFundingQueryKey as Hi, getQuoteFundingQueryOptions as Ui } from "./quotes/get-quote-funding/query.js";
222
- import { QuoteCloseEventType as Wi, QuoteCloseType as Gi } from "./quotes/get-quote-history/types.js";
223
- import { closeTypeToEventTypes as Ki, eventTypeToCloseType as qi, eventTypeToQuoteStatus as Ji } from "./quotes/get-quote-history/close-type.js";
224
- import { toQuoteHistoryRow as Yi } from "./quotes/get-quote-history/to-history-row.js";
225
- import { getQuoteHistory as Xi } from "./quotes/get-quote-history/get-quote-history.js";
226
- import { getQuoteHistoryQueryKey as Zi, getQuoteHistoryQueryOptions as Qi } from "./quotes/get-quote-history/query.js";
227
- import { lifecycleFromQuoteStatus as $i, toUnifiedQuoteFromInstantClose as ea, toUnifiedQuoteFromInstantOpen as ta, toUnifiedQuoteFromOnchain as na } from "./quotes/to-unified-quote.js";
228
- import { reconcileQuotes as ra } from "./quotes/reconcile-quotes.js";
229
- import { resolveQuoteAccounts as ia } from "./quotes/resolve-quote-accounts.js";
230
- import { getSubAccountQuotes as aa } from "./quotes/get-sub-account-quotes/get-sub-account-quotes.js";
231
- import { getSubAccountQuotesQueryKey as oa, getSubAccountQuotesQueryOptions as sa } from "./quotes/get-sub-account-quotes/query.js";
232
- import { isActivePosition as ca, isPendingOrder as la, partitionQuotes as ua } from "./quotes/grouping/partition-quotes.js";
233
- import { aggregateGroupMetrics as da } from "./quotes/grouping/aggregate-metrics.js";
234
- import { resolveQuoteGroupingStrategy as fa } from "./quotes/grouping/group-strategy.js";
235
- import { groupQuotes as pa } from "./quotes/grouping/group-quotes.js";
236
- import { calculateLiquidationPrice as ma } from "./quotes/liquidation/calculate-liquidation-price.js";
237
- import { shouldAccelerateOnchainReads as ha, shouldAccelerateQuotePolling as ga } from "./quotes/should-accelerate.js";
238
- import { calculateQuoteLeverage as _a } from "./quotes/upnl/calculate-quote-leverage.js";
239
- import { calculateQuotePnl as va } from "./quotes/upnl/calculate-quote-pnl.js";
240
- import { calculateQuoteUpnl as ya } from "./quotes/upnl/calculate-quote-upnl.js";
241
- import { getTpSlConfig as ba } from "./tpsl/config/get-tpsl-config.js";
242
- import { getTpSlConfigQueryKey as xa, getTpSlConfigQueryOptions as Sa } from "./tpsl/config/query.js";
243
- import { getQuoteTpSl as Ca } from "./tpsl/get-quote-tpsl/get-quote-tpsl.js";
244
- import { getQuoteTpSlQueryKey as wa, getQuoteTpSlQueryOptions as Ta } from "./tpsl/get-quote-tpsl/query.js";
245
- import { buildConditionalOrderLeg as Ea } from "./tpsl/set-quote-tpsl/build-conditional-order-leg.js";
246
- import { ZERO_LEG as Da, buildConditionalOrderMessage as Oa, buildTpSlDeleteMessage as ka, generateTpSlSalt as Aa, toSignableTpSlMessage as ja } from "./tpsl/set-quote-tpsl/build-conditional-order-message.js";
247
- import { getTpSlSigningSpec as Ma } from "./tpsl/signing-spec/get-tpsl-signing-spec.js";
248
- import { DEFAULT_TPSL_SLIPPAGE_LOWCAPS as Na, priceSlippageCalculation as Pa } from "./tpsl/slippage.js";
249
- import { signTpSlRequest as Fa } from "./tpsl/set-quote-tpsl/sign-tpsl-request.js";
250
- import { setQuoteTpSl as Ia } from "./tpsl/set-quote-tpsl/set-quote-tpsl.js";
251
- import { setQuoteTpSlMutationOptions as La } from "./tpsl/set-quote-tpsl/query.js";
252
- import { getTpSlSigningSpecQueryKey as Ra, getTpSlSigningSpecQueryOptions as za } from "./tpsl/signing-spec/query.js";
253
- import { validateTpSl as Ba } from "./tpsl/validate-tpsl.js";
254
- import { parseTpSlFrame as Va } from "./websocket/tpsl/parse-tpsl-frame.js";
255
- import { watchTpSlNotifications as Ha } from "./websocket/tpsl/watch-tpsl-notifications.js";
256
- import { BalanceChangeType as Ua, BalanceHistoryFilter as Wa, MarginTransferType as Ga } from "./balance-history/get-balance-history/types.js";
257
- import { balanceHistoryFilterToTypes as Ka } from "./balance-history/get-balance-history/balance-history-filter.js";
258
- import { toBalanceHistoryRow as qa } from "./balance-history/get-balance-history/to-balance-history-row.js";
259
- import { getBalanceHistory as Ja } from "./balance-history/get-balance-history/get-balance-history.js";
260
- import { getBalanceHistoryQueryKey as Ya, getBalanceHistoryQueryOptions as Xa } from "./balance-history/get-balance-history/query.js";
261
- import { toTransferRow as Za } from "./transfers/get-transfer-history/to-transfer-row.js";
262
- import { getTransferHistory as Qa } from "./transfers/get-transfer-history/get-transfer-history.js";
263
- import { getTransferHistoryQueryKey as $a, getTransferHistoryQueryOptions as eo } from "./transfers/get-transfer-history/query.js";
264
- export { ti as ADD_MARGIN_TO_NEXT_VA_SELECTOR, Zt as ActionStatus, Ua as BalanceChangeType, Wa as BalanceHistoryFilter, Pi as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, Na as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, Dr as INSTANT_LAYER_EIP712_DOMAIN_NAME, Or as INSTANT_LAYER_EIP712_DOMAIN_VERSION, ni as INSTANT_TRADE_REQUIRED_SELECTORS, zr as MARKET_ORDER_DEADLINE_SECONDS, vi as MAX_INSTANT_CLOSE_BULK_ORDERS, kn as MUON_APP, An as MUON_METHOD_PARTY_A_OVERVIEW, jn as MUON_METHOD_PRICE, Mn as MUON_METHOD_PRICE_RANGE, Nn as MUON_METHOD_SETTLE_UPNL, Pn as MUON_METHOD_UPNL_A, Fn as MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE, In as MUON_METHOD_UPNL_B, Ln as MUON_METHOD_UPNL_PAIR, Rn as MUON_METHOD_UPNL_WITH_SYMBOL_PRICE, Ga as MarginTransferType, Qt as NotificationType, Ir as ORDER_TYPE_MARKET, jt as OrderType, Ri as PRICE_HISTORY_EVENT_TYPES, Mt as PositionType, Wi as QuoteCloseEventType, Gi as QuoteCloseType, zi as QuoteEventType, wi as QuoteLifecycle, Nt as QuoteStatus, ri as REQUEST_TO_CLOSE_POSITION_SELECTOR, ii as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, kr as SIGNED_OPERATION_TYPES, ge as SubAccountIsolationType, r as SymmApiError, i as SymmError, a as SymmioSupportedChainId, Lr as VIRTUAL_ACCOUNT_ISOLATION_TYPE, Pt as WithdrawStatus, Da as ZERO_LEG, xr as ZERO_UPNL_SIG, e as accountLayerAbi, f as addMargin, F as addMarginMutationOptions, da as aggregateGroupMetrics, Le as allocate, rt as allocateMutationOptions, Ti as applyNotificationToQuotes, ve as approveCollateral, xe as approveCollateralMutationOptions, Ka as balanceHistoryFilterToTypes, Ea as buildConditionalOrderLeg, Oa as buildConditionalOrderMessage, Sr as buildQuoteMetadata, Mr as buildSignedOperation, Xt as buildSubscribeMessage, ka as buildTpSlDeleteMessage, Di as calculateClosePlatformFee, pi as calculateClosePrice, ma as calculateLiquidationPrice, Br as calculateMargin, Oi as calculateOpenPlatformFee, _a as calculateQuoteLeverage, va as calculateQuotePnl, ya as calculateQuoteUpnl, Vr as calculateTradeParams, hn as checkNotionalCap, mi as clampClosePrecision, $t as classifyNotification, Ei as classifyQuoteNotificationAction, Ki as closeTypeToEventTypes, Hr as computePlatformFee, nt as createClassicWithdrawPart, l as createConfig, m as createSubAccounts, I as createSubAccountsMutationOptions, Re as deallocate, it as deallocateMutationOptions, g as deleteSubAccount, L as deleteSubAccountMutationOptions, v as depositAndAllocateForAccount, R as depositAndAllocateForAccountMutationOptions, b as depositForAccount, z as depositForAccountMutationOptions, S as editAccountName, B as editAccountNameMutationOptions, Cr as encodeAddMarginToNextVA, li as encodeRequestToClosePosition, wr as encodeSendQuoteWithAffiliateAndData, qi as eventTypeToCloseType, Ji as eventTypeToQuoteStatus, V as filterQueryOptions, Be as finalizeWithdrawRequest, at as finalizeWithdrawRequestMutationOptions, ki as fingerprintQuote, Nr as formatSignedOperationPayload, Pr as generateSalt, Aa as generateTpSlSalt, C as getAccountBalanceInfo, H as getAccountBalanceInfoQueryKey, U as getAccountBalanceInfoQueryOptions, w as getAccountBalanceOf, W as getAccountBalanceOfQueryKey, G as getAccountBalanceOfQueryOptions, Ja as getBalanceHistory, Ya as getBalanceHistoryQueryKey, Xa as getBalanceHistoryQueryOptions, o as getChainConfig, ye as getCollateralAllowance, Se as getCollateralAllowanceQueryKey, Ce as getCollateralAllowanceQueryOptions, be as getCollateralBalance, we as getCollateralBalanceQueryKey, Te as getCollateralBalanceQueryOptions, zn as getDeallocateUpnlSig, Bn as getDeallocateUpnlSigQueryKey, Vn as getDeallocateUpnlSigQueryOptions, De as getDelegationExpiry, je as getDelegationExpiryQueryKey, Me as getDelegationExpiryQueryOptions, Ft as getEnigmaPriceServiceHealth, It as getEnigmaPriceServiceHealthQueryKey, Lt as getEnigmaPriceServiceHealthQueryOptions, Rt as getEnigmaPriceServiceMetadata, zt as getEnigmaPriceServiceMetadataQueryKey, Bt as getEnigmaPriceServiceMetadataQueryOptions, Vt as getEnigmaPriceServicePricesByAddresses, Ht as getEnigmaPriceServicePricesByAddressesQueryKey, Ut as getEnigmaPriceServicePricesByAddressesQueryOptions, Wt as getEnigmaPriceServicePricesByNames, Gt as getEnigmaPriceServicePricesByNamesQueryKey, Kt as getEnigmaPriceServicePricesByNamesQueryOptions, qt as getEnigmaPriceServiceSymbolsInfo, Jt as getEnigmaPriceServiceSymbolsInfoQueryKey, Yt as getEnigmaPriceServiceSymbolsInfoQueryOptions, Tr as getFakeSendQuoteMuonSignature, Ve as getFeeForUser, ot as getFeeForUserQueryKey, st as getFeeForUserQueryOptions, oi as getInstantCloses, si as getInstantClosesQueryKey, ci as getInstantClosesQueryOptions, Ar as getInstantLayerEip712Domain, hr as getInstantOpenQuoteId, gr as getInstantOpenQuoteIdQueryKey, _r as getInstantOpenQuoteIdQueryOptions, vr as getInstantOpens, yr as getInstantOpensQueryKey, br as getInstantOpensQueryOptions, Oe as getIsDelegationActive, Ne as getIsDelegationActiveQueryKey, Pe as getIsDelegationActiveQueryOptions, He as getLastWithdrawRequestId, ct as getLastWithdrawRequestIdQueryKey, lt as getLastWithdrawRequestIdQueryOptions, fn as getLockedParams, pn as getLockedParamsQueryKey, mn as getLockedParamsQueryOptions, Ur as getMarketOrderDeadline, ln as getMarkets, un as getMarketsQueryKey, dn as getMarketsQueryOptions, Hn as getMuonPartyAOverview, Un as getMuonPartyAOverviewQueryKey, Wn as getMuonPartyAOverviewQueryOptions, Gn as getMuonPrice, Kn as getMuonPriceQueryKey, qn as getMuonPriceQueryOptions, Jn as getMuonPriceRange, Yn as getMuonPriceRangeQueryKey, Xn as getMuonPriceRangeQueryOptions, Zn as getMuonSettleUpnl, Qn as getMuonSettleUpnlQueryKey, $n as getMuonSettleUpnlQueryOptions, er as getMuonUpnl, rr as getMuonUpnlA, ir as getMuonUpnlAQueryKey, ar as getMuonUpnlAQueryOptions, or as getMuonUpnlAWithSymbolPrice, sr as getMuonUpnlAWithSymbolPriceQueryKey, cr as getMuonUpnlAWithSymbolPriceQueryOptions, lr as getMuonUpnlB, ur as getMuonUpnlBQueryKey, dr as getMuonUpnlBQueryOptions, tr as getMuonUpnlQueryKey, nr as getMuonUpnlQueryOptions, fr as getMuonUpnlWithSymbolPrice, pr as getMuonUpnlWithSymbolPriceQueryKey, mr as getMuonUpnlWithSymbolPriceQueryOptions, _n as getNotionalCapAll, Sn as getNotionalCapAllQueryKey, Cn as getNotionalCapAllQueryOptions, vn as getNotionalCapBySymbolId, bn as getNotionalCapBySymbolIdQueryKey, xn as getNotionalCapBySymbolIdQueryOptions, Ue as getOnchainContractMarkets, ut as getOnchainContractMarketsQueryKey, dt as getOnchainContractMarketsQueryOptions, yn as getOpenInterestBySymbolId, wn as getOpenInterestBySymbolIdQueryKey, Tn as getOpenInterestBySymbolIdQueryOptions, We as getPartyAOpenPositions, ft as getPartyAOpenPositionsQueryKey, pt as getPartyAOpenPositionsQueryOptions, Ge as getPartyAPendingQuotes, mt as getPartyAPendingQuotesQueryKey, ht as getPartyAPendingQuotesQueryOptions, Ke as getPendingWithdrawRequests, gt as getPendingWithdrawRequestsQueryKey, _t as getPendingWithdrawRequestsQueryOptions, M as getPredictedNextVirtualAccount, oe as getPredictedNextVirtualAccountQueryKey, se as getPredictedNextVirtualAccountQueryOptions, ji as getQuerySubgraphQueryKey, qe as getQuote, Fi as getQuoteEventsByType, Ii as getQuoteEventsByTypeQueryKey, Li as getQuoteEventsByTypeQueryOptions, Vi as getQuoteFunding, Hi as getQuoteFundingQueryKey, Ui as getQuoteFundingQueryOptions, Xi as getQuoteHistory, Zi as getQuoteHistoryQueryKey, Qi as getQuoteHistoryQueryOptions, vt as getQuoteQueryKey, yt as getQuoteQueryOptions, Ca as getQuoteTpSl, wa as getQuoteTpSlQueryKey, Ta as getQuoteTpSlQueryOptions, En as getSolverErrorCodes, Dn as getSolverErrorCodesQueryKey, On as getSolverErrorCodesQueryOptions, T as getSubAccount, K as getSubAccountQueryKey, q as getSubAccountQueryOptions, aa as getSubAccountQuotes, oa as getSubAccountQuotesQueryKey, sa as getSubAccountQuotesQueryOptions, E as getSubAccountVirtualNonce, J as getSubAccountVirtualNonceQueryKey, Y as getSubAccountVirtualNonceQueryOptions, D as getSubAccountsCountOfUser, X as getSubAccountsCountOfUserQueryKey, Z as getSubAccountsCountOfUserQueryOptions, ba as getTpSlConfig, xa as getTpSlConfigQueryKey, Sa as getTpSlConfigQueryOptions, Ma as getTpSlSigningSpec, Ra as getTpSlSigningSpecQueryKey, za as getTpSlSigningSpecQueryOptions, Qa as getTransferHistory, $a as getTransferHistoryQueryKey, eo as getTransferHistoryQueryOptions, O as getUserSubAccounts, k as getUserSubAccountsAddresses, ee as getUserSubAccountsAddressesQueryKey, te as getUserSubAccountsAddressesQueryOptions, Q as getUserSubAccountsQueryKey, $ as getUserSubAccountsQueryOptions, A as getVirtualAccount, ne as getVirtualAccountQueryKey, re as getVirtualAccountQueryOptions, j as getVirtualAccountsAddressesOfSubAccount, ie as getVirtualAccountsAddressesOfSubAccountQueryKey, ae as getVirtualAccountsAddressesOfSubAccountQueryOptions, Je as getWithdrawRequests, bt as getWithdrawRequestsQueryKey, xt as getWithdrawRequestsQueryOptions, Ye as getWithdrawableTime, St as getWithdrawableTimeQueryKey, Ct as getWithdrawableTimeQueryOptions, Ae as grantDelegation, Fe as grantDelegationMutationOptions, pa as groupQuotes, Xe as initiateWithdraw, wt as initiateWithdrawMutationOptions, di as instantClose, gi as instantCloseAuto, _i as instantCloseAutoMutationOptions, yi as instantCloseBulk, xi as instantCloseBulkAuto, Si as instantCloseBulkAutoMutationOptions, bi as instantCloseBulkMutationOptions, fi as instantCloseMutationOptions, t as instantLayerAbi, Gr as instantOpen, Qr as instantOpenAuto, $r as instantOpenAutoMutationOptions, Kr as instantOpenMutationOptions, ca as isActivePosition, s as isChainSupported, la as isPendingOrder, Rr as isolationTypeForSide, $i as lifecycleFromQuoteStatus, c as listSupportedChains, en as normalizeNotification, tn as parseNotificationFrame, rn as parsePriceFrame, Va as parseTpSlFrame, ua as partitionQuotes, hi as prepareInstantCloseParams, Zr as prepareInstantOpenParams, Pa as priceSlippageCalculation, Ai as querySubgraph, Mi as querySubgraphQueryOptions, ra as reconcileQuotes, P as removeMargin, ce as removeMarginMutationOptions, Ze as requestCancelWithdraw, Tt as requestCancelWithdrawMutationOptions, Yr as resolveFeeRates, Xr as resolveLockedParams, qr as resolveMarkPrice, Jr as resolveMarket, ia as resolveQuoteAccounts, fa as resolveQuoteGroupingStrategy, on as searchNotifications, sn as searchNotificationsQueryKey, cn as searchNotificationsQueryOptions, ui as sendInstantClose, Er as sendInstantOpen, Ia as setQuoteTpSl, La as setQuoteTpSlMutationOptions, ha as shouldAccelerateOnchainReads, ga as shouldAccelerateQuotePolling, u as shouldSimulateBeforeWrite, Fr as signAndFormatInstantOperation, jr as signSignedOperation, Fa as signTpSlRequest, d as simulateAddMargin, le as simulateAddMarginMutationOptions, Qe as simulateAllocate, Et as simulateAllocateMutationOptions, _e as simulateApproveCollateral, Ee as simulateApproveCollateralMutationOptions, p as simulateCreateSubAccounts, ue as simulateCreateSubAccountsMutationOptions, $e as simulateDeallocate, Dt as simulateDeallocateMutationOptions, h as simulateDeleteSubAccount, de as simulateDeleteSubAccountMutationOptions, _ as simulateDepositAndAllocateForAccount, fe as simulateDepositAndAllocateForAccountMutationOptions, y as simulateDepositForAccount, pe as simulateDepositForAccountMutationOptions, x as simulateEditAccountName, me as simulateEditAccountNameMutationOptions, ze as simulateFinalizeWithdrawRequest, Ot as simulateFinalizeWithdrawRequestMutationOptions, ke as simulateGrantDelegation, Ie as simulateGrantDelegationMutationOptions, et as simulateInitiateWithdraw, kt as simulateInitiateWithdrawMutationOptions, N as simulateRemoveMargin, he as simulateRemoveMarginMutationOptions, tt as simulateRequestCancelWithdraw, At as simulateRequestCancelWithdrawMutationOptions, n as symmioAbi, qa as toBalanceHistoryRow, gn as toMarketNotionalCap, ai as toPendingInstantClose, Ni as toQuoteEventRow, Bi as toQuoteFundingRow, Yi as toQuoteHistoryRow, ja as toSignableTpSlMessage, Za as toTransferRow, ea as toUnifiedQuoteFromInstantClose, ta as toUnifiedQuoteFromInstantOpen, na as toUnifiedQuoteFromOnchain, Wr as toWeiBigInt, Ci as validateInstantCloseAgainstMarket, ei as validateInstantOpenAgainstMarket, Ba as validateTpSl, an as watchEnigmaPrices, nn as watchNotifications, Ha as watchTpSlNotifications };
138
+ import { toEstimatedPrice as fn } from "./solvers/estimated-price/to-estimated-price.js";
139
+ import { getEstimatedPrice as pn } from "./solvers/estimated-price/get-estimated-price.js";
140
+ import { calculatePriceImpact as mn } from "./solvers/estimated-price/price-impact.js";
141
+ import { getEstimatedPriceQueryKey as hn, getEstimatedPriceQueryOptions as gn } from "./solvers/estimated-price/query.js";
142
+ import { toMarketFundingInfo as _n } from "./solvers/funding-info/to-funding-info.js";
143
+ import { getFundingInfo as vn } from "./solvers/funding-info/get-funding-info.js";
144
+ import { projectFundingRate as yn } from "./solvers/funding-info/project-funding-rate.js";
145
+ import { getFundingInfoQueryKey as bn, getFundingInfoQueryOptions as xn } from "./solvers/funding-info/query.js";
146
+ import { toMarketInfo as Sn } from "./solvers/market-info/to-market-info.js";
147
+ import { getMarketInfo as Cn } from "./solvers/market-info/get-market-info.js";
148
+ import { getMarketInfoQueryKey as wn, getMarketInfoQueryOptions as Tn } from "./solvers/market-info/query.js";
149
+ import { getLockedParams as En } from "./solvers/locked-params/get-locked-params.js";
150
+ import { getLockedParamsQueryKey as Dn, getLockedParamsQueryOptions as On } from "./solvers/locked-params/query.js";
151
+ import { checkNotionalCap as kn } from "./solvers/notional-cap/check-notional-cap.js";
152
+ import { toMarketNotionalCap as An } from "./solvers/notional-cap/to-market-notional-cap.js";
153
+ import { getNotionalCapAll as jn } from "./solvers/notional-cap/get-notional-cap-all.js";
154
+ import { getNotionalCapBySymbolId as Mn } from "./solvers/notional-cap/get-notional-cap-by-symbol-id.js";
155
+ import { getOpenInterestBySymbolId as Nn } from "./solvers/notional-cap/get-open-interest-by-symbol-id.js";
156
+ import { getNotionalCapBySymbolIdQueryKey as Pn, getNotionalCapBySymbolIdQueryOptions as Fn } from "./solvers/notional-cap/query.js";
157
+ import { getNotionalCapAllQueryKey as In, getNotionalCapAllQueryOptions as Ln } from "./solvers/notional-cap/query-all.js";
158
+ import { getOpenInterestBySymbolIdQueryKey as Rn, getOpenInterestBySymbolIdQueryOptions as zn } from "./solvers/notional-cap/query-open-interest.js";
159
+ import { getSolverErrorCodes as Bn } from "./solvers/error-codes/get-solver-error-codes.js";
160
+ import { getSolverErrorCodesQueryKey as Vn, getSolverErrorCodesQueryOptions as Hn } from "./solvers/error-codes/query.js";
161
+ import { MUON_APP as Un, MUON_METHOD_PARTY_A_OVERVIEW as Wn, MUON_METHOD_PRICE as Gn, MUON_METHOD_PRICE_RANGE as Kn, MUON_METHOD_SETTLE_UPNL as qn, MUON_METHOD_UPNL_A as Jn, MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE as Yn, MUON_METHOD_UPNL_B as Xn, MUON_METHOD_UPNL_PAIR as Zn, MUON_METHOD_UPNL_WITH_SYMBOL_PRICE as Qn } from "./muon/types.js";
162
+ import { getDeallocateUpnlSig as $n } from "./muon/deallocate-upnl-sig/get-deallocate-upnl-sig.js";
163
+ import { getDeallocateUpnlSigQueryKey as er, getDeallocateUpnlSigQueryOptions as tr } from "./muon/deallocate-upnl-sig/query.js";
164
+ import { getMuonPartyAOverview as nr } from "./muon/party-a-overview/get-muon-party-a-overview.js";
165
+ import { getMuonPartyAOverviewQueryKey as rr, getMuonPartyAOverviewQueryOptions as ir } from "./muon/party-a-overview/query.js";
166
+ import { getMuonPrice as ar } from "./muon/price/get-muon-price.js";
167
+ import { getMuonPriceQueryKey as or, getMuonPriceQueryOptions as sr } from "./muon/price/query.js";
168
+ import { getMuonPriceRange as cr } from "./muon/price-range/get-muon-price-range.js";
169
+ import { getMuonPriceRangeQueryKey as lr, getMuonPriceRangeQueryOptions as ur } from "./muon/price-range/query.js";
170
+ import { getMuonSettleUpnl as dr } from "./muon/settle-upnl/get-muon-settle-upnl.js";
171
+ import { getMuonSettleUpnlQueryKey as fr, getMuonSettleUpnlQueryOptions as pr } from "./muon/settle-upnl/query.js";
172
+ import { getMuonUpnl as mr } from "./muon/upnl/get-muon-upnl.js";
173
+ import { getMuonUpnlQueryKey as hr, getMuonUpnlQueryOptions as gr } from "./muon/upnl/query.js";
174
+ import { getMuonUpnlA as _r } from "./muon/upnl-a/get-muon-upnl-a.js";
175
+ import { getMuonUpnlAQueryKey as vr, getMuonUpnlAQueryOptions as yr } from "./muon/upnl-a/query.js";
176
+ import { getMuonUpnlAWithSymbolPrice as br } from "./muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js";
177
+ import { getMuonUpnlAWithSymbolPriceQueryKey as xr, getMuonUpnlAWithSymbolPriceQueryOptions as Sr } from "./muon/upnl-a-with-symbol-price/query.js";
178
+ import { getMuonUpnlB as Cr } from "./muon/upnl-b/get-muon-upnl-b.js";
179
+ import { getMuonUpnlBQueryKey as wr, getMuonUpnlBQueryOptions as Tr } from "./muon/upnl-b/query.js";
180
+ import { getMuonUpnlWithSymbolPrice as Er } from "./muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js";
181
+ import { getMuonUpnlWithSymbolPriceQueryKey as Dr, getMuonUpnlWithSymbolPriceQueryOptions as Or } from "./muon/upnl-with-symbol-price/query.js";
182
+ import { getInstantOpenQuoteId as kr } from "./solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.js";
183
+ import { getInstantOpenQuoteIdQueryKey as Ar, getInstantOpenQuoteIdQueryOptions as jr } from "./solvers/instant-open/get-instant-open-quote-id/query.js";
184
+ import { getInstantOpens as Mr } from "./solvers/instant-open/get-instant-opens/get-instant-opens.js";
185
+ import { getInstantOpensQueryKey as Nr, getInstantOpensQueryOptions as Pr } from "./solvers/instant-open/get-instant-opens/query.js";
186
+ import { ZERO_UPNL_SIG as Fr, buildQuoteMetadata as Ir, encodeAddMarginToNextVA as Lr, encodeSendQuoteWithAffiliateAndData as Rr, getFakeSendQuoteMuonSignature as zr } from "./solvers/instant-open/shared/calldata.js";
187
+ import { sendInstantOpen as Br } from "./solvers/instant-open/shared/hedger-api.js";
188
+ import { INSTANT_LAYER_EIP712_DOMAIN_NAME as Vr, INSTANT_LAYER_EIP712_DOMAIN_VERSION as Hr, SIGNED_OPERATION_TYPES as Ur, getInstantLayerEip712Domain as Wr, signSignedOperation as Gr } from "./solvers/instant-open/shared/eip712.js";
189
+ import { buildSignedOperation as Kr, formatSignedOperationPayload as qr, generateSalt as Jr, signAndFormatInstantOperation as Yr } from "./solvers/instant-open/shared/operations.js";
190
+ import { ORDER_TYPE_MARKET as Xr, VIRTUAL_ACCOUNT_ISOLATION_TYPE as Zr, isolationTypeForSide as Qr } from "./solvers/instant-open/shared/types.js";
191
+ import { MARKET_ORDER_DEADLINE_SECONDS as $r, calculateAvailableInstantOpenMargin as ei, calculateMargin as ti, calculateTradeParams as ni, computePlatformFee as ri, getMarketOrderDeadline as ii, toWeiBigInt as ai } from "./solvers/instant-open/shared/trade-math.js";
192
+ import { instantOpen as oi } from "./solvers/instant-open/instant-open/instant-open.js";
193
+ import { instantOpenMutationOptions as si } from "./solvers/instant-open/instant-open/query.js";
194
+ import { resolveMarkPrice as ci } from "./solvers/shared/resolvers/resolve-mark-price.js";
195
+ import { resolveMarket as li } from "./solvers/shared/resolvers/resolve-market.js";
196
+ import { resolveFeeRates as ui } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.js";
197
+ import { resolveLockedParams as di } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.js";
198
+ import { prepareInstantOpenParams as fi } from "./solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js";
199
+ import { instantOpenAuto as pi } from "./solvers/instant-open/instant-open-auto/instant-open-auto.js";
200
+ import { instantOpenAutoMutationOptions as mi } from "./solvers/instant-open/instant-open-auto/query.js";
201
+ import { validateInstantOpenAgainstMarket as hi } from "./solvers/instant-open/shared/quote-constraints.js";
202
+ import { ADD_MARGIN_TO_NEXT_VA_SELECTOR as gi, INSTANT_TRADE_REQUIRED_SELECTORS as _i, REQUEST_TO_CLOSE_POSITION_SELECTOR as vi, SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR as yi } from "./solvers/instant-open/shared/selectors.js";
203
+ import { toPendingInstantClose as bi } from "./solvers/instant-close/get-instant-closes/to-pending-instant-close.js";
204
+ import { getInstantCloses as xi } from "./solvers/instant-close/get-instant-closes/get-instant-closes.js";
205
+ import { getInstantClosesQueryKey as Si, getInstantClosesQueryOptions as Ci } from "./solvers/instant-close/get-instant-closes/query.js";
206
+ import { encodeRequestToClosePosition as wi } from "./solvers/instant-close/shared/calldata.js";
207
+ import { sendInstantClose as Ti } from "./solvers/instant-close/shared/hedger-api.js";
208
+ import { instantClose as Ei } from "./solvers/instant-close/instant-close/instant-close.js";
209
+ import { instantCloseMutationOptions as Di } from "./solvers/instant-close/instant-close/query.js";
210
+ import { calculateClosePrice as Oi, clampClosePrecision as ki } from "./solvers/instant-close/shared/close-math.js";
211
+ import { prepareInstantCloseParams as Ai } from "./solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.js";
212
+ import { instantCloseAuto as ji } from "./solvers/instant-close/instant-close-auto/instant-close-auto.js";
213
+ import { instantCloseAutoMutationOptions as Mi } from "./solvers/instant-close/instant-close-auto/query.js";
214
+ import { MAX_INSTANT_CLOSE_BULK_ORDERS as Ni, instantCloseBulk as Pi } from "./solvers/instant-close/instant-close-bulk/instant-close-bulk.js";
215
+ import { instantCloseBulkMutationOptions as Fi } from "./solvers/instant-close/instant-close-bulk/query.js";
216
+ import { instantCloseBulkAuto as Ii } from "./solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.js";
217
+ import { instantCloseBulkAutoMutationOptions as Li } from "./solvers/instant-close/instant-close-bulk-auto/query.js";
218
+ import { validateInstantCloseAgainstMarket as Ri } from "./solvers/instant-close/shared/quote-constraints.js";
219
+ import { QuoteLifecycle as zi } from "./quotes/unified-quote.js";
220
+ import { applyNotificationToQuotes as Bi, classifyQuoteNotificationAction as Vi } from "./quotes/apply-notification.js";
221
+ import { calculateClosePlatformFee as Hi } from "./quotes/fees/calculate-close-platform-fee.js";
222
+ import { calculateOpenPlatformFee as Ui } from "./quotes/fees/calculate-open-platform-fee.js";
223
+ import { fingerprintQuote as Wi } from "./quotes/fingerprint.js";
224
+ import { querySubgraph as Gi } from "./symmio-subgraph/query-subgraph/query-subgraph.js";
225
+ import { getQuerySubgraphQueryKey as Ki, querySubgraphQueryOptions as qi } from "./symmio-subgraph/query-subgraph/query.js";
226
+ import { toQuoteEventRow as Ji } from "./quotes/get-quote-events-by-type/to-quote-event-row.js";
227
+ import { DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE as Yi, getQuoteEventsByType as Xi } from "./quotes/get-quote-events-by-type/get-quote-events-by-type.js";
228
+ import { getQuoteEventsByTypeQueryKey as Zi, getQuoteEventsByTypeQueryOptions as Qi } from "./quotes/get-quote-events-by-type/query.js";
229
+ import { PRICE_HISTORY_EVENT_TYPES as $i, QuoteEventType as ea } from "./quotes/get-quote-events-by-type/types.js";
230
+ import { toQuoteFundingRow as ta } from "./quotes/get-quote-funding/to-funding-row.js";
231
+ import { getQuoteFunding as na } from "./quotes/get-quote-funding/get-quote-funding.js";
232
+ import { getQuoteFundingQueryKey as ra, getQuoteFundingQueryOptions as ia } from "./quotes/get-quote-funding/query.js";
233
+ import { QuoteCloseEventType as aa, QuoteCloseType as oa } from "./quotes/get-quote-history/types.js";
234
+ import { closeTypeToEventTypes as sa, eventTypeToCloseType as ca, eventTypeToQuoteStatus as la } from "./quotes/get-quote-history/close-type.js";
235
+ import { toQuoteHistoryRow as ua } from "./quotes/get-quote-history/to-history-row.js";
236
+ import { getQuoteHistory as da } from "./quotes/get-quote-history/get-quote-history.js";
237
+ import { getQuoteHistoryQueryKey as fa, getQuoteHistoryQueryOptions as pa } from "./quotes/get-quote-history/query.js";
238
+ import { lifecycleFromQuoteStatus as ma, toUnifiedQuoteFromInstantClose as ha, toUnifiedQuoteFromInstantOpen as ga, toUnifiedQuoteFromOnchain as _a } from "./quotes/to-unified-quote.js";
239
+ import { reconcileQuotes as va } from "./quotes/reconcile-quotes.js";
240
+ import { resolveQuoteAccounts as ya } from "./quotes/resolve-quote-accounts.js";
241
+ import { getSubAccountQuotes as ba } from "./quotes/get-sub-account-quotes/get-sub-account-quotes.js";
242
+ import { getSubAccountQuotesQueryKey as xa, getSubAccountQuotesQueryOptions as Sa } from "./quotes/get-sub-account-quotes/query.js";
243
+ import { isActivePosition as Ca, isPendingOrder as wa, partitionQuotes as Ta } from "./quotes/grouping/partition-quotes.js";
244
+ import { aggregateGroupMetrics as Ea } from "./quotes/grouping/aggregate-metrics.js";
245
+ import { resolveQuoteGroupingStrategy as Da } from "./quotes/grouping/group-strategy.js";
246
+ import { groupQuotes as Oa } from "./quotes/grouping/group-quotes.js";
247
+ import { calculateLiquidationPrice as ka } from "./quotes/liquidation/calculate-liquidation-price.js";
248
+ import { shouldAccelerateOnchainReads as Aa, shouldAccelerateQuotePolling as ja } from "./quotes/should-accelerate.js";
249
+ import { calculateQuoteLeverage as Ma } from "./quotes/upnl/calculate-quote-leverage.js";
250
+ import { calculateQuotePnl as Na } from "./quotes/upnl/calculate-quote-pnl.js";
251
+ import { calculateQuoteUpnl as Pa } from "./quotes/upnl/calculate-quote-upnl.js";
252
+ import { getTpSlConfig as Fa } from "./tpsl/config/get-tpsl-config.js";
253
+ import { getTpSlConfigQueryKey as Ia, getTpSlConfigQueryOptions as La } from "./tpsl/config/query.js";
254
+ import { ZERO_LEG as Ra, buildConditionalOrderMessage as za, buildTpSlDeleteMessage as Ba, generateTpSlSalt as Va, toSignableTpSlMessage as Ha } from "./tpsl/set-quote-tpsl/build-conditional-order-message.js";
255
+ import { signTpSlRequest as Ua } from "./tpsl/set-quote-tpsl/sign-tpsl-request.js";
256
+ import { getTpSlDeleteSigningSpec as Wa } from "./tpsl/signing-spec/get-tpsl-delete-signing-spec.js";
257
+ import { deleteQuoteTpSl as Ga } from "./tpsl/delete-quote-tpsl/delete-quote-tpsl.js";
258
+ import { deleteQuoteTpSlMutationOptions as Ka } from "./tpsl/delete-quote-tpsl/query.js";
259
+ import { getQuoteTpSl as qa } from "./tpsl/get-quote-tpsl/get-quote-tpsl.js";
260
+ import { getQuoteTpSlQueryKey as Ja, getQuoteTpSlQueryOptions as Ya } from "./tpsl/get-quote-tpsl/query.js";
261
+ import { buildConditionalOrderLeg as Xa } from "./tpsl/set-quote-tpsl/build-conditional-order-leg.js";
262
+ import { getTpSlSigningSpec as Za } from "./tpsl/signing-spec/get-tpsl-signing-spec.js";
263
+ import { DEFAULT_TPSL_SLIPPAGE_LOWCAPS as Qa, priceSlippageCalculation as $a } from "./tpsl/slippage.js";
264
+ import { setQuoteTpSl as eo } from "./tpsl/set-quote-tpsl/set-quote-tpsl.js";
265
+ import { setQuoteTpSlMutationOptions as to } from "./tpsl/set-quote-tpsl/query.js";
266
+ import { getTpSlDeleteSigningSpecQueryKey as no, getTpSlDeleteSigningSpecQueryOptions as ro } from "./tpsl/signing-spec/delete-query.js";
267
+ import { getTpSlSigningSpecQueryKey as io, getTpSlSigningSpecQueryOptions as ao } from "./tpsl/signing-spec/query.js";
268
+ import { validateTpSl as oo } from "./tpsl/validate-tpsl.js";
269
+ import { parseTpSlFrame as so } from "./websocket/tpsl/parse-tpsl-frame.js";
270
+ import { watchTpSlNotifications as co } from "./websocket/tpsl/watch-tpsl-notifications.js";
271
+ import { BalanceChangeType as lo, BalanceHistoryFilter as uo, MarginTransferType as fo } from "./balance-history/get-balance-history/types.js";
272
+ import { balanceHistoryFilterToTypes as po } from "./balance-history/get-balance-history/balance-history-filter.js";
273
+ import { toBalanceHistoryRow as mo } from "./balance-history/get-balance-history/to-balance-history-row.js";
274
+ import { getBalanceHistory as ho } from "./balance-history/get-balance-history/get-balance-history.js";
275
+ import { getBalanceHistoryQueryKey as go, getBalanceHistoryQueryOptions as _o } from "./balance-history/get-balance-history/query.js";
276
+ import { toTransferRow as vo } from "./transfers/get-transfer-history/to-transfer-row.js";
277
+ import { getTransferHistory as yo } from "./transfers/get-transfer-history/get-transfer-history.js";
278
+ import { getTransferHistoryQueryKey as bo, getTransferHistoryQueryOptions as xo } from "./transfers/get-transfer-history/query.js";
279
+ export { gi as ADD_MARGIN_TO_NEXT_VA_SELECTOR, Zt as ActionStatus, lo as BalanceChangeType, uo as BalanceHistoryFilter, Yi as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, Qa as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, Vr as INSTANT_LAYER_EIP712_DOMAIN_NAME, Hr as INSTANT_LAYER_EIP712_DOMAIN_VERSION, _i as INSTANT_TRADE_REQUIRED_SELECTORS, $r as MARKET_ORDER_DEADLINE_SECONDS, Ni as MAX_INSTANT_CLOSE_BULK_ORDERS, Un as MUON_APP, Wn as MUON_METHOD_PARTY_A_OVERVIEW, Gn as MUON_METHOD_PRICE, Kn as MUON_METHOD_PRICE_RANGE, qn as MUON_METHOD_SETTLE_UPNL, Jn as MUON_METHOD_UPNL_A, Yn as MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE, Xn as MUON_METHOD_UPNL_B, Zn as MUON_METHOD_UPNL_PAIR, Qn as MUON_METHOD_UPNL_WITH_SYMBOL_PRICE, fo as MarginTransferType, Qt as NotificationType, Xr as ORDER_TYPE_MARKET, jt as OrderType, $i as PRICE_HISTORY_EVENT_TYPES, Mt as PositionType, aa as QuoteCloseEventType, oa as QuoteCloseType, ea as QuoteEventType, zi as QuoteLifecycle, Nt as QuoteStatus, vi as REQUEST_TO_CLOSE_POSITION_SELECTOR, yi as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, Ur as SIGNED_OPERATION_TYPES, ge as SubAccountIsolationType, r as SymmApiError, i as SymmError, a as SymmioSupportedChainId, Zr as VIRTUAL_ACCOUNT_ISOLATION_TYPE, Pt as WithdrawStatus, Ra as ZERO_LEG, Fr as ZERO_UPNL_SIG, e as accountLayerAbi, f as addMargin, F as addMarginMutationOptions, Ea as aggregateGroupMetrics, Le as allocate, rt as allocateMutationOptions, Bi as applyNotificationToQuotes, ve as approveCollateral, xe as approveCollateralMutationOptions, po as balanceHistoryFilterToTypes, Xa as buildConditionalOrderLeg, za as buildConditionalOrderMessage, Ir as buildQuoteMetadata, Kr as buildSignedOperation, Xt as buildSubscribeMessage, Ba as buildTpSlDeleteMessage, ei as calculateAvailableInstantOpenMargin, Hi as calculateClosePlatformFee, Oi as calculateClosePrice, ka as calculateLiquidationPrice, ti as calculateMargin, Ui as calculateOpenPlatformFee, mn as calculatePriceImpact, Ma as calculateQuoteLeverage, Na as calculateQuotePnl, Pa as calculateQuoteUpnl, ni as calculateTradeParams, kn as checkNotionalCap, ki as clampClosePrecision, $t as classifyNotification, Vi as classifyQuoteNotificationAction, sa as closeTypeToEventTypes, ri as computePlatformFee, nt as createClassicWithdrawPart, l as createConfig, m as createSubAccounts, I as createSubAccountsMutationOptions, Re as deallocate, it as deallocateMutationOptions, Ga as deleteQuoteTpSl, Ka as deleteQuoteTpSlMutationOptions, g as deleteSubAccount, L as deleteSubAccountMutationOptions, v as depositAndAllocateForAccount, R as depositAndAllocateForAccountMutationOptions, b as depositForAccount, z as depositForAccountMutationOptions, S as editAccountName, B as editAccountNameMutationOptions, Lr as encodeAddMarginToNextVA, wi as encodeRequestToClosePosition, Rr as encodeSendQuoteWithAffiliateAndData, ca as eventTypeToCloseType, la as eventTypeToQuoteStatus, V as filterQueryOptions, Be as finalizeWithdrawRequest, at as finalizeWithdrawRequestMutationOptions, Wi as fingerprintQuote, qr as formatSignedOperationPayload, Jr as generateSalt, Va as generateTpSlSalt, C as getAccountBalanceInfo, H as getAccountBalanceInfoQueryKey, U as getAccountBalanceInfoQueryOptions, w as getAccountBalanceOf, W as getAccountBalanceOfQueryKey, G as getAccountBalanceOfQueryOptions, ho as getBalanceHistory, go as getBalanceHistoryQueryKey, _o as getBalanceHistoryQueryOptions, o as getChainConfig, ye as getCollateralAllowance, Se as getCollateralAllowanceQueryKey, Ce as getCollateralAllowanceQueryOptions, be as getCollateralBalance, we as getCollateralBalanceQueryKey, Te as getCollateralBalanceQueryOptions, $n as getDeallocateUpnlSig, er as getDeallocateUpnlSigQueryKey, tr as getDeallocateUpnlSigQueryOptions, De as getDelegationExpiry, je as getDelegationExpiryQueryKey, Me as getDelegationExpiryQueryOptions, Ft as getEnigmaPriceServiceHealth, It as getEnigmaPriceServiceHealthQueryKey, Lt as getEnigmaPriceServiceHealthQueryOptions, Rt as getEnigmaPriceServiceMetadata, zt as getEnigmaPriceServiceMetadataQueryKey, Bt as getEnigmaPriceServiceMetadataQueryOptions, Vt as getEnigmaPriceServicePricesByAddresses, Ht as getEnigmaPriceServicePricesByAddressesQueryKey, Ut as getEnigmaPriceServicePricesByAddressesQueryOptions, Wt as getEnigmaPriceServicePricesByNames, Gt as getEnigmaPriceServicePricesByNamesQueryKey, Kt as getEnigmaPriceServicePricesByNamesQueryOptions, qt as getEnigmaPriceServiceSymbolsInfo, Jt as getEnigmaPriceServiceSymbolsInfoQueryKey, Yt as getEnigmaPriceServiceSymbolsInfoQueryOptions, pn as getEstimatedPrice, hn as getEstimatedPriceQueryKey, gn as getEstimatedPriceQueryOptions, zr as getFakeSendQuoteMuonSignature, Ve as getFeeForUser, ot as getFeeForUserQueryKey, st as getFeeForUserQueryOptions, vn as getFundingInfo, bn as getFundingInfoQueryKey, xn as getFundingInfoQueryOptions, xi as getInstantCloses, Si as getInstantClosesQueryKey, Ci as getInstantClosesQueryOptions, Wr as getInstantLayerEip712Domain, kr as getInstantOpenQuoteId, Ar as getInstantOpenQuoteIdQueryKey, jr as getInstantOpenQuoteIdQueryOptions, Mr as getInstantOpens, Nr as getInstantOpensQueryKey, Pr as getInstantOpensQueryOptions, Oe as getIsDelegationActive, Ne as getIsDelegationActiveQueryKey, Pe as getIsDelegationActiveQueryOptions, He as getLastWithdrawRequestId, ct as getLastWithdrawRequestIdQueryKey, lt as getLastWithdrawRequestIdQueryOptions, En as getLockedParams, Dn as getLockedParamsQueryKey, On as getLockedParamsQueryOptions, Cn as getMarketInfo, wn as getMarketInfoQueryKey, Tn as getMarketInfoQueryOptions, ii as getMarketOrderDeadline, ln as getMarkets, un as getMarketsQueryKey, dn as getMarketsQueryOptions, nr as getMuonPartyAOverview, rr as getMuonPartyAOverviewQueryKey, ir as getMuonPartyAOverviewQueryOptions, ar as getMuonPrice, or as getMuonPriceQueryKey, sr as getMuonPriceQueryOptions, cr as getMuonPriceRange, lr as getMuonPriceRangeQueryKey, ur as getMuonPriceRangeQueryOptions, dr as getMuonSettleUpnl, fr as getMuonSettleUpnlQueryKey, pr as getMuonSettleUpnlQueryOptions, mr as getMuonUpnl, _r as getMuonUpnlA, vr as getMuonUpnlAQueryKey, yr as getMuonUpnlAQueryOptions, br as getMuonUpnlAWithSymbolPrice, xr as getMuonUpnlAWithSymbolPriceQueryKey, Sr as getMuonUpnlAWithSymbolPriceQueryOptions, Cr as getMuonUpnlB, wr as getMuonUpnlBQueryKey, Tr as getMuonUpnlBQueryOptions, hr as getMuonUpnlQueryKey, gr as getMuonUpnlQueryOptions, Er as getMuonUpnlWithSymbolPrice, Dr as getMuonUpnlWithSymbolPriceQueryKey, Or as getMuonUpnlWithSymbolPriceQueryOptions, jn as getNotionalCapAll, In as getNotionalCapAllQueryKey, Ln as getNotionalCapAllQueryOptions, Mn as getNotionalCapBySymbolId, Pn as getNotionalCapBySymbolIdQueryKey, Fn as getNotionalCapBySymbolIdQueryOptions, Ue as getOnchainContractMarkets, ut as getOnchainContractMarketsQueryKey, dt as getOnchainContractMarketsQueryOptions, Nn as getOpenInterestBySymbolId, Rn as getOpenInterestBySymbolIdQueryKey, zn as getOpenInterestBySymbolIdQueryOptions, We as getPartyAOpenPositions, ft as getPartyAOpenPositionsQueryKey, pt as getPartyAOpenPositionsQueryOptions, Ge as getPartyAPendingQuotes, mt as getPartyAPendingQuotesQueryKey, ht as getPartyAPendingQuotesQueryOptions, Ke as getPendingWithdrawRequests, gt as getPendingWithdrawRequestsQueryKey, _t as getPendingWithdrawRequestsQueryOptions, M as getPredictedNextVirtualAccount, oe as getPredictedNextVirtualAccountQueryKey, se as getPredictedNextVirtualAccountQueryOptions, Ki as getQuerySubgraphQueryKey, qe as getQuote, Xi as getQuoteEventsByType, Zi as getQuoteEventsByTypeQueryKey, Qi as getQuoteEventsByTypeQueryOptions, na as getQuoteFunding, ra as getQuoteFundingQueryKey, ia as getQuoteFundingQueryOptions, da as getQuoteHistory, fa as getQuoteHistoryQueryKey, pa as getQuoteHistoryQueryOptions, vt as getQuoteQueryKey, yt as getQuoteQueryOptions, qa as getQuoteTpSl, Ja as getQuoteTpSlQueryKey, Ya as getQuoteTpSlQueryOptions, Bn as getSolverErrorCodes, Vn as getSolverErrorCodesQueryKey, Hn as getSolverErrorCodesQueryOptions, T as getSubAccount, K as getSubAccountQueryKey, q as getSubAccountQueryOptions, ba as getSubAccountQuotes, xa as getSubAccountQuotesQueryKey, Sa as getSubAccountQuotesQueryOptions, E as getSubAccountVirtualNonce, J as getSubAccountVirtualNonceQueryKey, Y as getSubAccountVirtualNonceQueryOptions, D as getSubAccountsCountOfUser, X as getSubAccountsCountOfUserQueryKey, Z as getSubAccountsCountOfUserQueryOptions, Fa as getTpSlConfig, Ia as getTpSlConfigQueryKey, La as getTpSlConfigQueryOptions, Wa as getTpSlDeleteSigningSpec, no as getTpSlDeleteSigningSpecQueryKey, ro as getTpSlDeleteSigningSpecQueryOptions, Za as getTpSlSigningSpec, io as getTpSlSigningSpecQueryKey, ao as getTpSlSigningSpecQueryOptions, yo as getTransferHistory, bo as getTransferHistoryQueryKey, xo as getTransferHistoryQueryOptions, O as getUserSubAccounts, k as getUserSubAccountsAddresses, ee as getUserSubAccountsAddressesQueryKey, te as getUserSubAccountsAddressesQueryOptions, Q as getUserSubAccountsQueryKey, $ as getUserSubAccountsQueryOptions, A as getVirtualAccount, ne as getVirtualAccountQueryKey, re as getVirtualAccountQueryOptions, j as getVirtualAccountsAddressesOfSubAccount, ie as getVirtualAccountsAddressesOfSubAccountQueryKey, ae as getVirtualAccountsAddressesOfSubAccountQueryOptions, Je as getWithdrawRequests, bt as getWithdrawRequestsQueryKey, xt as getWithdrawRequestsQueryOptions, Ye as getWithdrawableTime, St as getWithdrawableTimeQueryKey, Ct as getWithdrawableTimeQueryOptions, Ae as grantDelegation, Fe as grantDelegationMutationOptions, Oa as groupQuotes, Xe as initiateWithdraw, wt as initiateWithdrawMutationOptions, Ei as instantClose, ji as instantCloseAuto, Mi as instantCloseAutoMutationOptions, Pi as instantCloseBulk, Ii as instantCloseBulkAuto, Li as instantCloseBulkAutoMutationOptions, Fi as instantCloseBulkMutationOptions, Di as instantCloseMutationOptions, t as instantLayerAbi, oi as instantOpen, pi as instantOpenAuto, mi as instantOpenAutoMutationOptions, si as instantOpenMutationOptions, Ca as isActivePosition, s as isChainSupported, wa as isPendingOrder, Qr as isolationTypeForSide, ma as lifecycleFromQuoteStatus, c as listSupportedChains, en as normalizeNotification, tn as parseNotificationFrame, rn as parsePriceFrame, so as parseTpSlFrame, Ta as partitionQuotes, Ai as prepareInstantCloseParams, fi as prepareInstantOpenParams, $a as priceSlippageCalculation, yn as projectFundingRate, Gi as querySubgraph, qi as querySubgraphQueryOptions, va as reconcileQuotes, P as removeMargin, ce as removeMarginMutationOptions, Ze as requestCancelWithdraw, Tt as requestCancelWithdrawMutationOptions, ui as resolveFeeRates, di as resolveLockedParams, ci as resolveMarkPrice, li as resolveMarket, ya as resolveQuoteAccounts, Da as resolveQuoteGroupingStrategy, on as searchNotifications, sn as searchNotificationsQueryKey, cn as searchNotificationsQueryOptions, Ti as sendInstantClose, Br as sendInstantOpen, eo as setQuoteTpSl, to as setQuoteTpSlMutationOptions, Aa as shouldAccelerateOnchainReads, ja as shouldAccelerateQuotePolling, u as shouldSimulateBeforeWrite, Yr as signAndFormatInstantOperation, Gr as signSignedOperation, Ua as signTpSlRequest, d as simulateAddMargin, le as simulateAddMarginMutationOptions, Qe as simulateAllocate, Et as simulateAllocateMutationOptions, _e as simulateApproveCollateral, Ee as simulateApproveCollateralMutationOptions, p as simulateCreateSubAccounts, ue as simulateCreateSubAccountsMutationOptions, $e as simulateDeallocate, Dt as simulateDeallocateMutationOptions, h as simulateDeleteSubAccount, de as simulateDeleteSubAccountMutationOptions, _ as simulateDepositAndAllocateForAccount, fe as simulateDepositAndAllocateForAccountMutationOptions, y as simulateDepositForAccount, pe as simulateDepositForAccountMutationOptions, x as simulateEditAccountName, me as simulateEditAccountNameMutationOptions, ze as simulateFinalizeWithdrawRequest, Ot as simulateFinalizeWithdrawRequestMutationOptions, ke as simulateGrantDelegation, Ie as simulateGrantDelegationMutationOptions, et as simulateInitiateWithdraw, kt as simulateInitiateWithdrawMutationOptions, N as simulateRemoveMargin, he as simulateRemoveMarginMutationOptions, tt as simulateRequestCancelWithdraw, At as simulateRequestCancelWithdrawMutationOptions, n as symmioAbi, mo as toBalanceHistoryRow, fn as toEstimatedPrice, _n as toMarketFundingInfo, Sn as toMarketInfo, An as toMarketNotionalCap, bi as toPendingInstantClose, Ji as toQuoteEventRow, ta as toQuoteFundingRow, ua as toQuoteHistoryRow, Ha as toSignableTpSlMessage, vo as toTransferRow, ha as toUnifiedQuoteFromInstantClose, ga as toUnifiedQuoteFromInstantOpen, _a as toUnifiedQuoteFromOnchain, ai as toWeiBigInt, Ri as validateInstantCloseAgainstMarket, hi as validateInstantOpenAgainstMarket, oo as validateTpSl, an as watchEnigmaPrices, nn as watchNotifications, co as watchTpSlNotifications };
@@ -1,4 +1,4 @@
1
- import { MuonAttestationBase, MuonRawResult } from './types';
1
+ import { MuonAttestationBase, MuonRawResult } from './types.js';
2
2
  /**
3
3
  * Plain (un-prefixed) Muon request fields. {@link fetchMuon} wraps each entry
4
4
  * into the gateway's `params[<key>]` query-string form and adds `app` + `method`.
@@ -1,7 +1,7 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../core/config';
3
- import { ChainIdParameter, Compute } from '../../shared/types/properties';
4
- import { SingleUpnlSig } from '../../symmio-contracts/account-layer/types';
2
+ import { Config } from '../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
4
+ import { SingleUpnlSig } from '../../symmio-contracts/account-layer/types.js';
5
5
  /**
6
6
  * Parameters for {@link getDeallocateUpnlSig}.
7
7
  */
@@ -1,3 +1,3 @@
1
- export * from './get-deallocate-upnl-sig';
2
- export * from './query';
1
+ export * from './get-deallocate-upnl-sig.js';
2
+ export * from './query.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
- import { Config } from '../../core/config';
2
- import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
3
- import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
4
- import { GetDeallocateUpnlSigParameters, GetDeallocateUpnlSigReturnType } from './get-deallocate-upnl-sig';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
3
+ import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
4
+ import { GetDeallocateUpnlSigParameters, GetDeallocateUpnlSigReturnType } from './get-deallocate-upnl-sig.js';
5
5
  /** Data resolved by the {@link getDeallocateUpnlSigQueryOptions} query. */
6
6
  export type GetDeallocateUpnlSigData = GetDeallocateUpnlSigReturnType;
7
7
  /**
@@ -1,12 +1,12 @@
1
- export * from './deallocate-upnl-sig';
2
- export * from './party-a-overview';
3
- export * from './price';
4
- export * from './price-range';
5
- export * from './settle-upnl';
6
- export * from './types';
7
- export * from './upnl';
8
- export * from './upnl-a';
9
- export * from './upnl-a-with-symbol-price';
10
- export * from './upnl-b';
11
- export * from './upnl-with-symbol-price';
1
+ export * from './deallocate-upnl-sig/index.js';
2
+ export * from './party-a-overview/index.js';
3
+ export * from './price/index.js';
4
+ export * from './price-range/index.js';
5
+ export * from './settle-upnl/index.js';
6
+ export * from './types.js';
7
+ export * from './upnl/index.js';
8
+ export * from './upnl-a/index.js';
9
+ export * from './upnl-a-with-symbol-price/index.js';
10
+ export * from './upnl-b/index.js';
11
+ export * from './upnl-with-symbol-price/index.js';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../core/config';
3
- import { ChainIdParameter, Compute } from '../../shared/types/properties';
4
- import { MuonAttestationBase } from '../types';
2
+ import { Config } from '../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
4
+ import { MuonAttestationBase } from '../types.js';
5
5
  /** Parameters for {@link getMuonPartyAOverview}. */
6
6
  export type GetMuonPartyAOverviewParameters = Compute<ChainIdParameter & {
7
- /** The partyA (a subaccount for Majors, a virtual account for VibeCaps) to attest. */
7
+ /** The partyA (virtual account for lowcap) to attest. */
8
8
  partyA: Address;
9
9
  }>;
10
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"get-muon-party-a-overview.d.ts","sourceRoot":"","sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAElF,oDAAoD;AACpD,MAAM,MAAM,+BAA+B,GAAG,OAAO,CACnD,gBAAgB,GAAG;IACjB,sFAAsF;IACtF,MAAM,EAAE,OAAO,CAAC;CACjB,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB;IAC1E,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,+BAA+B,GAC1C,OAAO,CAAC,+BAA+B,CAAC,CAkB1C"}
1
+ {"version":3,"file":"get-muon-party-a-overview.d.ts","sourceRoot":"","sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAElF,oDAAoD;AACpD,MAAM,MAAM,+BAA+B,GAAG,OAAO,CACnD,gBAAgB,GAAG;IACjB,yDAAyD;IACzD,MAAM,EAAE,OAAO,CAAC;CACjB,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB;IAC1E,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,+BAA+B,GAC1C,OAAO,CAAC,+BAA+B,CAAC,CAkB1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-muon-party-a-overview.js","names":[],"sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { fetchMuon, muonBigInt, muonBigIntArray, requireMuonBigInt, toMuonAttestationBase } from \"../client\";\nimport { MUON_METHOD_PARTY_A_OVERVIEW, type MuonAttestationBase } from \"../types\";\n\n/** Parameters for {@link getMuonPartyAOverview}. */\nexport type GetMuonPartyAOverviewParameters = Compute<\n ChainIdParameter & {\n /** The partyA (a subaccount for Majors, a virtual account for VibeCaps) to attest. */\n partyA: Address;\n }\n>;\n\n/**\n * Normalized `partyA_overview` attestation: the shared signature envelope plus\n * partyA's liquidation-overview fields.\n *\n * @remarks\n * TODO(muon-verify): beyond `uPnl` (verified via Vibe-ui), the field set/nesting\n * is best-effort from the Muon docs; optional fields are absent when the gateway\n * omits them.\n */\nexport interface GetMuonPartyAOverviewReturnType extends MuonAttestationBase {\n /** The attested partyA. */\n partyA: Address;\n /** Signed unrealized PnL (18-decimal, signed). */\n uPnl: bigint;\n /** Sum of notional values across the partyA's positions. */\n notionalValueSum?: bigint;\n /** Aggregated loss used by the liquidation flow. */\n loss?: bigint;\n /** Raw liquidation id for this partyA, when the attestation carries one. */\n liquidationId?: string;\n /** Symbol ids included in the attestation. */\n symbolIds: bigint[];\n /** Quote ids included in the attestation. */\n quoteIds: bigint[];\n}\n\n/**\n * Fetch a fresh Muon `partyA_overview` attestation for `partyA` and normalize it\n * to typed fields. The oracle URLs and the SYMMIO diamond address (the `symmio`\n * request param) are resolved from `config`; gateways are tried in order until\n * one succeeds.\n *\n * @remarks\n * This is the uPnL + liquidation data behind `liquidatePartyA` / `setSymbolsPrice`\n * (it produces a `LiquidationSig`).\n *\n * @param config - The SDK config.\n * @param parameters - PartyA address and optional chain id.\n * @returns The normalized `partyA_overview` attestation.\n * @throws {SymmError} when the chain is unsupported, no Muon URLs are configured,\n * or every oracle returns an unsuccessful or malformed attestation.\n *\n * @example\n * ```ts\n * const overview = await getMuonPartyAOverview(config, { partyA: \"0xva…\" });\n * console.log(overview.uPnl, overview.liquidationId);\n * ```\n */\nexport async function getMuonPartyAOverview(\n config: Config,\n parameters: GetMuonPartyAOverviewParameters,\n): Promise<GetMuonPartyAOverviewReturnType> {\n const { chainId, addresses, muon } = config.getChainConfig(parameters.chainId);\n const raw = await fetchMuon(muon.urls, MUON_METHOD_PARTY_A_OVERVIEW, {\n partyA: parameters.partyA,\n chainId: chainId.toString(),\n symmio: addresses.symmioAddress,\n });\n const result = raw.data.result;\n return {\n ...toMuonAttestationBase(raw),\n partyA: parameters.partyA,\n uPnl: requireMuonBigInt(result.uPnl, \"uPnl\"),\n notionalValueSum: muonBigInt(result.notionalValueSum),\n loss: muonBigInt(result.loss),\n liquidationId: result.liquidationId as string | undefined,\n symbolIds: muonBigIntArray(result.symbolIds),\n quoteIds: muonBigIntArray(result.quoteIds),\n };\n}\n"],"mappings":";;;AA8DA,eAAsB,EACpB,GACA,GAC0C;CAC1C,IAAM,EAAE,YAAS,cAAW,YAAS,EAAO,eAAe,EAAW,OAAO,GACvE,IAAM,MAAM,EAAU,EAAK,MAAM,GAA8B;EACnE,QAAQ,EAAW;EACnB,SAAS,EAAQ,SAAS;EAC1B,QAAQ,EAAU;CACpB,CAAC,GACK,IAAS,EAAI,KAAK;CACxB,OAAO;EACL,GAAG,EAAsB,CAAG;EAC5B,QAAQ,EAAW;EACnB,MAAM,EAAkB,EAAO,MAAM,MAAM;EAC3C,kBAAkB,EAAW,EAAO,gBAAgB;EACpD,MAAM,EAAW,EAAO,IAAI;EAC5B,eAAe,EAAO;EACtB,WAAW,EAAgB,EAAO,SAAS;EAC3C,UAAU,EAAgB,EAAO,QAAQ;CAC3C;AACF"}
1
+ {"version":3,"file":"get-muon-party-a-overview.js","names":[],"sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { fetchMuon, muonBigInt, muonBigIntArray, requireMuonBigInt, toMuonAttestationBase } from \"../client\";\nimport { MUON_METHOD_PARTY_A_OVERVIEW, type MuonAttestationBase } from \"../types\";\n\n/** Parameters for {@link getMuonPartyAOverview}. */\nexport type GetMuonPartyAOverviewParameters = Compute<\n ChainIdParameter & {\n /** The partyA (virtual account for lowcap) to attest. */\n partyA: Address;\n }\n>;\n\n/**\n * Normalized `partyA_overview` attestation: the shared signature envelope plus\n * partyA's liquidation-overview fields.\n *\n * @remarks\n * TODO(muon-verify): beyond `uPnl` (verified via Vibe-ui), the field set/nesting\n * is best-effort from the Muon docs; optional fields are absent when the gateway\n * omits them.\n */\nexport interface GetMuonPartyAOverviewReturnType extends MuonAttestationBase {\n /** The attested partyA. */\n partyA: Address;\n /** Signed unrealized PnL (18-decimal, signed). */\n uPnl: bigint;\n /** Sum of notional values across the partyA's positions. */\n notionalValueSum?: bigint;\n /** Aggregated loss used by the liquidation flow. */\n loss?: bigint;\n /** Raw liquidation id for this partyA, when the attestation carries one. */\n liquidationId?: string;\n /** Symbol ids included in the attestation. */\n symbolIds: bigint[];\n /** Quote ids included in the attestation. */\n quoteIds: bigint[];\n}\n\n/**\n * Fetch a fresh Muon `partyA_overview` attestation for `partyA` and normalize it\n * to typed fields. The oracle URLs and the SYMMIO diamond address (the `symmio`\n * request param) are resolved from `config`; gateways are tried in order until\n * one succeeds.\n *\n * @remarks\n * This is the uPnL + liquidation data behind `liquidatePartyA` / `setSymbolsPrice`\n * (it produces a `LiquidationSig`).\n *\n * @param config - The SDK config.\n * @param parameters - PartyA address and optional chain id.\n * @returns The normalized `partyA_overview` attestation.\n * @throws {SymmError} when the chain is unsupported, no Muon URLs are configured,\n * or every oracle returns an unsuccessful or malformed attestation.\n *\n * @example\n * ```ts\n * const overview = await getMuonPartyAOverview(config, { partyA: \"0xva…\" });\n * console.log(overview.uPnl, overview.liquidationId);\n * ```\n */\nexport async function getMuonPartyAOverview(\n config: Config,\n parameters: GetMuonPartyAOverviewParameters,\n): Promise<GetMuonPartyAOverviewReturnType> {\n const { chainId, addresses, muon } = config.getChainConfig(parameters.chainId);\n const raw = await fetchMuon(muon.urls, MUON_METHOD_PARTY_A_OVERVIEW, {\n partyA: parameters.partyA,\n chainId: chainId.toString(),\n symmio: addresses.symmioAddress,\n });\n const result = raw.data.result;\n return {\n ...toMuonAttestationBase(raw),\n partyA: parameters.partyA,\n uPnl: requireMuonBigInt(result.uPnl, \"uPnl\"),\n notionalValueSum: muonBigInt(result.notionalValueSum),\n loss: muonBigInt(result.loss),\n liquidationId: result.liquidationId as string | undefined,\n symbolIds: muonBigIntArray(result.symbolIds),\n quoteIds: muonBigIntArray(result.quoteIds),\n };\n}\n"],"mappings":";;;AA8DA,eAAsB,EACpB,GACA,GAC0C;CAC1C,IAAM,EAAE,YAAS,cAAW,YAAS,EAAO,eAAe,EAAW,OAAO,GACvE,IAAM,MAAM,EAAU,EAAK,MAAM,GAA8B;EACnE,QAAQ,EAAW;EACnB,SAAS,EAAQ,SAAS;EAC1B,QAAQ,EAAU;CACpB,CAAC,GACK,IAAS,EAAI,KAAK;CACxB,OAAO;EACL,GAAG,EAAsB,CAAG;EAC5B,QAAQ,EAAW;EACnB,MAAM,EAAkB,EAAO,MAAM,MAAM;EAC3C,kBAAkB,EAAW,EAAO,gBAAgB;EACpD,MAAM,EAAW,EAAO,IAAI;EAC5B,eAAe,EAAO;EACtB,WAAW,EAAgB,EAAO,SAAS;EAC3C,UAAU,EAAgB,EAAO,QAAQ;CAC3C;AACF"}
@@ -1,3 +1,3 @@
1
- export * from './get-muon-party-a-overview';
2
- export * from './query';
1
+ export * from './get-muon-party-a-overview.js';
2
+ export * from './query.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
- import { Config } from '../../core/config';
2
- import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
3
- import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
4
- import { GetMuonPartyAOverviewParameters, GetMuonPartyAOverviewReturnType } from './get-muon-party-a-overview';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
3
+ import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
4
+ import { GetMuonPartyAOverviewParameters, GetMuonPartyAOverviewReturnType } from './get-muon-party-a-overview.js';
5
5
  /** Data resolved by the {@link getMuonPartyAOverviewQueryOptions} query. */
6
6
  export type GetMuonPartyAOverviewData = GetMuonPartyAOverviewReturnType;
7
7
  /**
@@ -1,6 +1,6 @@
1
- import { Config } from '../../core/config';
2
- import { ChainIdParameter, Compute } from '../../shared/types/properties';
3
- import { MuonAttestationBase } from '../types';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
3
+ import { MuonAttestationBase } from '../types.js';
4
4
  /** Parameters for {@link getMuonPrice}. */
5
5
  export type GetMuonPriceParameters = Compute<ChainIdParameter & {
6
6
  /** The quote ids to price (the partyB liquidation flow validates these prices). */
@@ -1,3 +1,3 @@
1
- export * from './get-muon-price';
2
- export * from './query';
1
+ export * from './get-muon-price.js';
2
+ export * from './query.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
- import { Config } from '../../core/config';
2
- import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
3
- import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
4
- import { GetMuonPriceParameters, GetMuonPriceReturnType } from './get-muon-price';
1
+ import { Config } from '../../core/config/index.js';
2
+ import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
3
+ import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
4
+ import { GetMuonPriceParameters, GetMuonPriceReturnType } from './get-muon-price.js';
5
5
  /** Data resolved by the {@link getMuonPriceQueryOptions} query. */
6
6
  export type GetMuonPriceData = GetMuonPriceReturnType;
7
7
  /**
@@ -1,14 +1,14 @@
1
1
  import { Address } from 'viem';
2
- import { Config } from '../../core/config';
3
- import { ChainIdParameter, Compute } from '../../shared/types/properties';
4
- import { MuonAttestationBase } from '../types';
2
+ import { Config } from '../../core/config/index.js';
3
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
4
+ import { MuonAttestationBase } from '../types.js';
5
5
  /** Parameters for {@link getMuonPriceRange}. */
6
6
  export type GetMuonPriceRangeParameters = Compute<ChainIdParameter & {
7
7
  /** Window start in unix seconds. */
8
8
  t0: bigint;
9
9
  /** Window end in unix seconds. */
10
10
  t1: bigint;
11
- /** The partyA (a subaccount for Majors, a virtual account for VibeCaps) to attest. */
11
+ /** The partyA (virtual account for lowcap) to attest. */
12
12
  partyA: Address;
13
13
  /** The partyB counterparty of the position. */
14
14
  partyB: Address;
@@ -1 +1 @@
1
- {"version":3,"file":"get-muon-price-range.d.ts","sourceRoot":"","sources":["../../../src/muon/price-range/get-muon-price-range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7E,gDAAgD;AAChD,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,gBAAgB,GAAG;IACjB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,sFAAsF;IACtF,MAAM,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,2BAA2B,CAAC,CA0BtC"}
1
+ {"version":3,"file":"get-muon-price-range.d.ts","sourceRoot":"","sources":["../../../src/muon/price-range/get-muon-price-range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7E,gDAAgD;AAChD,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,gBAAgB,GAAG;IACjB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,yDAAyD;IACzD,MAAM,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,2BAA2B,CAAC,CA0BtC"}