@symmio/trading-core 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/gasless/delegation-preflight.d.ts +22 -0
  2. package/dist/gasless/delegation-preflight.d.ts.map +1 -1
  3. package/dist/gasless/delegation-preflight.js +34 -19
  4. package/dist/gasless/delegation-preflight.js.map +1 -1
  5. package/dist/index.d.ts +12 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +82 -79
  8. package/dist/pools/index.d.ts +1 -0
  9. package/dist/pools/index.d.ts.map +1 -1
  10. package/dist/pools/token-price/get-token-price.d.ts +71 -0
  11. package/dist/pools/token-price/get-token-price.d.ts.map +1 -0
  12. package/dist/pools/token-price/get-token-price.js +30 -0
  13. package/dist/pools/token-price/get-token-price.js.map +1 -0
  14. package/dist/pools/token-price/index.d.ts +4 -0
  15. package/dist/pools/token-price/index.d.ts.map +1 -0
  16. package/dist/pools/token-price/query.d.ts +52 -0
  17. package/dist/pools/token-price/query.d.ts.map +1 -0
  18. package/dist/pools/token-price/query.js +29 -0
  19. package/dist/pools/token-price/query.js.map +1 -0
  20. package/dist/pools/token-price/to-token-price.d.ts +14 -0
  21. package/dist/pools/token-price/to-token-price.d.ts.map +1 -0
  22. package/dist/pools/token-price/to-token-price.js +8 -0
  23. package/dist/pools/token-price/to-token-price.js.map +1 -0
  24. package/dist/pools/transactions/get-pool-transactions.d.ts +59 -17
  25. package/dist/pools/transactions/get-pool-transactions.d.ts.map +1 -1
  26. package/dist/pools/transactions/get-pool-transactions.js +7 -4
  27. package/dist/pools/transactions/get-pool-transactions.js.map +1 -1
  28. package/dist/pools/transactions/query.d.ts +6 -2
  29. package/dist/pools/transactions/query.d.ts.map +1 -1
  30. package/dist/pools/transactions/query.js +12 -13
  31. package/dist/pools/transactions/query.js.map +1 -1
  32. package/dist/pools/transactions/to-pool-transaction.d.ts +7 -0
  33. package/dist/pools/transactions/to-pool-transaction.d.ts.map +1 -1
  34. package/dist/pools/transactions/to-pool-transaction.js +3 -1
  35. package/dist/pools/transactions/to-pool-transaction.js.map +1 -1
  36. package/dist/pools/types/generated/listing-backend.js +8 -8
  37. package/dist/pools/types/generated/listing-backend.js.map +1 -1
  38. package/dist/pools/types.d.ts +53 -10
  39. package/dist/pools/types.d.ts.map +1 -1
  40. package/dist/pools/types.js +6 -4
  41. package/dist/pools/types.js.map +1 -1
  42. package/dist/solvers/instant-close/instant-close/instant-close.d.ts +8 -1
  43. package/dist/solvers/instant-close/instant-close/instant-close.d.ts.map +1 -1
  44. package/dist/solvers/instant-close/instant-close/instant-close.js +40 -32
  45. package/dist/solvers/instant-close/instant-close/instant-close.js.map +1 -1
  46. package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.d.ts +7 -1
  47. package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.d.ts.map +1 -1
  48. package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.js +48 -40
  49. package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.js.map +1 -1
  50. package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.d.ts +4 -2
  51. package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.d.ts.map +1 -1
  52. package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.js +1 -0
  53. package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.js.map +1 -1
  54. package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.d.ts +4 -2
  55. package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.d.ts.map +1 -1
  56. package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.js +2 -1
  57. package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.js.map +1 -1
  58. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.d.ts +2 -0
  59. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.d.ts.map +1 -1
  60. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.js +64 -56
  61. package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.js.map +1 -1
  62. package/dist/solvers/instant-open/instant-open/adapters/rasa-instant-open.d.ts +2 -0
  63. package/dist/solvers/instant-open/instant-open/adapters/rasa-instant-open.d.ts.map +1 -1
  64. package/dist/solvers/instant-open/instant-open/adapters/rasa-instant-open.js +51 -43
  65. package/dist/solvers/instant-open/instant-open/adapters/rasa-instant-open.js.map +1 -1
  66. package/dist/solvers/instant-open/instant-open/instant-open.d.ts +6 -0
  67. package/dist/solvers/instant-open/instant-open/instant-open.d.ts.map +1 -1
  68. package/dist/solvers/instant-open/instant-open/instant-open.js.map +1 -1
  69. package/dist/solvers/instant-open/instant-open/types.d.ts +2 -1
  70. package/dist/solvers/instant-open/instant-open/types.d.ts.map +1 -1
  71. package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts +3 -1
  72. package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts.map +1 -1
  73. package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js +2 -1
  74. package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js.map +1 -1
  75. package/dist/solvers/shared/index.d.ts +1 -0
  76. package/dist/solvers/shared/index.d.ts.map +1 -1
  77. package/dist/solvers/shared/instant-delegation-preflight.d.ts +65 -0
  78. package/dist/solvers/shared/instant-delegation-preflight.d.ts.map +1 -0
  79. package/dist/solvers/shared/instant-delegation-preflight.js +34 -0
  80. package/dist/solvers/shared/instant-delegation-preflight.js.map +1 -0
  81. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -494,82 +494,85 @@ import { toCancelWithdrawResult as Bf } from "./pools/cancel-withdraw/to-cancel-
494
494
  import { cancelWithdraw as Vf } from "./pools/cancel-withdraw/cancel-withdraw.js";
495
495
  import { cancelWithdrawMutationOptions as Hf } from "./pools/cancel-withdraw/query.js";
496
496
  import { toClaimRequest as Uf } from "./pools/claim/to-claim-request.js";
497
- import { LISTING_VALUE_DECIMALS as Wf, ListingDepositChainId as Gf, ListingMarketStatus as Kf, MarketLockReason as qf, PoolPositionSide as Jf, PoolTransactionStatus as Yf, PoolTransactionType as Xf } from "./pools/types.js";
498
- import { parseListingValue as Zf, toListingMarket as Qf, toListingMarketPage as $f, toListingValue as ep } from "./pools/markets/to-listing-market.js";
499
- import { toClaimResult as tp } from "./pools/claim/to-claim-result.js";
500
- import { claimProfit as np } from "./pools/claim/claim-profit.js";
501
- import { claimProfitMutationOptions as rp } from "./pools/claim/query.js";
502
- import { toPoolClaim as ip, toPoolClaimHistoryPage as ap } from "./pools/claim-history/to-pool-claim.js";
503
- import { getClaimHistory as op } from "./pools/claim-history/get-claim-history.js";
504
- import { getClaimHistoryQueryKey as sp, getClaimHistoryQueryOptions as cp } from "./pools/claim-history/query.js";
505
- import { toMarketDepositAddress as lp } from "./pools/deposit-address/to-market-deposit-address.js";
506
- import { getDepositAddress as up } from "./pools/deposit-address/get-deposit-address.js";
507
- import { getDepositAddressQueryKey as dp, getDepositAddressQueryOptions as fp } from "./pools/deposit-address/query.js";
508
- import { toListingConfig as pp } from "./pools/listing-config/to-listing-config.js";
509
- import { getListingConfig as mp } from "./pools/listing-config/get-listing-config.js";
510
- import { getListingConfigQueryKey as hp, getListingConfigQueryOptions as gp } from "./pools/listing-config/query.js";
511
- import { toListingStatus as _p } from "./pools/listing-status/to-listing-status.js";
512
- import { getListingStatus as vp } from "./pools/listing-status/get-listing-status.js";
513
- import { getListingStatusQueryKey as yp, getListingStatusQueryOptions as bp } from "./pools/listing-status/query.js";
514
- import { toListingMarketConfig as xp } from "./pools/market-config/to-listing-market-config.js";
515
- import { getListingMarketConfig as Sp } from "./pools/market-config/get-listing-market-config.js";
516
- import { projectListingMarketConfig as Cp } from "./pools/market-config/project-listing-market-config.js";
517
- import { toUpdateListingMarketConfigRequest as wp } from "./pools/market-config/to-update-listing-market-config-request.js";
518
- import { updateListingMarketConfig as Tp } from "./pools/market-config/update-listing-market-config.js";
519
- import { getListingMarketConfigQueryKey as Ep, getListingMarketConfigQueryOptions as Dp, updateListingMarketConfigMutationOptions as Op } from "./pools/market-config/query.js";
520
- import { LISTING_MARKET_CONFIG_BOUNDS as kp } from "./pools/market-config/types.js";
521
- import { toListingMarketDetail as Ap } from "./pools/market-detail/to-listing-market-detail.js";
522
- import { getListingMarketDetail as jp } from "./pools/market-detail/get-listing-market-detail.js";
523
- import { getListingMarketDetailQueryKey as Mp, getListingMarketDetailQueryOptions as Np } from "./pools/market-detail/query.js";
524
- import { toPoolPositions as Pp } from "./pools/market-detail/to-pool-positions.js";
525
- import { getListingMarkets as Fp } from "./pools/markets/get-listing-markets.js";
526
- import { getListingMarketsQueryKey as Ip, getListingMarketsQueryOptions as Lp } from "./pools/markets/query.js";
527
- import { toUserPoolProfit as Rp } from "./pools/profit/to-user-pool-profit.js";
528
- import { getUserProfit as zp } from "./pools/profit/get-user-profit.js";
529
- import { getUserProfitQueryKey as Bp, getUserProfitQueryOptions as Vp } from "./pools/profit/query.js";
530
- import { toPoolQuote as Hp } from "./pools/quotes/to-pool-quote.js";
531
- import { POOL_OPEN_QUOTE_STATUSES as Up, POOL_PENDING_QUOTE_STATUSES as Wp, getPoolQuotes as Gp } from "./pools/quotes/get-pool-quotes.js";
532
- import { getPoolQuotesQueryKey as Kp, getPoolQuotesQueryOptions as qp } from "./pools/quotes/query.js";
533
- import { toRefundRequest as Jp } from "./pools/refund/to-refund-request.js";
534
- import { toRefundResult as Yp } from "./pools/refund/to-refund-result.js";
535
- import { refundMarket as Xp } from "./pools/refund/refund-market.js";
536
- import { refundMarketMutationOptions as Zp } from "./pools/refund/query.js";
537
- import { toRetryListingInfo as Qp } from "./pools/retry-listing/to-retry-listing-info.js";
538
- import { getRetryListingInfo as $p } from "./pools/retry-listing/get-retry-listing-info.js";
539
- import { toRetryListingResult as em } from "./pools/retry-listing/to-retry-listing-result.js";
540
- import { retryListing as tm } from "./pools/retry-listing/retry-listing.js";
541
- import { getRetryListingInfoQueryKey as nm, getRetryListingInfoQueryOptions as rm, retryListingMutationOptions as im } from "./pools/retry-listing/query.js";
542
- import { toPoolRewardPoint as am, toUserPoolRewardChart as om } from "./pools/rewards/to-pool-reward-point.js";
543
- import { getPoolRewardChart as sm } from "./pools/rewards/get-pool-reward-chart.js";
544
- import { getPoolTotalReward as cm } from "./pools/rewards/get-pool-total-reward.js";
545
- import { getUserRewardChart as lm } from "./pools/rewards/get-user-reward-chart.js";
546
- import { getUserTotalReward as um } from "./pools/rewards/get-user-total-reward.js";
547
- import { getPoolRewardChartQueryKey as dm, getPoolRewardChartQueryOptions as fm, getPoolTotalRewardQueryKey as pm, getPoolTotalRewardQueryOptions as mm, getUserRewardChartQueryKey as hm, getUserRewardChartQueryOptions as gm, getUserTotalRewardQueryKey as _m, getUserTotalRewardQueryOptions as vm } from "./pools/rewards/query.js";
548
- import { getPoolTradeHistory as ym } from "./pools/trade-history/get-pool-trade-history.js";
549
- import { getPoolTradeHistoryQueryKey as bm, getPoolTradeHistoryQueryOptions as xm } from "./pools/trade-history/query.js";
550
- import { toPoolTransaction as Sm, toPoolTransactionPage as Cm } from "./pools/transactions/to-pool-transaction.js";
551
- import { getPoolTransactions as wm } from "./pools/transactions/get-pool-transactions.js";
552
- import { getPoolTransactionsQueryKey as Tm, getPoolTransactionsQueryOptions as Em } from "./pools/transactions/query.js";
553
- import { toUserListingMarket as Dm, toUserListingMarketPage as Om } from "./pools/user-markets/to-user-listing-market.js";
554
- import { getUserListingMarkets as km } from "./pools/user-markets/get-user-listing-markets.js";
555
- import { getUserListingMarketsQueryKey as Am, getUserListingMarketsQueryOptions as jm } from "./pools/user-markets/query.js";
556
- import { toUserTransaction as Mm, toUserTransactionPage as Nm } from "./pools/user-transactions/to-user-transaction.js";
557
- import { getUserTransactions as Pm } from "./pools/user-transactions/get-user-transactions.js";
558
- import { getUserTransactionsQueryKey as Fm, getUserTransactionsQueryOptions as Im } from "./pools/user-transactions/query.js";
559
- import { toWeeklyListingLimit as Lm } from "./pools/weekly-limit/to-weekly-limit.js";
560
- import { getWeeklyListingLimit as Rm } from "./pools/weekly-limit/get-weekly-listing-limit.js";
561
- import { getWeeklyListingLimitQueryKey as zm, getWeeklyListingLimitQueryOptions as Bm } from "./pools/weekly-limit/query.js";
562
- import { toWithdrawRequest as Vm } from "./pools/withdraw/to-withdraw-request.js";
563
- import { withdrawLp as Hm } from "./pools/withdraw/withdraw-lp.js";
564
- import { withdrawLpMutationOptions as Um } from "./pools/withdraw/query.js";
565
- import { toSolverRevenue as Wm } from "./solvers/revenue/to-solver-revenue.js";
566
- import { getSolverRevenue as Gm } from "./solvers/revenue/get-solver-revenue.js";
567
- import { getSolverRevenueQueryKey as Km, getSolverRevenueQueryOptions as qm } from "./solvers/revenue/query.js";
568
- import { resolveInventoryService as Jm, supportsInventoryService as Ym } from "./inventory/resolve-inventory.js";
569
- import { getInventoryTvl as Xm, toInventoryTvl as Zm } from "./inventory/tvl/get-inventory-tvl.js";
570
- import { getInventoryTvlQueryKey as Qm, getInventoryTvlQueryOptions as $m } from "./inventory/tvl/query.js";
571
- import { toInventoryTvlPoint as eh } from "./inventory/tvl-history/to-inventory-tvl-point.js";
572
- import { getInventoryTvlHistory as th } from "./inventory/tvl-history/get-inventory-tvl-history.js";
573
- import { getInventoryTvlHistoryQueryKey as nh, getInventoryTvlHistoryQueryOptions as rh } from "./inventory/tvl-history/query.js";
574
- import { INVENTORY_VALUE_DECIMALS as ih } from "./inventory/types.js";
575
- export { Vn as ADD_MARGIN_TO_NEXT_VA_SELECTOR, ua as ActionStatus, St as AffiliateState, ff as BINANCE_DEPTH_DEFAULT_LEVELS, pf as BINANCE_DEPTH_DEFAULT_LIMIT, mf as BINANCE_DEPTH_DEFAULT_UPDATE_SPEED, hf as BINANCE_DEPTH_LIMITS, gf as BINANCE_DEPTH_MAX_BUFFERED_EVENTS, _f as BINANCE_DEPTH_PATH, vf as BINANCE_DEPTH_REST_URL, yf as BINANCE_DEPTH_UPDATE_SPEEDS, bf as BINANCE_DEPTH_WS_URL, Xo as BINANCE_EXCHANGE_INFO_PATH, Zo as BINANCE_KLINES_PATH, Qo as BINANCE_MAX_LIMIT, xf as BINANCE_ORDERBOOK_EXCHANGE_INFO_PATH, $o as BINANCE_REST_URL, es as BINANCE_WS_URL, Nd as BalanceChangeType, Pd as BalanceHistoryFilter, qd as CANDLE_RESOLUTION_MS, Bl as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, xd as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, Wl 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, od 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, ih as INVENTORY_VALUE_DECIMALS, Un as LEGACY_INSTANT_TRADE_REQUIRED_SELECTORS, kp as LISTING_MARKET_CONFIG_BOUNDS, Wf as LISTING_VALUE_DECIMALS, Gf as ListingDepositChainId, Kf as ListingMarketStatus, co as MARKET_ORDER_DEADLINE_SECONDS, vl 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, Fd as MarginTransferType, qf as MarketLockReason, da as NotificationType, cr as OPERATIONAL_FEE_LIST_PRICE_MULTIPLIER, no as ORDER_TYPE_MARKET, Gi as OrderType, Up as POOL_OPEN_QUOTE_STATUSES, Wp as POOL_PENDING_QUOTE_STATUSES, Gl as PRICE_HISTORY_EVENT_TYPES, Jf as PoolPositionSide, Yf as PoolTransactionStatus, Xf as PoolTransactionType, Ki as PositionType, Jl as QUOTES_FUNDING_MAX_IDS_PER_REQUEST, Ql as QuoteCloseEventType, $l as QuoteCloseType, Kl as QuoteEventType, wl as QuoteLifecycle, qi as QuoteStatus, Wn as REQUEST_TO_CLOSE_POSITION_SELECTOR, Gn as SEND_QUOTE_SELECTOR, Kn as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, lo as SHORT_FUNDING_BUFFER_PERCENT, h as SIGNED_OPERATION_TYPES, Ct as SubAccountIsolationType, a as SymmApiError, o as SymmError, s as SymmioSupportedChainId, hd as TPSL_LIVE_ORDER_STATES, Ad as TpSlSearchOrderType, ro as VIRTUAL_ACCOUNT_ISOLATION_TYPE, Ji as WithdrawStatus, Ku as ZERO_LEG, qa as ZERO_UPNL_SIG, e as accountLayerAbi, of as accumulateOrderbook, ae as addMargin, Ne as addMarginMutationOptions, Nf as addMarket, Pf as addMarketMutationOptions, Su as aggregateGroupFunding, Ou as aggregateGroupMetrics, Du as aggregateGroupUpnl, sr as allocate, ni as allocateMutationOptions, Tl as applyNotificationToQuotes, Tt as approveCollateral, Ot as approveCollateralMutationOptions, lr as approveOperationalFee, ri as approveOperationalFeeMutationOptions, ku as assertQuoteGroupingSupported, Rf as authenticateListing, zf as authenticateListingMutationOptions, Id as balanceHistoryFilterToTypes, yd as buildConditionalOrderLeg, qu as buildConditionalOrderMessage, Ja as buildQuoteMetadata, ha as buildRasaSubscribeMessage, v as buildSignedOperation, ma as buildSubscribeMessage, Ju as buildTpSlDeleteMessage, Me as calculateAvailableForOrder, uo as calculateAvailableInstantOpenMargin, Nl as calculateClosePlatformFee, Wo as calculateClosePrice, fo as calculateExpectedSettlementLoss, Fu as calculateLiquidationPrice, po as calculateMargin, Hu as calculateMarginRisk, Pl as calculateOpenPlatformFee, hs as calculatePriceImpact, Ru as calculateQuoteLeverage, zu as calculateQuotePnl, Bu as calculateQuoteUpnl, Vu as calculateQuoteUpnlWei, Ra as calculateSolverCloseFee, mo as calculateSolverFees, ho as calculateTradeParams, se as cancelRegistration, Pe as cancelRegistrationMutationOptions, Vf as cancelWithdraw, Hf as cancelWithdrawMutationOptions, is as checkForceCloseEligibility, as as checkForceClosePriceReached, Eo as checkNotionalCap, id as childNotional, np as claimProfit, rp as claimProfitMutationOptions, Go as clampClosePrecision, ln as classifyGaslessFailure, fa as classifyNotification, El as classifyQuoteNotificationAction, eu as closeTypeToEventTypes, Yr as collateralToCore18, go as computePlatformFee, _o as computePlatformFeeLegs, fn as confirmGaslessRequest, Xr as core18ToCollateral, nf as countTickDecimals, tf as createBinanceCandleSource, Df as createBinanceOrderbookSource, Zr as createClassicWithdrawPart, f as createConfig, le as createSubAccounts, Fe as createSubAccountsMutationOptions, xr as deallocate, Sr as deallocateAndInitiateWithdraw, ai as deallocateAndInitiateWithdrawMutationOptions, ii as deallocateMutationOptions, So as decimalPriceToWei, un as decodeGaslessOperationFailure, $u as deleteQuoteTpSl, ed as deleteQuoteTpSlMutationOptions, de as deleteSubAccount, Ie as deleteSubAccountMutationOptions, pe as depositAndAllocateForAccount, Le as depositAndAllocateForAccountMutationOptions, he as depositForAccount, Re as depositForAccountMutationOptions, To as deriveAutoSlippage, _e as editAccountName, ze as editAccountNameMutationOptions, Ya as encodeAddMarginToNextVA, Vo as encodeRequestToClosePosition, Xa as encodeSendQuote, Za as encodeSendQuoteWithAffiliateAndData, cd as estimateGroupTpSlReturn, tu as eventTypeToCloseType, nu as eventTypeToQuoteStatus, wf as fetchBinanceDepth, Tf as fetchBinanceSymbolFilters, Be as filterQueryOptions, Pt as finalizeRevokeDelegation, Ht as finalizeRevokeDelegationMutationOptions, wr as finalizeWithdrawRequest, oi as finalizeWithdrawRequestMutationOptions, os as findForceCloseWindow, Fl as fingerprintQuote, Tr as forceCancelCloseRequest, si as forceCancelCloseRequestMutationOptions, Er as forceCancelQuote, ci as forceCancelQuoteMutationOptions, us as forceCloseAuto, ds as forceCloseAutoMutationOptions, cs as forceClosePosition, fs as forceClosePositionMutationOptions, y as formatSignedOperationPayload, Gd 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, Yu 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, Rd as getBalanceHistory, zd as getBalanceHistoryQueryKey, Bd as getBalanceHistoryQueryOptions, Ca as getBinanceHealth, wa as getBinanceHealthQueryKey, Ta as getBinanceHealthQueryOptions, Ea as getBinancePremiumIndex, Da as getBinancePremiumIndexQueryKey, Oa as getBinancePremiumIndexQueryOptions, Qd as getBinanceSupportedResolutions, ka as getBinanceSymbolsInfo, Aa as getBinanceSymbolsInfoQueryKey, ja as getBinanceSymbolsInfoQueryOptions, Xd as getCandlesQueryKey, Zd as getCandlesQueryOptions, c as getChainConfig, op as getClaimHistory, sp as getClaimHistoryQueryKey, cp as getClaimHistoryQueryOptions, Et as getCollateralAllowance, kt as getCollateralAllowanceQueryKey, At as getCollateralAllowanceQueryOptions, Dt as getCollateralBalance, jt as getCollateralBalanceQueryKey, Mt as getCollateralBalanceQueryOptions, Dr as getCoolDownsOfMA, li as getCoolDownsOfMAQueryKey, ui as getCoolDownsOfMAQueryOptions, br as getDeallocateUpnlSig, _c as getDeallocateUpnlSigQueryKey, vc as getDeallocateUpnlSigQueryOptions, l as getDefaultSolver, It as getDelegationExpiry, Gt as getDelegationExpiryQueryKey, Kt as getDelegationExpiryQueryOptions, up as getDepositAddress, dp as getDepositAddressQueryKey, fp as getDepositAddressQueryOptions, Yi as getEnigmaPriceServiceHealth, Xi as getEnigmaPriceServiceHealthQueryKey, Zi as getEnigmaPriceServiceHealthQueryOptions, Qi as getEnigmaPriceServiceMetadata, $i as getEnigmaPriceServiceMetadataQueryKey, ea as getEnigmaPriceServiceMetadataQueryOptions, ta as getEnigmaPriceServicePricesByAddresses, na as getEnigmaPriceServicePricesByAddressesQueryKey, ra as getEnigmaPriceServicePricesByAddressesQueryOptions, ia as getEnigmaPriceServicePricesByNames, aa as getEnigmaPriceServicePricesByNamesQueryKey, oa as getEnigmaPriceServicePricesByNamesQueryOptions, sa as getEnigmaPriceServiceSymbolsInfo, ca as getEnigmaPriceServiceSymbolsInfoQueryKey, la as getEnigmaPriceServiceSymbolsInfoQueryOptions, Is as getErrorMessage, Ls as getErrorMessageQueryKey, Rs as getErrorMessageQueryOptions, wo as getEstimatedPrice, gs as getEstimatedPriceQueryKey, _s as getEstimatedPriceQueryOptions, Qa as getFakeSendQuoteMuonSignature, Or as getFeeForUser, di as getFeeForUserQueryKey, fi as getFeeForUserQueryOptions, ls as getForceCloseParams, ps as getForceCloseParamsQueryKey, ms as getForceCloseParamsQueryOptions, rs as getForceClosePriceSig, yc as getForceClosePriceSigQueryKey, bc as getForceClosePriceSigQueryOptions, $r as getFundingFeesOfPartyB, ei as getFundingFeesOfPartyBQueryKey, ti as getFundingFeesOfPartyBQueryOptions, bs as getFundingInfo, Ss as getFundingInfoQueryKey, Cs 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, cl as getInstantCloseFees, ll as getInstantCloseFeesQueryKey, ul as getInstantCloseFeesQueryOptions, fl as getInstantCloses, pl as getInstantClosesQueryKey, ml as getInstantClosesQueryOptions, g as getInstantLayerEip712Domain, C as getInstantLayerNonce, qt as getInstantLayerNonceQueryKey, Jt as getInstantLayerNonceQueryOptions, Yc as getInstantOpenFees, Xc as getInstantOpenFeesQueryKey, Zc as getInstantOpenFeesQueryOptions, Qc as getInstantOpenQuoteId, $c as getInstantOpenQuoteIdQueryKey, el as getInstantOpenQuoteIdQueryOptions, tl as getInstantOpens, nl as getInstantOpensQueryKey, rl as getInstantOpensQueryOptions, qn as getInstantTradeRequiredSelectors, Xm as getInventoryTvl, th as getInventoryTvlHistory, nh as getInventoryTvlHistoryQueryKey, rh as getInventoryTvlHistoryQueryOptions, Qm as getInventoryTvlQueryKey, $m as getInventoryTvlQueryOptions, T as getIsDelegationActive, Yt as getIsDelegationActiveQueryKey, Xt as getIsDelegationActiveQueryOptions, kr as getLastWithdrawRequestId, pi as getLastWithdrawRequestIdQueryKey, mi as getLastWithdrawRequestIdQueryOptions, mp as getListingConfig, hp as getListingConfigQueryKey, gp as getListingConfigQueryOptions, Sp as getListingMarketConfig, Ep as getListingMarketConfigQueryKey, Dp as getListingMarketConfigQueryOptions, jp as getListingMarketDetail, Mp as getListingMarketDetailQueryKey, Np as getListingMarketDetailQueryOptions, Fp as getListingMarkets, Ip as getListingMarketsQueryKey, Lp as getListingMarketsQueryOptions, Lf as getListingSignInMessage, vp as getListingStatus, yp as getListingStatusQueryKey, bp as getListingStatusQueryOptions, Fo as getLockedParams, rc as getLockedParamsQueryKey, ic as getLockedParamsQueryOptions, Ma as getMarkPrices, Na as getMarkPricesQueryKey, Pa as getMarkPricesQueryOptions, ec as getMarketInfo, tc as getMarketInfoQueryKey, nc as getMarketInfoQueryOptions, vo as getMarketOrderDeadline, Va as getMarkets, Ha as getMarketsQueryKey, Ua as getMarketsQueryOptions, xc as getMuonPartyAOverview, Sc as getMuonPartyAOverviewQueryKey, Cc as getMuonPartyAOverviewQueryOptions, wc as getMuonPrice, Tc as getMuonPriceQueryKey, Ec as getMuonPriceQueryOptions, Dc as getMuonPriceRange, Oc as getMuonPriceRangeQueryKey, kc as getMuonPriceRangeQueryOptions, Ac as getMuonSettleUpnl, jc as getMuonSettleUpnlQueryKey, Mc as getMuonSettleUpnlQueryOptions, Nc as getMuonUpnl, Ic as getMuonUpnlA, Lc as getMuonUpnlAQueryKey, Rc as getMuonUpnlAQueryOptions, zc as getMuonUpnlAWithSymbolPrice, Bc as getMuonUpnlAWithSymbolPriceQueryKey, Vc as getMuonUpnlAWithSymbolPriceQueryOptions, Hc as getMuonUpnlB, Uc as getMuonUpnlBQueryKey, Wc as getMuonUpnlBQueryOptions, Pc as getMuonUpnlQueryKey, Fc as getMuonUpnlQueryOptions, Gc as getMuonUpnlWithSymbolPrice, Kc as getMuonUpnlWithSymbolPriceQueryKey, qc as getMuonUpnlWithSymbolPriceQueryOptions, ac as getNotionalCapAll, uc as getNotionalCapAllQueryKey, dc as getNotionalCapAllQueryOptions, oc as getNotionalCapBySymbolId, cc as getNotionalCapBySymbolIdQueryKey, lc as getNotionalCapBySymbolIdQueryOptions, Ar as getOnchainContractMarkets, hi as getOnchainContractMarketsQueryKey, gi as getOnchainContractMarketsQueryOptions, sc as getOpenInterestBySymbolId, fc as getOpenInterestBySymbolIdQueryKey, pc as getOpenInterestBySymbolIdQueryOptions, jr as getOperationalFeeAllowance, _i as getOperationalFeeAllowanceQueryKey, vi as getOperationalFeeAllowanceQueryOptions, sf as getOrderbookDepthWithin, uf as getOrderbookQueryKey, df as getOrderbookQueryOptions, cf as getOrderbookSpread, Mr as getPartyAOpenPositions, yi as getPartyAOpenPositionsQueryKey, bi as getPartyAOpenPositionsQueryOptions, Nr as getPartyAPendingQuotes, xi as getPartyAPendingQuotesQueryKey, Si as getPartyAPendingQuotesQueryOptions, zs as getPartyAUpnl, Bs as getPartyAUpnlQueryKey, Vs as getPartyAUpnlQueryOptions, Pr as getPendingQuotes, Ci as getPendingQuotesQueryKey, wi as getPendingQuotesQueryOptions, Lt as getPendingRevocationEtas, Zt as getPendingRevocationEtasQueryKey, Qt as getPendingRevocationEtasQueryOptions, Fr as getPendingWithdrawRequests, Ti as getPendingWithdrawRequestsQueryKey, Ei as getPendingWithdrawRequestsQueryOptions, Gp as getPoolQuotes, Kp as getPoolQuotesQueryKey, qp as getPoolQuotesQueryOptions, sm as getPoolRewardChart, dm as getPoolRewardChartQueryKey, fm as getPoolRewardChartQueryOptions, cm as getPoolTotalReward, pm as getPoolTotalRewardQueryKey, mm as getPoolTotalRewardQueryOptions, ym as getPoolTradeHistory, bm as getPoolTradeHistoryQueryKey, xm as getPoolTradeHistoryQueryOptions, wm as getPoolTransactions, Tm as getPoolTransactionsQueryKey, Em as getPoolTransactionsQueryOptions, De as getPredictedNextVirtualAccount, lt as getPredictedNextVirtualAccountQueryKey, ut as getPredictedNextVirtualAccountQueryOptions, ol as getPrepareInstantOpenParamsQueryKey, Ll as getQuerySubgraphQueryKey, Ir as getQuote, Vl as getQuoteEventsByType, Hl as getQuoteEventsByTypeQueryKey, Ul as getQuoteEventsByTypeQueryOptions, Yl as getQuoteFunding, Xl as getQuoteFundingQueryKey, Zl as getQuoteFundingQueryOptions, iu as getQuoteHistory, au as getQuoteHistoryQueryKey, ou as getQuoteHistoryQueryOptions, su as getQuotePendingFunding, cu as getQuotePendingFundingQueryKey, lu as getQuotePendingFundingQueryOptions, Di as getQuoteQueryKey, Oi as getQuoteQueryOptions, td as getQuoteTpSl, nd as getQuoteTpSlQueryKey, rd as getQuoteTpSlQueryOptions, uu as getQuotesEventsByType, du as getQuotesEventsByTypeQueryKey, fu as getQuotesEventsByTypeQueryOptions, $p as getRetryListingInfo, nm as getRetryListingInfoQueryKey, rm as getRetryListingInfoQueryOptions, Ts as getRevenueRecords, Es as getRevenueRecordsQueryKey, Ds as getRevenueRecordsQueryOptions, Rt as getRevocationCooldown, $t as getRevocationCooldownQueryKey, en as getRevocationCooldownQueryOptions, ao as getSendQuoteUpnlSig, oo as getSendQuoteUpnlSigQueryKey, so as getSendQuoteUpnlSigQueryOptions, Jn as getSessionKeySelectors, Hs as getSolverBalanceInfo, Us as getSolverBalanceInfoQueryKey, Ws as getSolverBalanceInfoQueryOptions, Wa as getSolverCapabilities, za as getSolverCloseFeeRate, mc as getSolverErrorCodes, hc as getSolverErrorCodesQueryKey, gc as getSolverErrorCodesQueryOptions, Mo as getSolverInfo, No as getSolverInfoQueryKey, Po as getSolverInfoQueryOptions, Gs as getSolverOpenInterest, Ks as getSolverOpenInterestQueryKey, qs as getSolverOpenInterestQueryOptions, Js as getSolverPriceRange, Ys as getSolverPriceRangeQueryKey, Xs as getSolverPriceRangeQueryOptions, Zs as getSolverReadiness, Qs as getSolverReadinessQueryKey, $s as getSolverReadinessQueryOptions, Gm as getSolverRevenue, Km as getSolverRevenueQueryKey, qm as getSolverRevenueQueryOptions, w as getSubAccount, Ye as getSubAccountQueryKey, Xe as getSubAccountQueryOptions, yu as getSubAccountQuotes, bu as getSubAccountQuotesQueryKey, xu as getSubAccountQuotesQueryOptions, Se as getSubAccountVirtualNonce, Ze as getSubAccountVirtualNonceQueryKey, Qe as getSubAccountVirtualNonceQueryOptions, Ce as getSubAccountsCountOfUser, $e as getSubAccountsCountOfUserQueryKey, et as getSubAccountsCountOfUserQueryOptions, ks as getSymbols, As as getSymbolsQueryKey, js as getSymbolsQueryOptions, Uu as getTpSlConfig, Wu as getTpSlConfigQueryKey, Gu as getTpSlConfigQueryOptions, Qu as getTpSlDeleteSigningSpec, Td as getTpSlDeleteSigningSpecQueryKey, Ed as getTpSlDeleteSigningSpecQueryOptions, bd as getTpSlSigningSpec, Dd as getTpSlSigningSpecQueryKey, Od as getTpSlSigningSpecQueryOptions, Ns as getTradeVolume, Ps as getTradeVolumeQueryKey, Fs as getTradeVolumeQueryOptions, Hd as getTransferHistory, Ud as getTransferHistoryQueryKey, Wd as getTransferHistoryQueryOptions, km as getUserListingMarkets, Am as getUserListingMarketsQueryKey, jm as getUserListingMarketsQueryOptions, zp as getUserProfit, Bp as getUserProfitQueryKey, Vp as getUserProfitQueryOptions, lm as getUserRewardChart, hm as getUserRewardChartQueryKey, gm as getUserRewardChartQueryOptions, we as getUserSubAccounts, Te as getUserSubAccountsAddresses, rt as getUserSubAccountsAddressesQueryKey, it as getUserSubAccountsAddressesQueryOptions, tt as getUserSubAccountsQueryKey, nt as getUserSubAccountsQueryOptions, um as getUserTotalReward, _m as getUserTotalRewardQueryKey, vm as getUserTotalRewardQueryOptions, Pm as getUserTransactions, Fm as getUserTransactionsQueryKey, Im as getUserTransactionsQueryOptions, S as getVirtualAccount, at as getVirtualAccountQueryKey, ot as getVirtualAccountQueryOptions, Ee as getVirtualAccountsAddressesOfSubAccount, st as getVirtualAccountsAddressesOfSubAccountQueryKey, ct as getVirtualAccountsAddressesOfSubAccountQueryOptions, Rm as getWeeklyListingLimit, zm as getWeeklyListingLimitQueryKey, Bm as getWeeklyListingLimitQueryOptions, Lr as getWithdrawRequests, ki as getWithdrawRequestsQueryKey, Ai as getWithdrawRequestsQueryOptions, Rr as getWithdrawableTime, ji as getWithdrawableTimeQueryKey, Mi as getWithdrawableTimeQueryOptions, Bt as grantDelegation, tn as grantDelegationMutationOptions, lf as groupOrderbook, Pu as groupQuotes, Vt as initiateRevokeDelegation, nn as initiateRevokeDelegationMutationOptions, zr as initiateWithdraw, Ni as initiateWithdrawMutationOptions, Uo as instantClose, gl as instantCloseAuto, _l as instantCloseAutoMutationOptions, yl as instantCloseBulk, xl as instantCloseBulkAuto, Sl as instantCloseBulkAutoMutationOptions, bl as instantCloseBulkMutationOptions, hl as instantCloseMutationOptions, r as instantLayerAbi, bo as instantOpen, il as instantOpenAuto, al as instantOpenAutoMutationOptions, xo as instantOpenMutationOptions, Cu as isActivePosition, wu as isActiveQuoteStatus, Dl as isCancelAction, u as isChainSupported, Ol as isCloseFillAction, V as isConfirmedGaslessFeeLimitError, H as isConfirmedGaslessUnavailableError, U as isGaslessFreeQuotaExhaustedError, A as isGaslessIdempotencyConflictError, te as isGaslessRelayableSelector, B as isGaslessRequestTerminal, Yn as isNewerGaslessRequest, kl as isOpenAnchorAction, Tu as isPendingOrder, io as isolationTypeForSide, Au as keyQuoteByMarket, ju as keyQuotePerQuote, pu as lifecycleFromQuoteStatus, Jo as limitCloseAuto, Yo as limitCloseAutoMutationOptions, zo as limitOpenAuto, Bo as limitOpenAutoMutationOptions, d as listSupportedChains, Al as minRemainingQuantityOf, pa as normalizeNotification, Sf as parseBinanceDepthLevel, Cf as parseBinanceDepthLevels, ts as parseBinanceKline, ns as parseBinanceKlineEvent, va as parseBinancePriceFrame, E as parseGaslessErrorDetail, Zf as parseListingValue, ga as parseNotificationFrame, ya as parsePriceFrame, jd as parseTpSlFrame, Eu as partitionQuotes, jl as planGroupClose, ud as planGroupTpSl, dd as planGroupTpSlDelete, Ko as prepareInstantCloseParams, Lo as prepareInstantOpenParams, sl as prepareInstantOpenParamsQueryOptions, qo as prepareLimitCloseParams, Ro as prepareLimitOpenParams, ss as previewForceClosePrice, Sd as priceSlippageCalculation, xs as projectFundingRate, Cp as projectListingMarketConfig, Il as querySubgraph, Rl as querySubgraphQueryOptions, _u as reconcileQuotes, Xp as refundMarket, Zp 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, Pi as requestCancelWithdrawMutationOptions, Vr as requestToCancelCloseRequest, Fi as requestToCancelCloseRequestMutationOptions, Hr as requestToCancelQuote, Ii as requestToCancelQuoteMutationOptions, je as requestToRegisterAffiliate, ft as requestToRegisterAffiliateMutationOptions, Jd as resolutionToMs, sd as resolveChildSide, ko as resolveFeeRates, D as resolveGaslessService, Jm as resolveInventoryService, kf as resolveListingService, Io as resolveLockedParams, Ao as resolveMarkPrice, jo as resolveMarket, vu as resolveQuoteAccounts, Mu as resolveQuoteGroupingStrategy, tr as resubmitGaslessRequest, nr as resubmitGaslessRequestMutationOptions, tm as retryListing, im as retryListingMutationOptions, rf as roundToTick, Fa as searchNotifications, Ia as searchNotificationsQueryKey, La as searchNotificationsQueryOptions, gd as searchTpSlOrders, _d as searchTpSlOrdersQueryKey, vd as searchTpSlOrdersQueryOptions, Ho as sendInstantClose, eo as sendInstantOpen, $a as sendQuoteUpnlSigFlexRange, to as sendRasaInstantOpen, Cd as setQuoteTpSl, wd as setQuoteTpSlMutationOptions, rr as settleGaslessDepositExistingAccount, ir as settleGaslessDepositExistingAccountMutationOptions, ar as settleGaslessDepositNewAccount, or as settleGaslessDepositNewAccountMutationOptions, Jc as sharePercent, Iu as shouldAccelerateOnchainReads, Lu as shouldAccelerateQuotePolling, re as shouldSimulateBeforeWrite, x as signAndFormatInstantOperation, _ as signSignedOperation, Zu as signTpSlRequest, ie as simulateAddMargin, pt as simulateAddMarginMutationOptions, Ur as simulateAllocate, Li 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, zi as simulateDeallocateAndInitiateWithdrawMutationOptions, Ri 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, Bi as simulateFinalizeWithdrawRequestMutationOptions, zt as simulateGrantDelegation, rn as simulateGrantDelegationMutationOptions, Kr as simulateInitiateWithdraw, Vi as simulateInitiateWithdrawMutationOptions, Oe as simulateRemoveMargin, bt as simulateRemoveMarginMutationOptions, qr as simulateRequestCancelWithdraw, Hi as simulateRequestCancelWithdrawMutationOptions, Ae as simulateRequestToRegisterAffiliate, xt as simulateRequestToRegisterAffiliateMutationOptions, af as suggestOrderbookTickSizes, fd as summarizeQuoteGroupTpSl, vs as supportsEstimatedPrice, O as supportsGaslessService, K as supportsGaslessStatusStream, Ga as supportsGroupClose, Ym as supportsInventoryService, Ka as supportsLimitOrder, Af as supportsListingService, Nu as supportsQuoteGrouping, kd as supportsTpSl, i as symmioAbi, jf as toAddMarketRequest, Ld as toBalanceHistoryRow, $d as toBinanceInterval, Bf as toCancelWithdrawResult, Uf as toClaimRequest, tp as toClaimResult, Mf as toCreatedPool, Co as toEstimatedPrice, Ml as toGroupCloseCandidates, pd as toGroupTpSlChildren, md as toGroupTpSlOrders, Zm as toInventoryTvl, eh as toInventoryTvlPoint, Ff as toListingAuthToken, pp as toListingConfig, Qf as toListingMarket, xp as toListingMarketConfig, Ap as toListingMarketDetail, $f as toListingMarketPage, If as toListingSignInMessage, _p as toListingStatus, ep as toListingValue, lp as toMarketDepositAddress, ys as toMarketFundingInfo, dl as toPendingInstantClose, ip as toPoolClaim, ap as toPoolClaimHistoryPage, Pp as toPoolPositions, Hp as toPoolQuote, am as toPoolRewardPoint, Sm as toPoolTransaction, Cm as toPoolTransactionPage, zl as toQuoteEventRow, ql as toQuoteFundingRow, ru as toQuoteHistoryRow, Jp as toRefundRequest, Yp as toRefundResult, Qp as toRetryListingInfo, em as toRetryListingResult, ws as toRevenueRecord, Xu as toSignableTpSlMessage, Ms as toSolverDailyVolume, Wm as toSolverRevenue, Os as toSolverSymbols, Ba as toThresholdSeconds, Yd as toTradingViewDatafeed, Kd as toTradingViewResolution, Vd as toTransferRow, mu as toUnifiedQuoteFromInstantClose, hu as toUnifiedQuoteFromInstantOpen, gu as toUnifiedQuoteFromOnchain, wp as toUpdateListingMarketConfigRequest, Dm as toUserListingMarket, Om as toUserListingMarketPage, Rp as toUserPoolProfit, om as toUserPoolRewardChart, Mm as toUserTransaction, Nm as toUserTransactionPage, Lm as toWeeklyListingLimit, yo as toWeiBigInt, Vm as toWithdrawRequest, ad as triggerPriceToWei, Tp as updateListingMarketConfig, Op as updateListingMarketConfigMutationOptions, Cl as validateInstantCloseAgainstMarket, Do as validateInstantOpenAgainstMarket, Oo as validateInstantOpenBalanceFunding, ld as validateTpSl, Y as waitForGaslessRequest, Of as walkOrderbook, Ef as watchBinanceDepth, ef as watchBinanceKlines, ba as watchBinancePrices, xa as watchEnigmaPrices, q as watchGaslessRequest, _a as watchNotifications, Sa as watchPrices, Md as watchTpSlNotifications, Jr as withdraw, Qr as withdrawAuto, Wi as withdrawAutoMutationOptions, Hm as withdrawLp, Um as withdrawLpMutationOptions, Ui as withdrawMutationOptions };
497
+ import { LISTING_VALUE_DECIMALS as Wf, ListingDepositChainId as Gf, ListingMarketStatus as Kf, MarketLockReason as qf, PoolPositionSide as Jf, PoolTransactionStatus as Yf, PoolTransactionType as Xf, TokenPriceChain as Zf } from "./pools/types.js";
498
+ import { parseListingValue as Qf, toListingMarket as $f, toListingMarketPage as ep, toListingValue as tp } from "./pools/markets/to-listing-market.js";
499
+ import { toClaimResult as np } from "./pools/claim/to-claim-result.js";
500
+ import { claimProfit as rp } from "./pools/claim/claim-profit.js";
501
+ import { claimProfitMutationOptions as ip } from "./pools/claim/query.js";
502
+ import { toPoolClaim as ap, toPoolClaimHistoryPage as op } from "./pools/claim-history/to-pool-claim.js";
503
+ import { getClaimHistory as sp } from "./pools/claim-history/get-claim-history.js";
504
+ import { getClaimHistoryQueryKey as cp, getClaimHistoryQueryOptions as lp } from "./pools/claim-history/query.js";
505
+ import { toMarketDepositAddress as up } from "./pools/deposit-address/to-market-deposit-address.js";
506
+ import { getDepositAddress as dp } from "./pools/deposit-address/get-deposit-address.js";
507
+ import { getDepositAddressQueryKey as fp, getDepositAddressQueryOptions as pp } from "./pools/deposit-address/query.js";
508
+ import { toListingConfig as mp } from "./pools/listing-config/to-listing-config.js";
509
+ import { getListingConfig as hp } from "./pools/listing-config/get-listing-config.js";
510
+ import { getListingConfigQueryKey as gp, getListingConfigQueryOptions as _p } from "./pools/listing-config/query.js";
511
+ import { toListingStatus as vp } from "./pools/listing-status/to-listing-status.js";
512
+ import { getListingStatus as yp } from "./pools/listing-status/get-listing-status.js";
513
+ import { getListingStatusQueryKey as bp, getListingStatusQueryOptions as xp } from "./pools/listing-status/query.js";
514
+ import { toListingMarketConfig as Sp } from "./pools/market-config/to-listing-market-config.js";
515
+ import { getListingMarketConfig as Cp } from "./pools/market-config/get-listing-market-config.js";
516
+ import { projectListingMarketConfig as wp } from "./pools/market-config/project-listing-market-config.js";
517
+ import { toUpdateListingMarketConfigRequest as Tp } from "./pools/market-config/to-update-listing-market-config-request.js";
518
+ import { updateListingMarketConfig as Ep } from "./pools/market-config/update-listing-market-config.js";
519
+ import { getListingMarketConfigQueryKey as Dp, getListingMarketConfigQueryOptions as Op, updateListingMarketConfigMutationOptions as kp } from "./pools/market-config/query.js";
520
+ import { LISTING_MARKET_CONFIG_BOUNDS as Ap } from "./pools/market-config/types.js";
521
+ import { toListingMarketDetail as jp } from "./pools/market-detail/to-listing-market-detail.js";
522
+ import { getListingMarketDetail as Mp } from "./pools/market-detail/get-listing-market-detail.js";
523
+ import { getListingMarketDetailQueryKey as Np, getListingMarketDetailQueryOptions as Pp } from "./pools/market-detail/query.js";
524
+ import { toPoolPositions as Fp } from "./pools/market-detail/to-pool-positions.js";
525
+ import { getListingMarkets as Ip } from "./pools/markets/get-listing-markets.js";
526
+ import { getListingMarketsQueryKey as Lp, getListingMarketsQueryOptions as Rp } from "./pools/markets/query.js";
527
+ import { toUserPoolProfit as zp } from "./pools/profit/to-user-pool-profit.js";
528
+ import { getUserProfit as Bp } from "./pools/profit/get-user-profit.js";
529
+ import { getUserProfitQueryKey as Vp, getUserProfitQueryOptions as Hp } from "./pools/profit/query.js";
530
+ import { toPoolQuote as Up } from "./pools/quotes/to-pool-quote.js";
531
+ import { POOL_OPEN_QUOTE_STATUSES as Wp, POOL_PENDING_QUOTE_STATUSES as Gp, getPoolQuotes as Kp } from "./pools/quotes/get-pool-quotes.js";
532
+ import { getPoolQuotesQueryKey as qp, getPoolQuotesQueryOptions as Jp } from "./pools/quotes/query.js";
533
+ import { toRefundRequest as Yp } from "./pools/refund/to-refund-request.js";
534
+ import { toRefundResult as Xp } from "./pools/refund/to-refund-result.js";
535
+ import { refundMarket as Zp } from "./pools/refund/refund-market.js";
536
+ import { refundMarketMutationOptions as Qp } from "./pools/refund/query.js";
537
+ import { toRetryListingInfo as $p } from "./pools/retry-listing/to-retry-listing-info.js";
538
+ import { getRetryListingInfo as em } from "./pools/retry-listing/get-retry-listing-info.js";
539
+ import { toRetryListingResult as tm } from "./pools/retry-listing/to-retry-listing-result.js";
540
+ import { retryListing as nm } from "./pools/retry-listing/retry-listing.js";
541
+ import { getRetryListingInfoQueryKey as rm, getRetryListingInfoQueryOptions as im, retryListingMutationOptions as am } from "./pools/retry-listing/query.js";
542
+ import { toPoolRewardPoint as om, toUserPoolRewardChart as sm } from "./pools/rewards/to-pool-reward-point.js";
543
+ import { getPoolRewardChart as cm } from "./pools/rewards/get-pool-reward-chart.js";
544
+ import { getPoolTotalReward as lm } from "./pools/rewards/get-pool-total-reward.js";
545
+ import { getUserRewardChart as um } from "./pools/rewards/get-user-reward-chart.js";
546
+ import { getUserTotalReward as dm } from "./pools/rewards/get-user-total-reward.js";
547
+ import { getPoolRewardChartQueryKey as fm, getPoolRewardChartQueryOptions as pm, getPoolTotalRewardQueryKey as mm, getPoolTotalRewardQueryOptions as hm, getUserRewardChartQueryKey as gm, getUserRewardChartQueryOptions as _m, getUserTotalRewardQueryKey as vm, getUserTotalRewardQueryOptions as ym } from "./pools/rewards/query.js";
548
+ import { toTokenPrice as bm } from "./pools/token-price/to-token-price.js";
549
+ import { getTokenPrice as xm } from "./pools/token-price/get-token-price.js";
550
+ import { getTokenPriceQueryKey as Sm, getTokenPriceQueryOptions as Cm } from "./pools/token-price/query.js";
551
+ import { getPoolTradeHistory as wm } from "./pools/trade-history/get-pool-trade-history.js";
552
+ import { getPoolTradeHistoryQueryKey as Tm, getPoolTradeHistoryQueryOptions as Em } from "./pools/trade-history/query.js";
553
+ import { toPoolTransaction as Dm, toPoolTransactionPage as Om } from "./pools/transactions/to-pool-transaction.js";
554
+ import { getPoolTransactions as km } from "./pools/transactions/get-pool-transactions.js";
555
+ import { getPoolTransactionsQueryKey as Am, getPoolTransactionsQueryOptions as jm } from "./pools/transactions/query.js";
556
+ import { toUserListingMarket as Mm, toUserListingMarketPage as Nm } from "./pools/user-markets/to-user-listing-market.js";
557
+ import { getUserListingMarkets as Pm } from "./pools/user-markets/get-user-listing-markets.js";
558
+ import { getUserListingMarketsQueryKey as Fm, getUserListingMarketsQueryOptions as Im } from "./pools/user-markets/query.js";
559
+ import { toUserTransaction as Lm, toUserTransactionPage as Rm } from "./pools/user-transactions/to-user-transaction.js";
560
+ import { getUserTransactions as zm } from "./pools/user-transactions/get-user-transactions.js";
561
+ import { getUserTransactionsQueryKey as Bm, getUserTransactionsQueryOptions as Vm } from "./pools/user-transactions/query.js";
562
+ import { toWeeklyListingLimit as Hm } from "./pools/weekly-limit/to-weekly-limit.js";
563
+ import { getWeeklyListingLimit as Um } from "./pools/weekly-limit/get-weekly-listing-limit.js";
564
+ import { getWeeklyListingLimitQueryKey as Wm, getWeeklyListingLimitQueryOptions as Gm } from "./pools/weekly-limit/query.js";
565
+ import { toWithdrawRequest as Km } from "./pools/withdraw/to-withdraw-request.js";
566
+ import { withdrawLp as qm } from "./pools/withdraw/withdraw-lp.js";
567
+ import { withdrawLpMutationOptions as Jm } from "./pools/withdraw/query.js";
568
+ import { toSolverRevenue as Ym } from "./solvers/revenue/to-solver-revenue.js";
569
+ import { getSolverRevenue as Xm } from "./solvers/revenue/get-solver-revenue.js";
570
+ import { getSolverRevenueQueryKey as Zm, getSolverRevenueQueryOptions as Qm } from "./solvers/revenue/query.js";
571
+ import { resolveInventoryService as $m, supportsInventoryService as eh } from "./inventory/resolve-inventory.js";
572
+ import { getInventoryTvl as th, toInventoryTvl as nh } from "./inventory/tvl/get-inventory-tvl.js";
573
+ import { getInventoryTvlQueryKey as rh, getInventoryTvlQueryOptions as ih } from "./inventory/tvl/query.js";
574
+ import { toInventoryTvlPoint as ah } from "./inventory/tvl-history/to-inventory-tvl-point.js";
575
+ import { getInventoryTvlHistory as oh } from "./inventory/tvl-history/get-inventory-tvl-history.js";
576
+ import { getInventoryTvlHistoryQueryKey as sh, getInventoryTvlHistoryQueryOptions as ch } from "./inventory/tvl-history/query.js";
577
+ import { INVENTORY_VALUE_DECIMALS as lh } from "./inventory/types.js";
578
+ export { Vn as ADD_MARGIN_TO_NEXT_VA_SELECTOR, ua as ActionStatus, St as AffiliateState, ff as BINANCE_DEPTH_DEFAULT_LEVELS, pf as BINANCE_DEPTH_DEFAULT_LIMIT, mf as BINANCE_DEPTH_DEFAULT_UPDATE_SPEED, hf as BINANCE_DEPTH_LIMITS, gf as BINANCE_DEPTH_MAX_BUFFERED_EVENTS, _f as BINANCE_DEPTH_PATH, vf as BINANCE_DEPTH_REST_URL, yf as BINANCE_DEPTH_UPDATE_SPEEDS, bf as BINANCE_DEPTH_WS_URL, Xo as BINANCE_EXCHANGE_INFO_PATH, Zo as BINANCE_KLINES_PATH, Qo as BINANCE_MAX_LIMIT, xf as BINANCE_ORDERBOOK_EXCHANGE_INFO_PATH, $o as BINANCE_REST_URL, es as BINANCE_WS_URL, Nd as BalanceChangeType, Pd as BalanceHistoryFilter, qd as CANDLE_RESOLUTION_MS, Bl as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, xd as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, Wl 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, od 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, lh as INVENTORY_VALUE_DECIMALS, Un as LEGACY_INSTANT_TRADE_REQUIRED_SELECTORS, Ap as LISTING_MARKET_CONFIG_BOUNDS, Wf as LISTING_VALUE_DECIMALS, Gf as ListingDepositChainId, Kf as ListingMarketStatus, co as MARKET_ORDER_DEADLINE_SECONDS, vl 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, Fd as MarginTransferType, qf as MarketLockReason, da as NotificationType, cr as OPERATIONAL_FEE_LIST_PRICE_MULTIPLIER, no as ORDER_TYPE_MARKET, Gi as OrderType, Wp as POOL_OPEN_QUOTE_STATUSES, Gp as POOL_PENDING_QUOTE_STATUSES, Gl as PRICE_HISTORY_EVENT_TYPES, Jf as PoolPositionSide, Yf as PoolTransactionStatus, Xf as PoolTransactionType, Ki as PositionType, Jl as QUOTES_FUNDING_MAX_IDS_PER_REQUEST, Ql as QuoteCloseEventType, $l as QuoteCloseType, Kl as QuoteEventType, wl as QuoteLifecycle, qi as QuoteStatus, Wn as REQUEST_TO_CLOSE_POSITION_SELECTOR, Gn as SEND_QUOTE_SELECTOR, Kn as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, lo as SHORT_FUNDING_BUFFER_PERCENT, h as SIGNED_OPERATION_TYPES, Ct as SubAccountIsolationType, a as SymmApiError, o as SymmError, s as SymmioSupportedChainId, hd as TPSL_LIVE_ORDER_STATES, Zf as TokenPriceChain, Ad as TpSlSearchOrderType, ro as VIRTUAL_ACCOUNT_ISOLATION_TYPE, Ji as WithdrawStatus, Ku as ZERO_LEG, qa as ZERO_UPNL_SIG, e as accountLayerAbi, of as accumulateOrderbook, ae as addMargin, Ne as addMarginMutationOptions, Nf as addMarket, Pf as addMarketMutationOptions, Su as aggregateGroupFunding, Ou as aggregateGroupMetrics, Du as aggregateGroupUpnl, sr as allocate, ni as allocateMutationOptions, Tl as applyNotificationToQuotes, Tt as approveCollateral, Ot as approveCollateralMutationOptions, lr as approveOperationalFee, ri as approveOperationalFeeMutationOptions, ku as assertQuoteGroupingSupported, Rf as authenticateListing, zf as authenticateListingMutationOptions, Id as balanceHistoryFilterToTypes, yd as buildConditionalOrderLeg, qu as buildConditionalOrderMessage, Ja as buildQuoteMetadata, ha as buildRasaSubscribeMessage, v as buildSignedOperation, ma as buildSubscribeMessage, Ju as buildTpSlDeleteMessage, Me as calculateAvailableForOrder, uo as calculateAvailableInstantOpenMargin, Nl as calculateClosePlatformFee, Wo as calculateClosePrice, fo as calculateExpectedSettlementLoss, Fu as calculateLiquidationPrice, po as calculateMargin, Hu as calculateMarginRisk, Pl as calculateOpenPlatformFee, hs as calculatePriceImpact, Ru as calculateQuoteLeverage, zu as calculateQuotePnl, Bu as calculateQuoteUpnl, Vu as calculateQuoteUpnlWei, Ra as calculateSolverCloseFee, mo as calculateSolverFees, ho as calculateTradeParams, se as cancelRegistration, Pe as cancelRegistrationMutationOptions, Vf as cancelWithdraw, Hf as cancelWithdrawMutationOptions, is as checkForceCloseEligibility, as as checkForceClosePriceReached, Eo as checkNotionalCap, id as childNotional, rp as claimProfit, ip as claimProfitMutationOptions, Go as clampClosePrecision, ln as classifyGaslessFailure, fa as classifyNotification, El as classifyQuoteNotificationAction, eu as closeTypeToEventTypes, Yr as collateralToCore18, go as computePlatformFee, _o as computePlatformFeeLegs, fn as confirmGaslessRequest, Xr as core18ToCollateral, nf as countTickDecimals, tf as createBinanceCandleSource, Df as createBinanceOrderbookSource, Zr as createClassicWithdrawPart, f as createConfig, le as createSubAccounts, Fe as createSubAccountsMutationOptions, xr as deallocate, Sr as deallocateAndInitiateWithdraw, ai as deallocateAndInitiateWithdrawMutationOptions, ii as deallocateMutationOptions, So as decimalPriceToWei, un as decodeGaslessOperationFailure, $u as deleteQuoteTpSl, ed as deleteQuoteTpSlMutationOptions, de as deleteSubAccount, Ie as deleteSubAccountMutationOptions, pe as depositAndAllocateForAccount, Le as depositAndAllocateForAccountMutationOptions, he as depositForAccount, Re as depositForAccountMutationOptions, To as deriveAutoSlippage, _e as editAccountName, ze as editAccountNameMutationOptions, Ya as encodeAddMarginToNextVA, Vo as encodeRequestToClosePosition, Xa as encodeSendQuote, Za as encodeSendQuoteWithAffiliateAndData, cd as estimateGroupTpSlReturn, tu as eventTypeToCloseType, nu as eventTypeToQuoteStatus, wf as fetchBinanceDepth, Tf as fetchBinanceSymbolFilters, Be as filterQueryOptions, Pt as finalizeRevokeDelegation, Ht as finalizeRevokeDelegationMutationOptions, wr as finalizeWithdrawRequest, oi as finalizeWithdrawRequestMutationOptions, os as findForceCloseWindow, Fl as fingerprintQuote, Tr as forceCancelCloseRequest, si as forceCancelCloseRequestMutationOptions, Er as forceCancelQuote, ci as forceCancelQuoteMutationOptions, us as forceCloseAuto, ds as forceCloseAutoMutationOptions, cs as forceClosePosition, fs as forceClosePositionMutationOptions, y as formatSignedOperationPayload, Gd 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, Yu 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, Rd as getBalanceHistory, zd as getBalanceHistoryQueryKey, Bd as getBalanceHistoryQueryOptions, Ca as getBinanceHealth, wa as getBinanceHealthQueryKey, Ta as getBinanceHealthQueryOptions, Ea as getBinancePremiumIndex, Da as getBinancePremiumIndexQueryKey, Oa as getBinancePremiumIndexQueryOptions, Qd as getBinanceSupportedResolutions, ka as getBinanceSymbolsInfo, Aa as getBinanceSymbolsInfoQueryKey, ja as getBinanceSymbolsInfoQueryOptions, Xd as getCandlesQueryKey, Zd as getCandlesQueryOptions, c as getChainConfig, sp as getClaimHistory, cp as getClaimHistoryQueryKey, lp as getClaimHistoryQueryOptions, Et as getCollateralAllowance, kt as getCollateralAllowanceQueryKey, At as getCollateralAllowanceQueryOptions, Dt as getCollateralBalance, jt as getCollateralBalanceQueryKey, Mt as getCollateralBalanceQueryOptions, Dr as getCoolDownsOfMA, li as getCoolDownsOfMAQueryKey, ui as getCoolDownsOfMAQueryOptions, br as getDeallocateUpnlSig, _c as getDeallocateUpnlSigQueryKey, vc as getDeallocateUpnlSigQueryOptions, l as getDefaultSolver, It as getDelegationExpiry, Gt as getDelegationExpiryQueryKey, Kt as getDelegationExpiryQueryOptions, dp as getDepositAddress, fp as getDepositAddressQueryKey, pp as getDepositAddressQueryOptions, Yi as getEnigmaPriceServiceHealth, Xi as getEnigmaPriceServiceHealthQueryKey, Zi as getEnigmaPriceServiceHealthQueryOptions, Qi as getEnigmaPriceServiceMetadata, $i as getEnigmaPriceServiceMetadataQueryKey, ea as getEnigmaPriceServiceMetadataQueryOptions, ta as getEnigmaPriceServicePricesByAddresses, na as getEnigmaPriceServicePricesByAddressesQueryKey, ra as getEnigmaPriceServicePricesByAddressesQueryOptions, ia as getEnigmaPriceServicePricesByNames, aa as getEnigmaPriceServicePricesByNamesQueryKey, oa as getEnigmaPriceServicePricesByNamesQueryOptions, sa as getEnigmaPriceServiceSymbolsInfo, ca as getEnigmaPriceServiceSymbolsInfoQueryKey, la as getEnigmaPriceServiceSymbolsInfoQueryOptions, Is as getErrorMessage, Ls as getErrorMessageQueryKey, Rs as getErrorMessageQueryOptions, wo as getEstimatedPrice, gs as getEstimatedPriceQueryKey, _s as getEstimatedPriceQueryOptions, Qa as getFakeSendQuoteMuonSignature, Or as getFeeForUser, di as getFeeForUserQueryKey, fi as getFeeForUserQueryOptions, ls as getForceCloseParams, ps as getForceCloseParamsQueryKey, ms as getForceCloseParamsQueryOptions, rs as getForceClosePriceSig, yc as getForceClosePriceSigQueryKey, bc as getForceClosePriceSigQueryOptions, $r as getFundingFeesOfPartyB, ei as getFundingFeesOfPartyBQueryKey, ti as getFundingFeesOfPartyBQueryOptions, bs as getFundingInfo, Ss as getFundingInfoQueryKey, Cs 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, cl as getInstantCloseFees, ll as getInstantCloseFeesQueryKey, ul as getInstantCloseFeesQueryOptions, fl as getInstantCloses, pl as getInstantClosesQueryKey, ml as getInstantClosesQueryOptions, g as getInstantLayerEip712Domain, C as getInstantLayerNonce, qt as getInstantLayerNonceQueryKey, Jt as getInstantLayerNonceQueryOptions, Yc as getInstantOpenFees, Xc as getInstantOpenFeesQueryKey, Zc as getInstantOpenFeesQueryOptions, Qc as getInstantOpenQuoteId, $c as getInstantOpenQuoteIdQueryKey, el as getInstantOpenQuoteIdQueryOptions, tl as getInstantOpens, nl as getInstantOpensQueryKey, rl as getInstantOpensQueryOptions, qn as getInstantTradeRequiredSelectors, th as getInventoryTvl, oh as getInventoryTvlHistory, sh as getInventoryTvlHistoryQueryKey, ch as getInventoryTvlHistoryQueryOptions, rh as getInventoryTvlQueryKey, ih as getInventoryTvlQueryOptions, T as getIsDelegationActive, Yt as getIsDelegationActiveQueryKey, Xt as getIsDelegationActiveQueryOptions, kr as getLastWithdrawRequestId, pi as getLastWithdrawRequestIdQueryKey, mi as getLastWithdrawRequestIdQueryOptions, hp as getListingConfig, gp as getListingConfigQueryKey, _p as getListingConfigQueryOptions, Cp as getListingMarketConfig, Dp as getListingMarketConfigQueryKey, Op as getListingMarketConfigQueryOptions, Mp as getListingMarketDetail, Np as getListingMarketDetailQueryKey, Pp as getListingMarketDetailQueryOptions, Ip as getListingMarkets, Lp as getListingMarketsQueryKey, Rp as getListingMarketsQueryOptions, Lf as getListingSignInMessage, yp as getListingStatus, bp as getListingStatusQueryKey, xp as getListingStatusQueryOptions, Fo as getLockedParams, rc as getLockedParamsQueryKey, ic as getLockedParamsQueryOptions, Ma as getMarkPrices, Na as getMarkPricesQueryKey, Pa as getMarkPricesQueryOptions, ec as getMarketInfo, tc as getMarketInfoQueryKey, nc as getMarketInfoQueryOptions, vo as getMarketOrderDeadline, Va as getMarkets, Ha as getMarketsQueryKey, Ua as getMarketsQueryOptions, xc as getMuonPartyAOverview, Sc as getMuonPartyAOverviewQueryKey, Cc as getMuonPartyAOverviewQueryOptions, wc as getMuonPrice, Tc as getMuonPriceQueryKey, Ec as getMuonPriceQueryOptions, Dc as getMuonPriceRange, Oc as getMuonPriceRangeQueryKey, kc as getMuonPriceRangeQueryOptions, Ac as getMuonSettleUpnl, jc as getMuonSettleUpnlQueryKey, Mc as getMuonSettleUpnlQueryOptions, Nc as getMuonUpnl, Ic as getMuonUpnlA, Lc as getMuonUpnlAQueryKey, Rc as getMuonUpnlAQueryOptions, zc as getMuonUpnlAWithSymbolPrice, Bc as getMuonUpnlAWithSymbolPriceQueryKey, Vc as getMuonUpnlAWithSymbolPriceQueryOptions, Hc as getMuonUpnlB, Uc as getMuonUpnlBQueryKey, Wc as getMuonUpnlBQueryOptions, Pc as getMuonUpnlQueryKey, Fc as getMuonUpnlQueryOptions, Gc as getMuonUpnlWithSymbolPrice, Kc as getMuonUpnlWithSymbolPriceQueryKey, qc as getMuonUpnlWithSymbolPriceQueryOptions, ac as getNotionalCapAll, uc as getNotionalCapAllQueryKey, dc as getNotionalCapAllQueryOptions, oc as getNotionalCapBySymbolId, cc as getNotionalCapBySymbolIdQueryKey, lc as getNotionalCapBySymbolIdQueryOptions, Ar as getOnchainContractMarkets, hi as getOnchainContractMarketsQueryKey, gi as getOnchainContractMarketsQueryOptions, sc as getOpenInterestBySymbolId, fc as getOpenInterestBySymbolIdQueryKey, pc as getOpenInterestBySymbolIdQueryOptions, jr as getOperationalFeeAllowance, _i as getOperationalFeeAllowanceQueryKey, vi as getOperationalFeeAllowanceQueryOptions, sf as getOrderbookDepthWithin, uf as getOrderbookQueryKey, df as getOrderbookQueryOptions, cf as getOrderbookSpread, Mr as getPartyAOpenPositions, yi as getPartyAOpenPositionsQueryKey, bi as getPartyAOpenPositionsQueryOptions, Nr as getPartyAPendingQuotes, xi as getPartyAPendingQuotesQueryKey, Si as getPartyAPendingQuotesQueryOptions, zs as getPartyAUpnl, Bs as getPartyAUpnlQueryKey, Vs as getPartyAUpnlQueryOptions, Pr as getPendingQuotes, Ci as getPendingQuotesQueryKey, wi as getPendingQuotesQueryOptions, Lt as getPendingRevocationEtas, Zt as getPendingRevocationEtasQueryKey, Qt as getPendingRevocationEtasQueryOptions, Fr as getPendingWithdrawRequests, Ti as getPendingWithdrawRequestsQueryKey, Ei as getPendingWithdrawRequestsQueryOptions, Kp as getPoolQuotes, qp as getPoolQuotesQueryKey, Jp as getPoolQuotesQueryOptions, cm as getPoolRewardChart, fm as getPoolRewardChartQueryKey, pm as getPoolRewardChartQueryOptions, lm as getPoolTotalReward, mm as getPoolTotalRewardQueryKey, hm as getPoolTotalRewardQueryOptions, wm as getPoolTradeHistory, Tm as getPoolTradeHistoryQueryKey, Em as getPoolTradeHistoryQueryOptions, km as getPoolTransactions, Am as getPoolTransactionsQueryKey, jm as getPoolTransactionsQueryOptions, De as getPredictedNextVirtualAccount, lt as getPredictedNextVirtualAccountQueryKey, ut as getPredictedNextVirtualAccountQueryOptions, ol as getPrepareInstantOpenParamsQueryKey, Ll as getQuerySubgraphQueryKey, Ir as getQuote, Vl as getQuoteEventsByType, Hl as getQuoteEventsByTypeQueryKey, Ul as getQuoteEventsByTypeQueryOptions, Yl as getQuoteFunding, Xl as getQuoteFundingQueryKey, Zl as getQuoteFundingQueryOptions, iu as getQuoteHistory, au as getQuoteHistoryQueryKey, ou as getQuoteHistoryQueryOptions, su as getQuotePendingFunding, cu as getQuotePendingFundingQueryKey, lu as getQuotePendingFundingQueryOptions, Di as getQuoteQueryKey, Oi as getQuoteQueryOptions, td as getQuoteTpSl, nd as getQuoteTpSlQueryKey, rd as getQuoteTpSlQueryOptions, uu as getQuotesEventsByType, du as getQuotesEventsByTypeQueryKey, fu as getQuotesEventsByTypeQueryOptions, em as getRetryListingInfo, rm as getRetryListingInfoQueryKey, im as getRetryListingInfoQueryOptions, Ts as getRevenueRecords, Es as getRevenueRecordsQueryKey, Ds as getRevenueRecordsQueryOptions, Rt as getRevocationCooldown, $t as getRevocationCooldownQueryKey, en as getRevocationCooldownQueryOptions, ao as getSendQuoteUpnlSig, oo as getSendQuoteUpnlSigQueryKey, so as getSendQuoteUpnlSigQueryOptions, Jn as getSessionKeySelectors, Hs as getSolverBalanceInfo, Us as getSolverBalanceInfoQueryKey, Ws as getSolverBalanceInfoQueryOptions, Wa as getSolverCapabilities, za as getSolverCloseFeeRate, mc as getSolverErrorCodes, hc as getSolverErrorCodesQueryKey, gc as getSolverErrorCodesQueryOptions, Mo as getSolverInfo, No as getSolverInfoQueryKey, Po as getSolverInfoQueryOptions, Gs as getSolverOpenInterest, Ks as getSolverOpenInterestQueryKey, qs as getSolverOpenInterestQueryOptions, Js as getSolverPriceRange, Ys as getSolverPriceRangeQueryKey, Xs as getSolverPriceRangeQueryOptions, Zs as getSolverReadiness, Qs as getSolverReadinessQueryKey, $s as getSolverReadinessQueryOptions, Xm as getSolverRevenue, Zm as getSolverRevenueQueryKey, Qm as getSolverRevenueQueryOptions, w as getSubAccount, Ye as getSubAccountQueryKey, Xe as getSubAccountQueryOptions, yu as getSubAccountQuotes, bu as getSubAccountQuotesQueryKey, xu as getSubAccountQuotesQueryOptions, Se as getSubAccountVirtualNonce, Ze as getSubAccountVirtualNonceQueryKey, Qe as getSubAccountVirtualNonceQueryOptions, Ce as getSubAccountsCountOfUser, $e as getSubAccountsCountOfUserQueryKey, et as getSubAccountsCountOfUserQueryOptions, ks as getSymbols, As as getSymbolsQueryKey, js as getSymbolsQueryOptions, xm as getTokenPrice, Sm as getTokenPriceQueryKey, Cm as getTokenPriceQueryOptions, Uu as getTpSlConfig, Wu as getTpSlConfigQueryKey, Gu as getTpSlConfigQueryOptions, Qu as getTpSlDeleteSigningSpec, Td as getTpSlDeleteSigningSpecQueryKey, Ed as getTpSlDeleteSigningSpecQueryOptions, bd as getTpSlSigningSpec, Dd as getTpSlSigningSpecQueryKey, Od as getTpSlSigningSpecQueryOptions, Ns as getTradeVolume, Ps as getTradeVolumeQueryKey, Fs as getTradeVolumeQueryOptions, Hd as getTransferHistory, Ud as getTransferHistoryQueryKey, Wd as getTransferHistoryQueryOptions, Pm as getUserListingMarkets, Fm as getUserListingMarketsQueryKey, Im as getUserListingMarketsQueryOptions, Bp as getUserProfit, Vp as getUserProfitQueryKey, Hp as getUserProfitQueryOptions, um as getUserRewardChart, gm as getUserRewardChartQueryKey, _m as getUserRewardChartQueryOptions, we as getUserSubAccounts, Te as getUserSubAccountsAddresses, rt as getUserSubAccountsAddressesQueryKey, it as getUserSubAccountsAddressesQueryOptions, tt as getUserSubAccountsQueryKey, nt as getUserSubAccountsQueryOptions, dm as getUserTotalReward, vm as getUserTotalRewardQueryKey, ym as getUserTotalRewardQueryOptions, zm as getUserTransactions, Bm as getUserTransactionsQueryKey, Vm as getUserTransactionsQueryOptions, S as getVirtualAccount, at as getVirtualAccountQueryKey, ot as getVirtualAccountQueryOptions, Ee as getVirtualAccountsAddressesOfSubAccount, st as getVirtualAccountsAddressesOfSubAccountQueryKey, ct as getVirtualAccountsAddressesOfSubAccountQueryOptions, Um as getWeeklyListingLimit, Wm as getWeeklyListingLimitQueryKey, Gm as getWeeklyListingLimitQueryOptions, Lr as getWithdrawRequests, ki as getWithdrawRequestsQueryKey, Ai as getWithdrawRequestsQueryOptions, Rr as getWithdrawableTime, ji as getWithdrawableTimeQueryKey, Mi as getWithdrawableTimeQueryOptions, Bt as grantDelegation, tn as grantDelegationMutationOptions, lf as groupOrderbook, Pu as groupQuotes, Vt as initiateRevokeDelegation, nn as initiateRevokeDelegationMutationOptions, zr as initiateWithdraw, Ni as initiateWithdrawMutationOptions, Uo as instantClose, gl as instantCloseAuto, _l as instantCloseAutoMutationOptions, yl as instantCloseBulk, xl as instantCloseBulkAuto, Sl as instantCloseBulkAutoMutationOptions, bl as instantCloseBulkMutationOptions, hl as instantCloseMutationOptions, r as instantLayerAbi, bo as instantOpen, il as instantOpenAuto, al as instantOpenAutoMutationOptions, xo as instantOpenMutationOptions, Cu as isActivePosition, wu as isActiveQuoteStatus, Dl as isCancelAction, u as isChainSupported, Ol as isCloseFillAction, V as isConfirmedGaslessFeeLimitError, H as isConfirmedGaslessUnavailableError, U as isGaslessFreeQuotaExhaustedError, A as isGaslessIdempotencyConflictError, te as isGaslessRelayableSelector, B as isGaslessRequestTerminal, Yn as isNewerGaslessRequest, kl as isOpenAnchorAction, Tu as isPendingOrder, io as isolationTypeForSide, Au as keyQuoteByMarket, ju as keyQuotePerQuote, pu as lifecycleFromQuoteStatus, Jo as limitCloseAuto, Yo as limitCloseAutoMutationOptions, zo as limitOpenAuto, Bo as limitOpenAutoMutationOptions, d as listSupportedChains, Al as minRemainingQuantityOf, pa as normalizeNotification, Sf as parseBinanceDepthLevel, Cf as parseBinanceDepthLevels, ts as parseBinanceKline, ns as parseBinanceKlineEvent, va as parseBinancePriceFrame, E as parseGaslessErrorDetail, Qf as parseListingValue, ga as parseNotificationFrame, ya as parsePriceFrame, jd as parseTpSlFrame, Eu as partitionQuotes, jl as planGroupClose, ud as planGroupTpSl, dd as planGroupTpSlDelete, Ko as prepareInstantCloseParams, Lo as prepareInstantOpenParams, sl as prepareInstantOpenParamsQueryOptions, qo as prepareLimitCloseParams, Ro as prepareLimitOpenParams, ss as previewForceClosePrice, Sd as priceSlippageCalculation, xs as projectFundingRate, wp as projectListingMarketConfig, Il as querySubgraph, Rl as querySubgraphQueryOptions, _u as reconcileQuotes, Zp as refundMarket, Qp 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, Pi as requestCancelWithdrawMutationOptions, Vr as requestToCancelCloseRequest, Fi as requestToCancelCloseRequestMutationOptions, Hr as requestToCancelQuote, Ii as requestToCancelQuoteMutationOptions, je as requestToRegisterAffiliate, ft as requestToRegisterAffiliateMutationOptions, Jd as resolutionToMs, sd as resolveChildSide, ko as resolveFeeRates, D as resolveGaslessService, $m as resolveInventoryService, kf as resolveListingService, Io as resolveLockedParams, Ao as resolveMarkPrice, jo as resolveMarket, vu as resolveQuoteAccounts, Mu as resolveQuoteGroupingStrategy, tr as resubmitGaslessRequest, nr as resubmitGaslessRequestMutationOptions, nm as retryListing, am as retryListingMutationOptions, rf as roundToTick, Fa as searchNotifications, Ia as searchNotificationsQueryKey, La as searchNotificationsQueryOptions, gd as searchTpSlOrders, _d as searchTpSlOrdersQueryKey, vd as searchTpSlOrdersQueryOptions, Ho as sendInstantClose, eo as sendInstantOpen, $a as sendQuoteUpnlSigFlexRange, to as sendRasaInstantOpen, Cd as setQuoteTpSl, wd as setQuoteTpSlMutationOptions, rr as settleGaslessDepositExistingAccount, ir as settleGaslessDepositExistingAccountMutationOptions, ar as settleGaslessDepositNewAccount, or as settleGaslessDepositNewAccountMutationOptions, Jc as sharePercent, Iu as shouldAccelerateOnchainReads, Lu as shouldAccelerateQuotePolling, re as shouldSimulateBeforeWrite, x as signAndFormatInstantOperation, _ as signSignedOperation, Zu as signTpSlRequest, ie as simulateAddMargin, pt as simulateAddMarginMutationOptions, Ur as simulateAllocate, Li 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, zi as simulateDeallocateAndInitiateWithdrawMutationOptions, Ri 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, Bi as simulateFinalizeWithdrawRequestMutationOptions, zt as simulateGrantDelegation, rn as simulateGrantDelegationMutationOptions, Kr as simulateInitiateWithdraw, Vi as simulateInitiateWithdrawMutationOptions, Oe as simulateRemoveMargin, bt as simulateRemoveMarginMutationOptions, qr as simulateRequestCancelWithdraw, Hi as simulateRequestCancelWithdrawMutationOptions, Ae as simulateRequestToRegisterAffiliate, xt as simulateRequestToRegisterAffiliateMutationOptions, af as suggestOrderbookTickSizes, fd as summarizeQuoteGroupTpSl, vs as supportsEstimatedPrice, O as supportsGaslessService, K as supportsGaslessStatusStream, Ga as supportsGroupClose, eh as supportsInventoryService, Ka as supportsLimitOrder, Af as supportsListingService, Nu as supportsQuoteGrouping, kd as supportsTpSl, i as symmioAbi, jf as toAddMarketRequest, Ld as toBalanceHistoryRow, $d as toBinanceInterval, Bf as toCancelWithdrawResult, Uf as toClaimRequest, np as toClaimResult, Mf as toCreatedPool, Co as toEstimatedPrice, Ml as toGroupCloseCandidates, pd as toGroupTpSlChildren, md as toGroupTpSlOrders, nh as toInventoryTvl, ah as toInventoryTvlPoint, Ff as toListingAuthToken, mp as toListingConfig, $f as toListingMarket, Sp as toListingMarketConfig, jp as toListingMarketDetail, ep as toListingMarketPage, If as toListingSignInMessage, vp as toListingStatus, tp as toListingValue, up as toMarketDepositAddress, ys as toMarketFundingInfo, dl as toPendingInstantClose, ap as toPoolClaim, op as toPoolClaimHistoryPage, Fp as toPoolPositions, Up as toPoolQuote, om as toPoolRewardPoint, Dm as toPoolTransaction, Om as toPoolTransactionPage, zl as toQuoteEventRow, ql as toQuoteFundingRow, ru as toQuoteHistoryRow, Yp as toRefundRequest, Xp as toRefundResult, $p as toRetryListingInfo, tm as toRetryListingResult, ws as toRevenueRecord, Xu as toSignableTpSlMessage, Ms as toSolverDailyVolume, Ym as toSolverRevenue, Os as toSolverSymbols, Ba as toThresholdSeconds, bm as toTokenPrice, Yd as toTradingViewDatafeed, Kd as toTradingViewResolution, Vd as toTransferRow, mu as toUnifiedQuoteFromInstantClose, hu as toUnifiedQuoteFromInstantOpen, gu as toUnifiedQuoteFromOnchain, Tp as toUpdateListingMarketConfigRequest, Mm as toUserListingMarket, Nm as toUserListingMarketPage, zp as toUserPoolProfit, sm as toUserPoolRewardChart, Lm as toUserTransaction, Rm as toUserTransactionPage, Hm as toWeeklyListingLimit, yo as toWeiBigInt, Km as toWithdrawRequest, ad as triggerPriceToWei, Ep as updateListingMarketConfig, kp as updateListingMarketConfigMutationOptions, Cl as validateInstantCloseAgainstMarket, Do as validateInstantOpenAgainstMarket, Oo as validateInstantOpenBalanceFunding, ld as validateTpSl, Y as waitForGaslessRequest, Of as walkOrderbook, Ef as watchBinanceDepth, ef as watchBinanceKlines, ba as watchBinancePrices, xa as watchEnigmaPrices, q as watchGaslessRequest, _a as watchNotifications, Sa as watchPrices, Md as watchTpSlNotifications, Jr as withdraw, Qr as withdrawAuto, Wi as withdrawAutoMutationOptions, qm as withdrawLp, Jm as withdrawLpMutationOptions, Ui as withdrawMutationOptions };
@@ -16,6 +16,7 @@ export * from './resolve-listing.js';
16
16
  export * from './resolve-pool-source.js';
17
17
  export * from './retry-listing/index.js';
18
18
  export * from './rewards/index.js';
19
+ export * from './token-price/index.js';
19
20
  export * from './trade-history/index.js';
20
21
  export * from './transactions/index.js';
21
22
  export * from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pools/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pools/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { Config } from '../../core/config/index.js';
2
+ import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
3
+ import { TokenPriceChain, TokenPrice } from '../types.js';
4
+ /**
5
+ * Parameters for {@link getTokenPrice}.
6
+ *
7
+ * Pool listing is chain-level, so this takes only a `chainId`: the listing
8
+ * backend is resolved from the chain.
9
+ */
10
+ export type GetTokenPriceParameters = Compute<ChainIdParameter & {
11
+ /**
12
+ * Bearer token from `authenticateListing`; required — the endpoint is authed.
13
+ * Sent as the `Authorization: Bearer <token>` header; a bad or expired token
14
+ * yields a `401`. An empty string is rejected before any request.
15
+ */
16
+ accessToken: string;
17
+ /**
18
+ * The chain the token lives on, by vendor chain **name**
19
+ * ({@link TokenPriceChain}) — not a numeric chain id and not a
20
+ * `ListingDepositChainId`. A value outside the enum is rejected before any
21
+ * request.
22
+ */
23
+ chain: TokenPriceChain;
24
+ /**
25
+ * The token's contract address on `chain`: an EVM `0x…` address, or a
26
+ * Solana base58 address when `chain` is `SOLANA`.
27
+ */
28
+ tokenAddress: string;
29
+ }>;
30
+ /** Return type of {@link getTokenPrice}: the token's pre-listing price estimate. */
31
+ export type GetTokenPriceReturnType = TokenPrice;
32
+ /**
33
+ * Fetch a pre-listing **price estimate** for a token — what the Price Service
34
+ * thinks one unit is worth in USD, before (or regardless of whether) the token
35
+ * is listed as a pool.
36
+ *
37
+ * This POSTs to the authed `/v2/market/token-price` endpoint with the caller's
38
+ * bearer token. The backend caches the figure for about five minutes and
39
+ * rate-limits the endpoint (ten requests a minute per authenticated wallet,
40
+ * thirty globally — cached responses count too), so the result is a display
41
+ * estimate rather than a mark or trade price: render it with a `~`, serve
42
+ * repeat reads from the cache, and do not poll. Enigma-only.
43
+ *
44
+ * @param config - The SDK config.
45
+ * @param parameters - The bearer token, the token's chain (by name) and its contract address.
46
+ * @returns The token's {@link TokenPrice} estimate.
47
+ * @throws {SymmApiError} `FETCH_TOKEN_PRICE_FAILED` when the endpoint request
48
+ * fails: a `401` on a bad or expired token (re-run `authenticateListing`), a
49
+ * `422` on an address the service cannot resolve, and a `429` when the rate
50
+ * limit is exhausted (`retryAfterMs` carries the wait when the service sends one).
51
+ * @throws {SymmError} `LISTING_NOT_CONFIGURED` when the chain has no listing
52
+ * backend. Gate with `supportsListingService` to hide Pools instead.
53
+ * @throws {SymmError} `MISSING_ACCESS_TOKEN` (`kind: "validation"`) when
54
+ * `accessToken` is empty, before any request.
55
+ * @throws {SymmError} `UNSUPPORTED_TOKEN_PRICE_CHAIN` (`kind: "validation"`)
56
+ * when `chain` is not a {@link TokenPriceChain} member, before any request.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const estimate = await getTokenPrice(config, {
61
+ * accessToken: token.accessToken,
62
+ * chain: TokenPriceChain.ARC,
63
+ * tokenAddress: "0x648A…620a",
64
+ * });
65
+ *
66
+ * // USD per token, an estimate:
67
+ * estimate.price;
68
+ * ```
69
+ */
70
+ export declare function getTokenPrice(config: Config, parameters: GetTokenPriceParameters): Promise<TokenPrice>;
71
+ //# sourceMappingURL=get-token-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-token-price.d.ts","sourceRoot":"","sources":["../../../src/pools/token-price/get-token-price.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAK5D;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,gBAAgB,GAAG;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,KAAK,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CACF,CAAC;AAEF,oFAAoF;AACpF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,CA+C5G"}
@@ -0,0 +1,30 @@
1
+ import { SymmApiError as e, SymmError as t } from "../../shared/errors/symm-error.js";
2
+ import { resolveListingService as n } from "../resolve-listing.js";
3
+ import { calculateSymbolPriceV2MarketTokenPricePost as r } from "../types/generated/listing-backend.js";
4
+ import { TokenPriceChain as i } from "../types.js";
5
+ import { toTokenPrice as a } from "./to-token-price.js";
6
+ import { isAxiosError as o } from "axios";
7
+ //#region src/pools/token-price/get-token-price.ts
8
+ async function s(s, c) {
9
+ let { url: l } = n(s, { chainId: c.chainId });
10
+ if (c.accessToken.trim() === "") throw new t("validation", "MISSING_ACCESS_TOKEN", "getTokenPrice: `accessToken` is required — the endpoint is authed. Mint one with `authenticateListing`.");
11
+ if (!Object.values(i).includes(c.chain)) throw new t("validation", "UNSUPPORTED_TOKEN_PRICE_CHAIN", `getTokenPrice: unsupported chain "${String(c.chain)}". Expected one of ${Object.values(i).join(", ")}.`);
12
+ try {
13
+ return a((await r({
14
+ chain: c.chain,
15
+ token_address: c.tokenAddress
16
+ }, {
17
+ baseURL: l,
18
+ headers: { Authorization: `Bearer ${c.accessToken}` }
19
+ })).data);
20
+ } catch (n) {
21
+ throw n instanceof t ? n : o(n) ? e.fromAxios(n, {
22
+ code: "FETCH_TOKEN_PRICE_FAILED",
23
+ baseURL: l
24
+ }) : new t("api", "FETCH_TOKEN_PRICE_FAILED", `Failed to fetch the token price: ${n instanceof Error ? n.message : String(n)}`, { cause: n instanceof Error ? n : void 0 });
25
+ }
26
+ }
27
+ //#endregion
28
+ export { s as getTokenPrice };
29
+
30
+ //# sourceMappingURL=get-token-price.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-token-price.js","names":[],"sources":["../../../src/pools/token-price/get-token-price.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { resolveListingService } from \"../resolve-listing\";\nimport { TokenPriceChain, type TokenPrice } from \"../types\";\nimport type { CalculateSymbolPriceRequestChain } from \"../types/generated/listing-backend\";\nimport { calculateSymbolPriceV2MarketTokenPricePost } from \"../types/generated/listing-backend\";\nimport { toTokenPrice } from \"./to-token-price\";\n\n/**\n * Parameters for {@link getTokenPrice}.\n *\n * Pool listing is chain-level, so this takes only a `chainId`: the listing\n * backend is resolved from the chain.\n */\nexport type GetTokenPriceParameters = Compute<\n ChainIdParameter & {\n /**\n * Bearer token from `authenticateListing`; required — the endpoint is authed.\n * Sent as the `Authorization: Bearer <token>` header; a bad or expired token\n * yields a `401`. An empty string is rejected before any request.\n */\n accessToken: string;\n /**\n * The chain the token lives on, by vendor chain **name**\n * ({@link TokenPriceChain}) — not a numeric chain id and not a\n * `ListingDepositChainId`. A value outside the enum is rejected before any\n * request.\n */\n chain: TokenPriceChain;\n /**\n * The token's contract address on `chain`: an EVM `0x…` address, or a\n * Solana base58 address when `chain` is `SOLANA`.\n */\n tokenAddress: string;\n }\n>;\n\n/** Return type of {@link getTokenPrice}: the token's pre-listing price estimate. */\nexport type GetTokenPriceReturnType = TokenPrice;\n\n/**\n * Fetch a pre-listing **price estimate** for a token — what the Price Service\n * thinks one unit is worth in USD, before (or regardless of whether) the token\n * is listed as a pool.\n *\n * This POSTs to the authed `/v2/market/token-price` endpoint with the caller's\n * bearer token. The backend caches the figure for about five minutes and\n * rate-limits the endpoint (ten requests a minute per authenticated wallet,\n * thirty globally — cached responses count too), so the result is a display\n * estimate rather than a mark or trade price: render it with a `~`, serve\n * repeat reads from the cache, and do not poll. Enigma-only.\n *\n * @param config - The SDK config.\n * @param parameters - The bearer token, the token's chain (by name) and its contract address.\n * @returns The token's {@link TokenPrice} estimate.\n * @throws {SymmApiError} `FETCH_TOKEN_PRICE_FAILED` when the endpoint request\n * fails: a `401` on a bad or expired token (re-run `authenticateListing`), a\n * `422` on an address the service cannot resolve, and a `429` when the rate\n * limit is exhausted (`retryAfterMs` carries the wait when the service sends one).\n * @throws {SymmError} `LISTING_NOT_CONFIGURED` when the chain has no listing\n * backend. Gate with `supportsListingService` to hide Pools instead.\n * @throws {SymmError} `MISSING_ACCESS_TOKEN` (`kind: \"validation\"`) when\n * `accessToken` is empty, before any request.\n * @throws {SymmError} `UNSUPPORTED_TOKEN_PRICE_CHAIN` (`kind: \"validation\"`)\n * when `chain` is not a {@link TokenPriceChain} member, before any request.\n *\n * @example\n * ```ts\n * const estimate = await getTokenPrice(config, {\n * accessToken: token.accessToken,\n * chain: TokenPriceChain.ARC,\n * tokenAddress: \"0x648A…620a\",\n * });\n *\n * // USD per token, an estimate:\n * estimate.price;\n * ```\n */\nexport async function getTokenPrice(config: Config, parameters: GetTokenPriceParameters): Promise<TokenPrice> {\n const { url: baseURL } = resolveListingService(config, { chainId: parameters.chainId });\n\n if (parameters.accessToken.trim() === \"\") {\n throw new SymmError(\n \"validation\",\n \"MISSING_ACCESS_TOKEN\",\n \"getTokenPrice: `accessToken` is required — the endpoint is authed. Mint one with `authenticateListing`.\",\n );\n }\n\n if (!Object.values(TokenPriceChain).includes(parameters.chain)) {\n throw new SymmError(\n \"validation\",\n \"UNSUPPORTED_TOKEN_PRICE_CHAIN\",\n `getTokenPrice: unsupported chain \"${String(parameters.chain)}\". Expected one of ${Object.values(TokenPriceChain).join(\", \")}.`,\n );\n }\n\n try {\n const response = await calculateSymbolPriceV2MarketTokenPricePost(\n {\n // Value-preserving: CalculateSymbolPriceRequestChain shares the same string values as TokenPriceChain.\n chain: parameters.chain as unknown as CalculateSymbolPriceRequestChain,\n token_address: parameters.tokenAddress,\n },\n {\n baseURL,\n headers: { Authorization: `Bearer ${parameters.accessToken}` },\n },\n );\n\n return toTokenPrice(response.data);\n } catch (err) {\n if (err instanceof SymmError) throw err;\n\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"FETCH_TOKEN_PRICE_FAILED\", baseURL });\n }\n\n throw new SymmError(\n \"api\",\n \"FETCH_TOKEN_PRICE_FAILED\",\n `Failed to fetch the token price: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;;AAgFA,eAAsB,EAAc,GAAgB,GAA0D;CAC5G,IAAM,EAAE,KAAK,MAAY,EAAsB,GAAQ,EAAE,SAAS,EAAW,QAAQ,CAAC;CAEtF,IAAI,EAAW,YAAY,KAAK,MAAM,IACpC,MAAM,IAAI,EACR,cACA,wBACA,yGACF;CAGF,IAAI,CAAC,OAAO,OAAO,CAAe,EAAE,SAAS,EAAW,KAAK,GAC3D,MAAM,IAAI,EACR,cACA,iCACA,qCAAqC,OAAO,EAAW,KAAK,EAAE,qBAAqB,OAAO,OAAO,CAAe,EAAE,KAAK,IAAI,EAAE,EAC/H;CAGF,IAAI;EAaF,OAAO,GAAa,MAZG,EACrB;GAEE,OAAO,EAAW;GAClB,eAAe,EAAW;EAC5B,GACA;GACE;GACA,SAAS,EAAE,eAAe,UAAU,EAAW,cAAc;EAC/D,CACF,GAE6B,IAAI;CACnC,SAAS,GAAK;EAOZ,MANI,aAAe,IAAiB,IAEhC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAA4B;EAAQ,CAAC,IAG3E,IAAI,EACR,OACA,4BACA,oCAAoC,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KACnF,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
@@ -0,0 +1,4 @@
1
+ export * from './get-token-price.js';
2
+ export * from './query.js';
3
+ export * from './to-token-price.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pools/token-price/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { Config } from '../../core/config/index.js';
2
+ import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
3
+ import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
4
+ import { GetTokenPriceParameters, GetTokenPriceReturnType } from './get-token-price.js';
5
+ /** Data resolved by the {@link getTokenPriceQueryOptions} query. */
6
+ export type GetTokenPriceData = GetTokenPriceReturnType;
7
+ /**
8
+ * Build the TanStack Query key for {@link getTokenPriceQueryOptions}.
9
+ *
10
+ * The bearer `accessToken` is dropped from the key by `filterQueryOptions` — it
11
+ * is a credential, not a cache dimension, so two calls that differ only by a
12
+ * refreshed token still hit the same cache entry (and the token never leaks into
13
+ * a devtools-visible key).
14
+ *
15
+ * @param options - The action's parameters (including `accessToken`) plus the resolved config key.
16
+ * @returns A stable, hashable query key.
17
+ */
18
+ export declare function getTokenPriceQueryKey(options: Compute<GetTokenPriceParameters & ConfigKeyParameter>): readonly ["getTokenPrice", Record<string, unknown>];
19
+ /** Query-key type produced by {@link getTokenPriceQueryKey}. */
20
+ export type GetTokenPriceQueryKey = ReturnType<typeof getTokenPriceQueryKey>;
21
+ /**
22
+ * Options accepted by {@link getTokenPriceQueryOptions}: the action's
23
+ * parameters, an optional cache scope, and TanStack overrides.
24
+ */
25
+ export type GetTokenPriceOptions = Compute<GetTokenPriceParameters & QueryParameter<GetTokenPriceData, Error, GetTokenPriceData, GetTokenPriceQueryKey>>;
26
+ /** TanStack Query options returned by {@link getTokenPriceQueryOptions}. */
27
+ export type GetTokenPriceQueryOptions = SymmioQueryOptions<GetTokenPriceData, Error, GetTokenPriceData, GetTokenPriceQueryKey>;
28
+ /**
29
+ * Build TanStack Query options for {@link getTokenPrice}.
30
+ *
31
+ * The endpoint is a POST, but it is modeled as a query because it is an
32
+ * idempotent read the UI fetches when a token is picked. `staleTime` and
33
+ * `gcTime` default to five minutes to match the backend's own cache and spare
34
+ * its rate limit; a `query.staleTime` / `query.gcTime` override wins.
35
+ *
36
+ * @param config - The SDK config.
37
+ * @param options - The action's parameters (including the required `accessToken`) and TanStack overrides.
38
+ * @returns Options to pass to `useQuery` / `queryClient.fetchQuery`.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * useQuery(
43
+ * getTokenPriceQueryOptions(config, {
44
+ * accessToken,
45
+ * chain: TokenPriceChain.ARC,
46
+ * tokenAddress: "0x648A…620a",
47
+ * }),
48
+ * );
49
+ * ```
50
+ */
51
+ export declare function getTokenPriceQueryOptions(config: Config, options: GetTokenPriceOptions): GetTokenPriceQueryOptions;
52
+ //# sourceMappingURL=query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/pools/token-price/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAiB,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAY9G,oEAAoE;AACpE,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;AAExD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,uBAAuB,GAAG,kBAAkB,CAAC,uDAEnG;AAED,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CACxC,uBAAuB,GAAG,cAAc,CAAC,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,CAC7G,CAAC;AAEF,4EAA4E;AAC5E,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CACxD,iBAAiB,EACjB,KAAK,EACL,iBAAiB,EACjB,qBAAqB,CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,yBAAyB,CAkBlH"}
@@ -0,0 +1,29 @@
1
+ import { filterQueryOptions as e } from "../../shared/utils/query.js";
2
+ import { getTokenPrice as t } from "./get-token-price.js";
3
+ //#region src/pools/token-price/query.ts
4
+ var n = 300 * 1e3;
5
+ function r(t) {
6
+ return ["getTokenPrice", e(t)];
7
+ }
8
+ function i(e, i) {
9
+ return {
10
+ staleTime: n,
11
+ gcTime: n,
12
+ ...i.query,
13
+ queryKey: r({
14
+ ...i,
15
+ configKey: e.getChainConfigKey(i.chainId)
16
+ }),
17
+ enabled: i.query?.enabled ?? !0,
18
+ queryFn: () => t(e, {
19
+ chainId: i.chainId,
20
+ accessToken: i.accessToken,
21
+ chain: i.chain,
22
+ tokenAddress: i.tokenAddress
23
+ })
24
+ };
25
+ }
26
+ //#endregion
27
+ export { r as getTokenPriceQueryKey, i as getTokenPriceQueryOptions };
28
+
29
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","names":[],"sources":["../../../src/pools/token-price/query.ts"],"sourcesContent":["import type { Config } from \"../../core/config\";\nimport type { Compute, ConfigKeyParameter } from \"../../shared/types/properties\";\nimport type { QueryParameter, SymmioQueryOptions } from \"../../shared/types/query\";\nimport { filterQueryOptions } from \"../../shared/utils/query\";\nimport { getTokenPrice, type GetTokenPriceParameters, type GetTokenPriceReturnType } from \"./get-token-price\";\n\n/**\n * Default cache lifetime for a token price estimate.\n *\n * The listing backend caches the figure for about five minutes and rate-limits\n * the endpoint (cached responses count against the limit), so asking sooner\n * returns the same number and burns quota. Both `staleTime` and `gcTime`\n * default to this; override per call through `query` if you need it fresher.\n */\nconst TOKEN_PRICE_CACHE_TIME_MS = 5 * 60 * 1000;\n\n/** Data resolved by the {@link getTokenPriceQueryOptions} query. */\nexport type GetTokenPriceData = GetTokenPriceReturnType;\n\n/**\n * Build the TanStack Query key for {@link getTokenPriceQueryOptions}.\n *\n * The bearer `accessToken` is dropped from the key by `filterQueryOptions` — it\n * is a credential, not a cache dimension, so two calls that differ only by a\n * refreshed token still hit the same cache entry (and the token never leaks into\n * a devtools-visible key).\n *\n * @param options - The action's parameters (including `accessToken`) plus the resolved config key.\n * @returns A stable, hashable query key.\n */\nexport function getTokenPriceQueryKey(options: Compute<GetTokenPriceParameters & ConfigKeyParameter>) {\n return [\"getTokenPrice\", filterQueryOptions(options)] as const;\n}\n\n/** Query-key type produced by {@link getTokenPriceQueryKey}. */\nexport type GetTokenPriceQueryKey = ReturnType<typeof getTokenPriceQueryKey>;\n\n/**\n * Options accepted by {@link getTokenPriceQueryOptions}: the action's\n * parameters, an optional cache scope, and TanStack overrides.\n */\nexport type GetTokenPriceOptions = Compute<\n GetTokenPriceParameters & QueryParameter<GetTokenPriceData, Error, GetTokenPriceData, GetTokenPriceQueryKey>\n>;\n\n/** TanStack Query options returned by {@link getTokenPriceQueryOptions}. */\nexport type GetTokenPriceQueryOptions = SymmioQueryOptions<\n GetTokenPriceData,\n Error,\n GetTokenPriceData,\n GetTokenPriceQueryKey\n>;\n\n/**\n * Build TanStack Query options for {@link getTokenPrice}.\n *\n * The endpoint is a POST, but it is modeled as a query because it is an\n * idempotent read the UI fetches when a token is picked. `staleTime` and\n * `gcTime` default to five minutes to match the backend's own cache and spare\n * its rate limit; a `query.staleTime` / `query.gcTime` override wins.\n *\n * @param config - The SDK config.\n * @param options - The action's parameters (including the required `accessToken`) and TanStack overrides.\n * @returns Options to pass to `useQuery` / `queryClient.fetchQuery`.\n *\n * @example\n * ```ts\n * useQuery(\n * getTokenPriceQueryOptions(config, {\n * accessToken,\n * chain: TokenPriceChain.ARC,\n * tokenAddress: \"0x648A…620a\",\n * }),\n * );\n * ```\n */\nexport function getTokenPriceQueryOptions(config: Config, options: GetTokenPriceOptions): GetTokenPriceQueryOptions {\n return {\n staleTime: TOKEN_PRICE_CACHE_TIME_MS,\n gcTime: TOKEN_PRICE_CACHE_TIME_MS,\n ...options.query,\n queryKey: getTokenPriceQueryKey({\n ...options,\n configKey: config.getChainConfigKey(options.chainId),\n }),\n enabled: options.query?.enabled ?? true,\n queryFn: () =>\n getTokenPrice(config, {\n chainId: options.chainId,\n accessToken: options.accessToken,\n chain: options.chain,\n tokenAddress: options.tokenAddress,\n }),\n };\n}\n"],"mappings":";;;AAcA,IAAM,IAA4B,MAAS;AAgB3C,SAAgB,EAAsB,GAAgE;CACpG,OAAO,CAAC,iBAAiB,EAAmB,CAAO,CAAC;AACtD;AA4CA,SAAgB,EAA0B,GAAgB,GAA0D;CAClH,OAAO;EACL,WAAW;EACX,QAAQ;EACR,GAAG,EAAQ;EACX,UAAU,EAAsB;GAC9B,GAAG;GACH,WAAW,EAAO,kBAAkB,EAAQ,OAAO;EACrD,CAAC;EACD,SAAS,EAAQ,OAAO,WAAW;EACnC,eACE,EAAc,GAAQ;GACpB,SAAS,EAAQ;GACjB,aAAa,EAAQ;GACrB,OAAO,EAAQ;GACf,cAAc,EAAQ;EACxB,CAAC;CACL;AACF"}
@@ -0,0 +1,14 @@
1
+ import { TokenPrice } from '../types.js';
2
+ import { SymbolPriceResponse } from '../types/generated/listing-backend.js';
3
+ /**
4
+ * Map the raw `/v2/market/token-price` response into the SDK's
5
+ * {@link TokenPrice}.
6
+ *
7
+ * The wire shape is a single `price` float (USD per token); it is carried
8
+ * through unchanged.
9
+ *
10
+ * @param raw - The endpoint's `/v2/market/token-price` response body.
11
+ * @returns The normalized token price estimate.
12
+ */
13
+ export declare function toTokenPrice(raw: SymbolPriceResponse): TokenPrice;
14
+ //# sourceMappingURL=to-token-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-token-price.d.ts","sourceRoot":"","sources":["../../../src/pools/token-price/to-token-price.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,mBAAmB,GAAG,UAAU,CAIjE"}
@@ -0,0 +1,8 @@
1
+ //#region src/pools/token-price/to-token-price.ts
2
+ function e(e) {
3
+ return { price: e.price };
4
+ }
5
+ //#endregion
6
+ export { e as toTokenPrice };
7
+
8
+ //# sourceMappingURL=to-token-price.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-token-price.js","names":[],"sources":["../../../src/pools/token-price/to-token-price.ts"],"sourcesContent":["import type { TokenPrice } from \"../types\";\nimport type { SymbolPriceResponse } from \"../types/generated/listing-backend\";\n\n/**\n * Map the raw `/v2/market/token-price` response into the SDK's\n * {@link TokenPrice}.\n *\n * The wire shape is a single `price` float (USD per token); it is carried\n * through unchanged.\n *\n * @param raw - The endpoint's `/v2/market/token-price` response body.\n * @returns The normalized token price estimate.\n */\nexport function toTokenPrice(raw: SymbolPriceResponse): TokenPrice {\n return {\n price: raw.price,\n };\n}\n"],"mappings":";AAaA,SAAgB,EAAa,GAAsC;CACjE,OAAO,EACL,OAAO,EAAI,MACb;AACF"}