@symmio/trading-core 4.1.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/dist/index.d.ts +17 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +108 -87
  4. package/dist/pools/add-market/to-created-pool.d.ts.map +1 -1
  5. package/dist/pools/add-market/to-created-pool.js +4 -0
  6. package/dist/pools/add-market/to-created-pool.js.map +1 -1
  7. package/dist/pools/add-market/types.d.ts +8 -0
  8. package/dist/pools/add-market/types.d.ts.map +1 -1
  9. package/dist/pools/auth/authenticate-listing.d.ts +3 -1
  10. package/dist/pools/auth/authenticate-listing.d.ts.map +1 -1
  11. package/dist/pools/auth/authenticate-listing.js +28 -23
  12. package/dist/pools/auth/authenticate-listing.js.map +1 -1
  13. package/dist/pools/auth/can-reuse-listing-challenge.d.ts +5 -0
  14. package/dist/pools/auth/can-reuse-listing-challenge.d.ts.map +1 -0
  15. package/dist/pools/auth/can-reuse-listing-challenge.js +9 -0
  16. package/dist/pools/auth/can-reuse-listing-challenge.js.map +1 -0
  17. package/dist/pools/auth/query.d.ts +15 -0
  18. package/dist/pools/auth/query.d.ts.map +1 -1
  19. package/dist/pools/auth/query.js +28 -4
  20. package/dist/pools/auth/query.js.map +1 -1
  21. package/dist/pools/auth/to-siwe.d.ts +5 -1
  22. package/dist/pools/auth/to-siwe.d.ts.map +1 -1
  23. package/dist/pools/auth/to-siwe.js +4 -2
  24. package/dist/pools/auth/to-siwe.js.map +1 -1
  25. package/dist/pools/auth/types.d.ts +2 -0
  26. package/dist/pools/auth/types.d.ts.map +1 -1
  27. package/dist/pools/cancel-withdraw/cancel-withdraw.js +1 -1
  28. package/dist/pools/cancel-withdraw/cancel-withdraw.js.map +1 -1
  29. package/dist/pools/claim-history/get-pool-claim.d.ts +11 -0
  30. package/dist/pools/claim-history/get-pool-claim.d.ts.map +1 -0
  31. package/dist/pools/claim-history/get-pool-claim.js +25 -0
  32. package/dist/pools/claim-history/get-pool-claim.js.map +1 -0
  33. package/dist/pools/claim-history/index.d.ts +1 -0
  34. package/dist/pools/claim-history/index.d.ts.map +1 -1
  35. package/dist/pools/claim-history/to-pool-claim.d.ts.map +1 -1
  36. package/dist/pools/claim-history/to-pool-claim.js +2 -0
  37. package/dist/pools/claim-history/to-pool-claim.js.map +1 -1
  38. package/dist/pools/composition.d.ts +16 -0
  39. package/dist/pools/composition.d.ts.map +1 -0
  40. package/dist/pools/composition.js +39 -0
  41. package/dist/pools/composition.js.map +1 -0
  42. package/dist/pools/empty-pool-profit.d.ts +4 -0
  43. package/dist/pools/empty-pool-profit.d.ts.map +1 -0
  44. package/dist/pools/empty-pool-profit.js +17 -0
  45. package/dist/pools/empty-pool-profit.js.map +1 -0
  46. package/dist/pools/index.d.ts +8 -0
  47. package/dist/pools/index.d.ts.map +1 -1
  48. package/dist/pools/listing-config/to-listing-config.d.ts +5 -1
  49. package/dist/pools/listing-config/to-listing-config.d.ts.map +1 -1
  50. package/dist/pools/listing-config/to-listing-config.js +19 -8
  51. package/dist/pools/listing-config/to-listing-config.js.map +1 -1
  52. package/dist/pools/maintenance-fees/get-pool-maintenance-fees.d.ts +37 -0
  53. package/dist/pools/maintenance-fees/get-pool-maintenance-fees.d.ts.map +1 -0
  54. package/dist/pools/maintenance-fees/get-pool-maintenance-fees.js +35 -0
  55. package/dist/pools/maintenance-fees/get-pool-maintenance-fees.js.map +1 -0
  56. package/dist/pools/maintenance-fees/index.d.ts +3 -0
  57. package/dist/pools/maintenance-fees/index.d.ts.map +1 -0
  58. package/dist/pools/maintenance-fees/query.d.ts +11 -0
  59. package/dist/pools/maintenance-fees/query.d.ts.map +1 -0
  60. package/dist/pools/maintenance-fees/query.js +21 -0
  61. package/dist/pools/maintenance-fees/query.js.map +1 -0
  62. package/dist/pools/market-config/to-listing-market-config.d.ts +6 -1
  63. package/dist/pools/market-config/to-listing-market-config.d.ts.map +1 -1
  64. package/dist/pools/market-config/to-listing-market-config.js +1 -0
  65. package/dist/pools/market-config/to-listing-market-config.js.map +1 -1
  66. package/dist/pools/market-config/types.d.ts +5 -0
  67. package/dist/pools/market-config/types.d.ts.map +1 -1
  68. package/dist/pools/market-config/types.js.map +1 -1
  69. package/dist/pools/market-data/get-pool-market-data.d.ts +14 -0
  70. package/dist/pools/market-data/get-pool-market-data.d.ts.map +1 -0
  71. package/dist/pools/market-data/get-pool-market-data.js +25 -0
  72. package/dist/pools/market-data/get-pool-market-data.js.map +1 -0
  73. package/dist/pools/market-data/index.d.ts +2 -0
  74. package/dist/pools/market-data/index.d.ts.map +1 -0
  75. package/dist/pools/market-detail/to-listing-market-detail.d.ts +5 -1
  76. package/dist/pools/market-detail/to-listing-market-detail.d.ts.map +1 -1
  77. package/dist/pools/market-detail/to-listing-market-detail.js +45 -33
  78. package/dist/pools/market-detail/to-listing-market-detail.js.map +1 -1
  79. package/dist/pools/markets/to-listing-market.d.ts +13 -1
  80. package/dist/pools/markets/to-listing-market.d.ts.map +1 -1
  81. package/dist/pools/markets/to-listing-market.js +24 -12
  82. package/dist/pools/markets/to-listing-market.js.map +1 -1
  83. package/dist/pools/open-positions/calculate-pool-open-positions.d.ts +39 -0
  84. package/dist/pools/open-positions/calculate-pool-open-positions.d.ts.map +1 -0
  85. package/dist/pools/open-positions/calculate-pool-open-positions.js +83 -0
  86. package/dist/pools/open-positions/calculate-pool-open-positions.js.map +1 -0
  87. package/dist/pools/open-positions/get-pool-open-positions.d.ts +17 -0
  88. package/dist/pools/open-positions/get-pool-open-positions.d.ts.map +1 -0
  89. package/dist/pools/open-positions/get-pool-open-positions.js +39 -0
  90. package/dist/pools/open-positions/get-pool-open-positions.js.map +1 -0
  91. package/dist/pools/open-positions/index.d.ts +4 -0
  92. package/dist/pools/open-positions/index.d.ts.map +1 -0
  93. package/dist/pools/open-positions/query.d.ts +17 -0
  94. package/dist/pools/open-positions/query.d.ts.map +1 -0
  95. package/dist/pools/open-positions/query.js +21 -0
  96. package/dist/pools/open-positions/query.js.map +1 -0
  97. package/dist/pools/portfolio/calculate-pool-portfolio.d.ts +66 -0
  98. package/dist/pools/portfolio/calculate-pool-portfolio.d.ts.map +1 -0
  99. package/dist/pools/portfolio/calculate-pool-portfolio.js +96 -0
  100. package/dist/pools/portfolio/calculate-pool-portfolio.js.map +1 -0
  101. package/dist/pools/portfolio/get-pool-portfolio.d.ts +19 -0
  102. package/dist/pools/portfolio/get-pool-portfolio.d.ts.map +1 -0
  103. package/dist/pools/portfolio/get-pool-portfolio.js +88 -0
  104. package/dist/pools/portfolio/get-pool-portfolio.js.map +1 -0
  105. package/dist/pools/portfolio/index.d.ts +4 -0
  106. package/dist/pools/portfolio/index.d.ts.map +1 -0
  107. package/dist/pools/portfolio/query.d.ts +17 -0
  108. package/dist/pools/portfolio/query.d.ts.map +1 -0
  109. package/dist/pools/portfolio/query.js +21 -0
  110. package/dist/pools/portfolio/query.js.map +1 -0
  111. package/dist/pools/portfolio/read-positions.d.ts +4 -0
  112. package/dist/pools/portfolio/read-positions.d.ts.map +1 -0
  113. package/dist/pools/portfolio/read-positions.js +31 -0
  114. package/dist/pools/portfolio/read-positions.js.map +1 -0
  115. package/dist/pools/position/calculate-pool-position.d.ts +85 -0
  116. package/dist/pools/position/calculate-pool-position.d.ts.map +1 -0
  117. package/dist/pools/position/calculate-pool-position.js +59 -0
  118. package/dist/pools/position/calculate-pool-position.js.map +1 -0
  119. package/dist/pools/position/get-pool-position.d.ts +22 -0
  120. package/dist/pools/position/get-pool-position.d.ts.map +1 -0
  121. package/dist/pools/position/get-pool-position.js +47 -0
  122. package/dist/pools/position/get-pool-position.js.map +1 -0
  123. package/dist/pools/position/index.d.ts +4 -0
  124. package/dist/pools/position/index.d.ts.map +1 -0
  125. package/dist/pools/position/query.d.ts +17 -0
  126. package/dist/pools/position/query.d.ts.map +1 -0
  127. package/dist/pools/position/query.js +21 -0
  128. package/dist/pools/position/query.js.map +1 -0
  129. package/dist/pools/position/sum-deposits.d.ts +10 -0
  130. package/dist/pools/position/sum-deposits.d.ts.map +1 -0
  131. package/dist/pools/position/sum-deposits.js +35 -0
  132. package/dist/pools/position/sum-deposits.js.map +1 -0
  133. package/dist/pools/profit/get-user-profit.d.ts +4 -0
  134. package/dist/pools/profit/get-user-profit.d.ts.map +1 -1
  135. package/dist/pools/profit/get-user-profit.js +18 -12
  136. package/dist/pools/profit/get-user-profit.js.map +1 -1
  137. package/dist/pools/profit/to-user-pool-profit.d.ts +22 -4
  138. package/dist/pools/profit/to-user-pool-profit.d.ts.map +1 -1
  139. package/dist/pools/profit/to-user-pool-profit.js +28 -12
  140. package/dist/pools/profit/to-user-pool-profit.js.map +1 -1
  141. package/dist/pools/quotes/get-pool-quotes.d.ts +8 -1
  142. package/dist/pools/quotes/get-pool-quotes.d.ts.map +1 -1
  143. package/dist/pools/quotes/get-pool-quotes.js +8 -1
  144. package/dist/pools/quotes/get-pool-quotes.js.map +1 -1
  145. package/dist/pools/quotes/query-document.d.ts.map +1 -1
  146. package/dist/pools/quotes/query-document.js +1 -1
  147. package/dist/pools/quotes/query-document.js.map +1 -1
  148. package/dist/pools/quotes/to-pool-quote.d.ts.map +1 -1
  149. package/dist/pools/quotes/to-pool-quote.js +13 -0
  150. package/dist/pools/quotes/to-pool-quote.js.map +1 -1
  151. package/dist/pools/rewards/query.js +25 -25
  152. package/dist/pools/statistics/calculate-pool-statistics.d.ts +69 -0
  153. package/dist/pools/statistics/calculate-pool-statistics.d.ts.map +1 -0
  154. package/dist/pools/statistics/calculate-pool-statistics.js +42 -0
  155. package/dist/pools/statistics/calculate-pool-statistics.js.map +1 -0
  156. package/dist/pools/statistics/get-pool-statistics.d.ts +29 -0
  157. package/dist/pools/statistics/get-pool-statistics.d.ts.map +1 -0
  158. package/dist/pools/statistics/get-pool-statistics.js +61 -0
  159. package/dist/pools/statistics/get-pool-statistics.js.map +1 -0
  160. package/dist/pools/statistics/index.d.ts +4 -0
  161. package/dist/pools/statistics/index.d.ts.map +1 -0
  162. package/dist/pools/statistics/query.d.ts +17 -0
  163. package/dist/pools/statistics/query.d.ts.map +1 -0
  164. package/dist/pools/statistics/query.js +21 -0
  165. package/dist/pools/statistics/query.js.map +1 -0
  166. package/dist/pools/token-metadata/get-listing-token-metadata.d.ts +32 -0
  167. package/dist/pools/token-metadata/get-listing-token-metadata.d.ts.map +1 -0
  168. package/dist/pools/token-metadata/get-listing-token-metadata.js +43 -0
  169. package/dist/pools/token-metadata/get-listing-token-metadata.js.map +1 -0
  170. package/dist/pools/token-metadata/index.d.ts +3 -0
  171. package/dist/pools/token-metadata/index.d.ts.map +1 -0
  172. package/dist/pools/token-metadata/query.d.ts +11 -0
  173. package/dist/pools/token-metadata/query.d.ts.map +1 -0
  174. package/dist/pools/token-metadata/query.js +21 -0
  175. package/dist/pools/token-metadata/query.js.map +1 -0
  176. package/dist/pools/token-support/check-listing-token-support.d.ts +23 -0
  177. package/dist/pools/token-support/check-listing-token-support.d.ts.map +1 -0
  178. package/dist/pools/token-support/check-listing-token-support.js +36 -0
  179. package/dist/pools/token-support/check-listing-token-support.js.map +1 -0
  180. package/dist/pools/token-support/index.d.ts +3 -0
  181. package/dist/pools/token-support/index.d.ts.map +1 -0
  182. package/dist/pools/token-support/query.d.ts +11 -0
  183. package/dist/pools/token-support/query.d.ts.map +1 -0
  184. package/dist/pools/token-support/query.js +21 -0
  185. package/dist/pools/token-support/query.js.map +1 -0
  186. package/dist/pools/trade-history/calculate-history-metrics.d.ts +12 -0
  187. package/dist/pools/trade-history/calculate-history-metrics.d.ts.map +1 -0
  188. package/dist/pools/trade-history/calculate-history-metrics.js +36 -0
  189. package/dist/pools/trade-history/calculate-history-metrics.js.map +1 -0
  190. package/dist/pools/trade-history/get-pool-trade-history.d.ts +21 -1
  191. package/dist/pools/trade-history/get-pool-trade-history.d.ts.map +1 -1
  192. package/dist/pools/trade-history/get-pool-trade-history.js +57 -18
  193. package/dist/pools/trade-history/get-pool-trade-history.js.map +1 -1
  194. package/dist/pools/trade-history/query-document.d.ts.map +1 -1
  195. package/dist/pools/trade-history/query-document.js +1 -1
  196. package/dist/pools/trade-history/query-document.js.map +1 -1
  197. package/dist/pools/transactions/get-pool-transaction-range.d.ts +6 -0
  198. package/dist/pools/transactions/get-pool-transaction-range.d.ts.map +1 -0
  199. package/dist/pools/transactions/get-pool-transaction-range.js +26 -0
  200. package/dist/pools/transactions/get-pool-transaction-range.js.map +1 -0
  201. package/dist/pools/transactions/index.d.ts +1 -0
  202. package/dist/pools/transactions/index.d.ts.map +1 -1
  203. package/dist/pools/types/generated/listing-backend.js +34 -10
  204. package/dist/pools/types/generated/listing-backend.js.map +1 -1
  205. package/dist/pools/types.d.ts +129 -6
  206. package/dist/pools/types.d.ts.map +1 -1
  207. package/dist/pools/types.js.map +1 -1
  208. package/dist/pools/user-markets/get-user-listing-markets.d.ts +2 -0
  209. package/dist/pools/user-markets/get-user-listing-markets.d.ts.map +1 -1
  210. package/dist/pools/user-markets/get-user-listing-markets.js.map +1 -1
  211. package/dist/pools/user-markets/to-user-listing-market.js +1 -1
  212. package/dist/pools/user-markets/to-user-listing-market.js.map +1 -1
  213. package/dist/pools/user-transactions/get-user-transactions.d.ts +2 -0
  214. package/dist/pools/user-transactions/get-user-transactions.d.ts.map +1 -1
  215. package/dist/pools/user-transactions/get-user-transactions.js.map +1 -1
  216. package/dist/pools/user-transactions/to-user-transaction.d.ts +5 -1
  217. package/dist/pools/user-transactions/to-user-transaction.d.ts.map +1 -1
  218. package/dist/pools/user-transactions/to-user-transaction.js +3 -0
  219. package/dist/pools/user-transactions/to-user-transaction.js.map +1 -1
  220. package/dist/quotes/liquidation/calculate-liquidation-price.d.ts +5 -1
  221. package/dist/quotes/liquidation/calculate-liquidation-price.d.ts.map +1 -1
  222. package/dist/quotes/liquidation/calculate-liquidation-price.js +1 -1
  223. package/dist/quotes/liquidation/calculate-liquidation-price.js.map +1 -1
  224. package/dist/quotes/upnl/calculate-quote-pnl.d.ts.map +1 -1
  225. package/dist/quotes/upnl/calculate-quote-pnl.js +8 -8
  226. package/dist/quotes/upnl/calculate-quote-pnl.js.map +1 -1
  227. package/dist/quotes/upnl/calculate-quote-upnl.d.ts +2 -2
  228. package/dist/quotes/upnl/calculate-quote-upnl.d.ts.map +1 -1
  229. package/dist/quotes/upnl/calculate-quote-upnl.js +16 -15
  230. package/dist/quotes/upnl/calculate-quote-upnl.js.map +1 -1
  231. package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +2 -2
  232. package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts.map +1 -1
  233. package/dist/symmio-subgraph/types/generated/analytics/gql.js +2 -2
  234. package/dist/symmio-subgraph/types/generated/analytics/gql.js.map +1 -1
  235. package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts +21 -0
  236. package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts.map +1 -1
  237. package/dist/symmio-subgraph/types/generated/analytics/graphql.js +1 -1
  238. package/dist/symmio-subgraph/types/generated/analytics/graphql.js.map +1 -1
  239. package/dist/tpsl/assert-tpsl-acceptance.d.ts +3 -0
  240. package/dist/tpsl/assert-tpsl-acceptance.d.ts.map +1 -0
  241. package/dist/tpsl/assert-tpsl-acceptance.js +14 -0
  242. package/dist/tpsl/assert-tpsl-acceptance.js.map +1 -0
  243. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts +4 -3
  244. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts.map +1 -1
  245. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js +9 -11
  246. package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js.map +1 -1
  247. package/dist/tpsl/delete-quote-tpsl/query.d.ts +4 -0
  248. package/dist/tpsl/delete-quote-tpsl/query.d.ts.map +1 -1
  249. package/dist/tpsl/delete-quote-tpsl/query.js +1 -0
  250. package/dist/tpsl/delete-quote-tpsl/query.js.map +1 -1
  251. package/dist/tpsl/search-tpsl-orders/search-tpsl-orders.d.ts.map +1 -1
  252. package/dist/tpsl/search-tpsl-orders/search-tpsl-orders.js +31 -28
  253. package/dist/tpsl/search-tpsl-orders/search-tpsl-orders.js.map +1 -1
  254. package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.d.ts +1 -1
  255. package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.d.ts.map +1 -1
  256. package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.js +9 -7
  257. package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.js.map +1 -1
  258. package/dist/tpsl/set-quote-tpsl/query.d.ts +4 -0
  259. package/dist/tpsl/set-quote-tpsl/query.d.ts.map +1 -1
  260. package/dist/tpsl/set-quote-tpsl/query.js +1 -0
  261. package/dist/tpsl/set-quote-tpsl/query.js.map +1 -1
  262. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.d.ts +3 -3
  263. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.d.ts.map +1 -1
  264. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.js +42 -40
  265. package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.js.map +1 -1
  266. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -511,90 +511,111 @@ import { addMarketMutationOptions as up } from "./pools/add-market/query.js";
511
511
  import { toListingAuthToken as dp, toListingSignInMessage as fp } from "./pools/auth/to-siwe.js";
512
512
  import { getListingSignInMessage as pp } from "./pools/auth/get-sign-in-message.js";
513
513
  import { authenticateListing as mp } from "./pools/auth/authenticate-listing.js";
514
- import { authenticateListingMutationOptions as hp } from "./pools/auth/query.js";
515
- import { toCancelWithdrawResult as gp } from "./pools/cancel-withdraw/to-cancel-withdraw-result.js";
516
- import { cancelWithdraw as _p } from "./pools/cancel-withdraw/cancel-withdraw.js";
517
- import { cancelWithdrawMutationOptions as vp } from "./pools/cancel-withdraw/query.js";
518
- import { toClaimRequest as yp } from "./pools/claim/to-claim-request.js";
519
- import { LISTING_VALUE_DECIMALS as bp, ListingDepositChainId as xp, ListingMarketStatus as Sp, MarketLockReason as Cp, PoolPositionSide as wp, PoolTransactionStatus as Tp, PoolTransactionType as Ep, TokenPriceChain as Dp } from "./pools/types.js";
520
- import { parseListingValue as Op, toListingMarket as kp, toListingMarketPage as Ap, toListingValue as jp } from "./pools/markets/to-listing-market.js";
521
- import { toClaimResult as Mp } from "./pools/claim/to-claim-result.js";
522
- import { claimProfit as Np } from "./pools/claim/claim-profit.js";
523
- import { claimProfitMutationOptions as Pp } from "./pools/claim/query.js";
524
- import { toPoolClaim as Fp, toPoolClaimHistoryPage as Ip } from "./pools/claim-history/to-pool-claim.js";
525
- import { getClaimHistory as Lp } from "./pools/claim-history/get-claim-history.js";
526
- import { getClaimHistoryQueryKey as Rp, getClaimHistoryQueryOptions as zp } from "./pools/claim-history/query.js";
527
- import { toMarketDepositAddress as Bp } from "./pools/deposit-address/to-market-deposit-address.js";
528
- import { getDepositAddress as Vp } from "./pools/deposit-address/get-deposit-address.js";
529
- import { getDepositAddressQueryKey as Hp, getDepositAddressQueryOptions as Up } from "./pools/deposit-address/query.js";
530
- import { toListingConfig as Wp } from "./pools/listing-config/to-listing-config.js";
531
- import { getListingConfig as Gp } from "./pools/listing-config/get-listing-config.js";
532
- import { getListingConfigQueryKey as Kp, getListingConfigQueryOptions as qp } from "./pools/listing-config/query.js";
533
- import { toListingStatus as Jp } from "./pools/listing-status/to-listing-status.js";
534
- import { getListingStatus as Yp } from "./pools/listing-status/get-listing-status.js";
535
- import { getListingStatusQueryKey as Xp, getListingStatusQueryOptions as Zp } from "./pools/listing-status/query.js";
536
- import { toListingMarketConfig as Qp } from "./pools/market-config/to-listing-market-config.js";
537
- import { getListingMarketConfig as $p } from "./pools/market-config/get-listing-market-config.js";
538
- import { projectListingMarketConfig as em } from "./pools/market-config/project-listing-market-config.js";
539
- import { toUpdateListingMarketConfigRequest as tm } from "./pools/market-config/to-update-listing-market-config-request.js";
540
- import { updateListingMarketConfig as nm } from "./pools/market-config/update-listing-market-config.js";
541
- import { getListingMarketConfigQueryKey as rm, getListingMarketConfigQueryOptions as im, updateListingMarketConfigMutationOptions as am } from "./pools/market-config/query.js";
542
- import { LISTING_MARKET_CONFIG_BOUNDS as om } from "./pools/market-config/types.js";
543
- import { toListingMarketDetail as sm } from "./pools/market-detail/to-listing-market-detail.js";
544
- import { getListingMarketDetail as cm } from "./pools/market-detail/get-listing-market-detail.js";
545
- import { getListingMarketDetailQueryKey as lm, getListingMarketDetailQueryOptions as um } from "./pools/market-detail/query.js";
546
- import { toPoolPositions as dm } from "./pools/market-detail/to-pool-positions.js";
547
- import { getListingMarkets as fm } from "./pools/markets/get-listing-markets.js";
548
- import { getListingMarketsQueryKey as pm, getListingMarketsQueryOptions as mm } from "./pools/markets/query.js";
549
- import { toUserPoolProfit as hm } from "./pools/profit/to-user-pool-profit.js";
550
- import { getUserProfit as gm } from "./pools/profit/get-user-profit.js";
551
- import { getUserProfitQueryKey as _m, getUserProfitQueryOptions as vm } from "./pools/profit/query.js";
552
- import { toPoolQuote as ym } from "./pools/quotes/to-pool-quote.js";
553
- import { POOL_OPEN_QUOTE_STATUSES as bm, POOL_PENDING_QUOTE_STATUSES as xm, getPoolQuotes as Sm } from "./pools/quotes/get-pool-quotes.js";
554
- import { getPoolQuotesQueryKey as Cm, getPoolQuotesQueryOptions as wm } from "./pools/quotes/query.js";
555
- import { toRefundRequest as Tm } from "./pools/refund/to-refund-request.js";
556
- import { toRefundResult as Em } from "./pools/refund/to-refund-result.js";
557
- import { refundMarket as Dm } from "./pools/refund/refund-market.js";
558
- import { refundMarketMutationOptions as Om } from "./pools/refund/query.js";
559
- import { toRetryListingInfo as km } from "./pools/retry-listing/to-retry-listing-info.js";
560
- import { getRetryListingInfo as Am } from "./pools/retry-listing/get-retry-listing-info.js";
561
- import { toRetryListingResult as jm } from "./pools/retry-listing/to-retry-listing-result.js";
562
- import { retryListing as Mm } from "./pools/retry-listing/retry-listing.js";
563
- import { getRetryListingInfoQueryKey as Nm, getRetryListingInfoQueryOptions as Pm, retryListingMutationOptions as Fm } from "./pools/retry-listing/query.js";
564
- import { toPoolRewardPoint as Im, toUserPoolRewardChart as Lm } from "./pools/rewards/to-pool-reward-point.js";
565
- import { getPoolRewardChart as Rm } from "./pools/rewards/get-pool-reward-chart.js";
566
- import { getPoolTotalReward as zm } from "./pools/rewards/get-pool-total-reward.js";
567
- import { getUserRewardChart as Bm } from "./pools/rewards/get-user-reward-chart.js";
568
- import { getUserTotalReward as Vm } from "./pools/rewards/get-user-total-reward.js";
569
- import { getPoolRewardChartQueryKey as Hm, getPoolRewardChartQueryOptions as Um, getPoolTotalRewardQueryKey as Wm, getPoolTotalRewardQueryOptions as Gm, getUserRewardChartQueryKey as Km, getUserRewardChartQueryOptions as qm, getUserTotalRewardQueryKey as Jm, getUserTotalRewardQueryOptions as Ym } from "./pools/rewards/query.js";
570
- import { toTokenPrice as Xm } from "./pools/token-price/to-token-price.js";
571
- import { getTokenPrice as Zm } from "./pools/token-price/get-token-price.js";
572
- import { getTokenPriceQueryKey as Qm, getTokenPriceQueryOptions as $m } from "./pools/token-price/query.js";
573
- import { getPoolTradeHistory as eh } from "./pools/trade-history/get-pool-trade-history.js";
574
- import { getPoolTradeHistoryQueryKey as th, getPoolTradeHistoryQueryOptions as nh } from "./pools/trade-history/query.js";
575
- import { toPoolTransaction as rh, toPoolTransactionPage as ih } from "./pools/transactions/to-pool-transaction.js";
576
- import { getPoolTransactions as ah } from "./pools/transactions/get-pool-transactions.js";
577
- import { getPoolTransactionsQueryKey as oh, getPoolTransactionsQueryOptions as sh } from "./pools/transactions/query.js";
578
- import { toUserListingMarket as ch, toUserListingMarketPage as lh } from "./pools/user-markets/to-user-listing-market.js";
579
- import { getUserListingMarkets as uh } from "./pools/user-markets/get-user-listing-markets.js";
580
- import { getUserListingMarketsQueryKey as dh, getUserListingMarketsQueryOptions as fh } from "./pools/user-markets/query.js";
581
- import { toUserTransaction as ph, toUserTransactionPage as mh } from "./pools/user-transactions/to-user-transaction.js";
582
- import { getUserTransactions as hh } from "./pools/user-transactions/get-user-transactions.js";
583
- import { getUserTransactionsQueryKey as gh, getUserTransactionsQueryOptions as _h } from "./pools/user-transactions/query.js";
584
- import { toWeeklyListingLimit as vh } from "./pools/weekly-limit/to-weekly-limit.js";
585
- import { getWeeklyListingLimit as yh } from "./pools/weekly-limit/get-weekly-listing-limit.js";
586
- import { getWeeklyListingLimitQueryKey as bh, getWeeklyListingLimitQueryOptions as xh } from "./pools/weekly-limit/query.js";
587
- import { toWithdrawRequest as Sh } from "./pools/withdraw/to-withdraw-request.js";
588
- import { withdrawLp as Ch } from "./pools/withdraw/withdraw-lp.js";
589
- import { withdrawLpMutationOptions as wh } from "./pools/withdraw/query.js";
590
- import { toSolverRevenue as Th } from "./solvers/revenue/to-solver-revenue.js";
591
- import { getSolverRevenue as Eh } from "./solvers/revenue/get-solver-revenue.js";
592
- import { getSolverRevenueQueryKey as Dh, getSolverRevenueQueryOptions as Oh } from "./solvers/revenue/query.js";
593
- import { resolveInventoryService as kh, supportsInventoryService as Ah } from "./inventory/resolve-inventory.js";
594
- import { getInventoryTvl as jh, toInventoryTvl as Mh } from "./inventory/tvl/get-inventory-tvl.js";
595
- import { getInventoryTvlQueryKey as Nh, getInventoryTvlQueryOptions as Ph } from "./inventory/tvl/query.js";
596
- import { toInventoryTvlPoint as Fh } from "./inventory/tvl-history/to-inventory-tvl-point.js";
597
- import { getInventoryTvlHistory as Ih } from "./inventory/tvl-history/get-inventory-tvl-history.js";
598
- import { getInventoryTvlHistoryQueryKey as Lh, getInventoryTvlHistoryQueryOptions as Rh } from "./inventory/tvl-history/query.js";
599
- import { INVENTORY_VALUE_DECIMALS as zh } from "./inventory/types.js";
600
- export { Vn as ADD_MARGIN_TO_NEXT_VA_SELECTOR, ga as ActionStatus, St as AffiliateState, Hf as BINANCE_DEPTH_DEFAULT_LEVELS, Uf as BINANCE_DEPTH_DEFAULT_LIMIT, Wf as BINANCE_DEPTH_DEFAULT_UPDATE_SPEED, Gf as BINANCE_DEPTH_LIMITS, Kf as BINANCE_DEPTH_MAX_BUFFERED_EVENTS, qf as BINANCE_DEPTH_PATH, Jf as BINANCE_DEPTH_REST_URL, Yf as BINANCE_DEPTH_UPDATE_SPEEDS, Xf as BINANCE_DEPTH_WS_URL, ns as BINANCE_EXCHANGE_INFO_PATH, rs as BINANCE_KLINES_PATH, is as BINANCE_MAX_LIMIT, Zf as BINANCE_ORDERBOOK_EXCHANGE_INFO_PATH, as as BINANCE_REST_URL, os as BINANCE_WS_URL, uf as BalanceChangeType, df as BalanceHistoryFilter, wf as CANDLE_RESOLUTION_MS, Xl as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, Zd as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, eu as FUNDING_HISTORY_EVENT_TYPES, pn as GASLESS_GATEWAY_EIP712_DOMAIN_NAME, mn as GASLESS_GATEWAY_EIP712_DOMAIN_VERSION, j as GASLESS_QUEUED_POLL_MS, dn as GASLESS_RECEIPT_TIMEOUT_MS, Z as GASLESS_RELAYABLE_FUNCTIONS, Q as GASLESS_RELAYABLE_SELECTORS, $ as GASLESS_SESSION_KEY_SELECTORS, ee as GASLESS_SESSION_KEY_WITHDRAW_SELECTORS, M as GASLESS_STREAM_SETTLE_MS, N as GASLESS_STREAM_STALE_MS, P as GASLESS_SUBMITTED_POLL_MS, F as GASLESS_TERMINAL_STATUSES, J as GASLESS_WAIT_TIMEOUT_MS, an as GASLESS_WALLET_EXECUTE_SELECTOR, on as GASLESS_WALLET_EXECUTION_SENTINEL_SELECTOR, hn as GASLESS_WALLET_OPERATION_TYPES, Id as GROUP_TPSL_SIDES, I as GaslessFeeSource, L as GaslessRequestStatus, R as GaslessTransactionAttemptStatus, p as INSTANT_LAYER_EIP712_DOMAIN_NAME, m as INSTANT_LAYER_EIP712_DOMAIN_VERSION, Hn as INSTANT_TRADE_REQUIRED_SELECTORS, zh as INVENTORY_VALUE_DECIMALS, Un as LEGACY_INSTANT_TRADE_REQUIRED_SELECTORS, om as LISTING_MARKET_CONFIG_BOUNDS, bp as LISTING_VALUE_DECIMALS, xp as ListingDepositChainId, Sp as ListingMarketStatus, ho as MARKET_ORDER_DEADLINE_SECONDS, Dl as MAX_INSTANT_CLOSE_BULK_ORDERS, ur as MUON_APP, dr as MUON_METHOD_PARTY_A_OVERVIEW, fr as MUON_METHOD_PRICE, pr as MUON_METHOD_PRICE_RANGE, mr as MUON_METHOD_SETTLE_UPNL, hr as MUON_METHOD_UPNL_A, gr as MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE, _r as MUON_METHOD_UPNL_B, vr as MUON_METHOD_UPNL_PAIR, yr as MUON_METHOD_UPNL_WITH_SYMBOL_PRICE, ff as MarginTransferType, Cp as MarketLockReason, _a as NotificationType, cr as OPERATIONAL_FEE_LIST_PRICE_MULTIPLIER, co as ORDER_TYPE_MARKET, Zi as OrderType, bm as POOL_OPEN_QUOTE_STATUSES, xm as POOL_PENDING_QUOTE_STATUSES, tu as PRICE_HISTORY_EVENT_TYPES, wp as PoolPositionSide, Tp as PoolTransactionStatus, Ep as PoolTransactionType, Qi as PositionType, iu as QUOTES_FUNDING_MAX_IDS_PER_REQUEST, cu as QuoteCloseEventType, lu as QuoteCloseType, nu as QuoteEventType, Nl as QuoteLifecycle, $i as QuoteStatus, Wn as REQUEST_TO_CLOSE_POSITION_SELECTOR, Gn as SEND_QUOTE_SELECTOR, Kn as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, go as SHORT_FUNDING_BUFFER_PERCENT, h as SIGNED_OPERATION_TYPES, Jl as SUBGRAPH_MAX_PAGE_SIZE, Ct as SubAccountIsolationType, a as SymmApiError, o as SymmError, s as SymmioSupportedChainId, Gd as TPSL_LIVE_ORDER_STATES, Dp as TokenPriceChain, sf as TpSlSearchOrderType, lo as VIRTUAL_ACCOUNT_ISOLATION_TYPE, ea as WithdrawStatus, Sd as ZERO_LEG, $a as ZERO_UPNL_SIG, e as accountLayerAbi, If as accumulateOrderbook, ae as addMargin, Ne as addMarginMutationOptions, lp as addMarket, up as addMarketMutationOptions, Iu as aggregateGroupFunding, Hu as aggregateGroupMetrics, Vu as aggregateGroupUpnl, sr as allocate, ci as allocateMutationOptions, Pl as applyNotificationToQuotes, Tt as approveCollateral, Ot as approveCollateralMutationOptions, lr as approveOperationalFee, li as approveOperationalFeeMutationOptions, Uu as assertQuoteGroupingSupported, mp as authenticateListing, hp as authenticateListingMutationOptions, pf as balanceHistoryFilterToTypes, Yd as buildConditionalOrderLeg, Cd as buildConditionalOrderMessage, eo as buildQuoteMetadata, xa as buildRasaSubscribeMessage, v as buildSignedOperation, ba as buildSubscribeMessage, wd as buildTpSlDeleteMessage, Me as calculateAvailableForOrder, _o as calculateAvailableInstantOpenMargin, Hl as calculateClosePlatformFee, Xo as calculateClosePrice, vo as calculateExpectedSettlementLoss, Yu as calculateLiquidationPrice, yo as calculateMargin, nd as calculateMarginRisk, Ul as calculateOpenPlatformFee, xs as calculatePriceImpact, Qu as calculateQuoteLeverage, $u as calculateQuotePnl, ed as calculateQuoteUpnl, td as calculateQuoteUpnlWei, Wa as calculateSolverCloseFee, bo as calculateSolverFees, xo as calculateTradeParams, se as cancelRegistration, Pe as cancelRegistrationMutationOptions, _p as cancelWithdraw, vp as cancelWithdrawMutationOptions, us as checkForceCloseEligibility, ds as checkForceClosePriceReached, Mo as checkNotionalCap, Pd as childNotional, Np as claimProfit, Pp as claimProfitMutationOptions, Zo as clampClosePrecision, ln as classifyGaslessFailure, va as classifyNotification, Fl as classifyQuoteNotificationAction, uu as closeTypeToEventTypes, Yr as collateralToCore18, So as computePlatformFee, Co as computePlatformFeeLegs, fn as confirmGaslessRequest, Xr as core18ToCollateral, Nf as countTickDecimals, Mf as createBinanceCandleSource, rp as createBinanceOrderbookSource, Zr as createClassicWithdrawPart, f as createConfig, le as createSubAccounts, Fe as createSubAccountsMutationOptions, xr as deallocate, Sr as deallocateAndInitiateWithdraw, di as deallocateAndInitiateWithdrawMutationOptions, ui as deallocateMutationOptions, Oo as decimalPriceToWei, un as decodeGaslessOperationFailure, kd as deleteQuoteTpSl, Ad as deleteQuoteTpSlMutationOptions, de as deleteSubAccount, Ie as deleteSubAccountMutationOptions, pe as depositAndAllocateForAccount, Le as depositAndAllocateForAccountMutationOptions, he as depositForAccount, Re as depositForAccountMutationOptions, jo as deriveAutoSlippage, _e as editAccountName, ze as editAccountNameMutationOptions, to as encodeAddMarginToNextVA, qo as encodeRequestToClosePosition, no as encodeSendQuote, ro as encodeSendQuoteWithAffiliateAndData, Rd as estimateGroupTpSlReturn, du as eventTypeToCloseType, fu as eventTypeToQuoteStatus, ep as fetchBinanceDepth, tp as fetchBinanceSymbolFilters, Be as filterQueryOptions, Pt as finalizeRevokeDelegation, Ht as finalizeRevokeDelegationMutationOptions, wr as finalizeWithdrawRequest, fi as finalizeWithdrawRequestMutationOptions, fs as findForceCloseWindow, Wl as fingerprintQuote, Tr as forceCancelCloseRequest, pi as forceCancelCloseRequestMutationOptions, Er as forceCancelQuote, mi as forceCancelQuoteMutationOptions, gs as forceCloseAuto, _s as forceCloseAutoMutationOptions, ms as forceClosePosition, vs as forceClosePositionMutationOptions, y as formatSignedOperationPayload, Sf as fromTradingViewResolution, t as gaslessLayerAbi, z as gaslessPollDelay, n as gaslessWalletAbi, yn as gaslessWalletExecute, bn as gaslessWalletExecuteMutationOptions, ve as generateAccountManagerAddress, Ve as generateAccountManagerAddressQueryKey, He as generateAccountManagerAddressQueryOptions, b as generateSalt, Td as generateTpSlSalt, ye as getAccountBalanceInfo, Ue as getAccountBalanceInfoQueryKey, We as getAccountBalanceInfoQueryOptions, be as getAccountBalanceOf, Ge as getAccountBalanceOfQueryKey, Ke as getAccountBalanceOfQueryOptions, Ft as getActiveDelegations, Ut as getActiveDelegationsQueryKey, Wt as getActiveDelegationsQueryOptions, xe as getAffiliateState, qe as getAffiliateStateQueryKey, Je as getAffiliateStateQueryOptions, hf as getBalanceHistory, gf as getBalanceHistoryQueryKey, _f as getBalanceHistoryQueryOptions, ka as getBinanceHealth, Aa as getBinanceHealthQueryKey, ja as getBinanceHealthQueryOptions, Ma as getBinancePremiumIndex, Na as getBinancePremiumIndexQueryKey, Pa as getBinancePremiumIndexQueryOptions, kf as getBinanceSupportedResolutions, Fa as getBinanceSymbolsInfo, Ia as getBinanceSymbolsInfoQueryKey, La as getBinanceSymbolsInfoQueryOptions, Df as getCandlesQueryKey, Of as getCandlesQueryOptions, c as getChainConfig, Lp as getClaimHistory, Rp as getClaimHistoryQueryKey, zp as getClaimHistoryQueryOptions, Et as getCollateralAllowance, kt as getCollateralAllowanceQueryKey, At as getCollateralAllowanceQueryOptions, Dt as getCollateralBalance, jt as getCollateralBalanceQueryKey, Mt as getCollateralBalanceQueryOptions, Dr as getCoolDownsOfMA, hi as getCoolDownsOfMAQueryKey, gi as getCoolDownsOfMAQueryOptions, br as getDeallocateUpnlSig, Ec as getDeallocateUpnlSigQueryKey, Dc as getDeallocateUpnlSigQueryOptions, l as getDefaultSolver, It as getDelegationExpiry, Gt as getDelegationExpiryQueryKey, Kt as getDelegationExpiryQueryOptions, Vp as getDepositAddress, Hp as getDepositAddressQueryKey, Up as getDepositAddressQueryOptions, ta as getEnigmaPriceServiceHealth, na as getEnigmaPriceServiceHealthQueryKey, ra as getEnigmaPriceServiceHealthQueryOptions, ia as getEnigmaPriceServiceMetadata, aa as getEnigmaPriceServiceMetadataQueryKey, oa as getEnigmaPriceServiceMetadataQueryOptions, sa as getEnigmaPriceServicePricesByAddresses, ca as getEnigmaPriceServicePricesByAddressesQueryKey, la as getEnigmaPriceServicePricesByAddressesQueryOptions, ua as getEnigmaPriceServicePricesByNames, da as getEnigmaPriceServicePricesByNamesQueryKey, fa as getEnigmaPriceServicePricesByNamesQueryOptions, pa as getEnigmaPriceServiceSymbolsInfo, ma as getEnigmaPriceServiceSymbolsInfoQueryKey, ha as getEnigmaPriceServiceSymbolsInfoQueryOptions, Hs as getErrorMessage, Us as getErrorMessageQueryKey, Ws as getErrorMessageQueryOptions, Ao as getEstimatedPrice, Ss as getEstimatedPriceQueryKey, Cs as getEstimatedPriceQueryOptions, io as getFakeSendQuoteMuonSignature, Or as getFeeForUser, _i as getFeeForUserQueryKey, vi as getFeeForUserQueryOptions, hs as getForceCloseParams, ys as getForceCloseParamsQueryKey, bs as getForceCloseParamsQueryOptions, ls as getForceClosePriceSig, Oc as getForceClosePriceSigQueryKey, kc as getForceClosePriceSigQueryOptions, $r as getFundingFeesOfPartyB, ei as getFundingFeesOfPartyBQueryKey, ti as getFundingFeesOfPartyBQueryOptions, cd as getFundingIndexCheckpoints, ld as getFundingIndexCheckpointsQueryKey, ud as getFundingIndexCheckpointsQueryOptions, Es as getFundingInfo, Os as getFundingInfoQueryKey, ks as getFundingInfoQueryOptions, xn as getGaslessBatchFeeQuote, Sn as getGaslessBatchFeeQuoteQueryKey, Cn as getGaslessBatchFeeQuoteQueryOptions, cn as getGaslessBatchSelectors, Tn as getGaslessDepositPolicy, En as getGaslessDepositPolicyQueryKey, Dn as getGaslessDepositPolicyQueryOptions, W as getGaslessFeeQuote, On as getGaslessFeeQuoteQueryKey, kn as getGaslessFeeQuoteQueryOptions, gn as getGaslessGatewayEip712Domain, G as getGaslessRequest, An as getGaslessRequestQueryKey, jn as getGaslessRequestQueryOptions, Mn as getGaslessRequestTransactions, Nn as getGaslessRequestTransactionsQueryKey, Pn as getGaslessRequestTransactionsQueryOptions, k as getGaslessUnconfirmedSubmit, _n as getGaslessWalletAddress, Fn as getGaslessWalletAddressQueryKey, In as getGaslessWalletAddressQueryOptions, wn as getGaslessWalletCreationFee, Ln as getGaslessWalletCreationFeeQueryKey, Rn as getGaslessWalletCreationFeeQueryOptions, sn as getGaslessWalletExecuteSelectors, vn as getGaslessWalletNonce, zn as getGaslessWalletNonceQueryKey, Bn as getGaslessWalletNonceQueryOptions, ne as getGaslessWriteRequest, _l as getInstantCloseFees, vl as getInstantCloseFeesQueryKey, yl as getInstantCloseFeesQueryOptions, xl as getInstantCloses, Sl as getInstantClosesQueryKey, Cl as getInstantClosesQueryOptions, g as getInstantLayerEip712Domain, C as getInstantLayerNonce, qt as getInstantLayerNonceQueryKey, Jt as getInstantLayerNonceQueryOptions, il as getInstantOpenFees, al as getInstantOpenFeesQueryKey, ol as getInstantOpenFeesQueryOptions, sl as getInstantOpenQuoteId, cl as getInstantOpenQuoteIdQueryKey, ll as getInstantOpenQuoteIdQueryOptions, ul as getInstantOpens, dl as getInstantOpensQueryKey, fl as getInstantOpensQueryOptions, qn as getInstantTradeRequiredSelectors, jh as getInventoryTvl, Ih as getInventoryTvlHistory, Lh as getInventoryTvlHistoryQueryKey, Rh as getInventoryTvlHistoryQueryOptions, Nh as getInventoryTvlQueryKey, Ph as getInventoryTvlQueryOptions, T as getIsDelegationActive, Yt as getIsDelegationActiveQueryKey, Xt as getIsDelegationActiveQueryOptions, kr as getLastWithdrawRequestId, yi as getLastWithdrawRequestIdQueryKey, bi as getLastWithdrawRequestIdQueryOptions, gd as getLiquidationDetails, _d as getLiquidationDetailsQueryKey, vd as getLiquidationDetailsQueryOptions, Gp as getListingConfig, Kp as getListingConfigQueryKey, qp as getListingConfigQueryOptions, $p as getListingMarketConfig, rm as getListingMarketConfigQueryKey, im as getListingMarketConfigQueryOptions, cm as getListingMarketDetail, lm as getListingMarketDetailQueryKey, um as getListingMarketDetailQueryOptions, fm as getListingMarkets, pm as getListingMarketsQueryKey, mm as getListingMarketsQueryOptions, pp as getListingSignInMessage, Yp as getListingStatus, Xp as getListingStatusQueryKey, Zp as getListingStatusQueryOptions, Vo as getLockedParams, lc as getLockedParamsQueryKey, uc as getLockedParamsQueryOptions, id as getMarginTransfers, ad as getMarginTransfersQueryKey, od as getMarginTransfersQueryOptions, Ra as getMarkPrices, za as getMarkPricesQueryKey, Ba as getMarkPricesQueryOptions, oc as getMarketInfo, sc as getMarketInfoQueryKey, cc as getMarketInfoQueryOptions, wo as getMarketOrderDeadline, qa as getMarkets, Ja as getMarketsQueryKey, Ya as getMarketsQueryOptions, Ac as getMuonPartyAOverview, jc as getMuonPartyAOverviewQueryKey, Mc as getMuonPartyAOverviewQueryOptions, Nc as getMuonPrice, Pc as getMuonPriceQueryKey, Fc as getMuonPriceQueryOptions, Ic as getMuonPriceRange, Lc as getMuonPriceRangeQueryKey, Rc as getMuonPriceRangeQueryOptions, zc as getMuonSettleUpnl, Bc as getMuonSettleUpnlQueryKey, Vc as getMuonSettleUpnlQueryOptions, Hc as getMuonUpnl, Gc as getMuonUpnlA, Kc as getMuonUpnlAQueryKey, qc as getMuonUpnlAQueryOptions, Jc as getMuonUpnlAWithSymbolPrice, Yc as getMuonUpnlAWithSymbolPriceQueryKey, Xc as getMuonUpnlAWithSymbolPriceQueryOptions, Zc as getMuonUpnlB, Qc as getMuonUpnlBQueryKey, $c as getMuonUpnlBQueryOptions, Uc as getMuonUpnlQueryKey, Wc as getMuonUpnlQueryOptions, el as getMuonUpnlWithSymbolPrice, tl as getMuonUpnlWithSymbolPriceQueryKey, nl as getMuonUpnlWithSymbolPriceQueryOptions, fc as getNotionalCapAll, _c as getNotionalCapAllQueryKey, vc as getNotionalCapAllQueryOptions, pc as getNotionalCapBySymbolId, hc as getNotionalCapBySymbolIdQueryKey, gc as getNotionalCapBySymbolIdQueryOptions, dc as getNotionalCapPage, xc as getNotionalCapPageQueryKey, Sc as getNotionalCapPageQueryOptions, Ar as getOnchainContractMarkets, xi as getOnchainContractMarketsQueryKey, Si as getOnchainContractMarketsQueryOptions, mc as getOpenInterestBySymbolId, yc as getOpenInterestBySymbolIdQueryKey, bc as getOpenInterestBySymbolIdQueryOptions, jr as getOperationalFeeAllowance, Ci as getOperationalFeeAllowanceQueryKey, wi as getOperationalFeeAllowanceQueryOptions, Lf as getOrderbookDepthWithin, Bf as getOrderbookQueryKey, Vf as getOrderbookQueryOptions, Rf as getOrderbookSpread, Mr as getPartyAOpenPositions, ni as getPartyAOpenPositionsBatch, ri as getPartyAOpenPositionsBatchQueryKey, ii as getPartyAOpenPositionsBatchQueryOptions, Ti as getPartyAOpenPositionsQueryKey, Ei as getPartyAOpenPositionsQueryOptions, Nr as getPartyAPendingQuotes, Di as getPartyAPendingQuotesQueryKey, Oi as getPartyAPendingQuotesQueryOptions, Gs as getPartyAUpnl, Ks as getPartyAUpnlQueryKey, qs as getPartyAUpnlQueryOptions, Pr as getPendingQuotes, ki as getPendingQuotesQueryKey, Ai as getPendingQuotesQueryOptions, Lt as getPendingRevocationEtas, Zt as getPendingRevocationEtasQueryKey, Qt as getPendingRevocationEtasQueryOptions, Fr as getPendingWithdrawRequests, ji as getPendingWithdrawRequestsQueryKey, Mi as getPendingWithdrawRequestsQueryOptions, Sm as getPoolQuotes, Cm as getPoolQuotesQueryKey, wm as getPoolQuotesQueryOptions, Rm as getPoolRewardChart, Hm as getPoolRewardChartQueryKey, Um as getPoolRewardChartQueryOptions, zm as getPoolTotalReward, Wm as getPoolTotalRewardQueryKey, Gm as getPoolTotalRewardQueryOptions, eh as getPoolTradeHistory, th as getPoolTradeHistoryQueryKey, nh as getPoolTradeHistoryQueryOptions, ah as getPoolTransactions, oh as getPoolTransactionsQueryKey, sh as getPoolTransactionsQueryOptions, De as getPredictedNextVirtualAccount, lt as getPredictedNextVirtualAccountQueryKey, ut as getPredictedNextVirtualAccountQueryOptions, hl as getPrepareInstantOpenParamsQueryKey, Kl as getQuerySubgraphQueryKey, Ir as getQuote, Zl as getQuoteEventsByType, Ql as getQuoteEventsByTypeQueryKey, $l as getQuoteEventsByTypeQueryOptions, au as getQuoteFunding, ou as getQuoteFundingQueryKey, su as getQuoteFundingQueryOptions, fd as getQuoteFundingSettlements, pd as getQuoteFundingSettlementsQueryKey, md as getQuoteFundingSettlementsQueryOptions, mu as getQuoteHistory, hu as getQuoteHistoryQueryKey, gu as getQuoteHistoryQueryOptions, _u as getQuotePendingFunding, vu as getQuotePendingFundingQueryKey, yu as getQuotePendingFundingQueryOptions, Ni as getQuoteQueryKey, Pi as getQuoteQueryOptions, jd as getQuoteTpSl, Md as getQuoteTpSlQueryKey, Nd as getQuoteTpSlQueryOptions, bu as getQuotesEventsByType, xu as getQuotesEventsByTypeQueryKey, Su as getQuotesEventsByTypeQueryOptions, Am as getRetryListingInfo, Nm as getRetryListingInfoQueryKey, Pm as getRetryListingInfoQueryOptions, js as getRevenueRecords, Ms as getRevenueRecordsQueryKey, Ns as getRevenueRecordsQueryOptions, Rt as getRevocationCooldown, $t as getRevocationCooldownQueryKey, en as getRevocationCooldownQueryOptions, fo as getSendQuoteUpnlSig, po as getSendQuoteUpnlSigQueryKey, mo as getSendQuoteUpnlSigQueryOptions, Jn as getSessionKeySelectors, Js as getSolverBalanceInfo, Ys as getSolverBalanceInfoQueryKey, Xs as getSolverBalanceInfoQueryOptions, Xa as getSolverCapabilities, Ga as getSolverCloseFeeRate, Cc as getSolverErrorCodes, wc as getSolverErrorCodesQueryKey, Tc as getSolverErrorCodesQueryOptions, Ro as getSolverInfo, zo as getSolverInfoQueryKey, Bo as getSolverInfoQueryOptions, Zs as getSolverOpenInterest, Qs as getSolverOpenInterestQueryKey, $s as getSolverOpenInterestQueryOptions, ec as getSolverPriceRange, tc as getSolverPriceRangeQueryKey, nc as getSolverPriceRangeQueryOptions, rc as getSolverReadiness, ic as getSolverReadinessQueryKey, ac as getSolverReadinessQueryOptions, Eh as getSolverRevenue, Dh as getSolverRevenueQueryKey, Oh as getSolverRevenueQueryOptions, w as getSubAccount, Ye as getSubAccountQueryKey, Xe as getSubAccountQueryOptions, ku as getSubAccountQuotes, Au as getSubAccountQuotesQueryKey, ju as getSubAccountQuotesQueryOptions, Se as getSubAccountVirtualNonce, Ze as getSubAccountVirtualNonceQueryKey, Qe as getSubAccountVirtualNonceQueryOptions, Ce as getSubAccountsCountOfUser, $e as getSubAccountsCountOfUserQueryKey, et as getSubAccountsCountOfUserQueryOptions, Nu as getSubgraphQuotes, Pu as getSubgraphQuotesQueryKey, Fu as getSubgraphQuotesQueryOptions, Fs as getSymbols, Is as getSymbolsQueryKey, Ls as getSymbolsQueryOptions, Zm as getTokenPrice, Qm as getTokenPriceQueryKey, $m as getTokenPriceQueryOptions, yd as getTpSlConfig, bd as getTpSlConfigQueryKey, xd as getTpSlConfigQueryOptions, Od as getTpSlDeleteSigningSpec, tf as getTpSlDeleteSigningSpecQueryKey, nf as getTpSlDeleteSigningSpecQueryOptions, Xd as getTpSlSigningSpec, rf as getTpSlSigningSpecQueryKey, af as getTpSlSigningSpecQueryOptions, zs as getTradeVolume, Bs as getTradeVolumeQueryKey, Vs as getTradeVolumeQueryOptions, yf as getTransferHistory, bf as getTransferHistoryQueryKey, xf as getTransferHistoryQueryOptions, uh as getUserListingMarkets, dh as getUserListingMarketsQueryKey, fh as getUserListingMarketsQueryOptions, gm as getUserProfit, _m as getUserProfitQueryKey, vm as getUserProfitQueryOptions, Bm as getUserRewardChart, Km as getUserRewardChartQueryKey, qm as getUserRewardChartQueryOptions, we as getUserSubAccounts, Te as getUserSubAccountsAddresses, rt as getUserSubAccountsAddressesQueryKey, it as getUserSubAccountsAddressesQueryOptions, tt as getUserSubAccountsQueryKey, nt as getUserSubAccountsQueryOptions, Vm as getUserTotalReward, Jm as getUserTotalRewardQueryKey, Ym as getUserTotalRewardQueryOptions, hh as getUserTransactions, gh as getUserTransactionsQueryKey, _h as getUserTransactionsQueryOptions, S as getVirtualAccount, at as getVirtualAccountQueryKey, ot as getVirtualAccountQueryOptions, Ee as getVirtualAccountsAddressesOfSubAccount, st as getVirtualAccountsAddressesOfSubAccountQueryKey, ct as getVirtualAccountsAddressesOfSubAccountQueryOptions, yh as getWeeklyListingLimit, bh as getWeeklyListingLimitQueryKey, xh as getWeeklyListingLimitQueryOptions, Lr as getWithdrawRequests, Fi as getWithdrawRequestsQueryKey, Ii as getWithdrawRequestsQueryOptions, Rr as getWithdrawableTime, Li as getWithdrawableTimeQueryKey, Ri as getWithdrawableTimeQueryOptions, Bt as grantDelegation, tn as grantDelegationMutationOptions, zf as groupOrderbook, Ju as groupQuotes, Vt as initiateRevokeDelegation, nn as initiateRevokeDelegationMutationOptions, zr as initiateWithdraw, zi as initiateWithdrawMutationOptions, Yo as instantClose, Tl as instantCloseAuto, El as instantCloseAutoMutationOptions, Ol as instantCloseBulk, Al as instantCloseBulkAuto, jl as instantCloseBulkAutoMutationOptions, kl as instantCloseBulkMutationOptions, wl as instantCloseMutationOptions, r as instantLayerAbi, Eo as instantOpen, pl as instantOpenAuto, ml as instantOpenAutoMutationOptions, Do as instantOpenMutationOptions, Lu as isActivePosition, Ru as isActiveQuoteStatus, Il as isCancelAction, u as isChainSupported, Ll as isCloseFillAction, V as isConfirmedGaslessFeeLimitError, H as isConfirmedGaslessUnavailableError, U as isGaslessFreeQuotaExhaustedError, A as isGaslessIdempotencyConflictError, te as isGaslessRelayableSelector, B as isGaslessRequestTerminal, Yn as isNewerGaslessRequest, Rl as isOpenAnchorAction, ai as isPartyALiquidated, oi as isPartyALiquidatedQueryKey, si as isPartyALiquidatedQueryOptions, zu as isPendingOrder, uo as isolationTypeForSide, Wu as keyQuoteByMarket, Gu as keyQuotePerQuote, Cu as lifecycleFromQuoteStatus, es as limitCloseAuto, ts as limitCloseAutoMutationOptions, Go as limitOpenAuto, Ko as limitOpenAutoMutationOptions, d as listSupportedChains, zl as minRemainingQuantityOf, ya as normalizeNotification, Qf as parseBinanceDepthLevel, $f as parseBinanceDepthLevels, ss as parseBinanceKline, cs as parseBinanceKlineEvent, wa as parseBinancePriceFrame, E as parseGaslessErrorDetail, Op as parseListingValue, Sa as parseNotificationFrame, Ta as parsePriceFrame, cf as parseTpSlFrame, Bu as partitionQuotes, Bl as planGroupClose, Bd as planGroupTpSl, Vd as planGroupTpSlDelete, Qo as prepareInstantCloseParams, Uo as prepareInstantOpenParams, gl as prepareInstantOpenParamsQueryOptions, $o as prepareLimitCloseParams, Wo as prepareLimitOpenParams, ps as previewForceClosePrice, Qd as priceSlippageCalculation, Ds as projectFundingRate, em as projectListingMarketConfig, Gl as querySubgraph, ql as querySubgraphQueryOptions, Du as reconcileQuotes, Dm as refundMarket, Om as refundMarketMutationOptions, Xn as relayGaslessBatch, Zn as relayGaslessBatchMutationOptions, Qn as relayGrantDelegation, $n as relayGrantDelegationMutationOptions, X as relayInstantOperations, er as relayInstantOperationsMutationOptions, ke as removeMargin, dt as removeMarginMutationOptions, Br as requestCancelWithdraw, Bi as requestCancelWithdrawMutationOptions, Vr as requestToCancelCloseRequest, Vi as requestToCancelCloseRequestMutationOptions, Hr as requestToCancelQuote, Hi as requestToCancelQuoteMutationOptions, je as requestToRegisterAffiliate, ft as requestToRegisterAffiliateMutationOptions, Tf as resolutionToMs, Ld as resolveChildSide, Fo as resolveFeeRates, D as resolveGaslessService, kh as resolveInventoryService, ap as resolveListingService, Ho as resolveLockedParams, Io as resolveMarkPrice, Lo as resolveMarket, Ou as resolveQuoteAccounts, Ku as resolveQuoteGroupingStrategy, tr as resubmitGaslessRequest, nr as resubmitGaslessRequestMutationOptions, Mm as retryListing, Fm as retryListingMutationOptions, Pf as roundToTick, Va as searchNotifications, Ha as searchNotificationsQueryKey, Ua as searchNotificationsQueryOptions, Kd as searchTpSlOrders, qd as searchTpSlOrdersQueryKey, Jd as searchTpSlOrdersQueryOptions, Jo as sendInstantClose, oo as sendInstantOpen, ao as sendQuoteUpnlSigFlexRange, so as sendRasaInstantOpen, $d as setQuoteTpSl, ef as setQuoteTpSlMutationOptions, rr as settleGaslessDepositExistingAccount, ir as settleGaslessDepositExistingAccountMutationOptions, ar as settleGaslessDepositNewAccount, or as settleGaslessDepositNewAccountMutationOptions, rl as sharePercent, Xu as shouldAccelerateOnchainReads, Zu as shouldAccelerateQuotePolling, re as shouldSimulateBeforeWrite, x as signAndFormatInstantOperation, _ as signSignedOperation, Dd as signTpSlRequest, ie as simulateAddMargin, pt as simulateAddMarginMutationOptions, Ur as simulateAllocate, Ui as simulateAllocateMutationOptions, wt as simulateApproveCollateral, Nt as simulateApproveCollateralMutationOptions, oe as simulateCancelRegistration, mt as simulateCancelRegistrationMutationOptions, ce as simulateCreateSubAccounts, ht as simulateCreateSubAccountsMutationOptions, Wr as simulateDeallocate, Gr as simulateDeallocateAndInitiateWithdraw, Gi as simulateDeallocateAndInitiateWithdrawMutationOptions, Wi as simulateDeallocateMutationOptions, ue as simulateDeleteSubAccount, gt as simulateDeleteSubAccountMutationOptions, fe as simulateDepositAndAllocateForAccount, _t as simulateDepositAndAllocateForAccountMutationOptions, me as simulateDepositForAccount, vt as simulateDepositForAccountMutationOptions, ge as simulateEditAccountName, yt as simulateEditAccountNameMutationOptions, Cr as simulateFinalizeWithdrawRequest, Ki as simulateFinalizeWithdrawRequestMutationOptions, zt as simulateGrantDelegation, rn as simulateGrantDelegationMutationOptions, Kr as simulateInitiateWithdraw, qi as simulateInitiateWithdrawMutationOptions, Oe as simulateRemoveMargin, bt as simulateRemoveMarginMutationOptions, qr as simulateRequestCancelWithdraw, Ji as simulateRequestCancelWithdrawMutationOptions, Ae as simulateRequestToRegisterAffiliate, xt as simulateRequestToRegisterAffiliateMutationOptions, Ff as suggestOrderbookTickSizes, Hd as summarizeQuoteGroupTpSl, ws as supportsEstimatedPrice, O as supportsGaslessService, K as supportsGaslessStatusStream, Za as supportsGroupClose, Ah as supportsInventoryService, Qa as supportsLimitOrder, op as supportsListingService, qu as supportsQuoteGrouping, of as supportsTpSl, i as symmioAbi, sp as toAddMarketRequest, mf as toBalanceHistoryRow, Af as toBinanceInterval, gp as toCancelWithdrawResult, yp as toClaimRequest, Mp as toClaimResult, cp as toCreatedPool, ko as toEstimatedPrice, sd as toFundingIndexCheckpointRow, Vl as toGroupCloseCandidates, Ud as toGroupTpSlChildren, Wd as toGroupTpSlOrders, Mh as toInventoryTvl, Fh as toInventoryTvlPoint, hd as toLiquidationDetailRow, dp as toListingAuthToken, Wp as toListingConfig, kp as toListingMarket, Qp as toListingMarketConfig, sm as toListingMarketDetail, Ap as toListingMarketPage, fp as toListingSignInMessage, Jp as toListingStatus, jp as toListingValue, rd as toMarginTransferRow, Bp as toMarketDepositAddress, Ts as toMarketFundingInfo, bl as toPendingInstantClose, Fp as toPoolClaim, Ip as toPoolClaimHistoryPage, dm as toPoolPositions, ym as toPoolQuote, Im as toPoolRewardPoint, rh as toPoolTransaction, ih as toPoolTransactionPage, Yl as toQuoteEventRow, ru as toQuoteFundingRow, dd as toQuoteFundingSettlementRow, pu as toQuoteHistoryRow, Tm as toRefundRequest, Em as toRefundResult, km as toRetryListingInfo, jm as toRetryListingResult, As as toRevenueRecord, Ed as toSignableTpSlMessage, Rs as toSolverDailyVolume, Th as toSolverRevenue, Ps as toSolverSymbols, Mu as toSubgraphQuoteRow, Ka as toThresholdSeconds, Xm as toTokenPrice, Ef as toTradingViewDatafeed, Cf as toTradingViewResolution, vf as toTransferRow, wu as toUnifiedQuoteFromInstantClose, Tu as toUnifiedQuoteFromInstantOpen, Eu as toUnifiedQuoteFromOnchain, tm as toUpdateListingMarketConfigRequest, ch as toUserListingMarket, lh as toUserListingMarketPage, hm as toUserPoolProfit, Lm as toUserPoolRewardChart, ph as toUserTransaction, mh as toUserTransactionPage, vh as toWeeklyListingLimit, To as toWeiBigInt, Sh as toWithdrawRequest, Fd as triggerPriceToWei, nm as updateListingMarketConfig, am as updateListingMarketConfigMutationOptions, Ml as validateInstantCloseAgainstMarket, No as validateInstantOpenAgainstMarket, Po as validateInstantOpenBalanceFunding, zd as validateTpSl, Y as waitForGaslessRequest, ip as walkOrderbook, np as watchBinanceDepth, jf as watchBinanceKlines, Ea as watchBinancePrices, Da as watchEnigmaPrices, q as watchGaslessRequest, Ca as watchNotifications, Oa as watchPrices, lf as watchTpSlNotifications, Jr as withdraw, Qr as withdrawAuto, Xi as withdrawAutoMutationOptions, Ch as withdrawLp, wh as withdrawLpMutationOptions, Yi as withdrawMutationOptions };
514
+ import { authenticateListingMutationOptions as hp, getListingSignInMessageQueryKey as gp, getListingSignInMessageQueryOptions as _p } from "./pools/auth/query.js";
515
+ import { toCancelWithdrawResult as vp } from "./pools/cancel-withdraw/to-cancel-withdraw-result.js";
516
+ import { cancelWithdraw as yp } from "./pools/cancel-withdraw/cancel-withdraw.js";
517
+ import { cancelWithdrawMutationOptions as bp } from "./pools/cancel-withdraw/query.js";
518
+ import { toClaimRequest as xp } from "./pools/claim/to-claim-request.js";
519
+ import { LISTING_VALUE_DECIMALS as Sp, ListingDepositChainId as Cp, ListingMarketStatus as wp, MarketLockReason as Tp, PoolPositionSide as Ep, PoolTransactionStatus as Dp, PoolTransactionType as Op, TokenPriceChain as kp } from "./pools/types.js";
520
+ import { parseListingValue as Ap, toListingMarket as jp, toListingMarketPage as Mp, toListingValue as Np } from "./pools/markets/to-listing-market.js";
521
+ import { toClaimResult as Pp } from "./pools/claim/to-claim-result.js";
522
+ import { claimProfit as Fp } from "./pools/claim/claim-profit.js";
523
+ import { claimProfitMutationOptions as Ip } from "./pools/claim/query.js";
524
+ import { toPoolClaim as Lp, toPoolClaimHistoryPage as Rp } from "./pools/claim-history/to-pool-claim.js";
525
+ import { getClaimHistory as zp } from "./pools/claim-history/get-claim-history.js";
526
+ import { getPoolClaim as Bp } from "./pools/claim-history/get-pool-claim.js";
527
+ import { getClaimHistoryQueryKey as Vp, getClaimHistoryQueryOptions as Hp } from "./pools/claim-history/query.js";
528
+ import { toMarketDepositAddress as Up } from "./pools/deposit-address/to-market-deposit-address.js";
529
+ import { getDepositAddress as Wp } from "./pools/deposit-address/get-deposit-address.js";
530
+ import { getDepositAddressQueryKey as Gp, getDepositAddressQueryOptions as Kp } from "./pools/deposit-address/query.js";
531
+ import { toListingConfig as qp } from "./pools/listing-config/to-listing-config.js";
532
+ import { getListingConfig as Jp } from "./pools/listing-config/get-listing-config.js";
533
+ import { getListingConfigQueryKey as Yp, getListingConfigQueryOptions as Xp } from "./pools/listing-config/query.js";
534
+ import { toListingStatus as Zp } from "./pools/listing-status/to-listing-status.js";
535
+ import { getListingStatus as Qp } from "./pools/listing-status/get-listing-status.js";
536
+ import { getListingStatusQueryKey as $p, getListingStatusQueryOptions as em } from "./pools/listing-status/query.js";
537
+ import { getPoolMaintenanceFees as tm } from "./pools/maintenance-fees/get-pool-maintenance-fees.js";
538
+ import { getPoolMaintenanceFeesQueryKey as nm, getPoolMaintenanceFeesQueryOptions as rm } from "./pools/maintenance-fees/query.js";
539
+ import { toListingMarketConfig as im } from "./pools/market-config/to-listing-market-config.js";
540
+ import { getListingMarketConfig as am } from "./pools/market-config/get-listing-market-config.js";
541
+ import { projectListingMarketConfig as om } from "./pools/market-config/project-listing-market-config.js";
542
+ import { toUpdateListingMarketConfigRequest as sm } from "./pools/market-config/to-update-listing-market-config-request.js";
543
+ import { updateListingMarketConfig as cm } from "./pools/market-config/update-listing-market-config.js";
544
+ import { getListingMarketConfigQueryKey as lm, getListingMarketConfigQueryOptions as um, updateListingMarketConfigMutationOptions as dm } from "./pools/market-config/query.js";
545
+ import { LISTING_MARKET_CONFIG_BOUNDS as fm } from "./pools/market-config/types.js";
546
+ import { getPoolMarketData as pm } from "./pools/market-data/get-pool-market-data.js";
547
+ import { toListingMarketDetail as mm } from "./pools/market-detail/to-listing-market-detail.js";
548
+ import { getListingMarketDetail as hm } from "./pools/market-detail/get-listing-market-detail.js";
549
+ import { getListingMarketDetailQueryKey as gm, getListingMarketDetailQueryOptions as _m } from "./pools/market-detail/query.js";
550
+ import { toPoolPositions as vm } from "./pools/market-detail/to-pool-positions.js";
551
+ import { getListingMarkets as ym } from "./pools/markets/get-listing-markets.js";
552
+ import { getListingMarketsQueryKey as bm, getListingMarketsQueryOptions as xm } from "./pools/markets/query.js";
553
+ import { calculatePoolOpenPositions as Sm } from "./pools/open-positions/calculate-pool-open-positions.js";
554
+ import { toPoolQuote as Cm } from "./pools/quotes/to-pool-quote.js";
555
+ import { POOL_OPEN_QUOTE_STATUSES as wm, POOL_PENDING_QUOTE_STATUSES as Tm, getPoolQuotes as Em } from "./pools/quotes/get-pool-quotes.js";
556
+ import { getPoolOpenPositions as Dm } from "./pools/open-positions/get-pool-open-positions.js";
557
+ import { getPoolOpenPositionsQueryKey as Om, getPoolOpenPositionsQueryOptions as km } from "./pools/open-positions/query.js";
558
+ import { calculatePoolPosition as Am } from "./pools/position/calculate-pool-position.js";
559
+ import { calculatePoolPortfolio as jm } from "./pools/portfolio/calculate-pool-portfolio.js";
560
+ import { toUserPoolProfit as Mm } from "./pools/profit/to-user-pool-profit.js";
561
+ import { getUserProfit as Nm } from "./pools/profit/get-user-profit.js";
562
+ import { getUserTotalReward as Pm } from "./pools/rewards/get-user-total-reward.js";
563
+ import { toUserListingMarket as Fm, toUserListingMarketPage as Im } from "./pools/user-markets/to-user-listing-market.js";
564
+ import { getUserListingMarkets as Lm } from "./pools/user-markets/get-user-listing-markets.js";
565
+ import { toUserTransaction as Rm, toUserTransactionPage as zm } from "./pools/user-transactions/to-user-transaction.js";
566
+ import { getUserTransactions as Bm } from "./pools/user-transactions/get-user-transactions.js";
567
+ import { getPoolPortfolio as Vm } from "./pools/portfolio/get-pool-portfolio.js";
568
+ import { getPoolPortfolioQueryKey as Hm, getPoolPortfolioQueryOptions as Um } from "./pools/portfolio/query.js";
569
+ import { getPoolPosition as Wm } from "./pools/position/get-pool-position.js";
570
+ import { getPoolPositionQueryKey as Gm, getPoolPositionQueryOptions as Km } from "./pools/position/query.js";
571
+ import { getUserProfitQueryKey as qm, getUserProfitQueryOptions as Jm } from "./pools/profit/query.js";
572
+ import { getPoolQuotesQueryKey as Ym, getPoolQuotesQueryOptions as Xm } from "./pools/quotes/query.js";
573
+ import { toRefundRequest as Zm } from "./pools/refund/to-refund-request.js";
574
+ import { toRefundResult as Qm } from "./pools/refund/to-refund-result.js";
575
+ import { refundMarket as $m } from "./pools/refund/refund-market.js";
576
+ import { refundMarketMutationOptions as eh } from "./pools/refund/query.js";
577
+ import { toRetryListingInfo as th } from "./pools/retry-listing/to-retry-listing-info.js";
578
+ import { getRetryListingInfo as nh } from "./pools/retry-listing/get-retry-listing-info.js";
579
+ import { toRetryListingResult as rh } from "./pools/retry-listing/to-retry-listing-result.js";
580
+ import { retryListing as ih } from "./pools/retry-listing/retry-listing.js";
581
+ import { getRetryListingInfoQueryKey as ah, getRetryListingInfoQueryOptions as oh, retryListingMutationOptions as sh } from "./pools/retry-listing/query.js";
582
+ import { toPoolRewardPoint as ch, toUserPoolRewardChart as lh } from "./pools/rewards/to-pool-reward-point.js";
583
+ import { getPoolRewardChart as uh } from "./pools/rewards/get-pool-reward-chart.js";
584
+ import { getPoolTotalReward as dh } from "./pools/rewards/get-pool-total-reward.js";
585
+ import { getUserRewardChart as fh } from "./pools/rewards/get-user-reward-chart.js";
586
+ import { getPoolRewardChartQueryKey as ph, getPoolRewardChartQueryOptions as mh, getPoolTotalRewardQueryKey as hh, getPoolTotalRewardQueryOptions as gh, getUserRewardChartQueryKey as _h, getUserRewardChartQueryOptions as vh, getUserTotalRewardQueryKey as yh, getUserTotalRewardQueryOptions as bh } from "./pools/rewards/query.js";
587
+ import { calculatePoolStatistics as xh } from "./pools/statistics/calculate-pool-statistics.js";
588
+ import { toPoolTransaction as Sh, toPoolTransactionPage as Ch } from "./pools/transactions/to-pool-transaction.js";
589
+ import { getPoolTransactions as wh } from "./pools/transactions/get-pool-transactions.js";
590
+ import { getPoolStatistics as Th } from "./pools/statistics/get-pool-statistics.js";
591
+ import { getPoolStatisticsQueryKey as Eh, getPoolStatisticsQueryOptions as Dh } from "./pools/statistics/query.js";
592
+ import { getListingTokenMetadata as Oh } from "./pools/token-metadata/get-listing-token-metadata.js";
593
+ import { getListingTokenMetadataQueryKey as kh, getListingTokenMetadataQueryOptions as Ah } from "./pools/token-metadata/query.js";
594
+ import { toTokenPrice as jh } from "./pools/token-price/to-token-price.js";
595
+ import { getTokenPrice as Mh } from "./pools/token-price/get-token-price.js";
596
+ import { getTokenPriceQueryKey as Nh, getTokenPriceQueryOptions as Ph } from "./pools/token-price/query.js";
597
+ import { checkListingTokenSupport as Fh } from "./pools/token-support/check-listing-token-support.js";
598
+ import { checkListingTokenSupportQueryKey as Ih, checkListingTokenSupportQueryOptions as Lh } from "./pools/token-support/query.js";
599
+ import { getPoolTradeHistory as Rh } from "./pools/trade-history/get-pool-trade-history.js";
600
+ import { getPoolTradeHistoryQueryKey as zh, getPoolTradeHistoryQueryOptions as Bh } from "./pools/trade-history/query.js";
601
+ import { getPoolTransactionRange as Vh } from "./pools/transactions/get-pool-transaction-range.js";
602
+ import { getPoolTransactionsQueryKey as Hh, getPoolTransactionsQueryOptions as Uh } from "./pools/transactions/query.js";
603
+ import { getUserListingMarketsQueryKey as Wh, getUserListingMarketsQueryOptions as Gh } from "./pools/user-markets/query.js";
604
+ import { getUserTransactionsQueryKey as Kh, getUserTransactionsQueryOptions as qh } from "./pools/user-transactions/query.js";
605
+ import { toWeeklyListingLimit as Jh } from "./pools/weekly-limit/to-weekly-limit.js";
606
+ import { getWeeklyListingLimit as Yh } from "./pools/weekly-limit/get-weekly-listing-limit.js";
607
+ import { getWeeklyListingLimitQueryKey as Xh, getWeeklyListingLimitQueryOptions as Zh } from "./pools/weekly-limit/query.js";
608
+ import { toWithdrawRequest as Qh } from "./pools/withdraw/to-withdraw-request.js";
609
+ import { withdrawLp as $h } from "./pools/withdraw/withdraw-lp.js";
610
+ import { withdrawLpMutationOptions as eg } from "./pools/withdraw/query.js";
611
+ import { toSolverRevenue as tg } from "./solvers/revenue/to-solver-revenue.js";
612
+ import { getSolverRevenue as ng } from "./solvers/revenue/get-solver-revenue.js";
613
+ import { getSolverRevenueQueryKey as rg, getSolverRevenueQueryOptions as ig } from "./solvers/revenue/query.js";
614
+ import { resolveInventoryService as ag, supportsInventoryService as og } from "./inventory/resolve-inventory.js";
615
+ import { getInventoryTvl as sg, toInventoryTvl as cg } from "./inventory/tvl/get-inventory-tvl.js";
616
+ import { getInventoryTvlQueryKey as lg, getInventoryTvlQueryOptions as ug } from "./inventory/tvl/query.js";
617
+ import { toInventoryTvlPoint as dg } from "./inventory/tvl-history/to-inventory-tvl-point.js";
618
+ import { getInventoryTvlHistory as fg } from "./inventory/tvl-history/get-inventory-tvl-history.js";
619
+ import { getInventoryTvlHistoryQueryKey as pg, getInventoryTvlHistoryQueryOptions as mg } from "./inventory/tvl-history/query.js";
620
+ import { INVENTORY_VALUE_DECIMALS as hg } from "./inventory/types.js";
621
+ export { Vn as ADD_MARGIN_TO_NEXT_VA_SELECTOR, ga as ActionStatus, St as AffiliateState, Hf as BINANCE_DEPTH_DEFAULT_LEVELS, Uf as BINANCE_DEPTH_DEFAULT_LIMIT, Wf as BINANCE_DEPTH_DEFAULT_UPDATE_SPEED, Gf as BINANCE_DEPTH_LIMITS, Kf as BINANCE_DEPTH_MAX_BUFFERED_EVENTS, qf as BINANCE_DEPTH_PATH, Jf as BINANCE_DEPTH_REST_URL, Yf as BINANCE_DEPTH_UPDATE_SPEEDS, Xf as BINANCE_DEPTH_WS_URL, ns as BINANCE_EXCHANGE_INFO_PATH, rs as BINANCE_KLINES_PATH, is as BINANCE_MAX_LIMIT, Zf as BINANCE_ORDERBOOK_EXCHANGE_INFO_PATH, as as BINANCE_REST_URL, os as BINANCE_WS_URL, uf as BalanceChangeType, df as BalanceHistoryFilter, wf as CANDLE_RESOLUTION_MS, Xl as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, Zd as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, eu as FUNDING_HISTORY_EVENT_TYPES, pn as GASLESS_GATEWAY_EIP712_DOMAIN_NAME, mn as GASLESS_GATEWAY_EIP712_DOMAIN_VERSION, j as GASLESS_QUEUED_POLL_MS, dn as GASLESS_RECEIPT_TIMEOUT_MS, Z as GASLESS_RELAYABLE_FUNCTIONS, Q as GASLESS_RELAYABLE_SELECTORS, $ as GASLESS_SESSION_KEY_SELECTORS, ee as GASLESS_SESSION_KEY_WITHDRAW_SELECTORS, M as GASLESS_STREAM_SETTLE_MS, N as GASLESS_STREAM_STALE_MS, P as GASLESS_SUBMITTED_POLL_MS, F as GASLESS_TERMINAL_STATUSES, J as GASLESS_WAIT_TIMEOUT_MS, an as GASLESS_WALLET_EXECUTE_SELECTOR, on as GASLESS_WALLET_EXECUTION_SENTINEL_SELECTOR, hn as GASLESS_WALLET_OPERATION_TYPES, Id as GROUP_TPSL_SIDES, I as GaslessFeeSource, L as GaslessRequestStatus, R as GaslessTransactionAttemptStatus, p as INSTANT_LAYER_EIP712_DOMAIN_NAME, m as INSTANT_LAYER_EIP712_DOMAIN_VERSION, Hn as INSTANT_TRADE_REQUIRED_SELECTORS, hg as INVENTORY_VALUE_DECIMALS, Un as LEGACY_INSTANT_TRADE_REQUIRED_SELECTORS, fm as LISTING_MARKET_CONFIG_BOUNDS, Sp as LISTING_VALUE_DECIMALS, Cp as ListingDepositChainId, wp as ListingMarketStatus, ho as MARKET_ORDER_DEADLINE_SECONDS, Dl as MAX_INSTANT_CLOSE_BULK_ORDERS, ur as MUON_APP, dr as MUON_METHOD_PARTY_A_OVERVIEW, fr as MUON_METHOD_PRICE, pr as MUON_METHOD_PRICE_RANGE, mr as MUON_METHOD_SETTLE_UPNL, hr as MUON_METHOD_UPNL_A, gr as MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE, _r as MUON_METHOD_UPNL_B, vr as MUON_METHOD_UPNL_PAIR, yr as MUON_METHOD_UPNL_WITH_SYMBOL_PRICE, ff as MarginTransferType, Tp as MarketLockReason, _a as NotificationType, cr as OPERATIONAL_FEE_LIST_PRICE_MULTIPLIER, co as ORDER_TYPE_MARKET, Zi as OrderType, wm as POOL_OPEN_QUOTE_STATUSES, Tm as POOL_PENDING_QUOTE_STATUSES, tu as PRICE_HISTORY_EVENT_TYPES, Ep as PoolPositionSide, Dp as PoolTransactionStatus, Op as PoolTransactionType, Qi as PositionType, iu as QUOTES_FUNDING_MAX_IDS_PER_REQUEST, cu as QuoteCloseEventType, lu as QuoteCloseType, nu as QuoteEventType, Nl as QuoteLifecycle, $i as QuoteStatus, Wn as REQUEST_TO_CLOSE_POSITION_SELECTOR, Gn as SEND_QUOTE_SELECTOR, Kn as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, go as SHORT_FUNDING_BUFFER_PERCENT, h as SIGNED_OPERATION_TYPES, Jl as SUBGRAPH_MAX_PAGE_SIZE, Ct as SubAccountIsolationType, a as SymmApiError, o as SymmError, s as SymmioSupportedChainId, Gd as TPSL_LIVE_ORDER_STATES, kp as TokenPriceChain, sf as TpSlSearchOrderType, lo as VIRTUAL_ACCOUNT_ISOLATION_TYPE, ea as WithdrawStatus, Sd as ZERO_LEG, $a as ZERO_UPNL_SIG, e as accountLayerAbi, If as accumulateOrderbook, ae as addMargin, Ne as addMarginMutationOptions, lp as addMarket, up as addMarketMutationOptions, Iu as aggregateGroupFunding, Hu as aggregateGroupMetrics, Vu as aggregateGroupUpnl, sr as allocate, ci as allocateMutationOptions, Pl as applyNotificationToQuotes, Tt as approveCollateral, Ot as approveCollateralMutationOptions, lr as approveOperationalFee, li as approveOperationalFeeMutationOptions, Uu as assertQuoteGroupingSupported, mp as authenticateListing, hp as authenticateListingMutationOptions, pf as balanceHistoryFilterToTypes, Yd as buildConditionalOrderLeg, Cd as buildConditionalOrderMessage, eo as buildQuoteMetadata, xa as buildRasaSubscribeMessage, v as buildSignedOperation, ba as buildSubscribeMessage, wd as buildTpSlDeleteMessage, Me as calculateAvailableForOrder, _o as calculateAvailableInstantOpenMargin, Hl as calculateClosePlatformFee, Xo as calculateClosePrice, vo as calculateExpectedSettlementLoss, Yu as calculateLiquidationPrice, yo as calculateMargin, nd as calculateMarginRisk, Ul as calculateOpenPlatformFee, Sm as calculatePoolOpenPositions, jm as calculatePoolPortfolio, Am as calculatePoolPosition, xh as calculatePoolStatistics, xs as calculatePriceImpact, Qu as calculateQuoteLeverage, $u as calculateQuotePnl, ed as calculateQuoteUpnl, td as calculateQuoteUpnlWei, Wa as calculateSolverCloseFee, bo as calculateSolverFees, xo as calculateTradeParams, se as cancelRegistration, Pe as cancelRegistrationMutationOptions, yp as cancelWithdraw, bp as cancelWithdrawMutationOptions, us as checkForceCloseEligibility, ds as checkForceClosePriceReached, Fh as checkListingTokenSupport, Ih as checkListingTokenSupportQueryKey, Lh as checkListingTokenSupportQueryOptions, Mo as checkNotionalCap, Pd as childNotional, Fp as claimProfit, Ip as claimProfitMutationOptions, Zo as clampClosePrecision, ln as classifyGaslessFailure, va as classifyNotification, Fl as classifyQuoteNotificationAction, uu as closeTypeToEventTypes, Yr as collateralToCore18, So as computePlatformFee, Co as computePlatformFeeLegs, fn as confirmGaslessRequest, Xr as core18ToCollateral, Nf as countTickDecimals, Mf as createBinanceCandleSource, rp as createBinanceOrderbookSource, Zr as createClassicWithdrawPart, f as createConfig, le as createSubAccounts, Fe as createSubAccountsMutationOptions, xr as deallocate, Sr as deallocateAndInitiateWithdraw, di as deallocateAndInitiateWithdrawMutationOptions, ui as deallocateMutationOptions, Oo as decimalPriceToWei, un as decodeGaslessOperationFailure, kd as deleteQuoteTpSl, Ad as deleteQuoteTpSlMutationOptions, de as deleteSubAccount, Ie as deleteSubAccountMutationOptions, pe as depositAndAllocateForAccount, Le as depositAndAllocateForAccountMutationOptions, he as depositForAccount, Re as depositForAccountMutationOptions, jo as deriveAutoSlippage, _e as editAccountName, ze as editAccountNameMutationOptions, to as encodeAddMarginToNextVA, qo as encodeRequestToClosePosition, no as encodeSendQuote, ro as encodeSendQuoteWithAffiliateAndData, Rd as estimateGroupTpSlReturn, du as eventTypeToCloseType, fu as eventTypeToQuoteStatus, ep as fetchBinanceDepth, tp as fetchBinanceSymbolFilters, Be as filterQueryOptions, Pt as finalizeRevokeDelegation, Ht as finalizeRevokeDelegationMutationOptions, wr as finalizeWithdrawRequest, fi as finalizeWithdrawRequestMutationOptions, fs as findForceCloseWindow, Wl as fingerprintQuote, Tr as forceCancelCloseRequest, pi as forceCancelCloseRequestMutationOptions, Er as forceCancelQuote, mi as forceCancelQuoteMutationOptions, gs as forceCloseAuto, _s as forceCloseAutoMutationOptions, ms as forceClosePosition, vs as forceClosePositionMutationOptions, y as formatSignedOperationPayload, Sf as fromTradingViewResolution, t as gaslessLayerAbi, z as gaslessPollDelay, n as gaslessWalletAbi, yn as gaslessWalletExecute, bn as gaslessWalletExecuteMutationOptions, ve as generateAccountManagerAddress, Ve as generateAccountManagerAddressQueryKey, He as generateAccountManagerAddressQueryOptions, b as generateSalt, Td as generateTpSlSalt, ye as getAccountBalanceInfo, Ue as getAccountBalanceInfoQueryKey, We as getAccountBalanceInfoQueryOptions, be as getAccountBalanceOf, Ge as getAccountBalanceOfQueryKey, Ke as getAccountBalanceOfQueryOptions, Ft as getActiveDelegations, Ut as getActiveDelegationsQueryKey, Wt as getActiveDelegationsQueryOptions, xe as getAffiliateState, qe as getAffiliateStateQueryKey, Je as getAffiliateStateQueryOptions, hf as getBalanceHistory, gf as getBalanceHistoryQueryKey, _f as getBalanceHistoryQueryOptions, ka as getBinanceHealth, Aa as getBinanceHealthQueryKey, ja as getBinanceHealthQueryOptions, Ma as getBinancePremiumIndex, Na as getBinancePremiumIndexQueryKey, Pa as getBinancePremiumIndexQueryOptions, kf as getBinanceSupportedResolutions, Fa as getBinanceSymbolsInfo, Ia as getBinanceSymbolsInfoQueryKey, La as getBinanceSymbolsInfoQueryOptions, Df as getCandlesQueryKey, Of as getCandlesQueryOptions, c as getChainConfig, zp as getClaimHistory, Vp as getClaimHistoryQueryKey, Hp as getClaimHistoryQueryOptions, Et as getCollateralAllowance, kt as getCollateralAllowanceQueryKey, At as getCollateralAllowanceQueryOptions, Dt as getCollateralBalance, jt as getCollateralBalanceQueryKey, Mt as getCollateralBalanceQueryOptions, Dr as getCoolDownsOfMA, hi as getCoolDownsOfMAQueryKey, gi as getCoolDownsOfMAQueryOptions, br as getDeallocateUpnlSig, Ec as getDeallocateUpnlSigQueryKey, Dc as getDeallocateUpnlSigQueryOptions, l as getDefaultSolver, It as getDelegationExpiry, Gt as getDelegationExpiryQueryKey, Kt as getDelegationExpiryQueryOptions, Wp as getDepositAddress, Gp as getDepositAddressQueryKey, Kp as getDepositAddressQueryOptions, ta as getEnigmaPriceServiceHealth, na as getEnigmaPriceServiceHealthQueryKey, ra as getEnigmaPriceServiceHealthQueryOptions, ia as getEnigmaPriceServiceMetadata, aa as getEnigmaPriceServiceMetadataQueryKey, oa as getEnigmaPriceServiceMetadataQueryOptions, sa as getEnigmaPriceServicePricesByAddresses, ca as getEnigmaPriceServicePricesByAddressesQueryKey, la as getEnigmaPriceServicePricesByAddressesQueryOptions, ua as getEnigmaPriceServicePricesByNames, da as getEnigmaPriceServicePricesByNamesQueryKey, fa as getEnigmaPriceServicePricesByNamesQueryOptions, pa as getEnigmaPriceServiceSymbolsInfo, ma as getEnigmaPriceServiceSymbolsInfoQueryKey, ha as getEnigmaPriceServiceSymbolsInfoQueryOptions, Hs as getErrorMessage, Us as getErrorMessageQueryKey, Ws as getErrorMessageQueryOptions, Ao as getEstimatedPrice, Ss as getEstimatedPriceQueryKey, Cs as getEstimatedPriceQueryOptions, io as getFakeSendQuoteMuonSignature, Or as getFeeForUser, _i as getFeeForUserQueryKey, vi as getFeeForUserQueryOptions, hs as getForceCloseParams, ys as getForceCloseParamsQueryKey, bs as getForceCloseParamsQueryOptions, ls as getForceClosePriceSig, Oc as getForceClosePriceSigQueryKey, kc as getForceClosePriceSigQueryOptions, $r as getFundingFeesOfPartyB, ei as getFundingFeesOfPartyBQueryKey, ti as getFundingFeesOfPartyBQueryOptions, cd as getFundingIndexCheckpoints, ld as getFundingIndexCheckpointsQueryKey, ud as getFundingIndexCheckpointsQueryOptions, Es as getFundingInfo, Os as getFundingInfoQueryKey, ks as getFundingInfoQueryOptions, xn as getGaslessBatchFeeQuote, Sn as getGaslessBatchFeeQuoteQueryKey, Cn as getGaslessBatchFeeQuoteQueryOptions, cn as getGaslessBatchSelectors, Tn as getGaslessDepositPolicy, En as getGaslessDepositPolicyQueryKey, Dn as getGaslessDepositPolicyQueryOptions, W as getGaslessFeeQuote, On as getGaslessFeeQuoteQueryKey, kn as getGaslessFeeQuoteQueryOptions, gn as getGaslessGatewayEip712Domain, G as getGaslessRequest, An as getGaslessRequestQueryKey, jn as getGaslessRequestQueryOptions, Mn as getGaslessRequestTransactions, Nn as getGaslessRequestTransactionsQueryKey, Pn as getGaslessRequestTransactionsQueryOptions, k as getGaslessUnconfirmedSubmit, _n as getGaslessWalletAddress, Fn as getGaslessWalletAddressQueryKey, In as getGaslessWalletAddressQueryOptions, wn as getGaslessWalletCreationFee, Ln as getGaslessWalletCreationFeeQueryKey, Rn as getGaslessWalletCreationFeeQueryOptions, sn as getGaslessWalletExecuteSelectors, vn as getGaslessWalletNonce, zn as getGaslessWalletNonceQueryKey, Bn as getGaslessWalletNonceQueryOptions, ne as getGaslessWriteRequest, _l as getInstantCloseFees, vl as getInstantCloseFeesQueryKey, yl as getInstantCloseFeesQueryOptions, xl as getInstantCloses, Sl as getInstantClosesQueryKey, Cl as getInstantClosesQueryOptions, g as getInstantLayerEip712Domain, C as getInstantLayerNonce, qt as getInstantLayerNonceQueryKey, Jt as getInstantLayerNonceQueryOptions, il as getInstantOpenFees, al as getInstantOpenFeesQueryKey, ol as getInstantOpenFeesQueryOptions, sl as getInstantOpenQuoteId, cl as getInstantOpenQuoteIdQueryKey, ll as getInstantOpenQuoteIdQueryOptions, ul as getInstantOpens, dl as getInstantOpensQueryKey, fl as getInstantOpensQueryOptions, qn as getInstantTradeRequiredSelectors, sg as getInventoryTvl, fg as getInventoryTvlHistory, pg as getInventoryTvlHistoryQueryKey, mg as getInventoryTvlHistoryQueryOptions, lg as getInventoryTvlQueryKey, ug as getInventoryTvlQueryOptions, T as getIsDelegationActive, Yt as getIsDelegationActiveQueryKey, Xt as getIsDelegationActiveQueryOptions, kr as getLastWithdrawRequestId, yi as getLastWithdrawRequestIdQueryKey, bi as getLastWithdrawRequestIdQueryOptions, gd as getLiquidationDetails, _d as getLiquidationDetailsQueryKey, vd as getLiquidationDetailsQueryOptions, Jp as getListingConfig, Yp as getListingConfigQueryKey, Xp as getListingConfigQueryOptions, am as getListingMarketConfig, lm as getListingMarketConfigQueryKey, um as getListingMarketConfigQueryOptions, hm as getListingMarketDetail, gm as getListingMarketDetailQueryKey, _m as getListingMarketDetailQueryOptions, ym as getListingMarkets, bm as getListingMarketsQueryKey, xm as getListingMarketsQueryOptions, pp as getListingSignInMessage, gp as getListingSignInMessageQueryKey, _p as getListingSignInMessageQueryOptions, Qp as getListingStatus, $p as getListingStatusQueryKey, em as getListingStatusQueryOptions, Oh as getListingTokenMetadata, kh as getListingTokenMetadataQueryKey, Ah as getListingTokenMetadataQueryOptions, Vo as getLockedParams, lc as getLockedParamsQueryKey, uc as getLockedParamsQueryOptions, id as getMarginTransfers, ad as getMarginTransfersQueryKey, od as getMarginTransfersQueryOptions, Ra as getMarkPrices, za as getMarkPricesQueryKey, Ba as getMarkPricesQueryOptions, oc as getMarketInfo, sc as getMarketInfoQueryKey, cc as getMarketInfoQueryOptions, wo as getMarketOrderDeadline, qa as getMarkets, Ja as getMarketsQueryKey, Ya as getMarketsQueryOptions, Ac as getMuonPartyAOverview, jc as getMuonPartyAOverviewQueryKey, Mc as getMuonPartyAOverviewQueryOptions, Nc as getMuonPrice, Pc as getMuonPriceQueryKey, Fc as getMuonPriceQueryOptions, Ic as getMuonPriceRange, Lc as getMuonPriceRangeQueryKey, Rc as getMuonPriceRangeQueryOptions, zc as getMuonSettleUpnl, Bc as getMuonSettleUpnlQueryKey, Vc as getMuonSettleUpnlQueryOptions, Hc as getMuonUpnl, Gc as getMuonUpnlA, Kc as getMuonUpnlAQueryKey, qc as getMuonUpnlAQueryOptions, Jc as getMuonUpnlAWithSymbolPrice, Yc as getMuonUpnlAWithSymbolPriceQueryKey, Xc as getMuonUpnlAWithSymbolPriceQueryOptions, Zc as getMuonUpnlB, Qc as getMuonUpnlBQueryKey, $c as getMuonUpnlBQueryOptions, Uc as getMuonUpnlQueryKey, Wc as getMuonUpnlQueryOptions, el as getMuonUpnlWithSymbolPrice, tl as getMuonUpnlWithSymbolPriceQueryKey, nl as getMuonUpnlWithSymbolPriceQueryOptions, fc as getNotionalCapAll, _c as getNotionalCapAllQueryKey, vc as getNotionalCapAllQueryOptions, pc as getNotionalCapBySymbolId, hc as getNotionalCapBySymbolIdQueryKey, gc as getNotionalCapBySymbolIdQueryOptions, dc as getNotionalCapPage, xc as getNotionalCapPageQueryKey, Sc as getNotionalCapPageQueryOptions, Ar as getOnchainContractMarkets, xi as getOnchainContractMarketsQueryKey, Si as getOnchainContractMarketsQueryOptions, mc as getOpenInterestBySymbolId, yc as getOpenInterestBySymbolIdQueryKey, bc as getOpenInterestBySymbolIdQueryOptions, jr as getOperationalFeeAllowance, Ci as getOperationalFeeAllowanceQueryKey, wi as getOperationalFeeAllowanceQueryOptions, Lf as getOrderbookDepthWithin, Bf as getOrderbookQueryKey, Vf as getOrderbookQueryOptions, Rf as getOrderbookSpread, Mr as getPartyAOpenPositions, ni as getPartyAOpenPositionsBatch, ri as getPartyAOpenPositionsBatchQueryKey, ii as getPartyAOpenPositionsBatchQueryOptions, Ti as getPartyAOpenPositionsQueryKey, Ei as getPartyAOpenPositionsQueryOptions, Nr as getPartyAPendingQuotes, Di as getPartyAPendingQuotesQueryKey, Oi as getPartyAPendingQuotesQueryOptions, Gs as getPartyAUpnl, Ks as getPartyAUpnlQueryKey, qs as getPartyAUpnlQueryOptions, Pr as getPendingQuotes, ki as getPendingQuotesQueryKey, Ai as getPendingQuotesQueryOptions, Lt as getPendingRevocationEtas, Zt as getPendingRevocationEtasQueryKey, Qt as getPendingRevocationEtasQueryOptions, Fr as getPendingWithdrawRequests, ji as getPendingWithdrawRequestsQueryKey, Mi as getPendingWithdrawRequestsQueryOptions, Bp as getPoolClaim, tm as getPoolMaintenanceFees, nm as getPoolMaintenanceFeesQueryKey, rm as getPoolMaintenanceFeesQueryOptions, pm as getPoolMarketData, Dm as getPoolOpenPositions, Om as getPoolOpenPositionsQueryKey, km as getPoolOpenPositionsQueryOptions, Vm as getPoolPortfolio, Hm as getPoolPortfolioQueryKey, Um as getPoolPortfolioQueryOptions, Wm as getPoolPosition, Gm as getPoolPositionQueryKey, Km as getPoolPositionQueryOptions, Em as getPoolQuotes, Ym as getPoolQuotesQueryKey, Xm as getPoolQuotesQueryOptions, uh as getPoolRewardChart, ph as getPoolRewardChartQueryKey, mh as getPoolRewardChartQueryOptions, Th as getPoolStatistics, Eh as getPoolStatisticsQueryKey, Dh as getPoolStatisticsQueryOptions, dh as getPoolTotalReward, hh as getPoolTotalRewardQueryKey, gh as getPoolTotalRewardQueryOptions, Rh as getPoolTradeHistory, zh as getPoolTradeHistoryQueryKey, Bh as getPoolTradeHistoryQueryOptions, Vh as getPoolTransactionRange, wh as getPoolTransactions, Hh as getPoolTransactionsQueryKey, Uh as getPoolTransactionsQueryOptions, De as getPredictedNextVirtualAccount, lt as getPredictedNextVirtualAccountQueryKey, ut as getPredictedNextVirtualAccountQueryOptions, hl as getPrepareInstantOpenParamsQueryKey, Kl as getQuerySubgraphQueryKey, Ir as getQuote, Zl as getQuoteEventsByType, Ql as getQuoteEventsByTypeQueryKey, $l as getQuoteEventsByTypeQueryOptions, au as getQuoteFunding, ou as getQuoteFundingQueryKey, su as getQuoteFundingQueryOptions, fd as getQuoteFundingSettlements, pd as getQuoteFundingSettlementsQueryKey, md as getQuoteFundingSettlementsQueryOptions, mu as getQuoteHistory, hu as getQuoteHistoryQueryKey, gu as getQuoteHistoryQueryOptions, _u as getQuotePendingFunding, vu as getQuotePendingFundingQueryKey, yu as getQuotePendingFundingQueryOptions, Ni as getQuoteQueryKey, Pi as getQuoteQueryOptions, jd as getQuoteTpSl, Md as getQuoteTpSlQueryKey, Nd as getQuoteTpSlQueryOptions, bu as getQuotesEventsByType, xu as getQuotesEventsByTypeQueryKey, Su as getQuotesEventsByTypeQueryOptions, nh as getRetryListingInfo, ah as getRetryListingInfoQueryKey, oh as getRetryListingInfoQueryOptions, js as getRevenueRecords, Ms as getRevenueRecordsQueryKey, Ns as getRevenueRecordsQueryOptions, Rt as getRevocationCooldown, $t as getRevocationCooldownQueryKey, en as getRevocationCooldownQueryOptions, fo as getSendQuoteUpnlSig, po as getSendQuoteUpnlSigQueryKey, mo as getSendQuoteUpnlSigQueryOptions, Jn as getSessionKeySelectors, Js as getSolverBalanceInfo, Ys as getSolverBalanceInfoQueryKey, Xs as getSolverBalanceInfoQueryOptions, Xa as getSolverCapabilities, Ga as getSolverCloseFeeRate, Cc as getSolverErrorCodes, wc as getSolverErrorCodesQueryKey, Tc as getSolverErrorCodesQueryOptions, Ro as getSolverInfo, zo as getSolverInfoQueryKey, Bo as getSolverInfoQueryOptions, Zs as getSolverOpenInterest, Qs as getSolverOpenInterestQueryKey, $s as getSolverOpenInterestQueryOptions, ec as getSolverPriceRange, tc as getSolverPriceRangeQueryKey, nc as getSolverPriceRangeQueryOptions, rc as getSolverReadiness, ic as getSolverReadinessQueryKey, ac as getSolverReadinessQueryOptions, ng as getSolverRevenue, rg as getSolverRevenueQueryKey, ig as getSolverRevenueQueryOptions, w as getSubAccount, Ye as getSubAccountQueryKey, Xe as getSubAccountQueryOptions, ku as getSubAccountQuotes, Au as getSubAccountQuotesQueryKey, ju as getSubAccountQuotesQueryOptions, Se as getSubAccountVirtualNonce, Ze as getSubAccountVirtualNonceQueryKey, Qe as getSubAccountVirtualNonceQueryOptions, Ce as getSubAccountsCountOfUser, $e as getSubAccountsCountOfUserQueryKey, et as getSubAccountsCountOfUserQueryOptions, Nu as getSubgraphQuotes, Pu as getSubgraphQuotesQueryKey, Fu as getSubgraphQuotesQueryOptions, Fs as getSymbols, Is as getSymbolsQueryKey, Ls as getSymbolsQueryOptions, Mh as getTokenPrice, Nh as getTokenPriceQueryKey, Ph as getTokenPriceQueryOptions, yd as getTpSlConfig, bd as getTpSlConfigQueryKey, xd as getTpSlConfigQueryOptions, Od as getTpSlDeleteSigningSpec, tf as getTpSlDeleteSigningSpecQueryKey, nf as getTpSlDeleteSigningSpecQueryOptions, Xd as getTpSlSigningSpec, rf as getTpSlSigningSpecQueryKey, af as getTpSlSigningSpecQueryOptions, zs as getTradeVolume, Bs as getTradeVolumeQueryKey, Vs as getTradeVolumeQueryOptions, yf as getTransferHistory, bf as getTransferHistoryQueryKey, xf as getTransferHistoryQueryOptions, Lm as getUserListingMarkets, Wh as getUserListingMarketsQueryKey, Gh as getUserListingMarketsQueryOptions, Nm as getUserProfit, qm as getUserProfitQueryKey, Jm as getUserProfitQueryOptions, fh as getUserRewardChart, _h as getUserRewardChartQueryKey, vh as getUserRewardChartQueryOptions, we as getUserSubAccounts, Te as getUserSubAccountsAddresses, rt as getUserSubAccountsAddressesQueryKey, it as getUserSubAccountsAddressesQueryOptions, tt as getUserSubAccountsQueryKey, nt as getUserSubAccountsQueryOptions, Pm as getUserTotalReward, yh as getUserTotalRewardQueryKey, bh as getUserTotalRewardQueryOptions, Bm as getUserTransactions, Kh as getUserTransactionsQueryKey, qh as getUserTransactionsQueryOptions, S as getVirtualAccount, at as getVirtualAccountQueryKey, ot as getVirtualAccountQueryOptions, Ee as getVirtualAccountsAddressesOfSubAccount, st as getVirtualAccountsAddressesOfSubAccountQueryKey, ct as getVirtualAccountsAddressesOfSubAccountQueryOptions, Yh as getWeeklyListingLimit, Xh as getWeeklyListingLimitQueryKey, Zh as getWeeklyListingLimitQueryOptions, Lr as getWithdrawRequests, Fi as getWithdrawRequestsQueryKey, Ii as getWithdrawRequestsQueryOptions, Rr as getWithdrawableTime, Li as getWithdrawableTimeQueryKey, Ri as getWithdrawableTimeQueryOptions, Bt as grantDelegation, tn as grantDelegationMutationOptions, zf as groupOrderbook, Ju as groupQuotes, Vt as initiateRevokeDelegation, nn as initiateRevokeDelegationMutationOptions, zr as initiateWithdraw, zi as initiateWithdrawMutationOptions, Yo as instantClose, Tl as instantCloseAuto, El as instantCloseAutoMutationOptions, Ol as instantCloseBulk, Al as instantCloseBulkAuto, jl as instantCloseBulkAutoMutationOptions, kl as instantCloseBulkMutationOptions, wl as instantCloseMutationOptions, r as instantLayerAbi, Eo as instantOpen, pl as instantOpenAuto, ml as instantOpenAutoMutationOptions, Do as instantOpenMutationOptions, Lu as isActivePosition, Ru as isActiveQuoteStatus, Il as isCancelAction, u as isChainSupported, Ll as isCloseFillAction, V as isConfirmedGaslessFeeLimitError, H as isConfirmedGaslessUnavailableError, U as isGaslessFreeQuotaExhaustedError, A as isGaslessIdempotencyConflictError, te as isGaslessRelayableSelector, B as isGaslessRequestTerminal, Yn as isNewerGaslessRequest, Rl as isOpenAnchorAction, ai as isPartyALiquidated, oi as isPartyALiquidatedQueryKey, si as isPartyALiquidatedQueryOptions, zu as isPendingOrder, uo as isolationTypeForSide, Wu as keyQuoteByMarket, Gu as keyQuotePerQuote, Cu as lifecycleFromQuoteStatus, es as limitCloseAuto, ts as limitCloseAutoMutationOptions, Go as limitOpenAuto, Ko as limitOpenAutoMutationOptions, d as listSupportedChains, zl as minRemainingQuantityOf, ya as normalizeNotification, Qf as parseBinanceDepthLevel, $f as parseBinanceDepthLevels, ss as parseBinanceKline, cs as parseBinanceKlineEvent, wa as parseBinancePriceFrame, E as parseGaslessErrorDetail, Ap as parseListingValue, Sa as parseNotificationFrame, Ta as parsePriceFrame, cf as parseTpSlFrame, Bu as partitionQuotes, Bl as planGroupClose, Bd as planGroupTpSl, Vd as planGroupTpSlDelete, Qo as prepareInstantCloseParams, Uo as prepareInstantOpenParams, gl as prepareInstantOpenParamsQueryOptions, $o as prepareLimitCloseParams, Wo as prepareLimitOpenParams, ps as previewForceClosePrice, Qd as priceSlippageCalculation, Ds as projectFundingRate, om as projectListingMarketConfig, Gl as querySubgraph, ql as querySubgraphQueryOptions, Du as reconcileQuotes, $m as refundMarket, eh as refundMarketMutationOptions, Xn as relayGaslessBatch, Zn as relayGaslessBatchMutationOptions, Qn as relayGrantDelegation, $n as relayGrantDelegationMutationOptions, X as relayInstantOperations, er as relayInstantOperationsMutationOptions, ke as removeMargin, dt as removeMarginMutationOptions, Br as requestCancelWithdraw, Bi as requestCancelWithdrawMutationOptions, Vr as requestToCancelCloseRequest, Vi as requestToCancelCloseRequestMutationOptions, Hr as requestToCancelQuote, Hi as requestToCancelQuoteMutationOptions, je as requestToRegisterAffiliate, ft as requestToRegisterAffiliateMutationOptions, Tf as resolutionToMs, Ld as resolveChildSide, Fo as resolveFeeRates, D as resolveGaslessService, ag as resolveInventoryService, ap as resolveListingService, Ho as resolveLockedParams, Io as resolveMarkPrice, Lo as resolveMarket, Ou as resolveQuoteAccounts, Ku as resolveQuoteGroupingStrategy, tr as resubmitGaslessRequest, nr as resubmitGaslessRequestMutationOptions, ih as retryListing, sh as retryListingMutationOptions, Pf as roundToTick, Va as searchNotifications, Ha as searchNotificationsQueryKey, Ua as searchNotificationsQueryOptions, Kd as searchTpSlOrders, qd as searchTpSlOrdersQueryKey, Jd as searchTpSlOrdersQueryOptions, Jo as sendInstantClose, oo as sendInstantOpen, ao as sendQuoteUpnlSigFlexRange, so as sendRasaInstantOpen, $d as setQuoteTpSl, ef as setQuoteTpSlMutationOptions, rr as settleGaslessDepositExistingAccount, ir as settleGaslessDepositExistingAccountMutationOptions, ar as settleGaslessDepositNewAccount, or as settleGaslessDepositNewAccountMutationOptions, rl as sharePercent, Xu as shouldAccelerateOnchainReads, Zu as shouldAccelerateQuotePolling, re as shouldSimulateBeforeWrite, x as signAndFormatInstantOperation, _ as signSignedOperation, Dd as signTpSlRequest, ie as simulateAddMargin, pt as simulateAddMarginMutationOptions, Ur as simulateAllocate, Ui as simulateAllocateMutationOptions, wt as simulateApproveCollateral, Nt as simulateApproveCollateralMutationOptions, oe as simulateCancelRegistration, mt as simulateCancelRegistrationMutationOptions, ce as simulateCreateSubAccounts, ht as simulateCreateSubAccountsMutationOptions, Wr as simulateDeallocate, Gr as simulateDeallocateAndInitiateWithdraw, Gi as simulateDeallocateAndInitiateWithdrawMutationOptions, Wi as simulateDeallocateMutationOptions, ue as simulateDeleteSubAccount, gt as simulateDeleteSubAccountMutationOptions, fe as simulateDepositAndAllocateForAccount, _t as simulateDepositAndAllocateForAccountMutationOptions, me as simulateDepositForAccount, vt as simulateDepositForAccountMutationOptions, ge as simulateEditAccountName, yt as simulateEditAccountNameMutationOptions, Cr as simulateFinalizeWithdrawRequest, Ki as simulateFinalizeWithdrawRequestMutationOptions, zt as simulateGrantDelegation, rn as simulateGrantDelegationMutationOptions, Kr as simulateInitiateWithdraw, qi as simulateInitiateWithdrawMutationOptions, Oe as simulateRemoveMargin, bt as simulateRemoveMarginMutationOptions, qr as simulateRequestCancelWithdraw, Ji as simulateRequestCancelWithdrawMutationOptions, Ae as simulateRequestToRegisterAffiliate, xt as simulateRequestToRegisterAffiliateMutationOptions, Ff as suggestOrderbookTickSizes, Hd as summarizeQuoteGroupTpSl, ws as supportsEstimatedPrice, O as supportsGaslessService, K as supportsGaslessStatusStream, Za as supportsGroupClose, og as supportsInventoryService, Qa as supportsLimitOrder, op as supportsListingService, qu as supportsQuoteGrouping, of as supportsTpSl, i as symmioAbi, sp as toAddMarketRequest, mf as toBalanceHistoryRow, Af as toBinanceInterval, vp as toCancelWithdrawResult, xp as toClaimRequest, Pp as toClaimResult, cp as toCreatedPool, ko as toEstimatedPrice, sd as toFundingIndexCheckpointRow, Vl as toGroupCloseCandidates, Ud as toGroupTpSlChildren, Wd as toGroupTpSlOrders, cg as toInventoryTvl, dg as toInventoryTvlPoint, hd as toLiquidationDetailRow, dp as toListingAuthToken, qp as toListingConfig, jp as toListingMarket, im as toListingMarketConfig, mm as toListingMarketDetail, Mp as toListingMarketPage, fp as toListingSignInMessage, Zp as toListingStatus, Np as toListingValue, rd as toMarginTransferRow, Up as toMarketDepositAddress, Ts as toMarketFundingInfo, bl as toPendingInstantClose, Lp as toPoolClaim, Rp as toPoolClaimHistoryPage, vm as toPoolPositions, Cm as toPoolQuote, ch as toPoolRewardPoint, Sh as toPoolTransaction, Ch as toPoolTransactionPage, Yl as toQuoteEventRow, ru as toQuoteFundingRow, dd as toQuoteFundingSettlementRow, pu as toQuoteHistoryRow, Zm as toRefundRequest, Qm as toRefundResult, th as toRetryListingInfo, rh as toRetryListingResult, As as toRevenueRecord, Ed as toSignableTpSlMessage, Rs as toSolverDailyVolume, tg as toSolverRevenue, Ps as toSolverSymbols, Mu as toSubgraphQuoteRow, Ka as toThresholdSeconds, jh as toTokenPrice, Ef as toTradingViewDatafeed, Cf as toTradingViewResolution, vf as toTransferRow, wu as toUnifiedQuoteFromInstantClose, Tu as toUnifiedQuoteFromInstantOpen, Eu as toUnifiedQuoteFromOnchain, sm as toUpdateListingMarketConfigRequest, Fm as toUserListingMarket, Im as toUserListingMarketPage, Mm as toUserPoolProfit, lh as toUserPoolRewardChart, Rm as toUserTransaction, zm as toUserTransactionPage, Jh as toWeeklyListingLimit, To as toWeiBigInt, Qh as toWithdrawRequest, Fd as triggerPriceToWei, cm as updateListingMarketConfig, dm as updateListingMarketConfigMutationOptions, Ml as validateInstantCloseAgainstMarket, No as validateInstantOpenAgainstMarket, Po as validateInstantOpenBalanceFunding, zd as validateTpSl, Y as waitForGaslessRequest, ip as walkOrderbook, np as watchBinanceDepth, jf as watchBinanceKlines, Ea as watchBinancePrices, Da as watchEnigmaPrices, q as watchGaslessRequest, Ca as watchNotifications, Oa as watchPrices, lf as watchTpSlNotifications, Jr as withdraw, Qr as withdrawAuto, Xi as withdrawAutoMutationOptions, $h as withdrawLp, eg as withdrawLpMutationOptions, Yi as withdrawMutationOptions };
@@ -1 +1 @@
1
- {"version":3,"file":"to-created-pool.d.ts","sourceRoot":"","sources":["../../../src/pools/add-market/to-created-pool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,gCAAgC,GAAG,WAAW,CAchF"}
1
+ {"version":3,"file":"to-created-pool.d.ts","sourceRoot":"","sources":["../../../src/pools/add-market/to-created-pool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,gCAAgC,GAAG,WAAW,CAkBhF"}
@@ -1,6 +1,10 @@
1
1
  //#region src/pools/add-market/to-created-pool.ts
2
2
  function e(e) {
3
3
  return {
4
+ isTax: e.is_tax ?? null,
5
+ userWhitelistTax: e.user_whitelist_tax ?? null,
6
+ additionalChains: e.additional_chains ?? null,
7
+ cexList: e.cex_list ?? null,
4
8
  tokenContractAddress: e.token_contract_address,
5
9
  userAddress: e.user_address,
6
10
  tokenName: e.token_name,
@@ -1 +1 @@
1
- {"version":3,"file":"to-created-pool.js","names":[],"sources":["../../../src/pools/add-market/to-created-pool.ts"],"sourcesContent":["import type { ListingDepositChainId, ListingMarketStatus } from \"../types\";\nimport type { AddMarketDepositResponseSchemaV2 } from \"../types/generated/listing-backend\";\nimport type { CreatedPool } from \"./types\";\n\n/**\n * Map the raw `/v2/market/add-market` response into the SDK's {@link CreatedPool}.\n *\n * Renames snake_case wire fields to camelCase and normalizes the two nullable\n * addresses to `null` when absent. `deposit_chain` is a numeric chain id that\n * matches {@link ListingDepositChainId}, and the generated `MarketStatus` carries\n * the same string values as {@link ListingMarketStatus}, so both casts are\n * value-preserving.\n *\n * @param raw - The endpoint's `/v2/market/add-market` response body.\n * @returns The normalized created pool.\n */\nexport function toCreatedPool(raw: AddMarketDepositResponseSchemaV2): CreatedPool {\n return {\n tokenContractAddress: raw.token_contract_address,\n userAddress: raw.user_address,\n tokenName: raw.token_name,\n tokenTicker: raw.token_ticker,\n tokenDecimal: raw.token_decimal,\n buyBackRatio: raw.buy_back_ratio,\n maxLeverage: raw.max_leverage,\n depositChain: raw.deposit_chain as ListingDepositChainId,\n marketStatus: raw.market_status as unknown as ListingMarketStatus,\n walletPublicKey: raw.wallet_public_key ?? null,\n mainPool: raw.main_pool ?? null,\n };\n}\n"],"mappings":";AAgBA,SAAgB,EAAc,GAAoD;CAChF,OAAO;EACL,sBAAsB,EAAI;EAC1B,aAAa,EAAI;EACjB,WAAW,EAAI;EACf,aAAa,EAAI;EACjB,cAAc,EAAI;EAClB,cAAc,EAAI;EAClB,aAAa,EAAI;EACjB,cAAc,EAAI;EAClB,cAAc,EAAI;EAClB,iBAAiB,EAAI,qBAAqB;EAC1C,UAAU,EAAI,aAAa;CAC7B;AACF"}
1
+ {"version":3,"file":"to-created-pool.js","names":[],"sources":["../../../src/pools/add-market/to-created-pool.ts"],"sourcesContent":["import type { ListingDepositChainId, ListingMarketStatus } from \"../types\";\nimport type { AddMarketDepositResponseSchemaV2 } from \"../types/generated/listing-backend\";\nimport type { CreatedPool } from \"./types\";\n\n/**\n * Map the raw `/v2/market/add-market` response into the SDK's {@link CreatedPool}.\n *\n * Renames snake_case wire fields to camelCase and normalizes the two nullable\n * addresses to `null` when absent. `deposit_chain` is a numeric chain id that\n * matches {@link ListingDepositChainId}, and the generated `MarketStatus` carries\n * the same string values as {@link ListingMarketStatus}, so both casts are\n * value-preserving.\n *\n * @param raw - The endpoint's `/v2/market/add-market` response body.\n * @returns The normalized created pool.\n */\nexport function toCreatedPool(raw: AddMarketDepositResponseSchemaV2): CreatedPool {\n return {\n isTax: raw.is_tax ?? null,\n userWhitelistTax: raw.user_whitelist_tax ?? null,\n additionalChains: raw.additional_chains ?? null,\n cexList: raw.cex_list ?? null,\n tokenContractAddress: raw.token_contract_address,\n userAddress: raw.user_address,\n tokenName: raw.token_name,\n tokenTicker: raw.token_ticker,\n tokenDecimal: raw.token_decimal,\n buyBackRatio: raw.buy_back_ratio,\n maxLeverage: raw.max_leverage,\n depositChain: raw.deposit_chain as ListingDepositChainId,\n marketStatus: raw.market_status as unknown as ListingMarketStatus,\n walletPublicKey: raw.wallet_public_key ?? null,\n mainPool: raw.main_pool ?? null,\n };\n}\n"],"mappings":";AAgBA,SAAgB,EAAc,GAAoD;CAChF,OAAO;EACL,OAAO,EAAI,UAAU;EACrB,kBAAkB,EAAI,sBAAsB;EAC5C,kBAAkB,EAAI,qBAAqB;EAC3C,SAAS,EAAI,YAAY;EACzB,sBAAsB,EAAI;EAC1B,aAAa,EAAI;EACjB,WAAW,EAAI;EACf,aAAa,EAAI;EACjB,cAAc,EAAI;EAClB,cAAc,EAAI;EAClB,aAAa,EAAI;EACjB,cAAc,EAAI;EAClB,cAAc,EAAI;EAClB,iBAAiB,EAAI,qBAAqB;EAC1C,UAAU,EAAI,aAAa;CAC7B;AACF"}
@@ -10,6 +10,14 @@ import { ListingDepositChainId, ListingMarketStatus } from '../types.js';
10
10
  * `addMarket` returns the accepted application, not live pool metrics.
11
11
  */
12
12
  export interface CreatedPool {
13
+ /** Token transfer-tax flag, when reported. */
14
+ isTax?: boolean | null;
15
+ /** Whitelist status, when reported. */
16
+ userWhitelistTax?: boolean | null;
17
+ /** Other supported deposit chains. */
18
+ additionalChains?: number[] | null;
19
+ /** Exchange listings, when reported. */
20
+ cexList?: string[] | null;
13
21
  /**
14
22
  * The submitted token's contract address on {@link CreatedPool.depositChain}.
15
23
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/pools/add-market/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE3E;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B,4GAA4G;IAC5G,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,gGAAgG;IAChG,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,YAAY,EAAE,qBAAqB,CAAC;IACpC,0IAA0I;IAC1I,YAAY,EAAE,mBAAmB,CAAC;IAClC,uHAAuH;IACvH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,kFAAkF;IAClF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/pools/add-market/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE3E;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW;IAC1B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACnC,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC1B;;;;;;OAMG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B,4GAA4G;IAC5G,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,gGAAgG;IAChG,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,YAAY,EAAE,qBAAqB,CAAC;IACpC,0IAA0I;IAC1I,YAAY,EAAE,mBAAmB,CAAC;IAClC,uHAAuH;IACvH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,kFAAkF;IAClF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
@@ -1,6 +1,6 @@
1
1
  import { Config } from '../../core/config/index.js';
2
2
  import { ChainIdParameter, Compute, FromParameter } from '../../shared/types/properties.js';
3
- import { ListingAuthToken } from './types.js';
3
+ import { ListingAuthToken, ListingSignInMessage } from './types.js';
4
4
  /**
5
5
  * Parameters for {@link authenticateListing}.
6
6
  *
@@ -14,6 +14,8 @@ export type AuthenticateListingParameters = Compute<ChainIdParameter & FromParam
14
14
  uri: string;
15
15
  /** Optional human-readable statement to embed in the message. */
16
16
  statement?: string;
17
+ /** SDK-issued challenge fetched before the user's signing gesture. Must match the wallet and origin. */
18
+ signInMessage?: ListingSignInMessage;
17
19
  }>;
18
20
  /** Return type of {@link authenticateListing}: the issued bearer token. */
19
21
  export type AuthenticateListingReturnType = ListingAuthToken;
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate-listing.d.ts","sourceRoot":"","sources":["../../../src/pools/auth/authenticate-listing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAK9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD,gBAAgB,GACd,aAAa,GAAG;IACd,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACJ,CAAC;AAEF,2EAA2E;AAC3E,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,6BAA6B,CAAC,CAwCxC"}
1
+ {"version":3,"file":"authenticate-listing.d.ts","sourceRoot":"","sources":["../../../src/pools/auth/authenticate-listing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAM9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD,gBAAgB,GACd,aAAa,GAAG;IACd,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wGAAwG;IACxG,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC,CACJ,CAAC;AAEF,2EAA2E;AAC3E,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,6BAA6B,CAAC,CA6CxC"}
@@ -1,37 +1,42 @@
1
1
  import { SymmApiError as e, SymmError as t } from "../../shared/errors/symm-error.js";
2
2
  import { resolveListingService as n } from "../resolve-listing.js";
3
3
  import { loginV2AuthLoginPost as r } from "../types/generated/listing-backend.js";
4
- import { toCustomSiweMessage as i, toListingAuthToken as a } from "./to-siwe.js";
5
- import { getListingSignInMessage as o } from "./get-sign-in-message.js";
6
- import { isAxiosError as s } from "axios";
4
+ import { canReuseListingChallenge as i } from "./can-reuse-listing-challenge.js";
5
+ import { toCustomSiweMessage as a, toListingAuthToken as o } from "./to-siwe.js";
6
+ import { getListingSignInMessage as s } from "./get-sign-in-message.js";
7
+ import { isAxiosError as c } from "axios";
7
8
  //#region src/pools/auth/authenticate-listing.ts
8
- async function c(c, l) {
9
- let { url: u } = n(c, { chainId: l.chainId }), d = await c.getWalletClient({
10
- chainId: l.chainId,
11
- from: l.from
12
- }), f = d.account.address, p = await o(c, {
13
- chainId: l.chainId,
14
- address: f,
15
- domain: l.domain,
16
- uri: l.uri,
17
- statement: l.statement
18
- }), m = await d.signMessage({
19
- account: d.account,
20
- message: p.message
9
+ async function l(l, u) {
10
+ let { url: d } = n(l, { chainId: u.chainId }), f = await l.getWalletClient({
11
+ chainId: u.chainId,
12
+ from: u.from
13
+ }), p = f.account.address, m = l.getChainConfig(u.chainId).chainId, h = (u.signInMessage && i(u.signInMessage, {
14
+ ...u,
15
+ address: p,
16
+ chainId: m
17
+ }) ? u.signInMessage : void 0) ?? await s(l, {
18
+ chainId: u.chainId,
19
+ address: p,
20
+ domain: u.domain,
21
+ uri: u.uri,
22
+ statement: u.statement
23
+ }), g = await f.signMessage({
24
+ account: f.account,
25
+ message: h.message
21
26
  });
22
27
  try {
23
- return a((await r({
24
- message: i(p.params),
25
- signature: m
26
- }, { baseURL: u })).data);
28
+ return o((await r({
29
+ message: a(h.params),
30
+ signature: g
31
+ }, { baseURL: d })).data);
27
32
  } catch (n) {
28
- throw n instanceof t ? n : s(n) ? e.fromAxios(n, {
33
+ throw n instanceof t ? n : c(n) ? e.fromAxios(n, {
29
34
  code: "LISTING_LOGIN_FAILED",
30
- baseURL: u
35
+ baseURL: d
31
36
  }) : new t("api", "LISTING_LOGIN_FAILED", `Failed to log in to the listing service: ${n instanceof Error ? n.message : String(n)}`, { cause: n instanceof Error ? n : void 0 });
32
37
  }
33
38
  }
34
39
  //#endregion
35
- export { c as authenticateListing };
40
+ export { l as authenticateListing };
36
41
 
37
42
  //# sourceMappingURL=authenticate-listing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate-listing.js","names":[],"sources":["../../../src/pools/auth/authenticate-listing.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { ChainIdParameter, Compute, FromParameter } from \"../../shared/types/properties\";\nimport { resolveListingService } from \"../resolve-listing\";\nimport { loginV2AuthLoginPost } from \"../types/generated/listing-backend\";\nimport { getListingSignInMessage } from \"./get-sign-in-message\";\nimport { toCustomSiweMessage, toListingAuthToken } from \"./to-siwe\";\nimport type { ListingAuthToken } from \"./types\";\n\n/**\n * Parameters for {@link authenticateListing}.\n *\n * The signing address is taken from the resolved wallet account, so it is not a\n * parameter.\n */\nexport type AuthenticateListingParameters = Compute<\n ChainIdParameter &\n FromParameter & {\n /** RFC 4501 DNS authority requesting the sign-in. */\n domain: string;\n /** RFC 3986 URI of the dApp. */\n uri: string;\n /** Optional human-readable statement to embed in the message. */\n statement?: string;\n }\n>;\n\n/** Return type of {@link authenticateListing}: the issued bearer token. */\nexport type AuthenticateListingReturnType = ListingAuthToken;\n\n/**\n * Authenticate against the listing backend with the full SIWE (EIP-4361) flow:\n * fetch the sign-in challenge, sign it with the connected wallet, and exchange\n * the signature for a bearer token.\n *\n * The signing address comes from the resolved wallet account. Wallet or viem\n * rejection errors from signing pass through unwrapped.\n *\n * Enigma-only: the listing backend is an Enigma capability.\n *\n * @param config - The SDK config.\n * @param parameters - Domain, uri, and optional statement.\n * @returns The issued bearer token.\n * @throws {SymmApiError} when the sign-in or login request fails.\n * @throws {SymmError} `LISTING_NOT_CONFIGURED` when the chain has no listing\n * backend.\n *\n * @example\n * ```ts\n * const token = await authenticateListing(config, {\n * domain: \"app.example.com\",\n * uri: \"https://app.example.com\",\n * });\n * // Authorization: `Bearer ${token.accessToken}`\n * ```\n */\nexport async function authenticateListing(\n config: Config,\n parameters: AuthenticateListingParameters,\n): Promise<AuthenticateListingReturnType> {\n const { url } = resolveListingService(config, { chainId: parameters.chainId });\n\n const walletClient = await config.getWalletClient({ chainId: parameters.chainId, from: parameters.from });\n const address = walletClient.account.address;\n\n const signIn = await getListingSignInMessage(config, {\n chainId: parameters.chainId,\n address,\n domain: parameters.domain,\n uri: parameters.uri,\n statement: parameters.statement,\n });\n\n const signature = await walletClient.signMessage({\n account: walletClient.account,\n message: signIn.message,\n });\n\n try {\n const response = await loginV2AuthLoginPost(\n { message: toCustomSiweMessage(signIn.params), signature },\n { baseURL: url },\n );\n\n return toListingAuthToken(response.data);\n } catch (err) {\n if (err instanceof SymmError) throw err;\n\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"LISTING_LOGIN_FAILED\", baseURL: url });\n }\n\n throw new SymmError(\n \"api\",\n \"LISTING_LOGIN_FAILED\",\n `Failed to log in to the listing service: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;;AAyDA,eAAsB,EACpB,GACA,GACwC;CACxC,IAAM,EAAE,WAAQ,EAAsB,GAAQ,EAAE,SAAS,EAAW,QAAQ,CAAC,GAEvE,IAAe,MAAM,EAAO,gBAAgB;EAAE,SAAS,EAAW;EAAS,MAAM,EAAW;CAAK,CAAC,GAClG,IAAU,EAAa,QAAQ,SAE/B,IAAS,MAAM,EAAwB,GAAQ;EACnD,SAAS,EAAW;EACpB;EACA,QAAQ,EAAW;EACnB,KAAK,EAAW;EAChB,WAAW,EAAW;CACxB,CAAC,GAEK,IAAY,MAAM,EAAa,YAAY;EAC/C,SAAS,EAAa;EACtB,SAAS,EAAO;CAClB,CAAC;CAED,IAAI;EAMF,OAAO,GAAmB,MALH,EACrB;GAAE,SAAS,EAAoB,EAAO,MAAM;GAAG;EAAU,GACzD,EAAE,SAAS,EAAI,CACjB,GAEmC,IAAI;CACzC,SAAS,GAAK;EAOZ,MANI,aAAe,IAAiB,IAEhC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAAwB,SAAS;EAAI,CAAC,IAG5E,IAAI,EACR,OACA,wBACA,4CAA4C,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KAC3F,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
1
+ {"version":3,"file":"authenticate-listing.js","names":[],"sources":["../../../src/pools/auth/authenticate-listing.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { ChainIdParameter, Compute, FromParameter } from \"../../shared/types/properties\";\nimport { resolveListingService } from \"../resolve-listing\";\nimport { loginV2AuthLoginPost } from \"../types/generated/listing-backend\";\nimport { canReuseListingChallenge } from \"./can-reuse-listing-challenge\";\nimport { getListingSignInMessage } from \"./get-sign-in-message\";\nimport { toCustomSiweMessage, toListingAuthToken } from \"./to-siwe\";\nimport type { ListingAuthToken, ListingSignInMessage } from \"./types\";\n\n/**\n * Parameters for {@link authenticateListing}.\n *\n * The signing address is taken from the resolved wallet account, so it is not a\n * parameter.\n */\nexport type AuthenticateListingParameters = Compute<\n ChainIdParameter &\n FromParameter & {\n /** RFC 4501 DNS authority requesting the sign-in. */\n domain: string;\n /** RFC 3986 URI of the dApp. */\n uri: string;\n /** Optional human-readable statement to embed in the message. */\n statement?: string;\n /** SDK-issued challenge fetched before the user's signing gesture. Must match the wallet and origin. */\n signInMessage?: ListingSignInMessage;\n }\n>;\n\n/** Return type of {@link authenticateListing}: the issued bearer token. */\nexport type AuthenticateListingReturnType = ListingAuthToken;\n\n/**\n * Authenticate against the listing backend with the full SIWE (EIP-4361) flow:\n * fetch the sign-in challenge, sign it with the connected wallet, and exchange\n * the signature for a bearer token.\n *\n * The signing address comes from the resolved wallet account. Wallet or viem\n * rejection errors from signing pass through unwrapped.\n *\n * Enigma-only: the listing backend is an Enigma capability.\n *\n * @param config - The SDK config.\n * @param parameters - Domain, uri, and optional statement.\n * @returns The issued bearer token.\n * @throws {SymmApiError} when the sign-in or login request fails.\n * @throws {SymmError} `LISTING_NOT_CONFIGURED` when the chain has no listing\n * backend.\n *\n * @example\n * ```ts\n * const token = await authenticateListing(config, {\n * domain: \"app.example.com\",\n * uri: \"https://app.example.com\",\n * });\n * // Authorization: `Bearer ${token.accessToken}`\n * ```\n */\nexport async function authenticateListing(\n config: Config,\n parameters: AuthenticateListingParameters,\n): Promise<AuthenticateListingReturnType> {\n const { url } = resolveListingService(config, { chainId: parameters.chainId });\n\n const walletClient = await config.getWalletClient({ chainId: parameters.chainId, from: parameters.from });\n const address = walletClient.account.address;\n const chainId = config.getChainConfig(parameters.chainId).chainId;\n\n const signIn =\n (parameters.signInMessage && canReuseListingChallenge(parameters.signInMessage, { ...parameters, address, chainId })\n ? parameters.signInMessage\n : undefined) ??\n (await getListingSignInMessage(config, {\n chainId: parameters.chainId,\n address,\n domain: parameters.domain,\n uri: parameters.uri,\n statement: parameters.statement,\n }));\n\n const signature = await walletClient.signMessage({\n account: walletClient.account,\n message: signIn.message,\n });\n\n try {\n const response = await loginV2AuthLoginPost(\n { message: toCustomSiweMessage(signIn.params), signature },\n { baseURL: url },\n );\n\n return toListingAuthToken(response.data);\n } catch (err) {\n if (err instanceof SymmError) throw err;\n\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"LISTING_LOGIN_FAILED\", baseURL: url });\n }\n\n throw new SymmError(\n \"api\",\n \"LISTING_LOGIN_FAILED\",\n `Failed to log in to the listing service: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;;;AA4DA,eAAsB,EACpB,GACA,GACwC;CACxC,IAAM,EAAE,WAAQ,EAAsB,GAAQ,EAAE,SAAS,EAAW,QAAQ,CAAC,GAEvE,IAAe,MAAM,EAAO,gBAAgB;EAAE,SAAS,EAAW;EAAS,MAAM,EAAW;CAAK,CAAC,GAClG,IAAU,EAAa,QAAQ,SAC/B,IAAU,EAAO,eAAe,EAAW,OAAO,EAAE,SAEpD,KACH,EAAW,iBAAiB,EAAyB,EAAW,eAAe;EAAE,GAAG;EAAY;EAAS;CAAQ,CAAC,IAC/G,EAAW,gBACX,KAAA,MACH,MAAM,EAAwB,GAAQ;EACrC,SAAS,EAAW;EACpB;EACA,QAAQ,EAAW;EACnB,KAAK,EAAW;EAChB,WAAW,EAAW;CACxB,CAAC,GAEG,IAAY,MAAM,EAAa,YAAY;EAC/C,SAAS,EAAa;EACtB,SAAS,EAAO;CAClB,CAAC;CAED,IAAI;EAMF,OAAO,GAAmB,MALH,EACrB;GAAE,SAAS,EAAoB,EAAO,MAAM;GAAG;EAAU,GACzD,EAAE,SAAS,EAAI,CACjB,GAEmC,IAAI;CACzC,SAAS,GAAK;EAOZ,MANI,aAAe,IAAiB,IAEhC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAAwB,SAAS;EAAI,CAAC,IAG5E,IAAI,EACR,OACA,wBACA,4CAA4C,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KAC3F,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
@@ -0,0 +1,5 @@
1
+ import { GetListingSignInMessageParameters } from './get-sign-in-message.js';
2
+ import { ListingSignInMessage } from './types.js';
3
+ /** Select cached challenges only for their original signing context. The server validates signatures and nonces. */
4
+ export declare function canReuseListingChallenge(challenge: ListingSignInMessage, request: GetListingSignInMessageParameters): boolean;
5
+ //# sourceMappingURL=can-reuse-listing-challenge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"can-reuse-listing-challenge.d.ts","sourceRoot":"","sources":["../../../src/pools/auth/can-reuse-listing-challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,oHAAoH;AACpH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,iCAAiC,GACzC,OAAO,CAUT"}
@@ -0,0 +1,9 @@
1
+ //#region src/pools/auth/can-reuse-listing-challenge.ts
2
+ function e(e, t) {
3
+ let n = e.params;
4
+ return n.address.toLowerCase() === t.address.toLowerCase() && n.domain === t.domain && n.uri === t.uri && (n.statement ?? "") === (t.statement ?? "") && (t.chainId == null || n.chainId === t.chainId) && (n.expirationTime == null || Date.parse(n.expirationTime) > Date.now());
5
+ }
6
+ //#endregion
7
+ export { e as canReuseListingChallenge };
8
+
9
+ //# sourceMappingURL=can-reuse-listing-challenge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"can-reuse-listing-challenge.js","names":[],"sources":["../../../src/pools/auth/can-reuse-listing-challenge.ts"],"sourcesContent":["import type { GetListingSignInMessageParameters } from \"./get-sign-in-message\";\nimport type { ListingSignInMessage } from \"./types\";\n\n/** Select cached challenges only for their original signing context. The server validates signatures and nonces. */\nexport function canReuseListingChallenge(\n challenge: ListingSignInMessage,\n request: GetListingSignInMessageParameters,\n): boolean {\n const fields = challenge.params;\n return (\n fields.address.toLowerCase() === request.address.toLowerCase() &&\n fields.domain === request.domain &&\n fields.uri === request.uri &&\n (fields.statement ?? \"\") === (request.statement ?? \"\") &&\n (request.chainId == null || fields.chainId === request.chainId) &&\n (fields.expirationTime == null || Date.parse(fields.expirationTime) > Date.now())\n );\n}\n"],"mappings":";AAIA,SAAgB,EACd,GACA,GACS;CACT,IAAM,IAAS,EAAU;CACzB,OACE,EAAO,QAAQ,YAAY,MAAM,EAAQ,QAAQ,YAAY,KAC7D,EAAO,WAAW,EAAQ,UAC1B,EAAO,QAAQ,EAAQ,QACtB,EAAO,aAAa,SAAS,EAAQ,aAAa,QAClD,EAAQ,WAAW,QAAQ,EAAO,YAAY,EAAQ,aACtD,EAAO,kBAAkB,QAAQ,KAAK,MAAM,EAAO,cAAc,IAAI,KAAK,IAAI;AAEnF"}