@symmio/trading-core 4.2.1 → 4.4.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 (586) hide show
  1. package/dist/core/chains/registry.d.ts.map +1 -1
  2. package/dist/core/chains/registry.js +4 -5
  3. package/dist/core/chains/registry.js.map +1 -1
  4. package/dist/core/chains/types.d.ts +36 -1
  5. package/dist/core/chains/types.d.ts.map +1 -1
  6. package/dist/core/chains/types.js.map +1 -1
  7. package/dist/core/config/merge-chain-config.js +6 -3
  8. package/dist/core/config/merge-chain-config.js.map +1 -1
  9. package/dist/gasless/batch/calls.d.ts +21 -7
  10. package/dist/gasless/batch/calls.d.ts.map +1 -1
  11. package/dist/gasless/batch/calls.js +17 -16
  12. package/dist/gasless/batch/calls.js.map +1 -1
  13. package/dist/gasless/batch/resolve-gasless-batch.d.ts +10 -1
  14. package/dist/gasless/batch/resolve-gasless-batch.d.ts.map +1 -1
  15. package/dist/gasless/batch/resolve-gasless-batch.js +17 -15
  16. package/dist/gasless/batch/resolve-gasless-batch.js.map +1 -1
  17. package/dist/gasless/classify-gasless-failure.d.ts +3 -1
  18. package/dist/gasless/classify-gasless-failure.d.ts.map +1 -1
  19. package/dist/gasless/classify-gasless-failure.js +10 -10
  20. package/dist/gasless/classify-gasless-failure.js.map +1 -1
  21. package/dist/gasless/confirm-gasless-request/confirm-gasless-request.js +5 -5
  22. package/dist/gasless/constants.d.ts +21 -0
  23. package/dist/gasless/constants.d.ts.map +1 -1
  24. package/dist/gasless/constants.js +2 -2
  25. package/dist/gasless/constants.js.map +1 -1
  26. package/dist/gasless/delegation-preflight.js +10 -10
  27. package/dist/gasless/deployment-key.d.ts +39 -0
  28. package/dist/gasless/deployment-key.d.ts.map +1 -0
  29. package/dist/gasless/deployment-key.js +22 -0
  30. package/dist/gasless/deployment-key.js.map +1 -0
  31. package/dist/gasless/dispatch/attempt-start.d.ts +31 -0
  32. package/dist/gasless/dispatch/attempt-start.d.ts.map +1 -0
  33. package/dist/gasless/dispatch/attempt-start.js +14 -0
  34. package/dist/gasless/dispatch/attempt-start.js.map +1 -0
  35. package/dist/gasless/dispatch/maybe-relay-as-gasless.d.ts +4 -43
  36. package/dist/gasless/dispatch/maybe-relay-as-gasless.d.ts.map +1 -1
  37. package/dist/gasless/dispatch/maybe-relay-as-gasless.js +24 -182
  38. package/dist/gasless/dispatch/maybe-relay-as-gasless.js.map +1 -1
  39. package/dist/gasless/dispatch/resolve-gasless-write.d.ts +40 -0
  40. package/dist/gasless/dispatch/resolve-gasless-write.d.ts.map +1 -0
  41. package/dist/gasless/dispatch/resolve-gasless-write.js +48 -0
  42. package/dist/gasless/dispatch/resolve-gasless-write.js.map +1 -0
  43. package/dist/gasless/dispatch/submit-gasless-write.d.ts +11 -0
  44. package/dist/gasless/dispatch/submit-gasless-write.d.ts.map +1 -0
  45. package/dist/gasless/dispatch/submit-gasless-write.js +180 -0
  46. package/dist/gasless/dispatch/submit-gasless-write.js.map +1 -0
  47. package/dist/gasless/dispatch/types.d.ts +42 -0
  48. package/dist/gasless/dispatch/types.d.ts.map +1 -0
  49. package/dist/gasless/effective-instant-selectors.d.ts +11 -0
  50. package/dist/gasless/effective-instant-selectors.d.ts.map +1 -0
  51. package/dist/gasless/effective-instant-selectors.js +25 -0
  52. package/dist/gasless/effective-instant-selectors.js.map +1 -0
  53. package/dist/gasless/fallback.d.ts +43 -0
  54. package/dist/gasless/fallback.d.ts.map +1 -1
  55. package/dist/gasless/fallback.js +27 -17
  56. package/dist/gasless/fallback.js.map +1 -1
  57. package/dist/gasless/gasless-wallet-execute/gasless-wallet-execute.d.ts +13 -5
  58. package/dist/gasless/gasless-wallet-execute/gasless-wallet-execute.d.ts.map +1 -1
  59. package/dist/gasless/gasless-wallet-execute/gasless-wallet-execute.js +88 -81
  60. package/dist/gasless/gasless-wallet-execute/gasless-wallet-execute.js.map +1 -1
  61. package/dist/gasless/get-session-key-selectors.d.ts +18 -4
  62. package/dist/gasless/get-session-key-selectors.d.ts.map +1 -1
  63. package/dist/gasless/get-session-key-selectors.js +20 -12
  64. package/dist/gasless/get-session-key-selectors.js.map +1 -1
  65. package/dist/gasless/http.d.ts +7 -7
  66. package/dist/gasless/http.d.ts.map +1 -1
  67. package/dist/gasless/http.js +70 -72
  68. package/dist/gasless/http.js.map +1 -1
  69. package/dist/gasless/idempotency-key.d.ts +33 -0
  70. package/dist/gasless/idempotency-key.d.ts.map +1 -0
  71. package/dist/gasless/idempotency-key.js +15 -0
  72. package/dist/gasless/idempotency-key.js.map +1 -0
  73. package/dist/gasless/index.d.ts +2 -0
  74. package/dist/gasless/index.d.ts.map +1 -1
  75. package/dist/gasless/nonce-lock.d.ts +55 -17
  76. package/dist/gasless/nonce-lock.d.ts.map +1 -1
  77. package/dist/gasless/nonce-lock.js +53 -26
  78. package/dist/gasless/nonce-lock.js.map +1 -1
  79. package/dist/gasless/relay-gasless-batch/preflight-batch-delegations.d.ts +30 -0
  80. package/dist/gasless/relay-gasless-batch/preflight-batch-delegations.d.ts.map +1 -0
  81. package/dist/gasless/relay-gasless-batch/preflight-batch-delegations.js +67 -0
  82. package/dist/gasless/relay-gasless-batch/preflight-batch-delegations.js.map +1 -0
  83. package/dist/gasless/relay-gasless-batch/relay-gasless-batch.d.ts +30 -9
  84. package/dist/gasless/relay-gasless-batch/relay-gasless-batch.d.ts.map +1 -1
  85. package/dist/gasless/relay-gasless-batch/relay-gasless-batch.js +99 -102
  86. package/dist/gasless/relay-gasless-batch/relay-gasless-batch.js.map +1 -1
  87. package/dist/gasless/relay-gasless-batch/resolve-batch-signers.d.ts +18 -0
  88. package/dist/gasless/relay-gasless-batch/resolve-batch-signers.d.ts.map +1 -0
  89. package/dist/gasless/relay-gasless-batch/resolve-batch-signers.js +17 -0
  90. package/dist/gasless/relay-gasless-batch/resolve-batch-signers.js.map +1 -0
  91. package/dist/gasless/relay-gasless-batch/sign-gasless-batch.d.ts +8 -5
  92. package/dist/gasless/relay-gasless-batch/sign-gasless-batch.d.ts.map +1 -1
  93. package/dist/gasless/relay-gasless-batch/sign-gasless-batch.js +22 -16
  94. package/dist/gasless/relay-gasless-batch/sign-gasless-batch.js.map +1 -1
  95. package/dist/gasless/relay-grant-delegation/relay-grant-delegation.d.ts +13 -7
  96. package/dist/gasless/relay-grant-delegation/relay-grant-delegation.d.ts.map +1 -1
  97. package/dist/gasless/relay-grant-delegation/relay-grant-delegation.js +46 -36
  98. package/dist/gasless/relay-grant-delegation/relay-grant-delegation.js.map +1 -1
  99. package/dist/gasless/relay-instant-operations/relay-instant-operations.d.ts +14 -15
  100. package/dist/gasless/relay-instant-operations/relay-instant-operations.d.ts.map +1 -1
  101. package/dist/gasless/relay-instant-operations/relay-instant-operations.js +12 -11
  102. package/dist/gasless/relay-instant-operations/relay-instant-operations.js.map +1 -1
  103. package/dist/gasless/relayable-writes.d.ts.map +1 -1
  104. package/dist/gasless/relayable-writes.js +28 -0
  105. package/dist/gasless/relayable-writes.js.map +1 -1
  106. package/dist/gasless/request-headers.d.ts +7 -0
  107. package/dist/gasless/request-headers.d.ts.map +1 -0
  108. package/dist/gasless/request-headers.js +34 -0
  109. package/dist/gasless/request-headers.js.map +1 -0
  110. package/dist/gasless/resolve-wallet-identities.js +4 -4
  111. package/dist/gasless/resubmit-gasless-request/resubmit-gasless-request.d.ts +11 -4
  112. package/dist/gasless/resubmit-gasless-request/resubmit-gasless-request.d.ts.map +1 -1
  113. package/dist/gasless/resubmit-gasless-request/resubmit-gasless-request.js +2 -2
  114. package/dist/gasless/resubmit-gasless-request/resubmit-gasless-request.js.map +1 -1
  115. package/dist/gasless/settle-gasless-deposit-existing-account/settle-gasless-deposit-existing-account.d.ts +10 -14
  116. package/dist/gasless/settle-gasless-deposit-existing-account/settle-gasless-deposit-existing-account.d.ts.map +1 -1
  117. package/dist/gasless/settle-gasless-deposit-existing-account/settle-gasless-deposit-existing-account.js +3 -2
  118. package/dist/gasless/settle-gasless-deposit-existing-account/settle-gasless-deposit-existing-account.js.map +1 -1
  119. package/dist/gasless/settle-gasless-deposit-new-account/settle-gasless-deposit-new-account.d.ts +15 -15
  120. package/dist/gasless/settle-gasless-deposit-new-account/settle-gasless-deposit-new-account.d.ts.map +1 -1
  121. package/dist/gasless/settle-gasless-deposit-new-account/settle-gasless-deposit-new-account.js +13 -12
  122. package/dist/gasless/settle-gasless-deposit-new-account/settle-gasless-deposit-new-account.js.map +1 -1
  123. package/dist/gasless/unconfirmed-submit.d.ts +12 -8
  124. package/dist/gasless/unconfirmed-submit.d.ts.map +1 -1
  125. package/dist/gasless/unconfirmed-submit.js +1 -1
  126. package/dist/gasless/unconfirmed-submit.js.map +1 -1
  127. package/dist/index.d.ts +26 -9
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +673 -615
  130. package/dist/shared/errors/symm-error.js +3 -3
  131. package/dist/shared/types/properties.d.ts +45 -8
  132. package/dist/shared/types/properties.d.ts.map +1 -1
  133. package/dist/solvers/capabilities.d.ts.map +1 -1
  134. package/dist/solvers/capabilities.js +4 -2
  135. package/dist/solvers/capabilities.js.map +1 -1
  136. package/dist/solvers/estimated-price/get-estimated-price.d.ts +3 -1
  137. package/dist/solvers/estimated-price/get-estimated-price.d.ts.map +1 -1
  138. package/dist/solvers/estimated-price/get-estimated-price.js +6 -6
  139. package/dist/solvers/estimated-price/get-estimated-price.js.map +1 -1
  140. package/dist/solvers/estimated-price/to-estimated-price.d.ts +2 -1
  141. package/dist/solvers/estimated-price/to-estimated-price.d.ts.map +1 -1
  142. package/dist/solvers/estimated-price/to-estimated-price.js +4 -1
  143. package/dist/solvers/estimated-price/to-estimated-price.js.map +1 -1
  144. package/dist/solvers/force-close/force-close-auto.d.ts.map +1 -1
  145. package/dist/solvers/force-close/force-close-auto.js +70 -69
  146. package/dist/solvers/force-close/force-close-auto.js.map +1 -1
  147. package/dist/solvers/get-error-message/get-error-message.js +4 -4
  148. package/dist/solvers/get-party-a-upnl/get-party-a-upnl.js +4 -4
  149. package/dist/solvers/get-solver-balance-info/get-solver-balance-info.js +4 -4
  150. package/dist/solvers/get-solver-info/get-solver-info.d.ts +5 -2
  151. package/dist/solvers/get-solver-info/get-solver-info.d.ts.map +1 -1
  152. package/dist/solvers/get-solver-info/get-solver-info.js +14 -12
  153. package/dist/solvers/get-solver-info/get-solver-info.js.map +1 -1
  154. package/dist/solvers/get-solver-info/parse-timelock-info.d.ts +5 -0
  155. package/dist/solvers/get-solver-info/parse-timelock-info.d.ts.map +1 -0
  156. package/dist/solvers/get-solver-info/parse-timelock-info.js +27 -0
  157. package/dist/solvers/get-solver-info/parse-timelock-info.js.map +1 -0
  158. package/dist/solvers/get-solver-open-interest/get-solver-open-interest.js +4 -4
  159. package/dist/solvers/get-solver-price-range/get-solver-price-range.js +4 -4
  160. package/dist/solvers/get-solver-readiness/get-solver-readiness.js +4 -4
  161. package/dist/solvers/instant-open/get-instant-opens/adapters/enigma-instant-opens.js +17 -17
  162. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.d.ts +8 -7
  163. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.d.ts.map +1 -1
  164. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.js +43 -39
  165. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.js.map +1 -1
  166. package/dist/solvers/instant-open/instant-open/adapters/enigma-margin-timelock.d.ts +16 -0
  167. package/dist/solvers/instant-open/instant-open/adapters/enigma-margin-timelock.d.ts.map +1 -0
  168. package/dist/solvers/instant-open/instant-open/adapters/enigma-margin-timelock.js +92 -0
  169. package/dist/solvers/instant-open/instant-open/adapters/enigma-margin-timelock.js.map +1 -0
  170. package/dist/solvers/instant-open/instant-open/adapters/rasa-instant-open.js +1 -1
  171. package/dist/solvers/instant-open/instant-open/index.d.ts +2 -0
  172. package/dist/solvers/instant-open/instant-open/index.d.ts.map +1 -1
  173. package/dist/solvers/instant-open/instant-open/instant-open.d.ts +22 -6
  174. package/dist/solvers/instant-open/instant-open/instant-open.d.ts.map +1 -1
  175. package/dist/solvers/instant-open/instant-open/instant-open.js +35 -27
  176. package/dist/solvers/instant-open/instant-open/instant-open.js.map +1 -1
  177. package/dist/solvers/instant-open/instant-open/prepared/submit-prepared-instant-open.d.ts +12 -0
  178. package/dist/solvers/instant-open/instant-open/prepared/submit-prepared-instant-open.d.ts.map +1 -0
  179. package/dist/solvers/instant-open/instant-open/prepared/submit-prepared-instant-open.js +49 -0
  180. package/dist/solvers/instant-open/instant-open/prepared/submit-prepared-instant-open.js.map +1 -0
  181. package/dist/solvers/instant-open/instant-open/prepared/types.d.ts +20 -0
  182. package/dist/solvers/instant-open/instant-open/prepared/types.d.ts.map +1 -0
  183. package/dist/solvers/instant-open/instant-open/types.d.ts +5 -4
  184. package/dist/solvers/instant-open/instant-open/types.d.ts.map +1 -1
  185. package/dist/solvers/instant-open/shared/hedger-api.d.ts.map +1 -1
  186. package/dist/solvers/instant-open/shared/hedger-api.js +38 -26
  187. package/dist/solvers/instant-open/shared/hedger-api.js.map +1 -1
  188. package/dist/solvers/markets/adapters/enigma-markets.js +34 -34
  189. package/dist/solvers/notional-cap/get-notional-cap-page.js +4 -4
  190. package/dist/solvers/revenue/get-solver-revenue.js +10 -10
  191. package/dist/solvers/revenue-records/get-revenue-records.js +11 -11
  192. package/dist/solvers/symbols/get-symbols.js +13 -13
  193. package/dist/solvers/trade-volume/get-trade-volume.js +10 -10
  194. package/dist/solvers/types/generated/enigma-solver.d.ts +1 -0
  195. package/dist/solvers/types/generated/enigma-solver.d.ts.map +1 -1
  196. package/dist/solvers/types/generated/enigma-solver.js.map +1 -1
  197. package/dist/symmio-contracts/abi/v0.8.6/instant-layer.d.ts +46 -0
  198. package/dist/symmio-contracts/abi/v0.8.6/instant-layer.d.ts.map +1 -1
  199. package/dist/symmio-contracts/abi/v0.8.6/instant-layer.js +53 -0
  200. package/dist/symmio-contracts/abi/v0.8.6/instant-layer.js.map +1 -1
  201. package/dist/symmio-contracts/account-layer/actions/add-margin.d.ts +3 -0
  202. package/dist/symmio-contracts/account-layer/actions/add-margin.d.ts.map +1 -1
  203. package/dist/symmio-contracts/account-layer/actions/add-margin.js +41 -27
  204. package/dist/symmio-contracts/account-layer/actions/add-margin.js.map +1 -1
  205. package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.d.ts +23 -9
  206. package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.d.ts.map +1 -1
  207. package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.js +15 -36
  208. package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.js.map +1 -1
  209. package/dist/symmio-contracts/account-layer/actions/delete-sub-account.d.ts +3 -0
  210. package/dist/symmio-contracts/account-layer/actions/delete-sub-account.d.ts.map +1 -1
  211. package/dist/symmio-contracts/account-layer/actions/delete-sub-account.js +40 -26
  212. package/dist/symmio-contracts/account-layer/actions/delete-sub-account.js.map +1 -1
  213. package/dist/symmio-contracts/account-layer/actions/edit-account-name.d.ts +1 -1
  214. package/dist/symmio-contracts/account-layer/actions/edit-account-name.d.ts.map +1 -1
  215. package/dist/symmio-contracts/account-layer/actions/edit-account-name.js +18 -37
  216. package/dist/symmio-contracts/account-layer/actions/edit-account-name.js.map +1 -1
  217. package/dist/symmio-contracts/account-layer/actions/get-active-virtual-account-by-key.d.ts +46 -0
  218. package/dist/symmio-contracts/account-layer/actions/get-active-virtual-account-by-key.d.ts.map +1 -0
  219. package/dist/symmio-contracts/account-layer/actions/get-active-virtual-account-by-key.js +20 -0
  220. package/dist/symmio-contracts/account-layer/actions/get-active-virtual-account-by-key.js.map +1 -0
  221. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-count-of-sub-account.d.ts +31 -0
  222. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-count-of-sub-account.d.ts.map +1 -0
  223. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-count-of-sub-account.js +15 -0
  224. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-count-of-sub-account.js.map +1 -0
  225. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-of-sub-account.d.ts +54 -0
  226. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-of-sub-account.d.ts.map +1 -0
  227. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-of-sub-account.js +26 -0
  228. package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-of-sub-account.js.map +1 -0
  229. package/dist/symmio-contracts/account-layer/actions/remove-margin.d.ts +3 -0
  230. package/dist/symmio-contracts/account-layer/actions/remove-margin.d.ts.map +1 -1
  231. package/dist/symmio-contracts/account-layer/actions/remove-margin.js +50 -32
  232. package/dist/symmio-contracts/account-layer/actions/remove-margin.js.map +1 -1
  233. package/dist/symmio-contracts/account-layer/cancel-timelock-op/cancel-timelock-op.d.ts +12 -0
  234. package/dist/symmio-contracts/account-layer/cancel-timelock-op/cancel-timelock-op.d.ts.map +1 -0
  235. package/dist/symmio-contracts/account-layer/cancel-timelock-op/cancel-timelock-op.js +10 -0
  236. package/dist/symmio-contracts/account-layer/cancel-timelock-op/cancel-timelock-op.js.map +1 -0
  237. package/dist/symmio-contracts/account-layer/cancel-timelock-op/index.d.ts +3 -0
  238. package/dist/symmio-contracts/account-layer/cancel-timelock-op/index.d.ts.map +1 -0
  239. package/dist/symmio-contracts/account-layer/cancel-timelock-op/query.d.ts +9 -0
  240. package/dist/symmio-contracts/account-layer/cancel-timelock-op/query.d.ts.map +1 -0
  241. package/dist/symmio-contracts/account-layer/cancel-timelock-op/query.js +13 -0
  242. package/dist/symmio-contracts/account-layer/cancel-timelock-op/query.js.map +1 -0
  243. package/dist/symmio-contracts/account-layer/clear-timelocks/clear-timelocks.d.ts +12 -0
  244. package/dist/symmio-contracts/account-layer/clear-timelocks/clear-timelocks.d.ts.map +1 -0
  245. package/dist/symmio-contracts/account-layer/clear-timelocks/clear-timelocks.js +10 -0
  246. package/dist/symmio-contracts/account-layer/clear-timelocks/clear-timelocks.js.map +1 -0
  247. package/dist/symmio-contracts/account-layer/clear-timelocks/index.d.ts +3 -0
  248. package/dist/symmio-contracts/account-layer/clear-timelocks/index.d.ts.map +1 -0
  249. package/dist/symmio-contracts/account-layer/clear-timelocks/query.d.ts +9 -0
  250. package/dist/symmio-contracts/account-layer/clear-timelocks/query.d.ts.map +1 -0
  251. package/dist/symmio-contracts/account-layer/clear-timelocks/query.js +13 -0
  252. package/dist/symmio-contracts/account-layer/clear-timelocks/query.js.map +1 -0
  253. package/dist/symmio-contracts/account-layer/execute-timelock-op/execute-timelock-op.d.ts +12 -0
  254. package/dist/symmio-contracts/account-layer/execute-timelock-op/execute-timelock-op.d.ts.map +1 -0
  255. package/dist/symmio-contracts/account-layer/execute-timelock-op/execute-timelock-op.js +9 -0
  256. package/dist/symmio-contracts/account-layer/execute-timelock-op/execute-timelock-op.js.map +1 -0
  257. package/dist/symmio-contracts/account-layer/execute-timelock-op/index.d.ts +3 -0
  258. package/dist/symmio-contracts/account-layer/execute-timelock-op/index.d.ts.map +1 -0
  259. package/dist/symmio-contracts/account-layer/execute-timelock-op/query.d.ts +9 -0
  260. package/dist/symmio-contracts/account-layer/execute-timelock-op/query.d.ts.map +1 -0
  261. package/dist/symmio-contracts/account-layer/execute-timelock-op/query.js +13 -0
  262. package/dist/symmio-contracts/account-layer/execute-timelock-op/query.js.map +1 -0
  263. package/dist/symmio-contracts/account-layer/get-min-timelock-delay/get-min-timelock-delay.d.ts +12 -0
  264. package/dist/symmio-contracts/account-layer/get-min-timelock-delay/get-min-timelock-delay.d.ts.map +1 -0
  265. package/dist/symmio-contracts/account-layer/get-min-timelock-delay/get-min-timelock-delay.js +16 -0
  266. package/dist/symmio-contracts/account-layer/get-min-timelock-delay/get-min-timelock-delay.js.map +1 -0
  267. package/dist/symmio-contracts/account-layer/get-min-timelock-delay/index.d.ts +2 -0
  268. package/dist/symmio-contracts/account-layer/get-min-timelock-delay/index.d.ts.map +1 -0
  269. package/dist/symmio-contracts/account-layer/get-selector-timelock/get-selector-timelock.d.ts +12 -0
  270. package/dist/symmio-contracts/account-layer/get-selector-timelock/get-selector-timelock.d.ts.map +1 -0
  271. package/dist/symmio-contracts/account-layer/get-selector-timelock/get-selector-timelock.js +22 -0
  272. package/dist/symmio-contracts/account-layer/get-selector-timelock/get-selector-timelock.js.map +1 -0
  273. package/dist/symmio-contracts/account-layer/get-selector-timelock/index.d.ts +3 -0
  274. package/dist/symmio-contracts/account-layer/get-selector-timelock/index.d.ts.map +1 -0
  275. package/dist/symmio-contracts/account-layer/get-selector-timelock/query.d.ts +22 -0
  276. package/dist/symmio-contracts/account-layer/get-selector-timelock/query.d.ts.map +1 -0
  277. package/dist/symmio-contracts/account-layer/get-selector-timelock/query.js +21 -0
  278. package/dist/symmio-contracts/account-layer/get-selector-timelock/query.js.map +1 -0
  279. package/dist/symmio-contracts/account-layer/get-timelock-schedule/get-timelock-schedule.d.ts +12 -0
  280. package/dist/symmio-contracts/account-layer/get-timelock-schedule/get-timelock-schedule.d.ts.map +1 -0
  281. package/dist/symmio-contracts/account-layer/get-timelock-schedule/get-timelock-schedule.js +22 -0
  282. package/dist/symmio-contracts/account-layer/get-timelock-schedule/get-timelock-schedule.js.map +1 -0
  283. package/dist/symmio-contracts/account-layer/get-timelock-schedule/index.d.ts +2 -0
  284. package/dist/symmio-contracts/account-layer/get-timelock-schedule/index.d.ts.map +1 -0
  285. package/dist/symmio-contracts/account-layer/get-timelock-schedule-grace-period/get-timelock-schedule-grace-period.d.ts +13 -0
  286. package/dist/symmio-contracts/account-layer/get-timelock-schedule-grace-period/get-timelock-schedule-grace-period.d.ts.map +1 -0
  287. package/dist/symmio-contracts/account-layer/get-timelock-schedule-grace-period/get-timelock-schedule-grace-period.js +17 -0
  288. package/dist/symmio-contracts/account-layer/get-timelock-schedule-grace-period/get-timelock-schedule-grace-period.js.map +1 -0
  289. package/dist/symmio-contracts/account-layer/get-timelock-schedule-grace-period/index.d.ts +2 -0
  290. package/dist/symmio-contracts/account-layer/get-timelock-schedule-grace-period/index.d.ts.map +1 -0
  291. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/get-timelock-schedule-state.d.ts +12 -0
  292. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/get-timelock-schedule-state.d.ts.map +1 -0
  293. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/get-timelock-schedule-state.js +67 -0
  294. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/get-timelock-schedule-state.js.map +1 -0
  295. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/index.d.ts +3 -0
  296. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/index.d.ts.map +1 -0
  297. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/query.d.ts +21 -0
  298. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/query.d.ts.map +1 -0
  299. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/query.js +21 -0
  300. package/dist/symmio-contracts/account-layer/get-timelock-schedule-state/query.js.map +1 -0
  301. package/dist/symmio-contracts/account-layer/hash-timelock-approval/hash-timelock-approval.d.ts +15 -0
  302. package/dist/symmio-contracts/account-layer/hash-timelock-approval/hash-timelock-approval.d.ts.map +1 -0
  303. package/dist/symmio-contracts/account-layer/hash-timelock-approval/hash-timelock-approval.js +17 -0
  304. package/dist/symmio-contracts/account-layer/hash-timelock-approval/hash-timelock-approval.js.map +1 -0
  305. package/dist/symmio-contracts/account-layer/hash-timelock-approval/index.d.ts +2 -0
  306. package/dist/symmio-contracts/account-layer/hash-timelock-approval/index.d.ts.map +1 -0
  307. package/dist/symmio-contracts/account-layer/hook-metadata.d.ts +47 -0
  308. package/dist/symmio-contracts/account-layer/hook-metadata.d.ts.map +1 -0
  309. package/dist/symmio-contracts/account-layer/hook-metadata.js +30 -0
  310. package/dist/symmio-contracts/account-layer/hook-metadata.js.map +1 -0
  311. package/dist/symmio-contracts/account-layer/index.d.ts +21 -0
  312. package/dist/symmio-contracts/account-layer/index.d.ts.map +1 -1
  313. package/dist/symmio-contracts/account-layer/is-timelock-approval-used/index.d.ts +2 -0
  314. package/dist/symmio-contracts/account-layer/is-timelock-approval-used/index.d.ts.map +1 -0
  315. package/dist/symmio-contracts/account-layer/is-timelock-approval-used/is-timelock-approval-used.d.ts +14 -0
  316. package/dist/symmio-contracts/account-layer/is-timelock-approval-used/is-timelock-approval-used.d.ts.map +1 -0
  317. package/dist/symmio-contracts/account-layer/is-timelock-approval-used/is-timelock-approval-used.js +17 -0
  318. package/dist/symmio-contracts/account-layer/is-timelock-approval-used/is-timelock-approval-used.js.map +1 -0
  319. package/dist/symmio-contracts/account-layer/query/generate-account-manager-address.js +6 -6
  320. package/dist/symmio-contracts/account-layer/query/get-account-balance-info.js +6 -6
  321. package/dist/symmio-contracts/account-layer/query/get-account-balance-of.js +6 -6
  322. package/dist/symmio-contracts/account-layer/query/get-active-virtual-account-by-key.d.ts +43 -0
  323. package/dist/symmio-contracts/account-layer/query/get-active-virtual-account-by-key.d.ts.map +1 -0
  324. package/dist/symmio-contracts/account-layer/query/get-active-virtual-account-by-key.js +31 -0
  325. package/dist/symmio-contracts/account-layer/query/get-active-virtual-account-by-key.js.map +1 -0
  326. package/dist/symmio-contracts/account-layer/query/get-affiliate-state.js +6 -6
  327. package/dist/symmio-contracts/account-layer/query/get-sub-account-virtual-nonce.js +6 -6
  328. package/dist/symmio-contracts/account-layer/query/get-sub-accounts-count-of-user.js +6 -6
  329. package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts-addresses.js +6 -6
  330. package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts.js +6 -6
  331. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-addresses-of-sub-account.js +6 -6
  332. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-count-of-sub-account.d.ts +39 -0
  333. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-count-of-sub-account.d.ts.map +1 -0
  334. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-count-of-sub-account.js +29 -0
  335. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-count-of-sub-account.js.map +1 -0
  336. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-of-sub-account.d.ts +39 -0
  337. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-of-sub-account.d.ts.map +1 -0
  338. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-of-sub-account.js +31 -0
  339. package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-of-sub-account.js.map +1 -0
  340. package/dist/symmio-contracts/account-layer/query/predict-next-virtual-account.js +6 -6
  341. package/dist/symmio-contracts/account-layer/resolve-timelock-root-account/index.d.ts +2 -0
  342. package/dist/symmio-contracts/account-layer/resolve-timelock-root-account/index.d.ts.map +1 -0
  343. package/dist/symmio-contracts/account-layer/resolve-timelock-root-account/resolve-timelock-root-account.d.ts +19 -0
  344. package/dist/symmio-contracts/account-layer/resolve-timelock-root-account/resolve-timelock-root-account.d.ts.map +1 -0
  345. package/dist/symmio-contracts/account-layer/resolve-timelock-root-account/resolve-timelock-root-account.js +10 -0
  346. package/dist/symmio-contracts/account-layer/resolve-timelock-root-account/resolve-timelock-root-account.js.map +1 -0
  347. package/dist/symmio-contracts/account-layer/schedule-timelock-op/index.d.ts +3 -0
  348. package/dist/symmio-contracts/account-layer/schedule-timelock-op/index.d.ts.map +1 -0
  349. package/dist/symmio-contracts/account-layer/schedule-timelock-op/query.d.ts +9 -0
  350. package/dist/symmio-contracts/account-layer/schedule-timelock-op/query.d.ts.map +1 -0
  351. package/dist/symmio-contracts/account-layer/schedule-timelock-op/query.js +13 -0
  352. package/dist/symmio-contracts/account-layer/schedule-timelock-op/query.js.map +1 -0
  353. package/dist/symmio-contracts/account-layer/schedule-timelock-op/schedule-timelock-op.d.ts +12 -0
  354. package/dist/symmio-contracts/account-layer/schedule-timelock-op/schedule-timelock-op.d.ts.map +1 -0
  355. package/dist/symmio-contracts/account-layer/schedule-timelock-op/schedule-timelock-op.js +10 -0
  356. package/dist/symmio-contracts/account-layer/schedule-timelock-op/schedule-timelock-op.js.map +1 -0
  357. package/dist/symmio-contracts/account-layer/setup-timelocks/index.d.ts +3 -0
  358. package/dist/symmio-contracts/account-layer/setup-timelocks/index.d.ts.map +1 -0
  359. package/dist/symmio-contracts/account-layer/setup-timelocks/query.d.ts +9 -0
  360. package/dist/symmio-contracts/account-layer/setup-timelocks/query.d.ts.map +1 -0
  361. package/dist/symmio-contracts/account-layer/setup-timelocks/query.js +13 -0
  362. package/dist/symmio-contracts/account-layer/setup-timelocks/query.js.map +1 -0
  363. package/dist/symmio-contracts/account-layer/setup-timelocks/setup-timelocks.d.ts +13 -0
  364. package/dist/symmio-contracts/account-layer/setup-timelocks/setup-timelocks.d.ts.map +1 -0
  365. package/dist/symmio-contracts/account-layer/setup-timelocks/setup-timelocks.js +18 -0
  366. package/dist/symmio-contracts/account-layer/setup-timelocks/setup-timelocks.js.map +1 -0
  367. package/dist/symmio-contracts/account-layer/timelock-selector.d.ts +4 -0
  368. package/dist/symmio-contracts/account-layer/timelock-selector.d.ts.map +1 -0
  369. package/dist/symmio-contracts/account-layer/timelock-selector.js +9 -0
  370. package/dist/symmio-contracts/account-layer/timelock-selector.js.map +1 -0
  371. package/dist/symmio-contracts/account-layer/timelock-test.d.ts +7 -0
  372. package/dist/symmio-contracts/account-layer/timelock-test.d.ts.map +1 -0
  373. package/dist/symmio-contracts/account-layer/timelock-types.d.ts +66 -0
  374. package/dist/symmio-contracts/account-layer/timelock-types.d.ts.map +1 -0
  375. package/dist/symmio-contracts/account-layer/types.d.ts +32 -2
  376. package/dist/symmio-contracts/account-layer/types.d.ts.map +1 -1
  377. package/dist/symmio-contracts/account-layer/types.js.map +1 -1
  378. package/dist/symmio-contracts/account-layer/write-timelock.d.ts +10 -0
  379. package/dist/symmio-contracts/account-layer/write-timelock.d.ts.map +1 -0
  380. package/dist/symmio-contracts/account-layer/write-timelock.js +51 -0
  381. package/dist/symmio-contracts/account-layer/write-timelock.js.map +1 -0
  382. package/dist/symmio-contracts/instant-layer/actions/grant-delegation.d.ts +4 -1
  383. package/dist/symmio-contracts/instant-layer/actions/grant-delegation.d.ts.map +1 -1
  384. package/dist/symmio-contracts/instant-layer/actions/grant-delegation.js +42 -38
  385. package/dist/symmio-contracts/instant-layer/actions/grant-delegation.js.map +1 -1
  386. package/dist/symmio-contracts/instant-layer/actions/grant-delegations.d.ts +75 -0
  387. package/dist/symmio-contracts/instant-layer/actions/grant-delegations.d.ts.map +1 -0
  388. package/dist/symmio-contracts/instant-layer/actions/grant-delegations.js +46 -0
  389. package/dist/symmio-contracts/instant-layer/actions/grant-delegations.js.map +1 -0
  390. package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegations.d.ts +32 -0
  391. package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegations.d.ts.map +1 -0
  392. package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegations.js +18 -0
  393. package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegations.js.map +1 -0
  394. package/dist/symmio-contracts/instant-layer/grant-delegations-input.d.ts +33 -0
  395. package/dist/symmio-contracts/instant-layer/grant-delegations-input.d.ts.map +1 -0
  396. package/dist/symmio-contracts/instant-layer/grant-delegations-input.js +18 -0
  397. package/dist/symmio-contracts/instant-layer/grant-delegations-input.js.map +1 -0
  398. package/dist/symmio-contracts/instant-layer/index.d.ts +4 -0
  399. package/dist/symmio-contracts/instant-layer/index.d.ts.map +1 -1
  400. package/dist/symmio-contracts/instant-layer/query/grant-delegations.d.ts +22 -0
  401. package/dist/symmio-contracts/instant-layer/query/grant-delegations.d.ts.map +1 -0
  402. package/dist/symmio-contracts/instant-layer/query/grant-delegations.js +12 -0
  403. package/dist/symmio-contracts/instant-layer/query/grant-delegations.js.map +1 -0
  404. package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegations.d.ts +19 -0
  405. package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegations.d.ts.map +1 -0
  406. package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegations.js +12 -0
  407. package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegations.js.map +1 -0
  408. package/dist/symmio-contracts/symmio/actions/allocate.d.ts +3 -0
  409. package/dist/symmio-contracts/symmio/actions/allocate.d.ts.map +1 -1
  410. package/dist/symmio-contracts/symmio/actions/allocate.js +22 -16
  411. package/dist/symmio-contracts/symmio/actions/allocate.js.map +1 -1
  412. package/dist/symmio-contracts/symmio/actions/approve-operational-fee-allowance.d.ts +74 -0
  413. package/dist/symmio-contracts/symmio/actions/approve-operational-fee-allowance.d.ts.map +1 -0
  414. package/dist/symmio-contracts/symmio/actions/approve-operational-fee-allowance.js +36 -0
  415. package/dist/symmio-contracts/symmio/actions/approve-operational-fee-allowance.js.map +1 -0
  416. package/dist/symmio-contracts/symmio/actions/approve-operational-fee.d.ts +3 -0
  417. package/dist/symmio-contracts/symmio/actions/approve-operational-fee.d.ts.map +1 -1
  418. package/dist/symmio-contracts/symmio/actions/approve-operational-fee.js +32 -29
  419. package/dist/symmio-contracts/symmio/actions/approve-operational-fee.js.map +1 -1
  420. package/dist/symmio-contracts/symmio/actions/deallocate-and-initiate-withdraw.d.ts +3 -0
  421. package/dist/symmio-contracts/symmio/actions/deallocate-and-initiate-withdraw.d.ts.map +1 -1
  422. package/dist/symmio-contracts/symmio/actions/deallocate-and-initiate-withdraw.js +37 -28
  423. package/dist/symmio-contracts/symmio/actions/deallocate-and-initiate-withdraw.js.map +1 -1
  424. package/dist/symmio-contracts/symmio/actions/deallocate.d.ts +3 -0
  425. package/dist/symmio-contracts/symmio/actions/deallocate.d.ts.map +1 -1
  426. package/dist/symmio-contracts/symmio/actions/deallocate.js +30 -20
  427. package/dist/symmio-contracts/symmio/actions/deallocate.js.map +1 -1
  428. package/dist/symmio-contracts/symmio/actions/initiate-withdraw.d.ts +5 -0
  429. package/dist/symmio-contracts/symmio/actions/initiate-withdraw.d.ts.map +1 -1
  430. package/dist/symmio-contracts/symmio/actions/initiate-withdraw.js +31 -18
  431. package/dist/symmio-contracts/symmio/actions/initiate-withdraw.js.map +1 -1
  432. package/dist/symmio-contracts/symmio/actions/withdraw-auto.d.ts +4 -0
  433. package/dist/symmio-contracts/symmio/actions/withdraw-auto.d.ts.map +1 -1
  434. package/dist/symmio-contracts/symmio/actions/withdraw-auto.js +30 -25
  435. package/dist/symmio-contracts/symmio/actions/withdraw-auto.js.map +1 -1
  436. package/dist/symmio-contracts/symmio/actions/withdraw.d.ts +4 -0
  437. package/dist/symmio-contracts/symmio/actions/withdraw.d.ts.map +1 -1
  438. package/dist/symmio-contracts/symmio/actions/withdraw.js +12 -8
  439. package/dist/symmio-contracts/symmio/actions/withdraw.js.map +1 -1
  440. package/dist/symmio-contracts/symmio/execute-account-calls/execute-account-calls.d.ts +48 -0
  441. package/dist/symmio-contracts/symmio/execute-account-calls/execute-account-calls.d.ts.map +1 -0
  442. package/dist/symmio-contracts/symmio/execute-account-calls/execute-account-calls.js +33 -0
  443. package/dist/symmio-contracts/symmio/execute-account-calls/execute-account-calls.js.map +1 -0
  444. package/dist/symmio-contracts/symmio/execute-account-calls/index.d.ts +3 -0
  445. package/dist/symmio-contracts/symmio/execute-account-calls/index.d.ts.map +1 -0
  446. package/dist/symmio-contracts/symmio/execute-account-calls/query.d.ts +23 -0
  447. package/dist/symmio-contracts/symmio/execute-account-calls/query.d.ts.map +1 -0
  448. package/dist/symmio-contracts/symmio/execute-account-calls/query.js +12 -0
  449. package/dist/symmio-contracts/symmio/execute-account-calls/query.js.map +1 -0
  450. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/get-deallocate-debounce-time.d.ts +22 -0
  451. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/get-deallocate-debounce-time.d.ts.map +1 -0
  452. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/get-deallocate-debounce-time.js +14 -0
  453. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/get-deallocate-debounce-time.js.map +1 -0
  454. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/index.d.ts +3 -0
  455. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/index.d.ts.map +1 -0
  456. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/query.d.ts +34 -0
  457. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/query.d.ts.map +1 -0
  458. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/query.js +21 -0
  459. package/dist/symmio-contracts/symmio/get-deallocate-debounce-time/query.js.map +1 -0
  460. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/get-pending-withdraw-requests-batch.d.ts +34 -0
  461. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/get-pending-withdraw-requests-batch.d.ts.map +1 -0
  462. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/get-pending-withdraw-requests-batch.js +35 -0
  463. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/get-pending-withdraw-requests-batch.js.map +1 -0
  464. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/index.d.ts +3 -0
  465. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/index.d.ts.map +1 -0
  466. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/limit-concurrency.d.ts +15 -0
  467. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/limit-concurrency.d.ts.map +1 -0
  468. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/limit-concurrency.js +20 -0
  469. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/limit-concurrency.js.map +1 -0
  470. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/query.d.ts +22 -0
  471. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/query.d.ts.map +1 -0
  472. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/query.js +30 -0
  473. package/dist/symmio-contracts/symmio/get-pending-withdraw-requests-batch/query.js.map +1 -0
  474. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/get-withdraw-cooldown-of.d.ts +30 -0
  475. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/get-withdraw-cooldown-of.d.ts.map +1 -0
  476. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/get-withdraw-cooldown-of.js +15 -0
  477. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/get-withdraw-cooldown-of.js.map +1 -0
  478. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/index.d.ts +3 -0
  479. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/index.d.ts.map +1 -0
  480. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/query.d.ts +38 -0
  481. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/query.d.ts.map +1 -0
  482. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/query.js +24 -0
  483. package/dist/symmio-contracts/symmio/get-withdraw-cooldown-of/query.js.map +1 -0
  484. package/dist/symmio-contracts/symmio/index.d.ts +6 -0
  485. package/dist/symmio-contracts/symmio/index.d.ts.map +1 -1
  486. package/dist/symmio-contracts/symmio/internal/call-as-sub-account.d.ts.map +1 -1
  487. package/dist/symmio-contracts/symmio/internal/call-as-sub-account.js +35 -34
  488. package/dist/symmio-contracts/symmio/internal/call-as-sub-account.js.map +1 -1
  489. package/dist/symmio-contracts/symmio/internal/resolve-default-operational-fee-charger.d.ts +18 -0
  490. package/dist/symmio-contracts/symmio/internal/resolve-default-operational-fee-charger.d.ts.map +1 -0
  491. package/dist/symmio-contracts/symmio/internal/resolve-default-operational-fee-charger.js +14 -0
  492. package/dist/symmio-contracts/symmio/internal/resolve-default-operational-fee-charger.js.map +1 -0
  493. package/dist/symmio-contracts/symmio/query/approve-operational-fee-allowance.d.ts +18 -0
  494. package/dist/symmio-contracts/symmio/query/approve-operational-fee-allowance.d.ts.map +1 -0
  495. package/dist/symmio-contracts/symmio/query/approve-operational-fee-allowance.js +12 -0
  496. package/dist/symmio-contracts/symmio/query/approve-operational-fee-allowance.js.map +1 -0
  497. package/dist/symmio-subgraph/executeSubgraphRequest.js +3 -3
  498. package/dist/timelock/approval.d.ts +142 -0
  499. package/dist/timelock/approval.d.ts.map +1 -0
  500. package/dist/timelock/approval.js +176 -0
  501. package/dist/timelock/approval.js.map +1 -0
  502. package/dist/timelock/attempt-outcome.d.ts +37 -0
  503. package/dist/timelock/attempt-outcome.d.ts.map +1 -0
  504. package/dist/timelock/attempt-outcome.js +70 -0
  505. package/dist/timelock/attempt-outcome.js.map +1 -0
  506. package/dist/timelock/confirm-write.d.ts +5 -0
  507. package/dist/timelock/confirm-write.d.ts.map +1 -0
  508. package/dist/timelock/confirm-write.js +18 -0
  509. package/dist/timelock/confirm-write.js.map +1 -0
  510. package/dist/timelock/early-withdraw/early-withdraw.d.ts +60 -0
  511. package/dist/timelock/early-withdraw/early-withdraw.d.ts.map +1 -0
  512. package/dist/timelock/early-withdraw/early-withdraw.js +94 -0
  513. package/dist/timelock/early-withdraw/early-withdraw.js.map +1 -0
  514. package/dist/timelock/early-withdraw/index.d.ts +2 -0
  515. package/dist/timelock/early-withdraw/index.d.ts.map +1 -0
  516. package/dist/timelock/errors.d.ts +23 -0
  517. package/dist/timelock/errors.d.ts.map +1 -0
  518. package/dist/timelock/errors.js +29 -0
  519. package/dist/timelock/errors.js.map +1 -0
  520. package/dist/timelock/execute-protected-batch.d.ts +31 -0
  521. package/dist/timelock/execute-protected-batch.d.ts.map +1 -0
  522. package/dist/timelock/execute-protected-batch.js +148 -0
  523. package/dist/timelock/execute-protected-batch.js.map +1 -0
  524. package/dist/timelock/execute-protected-call.d.ts +68 -0
  525. package/dist/timelock/execute-protected-call.d.ts.map +1 -0
  526. package/dist/timelock/execute-protected-call.js +146 -0
  527. package/dist/timelock/execute-protected-call.js.map +1 -0
  528. package/dist/timelock/execute-protected-function.d.ts +51 -0
  529. package/dist/timelock/execute-protected-function.d.ts.map +1 -0
  530. package/dist/timelock/execute-protected-function.js +37 -0
  531. package/dist/timelock/execute-protected-function.js.map +1 -0
  532. package/dist/timelock/get-timelock-policy/get-timelock-policy.d.ts +38 -0
  533. package/dist/timelock/get-timelock-policy/get-timelock-policy.d.ts.map +1 -0
  534. package/dist/timelock/get-timelock-policy/get-timelock-policy.js +49 -0
  535. package/dist/timelock/get-timelock-policy/get-timelock-policy.js.map +1 -0
  536. package/dist/timelock/get-timelock-policy/index.d.ts +3 -0
  537. package/dist/timelock/get-timelock-policy/index.d.ts.map +1 -0
  538. package/dist/timelock/get-timelock-policy/query.d.ts +13 -0
  539. package/dist/timelock/get-timelock-policy/query.d.ts.map +1 -0
  540. package/dist/timelock/get-timelock-policy/query.js +21 -0
  541. package/dist/timelock/get-timelock-policy/query.js.map +1 -0
  542. package/dist/timelock/index.d.ts +14 -0
  543. package/dist/timelock/index.d.ts.map +1 -0
  544. package/dist/timelock/normalize-timelock-revert.d.ts +3 -0
  545. package/dist/timelock/normalize-timelock-revert.d.ts.map +1 -0
  546. package/dist/timelock/normalize-timelock-revert.js +11 -0
  547. package/dist/timelock/normalize-timelock-revert.js.map +1 -0
  548. package/dist/timelock/policy-change.d.ts +72 -0
  549. package/dist/timelock/policy-change.d.ts.map +1 -0
  550. package/dist/timelock/policy-change.js +63 -0
  551. package/dist/timelock/policy-change.js.map +1 -0
  552. package/dist/timelock/policy.d.ts +19 -0
  553. package/dist/timelock/policy.d.ts.map +1 -0
  554. package/dist/timelock/policy.js +59 -0
  555. package/dist/timelock/policy.js.map +1 -0
  556. package/dist/timelock/protected-call-preflight.d.ts +10 -0
  557. package/dist/timelock/protected-call-preflight.d.ts.map +1 -0
  558. package/dist/timelock/protected-call-preflight.js +17 -0
  559. package/dist/timelock/protected-call-preflight.js.map +1 -0
  560. package/dist/timelock/root-account.d.ts +14 -0
  561. package/dist/timelock/root-account.d.ts.map +1 -0
  562. package/dist/timelock/root-account.js +9 -0
  563. package/dist/timelock/root-account.js.map +1 -0
  564. package/dist/timelock/scheduled-call-match.d.ts +4 -0
  565. package/dist/timelock/scheduled-call-match.d.ts.map +1 -0
  566. package/dist/timelock/scheduled-call-match.js +43 -0
  567. package/dist/timelock/scheduled-call-match.js.map +1 -0
  568. package/dist/timelock/setup-timelock-policy/index.d.ts +2 -0
  569. package/dist/timelock/setup-timelock-policy/index.d.ts.map +1 -0
  570. package/dist/timelock/setup-timelock-policy/setup-timelock-policy.d.ts +46 -0
  571. package/dist/timelock/setup-timelock-policy/setup-timelock-policy.d.ts.map +1 -0
  572. package/dist/timelock/setup-timelock-policy/setup-timelock-policy.js +58 -0
  573. package/dist/timelock/setup-timelock-policy/setup-timelock-policy.js.map +1 -0
  574. package/dist/timelock/support.d.ts +4 -0
  575. package/dist/timelock/support.d.ts.map +1 -0
  576. package/dist/timelock/support.js +9 -0
  577. package/dist/timelock/support.js.map +1 -0
  578. package/dist/transactions/execute-contract-write.d.ts +9 -0
  579. package/dist/transactions/execute-contract-write.d.ts.map +1 -0
  580. package/dist/transactions/execute-contract-write.js +35 -0
  581. package/dist/transactions/execute-contract-write.js.map +1 -0
  582. package/dist/transactions/execute-write.d.ts +32 -0
  583. package/dist/transactions/execute-write.d.ts.map +1 -0
  584. package/dist/transactions/execute-write.js +23 -0
  585. package/dist/transactions/execute-write.js.map +1 -0
  586. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { readHttpHeader as e } from "../utils/http-header.js";
2
- import { parseRetryAfterMs as t } from "./retry-after.js";
1
+ import { parseRetryAfterMs as e } from "./retry-after.js";
2
+ import { readHttpHeader as t } from "../utils/http-header.js";
3
3
  //#region src/shared/errors/symm-error.ts
4
4
  var n = class extends Error {
5
5
  name = "SymmError";
@@ -35,7 +35,7 @@ var n = class extends Error {
35
35
  responseData: n.response?.data,
36
36
  url: c,
37
37
  method: l,
38
- retryAfterMs: t(e(n.response?.headers, "retry-after")),
38
+ retryAfterMs: e(t(n.response?.headers, "retry-after")),
39
39
  cause: n
40
40
  });
41
41
  }
@@ -93,12 +93,6 @@ export type ReadSolverParameter = ChainIdParameter & SolverIdParameter;
93
93
  export type WriteContractParameter = ChainIdParameter & FromParameter & SimulateBeforeWriteParameter;
94
94
  /**
95
95
  * Per-call overrides for the transparent gasless execution mode.
96
- *
97
- * @remarks
98
- * There is deliberately no `idempotencyKey`: a relayed write signs a fresh
99
- * operation on every call, so one key can only ever describe one signature.
100
- * The dispatcher mints it, puts it on the acceptance event and the receipt, and
101
- * `resubmitGaslessRequest` is what replays a submit whose response was lost.
102
96
  */
103
97
  export interface GaslessWriteOptions {
104
98
  /** Force this call onto (`true`) or off (`false`) the gasless relay, overriding the config default. */
@@ -119,6 +113,48 @@ export interface GaslessWriteOptions {
119
113
  broadcastTimeoutMs?: number;
120
114
  /** Abort the relay wait (the accepted request keeps running server-side). */
121
115
  signal?: AbortSignal;
116
+ /**
117
+ * Your key for one user action: 1–128 characters, from
118
+ * `generateGaslessIdempotencyKey`. Save it with the action's recovery context
119
+ * before calling. While the service holds the key, a call under it is
120
+ * accepted at most once, so after an unknown outcome you may call the same
121
+ * write again with the same key, inside your retry window. A repeat whose
122
+ * earlier attempt reached the service gets that request back, whatever it
123
+ * sends, and the SDK follows it: the call returns or throws the earlier
124
+ * request's outcome, and nothing runs twice.
125
+ *
126
+ * A key is used up once its request ends: after `succeeded`, `failed`,
127
+ * `rejected` or `reverted`, the same key keeps returning that result, so
128
+ * trying again is a new action with a new key. Keys are global to the
129
+ * deployment, not per user. Use a new key for every new user action, even
130
+ * when the inputs are identical: a key reused for another action returns the
131
+ * old request's outcome for an action that never ran.
132
+ *
133
+ * A key makes the call strictly gasless: it never takes the wallet path and
134
+ * never falls back to it, whatever the chain's `execution` defaults say.
135
+ * Combining it with `enabled: false` or `fallback: "wallet"` throws
136
+ * `GASLESS_IDEMPOTENCY_KEY_INVALID` before any prompt. Decide the wallet path
137
+ * yourself with `isConfirmedGaslessRefusalError`.
138
+ *
139
+ * Omitted, the SDK creates one key per call, as before.
140
+ *
141
+ * @example
142
+ * ```ts
143
+ * const key = generateGaslessIdempotencyKey();
144
+ * await pendingActions.save({ key, ...recoveryContext });
145
+ * await createSubAccounts(config, { ...inputs, gasless: { account: payer, idempotencyKey: key } });
146
+ * ```
147
+ */
148
+ idempotencyKey?: string;
149
+ }
150
+ /**
151
+ * Optional caller-owned idempotency key for a gasless submit. Same contract as
152
+ * {@link GaslessWriteOptions.idempotencyKey}. Omitted, one key is generated per
153
+ * call.
154
+ */
155
+ export interface GaslessIdempotencyKeyParameter {
156
+ /** Your key for one user action: 1–128 characters, from `generateGaslessIdempotencyKey`. */
157
+ idempotencyKey?: string;
122
158
  }
123
159
  /**
124
160
  * Opt-in mixin for contract writes the gasless relay can carry. `gasless` is a
@@ -161,11 +197,12 @@ export type ExactPartial<type> = {
161
197
  * Recursive `Partial`. Used for per-chain config overrides passed to
162
198
  * {@link createConfig}, where a consumer may override a single nested address.
163
199
  *
164
- * Arrays are treated as leaves: an array-valued field stays optional but its
200
+ * Functions retain their callable signatures. Arrays are treated as leaves:
201
+ * an array-valued field stays optional but its
165
202
  * element type is left untouched (no `| undefined` is injected into items), so
166
203
  * an overriding array is replaced wholesale rather than partially patched.
167
204
  */
168
- export type DeepPartial<type> = type extends readonly unknown[] ? type : type extends object ? {
205
+ export type DeepPartial<type> = type extends (...args: never[]) => unknown ? type : type extends readonly unknown[] ? type : type extends object ? {
169
206
  [key in keyof type]?: DeepPartial<type[key]>;
170
207
  } : type;
171
208
  //# sourceMappingURL=properties.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/shared/types/properties.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,IAAI,IAAI;KAAG,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC;CAAE,GAAG,OAAO,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,aAAa;IAC5B,mHAAmH;IACnH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,4BAA4B;IAC3C,mJAAmJ;IACnJ,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAEvE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,aAAa,GAAG,4BAA4B,CAAC;AAErG;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAExF;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,IAAI,IAAI;KAC9B,GAAG,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS;CAC5C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,CAAC,IAAI,IAAI,IAAI,SAAS,SAAS,OAAO,EAAE,GAC3D,IAAI,GACJ,IAAI,SAAS,MAAM,GACjB;KAAG,GAAG,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;CAAE,GAChD,IAAI,CAAC"}
1
+ {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/shared/types/properties.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,IAAI,IAAI;KAAG,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC;CAAE,GAAG,OAAO,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,aAAa;IAC5B,mHAAmH;IACnH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,4BAA4B;IAC3C,mJAAmJ;IACnJ,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAEvE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,aAAa,GAAG,4BAA4B,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,uGAAuG;IACvG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAExF;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,IAAI,IAAI;KAC9B,GAAG,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS;CAC5C,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,CAAC,IAAI,IAAI,IAAI,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,GACtE,IAAI,GACJ,IAAI,SAAS,SAAS,OAAO,EAAE,GAC7B,IAAI,GACJ,IAAI,SAAS,MAAM,GACjB;KAAG,GAAG,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;CAAE,GAChD,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/solvers/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAO,GACzD,kBAAkB,CAWpB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAO,GACzD,OAAO,CAET;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAO,GACzD,OAAO,CAET"}
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/solvers/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAO,GACzD,kBAAkB,CAYpB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAO,GACzD,OAAO,CAET;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAO,GACzD,OAAO,CAET"}
@@ -8,13 +8,15 @@ function e(e, t = {}) {
8
8
  return {
9
9
  groupClose: n?.groupClose ?? !1,
10
10
  limitOrder: n?.limitOrder ?? !1,
11
- listingService: n?.listingService ?? !1
11
+ listingService: n?.listingService ?? !1,
12
+ timelockApproval: n?.timelockApproval ?? !1
12
13
  };
13
14
  } catch {
14
15
  return {
15
16
  groupClose: !1,
16
17
  limitOrder: !1,
17
- listingService: !1
18
+ listingService: !1,
19
+ timelockApproval: !1
18
20
  };
19
21
  }
20
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.js","names":[],"sources":["../../src/solvers/capabilities.ts"],"sourcesContent":["import type { SolverCapabilitiesConfig, SolverId } from \"../core/chains/types\";\nimport type { Config } from \"../core/config\";\n\n/**\n * A solver's capability flags **resolved** to definite booleans — the total\n * version of the declared {@link SolverCapabilitiesConfig} (unset flags default\n * to `false`). Derived from the config type so the two never drift.\n *\n * TP/SL is **not** here: it is inferred from the presence of the solver's `tpsl`\n * block rather than a `capabilities` flag — use `supportsTpSl` for it.\n */\nexport type SolverCapabilities = Required<SolverCapabilitiesConfig>;\n\n/**\n * Resolve a solver's capability flags. Non-throwing: an unknown chain/solver\n * yields all-`false`. Use it (or the {@link supportsGroupClose} /\n * {@link supportsLimitOrder} shorthands) to gate SDK flows and UI so an\n * unsupported solver degrades gracefully.\n *\n * @param config - The SDK config.\n * @param parameters - Optional `chainId` / `solverId`; both default to the chain's default solver.\n * @returns The resolved {@link SolverCapabilities}.\n *\n * @example\n * ```ts\n * const { groupClose } = getSolverCapabilities(config, { chainId });\n * if (!groupClose) hideGroupCloseButton();\n * ```\n */\nexport function getSolverCapabilities(\n config: Config,\n parameters: { chainId?: number; solverId?: SolverId } = {},\n): SolverCapabilities {\n try {\n const { capabilities } = config.getSolver({ chainId: parameters.chainId, solverId: parameters.solverId });\n return {\n groupClose: capabilities?.groupClose ?? false,\n limitOrder: capabilities?.limitOrder ?? false,\n listingService: capabilities?.listingService ?? false,\n };\n } catch {\n return { groupClose: false, limitOrder: false, listingService: false };\n }\n}\n\n/**\n * Whether the resolved solver supports {@link SolverCapabilities.groupClose}.\n * Shorthand for `getSolverCapabilities(config, p).groupClose`.\n *\n * @param config - The SDK config.\n * @param parameters - Optional `chainId` / `solverId`; both default to the chain's default solver.\n * @returns `true` when the solver supports group close.\n */\nexport function supportsGroupClose(\n config: Config,\n parameters: { chainId?: number; solverId?: SolverId } = {},\n): boolean {\n return getSolverCapabilities(config, parameters).groupClose;\n}\n\n/**\n * Whether the resolved solver supports {@link SolverCapabilities.limitOrder}.\n * Shorthand for `getSolverCapabilities(config, p).limitOrder`.\n *\n * @param config - The SDK config.\n * @param parameters - Optional `chainId` / `solverId`; both default to the chain's default solver.\n * @returns `true` when the solver supports limit orders.\n */\nexport function supportsLimitOrder(\n config: Config,\n parameters: { chainId?: number; solverId?: SolverId } = {},\n): boolean {\n return getSolverCapabilities(config, parameters).limitOrder;\n}\n"],"mappings":";AA6BA,SAAgB,EACd,GACA,IAAwD,CAAC,GACrC;CACpB,IAAI;EACF,IAAM,EAAE,oBAAiB,EAAO,UAAU;GAAE,SAAS,EAAW;GAAS,UAAU,EAAW;EAAS,CAAC;EACxG,OAAO;GACL,YAAY,GAAc,cAAc;GACxC,YAAY,GAAc,cAAc;GACxC,gBAAgB,GAAc,kBAAkB;EAClD;CACF,QAAQ;EACN,OAAO;GAAE,YAAY;GAAO,YAAY;GAAO,gBAAgB;EAAM;CACvE;AACF;AAUA,SAAgB,EACd,GACA,IAAwD,CAAC,GAChD;CACT,OAAO,EAAsB,GAAQ,CAAU,EAAE;AACnD;AAUA,SAAgB,EACd,GACA,IAAwD,CAAC,GAChD;CACT,OAAO,EAAsB,GAAQ,CAAU,EAAE;AACnD"}
1
+ {"version":3,"file":"capabilities.js","names":[],"sources":["../../src/solvers/capabilities.ts"],"sourcesContent":["import type { SolverCapabilitiesConfig, SolverId } from \"../core/chains/types\";\nimport type { Config } from \"../core/config\";\n\n/**\n * A solver's capability flags **resolved** to definite booleans — the total\n * version of the declared {@link SolverCapabilitiesConfig} (unset flags default\n * to `false`). Derived from the config type so the two never drift.\n *\n * TP/SL is **not** here: it is inferred from the presence of the solver's `tpsl`\n * block rather than a `capabilities` flag — use `supportsTpSl` for it.\n */\nexport type SolverCapabilities = Required<SolverCapabilitiesConfig>;\n\n/**\n * Resolve a solver's capability flags. Non-throwing: an unknown chain/solver\n * yields all-`false`. Use it (or the {@link supportsGroupClose} /\n * {@link supportsLimitOrder} shorthands) to gate SDK flows and UI so an\n * unsupported solver degrades gracefully.\n *\n * @param config - The SDK config.\n * @param parameters - Optional `chainId` / `solverId`; both default to the chain's default solver.\n * @returns The resolved {@link SolverCapabilities}.\n *\n * @example\n * ```ts\n * const { groupClose } = getSolverCapabilities(config, { chainId });\n * if (!groupClose) hideGroupCloseButton();\n * ```\n */\nexport function getSolverCapabilities(\n config: Config,\n parameters: { chainId?: number; solverId?: SolverId } = {},\n): SolverCapabilities {\n try {\n const { capabilities } = config.getSolver({ chainId: parameters.chainId, solverId: parameters.solverId });\n return {\n groupClose: capabilities?.groupClose ?? false,\n limitOrder: capabilities?.limitOrder ?? false,\n listingService: capabilities?.listingService ?? false,\n timelockApproval: capabilities?.timelockApproval ?? false,\n };\n } catch {\n return { groupClose: false, limitOrder: false, listingService: false, timelockApproval: false };\n }\n}\n\n/**\n * Whether the resolved solver supports {@link SolverCapabilities.groupClose}.\n * Shorthand for `getSolverCapabilities(config, p).groupClose`.\n *\n * @param config - The SDK config.\n * @param parameters - Optional `chainId` / `solverId`; both default to the chain's default solver.\n * @returns `true` when the solver supports group close.\n */\nexport function supportsGroupClose(\n config: Config,\n parameters: { chainId?: number; solverId?: SolverId } = {},\n): boolean {\n return getSolverCapabilities(config, parameters).groupClose;\n}\n\n/**\n * Whether the resolved solver supports {@link SolverCapabilities.limitOrder}.\n * Shorthand for `getSolverCapabilities(config, p).limitOrder`.\n *\n * @param config - The SDK config.\n * @param parameters - Optional `chainId` / `solverId`; both default to the chain's default solver.\n * @returns `true` when the solver supports limit orders.\n */\nexport function supportsLimitOrder(\n config: Config,\n parameters: { chainId?: number; solverId?: SolverId } = {},\n): boolean {\n return getSolverCapabilities(config, parameters).limitOrder;\n}\n"],"mappings":";AA6BA,SAAgB,EACd,GACA,IAAwD,CAAC,GACrC;CACpB,IAAI;EACF,IAAM,EAAE,oBAAiB,EAAO,UAAU;GAAE,SAAS,EAAW;GAAS,UAAU,EAAW;EAAS,CAAC;EACxG,OAAO;GACL,YAAY,GAAc,cAAc;GACxC,YAAY,GAAc,cAAc;GACxC,gBAAgB,GAAc,kBAAkB;GAChD,kBAAkB,GAAc,oBAAoB;EACtD;CACF,QAAQ;EACN,OAAO;GAAE,YAAY;GAAO,YAAY;GAAO,gBAAgB;GAAO,kBAAkB;EAAM;CAChG;AACF;AAUA,SAAgB,EACd,GACA,IAAwD,CAAC,GAChD;CACT,OAAO,EAAsB,GAAQ,CAAU,EAAE;AACnD;AAUA,SAAgB,EACd,GACA,IAAwD,CAAC,GAChD;CACT,OAAO,EAAsB,GAAQ,CAAU,EAAE;AACnD"}
@@ -28,8 +28,10 @@ export type GetEstimatedPriceParameters = Compute<ReadSolverParameter & {
28
28
  * Return type of {@link getEstimatedPrice}.
29
29
  */
30
30
  export interface GetEstimatedPriceReturnType {
31
- /** Estimated execution price (decimal string); `"0"` when the solver omits it. */
31
+ /** Shadow-inclusive execution price (decimal string); `"0"` when the solver omits it. Use for all trading calculations. */
32
32
  estimatedPrice: string;
33
+ /** Execution price without shadow, when supplied by the solver. Diagnostic only; never a trading-price fallback. */
34
+ estimatedPriceWithoutShadow?: string;
33
35
  }
34
36
  /**
35
37
  * Ask the solver what price an open or close would actually fill at — a
@@ -1 +1 @@
1
- {"version":3,"file":"get-estimated-price.d.ts","sourceRoot":"","sources":["../../../src/solvers/estimated-price/get-estimated-price.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,6EAA6E;AAC7E,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,mBAAmB,GAAG;IACpB,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,uDAAuD;IACvD,KAAK,EAAE,mBAAmB,CAAC;IAC3B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CACF,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,cAAc,EAAE,MAAM,CAAC;CACxB;AAOD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,2BAA2B,CAAC,CA2BtC"}
1
+ {"version":3,"file":"get-estimated-price.d.ts","sourceRoot":"","sources":["../../../src/solvers/estimated-price/get-estimated-price.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,6EAA6E;AAC7E,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,mBAAmB,GAAG;IACpB,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,uDAAuD;IACvD,KAAK,EAAE,mBAAmB,CAAC;IAC3B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CACF,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,2HAA2H;IAC3H,cAAc,EAAE,MAAM,CAAC;IACvB,oHAAoH;IACpH,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC;AAOD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,2BAA2B,CAAC,CA2BtC"}
@@ -1,19 +1,19 @@
1
1
  import { SymmApiError as e, SymmError as t } from "../../shared/errors/symm-error.js";
2
- import { PositionType as n } from "../../symmio-contracts/symmio/types.js";
2
+ import { assertSolverKind as n } from "../assert-solver-kind.js";
3
3
  import { getEstimatedPrice as r } from "../types/generated/enigma-solver.js";
4
- import { assertSolverKind as i } from "../assert-solver-kind.js";
4
+ import { PositionType as i } from "../../symmio-contracts/symmio/types.js";
5
5
  import { toEstimatedPrice as a } from "./to-estimated-price.js";
6
6
  import { isAxiosError as o } from "axios";
7
7
  //#region src/solvers/estimated-price/get-estimated-price.ts
8
8
  function s(e) {
9
- return e === n.SHORT ? "short" : "long";
9
+ return e === i.SHORT ? "short" : "long";
10
10
  }
11
- async function c(n, c) {
12
- let l = n.getSolver({
11
+ async function c(i, c) {
12
+ let l = i.getSolver({
13
13
  chainId: c.chainId,
14
14
  solverId: c.solverId
15
15
  });
16
- i(l, "enigma", "getEstimatedPrice");
16
+ n(l, "enigma", "getEstimatedPrice");
17
17
  try {
18
18
  return a((await r({
19
19
  symbol_id: c.symbolId,
@@ -1 +1 @@
1
- {"version":3,"file":"get-estimated-price.js","names":[],"sources":["../../../src/solvers/estimated-price/get-estimated-price.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { Compute, ReadSolverParameter } from \"../../shared/types/properties\";\nimport { PositionType } from \"../../symmio-contracts/symmio/types\";\nimport { assertSolverKind } from \"../assert-solver-kind\";\nimport { getEstimatedPrice as requestEstimatedPrice } from \"../types/generated/enigma-solver\";\nimport { toEstimatedPrice } from \"./to-estimated-price\";\n\n/** Whether a price estimate is for **opening** or **closing** a position. */\nexport type EstimatedPriceEntry = \"open\" | \"close\";\n\n/**\n * Parameters for {@link getEstimatedPrice}.\n */\nexport type GetEstimatedPriceParameters = Compute<\n ReadSolverParameter & {\n /** Solver market id. */\n symbolId: number;\n /** Order quantity (decimal string). */\n quantity: string;\n /** Long or short. */\n positionType: PositionType;\n /** Whether this estimate is for an open or a close. */\n entry: EstimatedPriceEntry;\n /**\n * The price **sent to the solver** — the slippage-adjusted request price the\n * caller computed for the open/close, **not** the raw mark price. The solver\n * prices the fill relative to it.\n */\n price: string;\n /** Cancels the underlying HTTP request; no timeout is imposed by default. */\n signal?: AbortSignal;\n }\n>;\n\n/**\n * Return type of {@link getEstimatedPrice}.\n */\nexport interface GetEstimatedPriceReturnType {\n /** Estimated execution price (decimal string); `\"0\"` when the solver omits it. */\n estimatedPrice: string;\n}\n\n/** Solver wire value for a position side (`\"long\"` / `\"short\"`). */\nfunction positionTypeToWire(positionType: PositionType): string {\n return positionType === PositionType.SHORT ? \"short\" : \"long\";\n}\n\n/**\n * Ask the solver what price an open or close would actually fill at — a\n * read-only simulation of the trade (`GET /estimated-price`; nothing is\n * submitted). Pass the order `quantity`, the side, whether it's an open or\n * close, and the slippage-adjusted request `price`; the solver returns the price\n * it would fill at, from which the UI derives price impact (see\n * {@link calculatePriceImpact}) and — for a close — an estimated PnL.\n *\n * @param config - The SDK config.\n * @param parameters - Market, quantity, side, entry (open/close), and request price.\n * @returns The estimated execution price.\n * @throws {SymmApiError} when the solver request fails.\n * @throws {SymmError} when the chain is unsupported.\n *\n * @example\n * ```ts\n * const { estimatedPrice } = await getEstimatedPrice(config, {\n * symbolId: 1,\n * quantity: \"1000\",\n * positionType: PositionType.LONG,\n * entry: \"open\",\n * price: requestPrice, // slippage-adjusted, from calculateTradeParams\n * });\n * ```\n */\nexport async function getEstimatedPrice(\n config: Config,\n parameters: GetEstimatedPriceParameters,\n): Promise<GetEstimatedPriceReturnType> {\n const solver = config.getSolver({ chainId: parameters.chainId, solverId: parameters.solverId });\n assertSolverKind(solver, \"enigma\", \"getEstimatedPrice\");\n try {\n const response = await requestEstimatedPrice(\n {\n symbol_id: parameters.symbolId,\n quantity: parameters.quantity,\n position_type: positionTypeToWire(parameters.positionType),\n entry: parameters.entry,\n price: parameters.price,\n },\n { baseURL: solver.url, signal: parameters.signal },\n );\n return toEstimatedPrice(response.data);\n } catch (err) {\n if (err instanceof SymmError) throw err;\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"FETCH_ESTIMATED_PRICE_FAILED\", baseURL: solver.url });\n }\n throw new SymmError(\n \"api\",\n \"FETCH_ESTIMATED_PRICE_FAILED\",\n `Failed to fetch estimated price: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;;AA6CA,SAAS,EAAmB,GAAoC;CAC9D,OAAO,MAAiB,EAAa,QAAQ,UAAU;AACzD;AA2BA,eAAsB,EACpB,GACA,GACsC;CACtC,IAAM,IAAS,EAAO,UAAU;EAAE,SAAS,EAAW;EAAS,UAAU,EAAW;CAAS,CAAC;CAC9F,EAAiB,GAAQ,UAAU,mBAAmB;CACtD,IAAI;EAWF,OAAO,GAAiB,MAVD,EACrB;GACE,WAAW,EAAW;GACtB,UAAU,EAAW;GACrB,eAAe,EAAmB,EAAW,YAAY;GACzD,OAAO,EAAW;GAClB,OAAO,EAAW;EACpB,GACA;GAAE,SAAS,EAAO;GAAK,QAAQ,EAAW;EAAO,CACnD,GACiC,IAAI;CACvC,SAAS,GAAK;EAKZ,MAJI,aAAe,IAAiB,IAChC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAAgC,SAAS,EAAO;EAAI,CAAC,IAE3F,IAAI,EACR,OACA,gCACA,oCAAoC,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KACnF,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
1
+ {"version":3,"file":"get-estimated-price.js","names":[],"sources":["../../../src/solvers/estimated-price/get-estimated-price.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { Compute, ReadSolverParameter } from \"../../shared/types/properties\";\nimport { PositionType } from \"../../symmio-contracts/symmio/types\";\nimport { assertSolverKind } from \"../assert-solver-kind\";\nimport { getEstimatedPrice as requestEstimatedPrice } from \"../types/generated/enigma-solver\";\nimport { toEstimatedPrice } from \"./to-estimated-price\";\n\n/** Whether a price estimate is for **opening** or **closing** a position. */\nexport type EstimatedPriceEntry = \"open\" | \"close\";\n\n/**\n * Parameters for {@link getEstimatedPrice}.\n */\nexport type GetEstimatedPriceParameters = Compute<\n ReadSolverParameter & {\n /** Solver market id. */\n symbolId: number;\n /** Order quantity (decimal string). */\n quantity: string;\n /** Long or short. */\n positionType: PositionType;\n /** Whether this estimate is for an open or a close. */\n entry: EstimatedPriceEntry;\n /**\n * The price **sent to the solver** — the slippage-adjusted request price the\n * caller computed for the open/close, **not** the raw mark price. The solver\n * prices the fill relative to it.\n */\n price: string;\n /** Cancels the underlying HTTP request; no timeout is imposed by default. */\n signal?: AbortSignal;\n }\n>;\n\n/**\n * Return type of {@link getEstimatedPrice}.\n */\nexport interface GetEstimatedPriceReturnType {\n /** Shadow-inclusive execution price (decimal string); `\"0\"` when the solver omits it. Use for all trading calculations. */\n estimatedPrice: string;\n /** Execution price without shadow, when supplied by the solver. Diagnostic only; never a trading-price fallback. */\n estimatedPriceWithoutShadow?: string;\n}\n\n/** Solver wire value for a position side (`\"long\"` / `\"short\"`). */\nfunction positionTypeToWire(positionType: PositionType): string {\n return positionType === PositionType.SHORT ? \"short\" : \"long\";\n}\n\n/**\n * Ask the solver what price an open or close would actually fill at — a\n * read-only simulation of the trade (`GET /estimated-price`; nothing is\n * submitted). Pass the order `quantity`, the side, whether it's an open or\n * close, and the slippage-adjusted request `price`; the solver returns the price\n * it would fill at, from which the UI derives price impact (see\n * {@link calculatePriceImpact}) and — for a close — an estimated PnL.\n *\n * @param config - The SDK config.\n * @param parameters - Market, quantity, side, entry (open/close), and request price.\n * @returns The estimated execution price.\n * @throws {SymmApiError} when the solver request fails.\n * @throws {SymmError} when the chain is unsupported.\n *\n * @example\n * ```ts\n * const { estimatedPrice } = await getEstimatedPrice(config, {\n * symbolId: 1,\n * quantity: \"1000\",\n * positionType: PositionType.LONG,\n * entry: \"open\",\n * price: requestPrice, // slippage-adjusted, from calculateTradeParams\n * });\n * ```\n */\nexport async function getEstimatedPrice(\n config: Config,\n parameters: GetEstimatedPriceParameters,\n): Promise<GetEstimatedPriceReturnType> {\n const solver = config.getSolver({ chainId: parameters.chainId, solverId: parameters.solverId });\n assertSolverKind(solver, \"enigma\", \"getEstimatedPrice\");\n try {\n const response = await requestEstimatedPrice(\n {\n symbol_id: parameters.symbolId,\n quantity: parameters.quantity,\n position_type: positionTypeToWire(parameters.positionType),\n entry: parameters.entry,\n price: parameters.price,\n },\n { baseURL: solver.url, signal: parameters.signal },\n );\n return toEstimatedPrice(response.data);\n } catch (err) {\n if (err instanceof SymmError) throw err;\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"FETCH_ESTIMATED_PRICE_FAILED\", baseURL: solver.url });\n }\n throw new SymmError(\n \"api\",\n \"FETCH_ESTIMATED_PRICE_FAILED\",\n `Failed to fetch estimated price: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;;AA+CA,SAAS,EAAmB,GAAoC;CAC9D,OAAO,MAAiB,EAAa,QAAQ,UAAU;AACzD;AA2BA,eAAsB,EACpB,GACA,GACsC;CACtC,IAAM,IAAS,EAAO,UAAU;EAAE,SAAS,EAAW;EAAS,UAAU,EAAW;CAAS,CAAC;CAC9F,EAAiB,GAAQ,UAAU,mBAAmB;CACtD,IAAI;EAWF,OAAO,GAAiB,MAVD,EACrB;GACE,WAAW,EAAW;GACtB,UAAU,EAAW;GACrB,eAAe,EAAmB,EAAW,YAAY;GACzD,OAAO,EAAW;GAClB,OAAO,EAAW;EACpB,GACA;GAAE,SAAS,EAAO;GAAK,QAAQ,EAAW;EAAO,CACnD,GACiC,IAAI;CACvC,SAAS,GAAK;EAKZ,MAJI,aAAe,IAAiB,IAChC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAAgC,SAAS,EAAO;EAAI,CAAC,IAE3F,IAAI,EACR,OACA,gCACA,oCAAoC,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KACnF,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
@@ -3,7 +3,8 @@ import { GetEstimatedPriceReturnType } from './get-estimated-price.js';
3
3
  /**
4
4
  * Map the generated `ApiGetEstimatedPriceResponse` into the SDK's
5
5
  * {@link GetEstimatedPriceReturnType}. A missing / empty `price` defaults to
6
- * `"0"`.
6
+ * `"0"`. The optional no-shadow price is diagnostic data and is never invented
7
+ * or substituted for the execution price.
7
8
  */
8
9
  export declare function toEstimatedPrice(raw: ApiGetEstimatedPriceResponse): GetEstimatedPriceReturnType;
9
10
  //# sourceMappingURL=to-estimated-price.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"to-estimated-price.d.ts","sourceRoot":"","sources":["../../../src/solvers/estimated-price/to-estimated-price.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,4BAA4B,GAAG,2BAA2B,CAE/F"}
1
+ {"version":3,"file":"to-estimated-price.d.ts","sourceRoot":"","sources":["../../../src/solvers/estimated-price/to-estimated-price.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,4BAA4B,GAAG,2BAA2B,CAO/F"}
@@ -1,6 +1,9 @@
1
1
  //#region src/solvers/estimated-price/to-estimated-price.ts
2
2
  function e(e) {
3
- return { estimatedPrice: typeof e.price == "string" && e.price.length > 0 ? e.price : "0" };
3
+ return {
4
+ estimatedPrice: typeof e.price == "string" && e.price.length > 0 ? e.price : "0",
5
+ ...typeof e.price_without_shadow == "string" && e.price_without_shadow.length > 0 ? { estimatedPriceWithoutShadow: e.price_without_shadow } : {}
6
+ };
4
7
  }
5
8
  //#endregion
6
9
  export { e as toEstimatedPrice };
@@ -1 +1 @@
1
- {"version":3,"file":"to-estimated-price.js","names":[],"sources":["../../../src/solvers/estimated-price/to-estimated-price.ts"],"sourcesContent":["import type { ApiGetEstimatedPriceResponse } from \"../types/generated/enigma-solver\";\nimport type { GetEstimatedPriceReturnType } from \"./get-estimated-price\";\n\n/**\n * Map the generated `ApiGetEstimatedPriceResponse` into the SDK's\n * {@link GetEstimatedPriceReturnType}. A missing / empty `price` defaults to\n * `\"0\"`.\n */\nexport function toEstimatedPrice(raw: ApiGetEstimatedPriceResponse): GetEstimatedPriceReturnType {\n return { estimatedPrice: typeof raw.price === \"string\" && raw.price.length > 0 ? raw.price : \"0\" };\n}\n"],"mappings":";AAQA,SAAgB,EAAiB,GAAgE;CAC/F,OAAO,EAAE,gBAAgB,OAAO,EAAI,SAAU,YAAY,EAAI,MAAM,SAAS,IAAI,EAAI,QAAQ,IAAI;AACnG"}
1
+ {"version":3,"file":"to-estimated-price.js","names":[],"sources":["../../../src/solvers/estimated-price/to-estimated-price.ts"],"sourcesContent":["import type { ApiGetEstimatedPriceResponse } from \"../types/generated/enigma-solver\";\nimport type { GetEstimatedPriceReturnType } from \"./get-estimated-price\";\n\n/**\n * Map the generated `ApiGetEstimatedPriceResponse` into the SDK's\n * {@link GetEstimatedPriceReturnType}. A missing / empty `price` defaults to\n * `\"0\"`. The optional no-shadow price is diagnostic data and is never invented\n * or substituted for the execution price.\n */\nexport function toEstimatedPrice(raw: ApiGetEstimatedPriceResponse): GetEstimatedPriceReturnType {\n return {\n estimatedPrice: typeof raw.price === \"string\" && raw.price.length > 0 ? raw.price : \"0\",\n ...(typeof raw.price_without_shadow === \"string\" && raw.price_without_shadow.length > 0\n ? { estimatedPriceWithoutShadow: raw.price_without_shadow }\n : {}),\n };\n}\n"],"mappings":";AASA,SAAgB,EAAiB,GAAgE;CAC/F,OAAO;EACL,gBAAgB,OAAO,EAAI,SAAU,YAAY,EAAI,MAAM,SAAS,IAAI,EAAI,QAAQ;EACpF,GAAI,OAAO,EAAI,wBAAyB,YAAY,EAAI,qBAAqB,SAAS,IAClF,EAAE,6BAA6B,EAAI,qBAAqB,IACxD,CAAC;CACP;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"force-close-auto.d.ts","sourceRoot":"","sources":["../../../src/solvers/force-close/force-close-auto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAI5G,OAAO,EAAsB,KAAK,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAQ/F;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,sBAAsB,GACpB,qBAAqB,GAAG;IACtB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACJ,CAAC;AAEF,6EAA6E;AAC7E,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,wBAAwB,GACnC,OAAO,CAAC,wBAAwB,CAAC,CA8GnC"}
1
+ {"version":3,"file":"force-close-auto.d.ts","sourceRoot":"","sources":["../../../src/solvers/force-close/force-close-auto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAIhD,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAI5G,OAAO,EAAsB,KAAK,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAQ/F;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,sBAAsB,GACpB,qBAAqB,GAAG;IACtB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACJ,CAAC;AAEF,6EAA6E;AAC7E,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,wBAAwB,GACnC,OAAO,CAAC,wBAAwB,CAAC,CAgHnC"}
@@ -1,81 +1,82 @@
1
1
  import { SymmError as e } from "../../shared/errors/symm-error.js";
2
- import { getQuote as t } from "../../symmio-contracts/symmio/actions/get-quote.js";
3
- import { getMarkets as n } from "../markets/get-markets.js";
4
- import { BINANCE_MAX_LIMIT as r, BINANCE_REST_URL as i } from "../../candles/sources/binance/constants.js";
5
- import { fetchBinanceKlines as a } from "../../candles/sources/binance/fetch-binance-klines.js";
6
- import { getForceClosePriceSig as o } from "../../muon/force-close-price-sig/get-force-close-price-sig.js";
7
- import { checkForceCloseEligibility as s, checkForceClosePriceReached as c, findForceCloseWindow as l } from "./force-close-math.js";
8
- import { forceClosePosition as u } from "./force-close-position.js";
9
- import { getForceCloseParams as d } from "./get-force-close-params.js";
2
+ import { withGaslessAttemptStart as t } from "../../gasless/dispatch/attempt-start.js";
3
+ import { getQuote as n } from "../../symmio-contracts/symmio/actions/get-quote.js";
4
+ import { getMarkets as r } from "../markets/get-markets.js";
5
+ import { BINANCE_MAX_LIMIT as i, BINANCE_REST_URL as a } from "../../candles/sources/binance/constants.js";
6
+ import { fetchBinanceKlines as o } from "../../candles/sources/binance/fetch-binance-klines.js";
7
+ import { getForceClosePriceSig as s } from "../../muon/force-close-price-sig/get-force-close-price-sig.js";
8
+ import { checkForceCloseEligibility as c, checkForceClosePriceReached as l, findForceCloseWindow as u } from "./force-close-math.js";
9
+ import { forceClosePosition as d } from "./force-close-position.js";
10
+ import { getForceCloseParams as f } from "./get-force-close-params.js";
10
11
  //#region src/solvers/force-close/force-close-auto.ts
11
- var f = "1m", p = 6e4, m = "usd-m-futures";
12
- async function h(h, g) {
13
- let { chainId: _, account: v, quoteId: y } = g, b = g.now ?? BigInt(Math.floor(Date.now() / 1e3)), x = await t(h, {
14
- quoteId: y,
15
- chainId: _
12
+ var p = "1m", m = 6e4, h = "usd-m-futures";
13
+ async function g(g, _) {
14
+ let { chainId: v, account: y, quoteId: b } = _, x = t(_.gasless), S = _.now ?? BigInt(Math.floor(Date.now() / 1e3)), C = await n(g, {
15
+ quoteId: b,
16
+ chainId: v
16
17
  });
17
- if (!x) throw new e("validation", "FORCE_CLOSE_QUOTE_NOT_FOUND", `No quote found for id ${y}.`);
18
- let S = await d(h, {
19
- symbolId: x.symbolId,
20
- chainId: _
21
- }), C = s({
22
- quote: x,
23
- firstCooldown: S.firstCooldown,
24
- secondCooldown: S.secondCooldown,
25
- minSigPeriod: S.minSigPeriod,
26
- now: b
18
+ if (!C) throw new e("validation", "FORCE_CLOSE_QUOTE_NOT_FOUND", `No quote found for id ${b}.`);
19
+ let w = await f(g, {
20
+ symbolId: C.symbolId,
21
+ chainId: v
22
+ }), T = c({
23
+ quote: C,
24
+ firstCooldown: w.firstCooldown,
25
+ secondCooldown: w.secondCooldown,
26
+ minSigPeriod: w.minSigPeriod,
27
+ now: S
27
28
  });
28
- if (!C.eligible) throw new e("validation", "FORCE_CLOSE_NOT_ELIGIBLE", `Quote ${y} is not force-closeable: ${C.reason}.`);
29
- let w = (await n(h, { chainId: _ })).find((e) => BigInt(e.symbolId) === x.symbolId);
30
- if (!w) throw new e("validation", "FORCE_CLOSE_MARKET_NOT_FOUND", `No market found for symbolId ${x.symbolId}.`);
31
- let T = x.statusModifyTimestamp + S.firstCooldown, E = b - S.secondCooldown;
32
- if (E <= T) throw new e("validation", "FORCE_CLOSE_NOT_ELIGIBLE", `Quote ${y} is not force-closeable: cooldown.`);
33
- let D = l({
34
- quote: x,
35
- candles: await a({
36
- restUrl: i[m],
37
- market: m,
38
- symbol: w.name.toUpperCase(),
39
- interval: f,
40
- startTime: Number(T) * 1e3,
41
- endTime: Number(E) * 1e3,
42
- limit: r[m]
29
+ if (!T.eligible) throw new e("validation", "FORCE_CLOSE_NOT_ELIGIBLE", `Quote ${b} is not force-closeable: ${T.reason}.`);
30
+ let E = (await r(g, { chainId: v })).find((e) => BigInt(e.symbolId) === C.symbolId);
31
+ if (!E) throw new e("validation", "FORCE_CLOSE_MARKET_NOT_FOUND", `No market found for symbolId ${C.symbolId}.`);
32
+ let D = C.statusModifyTimestamp + w.firstCooldown, O = S - w.secondCooldown;
33
+ if (O <= D) throw new e("validation", "FORCE_CLOSE_NOT_ELIGIBLE", `Quote ${b} is not force-closeable: cooldown.`);
34
+ let k = u({
35
+ quote: C,
36
+ candles: await o({
37
+ restUrl: a[h],
38
+ market: h,
39
+ symbol: E.name.toUpperCase(),
40
+ interval: p,
41
+ startTime: Number(D) * 1e3,
42
+ endTime: Number(O) * 1e3,
43
+ limit: i[h]
43
44
  }),
44
- gapRatio: S.gapRatio,
45
- firstCooldown: S.firstCooldown,
46
- secondCooldown: S.secondCooldown,
47
- now: b,
48
- intervalMs: p
45
+ gapRatio: w.gapRatio,
46
+ firstCooldown: w.firstCooldown,
47
+ secondCooldown: w.secondCooldown,
48
+ now: S,
49
+ intervalMs: m
49
50
  });
50
- if (!D && !g.skipPriceCheck) throw new e("validation", "FORCE_CLOSE_PRICE_NOT_REACHED", `The market has not reached the requested close price for quote ${y}.`);
51
- let O = D ?? {
52
- t0: T,
53
- t1: E
54
- }, k = await o(h, {
55
- t0: O.t0,
56
- t1: O.t1,
57
- partyA: v,
58
- partyB: x.partyB,
59
- symbolId: x.symbolId,
60
- chainId: _
51
+ if (!k && !_.skipPriceCheck) throw new e("validation", "FORCE_CLOSE_PRICE_NOT_REACHED", `The market has not reached the requested close price for quote ${b}.`);
52
+ let A = k ?? {
53
+ t0: D,
54
+ t1: O
55
+ }, j = await s(g, {
56
+ t0: A.t0,
57
+ t1: A.t1,
58
+ partyA: y,
59
+ partyB: C.partyB,
60
+ symbolId: C.symbolId,
61
+ chainId: v
61
62
  });
62
- if (!g.skipPriceCheck && !c({
63
- sig: k,
64
- positionType: x.positionType,
65
- requestedClosePrice: x.requestedClosePrice,
66
- gapRatio: S.gapRatio
67
- })) throw new e("validation", "FORCE_CLOSE_PRICE_NOT_REACHED", `The attested price range does not clear the gap for quote ${y}.`);
68
- return u(h, {
69
- account: v,
70
- quoteId: y,
71
- sig: k,
72
- chainId: _,
73
- from: g.from,
74
- simulateBeforeWrite: g.simulateBeforeWrite,
75
- gasless: g.gasless
63
+ if (!_.skipPriceCheck && !l({
64
+ sig: j,
65
+ positionType: C.positionType,
66
+ requestedClosePrice: C.requestedClosePrice,
67
+ gapRatio: w.gapRatio
68
+ })) throw new e("validation", "FORCE_CLOSE_PRICE_NOT_REACHED", `The attested price range does not clear the gap for quote ${b}.`);
69
+ return d(g, {
70
+ account: y,
71
+ quoteId: b,
72
+ sig: j,
73
+ chainId: v,
74
+ from: _.from,
75
+ simulateBeforeWrite: _.simulateBeforeWrite,
76
+ gasless: x
76
77
  });
77
78
  }
78
79
  //#endregion
79
- export { h as forceCloseAuto };
80
+ export { g as forceCloseAuto };
80
81
 
81
82
  //# sourceMappingURL=force-close-auto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"force-close-auto.js","names":[],"sources":["../../../src/solvers/force-close/force-close-auto.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport { BINANCE_MAX_LIMIT, BINANCE_REST_URL } from \"../../candles/sources/binance/constants\";\nimport { fetchBinanceKlines } from \"../../candles/sources/binance/fetch-binance-klines\";\nimport type { Config } from \"../../core/config\";\nimport { getForceClosePriceSig } from \"../../muon/force-close-price-sig/get-force-close-price-sig\";\nimport { SymmError } from \"../../shared/errors/symm-error\";\nimport type { Compute, GaslessWriteParameter, WriteContractParameter } from \"../../shared/types/properties\";\nimport { getQuote } from \"../../symmio-contracts/symmio/actions/get-quote\";\nimport { getMarkets } from \"../markets/get-markets\";\nimport { checkForceCloseEligibility, checkForceClosePriceReached, findForceCloseWindow } from \"./force-close-math\";\nimport { forceClosePosition, type ForceClosePositionReturnType } from \"./force-close-position\";\nimport { getForceCloseParams } from \"./get-force-close-params\";\n\n/** Candle interval used to scan for a valid force-close price window. */\nconst KLINE_INTERVAL = \"1m\";\nconst KLINE_INTERVAL_MS = 60_000;\nconst BINANCE_MARKET = \"usd-m-futures\" as const;\n\n/**\n * Parameters for {@link forceCloseAuto}.\n */\nexport type ForceCloseAutoParameters = Compute<\n WriteContractParameter &\n GaslessWriteParameter & {\n /**\n * The subaccount (partyA) that owns the position. Routed through the\n * AccountLayer `_call` proxy; the connected wallet must be its `owner`.\n */\n account: Address;\n /** The `CLOSE_PENDING` limit quote id to force-close. */\n quoteId: bigint;\n /** Override the current unix-second clock (testing). Defaults to `Date.now()`. */\n now?: bigint;\n /**\n * **Debug/temporary**: skip the client-side price checks — build and send the\n * tx even when the market has not reached the price. When no candle in the\n * window qualifies, the full valid window is used for the Muon sig instead of\n * bailing. Pair with `simulateBeforeWrite: false` to actually broadcast a tx\n * that will revert on-chain (so you can inspect it in an explorer).\n */\n skipPriceCheck?: boolean;\n }\n>;\n\n/** Return type of {@link forceCloseAuto}: the submitted transaction hash. */\nexport type ForceCloseAutoReturnType = ForceClosePositionReturnType;\n\n/**\n * Force-close a stalled `CLOSE_PENDING` **limit** position end-to-end, from just\n * the `quoteId`:\n *\n * 1. read the quote + the protocol force-close params (one multicall);\n * 2. gate on eligibility (status / order type / cooldown / not expired);\n * 3. fetch reference-exchange (Binance) candles over the valid window and find a\n * bar where the price reached the force-close level → the Muon time window;\n * 4. fetch the Muon `HighLowPriceSig` for that window;\n * 5. preflight the on-chain gap check against the sig;\n * 6. send `forceClosePosition(quoteId, sig)` through the AccountLayer proxy.\n *\n * Relayable: pass `gasless` (or run the chain in `gasless.execution.mode`) to\n * relay that final write instead of sending a transaction. Only step 6 touches\n * the chain — the reads, the candles and the Muon attestation never cost gas.\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - The owning subaccount, the quote id, optional `now` / `from` / pre-flight / chain id.\n * @returns The submitted transaction hash.\n * @throws {SymmError} `FORCE_CLOSE_NOT_ELIGIBLE` (with the blocking reason),\n * `FORCE_CLOSE_MARKET_NOT_FOUND`, or `FORCE_CLOSE_PRICE_NOT_REACHED`.\n *\n * @example\n * ```ts\n * const hash = await forceCloseAuto(config, { account: \"0xsub…\", quoteId: 42n });\n * ```\n */\nexport async function forceCloseAuto(\n config: Config,\n parameters: ForceCloseAutoParameters,\n): Promise<ForceCloseAutoReturnType> {\n const { chainId, account, quoteId } = parameters;\n const now = parameters.now ?? BigInt(Math.floor(Date.now() / 1000));\n\n const quote = await getQuote(config, { quoteId, chainId });\n if (!quote) {\n throw new SymmError(\"validation\", \"FORCE_CLOSE_QUOTE_NOT_FOUND\", `No quote found for id ${quoteId}.`);\n }\n const params = await getForceCloseParams(config, { symbolId: quote.symbolId, chainId });\n\n const eligibility = checkForceCloseEligibility({\n quote,\n firstCooldown: params.firstCooldown,\n secondCooldown: params.secondCooldown,\n minSigPeriod: params.minSigPeriod,\n now,\n });\n if (!eligibility.eligible) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_NOT_ELIGIBLE\",\n `Quote ${quoteId} is not force-closeable: ${eligibility.reason}.`,\n );\n }\n\n // Resolve the Binance symbol for this market (reference-exchange klines).\n const markets = await getMarkets(config, { chainId });\n const market = markets.find((entry) => BigInt(entry.symbolId) === quote.symbolId);\n if (!market) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_MARKET_NOT_FOUND\",\n `No market found for symbolId ${quote.symbolId}.`,\n );\n }\n\n const windowStart = quote.statusModifyTimestamp + params.firstCooldown;\n const windowEnd = now - params.secondCooldown;\n // Defensive: eligibility already guarantees a non-empty window, but never fetch\n // klines with `start > end` (Binance rejects it with \"Start time is greater than\n // end time\"). If we reach here with an empty window, the cooldown has not passed.\n if (windowEnd <= windowStart) {\n throw new SymmError(\"validation\", \"FORCE_CLOSE_NOT_ELIGIBLE\", `Quote ${quoteId} is not force-closeable: cooldown.`);\n }\n const candles = await fetchBinanceKlines({\n restUrl: BINANCE_REST_URL[BINANCE_MARKET],\n market: BINANCE_MARKET,\n symbol: market.name.toUpperCase(),\n interval: KLINE_INTERVAL,\n startTime: Number(windowStart) * 1000,\n endTime: Number(windowEnd) * 1000,\n limit: BINANCE_MAX_LIMIT[BINANCE_MARKET],\n });\n\n const matchedWindow = findForceCloseWindow({\n quote,\n candles,\n gapRatio: params.gapRatio,\n firstCooldown: params.firstCooldown,\n secondCooldown: params.secondCooldown,\n now,\n intervalMs: KLINE_INTERVAL_MS,\n });\n if (!matchedWindow && !parameters.skipPriceCheck) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_PRICE_NOT_REACHED\",\n `The market has not reached the requested close price for quote ${quoteId}.`,\n );\n }\n // No qualifying candle but `skipPriceCheck` — sign over the full valid window so\n // the tx can still be built (it will revert on-chain if the price isn't met).\n const window = matchedWindow ?? { t0: windowStart, t1: windowEnd };\n\n const sig = await getForceClosePriceSig(config, {\n t0: window.t0,\n t1: window.t1,\n partyA: account,\n partyB: quote.partyB,\n symbolId: quote.symbolId,\n chainId,\n });\n\n // Exact on-chain preflight against the fetched sig — avoids a wasted revert\n // (skipped when `skipPriceCheck`, so the tx is sent regardless).\n if (!parameters.skipPriceCheck) {\n const reached = checkForceClosePriceReached({\n sig,\n positionType: quote.positionType,\n requestedClosePrice: quote.requestedClosePrice,\n gapRatio: params.gapRatio,\n });\n if (!reached) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_PRICE_NOT_REACHED\",\n `The attested price range does not clear the gap for quote ${quoteId}.`,\n );\n }\n }\n\n return forceClosePosition(config, {\n account,\n quoteId,\n sig,\n chainId,\n from: parameters.from,\n simulateBeforeWrite: parameters.simulateBeforeWrite,\n gasless: parameters.gasless,\n });\n}\n"],"mappings":";;;;;;;;;;AAcA,IAAM,IAAiB,MACjB,IAAoB,KACpB,IAAiB;AA0DvB,eAAsB,EACpB,GACA,GACmC;CACnC,IAAM,EAAE,YAAS,YAAS,eAAY,GAChC,IAAM,EAAW,OAAO,OAAO,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,CAAC,GAE5D,IAAQ,MAAM,EAAS,GAAQ;EAAE;EAAS;CAAQ,CAAC;CACzD,IAAI,CAAC,GACH,MAAM,IAAI,EAAU,cAAc,+BAA+B,yBAAyB,EAAQ,EAAE;CAEtG,IAAM,IAAS,MAAM,EAAoB,GAAQ;EAAE,UAAU,EAAM;EAAU;CAAQ,CAAC,GAEhF,IAAc,EAA2B;EAC7C;EACA,eAAe,EAAO;EACtB,gBAAgB,EAAO;EACvB,cAAc,EAAO;EACrB;CACF,CAAC;CACD,IAAI,CAAC,EAAY,UACf,MAAM,IAAI,EACR,cACA,4BACA,SAAS,EAAQ,2BAA2B,EAAY,OAAO,EACjE;CAKF,IAAM,KAAS,MADO,EAAW,GAAQ,EAAE,WAAQ,CAAC,GAC7B,MAAM,MAAU,OAAO,EAAM,QAAQ,MAAM,EAAM,QAAQ;CAChF,IAAI,CAAC,GACH,MAAM,IAAI,EACR,cACA,gCACA,gCAAgC,EAAM,SAAS,EACjD;CAGF,IAAM,IAAc,EAAM,wBAAwB,EAAO,eACnD,IAAY,IAAM,EAAO;CAI/B,IAAI,KAAa,GACf,MAAM,IAAI,EAAU,cAAc,4BAA4B,SAAS,EAAQ,mCAAmC;CAYpH,IAAM,IAAgB,EAAqB;EACzC;EACA,SAAA,MAZoB,EAAmB;GACvC,SAAS,EAAiB;GAC1B,QAAQ;GACR,QAAQ,EAAO,KAAK,YAAY;GAChC,UAAU;GACV,WAAW,OAAO,CAAW,IAAI;GACjC,SAAS,OAAO,CAAS,IAAI;GAC7B,OAAO,EAAkB;EAC3B,CAAC;EAKC,UAAU,EAAO;EACjB,eAAe,EAAO;EACtB,gBAAgB,EAAO;EACvB;EACA,YAAY;CACd,CAAC;CACD,IAAI,CAAC,KAAiB,CAAC,EAAW,gBAChC,MAAM,IAAI,EACR,cACA,iCACA,kEAAkE,EAAQ,EAC5E;CAIF,IAAM,IAAS,KAAiB;EAAE,IAAI;EAAa,IAAI;CAAU,GAE3D,IAAM,MAAM,EAAsB,GAAQ;EAC9C,IAAI,EAAO;EACX,IAAI,EAAO;EACX,QAAQ;EACR,QAAQ,EAAM;EACd,UAAU,EAAM;EAChB;CACF,CAAC;CAID,IAAI,CAAC,EAAW,kBAOV,CANY,EAA4B;EAC1C;EACA,cAAc,EAAM;EACpB,qBAAqB,EAAM;EAC3B,UAAU,EAAO;CACnB,CACK,GACH,MAAM,IAAI,EACR,cACA,iCACA,6DAA6D,EAAQ,EACvE;CAIJ,OAAO,EAAmB,GAAQ;EAChC;EACA;EACA;EACA;EACA,MAAM,EAAW;EACjB,qBAAqB,EAAW;EAChC,SAAS,EAAW;CACtB,CAAC;AACH"}
1
+ {"version":3,"file":"force-close-auto.js","names":[],"sources":["../../../src/solvers/force-close/force-close-auto.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport { BINANCE_MAX_LIMIT, BINANCE_REST_URL } from \"../../candles/sources/binance/constants\";\nimport { fetchBinanceKlines } from \"../../candles/sources/binance/fetch-binance-klines\";\nimport type { Config } from \"../../core/config\";\nimport { withGaslessAttemptStart } from \"../../gasless/dispatch/attempt-start\";\nimport { getForceClosePriceSig } from \"../../muon/force-close-price-sig/get-force-close-price-sig\";\nimport { SymmError } from \"../../shared/errors/symm-error\";\nimport type { Compute, GaslessWriteParameter, WriteContractParameter } from \"../../shared/types/properties\";\nimport { getQuote } from \"../../symmio-contracts/symmio/actions/get-quote\";\nimport { getMarkets } from \"../markets/get-markets\";\nimport { checkForceCloseEligibility, checkForceClosePriceReached, findForceCloseWindow } from \"./force-close-math\";\nimport { forceClosePosition, type ForceClosePositionReturnType } from \"./force-close-position\";\nimport { getForceCloseParams } from \"./get-force-close-params\";\n\n/** Candle interval used to scan for a valid force-close price window. */\nconst KLINE_INTERVAL = \"1m\";\nconst KLINE_INTERVAL_MS = 60_000;\nconst BINANCE_MARKET = \"usd-m-futures\" as const;\n\n/**\n * Parameters for {@link forceCloseAuto}.\n */\nexport type ForceCloseAutoParameters = Compute<\n WriteContractParameter &\n GaslessWriteParameter & {\n /**\n * The subaccount (partyA) that owns the position. Routed through the\n * AccountLayer `_call` proxy; the connected wallet must be its `owner`.\n */\n account: Address;\n /** The `CLOSE_PENDING` limit quote id to force-close. */\n quoteId: bigint;\n /** Override the current unix-second clock (testing). Defaults to `Date.now()`. */\n now?: bigint;\n /**\n * **Debug/temporary**: skip the client-side price checks — build and send the\n * tx even when the market has not reached the price. When no candle in the\n * window qualifies, the full valid window is used for the Muon sig instead of\n * bailing. Pair with `simulateBeforeWrite: false` to actually broadcast a tx\n * that will revert on-chain (so you can inspect it in an explorer).\n */\n skipPriceCheck?: boolean;\n }\n>;\n\n/** Return type of {@link forceCloseAuto}: the submitted transaction hash. */\nexport type ForceCloseAutoReturnType = ForceClosePositionReturnType;\n\n/**\n * Force-close a stalled `CLOSE_PENDING` **limit** position end-to-end, from just\n * the `quoteId`:\n *\n * 1. read the quote + the protocol force-close params (one multicall);\n * 2. gate on eligibility (status / order type / cooldown / not expired);\n * 3. fetch reference-exchange (Binance) candles over the valid window and find a\n * bar where the price reached the force-close level → the Muon time window;\n * 4. fetch the Muon `HighLowPriceSig` for that window;\n * 5. preflight the on-chain gap check against the sig;\n * 6. send `forceClosePosition(quoteId, sig)` through the AccountLayer proxy.\n *\n * Relayable: pass `gasless` (or run the chain in `gasless.execution.mode`) to\n * relay that final write instead of sending a transaction. Only step 6 touches\n * the chain — the reads, the candles and the Muon attestation never cost gas.\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - The owning subaccount, the quote id, optional `now` / `from` / pre-flight / chain id.\n * @returns The submitted transaction hash.\n * @throws {SymmError} `FORCE_CLOSE_NOT_ELIGIBLE` (with the blocking reason),\n * `FORCE_CLOSE_MARKET_NOT_FOUND`, or `FORCE_CLOSE_PRICE_NOT_REACHED`.\n *\n * @example\n * ```ts\n * const hash = await forceCloseAuto(config, { account: \"0xsub…\", quoteId: 42n });\n * ```\n */\nexport async function forceCloseAuto(\n config: Config,\n parameters: ForceCloseAutoParameters,\n): Promise<ForceCloseAutoReturnType> {\n const { chainId, account, quoteId } = parameters;\n /** The quote, market, candle and Muon reads below count against the gasless signature lifetime. */\n const gasless = withGaslessAttemptStart(parameters.gasless);\n const now = parameters.now ?? BigInt(Math.floor(Date.now() / 1000));\n\n const quote = await getQuote(config, { quoteId, chainId });\n if (!quote) {\n throw new SymmError(\"validation\", \"FORCE_CLOSE_QUOTE_NOT_FOUND\", `No quote found for id ${quoteId}.`);\n }\n const params = await getForceCloseParams(config, { symbolId: quote.symbolId, chainId });\n\n const eligibility = checkForceCloseEligibility({\n quote,\n firstCooldown: params.firstCooldown,\n secondCooldown: params.secondCooldown,\n minSigPeriod: params.minSigPeriod,\n now,\n });\n if (!eligibility.eligible) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_NOT_ELIGIBLE\",\n `Quote ${quoteId} is not force-closeable: ${eligibility.reason}.`,\n );\n }\n\n // Resolve the Binance symbol for this market (reference-exchange klines).\n const markets = await getMarkets(config, { chainId });\n const market = markets.find((entry) => BigInt(entry.symbolId) === quote.symbolId);\n if (!market) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_MARKET_NOT_FOUND\",\n `No market found for symbolId ${quote.symbolId}.`,\n );\n }\n\n const windowStart = quote.statusModifyTimestamp + params.firstCooldown;\n const windowEnd = now - params.secondCooldown;\n // Defensive: eligibility already guarantees a non-empty window, but never fetch\n // klines with `start > end` (Binance rejects it with \"Start time is greater than\n // end time\"). If we reach here with an empty window, the cooldown has not passed.\n if (windowEnd <= windowStart) {\n throw new SymmError(\"validation\", \"FORCE_CLOSE_NOT_ELIGIBLE\", `Quote ${quoteId} is not force-closeable: cooldown.`);\n }\n const candles = await fetchBinanceKlines({\n restUrl: BINANCE_REST_URL[BINANCE_MARKET],\n market: BINANCE_MARKET,\n symbol: market.name.toUpperCase(),\n interval: KLINE_INTERVAL,\n startTime: Number(windowStart) * 1000,\n endTime: Number(windowEnd) * 1000,\n limit: BINANCE_MAX_LIMIT[BINANCE_MARKET],\n });\n\n const matchedWindow = findForceCloseWindow({\n quote,\n candles,\n gapRatio: params.gapRatio,\n firstCooldown: params.firstCooldown,\n secondCooldown: params.secondCooldown,\n now,\n intervalMs: KLINE_INTERVAL_MS,\n });\n if (!matchedWindow && !parameters.skipPriceCheck) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_PRICE_NOT_REACHED\",\n `The market has not reached the requested close price for quote ${quoteId}.`,\n );\n }\n // No qualifying candle but `skipPriceCheck` — sign over the full valid window so\n // the tx can still be built (it will revert on-chain if the price isn't met).\n const window = matchedWindow ?? { t0: windowStart, t1: windowEnd };\n\n const sig = await getForceClosePriceSig(config, {\n t0: window.t0,\n t1: window.t1,\n partyA: account,\n partyB: quote.partyB,\n symbolId: quote.symbolId,\n chainId,\n });\n\n // Exact on-chain preflight against the fetched sig — avoids a wasted revert\n // (skipped when `skipPriceCheck`, so the tx is sent regardless).\n if (!parameters.skipPriceCheck) {\n const reached = checkForceClosePriceReached({\n sig,\n positionType: quote.positionType,\n requestedClosePrice: quote.requestedClosePrice,\n gapRatio: params.gapRatio,\n });\n if (!reached) {\n throw new SymmError(\n \"validation\",\n \"FORCE_CLOSE_PRICE_NOT_REACHED\",\n `The attested price range does not clear the gap for quote ${quoteId}.`,\n );\n }\n }\n\n return forceClosePosition(config, {\n account,\n quoteId,\n sig,\n chainId,\n from: parameters.from,\n simulateBeforeWrite: parameters.simulateBeforeWrite,\n gasless,\n });\n}\n"],"mappings":";;;;;;;;;;;AAeA,IAAM,IAAiB,MACjB,IAAoB,KACpB,IAAiB;AA0DvB,eAAsB,EACpB,GACA,GACmC;CACnC,IAAM,EAAE,YAAS,YAAS,eAAY,GAEhC,IAAU,EAAwB,EAAW,OAAO,GACpD,IAAM,EAAW,OAAO,OAAO,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,CAAC,GAE5D,IAAQ,MAAM,EAAS,GAAQ;EAAE;EAAS;CAAQ,CAAC;CACzD,IAAI,CAAC,GACH,MAAM,IAAI,EAAU,cAAc,+BAA+B,yBAAyB,EAAQ,EAAE;CAEtG,IAAM,IAAS,MAAM,EAAoB,GAAQ;EAAE,UAAU,EAAM;EAAU;CAAQ,CAAC,GAEhF,IAAc,EAA2B;EAC7C;EACA,eAAe,EAAO;EACtB,gBAAgB,EAAO;EACvB,cAAc,EAAO;EACrB;CACF,CAAC;CACD,IAAI,CAAC,EAAY,UACf,MAAM,IAAI,EACR,cACA,4BACA,SAAS,EAAQ,2BAA2B,EAAY,OAAO,EACjE;CAKF,IAAM,KAAS,MADO,EAAW,GAAQ,EAAE,WAAQ,CAAC,GAC7B,MAAM,MAAU,OAAO,EAAM,QAAQ,MAAM,EAAM,QAAQ;CAChF,IAAI,CAAC,GACH,MAAM,IAAI,EACR,cACA,gCACA,gCAAgC,EAAM,SAAS,EACjD;CAGF,IAAM,IAAc,EAAM,wBAAwB,EAAO,eACnD,IAAY,IAAM,EAAO;CAI/B,IAAI,KAAa,GACf,MAAM,IAAI,EAAU,cAAc,4BAA4B,SAAS,EAAQ,mCAAmC;CAYpH,IAAM,IAAgB,EAAqB;EACzC;EACA,SAAA,MAZoB,EAAmB;GACvC,SAAS,EAAiB;GAC1B,QAAQ;GACR,QAAQ,EAAO,KAAK,YAAY;GAChC,UAAU;GACV,WAAW,OAAO,CAAW,IAAI;GACjC,SAAS,OAAO,CAAS,IAAI;GAC7B,OAAO,EAAkB;EAC3B,CAAC;EAKC,UAAU,EAAO;EACjB,eAAe,EAAO;EACtB,gBAAgB,EAAO;EACvB;EACA,YAAY;CACd,CAAC;CACD,IAAI,CAAC,KAAiB,CAAC,EAAW,gBAChC,MAAM,IAAI,EACR,cACA,iCACA,kEAAkE,EAAQ,EAC5E;CAIF,IAAM,IAAS,KAAiB;EAAE,IAAI;EAAa,IAAI;CAAU,GAE3D,IAAM,MAAM,EAAsB,GAAQ;EAC9C,IAAI,EAAO;EACX,IAAI,EAAO;EACX,QAAQ;EACR,QAAQ,EAAM;EACd,UAAU,EAAM;EAChB;CACF,CAAC;CAID,IAAI,CAAC,EAAW,kBAOV,CANY,EAA4B;EAC1C;EACA,cAAc,EAAM;EACpB,qBAAqB,EAAM;EAC3B,UAAU,EAAO;CACnB,CACK,GACH,MAAM,IAAI,EACR,cACA,iCACA,6DAA6D,EAAQ,EACvE;CAIJ,OAAO,EAAmB,GAAQ;EAChC;EACA;EACA;EACA;EACA,MAAM,EAAW;EACjB,qBAAqB,EAAW;EAChC;CACF,CAAC;AACH"}
@@ -1,6 +1,6 @@
1
1
  import { SymmApiError as e, SymmError as t } from "../../shared/errors/symm-error.js";
2
- import { getErrorMessageErrorCodesErrorCodeGet as n } from "../types/generated/rasa-solver.js";
3
- import { assertSolverKind as r } from "../assert-solver-kind.js";
2
+ import { assertSolverKind as n } from "../assert-solver-kind.js";
3
+ import { getErrorMessageErrorCodesErrorCodeGet as r } from "../types/generated/rasa-solver.js";
4
4
  import { isAxiosError as i } from "axios";
5
5
  //#region src/solvers/get-error-message/get-error-message.ts
6
6
  async function a(a, o) {
@@ -8,9 +8,9 @@ async function a(a, o) {
8
8
  chainId: o.chainId,
9
9
  solverId: o.solverId
10
10
  });
11
- r(s, "rasa", "getErrorMessage");
11
+ n(s, "rasa", "getErrorMessage");
12
12
  try {
13
- return (await n(o.errorCode, { baseURL: s.url })).data;
13
+ return (await r(o.errorCode, { baseURL: s.url })).data;
14
14
  } catch (n) {
15
15
  throw n instanceof t ? n : i(n) ? e.fromAxios(n, {
16
16
  code: "FETCH_ERROR_MESSAGE_FAILED",
@@ -1,6 +1,6 @@
1
1
  import { SymmApiError as e, SymmError as t } from "../../shared/errors/symm-error.js";
2
- import { getCounterpartyUpnlPartyAUpnlAddressGet as n } from "../types/generated/rasa-solver.js";
3
- import { assertSolverKind as r } from "../assert-solver-kind.js";
2
+ import { assertSolverKind as n } from "../assert-solver-kind.js";
3
+ import { getCounterpartyUpnlPartyAUpnlAddressGet as r } from "../types/generated/rasa-solver.js";
4
4
  import { isAxiosError as i } from "axios";
5
5
  //#region src/solvers/get-party-a-upnl/get-party-a-upnl.ts
6
6
  async function a(a, o) {
@@ -8,9 +8,9 @@ async function a(a, o) {
8
8
  chainId: o.chainId,
9
9
  solverId: o.solverId
10
10
  });
11
- r(s, "rasa", "getPartyAUpnl");
11
+ n(s, "rasa", "getPartyAUpnl");
12
12
  try {
13
- return (await n(o.address, { baseURL: s.url })).data;
13
+ return (await r(o.address, { baseURL: s.url })).data;
14
14
  } catch (n) {
15
15
  throw n instanceof t ? n : i(n) ? e.fromAxios(n, {
16
16
  code: "FETCH_PARTY_A_UPNL_FAILED",
@@ -1,6 +1,6 @@
1
1
  import { SymmApiError as e, SymmError as t } from "../../shared/errors/symm-error.js";
2
- import { getBalanceInfoGetBalanceInfoAddressMultiAccountAddressGet as n } from "../types/generated/rasa-solver.js";
3
- import { assertSolverKind as r } from "../assert-solver-kind.js";
2
+ import { assertSolverKind as n } from "../assert-solver-kind.js";
3
+ import { getBalanceInfoGetBalanceInfoAddressMultiAccountAddressGet as r } from "../types/generated/rasa-solver.js";
4
4
  import { isAxiosError as i } from "axios";
5
5
  //#region src/solvers/get-solver-balance-info/get-solver-balance-info.ts
6
6
  async function a(a, o) {
@@ -8,10 +8,10 @@ async function a(a, o) {
8
8
  chainId: o.chainId,
9
9
  solverId: o.solverId
10
10
  });
11
- r(s, "rasa", "getSolverBalanceInfo");
11
+ n(s, "rasa", "getSolverBalanceInfo");
12
12
  let c = o.multiAccountAddress ?? a.getChainConfig(o.chainId).addresses.accountLayerAddress;
13
13
  try {
14
- return (await n(o.address, c, { baseURL: s.url })).data;
14
+ return (await r(o.address, c, { baseURL: s.url })).data;
15
15
  } catch (n) {
16
16
  throw n instanceof t ? n : i(n) ? e.fromAxios(n, {
17
17
  code: "FETCH_SOLVER_BALANCE_INFO_FAILED",
@@ -1,12 +1,15 @@
1
1
  import { Config } from '../../core/config/index.js';
2
2
  import { Compute, ReadSolverParameter } from '../../shared/types/properties.js';
3
+ import { TimelockApprovalCapability } from '../../timelock/approval.js';
3
4
  /**
4
- * Static solver-fee configuration from the Enigma-only `GET /info` endpoint.
5
+ * Solver fees and optional deployment timelock capability from Enigma `GET /info`.
5
6
  *
6
7
  * A flat camelCase mirror of the wire shape; amounts are USD decimal strings
7
8
  * exactly as the solver reports them.
8
9
  */
9
10
  export interface EnigmaSolverInfo {
11
+ /** Deployment-specific timelock configuration; omitted by deployments without this capability. */
12
+ timelockApproval?: TimelockApprovalCapability;
10
13
  /**
11
14
  * Configured USD amount charged per instant open, before signed fee-cap
12
15
  * adjustments. `undefined` when the solver omits it.
@@ -28,7 +31,7 @@ export type GetSolverInfoReturnType = EnigmaSolverInfo;
28
31
  *
29
32
  * @param config - The SDK config.
30
33
  * @param parameters - Optional chain/solver.
31
- * @returns The solver's static fee configuration ({@link EnigmaSolverInfo}).
34
+ * @returns Static fees and optional validated timelock capability ({@link EnigmaSolverInfo}).
32
35
  * @throws {SymmError} `UNSUPPORTED_BY_SOLVER` when the resolved solver is not an `enigma` solver.
33
36
  * @throws {SymmApiError} when the API request fails.
34
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"get-solver-info.d.ts","sourceRoot":"","sources":["../../../src/solvers/get-solver-info/get-solver-info.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIlF;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,4CAA4C;AAC5C,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAEnE,4CAA4C;AAC5C,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEvD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,uBAA4B,GACvC,OAAO,CAAC,uBAAuB,CAAC,CAqBlC"}
1
+ {"version":3,"file":"get-solver-info.d.ts","sourceRoot":"","sources":["../../../src/solvers/get-solver-info/get-solver-info.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAK1E;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;IAC9C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,4CAA4C;AAC5C,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAEnE,4CAA4C;AAC5C,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEvD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,uBAA4B,GACvC,OAAO,CAAC,uBAAuB,CAAC,CAuBlC"}