@nadohq/indexer-client 0.32.0 → 0.34.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 (82) hide show
  1. package/dist/{IndexerBaseClient-dpwAE5Om.cjs → IndexerBaseClient-DKxLMijD.cjs} +14 -4
  2. package/dist/{IndexerBaseClient-dpwAE5Om.cjs.map → IndexerBaseClient-DKxLMijD.cjs.map} +1 -1
  3. package/dist/IndexerBaseClient.cjs +1 -1
  4. package/dist/IndexerBaseClient.d.cts +5 -4
  5. package/dist/IndexerBaseClient.d.cts.map +1 -1
  6. package/dist/IndexerBaseClient.d.ts +5 -4
  7. package/dist/IndexerBaseClient.d.ts.map +1 -1
  8. package/dist/IndexerBaseClient.js +13 -3
  9. package/dist/IndexerBaseClient.js.map +1 -1
  10. package/dist/IndexerClient.cjs +1 -1
  11. package/dist/IndexerClient.d.cts +1 -1
  12. package/dist/IndexerClient.d.ts +1 -1
  13. package/dist/{IndexerServerFailureError-Q8gMph7M.d.cts → IndexerServerFailureError-BMmMPfFJ.d.cts} +2 -2
  14. package/dist/{IndexerServerFailureError-Q8gMph7M.d.cts.map → IndexerServerFailureError-BMmMPfFJ.d.cts.map} +1 -1
  15. package/dist/{IndexerServerFailureError-CnyMDTmR.d.ts → IndexerServerFailureError-ClC8vkmR.d.ts} +2 -2
  16. package/dist/{IndexerServerFailureError-CnyMDTmR.d.ts.map → IndexerServerFailureError-ClC8vkmR.d.ts.map} +1 -1
  17. package/dist/{clientTypes-CuXHS6Jk.d.ts → clientTypes-BLKeWmIr.d.ts} +45 -3
  18. package/dist/clientTypes-BLKeWmIr.d.ts.map +1 -0
  19. package/dist/{clientTypes-sF5is5HA.d.cts → clientTypes-QBgifUeV.d.cts} +45 -3
  20. package/dist/clientTypes-QBgifUeV.d.cts.map +1 -0
  21. package/dist/dataMappers.cjs +3 -2
  22. package/dist/dataMappers.cjs.map +1 -1
  23. package/dist/dataMappers.d.cts +3 -3
  24. package/dist/dataMappers.d.cts.map +1 -1
  25. package/dist/dataMappers.d.ts +3 -3
  26. package/dist/dataMappers.d.ts.map +1 -1
  27. package/dist/dataMappers.js +2 -1
  28. package/dist/dataMappers.js.map +1 -1
  29. package/dist/index.cjs +2 -1
  30. package/dist/index.d.cts +7 -7
  31. package/dist/index.d.ts +7 -7
  32. package/dist/index.js +2 -2
  33. package/dist/{indexerBalanceValue-DaLg1BCK.d.cts → indexerBalanceValue-DqMAvUsj.d.cts} +2 -2
  34. package/dist/{indexerBalanceValue-DaLg1BCK.d.cts.map → indexerBalanceValue-DqMAvUsj.d.cts.map} +1 -1
  35. package/dist/{indexerBalanceValue-CuM_RYc3.d.ts → indexerBalanceValue-ZJec8hfI.d.ts} +2 -2
  36. package/dist/{indexerBalanceValue-CuM_RYc3.d.ts.map → indexerBalanceValue-ZJec8hfI.d.ts.map} +1 -1
  37. package/dist/{paginatedEventsTypes-DKN3qkoM.d.cts → paginatedEventsTypes-4I9Ibp9q.d.cts} +2 -2
  38. package/dist/{paginatedEventsTypes-DKN3qkoM.d.cts.map → paginatedEventsTypes-4I9Ibp9q.d.cts.map} +1 -1
  39. package/dist/{paginatedEventsTypes-Mdjf2Myl.d.ts → paginatedEventsTypes-D668Hgzl.d.ts} +2 -2
  40. package/dist/{paginatedEventsTypes-Mdjf2Myl.d.ts.map → paginatedEventsTypes-D668Hgzl.d.ts.map} +1 -1
  41. package/dist/{serverModelTypes-BwLIAkc1.d.ts → serverModelTypes-BAZNgoLE.d.ts} +6 -1
  42. package/dist/serverModelTypes-BAZNgoLE.d.ts.map +1 -0
  43. package/dist/{serverModelTypes-sQOL10Bi.d.cts → serverModelTypes-DC4dsX9i.d.cts} +6 -1
  44. package/dist/serverModelTypes-DC4dsX9i.d.cts.map +1 -0
  45. package/dist/{serverTypes-BdNekzFR.d.ts → serverTypes-BQafrknp.d.ts} +38 -3
  46. package/dist/{serverTypes-BdNekzFR.d.ts.map → serverTypes-BQafrknp.d.ts.map} +1 -1
  47. package/dist/{serverTypes-DrlzA5fi.d.cts → serverTypes-DeUDMCog.d.cts} +38 -3
  48. package/dist/{serverTypes-DrlzA5fi.d.cts.map → serverTypes-DeUDMCog.d.cts.map} +1 -1
  49. package/dist/types/IndexerServerFailureError.cjs +1 -1
  50. package/dist/types/IndexerServerFailureError.d.cts +1 -1
  51. package/dist/types/IndexerServerFailureError.d.ts +1 -1
  52. package/dist/types/clientTypes.d.cts +2 -2
  53. package/dist/types/clientTypes.d.ts +2 -2
  54. package/dist/types/index.cjs +1 -0
  55. package/dist/types/index.d.cts +6 -6
  56. package/dist/types/index.d.ts +6 -6
  57. package/dist/types/index.js +2 -2
  58. package/dist/types/indexerErrorCodes.cjs +1 -1
  59. package/dist/types/paginatedEventsTypes.d.cts +1 -1
  60. package/dist/types/paginatedEventsTypes.d.ts +1 -1
  61. package/dist/types/serverModelTypes.d.cts +1 -1
  62. package/dist/types/serverModelTypes.d.ts +1 -1
  63. package/dist/types/serverTypes.cjs +19 -0
  64. package/dist/types/serverTypes.cjs.map +1 -1
  65. package/dist/types/serverTypes.d.cts +2 -2
  66. package/dist/types/serverTypes.d.ts +2 -2
  67. package/dist/types/serverTypes.js +19 -1
  68. package/dist/types/serverTypes.js.map +1 -1
  69. package/dist/utils/index.d.cts +1 -1
  70. package/dist/utils/index.d.ts +1 -1
  71. package/dist/utils/indexerBalanceValue.d.cts +1 -1
  72. package/dist/utils/indexerBalanceValue.d.ts +1 -1
  73. package/package.json +4 -4
  74. package/src/IndexerBaseClient.ts +16 -2
  75. package/src/dataMappers.ts +1 -0
  76. package/src/types/clientTypes.ts +48 -0
  77. package/src/types/serverModelTypes.ts +5 -0
  78. package/src/types/serverTypes.ts +51 -0
  79. package/dist/clientTypes-CuXHS6Jk.d.ts.map +0 -1
  80. package/dist/clientTypes-sF5is5HA.d.cts.map +0 -1
  81. package/dist/serverModelTypes-BwLIAkc1.d.ts.map +0 -1
  82. package/dist/serverModelTypes-sQOL10Bi.d.cts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.cjs","names":["ProductEngineType","toBigNumber"],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n mapEngineServerPerpProduct,\n mapEngineServerSpotProduct,\n} from '@nadohq/engine-client';\nimport {\n getRecvTimeFromOrderNonce,\n mapValues,\n Market,\n PerpMarket,\n ProductEngineType,\n removeDecimals,\n SpotMarket,\n subaccountFromHex,\n toBigNumber,\n toIntegerString,\n unpackOrderAppendix,\n} from '@nadohq/shared';\nimport {\n Candlestick,\n GetIndexerPortfolioResponse,\n IndexerEvent,\n IndexerEventWithTx,\n IndexerFundingRate,\n IndexerFundingRateHistoryEntry,\n IndexerLeaderboardContest,\n IndexerLeaderboardParticipant,\n IndexerLeaderboardRegistration,\n IndexerMaker,\n IndexerMarketSnapshot,\n IndexerMatchEventBalances,\n IndexerNlpSnapshot,\n IndexerOrder,\n IndexerPerpBalance,\n IndexerPerpPrices,\n IndexerPortfolioPoint,\n IndexerProductPayment,\n IndexerServerBalance,\n IndexerServerCandlestick,\n IndexerServerEvent,\n IndexerServerFundingRate,\n IndexerServerFundingRateHistoryEntry,\n IndexerServerLeaderboardContest,\n IndexerServerLeaderboardPosition,\n IndexerServerLeaderboardRegistration,\n IndexerServerMaker,\n IndexerServerMarketSnapshot,\n IndexerServerMatchEventBalances,\n IndexerServerNlpSnapshot,\n IndexerServerOrder,\n IndexerServerPerpPrices,\n IndexerServerPortfolioPoint,\n IndexerServerPortfolioResponse,\n IndexerServerProduct,\n IndexerServerProductPayment,\n IndexerServerSnapshotsInterval,\n IndexerServerTx,\n IndexerServerV2MarketHours,\n IndexerServerV2Symbol,\n IndexerServerV2TickerResponse,\n IndexerSnapshotsIntervalParams,\n IndexerSpotBalance,\n IndexerV2MarketHours,\n IndexerV2Symbol,\n IndexerV2TickerResponse,\n IndexerV2TradingStatus,\n} from './types';\n\nexport function mapSnapshotsIntervalToServerParams(\n params: IndexerSnapshotsIntervalParams,\n): IndexerServerSnapshotsInterval {\n return {\n count: params.limit,\n max_time: params.maxTimeInclusive\n ? toIntegerString(params.maxTimeInclusive)\n : undefined,\n granularity: params.granularity,\n };\n}\n\nexport function mapIndexerServerProduct(product: IndexerServerProduct): Market {\n if ('spot' in product) {\n return mapEngineServerSpotProduct(product.spot);\n }\n return mapEngineServerPerpProduct(product.perp);\n}\n\nexport function mapIndexerServerBalance(\n balance: IndexerServerBalance,\n): IndexerSpotBalance | IndexerPerpBalance {\n if ('spot' in balance) {\n return {\n amount: toBigNumber(balance.spot.balance.amount),\n productId: balance.spot.product_id,\n type: ProductEngineType.SPOT,\n };\n }\n return {\n amount: toBigNumber(balance.perp.balance.amount),\n productId: balance.perp.product_id,\n type: ProductEngineType.PERP,\n vQuoteBalance: toBigNumber(balance.perp.balance.v_quote_balance),\n };\n}\n\nexport function mapIndexerOrder(order: IndexerServerOrder): IndexerOrder {\n const appendix = unpackOrderAppendix(order.appendix);\n return {\n amount: toBigNumber(order.amount),\n digest: order.digest,\n expiration: Number(order.expiration),\n appendix,\n nonce: toBigNumber(order.nonce),\n isolated: order.isolated,\n recvTimeSeconds: getRecvTimeFromOrderNonce(order.nonce) / 1000,\n price: removeDecimals(order.price_x18),\n productId: order.product_id,\n subaccount: order.subaccount,\n submissionIndex: order.submission_idx,\n lastFillSubmissionIndex: order.last_fill_submission_idx,\n baseFilled: toBigNumber(order.base_filled),\n quoteFilled: toBigNumber(order.quote_filled),\n totalFee: toBigNumber(order.fee),\n builderFee: toBigNumber(order.builder_fee),\n realizedPnl: toBigNumber(order.realized_pnl),\n closedAmount: toBigNumber(order.closed_amount),\n closedNetEntry: toBigNumber(order.closed_net_entry),\n preCloseMargin: order.closed_margin\n ? toBigNumber(order.closed_margin)\n : null,\n firstFillTimestamp: toBigNumber(order.first_fill_timestamp),\n lastFillTimestamp: toBigNumber(order.last_fill_timestamp),\n preBalances: mapIndexerMatchEventBalances(order.pre_balance),\n postBalances: mapIndexerMatchEventBalances(order.post_balance),\n };\n}\n\nexport function mapIndexerEvent(event: IndexerServerEvent): IndexerEvent {\n const eventState: IndexerEvent['state'] = (() => {\n // Assume backend data is consistent\n if ('spot' in event.pre_balance) {\n return {\n type: ProductEngineType.SPOT,\n market: mapIndexerServerProduct(event.product) as SpotMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerSpotBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerSpotBalance,\n };\n }\n return {\n type: ProductEngineType.PERP,\n market: mapIndexerServerProduct(event.product) as PerpMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerPerpBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerPerpBalance,\n };\n })();\n\n return {\n eventType: event.event_type,\n productId: event.product_id,\n isolated: event.isolated,\n isolatedProductId: event.isolated_product_id,\n state: eventState,\n subaccount: event.subaccount,\n submissionIndex: event.submission_idx,\n trackedVars: {\n netEntryCumulative: toBigNumber(event.net_entry_cumulative),\n netEntryUnrealized: toBigNumber(event.net_entry_unrealized),\n netFundingCumulative: toBigNumber(event.net_funding_cumulative),\n netFundingUnrealized: toBigNumber(event.net_funding_unrealized),\n netInterestCumulative: toBigNumber(event.net_interest_cumulative),\n netInterestUnrealized: toBigNumber(event.net_interest_unrealized),\n quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative),\n },\n };\n}\n\nexport function mapIndexerEventWithTx(\n event: IndexerServerEvent,\n tx: IndexerServerTx,\n): IndexerEventWithTx {\n return {\n timestamp: toBigNumber(tx.timestamp),\n tx: tx.tx,\n ...mapIndexerEvent(event),\n };\n}\n\nexport function mapIndexerMatchEventBalances(\n eventBalances: IndexerServerMatchEventBalances,\n): IndexerMatchEventBalances {\n return {\n base: mapIndexerServerBalance(eventBalances.base),\n quote: eventBalances.quote\n ? (mapIndexerServerBalance(eventBalances.quote) as IndexerSpotBalance)\n : undefined,\n };\n}\n\nexport function mapIndexerProductPayment(\n payment: IndexerServerProductPayment,\n): IndexerProductPayment {\n return {\n submissionIndex: payment.idx,\n timestamp: toBigNumber(payment.timestamp),\n paymentAmount: toBigNumber(payment.amount),\n balanceAmount: toBigNumber(payment.balance_amount),\n annualPaymentRate: removeDecimals(payment.rate_x18),\n oraclePrice: removeDecimals(payment.oracle_price_x18),\n isolated: payment.isolated,\n productId: payment.product_id,\n isolatedProductId: payment.isolated_product_id,\n };\n}\n\nexport function mapIndexerPerpPrices(\n perpPrices: IndexerServerPerpPrices,\n): IndexerPerpPrices {\n return {\n indexPrice: removeDecimals(perpPrices.index_price_x18),\n markPrice: removeDecimals(perpPrices.mark_price_x18),\n updateTime: toBigNumber(perpPrices.update_time),\n productId: perpPrices.product_id,\n };\n}\n\nexport function mapIndexerFundingRate(\n fundingRate: IndexerServerFundingRate,\n): IndexerFundingRate {\n return {\n fundingRate: removeDecimals(fundingRate.funding_rate_x18),\n updateTime: toBigNumber(fundingRate.update_time),\n productId: fundingRate.product_id,\n };\n}\n\nexport function mapIndexerFundingRateHistory(\n entry: IndexerServerFundingRateHistoryEntry,\n): IndexerFundingRateHistoryEntry {\n return {\n productId: entry.product_id,\n timestamp: toBigNumber(entry.timestamp),\n fundingRateFrac: removeDecimals(entry.funding_rate_x18),\n };\n}\n\nfunction mapIndexerPortfolioPoint([\n timestamp,\n value,\n]: IndexerServerPortfolioPoint): IndexerPortfolioPoint {\n return {\n timestamp: toBigNumber(timestamp),\n value: toBigNumber(value),\n };\n}\n\nexport function mapIndexerPortfolio(\n response: IndexerServerPortfolioResponse,\n): GetIndexerPortfolioResponse {\n return Object.fromEntries(\n response.map(([period, history]) => [\n period,\n {\n accountValueHistory: history.accountValueHistory.map(\n mapIndexerPortfolioPoint,\n ),\n pnlHistory: history.pnlHistory.map(mapIndexerPortfolioPoint),\n volumeHistory: history.volumeHistory.map(mapIndexerPortfolioPoint),\n tradeSizeHistory: history.tradeSizeHistory.map(\n mapIndexerPortfolioPoint,\n ),\n marketCountHistory: history.marketCountHistory.map(\n mapIndexerPortfolioPoint,\n ),\n },\n ]),\n ) as GetIndexerPortfolioResponse;\n}\n\nexport function mapIndexerMakerStatistics(\n maker: IndexerServerMaker,\n): IndexerMaker {\n return {\n address: maker.address,\n snapshots: maker.data.map((makerData) => {\n return {\n timestamp: toBigNumber(makerData.timestamp),\n makerFee: toBigNumber(makerData.maker_fee),\n uptime: toBigNumber(makerData.uptime),\n sumQMin: toBigNumber(makerData.sum_q_min),\n qScore: toBigNumber(makerData.q_score),\n makerShare: toBigNumber(makerData.maker_share),\n expectedMakerReward: toBigNumber(makerData.expected_maker_reward),\n };\n }),\n };\n}\n\nexport function mapIndexerLeaderboardPosition(\n position: IndexerServerLeaderboardPosition,\n): IndexerLeaderboardParticipant {\n const tracks = mapValues(position.tracks, (trackData) => ({\n value: toBigNumber(trackData.value),\n rank: toBigNumber(trackData.rank),\n qualificationStatus: trackData.qualification_status,\n }));\n\n return {\n subaccount: subaccountFromHex(position.subaccount),\n contestId: position.contest_id,\n accountValue: toBigNumber(position.account_value),\n updateTime: toBigNumber(position.update_time),\n tracks,\n socialAccounts: position.social_accounts.map((account) => ({\n provider: account.provider,\n username: account.username,\n displayName: account.display_name,\n profileImageUrl: account.profile_image_url,\n })),\n };\n}\n\nexport function mapIndexerLeaderboardRegistration(\n registration: IndexerServerLeaderboardRegistration,\n): IndexerLeaderboardRegistration {\n return {\n subaccount: subaccountFromHex(registration.subaccount),\n contestId: registration.contest_id,\n updateTime: toBigNumber(registration.update_time),\n };\n}\n\nexport function mapIndexerLeaderboardContest(\n contest: IndexerServerLeaderboardContest,\n): IndexerLeaderboardContest {\n const startTime = toBigNumber(contest.start_time);\n const endTime = toBigNumber(contest.end_time);\n\n return {\n contestId: contest.contest_id,\n startTime,\n endTime,\n totalParticipants: toBigNumber(contest.count),\n requiredProductIds: contest.product_ids,\n active: contest.active,\n lastUpdated: toBigNumber(contest.last_updated),\n title: contest.title,\n description: contest.description,\n tracks: contest.tracks.map((track) => ({\n trackId: track.track_id,\n rankType: track.rank_type,\n sortOrder: track.sort_order,\n accountValueThreshold: toBigNumber(track.threshold),\n volumeThreshold: toBigNumber(track.volume_threshold),\n })),\n };\n}\n\nexport function mapIndexerCandlesticks(\n candlestick: IndexerServerCandlestick,\n): Candlestick {\n return {\n close: removeDecimals(candlestick.close_x18),\n high: removeDecimals(candlestick.high_x18),\n low: removeDecimals(candlestick.low_x18),\n open: removeDecimals(candlestick.open_x18),\n time: toBigNumber(candlestick.timestamp),\n volume: toBigNumber(candlestick.volume),\n };\n}\n\nexport function mapIndexerMarketSnapshot(\n snapshot: IndexerServerMarketSnapshot,\n): IndexerMarketSnapshot {\n return {\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeUsers: toBigNumber(snapshot.cumulative_users),\n dailyActiveUsers: toBigNumber(snapshot.daily_active_users),\n tvl: toBigNumber(snapshot.tvl),\n borrowRates: mapValues(snapshot.borrow_rates, (value) =>\n removeDecimals(value),\n ),\n cumulativeLiquidationAmounts: mapValues(\n snapshot.cumulative_liquidation_amounts,\n toBigNumber,\n ),\n cumulativeMakerFees: mapValues(snapshot.cumulative_maker_fees, toBigNumber),\n cumulativeSequencerFees: mapValues(\n snapshot.cumulative_sequencer_fees,\n toBigNumber,\n ),\n cumulativeTakerFees: mapValues(snapshot.cumulative_taker_fees, toBigNumber),\n cumulativeTrades: mapValues(snapshot.cumulative_trades, toBigNumber),\n cumulativeVolumes: mapValues(snapshot.cumulative_volumes, toBigNumber),\n depositRates: mapValues(snapshot.deposit_rates, (value) =>\n removeDecimals(value),\n ),\n fundingRates: mapValues(snapshot.funding_rates, (value) =>\n removeDecimals(value),\n ),\n openInterestsQuote: mapValues(snapshot.open_interests, toBigNumber),\n totalBorrows: mapValues(snapshot.total_borrows, toBigNumber),\n totalDeposits: mapValues(snapshot.total_deposits, toBigNumber),\n cumulativeTradeSizes: mapValues(\n snapshot.cumulative_trade_sizes,\n toBigNumber,\n ),\n cumulativeInflows: mapValues(snapshot.cumulative_inflows, toBigNumber),\n cumulativeOutflows: mapValues(snapshot.cumulative_outflows, toBigNumber),\n oraclePrices: mapValues(snapshot.oracle_prices, (value) =>\n removeDecimals(value),\n ),\n };\n}\n\nexport function mapIndexerNlpSnapshot(\n snapshot: IndexerServerNlpSnapshot,\n): IndexerNlpSnapshot {\n return {\n submissionIndex: snapshot.submission_idx,\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeBurnAmountQuote: toBigNumber(snapshot.cumulative_burn_quote),\n cumulativeMintAmountQuote: toBigNumber(snapshot.cumulative_mint_quote),\n cumulativePnl: toBigNumber(snapshot.cumulative_pnl),\n cumulativeTrades: toBigNumber(snapshot.cumulative_trades),\n cumulativeVolume: toBigNumber(snapshot.cumulative_volume),\n depositors: toBigNumber(snapshot.depositors),\n oraclePrice: removeDecimals(snapshot.oracle_price_x18),\n tvl: toBigNumber(snapshot.tvl),\n };\n}\n\nexport function mapIndexerV2Ticker(\n ticker: IndexerServerV2TickerResponse,\n): IndexerV2TickerResponse {\n return {\n productId: ticker.product_id,\n tickerId: ticker.ticker_id,\n baseCurrency: ticker.base_currency,\n quoteCurrency: ticker.quote_currency,\n lastPrice: ticker.last_price,\n baseVolume: ticker.base_volume,\n quoteVolume: ticker.quote_volume,\n priceChangePercent24h: ticker.price_change_percent_24h,\n };\n}\n\nexport function mapIndexerV2MarketHours(\n hours: IndexerServerV2MarketHours,\n): IndexerV2MarketHours {\n return {\n isOpen: hours.is_open,\n reason: hours.reason,\n nextClose: hours.next_close,\n nextOpen: hours.next_open,\n };\n}\n\nexport function mapIndexerV2Symbols(\n symbol: IndexerServerV2Symbol,\n): IndexerV2Symbol {\n return {\n type: symbol.type,\n productId: symbol.product_id,\n symbol: symbol.symbol,\n priceIncrement: removeDecimals(symbol.price_increment_x18),\n sizeIncrement: symbol.size_increment,\n minSize: symbol.min_size,\n makerFeeRate: removeDecimals(symbol.maker_fee_rate_x18),\n takerFeeRate: removeDecimals(symbol.taker_fee_rate_x18),\n longWeightInitial: removeDecimals(symbol.long_weight_initial_x18),\n longWeightMaintenance: removeDecimals(symbol.long_weight_maintenance_x18),\n maxOpenInterest: symbol.max_open_interest_x18\n ? removeDecimals(symbol.max_open_interest_x18)\n : null,\n exchangeRate: symbol.exchange_rate_x18\n ? removeDecimals(symbol.exchange_rate_x18)\n : null,\n tradingStatus: symbol.trading_status as IndexerV2TradingStatus,\n isolatedOnly: symbol.isolated_only,\n marketHours: symbol.market_hours\n ? mapIndexerV2MarketHours(symbol.market_hours)\n : null,\n boostType: symbol.boost_type ?? null,\n takerMultiplier: symbol.taker_multiplier ?? null,\n makerMultiplier: symbol.maker_multiplier ?? null,\n };\n}\n"],"mappings":";;;;;AAmEA,SAAgB,mCACd,QACgC;CAChC,OAAO;EACL,OAAO,OAAO;EACd,UAAU,OAAO,oBAAA,GAAA,eAAA,iBACG,OAAO,gBAAgB,IACvC,KAAA;EACJ,aAAa,OAAO;CACtB;AACF;AAEA,SAAgB,wBAAwB,SAAuC;CAC7E,IAAI,UAAU,SACZ,QAAA,GAAA,sBAAA,4BAAkC,QAAQ,IAAI;CAEhD,QAAA,GAAA,sBAAA,4BAAkC,QAAQ,IAAI;AAChD;AAEA,SAAgB,wBACd,SACyC;CACzC,IAAI,UAAU,SACZ,OAAO;EACL,SAAA,GAAA,eAAA,aAAoB,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAMA,eAAAA,kBAAkB;CAC1B;CAEF,OAAO;EACL,SAAA,GAAA,eAAA,aAAoB,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAMA,eAAAA,kBAAkB;EACxB,gBAAA,GAAA,eAAA,aAA2B,QAAQ,KAAK,QAAQ,eAAe;CACjE;AACF;AAEA,SAAgB,gBAAgB,OAAyC;CACvE,MAAM,YAAA,GAAA,eAAA,qBAA+B,MAAM,QAAQ;CACnD,OAAO;EACL,SAAA,GAAA,eAAA,aAAoB,MAAM,MAAM;EAChC,QAAQ,MAAM;EACd,YAAY,OAAO,MAAM,U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eAAA,gBAA+B,OAAO,mBAAmB;EACzD,eAAe,OAAO;EACtB,SAAS,OAAO;EAChB,eAAA,GAAA,eAAA,gBAA6B,OAAO,kBAAkB;EACtD,eAAA,GAAA,eAAA,gBAA6B,OAAO,kBAAkB;EACtD,oBAAA,GAAA,eAAA,gBAAkC,OAAO,uBAAuB;EAChE,wBAAA,GAAA,eAAA,gBAAsC,OAAO,2BAA2B;EACxE,iBAAiB,OAAO,yBAAA,GAAA,eAAA,gBACL,OAAO,qBAAqB,IAC3C;EACJ,cAAc,OAAO,qBAAA,GAAA,eAAA,gBACF,OAAO,iBAAiB,IACvC;EACJ,eAAe,OAAO;EACtB,cAAc,OAAO;EACrB,aAAa,OAAO,eAChB,wBAAwB,OAAO,YAAY,IAC3C;EACJ,WAAW,OAAO,cAAc;EAChC,iBAAiB,OAAO,oBAAoB;EAC5C,iBAAiB,OAAO,oBAAoB;CAC9C;AACF"}
1
+ {"version":3,"file":"dataMappers.cjs","names":["ProductEngineType","toBigNumber"],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n mapEngineServerPerpProduct,\n mapEngineServerSpotProduct,\n} from '@nadohq/engine-client';\nimport {\n getRecvTimeFromOrderNonce,\n mapValues,\n Market,\n PerpMarket,\n ProductEngineType,\n removeDecimals,\n SpotMarket,\n subaccountFromHex,\n toBigNumber,\n toIntegerString,\n unpackOrderAppendix,\n} from '@nadohq/shared';\nimport {\n Candlestick,\n GetIndexerPortfolioResponse,\n IndexerEvent,\n IndexerEventWithTx,\n IndexerFundingRate,\n IndexerFundingRateHistoryEntry,\n IndexerLeaderboardContest,\n IndexerLeaderboardParticipant,\n IndexerLeaderboardRegistration,\n IndexerMaker,\n IndexerMarketSnapshot,\n IndexerMatchEventBalances,\n IndexerNlpSnapshot,\n IndexerOrder,\n IndexerPerpBalance,\n IndexerPerpPrices,\n IndexerPortfolioPoint,\n IndexerProductPayment,\n IndexerServerBalance,\n IndexerServerCandlestick,\n IndexerServerEvent,\n IndexerServerFundingRate,\n IndexerServerFundingRateHistoryEntry,\n IndexerServerLeaderboardContest,\n IndexerServerLeaderboardPosition,\n IndexerServerLeaderboardRegistration,\n IndexerServerMaker,\n IndexerServerMarketSnapshot,\n IndexerServerMatchEventBalances,\n IndexerServerNlpSnapshot,\n IndexerServerOrder,\n IndexerServerPerpPrices,\n IndexerServerPortfolioPoint,\n IndexerServerPortfolioResponse,\n IndexerServerProduct,\n IndexerServerProductPayment,\n IndexerServerSnapshotsInterval,\n IndexerServerTx,\n IndexerServerV2MarketHours,\n IndexerServerV2Symbol,\n IndexerServerV2TickerResponse,\n IndexerSnapshotsIntervalParams,\n IndexerSpotBalance,\n IndexerV2MarketHours,\n IndexerV2Symbol,\n IndexerV2TickerResponse,\n IndexerV2TradingStatus,\n} from './types';\n\nexport function mapSnapshotsIntervalToServerParams(\n params: IndexerSnapshotsIntervalParams,\n): IndexerServerSnapshotsInterval {\n return {\n count: params.limit,\n max_time: params.maxTimeInclusive\n ? toIntegerString(params.maxTimeInclusive)\n : undefined,\n granularity: params.granularity,\n };\n}\n\nexport function mapIndexerServerProduct(product: IndexerServerProduct): Market {\n if ('spot' in product) {\n return mapEngineServerSpotProduct(product.spot);\n }\n return mapEngineServerPerpProduct(product.perp);\n}\n\nexport function mapIndexerServerBalance(\n balance: IndexerServerBalance,\n): IndexerSpotBalance | IndexerPerpBalance {\n if ('spot' in balance) {\n return {\n amount: toBigNumber(balance.spot.balance.amount),\n productId: balance.spot.product_id,\n type: ProductEngineType.SPOT,\n };\n }\n return {\n amount: toBigNumber(balance.perp.balance.amount),\n productId: balance.perp.product_id,\n type: ProductEngineType.PERP,\n vQuoteBalance: toBigNumber(balance.perp.balance.v_quote_balance),\n };\n}\n\nexport function mapIndexerOrder(order: IndexerServerOrder): IndexerOrder {\n const appendix = unpackOrderAppendix(order.appendix);\n return {\n amount: toBigNumber(order.amount),\n digest: order.digest,\n expiration: Number(order.expiration),\n appendix,\n nonce: toBigNumber(order.nonce),\n isolated: order.isolated,\n recvTimeSeconds: getRecvTimeFromOrderNonce(order.nonce) / 1000,\n price: removeDecimals(order.price_x18),\n productId: order.product_id,\n subaccount: order.subaccount,\n submissionIndex: order.submission_idx,\n lastFillSubmissionIndex: order.last_fill_submission_idx,\n baseFilled: toBigNumber(order.base_filled),\n quoteFilled: toBigNumber(order.quote_filled),\n totalFee: toBigNumber(order.fee),\n builderFee: toBigNumber(order.builder_fee),\n realizedPnl: toBigNumber(order.realized_pnl),\n closedAmount: toBigNumber(order.closed_amount),\n closedNetEntry: toBigNumber(order.closed_net_entry),\n preCloseMargin: order.closed_margin\n ? toBigNumber(order.closed_margin)\n : null,\n firstFillTimestamp: toBigNumber(order.first_fill_timestamp),\n lastFillTimestamp: toBigNumber(order.last_fill_timestamp),\n preBalances: mapIndexerMatchEventBalances(order.pre_balance),\n postBalances: mapIndexerMatchEventBalances(order.post_balance),\n };\n}\n\nexport function mapIndexerEvent(event: IndexerServerEvent): IndexerEvent {\n const eventState: IndexerEvent['state'] = (() => {\n // Assume backend data is consistent\n if ('spot' in event.pre_balance) {\n return {\n type: ProductEngineType.SPOT,\n market: mapIndexerServerProduct(event.product) as SpotMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerSpotBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerSpotBalance,\n };\n }\n return {\n type: ProductEngineType.PERP,\n market: mapIndexerServerProduct(event.product) as PerpMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerPerpBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerPerpBalance,\n };\n })();\n\n return {\n eventType: event.event_type,\n productId: event.product_id,\n isolated: event.isolated,\n isolatedProductId: event.isolated_product_id,\n state: eventState,\n subaccount: event.subaccount,\n submissionIndex: event.submission_idx,\n trackedVars: {\n netEntryCumulative: toBigNumber(event.net_entry_cumulative),\n netEntryUnrealized: toBigNumber(event.net_entry_unrealized),\n netFundingCumulative: toBigNumber(event.net_funding_cumulative),\n netFundingUnrealized: toBigNumber(event.net_funding_unrealized),\n netInterestCumulative: toBigNumber(event.net_interest_cumulative),\n netInterestUnrealized: toBigNumber(event.net_interest_unrealized),\n quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative),\n cumulativeTradeCount: toBigNumber(event.cumulative_trade_count),\n },\n };\n}\n\nexport function mapIndexerEventWithTx(\n event: IndexerServerEvent,\n tx: IndexerServerTx,\n): IndexerEventWithTx {\n return {\n timestamp: toBigNumber(tx.timestamp),\n tx: tx.tx,\n ...mapIndexerEvent(event),\n };\n}\n\nexport function mapIndexerMatchEventBalances(\n eventBalances: IndexerServerMatchEventBalances,\n): IndexerMatchEventBalances {\n return {\n base: mapIndexerServerBalance(eventBalances.base),\n quote: eventBalances.quote\n ? (mapIndexerServerBalance(eventBalances.quote) as IndexerSpotBalance)\n : undefined,\n };\n}\n\nexport function mapIndexerProductPayment(\n payment: IndexerServerProductPayment,\n): IndexerProductPayment {\n return {\n submissionIndex: payment.idx,\n timestamp: toBigNumber(payment.timestamp),\n paymentAmount: toBigNumber(payment.amount),\n balanceAmount: toBigNumber(payment.balance_amount),\n annualPaymentRate: removeDecimals(payment.rate_x18),\n oraclePrice: removeDecimals(payment.oracle_price_x18),\n isolated: payment.isolated,\n productId: payment.product_id,\n isolatedProductId: payment.isolated_product_id,\n };\n}\n\nexport function mapIndexerPerpPrices(\n perpPrices: IndexerServerPerpPrices,\n): IndexerPerpPrices {\n return {\n indexPrice: removeDecimals(perpPrices.index_price_x18),\n markPrice: removeDecimals(perpPrices.mark_price_x18),\n updateTime: toBigNumber(perpPrices.update_time),\n productId: perpPrices.product_id,\n };\n}\n\nexport function mapIndexerFundingRate(\n fundingRate: IndexerServerFundingRate,\n): IndexerFundingRate {\n return {\n fundingRate: removeDecimals(fundingRate.funding_rate_x18),\n updateTime: toBigNumber(fundingRate.update_time),\n productId: fundingRate.product_id,\n };\n}\n\nexport function mapIndexerFundingRateHistory(\n entry: IndexerServerFundingRateHistoryEntry,\n): IndexerFundingRateHistoryEntry {\n return {\n productId: entry.product_id,\n timestamp: toBigNumber(entry.timestamp),\n fundingRateFrac: removeDecimals(entry.funding_rate_x18),\n };\n}\n\nfunction mapIndexerPortfolioPoint([\n timestamp,\n value,\n]: IndexerServerPortfolioPoint): IndexerPortfolioPoint {\n return {\n timestamp: toBigNumber(timestamp),\n value: toBigNumber(value),\n };\n}\n\nexport function mapIndexerPortfolio(\n response: IndexerServerPortfolioResponse,\n): GetIndexerPortfolioResponse {\n return Object.fromEntries(\n response.map(([period, history]) => [\n period,\n {\n accountValueHistory: history.accountValueHistory.map(\n mapIndexerPortfolioPoint,\n ),\n pnlHistory: history.pnlHistory.map(mapIndexerPortfolioPoint),\n volumeHistory: history.volumeHistory.map(mapIndexerPortfolioPoint),\n tradeSizeHistory: history.tradeSizeHistory.map(\n mapIndexerPortfolioPoint,\n ),\n marketCountHistory: history.marketCountHistory.map(\n mapIndexerPortfolioPoint,\n ),\n },\n ]),\n ) as GetIndexerPortfolioResponse;\n}\n\nexport function mapIndexerMakerStatistics(\n maker: IndexerServerMaker,\n): IndexerMaker {\n return {\n address: maker.address,\n snapshots: maker.data.map((makerData) => {\n return {\n timestamp: toBigNumber(makerData.timestamp),\n makerFee: toBigNumber(makerData.maker_fee),\n uptime: toBigNumber(makerData.uptime),\n sumQMin: toBigNumber(makerData.sum_q_min),\n qScore: toBigNumber(makerData.q_score),\n makerShare: toBigNumber(makerData.maker_share),\n expectedMakerReward: toBigNumber(makerData.expected_maker_reward),\n };\n }),\n };\n}\n\nexport function mapIndexerLeaderboardPosition(\n position: IndexerServerLeaderboardPosition,\n): IndexerLeaderboardParticipant {\n const tracks = mapValues(position.tracks, (trackData) => ({\n value: toBigNumber(trackData.value),\n rank: toBigNumber(trackData.rank),\n qualificationStatus: trackData.qualification_status,\n }));\n\n return {\n subaccount: subaccountFromHex(position.subaccount),\n contestId: position.contest_id,\n accountValue: toBigNumber(position.account_value),\n updateTime: toBigNumber(position.update_time),\n tracks,\n socialAccounts: position.social_accounts.map((account) => ({\n provider: account.provider,\n username: account.username,\n displayName: account.display_name,\n profileImageUrl: account.profile_image_url,\n })),\n };\n}\n\nexport function mapIndexerLeaderboardRegistration(\n registration: IndexerServerLeaderboardRegistration,\n): IndexerLeaderboardRegistration {\n return {\n subaccount: subaccountFromHex(registration.subaccount),\n contestId: registration.contest_id,\n updateTime: toBigNumber(registration.update_time),\n };\n}\n\nexport function mapIndexerLeaderboardContest(\n contest: IndexerServerLeaderboardContest,\n): IndexerLeaderboardContest {\n const startTime = toBigNumber(contest.start_time);\n const endTime = toBigNumber(contest.end_time);\n\n return {\n contestId: contest.contest_id,\n startTime,\n endTime,\n totalParticipants: toBigNumber(contest.count),\n requiredProductIds: contest.product_ids,\n active: contest.active,\n lastUpdated: toBigNumber(contest.last_updated),\n title: contest.title,\n description: contest.description,\n tracks: contest.tracks.map((track) => ({\n trackId: track.track_id,\n rankType: track.rank_type,\n sortOrder: track.sort_order,\n accountValueThreshold: toBigNumber(track.threshold),\n volumeThreshold: toBigNumber(track.volume_threshold),\n })),\n };\n}\n\nexport function mapIndexerCandlesticks(\n candlestick: IndexerServerCandlestick,\n): Candlestick {\n return {\n close: removeDecimals(candlestick.close_x18),\n high: removeDecimals(candlestick.high_x18),\n low: removeDecimals(candlestick.low_x18),\n open: removeDecimals(candlestick.open_x18),\n time: toBigNumber(candlestick.timestamp),\n volume: toBigNumber(candlestick.volume),\n };\n}\n\nexport function mapIndexerMarketSnapshot(\n snapshot: IndexerServerMarketSnapshot,\n): IndexerMarketSnapshot {\n return {\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeUsers: toBigNumber(snapshot.cumulative_users),\n dailyActiveUsers: toBigNumber(snapshot.daily_active_users),\n tvl: toBigNumber(snapshot.tvl),\n borrowRates: mapValues(snapshot.borrow_rates, (value) =>\n removeDecimals(value),\n ),\n cumulativeLiquidationAmounts: mapValues(\n snapshot.cumulative_liquidation_amounts,\n toBigNumber,\n ),\n cumulativeMakerFees: mapValues(snapshot.cumulative_maker_fees, toBigNumber),\n cumulativeSequencerFees: mapValues(\n snapshot.cumulative_sequencer_fees,\n toBigNumber,\n ),\n cumulativeTakerFees: mapValues(snapshot.cumulative_taker_fees, toBigNumber),\n cumulativeTrades: mapValues(snapshot.cumulative_trades, toBigNumber),\n cumulativeVolumes: mapValues(snapshot.cumulative_volumes, toBigNumber),\n depositRates: mapValues(snapshot.deposit_rates, (value) =>\n removeDecimals(value),\n ),\n fundingRates: mapValues(snapshot.funding_rates, (value) =>\n removeDecimals(value),\n ),\n openInterestsQuote: mapValues(snapshot.open_interests, toBigNumber),\n totalBorrows: mapValues(snapshot.total_borrows, toBigNumber),\n totalDeposits: mapValues(snapshot.total_deposits, toBigNumber),\n cumulativeTradeSizes: mapValues(\n snapshot.cumulative_trade_sizes,\n toBigNumber,\n ),\n cumulativeInflows: mapValues(snapshot.cumulative_inflows, toBigNumber),\n cumulativeOutflows: mapValues(snapshot.cumulative_outflows, toBigNumber),\n oraclePrices: mapValues(snapshot.oracle_prices, (value) =>\n removeDecimals(value),\n ),\n };\n}\n\nexport function mapIndexerNlpSnapshot(\n snapshot: IndexerServerNlpSnapshot,\n): IndexerNlpSnapshot {\n return {\n submissionIndex: snapshot.submission_idx,\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeBurnAmountQuote: toBigNumber(snapshot.cumulative_burn_quote),\n cumulativeMintAmountQuote: toBigNumber(snapshot.cumulative_mint_quote),\n cumulativePnl: toBigNumber(snapshot.cumulative_pnl),\n cumulativeTrades: toBigNumber(snapshot.cumulative_trades),\n cumulativeVolume: toBigNumber(snapshot.cumulative_volume),\n depositors: toBigNumber(snapshot.depositors),\n oraclePrice: removeDecimals(snapshot.oracle_price_x18),\n tvl: toBigNumber(snapshot.tvl),\n };\n}\n\nexport function mapIndexerV2Ticker(\n ticker: IndexerServerV2TickerResponse,\n): IndexerV2TickerResponse {\n return {\n productId: ticker.product_id,\n tickerId: ticker.ticker_id,\n baseCurrency: ticker.base_currency,\n quoteCurrency: ticker.quote_currency,\n lastPrice: ticker.last_price,\n baseVolume: ticker.base_volume,\n quoteVolume: ticker.quote_volume,\n priceChangePercent24h: ticker.price_change_percent_24h,\n };\n}\n\nexport function mapIndexerV2MarketHours(\n hours: IndexerServerV2MarketHours,\n): IndexerV2MarketHours {\n return {\n isOpen: hours.is_open,\n reason: hours.reason,\n nextClose: hours.next_close,\n nextOpen: hours.next_open,\n };\n}\n\nexport function mapIndexerV2Symbols(\n symbol: IndexerServerV2Symbol,\n): IndexerV2Symbol {\n return {\n type: symbol.type,\n productId: symbol.product_id,\n symbol: symbol.symbol,\n priceIncrement: removeDecimals(symbol.price_increment_x18),\n sizeIncrement: symbol.size_increment,\n minSize: symbol.min_size,\n makerFeeRate: removeDecimals(symbol.maker_fee_rate_x18),\n takerFeeRate: removeDecimals(symbol.taker_fee_rate_x18),\n longWeightInitial: removeDecimals(symbol.long_weight_initial_x18),\n longWeightMaintenance: removeDecimals(symbol.long_weight_maintenance_x18),\n maxOpenInterest: symbol.max_open_interest_x18\n ? removeDecimals(symbol.max_open_interest_x18)\n : null,\n exchangeRate: symbol.exchange_rate_x18\n ? removeDecimals(symbol.exchange_rate_x18)\n : null,\n tradingStatus: symbol.trading_status as IndexerV2TradingStatus,\n isolatedOnly: symbol.isolated_only,\n marketHours: symbol.market_hours\n ? mapIndexerV2MarketHours(symbol.market_hours)\n : null,\n boostType: symbol.boost_type ?? null,\n takerMultiplier: symbol.taker_multiplier ?? null,\n makerMultiplier: symbol.maker_multiplier ?? null,\n };\n}\n"],"mappings":";;;;;AAmEA,SAAgB,mCACd,QACgC;CAChC,OAAO;EACL,OAAO,OAAO;EACd,UAAU,OAAO,oBAAA,GAAA,eAAA,iBACG,OAAO,gBAAgB,IACvC,KAAA;EACJ,aAAa,OAAO;CACtB;AACF;AAEA,SAAgB,wBAAwB,SAAuC;CAC7E,IAAI,UAAU,SACZ,QAAA,GAAA,sBAAA,4BAAkC,QAAQ,IAA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1,6 @@
1
- import { C as IndexerServerTx, _ as IndexerServerOrder, d as IndexerServerMarketSnapshot, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-sQOL10Bi.cjs";
2
- import { Bt as IndexerServerV2Symbol, C as IndexerServerFundingRate, Ht as IndexerServerV2TickerResponse, bt as IndexerServerPortfolioResponse, ut as IndexerServerPerpPrices, w as IndexerServerFundingRateHistoryEntry, zt as IndexerServerV2MarketHours } from "./serverTypes-DrlzA5fi.cjs";
3
- import { Bt as IndexerMaker, Ft as IndexerLeaderboardContest, Gt as IndexerNlpSnapshot, Ht as IndexerMarketSnapshot, Jt as IndexerPerpBalance, Lt as IndexerLeaderboardParticipant, Mt as IndexerEventWithTx, Nt as IndexerFundingRate, Ot as IndexerEvent, Pt as IndexerFundingRateHistoryEntry, Rt as IndexerLeaderboardRegistration, Wt as IndexerMatchEventBalances, Yt as IndexerPerpPrices, an as IndexerSpotBalance, at as GetIndexerPortfolioResponse, cn as IndexerV2Symbol, en as IndexerProductPayment, ln as IndexerV2TickerResponse, qt as IndexerOrder, rn as IndexerSnapshotsIntervalParams, sn as IndexerV2MarketHours, t as Candlestick } from "./clientTypes-sF5is5HA.cjs";
1
+ import { C as IndexerServerTx, _ as IndexerServerOrder, d as IndexerServerMarketSnapshot, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-DC4dsX9i.cjs";
2
+ import { Gt as IndexerServerV2Symbol, O as IndexerServerFundingRate, Tt as IndexerServerPortfolioResponse, Wt as IndexerServerV2MarketHours, ht as IndexerServerPerpPrices, k as IndexerServerFundingRateHistoryEntry, qt as IndexerServerV2TickerResponse } from "./serverTypes-DeUDMCog.cjs";
3
+ import { Bt as IndexerLeaderboardParticipant, Ft as IndexerEventWithTx, Gt as IndexerMarketSnapshot, It as IndexerFundingRate, Jt as IndexerNlpSnapshot, Lt as IndexerFundingRateHistoryEntry, Qt as IndexerPerpPrices, Rt as IndexerLeaderboardContest, Ut as IndexerMaker, Vt as IndexerLeaderboardRegistration, Xt as IndexerOrder, Zt as IndexerPerpBalance, at as GetIndexerPortfolioResponse, cn as IndexerSpotBalance, dn as IndexerV2Symbol, fn as IndexerV2TickerResponse, jt as IndexerEvent, on as IndexerSnapshotsIntervalParams, qt as IndexerMatchEventBalances, rn as IndexerProductPayment, t as Candlestick, un as IndexerV2MarketHours } from "./clientTypes-QBgifUeV.cjs";
4
4
  import { Market } from "@nadohq/shared";
5
5
 
6
6
  //#region src/dataMappers.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.d.cts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;iBAmEgB,kCAAA,CACd,MAAA,EAAQ,8BAAA,GACP,8BAA8B;AAAA,iBAUjB,uBAAA,CAAwB,OAAA,EAAS,oBAAA,GAAuB,MAAM;AAAA,iBAO9D,uBAAA,CACd,OAAA,EAAS,oBAAA,GACR,kBAAA,GAAqB,kBAAA;AAAA,iBAgBR,eAAA,CAAgB,KAAA,EAAO,kBAAA,GAAqB,YAAY;AAAA,iBAgCxD,eAAA,CAAgB,KAAA,EAAO,kBAAA,GAAqB,YAAY;AAAA,iBA+CxD,qBAAA,CACd,KAAA,EAAO,kBAAA,EACP,EAAA,EAAI,eAAA,GACH,kBAAA;AAAA,iBAQa,4BAAA,CACd,aAAA,EAAe,+BAAA,GACd,yBAAyB;AAAA,iBASZ,wBAA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qB,YAAY;AAAA,iBAgDxD,qBAAA,CACd,KAAA,EAAO,kBAAA,EACP,EAAA,EAAI,eAAA,GACH,kBAAA;AAAA,iBAQa,4BAAA,CACd,aAAA,EAAe,+BAAA,GACd,yBAAyB;AAAA,iBASZ,wBAAA,CACd,OAAA,EAAS,2BAAA,GACR,qBAAqB;AAAA,iBAcR,oBAAA,CACd,UAAA,EAAY,uBAAA,GACX,iBAAiB;AAAA,iBASJ,qBAAA,CACd,WAAA,EAAa,wBAAA,GACZ,kBAAkB;AAAA,iBAQL,4BAAA,CACd,KAAA,EAAO,oCAAA,GACN,8BAA8B;AAAA,iBAkBjB,mBAAA,CACd,QAAA,EAAU,8BAAA,GACT,2BAA2B;AAAA,iBAqBd,yBAAA,CACd,KAAA,EAAO,kBAAA,GACN,YAAY;AAAA,iBAiBC,6BAAA,CACd,QAAA,EAAU,gCAAA,GACT,6BAA6B;AAAA,iBAsBhB,iCAAA,CACd,YAAA,EAAc,oCAAA,GACb,8BAA8B;AAAA,iBAQjB,4BAAA,CACd,OAAA,EAAS,+BAAA,GACR,yBAAyB;AAAA,iBAwBZ,sBAAA,CACd,WAAA,EAAa,wBAAA,GACZ,WAAW;AAAA,iBAWE,wBAAA,CACd,QAAA,EAAU,2BAAA,GACT,qBAAqB;AAAA,iBA0CR,qBAAA,CACd,QAAA,EAAU,wBAAA,GACT,kBAAkB;AAAA,iBAeL,kBAAA,CACd,MAAA,EAAQ,6BAAA,GACP,uBAAuB;AAAA,iBAaV,uBAAA,CACd,KAAA,EAAO,0BAAA,GACN,oBAAoB;AAAA,iBASP,mBAAA,CACd,MAAA,EAAQ,qBAAA,GACP,eAAe"}
@@ -1,6 +1,6 @@
1
- import { C as IndexerServerTx, _ as IndexerServerOrder, d as IndexerServerMarketSnapshot, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-BwLIAkc1.js";
2
- import { Bt as IndexerServerV2Symbol, C as IndexerServerFundingRate, Ht as IndexerServerV2TickerResponse, bt as IndexerServerPortfolioResponse, ut as IndexerServerPerpPrices, w as IndexerServerFundingRateHistoryEntry, zt as IndexerServerV2MarketHours } from "./serverTypes-BdNekzFR.js";
3
- import { Bt as IndexerMaker, Ft as IndexerLeaderboardContest, Gt as IndexerNlpSnapshot, Ht as IndexerMarketSnapshot, Jt as IndexerPerpBalance, Lt as IndexerLeaderboardParticipant, Mt as IndexerEventWithTx, Nt as IndexerFundingRate, Ot as IndexerEvent, Pt as IndexerFundingRateHistoryEntry, Rt as IndexerLeaderboardRegistration, Wt as IndexerMatchEventBalances, Yt as IndexerPerpPrices, an as IndexerSpotBalance, at as GetIndexerPortfolioResponse, cn as IndexerV2Symbol, en as IndexerProductPayment, ln as IndexerV2TickerResponse, qt as IndexerOrder, rn as IndexerSnapshotsIntervalParams, sn as IndexerV2MarketHours, t as Candlestick } from "./clientTypes-CuXHS6Jk.js";
1
+ import { C as IndexerServerTx, _ as IndexerServerOrder, d as IndexerServerMarketSnapshot, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-BAZNgoLE.js";
2
+ import { Gt as IndexerServerV2Symbol, O as IndexerServerFundingRate, Tt as IndexerServerPortfolioResponse, Wt as IndexerServerV2MarketHours, ht as IndexerServerPerpPrices, k as IndexerServerFundingRateHistoryEntry, qt as IndexerServerV2TickerResponse } from "./serverTypes-BQafrknp.js";
3
+ import { Bt as IndexerLeaderboardParticipant, Ft as IndexerEventWithTx, Gt as IndexerMarketSnapshot, It as IndexerFundingRate, Jt as IndexerNlpSnapshot, Lt as IndexerFundingRateHistoryEntry, Qt as IndexerPerpPrices, Rt as IndexerLeaderboardContest, Ut as IndexerMaker, Vt as IndexerLeaderboardRegistration, Xt as IndexerOrder, Zt as IndexerPerpBalance, at as GetIndexerPortfolioResponse, cn as IndexerSpotBalance, dn as IndexerV2Symbol, fn as IndexerV2TickerResponse, jt as IndexerEvent, on as IndexerSnapshotsIntervalParams, qt as IndexerMatchEventBalances, rn as IndexerProductPayment, t as Candlestick, un as IndexerV2MarketHours } from "./clientTypes-BLKeWmIr.js";
4
4
  import { Market } from "@nadohq/shared";
5
5
 
6
6
  //#region src/dataMappers.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;iBAmEgB,kCAAA,CACd,MAAA,EAAQ,8BAAA,GACP,8BAA8B;AAAA,iBAUjB,uBAAA,CAAwB,OAAA,EAAS,oBAAA,GAAuB,MAAM;AAAA,iBAO9D,uBAAA,CACd,OAAA,EAAS,oBAAA,GACR,kBAAA,GAAqB,kBAAA;AAAA,iBAgBR,eAAA,CAAgB,KAAA,EAAO,kBAAA,GAAqB,YAAY;AAAA,iBAgCxD,eAAA,CAAgB,KAAA,EAAO,kBAAA,GAAqB,YAAY;AAAA,iBA+CxD,qBAAA,CACd,KAAA,EAAO,kBAAA,EACP,EAAA,EAAI,eAAA,GACH,kBAAA;AAAA,iBAQa,4BAAA,CACd,aAAA,EAAe,+BAAA,GACd,yBAAyB;AAAA,iBASZ,wBAAA,CACd,OAAA,EAAS,2BAAA,GACR,qBAAqB;AAAA,iBAcR,oBAAA,CACd,UAAA,EAAY,uBAAA,GACX,iBAAiB;AAAA,iBASJ,qBAAA,CACd,WAAA,EAAa,wBAAA,GACZ,kBAAkB;AAAA,iBAQL,4BAAA,CACd,KAAA,EAAO,oCAAA,GACN,8B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AAA,iBAcR,oBAAA,CACd,UAAA,EAAY,uBAAA,GACX,iBAAiB;AAAA,iBASJ,qBAAA,CACd,WAAA,EAAa,wBAAA,GACZ,kBAAkB;AAAA,iBAQL,4BAAA,CACd,KAAA,EAAO,oCAAA,GACN,8BAA8B;AAAA,iBAkBjB,mBAAA,CACd,QAAA,EAAU,8BAAA,GACT,2BAA2B;AAAA,iBAqBd,yBAAA,CACd,KAAA,EAAO,kBAAA,GACN,YAAY;AAAA,iBAiBC,6BAAA,CACd,QAAA,EAAU,gCAAA,GACT,6BAA6B;AAAA,iBAsBhB,iCAAA,CACd,YAAA,EAAc,oCAAA,GACb,8BAA8B;AAAA,iBAQjB,4BAAA,CACd,OAAA,EAAS,+BAAA,GACR,yBAAyB;AAAA,iBAwBZ,sBAAA,CACd,WAAA,EAAa,wBAAA,GACZ,WAAW;AAAA,iBAWE,wBAAA,CACd,QAAA,EAAU,2BAAA,GACT,qBAAqB;AAAA,iBA0CR,qBAAA,CACd,QAAA,EAAU,wBAAA,GACT,kBAAkB;AAAA,iBAeL,kBAAA,CACd,MAAA,EAAQ,6BAAA,GACP,uBAAuB;AAAA,iBAaV,uBAAA,CACd,KAAA,EAAO,0BAAA,GACN,oBAAoB;AAAA,iBASP,mBAAA,CACd,MAAA,EAAQ,qBAAA,GACP,eAAe"}
@@ -84,7 +84,8 @@ function mapIndexerEvent(event) {
84
84
  netFundingUnrealized: toBigNumber(event.net_funding_unrealized),
85
85
  netInterestCumulative: toBigNumber(event.net_interest_cumulative),
86
86
  netInterestUnrealized: toBigNumber(event.net_interest_unrealized),
87
- quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative)
87
+ quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative),
88
+ cumulativeTradeCount: toBigNumber(event.cumulative_trade_count)
88
89
  }
89
90
  };
90
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.js","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n mapEngineServerPerpProduct,\n mapEngineServerSpotProduct,\n} from '@nadohq/engine-client';\nimport {\n getRecvTimeFromOrderNonce,\n mapValues,\n Market,\n PerpMarket,\n ProductEngineType,\n removeDecimals,\n SpotMarket,\n subaccountFromHex,\n toBigNumber,\n toIntegerString,\n unpackOrderAppendix,\n} from '@nadohq/shared';\nimport {\n Candlestick,\n GetIndexerPortfolioResponse,\n IndexerEvent,\n IndexerEventWithTx,\n IndexerFundingRate,\n IndexerFundingRateHistoryEntry,\n IndexerLeaderboardContest,\n IndexerLeaderboardParticipant,\n IndexerLeaderboardRegistration,\n IndexerMaker,\n IndexerMarketSnapshot,\n IndexerMatchEventBalances,\n IndexerNlpSnapshot,\n IndexerOrder,\n IndexerPerpBalance,\n IndexerPerpPrices,\n IndexerPortfolioPoint,\n IndexerProductPayment,\n IndexerServerBalance,\n IndexerServerCandlestick,\n IndexerServerEvent,\n IndexerServerFundingRate,\n IndexerServerFundingRateHistoryEntry,\n IndexerServerLeaderboardContest,\n IndexerServerLeaderboardPosition,\n IndexerServerLeaderboardRegistration,\n IndexerServerMaker,\n IndexerServerMarketSnapshot,\n IndexerServerMatchEventBalances,\n IndexerServerNlpSnapshot,\n IndexerServerOrder,\n IndexerServerPerpPrices,\n IndexerServerPortfolioPoint,\n IndexerServerPortfolioResponse,\n IndexerServerProduct,\n IndexerServerProductPayment,\n IndexerServerSnapshotsInterval,\n IndexerServerTx,\n IndexerServerV2MarketHours,\n IndexerServerV2Symbol,\n IndexerServerV2TickerResponse,\n IndexerSnapshotsIntervalParams,\n IndexerSpotBalance,\n IndexerV2MarketHours,\n IndexerV2Symbol,\n IndexerV2TickerResponse,\n IndexerV2TradingStatus,\n} from './types';\n\nexport function mapSnapshotsIntervalToServerParams(\n params: IndexerSnapshotsIntervalParams,\n): IndexerServerSnapshotsInterval {\n return {\n count: params.limit,\n max_time: params.maxTimeInclusive\n ? toIntegerString(params.maxTimeInclusive)\n : undefined,\n granularity: params.granularity,\n };\n}\n\nexport function mapIndexerServerProduct(product: IndexerServerProduct): Market {\n if ('spot' in product) {\n return mapEngineServerSpotProduct(product.spot);\n }\n return mapEngineServerPerpProduct(product.perp);\n}\n\nexport function mapIndexerServerBalance(\n balance: IndexerServerBalance,\n): IndexerSpotBalance | IndexerPerpBalance {\n if ('spot' in balance) {\n return {\n amount: toBigNumber(balance.spot.balance.amount),\n productId: balance.spot.product_id,\n type: ProductEngineType.SPOT,\n };\n }\n return {\n amount: toBigNumber(balance.perp.balance.amount),\n productId: balance.perp.product_id,\n type: ProductEngineType.PERP,\n vQuoteBalance: toBigNumber(balance.perp.balance.v_quote_balance),\n };\n}\n\nexport function mapIndexerOrder(order: IndexerServerOrder): IndexerOrder {\n const appendix = unpackOrderAppendix(order.appendix);\n return {\n amount: toBigNumber(order.amount),\n digest: order.digest,\n expiration: Number(order.expiration),\n appendix,\n nonce: toBigNumber(order.nonce),\n isolated: order.isolated,\n recvTimeSeconds: getRecvTimeFromOrderNonce(order.nonce) / 1000,\n price: removeDecimals(order.price_x18),\n productId: order.product_id,\n subaccount: order.subaccount,\n submissionIndex: order.submission_idx,\n lastFillSubmissionIndex: order.last_fill_submission_idx,\n baseFilled: toBigNumber(order.base_filled),\n quoteFilled: toBigNumber(order.quote_filled),\n totalFee: toBigNumber(order.fee),\n builderFee: toBigNumber(order.builder_fee),\n realizedPnl: toBigNumber(order.realized_pnl),\n closedAmount: toBigNumber(order.closed_amount),\n closedNetEntry: toBigNumber(order.closed_net_entry),\n preCloseMargin: order.closed_margin\n ? toBigNumber(order.closed_margin)\n : null,\n firstFillTimestamp: toBigNumber(order.first_fill_timestamp),\n lastFillTimestamp: toBigNumber(order.last_fill_timestamp),\n preBalances: mapIndexerMatchEventBalances(order.pre_balance),\n postBalances: mapIndexerMatchEventBalances(order.post_balance),\n };\n}\n\nexport function mapIndexerEvent(event: IndexerServerEvent): IndexerEvent {\n const eventState: IndexerEvent['state'] = (() => {\n // Assume backend data is consistent\n if ('spot' in event.pre_balance) {\n return {\n type: ProductEngineType.SPOT,\n market: mapIndexerServerProduct(event.product) as SpotMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerSpotBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerSpotBalance,\n };\n }\n return {\n type: ProductEngineType.PERP,\n market: mapIndexerServerProduct(event.product) as PerpMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerPerpBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerPerpBalance,\n };\n })();\n\n return {\n eventType: event.event_type,\n productId: event.product_id,\n isolated: event.isolated,\n isolatedProductId: event.isolated_product_id,\n state: eventState,\n subaccount: event.subaccount,\n submissionIndex: event.submission_idx,\n trackedVars: {\n netEntryCumulative: toBigNumber(event.net_entry_cumulative),\n netEntryUnrealized: toBigNumber(event.net_entry_unrealized),\n netFundingCumulative: toBigNumber(event.net_funding_cumulative),\n netFundingUnrealized: toBigNumber(event.net_funding_unrealized),\n netInterestCumulative: toBigNumber(event.net_interest_cumulative),\n netInterestUnrealized: toBigNumber(event.net_interest_unrealized),\n quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative),\n },\n };\n}\n\nexport function mapIndexerEventWithTx(\n event: IndexerServerEvent,\n tx: IndexerServerTx,\n): IndexerEventWithTx {\n return {\n timestamp: toBigNumber(tx.timestamp),\n tx: tx.tx,\n ...mapIndexerEvent(event),\n };\n}\n\nexport function mapIndexerMatchEventBalances(\n eventBalances: IndexerServerMatchEventBalances,\n): IndexerMatchEventBalances {\n return {\n base: mapIndexerServerBalance(eventBalances.base),\n quote: eventBalances.quote\n ? (mapIndexerServerBalance(eventBalances.quote) as IndexerSpotBalance)\n : undefined,\n };\n}\n\nexport function mapIndexerProductPayment(\n payment: IndexerServerProductPayment,\n): IndexerProductPayment {\n return {\n submissionIndex: payment.idx,\n timestamp: toBigNumber(payment.timestamp),\n paymentAmount: toBigNumber(payment.amount),\n balanceAmount: toBigNumber(payment.balance_amount),\n annualPaymentRate: removeDecimals(payment.rate_x18),\n oraclePrice: removeDecimals(payment.oracle_price_x18),\n isolated: payment.isolated,\n productId: payment.product_id,\n isolatedProductId: payment.isolated_product_id,\n };\n}\n\nexport function mapIndexerPerpPrices(\n perpPrices: IndexerServerPerpPrices,\n): IndexerPerpPrices {\n return {\n indexPrice: removeDecimals(perpPrices.index_price_x18),\n markPrice: removeDecimals(perpPrices.mark_price_x18),\n updateTime: toBigNumber(perpPrices.update_time),\n productId: perpPrices.product_id,\n };\n}\n\nexport function mapIndexerFundingRate(\n fundingRate: IndexerServerFundingRate,\n): IndexerFundingRate {\n return {\n fundingRate: removeDecimals(fundingRate.funding_rate_x18),\n updateTime: toBigNumber(fundingRate.update_time),\n productId: fundingRate.product_id,\n };\n}\n\nexport function mapIndexerFundingRateHistory(\n entry: IndexerServerFundingRateHistoryEntry,\n): IndexerFundingRateHistoryEntry {\n return {\n productId: entry.product_id,\n timestamp: toBigNumber(entry.timestamp),\n fundingRateFrac: removeDecimals(entry.funding_rate_x18),\n };\n}\n\nfunction mapIndexerPortfolioPoint([\n timestamp,\n value,\n]: IndexerServerPortfolioPoint): IndexerPortfolioPoint {\n return {\n timestamp: toBigNumber(timestamp),\n value: toBigNumber(value),\n };\n}\n\nexport function mapIndexerPortfolio(\n response: IndexerServerPortfolioResponse,\n): GetIndexerPortfolioResponse {\n return Object.fromEntries(\n response.map(([period, history]) => [\n period,\n {\n accountValueHistory: history.accountValueHistory.map(\n mapIndexerPortfolioPoint,\n ),\n pnlHistory: history.pnlHistory.map(mapIndexerPortfolioPoint),\n volumeHistory: history.volumeHistory.map(mapIndexerPortfolioPoint),\n tradeSizeHistory: history.tradeSizeHistory.map(\n mapIndexerPortfolioPoint,\n ),\n marketCountHistory: history.marketCountHistory.map(\n mapIndexerPortfolioPoint,\n ),\n },\n ]),\n ) as GetIndexerPortfolioResponse;\n}\n\nexport function mapIndexerMakerStatistics(\n maker: IndexerServerMaker,\n): IndexerMaker {\n return {\n address: maker.address,\n snapshots: maker.data.map((makerData) => {\n return {\n timestamp: toBigNumber(makerData.timestamp),\n makerFee: toBigNumber(makerData.maker_fee),\n uptime: toBigNumber(makerData.uptime),\n sumQMin: toBigNumber(makerData.sum_q_min),\n qScore: toBigNumber(makerData.q_score),\n makerShare: toBigNumber(makerData.maker_share),\n expectedMakerReward: toBigNumber(makerData.expected_maker_reward),\n };\n }),\n };\n}\n\nexport function mapIndexerLeaderboardPosition(\n position: IndexerServerLeaderboardPosition,\n): IndexerLeaderboardParticipant {\n const tracks = mapValues(position.tracks, (trackData) => ({\n value: toBigNumber(trackData.value),\n rank: toBigNumber(trackData.rank),\n qualificationStatus: trackData.qualification_status,\n }));\n\n return {\n subaccount: subaccountFromHex(position.subaccount),\n contestId: position.contest_id,\n accountValue: toBigNumber(position.account_value),\n updateTime: toBigNumber(position.update_time),\n tracks,\n socialAccounts: position.social_accounts.map((account) => ({\n provider: account.provider,\n username: account.username,\n displayName: account.display_name,\n profileImageUrl: account.profile_image_url,\n })),\n };\n}\n\nexport function mapIndexerLeaderboardRegistration(\n registration: IndexerServerLeaderboardRegistration,\n): IndexerLeaderboardRegistration {\n return {\n subaccount: subaccountFromHex(registration.subaccount),\n contestId: registration.contest_id,\n updateTime: toBigNumber(registration.update_time),\n };\n}\n\nexport function mapIndexerLeaderboardContest(\n contest: IndexerServerLeaderboardContest,\n): IndexerLeaderboardContest {\n const startTime = toBigNumber(contest.start_time);\n const endTime = toBigNumber(contest.end_time);\n\n return {\n contestId: contest.contest_id,\n startTime,\n endTime,\n totalParticipants: toBigNumber(contest.count),\n requiredProductIds: contest.product_ids,\n active: contest.active,\n lastUpdated: toBigNumber(contest.last_updated),\n title: contest.title,\n description: contest.description,\n tracks: contest.tracks.map((track) => ({\n trackId: track.track_id,\n rankType: track.rank_type,\n sortOrder: track.sort_order,\n accountValueThreshold: toBigNumber(track.threshold),\n volumeThreshold: toBigNumber(track.volume_threshold),\n })),\n };\n}\n\nexport function mapIndexerCandlesticks(\n candlestick: IndexerServerCandlestick,\n): Candlestick {\n return {\n close: removeDecimals(candlestick.close_x18),\n high: removeDecimals(candlestick.high_x18),\n low: removeDecimals(candlestick.low_x18),\n open: removeDecimals(candlestick.open_x18),\n time: toBigNumber(candlestick.timestamp),\n volume: toBigNumber(candlestick.volume),\n };\n}\n\nexport function mapIndexerMarketSnapshot(\n snapshot: IndexerServerMarketSnapshot,\n): IndexerMarketSnapshot {\n return {\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeUsers: toBigNumber(snapshot.cumulative_users),\n dailyActiveUsers: toBigNumber(snapshot.daily_active_users),\n tvl: toBigNumber(snapshot.tvl),\n borrowRates: mapValues(snapshot.borrow_rates, (value) =>\n removeDecimals(value),\n ),\n cumulativeLiquidationAmounts: mapValues(\n snapshot.cumulative_liquidation_amounts,\n toBigNumber,\n ),\n cumulativeMakerFees: mapValues(snapshot.cumulative_maker_fees, toBigNumber),\n cumulativeSequencerFees: mapValues(\n snapshot.cumulative_sequencer_fees,\n toBigNumber,\n ),\n cumulativeTakerFees: mapValues(snapshot.cumulative_taker_fees, toBigNumber),\n cumulativeTrades: mapValues(snapshot.cumulative_trades, toBigNumber),\n cumulativeVolumes: mapValues(snapshot.cumulative_volumes, toBigNumber),\n depositRates: mapValues(snapshot.deposit_rates, (value) =>\n removeDecimals(value),\n ),\n fundingRates: mapValues(snapshot.funding_rates, (value) =>\n removeDecimals(value),\n ),\n openInterestsQuote: mapValues(snapshot.open_interests, toBigNumber),\n totalBorrows: mapValues(snapshot.total_borrows, toBigNumber),\n totalDeposits: mapValues(snapshot.total_deposits, toBigNumber),\n cumulativeTradeSizes: mapValues(\n snapshot.cumulative_trade_sizes,\n toBigNumber,\n ),\n cumulativeInflows: mapValues(snapshot.cumulative_inflows, toBigNumber),\n cumulativeOutflows: mapValues(snapshot.cumulative_outflows, toBigNumber),\n oraclePrices: mapValues(snapshot.oracle_prices, (value) =>\n removeDecimals(value),\n ),\n };\n}\n\nexport function mapIndexerNlpSnapshot(\n snapshot: IndexerServerNlpSnapshot,\n): IndexerNlpSnapshot {\n return {\n submissionIndex: snapshot.submission_idx,\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeBurnAmountQuote: toBigNumber(snapshot.cumulative_burn_quote),\n cumulativeMintAmountQuote: toBigNumber(snapshot.cumulative_mint_quote),\n cumulativePnl: toBigNumber(snapshot.cumulative_pnl),\n cumulativeTrades: toBigNumber(snapshot.cumulative_trades),\n cumulativeVolume: toBigNumber(snapshot.cumulative_volume),\n depositors: toBigNumber(snapshot.depositors),\n oraclePrice: removeDecimals(snapshot.oracle_price_x18),\n tvl: toBigNumber(snapshot.tvl),\n };\n}\n\nexport function mapIndexerV2Ticker(\n ticker: IndexerServerV2TickerResponse,\n): IndexerV2TickerResponse {\n return {\n productId: ticker.product_id,\n tickerId: ticker.ticker_id,\n baseCurrency: ticker.base_currency,\n quoteCurrency: ticker.quote_currency,\n lastPrice: ticker.last_price,\n baseVolume: ticker.base_volume,\n quoteVolume: ticker.quote_volume,\n priceChangePercent24h: ticker.price_change_percent_24h,\n };\n}\n\nexport function mapIndexerV2MarketHours(\n hours: IndexerServerV2MarketHours,\n): IndexerV2MarketHours {\n return {\n isOpen: hours.is_open,\n reason: hours.reason,\n nextClose: hours.next_close,\n nextOpen: hours.next_open,\n };\n}\n\nexport function mapIndexerV2Symbols(\n symbol: IndexerServerV2Symbol,\n): IndexerV2Symbol {\n return {\n type: symbol.type,\n productId: symbol.product_id,\n symbol: symbol.symbol,\n priceIncrement: removeDecimals(symbol.price_increment_x18),\n sizeIncrement: symbol.size_increment,\n minSize: symbol.min_size,\n makerFeeRate: removeDecimals(symbol.maker_fee_rate_x18),\n takerFeeRate: removeDecimals(symbol.taker_fee_rate_x18),\n longWeightInitial: removeDecimals(symbol.long_weight_initial_x18),\n longWeightMaintenance: removeDecimals(symbol.long_weight_maintenance_x18),\n maxOpenInterest: symbol.max_open_interest_x18\n ? removeDecimals(symbol.max_open_interest_x18)\n : null,\n exchangeRate: symbol.exchange_rate_x18\n ? removeDecimals(symbol.exchange_rate_x18)\n : null,\n tradingStatus: symbol.trading_status as IndexerV2TradingStatus,\n isolatedOnly: symbol.isolated_only,\n marketHours: symbol.market_hours\n ? mapIndexerV2MarketHours(symbol.market_hours)\n : null,\n boostType: symbol.boost_type ?? null,\n takerMultiplier: symbol.taker_multiplier ?? null,\n makerMultiplier: symbol.maker_multiplier ?? null,\n };\n}\n"],"mappings":";;;AAmEA,SAAgB,mCACd,QACgC;CAChC,OAAO;EACL,OAAO,OAAO;EACd,UAAU,OAAO,mBACb,gBAAgB,OAAO,gBAAgB,IACvC,KAAA;EACJ,aAAa,OAAO;CACtB;AACF;AAEA,SAAgB,wBAAwB,SAAuC;CAC7E,IAAI,UAAU,SACZ,OAAO,2BAA2B,QAAQ,IAAI;CAEhD,OAAO,2BAA2B,QAAQ,IAAI;AAChD;AAEA,SAAgB,wBACd,SACyC;CACzC,IAAI,UAAU,SACZ,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;CAC1B;CAEF,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;EACxB,eAAe,YAAY,QAAQ,KAAK,QAAQ,eAAe;CACjE;AACF;AAEA,SAAgB,gBAAgB,OAAyC;CACvE,MAAM,WAAW,oBAAoB,MAAM,QAAQ;CACnD,OAAO;EACL,QAAQ,YAAY,MAAM,MAAM;EAChC,QAAQ,MAAM;EACd,YAAY,OAAO,MAAM,UAAU;EACnC;EACA,OAAO,YAAY,MAAM,KAAK;EAC9B,UAAU,MAAM;EAChB,iBAAiB,0BAA0B,MAAM,KAAK,IAAI;EAC1D,OAAO,eAAe,MAAM,SAAS;EACrC,WAAW,MAAM;EACjB,YAAY,MAAM;EAClB,iBAAiB,MAAM;EACvB,yBAAyB,MAAM;EAC/B,YAAY,YAAY,MA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ACrB,aAAa,OAAO,eAChB,wBAAwB,OAAO,YAAY,IAC3C;EACJ,WAAW,OAAO,cAAc;EAChC,iBAAiB,OAAO,oBAAoB;EAC5C,iBAAiB,OAAO,oBAAoB;CAC9C;AACF"}
1
+ {"version":3,"file":"dataMappers.js","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n mapEngineServerPerpProduct,\n mapEngineServerSpotProduct,\n} from '@nadohq/engine-client';\nimport {\n getRecvTimeFromOrderNonce,\n mapValues,\n Market,\n PerpMarket,\n ProductEngineType,\n removeDecimals,\n SpotMarket,\n subaccountFromHex,\n toBigNumber,\n toIntegerString,\n unpackOrderAppendix,\n} from '@nadohq/shared';\nimport {\n Candlestick,\n GetIndexerPortfolioResponse,\n IndexerEvent,\n IndexerEventWithTx,\n IndexerFundingRate,\n IndexerFundingRateHistoryEntry,\n IndexerLeaderboardContest,\n IndexerLeaderboardParticipant,\n IndexerLeaderboardRegistration,\n IndexerMaker,\n IndexerMarketSnapshot,\n IndexerMatchEventBalances,\n IndexerNlpSnapshot,\n IndexerOrder,\n IndexerPerpBalance,\n IndexerPerpPrices,\n IndexerPortfolioPoint,\n IndexerProductPayment,\n IndexerServerBalance,\n IndexerServerCandlestick,\n IndexerServerEvent,\n IndexerServerFundingRate,\n IndexerServerFundingRateHistoryEntry,\n IndexerServerLeaderboardContest,\n IndexerServerLeaderboardPosition,\n IndexerServerLeaderboardRegistration,\n IndexerServerMaker,\n IndexerServerMarketSnapshot,\n IndexerServerMatchEventBalances,\n IndexerServerNlpSnapshot,\n IndexerServerOrder,\n IndexerServerPerpPrices,\n IndexerServerPortfolioPoint,\n IndexerServerPortfolioResponse,\n IndexerServerProduct,\n IndexerServerProductPayment,\n IndexerServerSnapshotsInterval,\n IndexerServerTx,\n IndexerServerV2MarketHours,\n IndexerServerV2Symbol,\n IndexerServerV2TickerResponse,\n IndexerSnapshotsIntervalParams,\n IndexerSpotBalance,\n IndexerV2MarketHours,\n IndexerV2Symbol,\n IndexerV2TickerResponse,\n IndexerV2TradingStatus,\n} from './types';\n\nexport function mapSnapshotsIntervalToServerParams(\n params: IndexerSnapshotsIntervalParams,\n): IndexerServerSnapshotsInterval {\n return {\n count: params.limit,\n max_time: params.maxTimeInclusive\n ? toIntegerString(params.maxTimeInclusive)\n : undefined,\n granularity: params.granularity,\n };\n}\n\nexport function mapIndexerServerProduct(product: IndexerServerProduct): Market {\n if ('spot' in product) {\n return mapEngineServerSpotProduct(product.spot);\n }\n return mapEngineServerPerpProduct(product.perp);\n}\n\nexport function mapIndexerServerBalance(\n balance: IndexerServerBalance,\n): IndexerSpotBalance | IndexerPerpBalance {\n if ('spot' in balance) {\n return {\n amount: toBigNumber(balance.spot.balance.amount),\n productId: balance.spot.product_id,\n type: ProductEngineType.SPOT,\n };\n }\n return {\n amount: toBigNumber(balance.perp.balance.amount),\n productId: balance.perp.product_id,\n type: ProductEngineType.PERP,\n vQuoteBalance: toBigNumber(balance.perp.balance.v_quote_balance),\n };\n}\n\nexport function mapIndexerOrder(order: IndexerServerOrder): IndexerOrder {\n const appendix = unpackOrderAppendix(order.appendix);\n return {\n amount: toBigNumber(order.amount),\n digest: order.digest,\n expiration: Number(order.expiration),\n appendix,\n nonce: toBigNumber(order.nonce),\n isolated: order.isolated,\n recvTimeSeconds: getRecvTimeFromOrderNonce(order.nonce) / 1000,\n price: removeDecimals(order.price_x18),\n productId: order.product_id,\n subaccount: order.subaccount,\n submissionIndex: order.submission_idx,\n lastFillSubmissionIndex: order.last_fill_submission_idx,\n baseFilled: toBigNumber(order.base_filled),\n quoteFilled: toBigNumber(order.quote_filled),\n totalFee: toBigNumber(order.fee),\n builderFee: toBigNumber(order.builder_fee),\n realizedPnl: toBigNumber(order.realized_pnl),\n closedAmount: toBigNumber(order.closed_amount),\n closedNetEntry: toBigNumber(order.closed_net_entry),\n preCloseMargin: order.closed_margin\n ? toBigNumber(order.closed_margin)\n : null,\n firstFillTimestamp: toBigNumber(order.first_fill_timestamp),\n lastFillTimestamp: toBigNumber(order.last_fill_timestamp),\n preBalances: mapIndexerMatchEventBalances(order.pre_balance),\n postBalances: mapIndexerMatchEventBalances(order.post_balance),\n };\n}\n\nexport function mapIndexerEvent(event: IndexerServerEvent): IndexerEvent {\n const eventState: IndexerEvent['state'] = (() => {\n // Assume backend data is consistent\n if ('spot' in event.pre_balance) {\n return {\n type: ProductEngineType.SPOT,\n market: mapIndexerServerProduct(event.product) as SpotMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerSpotBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerSpotBalance,\n };\n }\n return {\n type: ProductEngineType.PERP,\n market: mapIndexerServerProduct(event.product) as PerpMarket,\n preBalance: mapIndexerServerBalance(\n event.pre_balance,\n ) as IndexerPerpBalance,\n postBalance: mapIndexerServerBalance(\n event.post_balance,\n ) as IndexerPerpBalance,\n };\n })();\n\n return {\n eventType: event.event_type,\n productId: event.product_id,\n isolated: event.isolated,\n isolatedProductId: event.isolated_product_id,\n state: eventState,\n subaccount: event.subaccount,\n submissionIndex: event.submission_idx,\n trackedVars: {\n netEntryCumulative: toBigNumber(event.net_entry_cumulative),\n netEntryUnrealized: toBigNumber(event.net_entry_unrealized),\n netFundingCumulative: toBigNumber(event.net_funding_cumulative),\n netFundingUnrealized: toBigNumber(event.net_funding_unrealized),\n netInterestCumulative: toBigNumber(event.net_interest_cumulative),\n netInterestUnrealized: toBigNumber(event.net_interest_unrealized),\n quoteVolumeCumulative: toBigNumber(event.quote_volume_cumulative),\n cumulativeTradeCount: toBigNumber(event.cumulative_trade_count),\n },\n };\n}\n\nexport function mapIndexerEventWithTx(\n event: IndexerServerEvent,\n tx: IndexerServerTx,\n): IndexerEventWithTx {\n return {\n timestamp: toBigNumber(tx.timestamp),\n tx: tx.tx,\n ...mapIndexerEvent(event),\n };\n}\n\nexport function mapIndexerMatchEventBalances(\n eventBalances: IndexerServerMatchEventBalances,\n): IndexerMatchEventBalances {\n return {\n base: mapIndexerServerBalance(eventBalances.base),\n quote: eventBalances.quote\n ? (mapIndexerServerBalance(eventBalances.quote) as IndexerSpotBalance)\n : undefined,\n };\n}\n\nexport function mapIndexerProductPayment(\n payment: IndexerServerProductPayment,\n): IndexerProductPayment {\n return {\n submissionIndex: payment.idx,\n timestamp: toBigNumber(payment.timestamp),\n paymentAmount: toBigNumber(payment.amount),\n balanceAmount: toBigNumber(payment.balance_amount),\n annualPaymentRate: removeDecimals(payment.rate_x18),\n oraclePrice: removeDecimals(payment.oracle_price_x18),\n isolated: payment.isolated,\n productId: payment.product_id,\n isolatedProductId: payment.isolated_product_id,\n };\n}\n\nexport function mapIndexerPerpPrices(\n perpPrices: IndexerServerPerpPrices,\n): IndexerPerpPrices {\n return {\n indexPrice: removeDecimals(perpPrices.index_price_x18),\n markPrice: removeDecimals(perpPrices.mark_price_x18),\n updateTime: toBigNumber(perpPrices.update_time),\n productId: perpPrices.product_id,\n };\n}\n\nexport function mapIndexerFundingRate(\n fundingRate: IndexerServerFundingRate,\n): IndexerFundingRate {\n return {\n fundingRate: removeDecimals(fundingRate.funding_rate_x18),\n updateTime: toBigNumber(fundingRate.update_time),\n productId: fundingRate.product_id,\n };\n}\n\nexport function mapIndexerFundingRateHistory(\n entry: IndexerServerFundingRateHistoryEntry,\n): IndexerFundingRateHistoryEntry {\n return {\n productId: entry.product_id,\n timestamp: toBigNumber(entry.timestamp),\n fundingRateFrac: removeDecimals(entry.funding_rate_x18),\n };\n}\n\nfunction mapIndexerPortfolioPoint([\n timestamp,\n value,\n]: IndexerServerPortfolioPoint): IndexerPortfolioPoint {\n return {\n timestamp: toBigNumber(timestamp),\n value: toBigNumber(value),\n };\n}\n\nexport function mapIndexerPortfolio(\n response: IndexerServerPortfolioResponse,\n): GetIndexerPortfolioResponse {\n return Object.fromEntries(\n response.map(([period, history]) => [\n period,\n {\n accountValueHistory: history.accountValueHistory.map(\n mapIndexerPortfolioPoint,\n ),\n pnlHistory: history.pnlHistory.map(mapIndexerPortfolioPoint),\n volumeHistory: history.volumeHistory.map(mapIndexerPortfolioPoint),\n tradeSizeHistory: history.tradeSizeHistory.map(\n mapIndexerPortfolioPoint,\n ),\n marketCountHistory: history.marketCountHistory.map(\n mapIndexerPortfolioPoint,\n ),\n },\n ]),\n ) as GetIndexerPortfolioResponse;\n}\n\nexport function mapIndexerMakerStatistics(\n maker: IndexerServerMaker,\n): IndexerMaker {\n return {\n address: maker.address,\n snapshots: maker.data.map((makerData) => {\n return {\n timestamp: toBigNumber(makerData.timestamp),\n makerFee: toBigNumber(makerData.maker_fee),\n uptime: toBigNumber(makerData.uptime),\n sumQMin: toBigNumber(makerData.sum_q_min),\n qScore: toBigNumber(makerData.q_score),\n makerShare: toBigNumber(makerData.maker_share),\n expectedMakerReward: toBigNumber(makerData.expected_maker_reward),\n };\n }),\n };\n}\n\nexport function mapIndexerLeaderboardPosition(\n position: IndexerServerLeaderboardPosition,\n): IndexerLeaderboardParticipant {\n const tracks = mapValues(position.tracks, (trackData) => ({\n value: toBigNumber(trackData.value),\n rank: toBigNumber(trackData.rank),\n qualificationStatus: trackData.qualification_status,\n }));\n\n return {\n subaccount: subaccountFromHex(position.subaccount),\n contestId: position.contest_id,\n accountValue: toBigNumber(position.account_value),\n updateTime: toBigNumber(position.update_time),\n tracks,\n socialAccounts: position.social_accounts.map((account) => ({\n provider: account.provider,\n username: account.username,\n displayName: account.display_name,\n profileImageUrl: account.profile_image_url,\n })),\n };\n}\n\nexport function mapIndexerLeaderboardRegistration(\n registration: IndexerServerLeaderboardRegistration,\n): IndexerLeaderboardRegistration {\n return {\n subaccount: subaccountFromHex(registration.subaccount),\n contestId: registration.contest_id,\n updateTime: toBigNumber(registration.update_time),\n };\n}\n\nexport function mapIndexerLeaderboardContest(\n contest: IndexerServerLeaderboardContest,\n): IndexerLeaderboardContest {\n const startTime = toBigNumber(contest.start_time);\n const endTime = toBigNumber(contest.end_time);\n\n return {\n contestId: contest.contest_id,\n startTime,\n endTime,\n totalParticipants: toBigNumber(contest.count),\n requiredProductIds: contest.product_ids,\n active: contest.active,\n lastUpdated: toBigNumber(contest.last_updated),\n title: contest.title,\n description: contest.description,\n tracks: contest.tracks.map((track) => ({\n trackId: track.track_id,\n rankType: track.rank_type,\n sortOrder: track.sort_order,\n accountValueThreshold: toBigNumber(track.threshold),\n volumeThreshold: toBigNumber(track.volume_threshold),\n })),\n };\n}\n\nexport function mapIndexerCandlesticks(\n candlestick: IndexerServerCandlestick,\n): Candlestick {\n return {\n close: removeDecimals(candlestick.close_x18),\n high: removeDecimals(candlestick.high_x18),\n low: removeDecimals(candlestick.low_x18),\n open: removeDecimals(candlestick.open_x18),\n time: toBigNumber(candlestick.timestamp),\n volume: toBigNumber(candlestick.volume),\n };\n}\n\nexport function mapIndexerMarketSnapshot(\n snapshot: IndexerServerMarketSnapshot,\n): IndexerMarketSnapshot {\n return {\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeUsers: toBigNumber(snapshot.cumulative_users),\n dailyActiveUsers: toBigNumber(snapshot.daily_active_users),\n tvl: toBigNumber(snapshot.tvl),\n borrowRates: mapValues(snapshot.borrow_rates, (value) =>\n removeDecimals(value),\n ),\n cumulativeLiquidationAmounts: mapValues(\n snapshot.cumulative_liquidation_amounts,\n toBigNumber,\n ),\n cumulativeMakerFees: mapValues(snapshot.cumulative_maker_fees, toBigNumber),\n cumulativeSequencerFees: mapValues(\n snapshot.cumulative_sequencer_fees,\n toBigNumber,\n ),\n cumulativeTakerFees: mapValues(snapshot.cumulative_taker_fees, toBigNumber),\n cumulativeTrades: mapValues(snapshot.cumulative_trades, toBigNumber),\n cumulativeVolumes: mapValues(snapshot.cumulative_volumes, toBigNumber),\n depositRates: mapValues(snapshot.deposit_rates, (value) =>\n removeDecimals(value),\n ),\n fundingRates: mapValues(snapshot.funding_rates, (value) =>\n removeDecimals(value),\n ),\n openInterestsQuote: mapValues(snapshot.open_interests, toBigNumber),\n totalBorrows: mapValues(snapshot.total_borrows, toBigNumber),\n totalDeposits: mapValues(snapshot.total_deposits, toBigNumber),\n cumulativeTradeSizes: mapValues(\n snapshot.cumulative_trade_sizes,\n toBigNumber,\n ),\n cumulativeInflows: mapValues(snapshot.cumulative_inflows, toBigNumber),\n cumulativeOutflows: mapValues(snapshot.cumulative_outflows, toBigNumber),\n oraclePrices: mapValues(snapshot.oracle_prices, (value) =>\n removeDecimals(value),\n ),\n };\n}\n\nexport function mapIndexerNlpSnapshot(\n snapshot: IndexerServerNlpSnapshot,\n): IndexerNlpSnapshot {\n return {\n submissionIndex: snapshot.submission_idx,\n timestamp: toBigNumber(snapshot.timestamp),\n cumulativeBurnAmountQuote: toBigNumber(snapshot.cumulative_burn_quote),\n cumulativeMintAmountQuote: toBigNumber(snapshot.cumulative_mint_quote),\n cumulativePnl: toBigNumber(snapshot.cumulative_pnl),\n cumulativeTrades: toBigNumber(snapshot.cumulative_trades),\n cumulativeVolume: toBigNumber(snapshot.cumulative_volume),\n depositors: toBigNumber(snapshot.depositors),\n oraclePrice: removeDecimals(snapshot.oracle_price_x18),\n tvl: toBigNumber(snapshot.tvl),\n };\n}\n\nexport function mapIndexerV2Ticker(\n ticker: IndexerServerV2TickerResponse,\n): IndexerV2TickerResponse {\n return {\n productId: ticker.product_id,\n tickerId: ticker.ticker_id,\n baseCurrency: ticker.base_currency,\n quoteCurrency: ticker.quote_currency,\n lastPrice: ticker.last_price,\n baseVolume: ticker.base_volume,\n quoteVolume: ticker.quote_volume,\n priceChangePercent24h: ticker.price_change_percent_24h,\n };\n}\n\nexport function mapIndexerV2MarketHours(\n hours: IndexerServerV2MarketHours,\n): IndexerV2MarketHours {\n return {\n isOpen: hours.is_open,\n reason: hours.reason,\n nextClose: hours.next_close,\n nextOpen: hours.next_open,\n };\n}\n\nexport function mapIndexerV2Symbols(\n symbol: IndexerServerV2Symbol,\n): IndexerV2Symbol {\n return {\n type: symbol.type,\n productId: symbol.product_id,\n symbol: symbol.symbol,\n priceIncrement: removeDecimals(symbol.price_increment_x18),\n sizeIncrement: symbol.size_increment,\n minSize: symbol.min_size,\n makerFeeRate: removeDecimals(symbol.maker_fee_rate_x18),\n takerFeeRate: removeDecimals(symbol.taker_fee_rate_x18),\n longWeightInitial: removeDecimals(symbol.long_weight_initial_x18),\n longWeightMaintenance: removeDecimals(symbol.long_weight_maintenance_x18),\n maxOpenInterest: symbol.max_open_interest_x18\n ? removeDecimals(symbol.max_open_interest_x18)\n : null,\n exchangeRate: symbol.exchange_rate_x18\n ? removeDecimals(symbol.exchange_rate_x18)\n : null,\n tradingStatus: symbol.trading_status as IndexerV2TradingStatus,\n isolatedOnly: symbol.isolated_only,\n marketHours: symbol.market_hours\n ? mapIndexerV2MarketHours(symbol.market_hours)\n : null,\n boostType: symbol.boost_type ?? null,\n takerMultiplier: symbol.taker_multiplier ?? null,\n makerMultiplier: symbol.maker_multiplier ?? null,\n };\n}\n"],"mappings":";;;AAmEA,SAAgB,mCACd,QACgC;CAChC,OAAO;EACL,OAAO,OAAO;EACd,UAAU,OAAO,mBACb,gBAAgB,OAAO,gBAAgB,IACvC,KAAA;EACJ,aAAa,OAAO;CACtB;AACF;AAEA,SAAgB,wBAAwB,SAAuC;CAC7E,IAAI,UAAU,SACZ,OAAO,2BAA2B,QAAQ,IAAI;CAEhD,OAAO,2BAA2B,QAAQ,IAAI;AAChD;AAEA,SAAgB,wBACd,SACyC;CACzC,IAAI,UAAU,SACZ,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;CAC1B;CAEF,OAAO;EACL,QAAQ,YAAY,QAAQ,KAAK,QAAQ,MAAM;EAC/C,WAAW,QAAQ,KAAK;EACxB,MAAM,kBAAkB;EACxB,eAAe,YAAY,QAAQ,KAAK,QAAQ,eAAe;CACjE;AACF;AAEA,SAAgB,gBAAgB,OAAyC;CACvE,MAAM,WAAW,oBAAoB,MAAM,QAAQ;CACnD,OAAO;EACL,QAAQ,YAAY,MAAM,MAAM;EACh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,OAAO;EACtB,SAAS,OAAO;EAChB,cAAc,eAAe,OAAO,kBAAkB;EACtD,cAAc,eAAe,OAAO,kBAAkB;EACtD,mBAAmB,eAAe,OAAO,uBAAuB;EAChE,uBAAuB,eAAe,OAAO,2BAA2B;EACxE,iBAAiB,OAAO,wBACpB,eAAe,OAAO,qBAAqB,IAC3C;EACJ,cAAc,OAAO,oBACjB,eAAe,OAAO,iBAAiB,IACvC;EACJ,eAAe,OAAO;EACtB,cAAc,OAAO;EACrB,aAAa,OAAO,eAChB,wBAAwB,OAAO,YAAY,IAC3C;EACJ,WAAW,OAAO,cAAc;EAChC,iBAAiB,OAAO,oBAAoB;EAC5C,iBAAiB,OAAO,oBAAoB;CAC9C;AACF"}
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_IndexerBaseClient = require("./IndexerBaseClient-dpwAE5Om.cjs");
2
+ const require_IndexerBaseClient = require("./IndexerBaseClient-DKxLMijD.cjs");
3
3
  const require_types_CandlestickPeriod = require("./types/CandlestickPeriod.cjs");
4
4
  const require_types_indexerErrorCodes = require("./types/indexerErrorCodes.cjs");
5
5
  const require_types_IndexerServerFailureError = require("./types/IndexerServerFailureError.cjs");
@@ -11,6 +11,7 @@ require("./utils/index.cjs");
11
11
  exports.CandlestickPeriod = require_types_CandlestickPeriod.CandlestickPeriod;
12
12
  exports.INDEXER_CLIENT_ENDPOINTS = require_endpoints.INDEXER_CLIENT_ENDPOINTS;
13
13
  exports.INDEXER_ERROR_CODES = require_types_indexerErrorCodes.INDEXER_ERROR_CODES;
14
+ exports.INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES = require_types_serverTypes.INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES;
14
15
  exports.IndexerBaseClient = require_IndexerBaseClient.IndexerBaseClient;
15
16
  exports.IndexerClient = require_IndexerClient.IndexerClient;
16
17
  exports.IndexerServerFailureError = require_types_IndexerServerFailureError.IndexerServerFailureError;
package/dist/index.d.cts CHANGED
@@ -2,15 +2,15 @@ import { t as CandlestickPeriod } from "./CandlestickPeriod-D3_IoSev.cjs";
2
2
  import { t as IndexerEventType } from "./IndexerEventType-9GB2zRoN.cjs";
3
3
  import { t as IndexerLeaderboardRankType } from "./IndexerLeaderboardType-Ck12QVWR.cjs";
4
4
  import { a as NadoTransferQuoteTx, c as NadoWithdrawCollateralV2Tx, i as NadoMatchOrdersTx, n as NadoLiquidateSubaccountTx, o as NadoTx, r as NadoMatchOrdersRfqTx, s as NadoWithdrawCollateralTx, t as NadoDepositCollateralTx } from "./NadoTx-C3_f0YvI.cjs";
5
- import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-sQOL10Bi.cjs";
6
- import { $ as IndexerServerMatchEventsResponse, A as IndexerServerFundingRatesResponse, At as IndexerServerQuotePriceResponse, B as IndexerServerLeaderboardRegistrationsParams, Bt as IndexerServerV2Symbol, C as IndexerServerFundingRate, Ct as IndexerServerPrivateAlphaChoiceParams, D as IndexerServerFundingRateParams, Dt as IndexerServerQueryRequestByType, E as IndexerServerFundingRateHistoryResponse, Et as IndexerServerProductsResponse, F as IndexerServerLeaderboardParams, Ft as IndexerServerSocialAccountsResponse, G as IndexerServerListSocialAccountsParams, Gt as IndexerServerXPointsEpoch, H as IndexerServerLeaderboardResponse, Ht as IndexerServerV2TickerResponse, I as IndexerServerLeaderboardRankParams, It as IndexerServerSocialConnectParams, J as IndexerServerMakerStatisticsParams, Jt as IndexerServerXPointsResponse, K as IndexerServerListSubaccountsParams, Kt as IndexerServerXPointsParams, L as IndexerServerLeaderboardRankResponse, Lt as IndexerServerSocialConnectResponse, M as IndexerServerInterestFundingResponse, Mt as IndexerServerReferralCodeResponse, N as IndexerServerLeaderboardContestsParams, Nt as IndexerServerRequestType, O as IndexerServerFundingRateResponse, Ot as IndexerServerQueryRequestType, P as IndexerServerLeaderboardContestsResponse, Pt as IndexerServerRevokeSocialAccountParams, Q as IndexerServerMatchEventsParams, R as IndexerServerLeaderboardRegisterParams, Rt as IndexerServerTriggerTypeFilter, S as IndexerServerFastWithdrawalSignatureResponse, St as IndexerServerPriceResponse, T as IndexerServerFundingRateHistoryParams, Tt as IndexerServerProductsParams, U as IndexerServerLinkedSignerParams, Ut as IndexerServerV2TickersResponse, V as IndexerServerLeaderboardRegistrationsResponse, Vt as IndexerServerV2SymbolsResponse, W as IndexerServerLinkedSignerResponse, Wt as IndexerServerXPointsAllTime, X as IndexerServerMarketSnapshotsParams, Y as IndexerServerMakerStatisticsResponse, Yt as isIndexerServerFailureResponse, Z as IndexerServerMarketSnapshotsResponse, _ as IndexerServerDDAResponse, _t as IndexerServerPortfolioParams, a as IndexerServerAllTimePoints, at as IndexerServerNlpSnapshotsResponse, b as IndexerServerFailureResponse, bt as IndexerServerPortfolioResponse, c as IndexerServerCandlesticksResponse, ct as IndexerServerOrdersParams, d as IndexerServerCashIncentivesEventPlatform, dt as IndexerServerPerpPricesParams, et as IndexerServerMultiProductsParams, f as IndexerServerCashIncentivesEventWallet, ft as IndexerServerPerpPricesResponse, g as IndexerServerDDAQueryParams, gt as IndexerServerPortfolioHistory, h as IndexerServerCashIncentivesWalletSummary, ht as IndexerServerPointsResponse, i as IndexerEdgeServerMarketSnapshotsResponse, it as IndexerServerNlpSnapshotsParams, j as IndexerServerInterestFundingParams, jt as IndexerServerReferralCodeParams, k as IndexerServerFundingRatesParams, kt as IndexerServerQueryResponseByType, l as IndexerServerCashIncentivesEvent, lt as IndexerServerOrdersResponse, m as IndexerServerCashIncentivesResponse, mt as IndexerServerPointsParams, n as IndexerEdgeServerCandlesticksResponse, nt as IndexerServerMultiSubaccountSnapshotsParams, o as IndexerServerBacklogResponse, ot as IndexerServerOraclePricesParams, p as IndexerServerCashIncentivesParams, pt as IndexerServerPointsEpoch, q as IndexerServerListSubaccountsResponse, qt as IndexerServerXPointsQuest, r as IndexerEdgeServerMarketSnapshotsParams, rt as IndexerServerMultiSubaccountSnapshotsResponse, s as IndexerServerCandlesticksParams, st as IndexerServerOraclePricesResponse, t as IndexerEdgeServerCandlesticksParams, tt as IndexerServerMultiProductsResponse, u as IndexerServerCashIncentivesEventMetadata, ut as IndexerServerPerpPrices, v as IndexerServerEventsParams, vt as IndexerServerPortfolioPeriod, w as IndexerServerFundingRateHistoryEntry, wt as IndexerServerPrivateAlphaChoiceResponse, x as IndexerServerFastWithdrawalSignatureParams, xt as IndexerServerPriceParams, y as IndexerServerEventsResponse, yt as IndexerServerPortfolioPoint, z as IndexerServerLeaderboardRegisterResponse, zt as IndexerServerV2MarketHours } from "./serverTypes-DrlzA5fi.cjs";
7
- import { $ as GetIndexerOrdersResponse, $t as IndexerPortfolioPoint, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerEventPerpStateSnapshot, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerMaker, C as GetIndexerInterestFundingPaymentsResponse, Ct as IndexerCashIncentivesEvent, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerCashIncentivesWalletSummary, E as GetIndexerLeaderboardParams, Et as IndexerCashIncentivesEventWallet, F as GetIndexerMakerStatisticsResponse, Ft as IndexerLeaderboardContest, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerNlpSnapshot, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerMarketSnapshot, I as GetIndexerMarketSnapshotsParams, It as IndexerLeaderboardContestTrack, J as GetIndexerNlpSnapshotsParams, Jt as IndexerPerpBalance, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerOraclePrice, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerLeaderboardParticipant, M as GetIndexerLinkedSignerParams, Mt as IndexerEventWithTx, N as GetIndexerLinkedSignerResponse, Nt as IndexerFundingRate, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerEvent, P as GetIndexerMakerStatisticsParams, Pt as IndexerFundingRateHistoryEntry, Q as GetIndexerOrdersParams, Qt as IndexerPortfolioPeriod, R as GetIndexerMatchEventsParams, Rt as IndexerLeaderboardRegistration, S as GetIndexerInterestFundingPaymentsParams, Sn as TickerMarketType, St as IndexerBalanceTrackedVars, T as GetIndexerLeaderboardContestsResponse, Tt as IndexerCashIncentivesEventPlatform, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerMatchEvent, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerMakerSnapshot, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerMatchEventBalances, X as GetIndexerOraclePricesParams, Xt as IndexerPointsEpoch, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerPerpPrices, Z as GetIndexerOraclePricesResponse, Zt as IndexerPortfolioHistory, _ as GetIndexerFastWithdrawalSignatureResponse, _n as ListIndexerSubaccountsResponse, _t as GetIndexerV2TickersParams, a as GetIndexerCandlesticksParams, an as IndexerSpotBalance, at as GetIndexerPortfolioResponse, b as GetIndexerFundingRateParams, bn as RevokeSocialAccountParams, bt as GetIndexerXPointsResponse, c as GetIndexerCashIncentivesResponse, cn as IndexerV2Symbol, ct as GetIndexerProductSnapshotsParams, d as GetIndexerEdgeMarketSnapshotResponse, dn as IndexerXPointsAllTime, dt as GetIndexerReferralCodeParams, en as IndexerProductPayment, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as IndexerXPointsEpoch, ft as GetIndexerReferralCodeResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as ListIndexerSubaccountsParams, gt as GetIndexerV2SymbolsResponse, h as GetIndexerEventsResponse, hn as ListIndexerSocialAccountsResponse, ht as GetIndexerV2SymbolsParams, i as GetIndexerBacklogResponse, in as IndexerSocialAccountInfo, it as GetIndexerPortfolioParams, j as GetIndexerLeaderboardResponse, jt as IndexerEventSpotStateSnapshot, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerEventBalanceStateSnapshot, l as GetIndexerEdgeCandlesticksParams, ln as IndexerV2TickerResponse, lt as GetIndexerProductSnapshotsResponse, m as GetIndexerEventsParams, mn as ListIndexerSocialAccountsParams, mt as GetIndexerSubaccountDDAResponse, n as ConnectSocialAccountParams, nn as IndexerSnapshotBalance, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerSubaccountSnapshot, ot as GetIndexerPrivateAlphaChoiceParams, p as GetIndexerEventsLimitType, pn as IndexerXPointsQuest, pt as GetIndexerSubaccountDDAParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerOrder, r as ConnectSocialAccountResponse, rn as IndexerSnapshotsIntervalParams, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerV2MarketHours, st as GetIndexerPrivateAlphaChoiceResponse, t as Candlestick, tn as IndexerProductSnapshot, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as IndexerV2TradingStatus, ut as GetIndexerQuotePriceResponse, v as GetIndexerFundingRateHistoryParams, vn as RegisterLeaderboardParams, vt as GetIndexerV2TickersResponse, w as GetIndexerLeaderboardContestsParams, wt as IndexerCashIncentivesEventMetadata, x as GetIndexerFundingRateResponse, xn as RevokeSocialAccountResponse, xt as IndexerAllTimePoints, y as GetIndexerFundingRateHistoryResponse, yn as RegisterLeaderboardResponse, yt as GetIndexerXPointsParams, z as GetIndexerMatchEventsResponse, zt as IndexerLeaderboardTrackPosition } from "./clientTypes-sF5is5HA.cjs";
5
+ import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-DC4dsX9i.cjs";
6
+ import { $ as IndexerServerMakerStatisticsParams, $t as IndexerServerXPointsResponse, A as IndexerServerFundingRateHistoryParams, At as IndexerServerProductsParams, B as IndexerServerLeaderboardParams, Bt as IndexerServerSocialAccountsResponse, C as IndexerServerEventsParams, Ct as IndexerServerPortfolioPeriod, D as IndexerServerFastWithdrawalSignatureResponse, Dt as IndexerServerPriceResponse, E as IndexerServerFastWithdrawalSignatureParams, Et as IndexerServerPriceParams, F as IndexerServerFundingRatesResponse, Ft as IndexerServerQuotePriceResponse, G as IndexerServerLeaderboardRegistrationsParams, Gt as IndexerServerV2Symbol, H as IndexerServerLeaderboardRankResponse, Ht as IndexerServerSocialConnectResponse, I as IndexerServerInterestFundingParams, It as IndexerServerReferralCodeParams, J as IndexerServerLinkedSignerParams, Jt as IndexerServerV2TickersResponse, K as IndexerServerLeaderboardRegistrationsResponse, Kt as IndexerServerV2SymbolsResponse, L as IndexerServerInterestFundingResponse, Lt as IndexerServerReferralCodeResponse, M as IndexerServerFundingRateParams, Mt as IndexerServerQueryRequestByType, N as IndexerServerFundingRateResponse, Nt as IndexerServerQueryRequestType, O as IndexerServerFundingRate, Ot as IndexerServerPrivateAlphaChoiceParams, P as IndexerServerFundingRatesParams, Pt as IndexerServerQueryResponseByType, Q as IndexerServerListSubaccountsResponse, Qt as IndexerServerXPointsQuest, R as IndexerServerLeaderboardContestsParams, Rt as IndexerServerRequestType, S as IndexerServerDDAResponse, St as IndexerServerPortfolioParams, T as IndexerServerFailureResponse, Tt as IndexerServerPortfolioResponse, U as IndexerServerLeaderboardRegisterParams, Ut as IndexerServerTriggerTypeFilter, V as IndexerServerLeaderboardRankParams, Vt as IndexerServerSocialConnectParams, W as IndexerServerLeaderboardRegisterResponse, Wt as IndexerServerV2MarketHours, X as IndexerServerListSocialAccountsParams, Xt as IndexerServerXPointsEpoch, Y as IndexerServerLinkedSignerResponse, Yt as IndexerServerXPointsAllTime, Z as IndexerServerListSubaccountsParams, Zt as IndexerServerXPointsParams, _ as IndexerServerCashIncentivesUnclaimableClaim, _t as IndexerServerPerpPricesResponse, a as IndexerEdgeServerMarketSnapshotsResponse, at as IndexerServerMultiProductsParams, b as IndexerServerCashIncentivesWalletSummary, bt as IndexerServerPointsResponse, c as IndexerServerCandlesticksParams, ct as IndexerServerMultiSubaccountSnapshotsResponse, d as IndexerServerCashIncentivesEvent, dt as IndexerServerOraclePricesParams, en as isIndexerServerFailureResponse, et as IndexerServerMakerStatisticsResponse, f as IndexerServerCashIncentivesEventMetadata, ft as IndexerServerOraclePricesResponse, g as IndexerServerCashIncentivesResponse, gt as IndexerServerPerpPricesParams, h as IndexerServerCashIncentivesParams, ht as IndexerServerPerpPrices, i as IndexerEdgeServerMarketSnapshotsParams, it as IndexerServerMatchEventsResponse, j as IndexerServerFundingRateHistoryResponse, jt as IndexerServerProductsResponse, k as IndexerServerFundingRateHistoryEntry, kt as IndexerServerPrivateAlphaChoiceResponse, l as IndexerServerCandlesticksResponse, lt as IndexerServerNlpSnapshotsParams, m as IndexerServerCashIncentivesEventWallet, mt as IndexerServerOrdersResponse, n as IndexerEdgeServerCandlesticksParams, nt as IndexerServerMarketSnapshotsResponse, o as IndexerServerAllTimePoints, ot as IndexerServerMultiProductsResponse, p as IndexerServerCashIncentivesEventPlatform, pt as IndexerServerOrdersParams, q as IndexerServerLeaderboardResponse, qt as IndexerServerV2TickerResponse, r as IndexerEdgeServerCandlesticksResponse, rt as IndexerServerMatchEventsParams, s as IndexerServerBacklogResponse, st as IndexerServerMultiSubaccountSnapshotsParams, t as INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES, tt as IndexerServerMarketSnapshotsParams, u as IndexerServerCashIncentivesClaimableClaim, ut as IndexerServerNlpSnapshotsResponse, v as IndexerServerCashIncentivesWalletClaim, vt as IndexerServerPointsEpoch, w as IndexerServerEventsResponse, wt as IndexerServerPortfolioPoint, x as IndexerServerDDAQueryParams, xt as IndexerServerPortfolioHistory, y as IndexerServerCashIncentivesWalletStatus, yt as IndexerServerPointsParams, z as IndexerServerLeaderboardContestsResponse, zt as IndexerServerRevokeSocialAccountParams } from "./serverTypes-DeUDMCog.cjs";
7
+ import { $ as GetIndexerOrdersResponse, $t as IndexerPointsEpoch, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerCashIncentivesWalletSummary, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerLeaderboardParticipant, C as GetIndexerInterestFundingPaymentsResponse, Cn as RevokeSocialAccountParams, Ct as IndexerCashIncentivesClaimableClaim, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerCashIncentivesEventWallet, E as GetIndexerLeaderboardParams, Et as IndexerCashIncentivesEventPlatform, F as GetIndexerMakerStatisticsResponse, Ft as IndexerEventWithTx, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerMarketSnapshot, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerLeaderboardTrackPosition, I as GetIndexerMarketSnapshotsParams, It as IndexerFundingRate, J as GetIndexerNlpSnapshotsParams, Jt as IndexerNlpSnapshot, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerMatchEvent, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerFundingRateHistoryEntry, M as GetIndexerLinkedSignerParams, Mt as IndexerEventBalanceStateSnapshot, N as GetIndexerLinkedSignerResponse, Nt as IndexerEventPerpStateSnapshot, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerCashIncentivesUnclaimableClaim, P as GetIndexerMakerStatisticsParams, Pt as IndexerEventSpotStateSnapshot, Q as GetIndexerOrdersParams, Qt as IndexerPerpPrices, R as GetIndexerMatchEventsParams, Rt as IndexerLeaderboardContest, S as GetIndexerInterestFundingPaymentsParams, Sn as RegisterLeaderboardResponse, St as IndexerBalanceTrackedVars, T as GetIndexerLeaderboardContestsResponse, Tn as TickerMarketType, Tt as IndexerCashIncentivesEventMetadata, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerMaker, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerLeaderboardRegistration, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerMakerSnapshot, X as GetIndexerOraclePricesParams, Xt as IndexerOrder, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerOraclePrice, Z as GetIndexerOraclePricesResponse, Zt as IndexerPerpBalance, _ as GetIndexerFastWithdrawalSignatureResponse, _n as ListIndexerSocialAccountsParams, _t as GetIndexerV2TickersParams, a as GetIndexerCandlesticksParams, an as IndexerSnapshotBalance, at as GetIndexerPortfolioResponse, b as GetIndexerFundingRateParams, bn as ListIndexerSubaccountsResponse, bt as GetIndexerXPointsResponse, c as GetIndexerCashIncentivesResponse, cn as IndexerSpotBalance, ct as GetIndexerProductSnapshotsParams, d as GetIndexerEdgeMarketSnapshotResponse, dn as IndexerV2Symbol, dt as GetIndexerReferralCodeParams, en as IndexerPortfolioHistory, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as IndexerV2TickerResponse, ft as GetIndexerReferralCodeResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as IndexerXPointsQuest, gt as GetIndexerV2SymbolsResponse, h as GetIndexerEventsResponse, hn as IndexerXPointsEpoch, ht as GetIndexerV2SymbolsParams, i as GetIndexerBacklogResponse, in as IndexerProductSnapshot, it as GetIndexerPortfolioParams, j as GetIndexerLeaderboardResponse, jt as IndexerEvent, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerCashIncentivesWalletClaim, l as GetIndexerEdgeCandlesticksParams, ln as IndexerSubaccountSnapshot, lt as GetIndexerProductSnapshotsResponse, m as GetIndexerEventsParams, mn as IndexerXPointsAllTime, mt as GetIndexerSubaccountDDAResponse, n as ConnectSocialAccountParams, nn as IndexerPortfolioPoint, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerSnapshotsIntervalParams, ot as GetIndexerPrivateAlphaChoiceParams, p as GetIndexerEventsLimitType, pn as IndexerV2TradingStatus, pt as GetIndexerSubaccountDDAParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerMatchEventBalances, r as ConnectSocialAccountResponse, rn as IndexerProductPayment, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerSocialAccountInfo, st as GetIndexerPrivateAlphaChoiceResponse, t as Candlestick, tn as IndexerPortfolioPeriod, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as IndexerV2MarketHours, ut as GetIndexerQuotePriceResponse, v as GetIndexerFundingRateHistoryParams, vn as ListIndexerSocialAccountsResponse, vt as GetIndexerV2TickersResponse, w as GetIndexerLeaderboardContestsParams, wn as RevokeSocialAccountResponse, wt as IndexerCashIncentivesEvent, x as GetIndexerFundingRateResponse, xn as RegisterLeaderboardParams, xt as IndexerAllTimePoints, y as GetIndexerFundingRateHistoryResponse, yn as ListIndexerSubaccountsParams, yt as GetIndexerXPointsParams, z as GetIndexerMatchEventsResponse, zt as IndexerLeaderboardContestTrack } from "./clientTypes-QBgifUeV.cjs";
8
8
  import { t as CollateralEventType } from "./collateralEventType-CNrryEno.cjs";
9
9
  import { n as IndexerErrorCode, t as INDEXER_ERROR_CODES } from "./indexerErrorCodes-BK__sFOc.cjs";
10
- import { t as IndexerServerFailureError } from "./IndexerServerFailureError-Q8gMph7M.cjs";
11
- import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-DKN3qkoM.cjs";
10
+ import { t as IndexerServerFailureError } from "./IndexerServerFailureError-BMmMPfFJ.cjs";
11
+ import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-4I9Ibp9q.cjs";
12
12
  import { IndexerBaseClient, IndexerClientOpts } from "./IndexerBaseClient.cjs";
13
13
  import { IndexerClient } from "./IndexerClient.cjs";
14
14
  import { INDEXER_CLIENT_ENDPOINTS } from "./endpoints.cjs";
15
- import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-DaLg1BCK.cjs";
16
- export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPortfolioParams, GetIndexerPortfolioResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerPortfolioHistory, IndexerPortfolioPeriod, IndexerPortfolioPoint, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPortfolioHistory, IndexerServerPortfolioParams, IndexerServerPortfolioPeriod, IndexerServerPortfolioPoint, IndexerServerPortfolioResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
15
+ import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-DqMAvUsj.cjs";
16
+ export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPortfolioParams, GetIndexerPortfolioResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesClaimableClaim, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesUnclaimableClaim, IndexerCashIncentivesWalletClaim, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerPortfolioHistory, IndexerPortfolioPeriod, IndexerPortfolioPoint, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesClaimableClaim, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesUnclaimableClaim, IndexerServerCashIncentivesWalletClaim, IndexerServerCashIncentivesWalletStatus, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPortfolioHistory, IndexerServerPortfolioParams, IndexerServerPortfolioPeriod, IndexerServerPortfolioPoint, IndexerServerPortfolioResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
package/dist/index.d.ts CHANGED
@@ -2,15 +2,15 @@ import { t as CandlestickPeriod } from "./CandlestickPeriod-1DtcEiOb.js";
2
2
  import { t as IndexerEventType } from "./IndexerEventType-Brm9aX8w.js";
3
3
  import { t as IndexerLeaderboardRankType } from "./IndexerLeaderboardType-DAKw2tfI.js";
4
4
  import { a as NadoTransferQuoteTx, c as NadoWithdrawCollateralV2Tx, i as NadoMatchOrdersTx, n as NadoLiquidateSubaccountTx, o as NadoTx, r as NadoMatchOrdersRfqTx, s as NadoWithdrawCollateralTx, t as NadoDepositCollateralTx } from "./NadoTx-Bd4U-zDu.js";
5
- import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-BwLIAkc1.js";
6
- import { $ as IndexerServerMatchEventsResponse, A as IndexerServerFundingRatesResponse, At as IndexerServerQuotePriceResponse, B as IndexerServerLeaderboardRegistrationsParams, Bt as IndexerServerV2Symbol, C as IndexerServerFundingRate, Ct as IndexerServerPrivateAlphaChoiceParams, D as IndexerServerFundingRateParams, Dt as IndexerServerQueryRequestByType, E as IndexerServerFundingRateHistoryResponse, Et as IndexerServerProductsResponse, F as IndexerServerLeaderboardParams, Ft as IndexerServerSocialAccountsResponse, G as IndexerServerListSocialAccountsParams, Gt as IndexerServerXPointsEpoch, H as IndexerServerLeaderboardResponse, Ht as IndexerServerV2TickerResponse, I as IndexerServerLeaderboardRankParams, It as IndexerServerSocialConnectParams, J as IndexerServerMakerStatisticsParams, Jt as IndexerServerXPointsResponse, K as IndexerServerListSubaccountsParams, Kt as IndexerServerXPointsParams, L as IndexerServerLeaderboardRankResponse, Lt as IndexerServerSocialConnectResponse, M as IndexerServerInterestFundingResponse, Mt as IndexerServerReferralCodeResponse, N as IndexerServerLeaderboardContestsParams, Nt as IndexerServerRequestType, O as IndexerServerFundingRateResponse, Ot as IndexerServerQueryRequestType, P as IndexerServerLeaderboardContestsResponse, Pt as IndexerServerRevokeSocialAccountParams, Q as IndexerServerMatchEventsParams, R as IndexerServerLeaderboardRegisterParams, Rt as IndexerServerTriggerTypeFilter, S as IndexerServerFastWithdrawalSignatureResponse, St as IndexerServerPriceResponse, T as IndexerServerFundingRateHistoryParams, Tt as IndexerServerProductsParams, U as IndexerServerLinkedSignerParams, Ut as IndexerServerV2TickersResponse, V as IndexerServerLeaderboardRegistrationsResponse, Vt as IndexerServerV2SymbolsResponse, W as IndexerServerLinkedSignerResponse, Wt as IndexerServerXPointsAllTime, X as IndexerServerMarketSnapshotsParams, Y as IndexerServerMakerStatisticsResponse, Yt as isIndexerServerFailureResponse, Z as IndexerServerMarketSnapshotsResponse, _ as IndexerServerDDAResponse, _t as IndexerServerPortfolioParams, a as IndexerServerAllTimePoints, at as IndexerServerNlpSnapshotsResponse, b as IndexerServerFailureResponse, bt as IndexerServerPortfolioResponse, c as IndexerServerCandlesticksResponse, ct as IndexerServerOrdersParams, d as IndexerServerCashIncentivesEventPlatform, dt as IndexerServerPerpPricesParams, et as IndexerServerMultiProductsParams, f as IndexerServerCashIncentivesEventWallet, ft as IndexerServerPerpPricesResponse, g as IndexerServerDDAQueryParams, gt as IndexerServerPortfolioHistory, h as IndexerServerCashIncentivesWalletSummary, ht as IndexerServerPointsResponse, i as IndexerEdgeServerMarketSnapshotsResponse, it as IndexerServerNlpSnapshotsParams, j as IndexerServerInterestFundingParams, jt as IndexerServerReferralCodeParams, k as IndexerServerFundingRatesParams, kt as IndexerServerQueryResponseByType, l as IndexerServerCashIncentivesEvent, lt as IndexerServerOrdersResponse, m as IndexerServerCashIncentivesResponse, mt as IndexerServerPointsParams, n as IndexerEdgeServerCandlesticksResponse, nt as IndexerServerMultiSubaccountSnapshotsParams, o as IndexerServerBacklogResponse, ot as IndexerServerOraclePricesParams, p as IndexerServerCashIncentivesParams, pt as IndexerServerPointsEpoch, q as IndexerServerListSubaccountsResponse, qt as IndexerServerXPointsQuest, r as IndexerEdgeServerMarketSnapshotsParams, rt as IndexerServerMultiSubaccountSnapshotsResponse, s as IndexerServerCandlesticksParams, st as IndexerServerOraclePricesResponse, t as IndexerEdgeServerCandlesticksParams, tt as IndexerServerMultiProductsResponse, u as IndexerServerCashIncentivesEventMetadata, ut as IndexerServerPerpPrices, v as IndexerServerEventsParams, vt as IndexerServerPortfolioPeriod, w as IndexerServerFundingRateHistoryEntry, wt as IndexerServerPrivateAlphaChoiceResponse, x as IndexerServerFastWithdrawalSignatureParams, xt as IndexerServerPriceParams, y as IndexerServerEventsResponse, yt as IndexerServerPortfolioPoint, z as IndexerServerLeaderboardRegisterResponse, zt as IndexerServerV2MarketHours } from "./serverTypes-BdNekzFR.js";
7
- import { $ as GetIndexerOrdersResponse, $t as IndexerPortfolioPoint, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerEventPerpStateSnapshot, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerMaker, C as GetIndexerInterestFundingPaymentsResponse, Ct as IndexerCashIncentivesEvent, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerCashIncentivesWalletSummary, E as GetIndexerLeaderboardParams, Et as IndexerCashIncentivesEventWallet, F as GetIndexerMakerStatisticsResponse, Ft as IndexerLeaderboardContest, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerNlpSnapshot, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerMarketSnapshot, I as GetIndexerMarketSnapshotsParams, It as IndexerLeaderboardContestTrack, J as GetIndexerNlpSnapshotsParams, Jt as IndexerPerpBalance, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerOraclePrice, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerLeaderboardParticipant, M as GetIndexerLinkedSignerParams, Mt as IndexerEventWithTx, N as GetIndexerLinkedSignerResponse, Nt as IndexerFundingRate, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerEvent, P as GetIndexerMakerStatisticsParams, Pt as IndexerFundingRateHistoryEntry, Q as GetIndexerOrdersParams, Qt as IndexerPortfolioPeriod, R as GetIndexerMatchEventsParams, Rt as IndexerLeaderboardRegistration, S as GetIndexerInterestFundingPaymentsParams, Sn as TickerMarketType, St as IndexerBalanceTrackedVars, T as GetIndexerLeaderboardContestsResponse, Tt as IndexerCashIncentivesEventPlatform, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerMatchEvent, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerMakerSnapshot, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerMatchEventBalances, X as GetIndexerOraclePricesParams, Xt as IndexerPointsEpoch, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerPerpPrices, Z as GetIndexerOraclePricesResponse, Zt as IndexerPortfolioHistory, _ as GetIndexerFastWithdrawalSignatureResponse, _n as ListIndexerSubaccountsResponse, _t as GetIndexerV2TickersParams, a as GetIndexerCandlesticksParams, an as IndexerSpotBalance, at as GetIndexerPortfolioResponse, b as GetIndexerFundingRateParams, bn as RevokeSocialAccountParams, bt as GetIndexerXPointsResponse, c as GetIndexerCashIncentivesResponse, cn as IndexerV2Symbol, ct as GetIndexerProductSnapshotsParams, d as GetIndexerEdgeMarketSnapshotResponse, dn as IndexerXPointsAllTime, dt as GetIndexerReferralCodeParams, en as IndexerProductPayment, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as IndexerXPointsEpoch, ft as GetIndexerReferralCodeResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as ListIndexerSubaccountsParams, gt as GetIndexerV2SymbolsResponse, h as GetIndexerEventsResponse, hn as ListIndexerSocialAccountsResponse, ht as GetIndexerV2SymbolsParams, i as GetIndexerBacklogResponse, in as IndexerSocialAccountInfo, it as GetIndexerPortfolioParams, j as GetIndexerLeaderboardResponse, jt as IndexerEventSpotStateSnapshot, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerEventBalanceStateSnapshot, l as GetIndexerEdgeCandlesticksParams, ln as IndexerV2TickerResponse, lt as GetIndexerProductSnapshotsResponse, m as GetIndexerEventsParams, mn as ListIndexerSocialAccountsParams, mt as GetIndexerSubaccountDDAResponse, n as ConnectSocialAccountParams, nn as IndexerSnapshotBalance, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerSubaccountSnapshot, ot as GetIndexerPrivateAlphaChoiceParams, p as GetIndexerEventsLimitType, pn as IndexerXPointsQuest, pt as GetIndexerSubaccountDDAParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerOrder, r as ConnectSocialAccountResponse, rn as IndexerSnapshotsIntervalParams, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerV2MarketHours, st as GetIndexerPrivateAlphaChoiceResponse, t as Candlestick, tn as IndexerProductSnapshot, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as IndexerV2TradingStatus, ut as GetIndexerQuotePriceResponse, v as GetIndexerFundingRateHistoryParams, vn as RegisterLeaderboardParams, vt as GetIndexerV2TickersResponse, w as GetIndexerLeaderboardContestsParams, wt as IndexerCashIncentivesEventMetadata, x as GetIndexerFundingRateResponse, xn as RevokeSocialAccountResponse, xt as IndexerAllTimePoints, y as GetIndexerFundingRateHistoryResponse, yn as RegisterLeaderboardResponse, yt as GetIndexerXPointsParams, z as GetIndexerMatchEventsResponse, zt as IndexerLeaderboardTrackPosition } from "./clientTypes-CuXHS6Jk.js";
5
+ import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "./serverModelTypes-BAZNgoLE.js";
6
+ import { $ as IndexerServerMakerStatisticsParams, $t as IndexerServerXPointsResponse, A as IndexerServerFundingRateHistoryParams, At as IndexerServerProductsParams, B as IndexerServerLeaderboardParams, Bt as IndexerServerSocialAccountsResponse, C as IndexerServerEventsParams, Ct as IndexerServerPortfolioPeriod, D as IndexerServerFastWithdrawalSignatureResponse, Dt as IndexerServerPriceResponse, E as IndexerServerFastWithdrawalSignatureParams, Et as IndexerServerPriceParams, F as IndexerServerFundingRatesResponse, Ft as IndexerServerQuotePriceResponse, G as IndexerServerLeaderboardRegistrationsParams, Gt as IndexerServerV2Symbol, H as IndexerServerLeaderboardRankResponse, Ht as IndexerServerSocialConnectResponse, I as IndexerServerInterestFundingParams, It as IndexerServerReferralCodeParams, J as IndexerServerLinkedSignerParams, Jt as IndexerServerV2TickersResponse, K as IndexerServerLeaderboardRegistrationsResponse, Kt as IndexerServerV2SymbolsResponse, L as IndexerServerInterestFundingResponse, Lt as IndexerServerReferralCodeResponse, M as IndexerServerFundingRateParams, Mt as IndexerServerQueryRequestByType, N as IndexerServerFundingRateResponse, Nt as IndexerServerQueryRequestType, O as IndexerServerFundingRate, Ot as IndexerServerPrivateAlphaChoiceParams, P as IndexerServerFundingRatesParams, Pt as IndexerServerQueryResponseByType, Q as IndexerServerListSubaccountsResponse, Qt as IndexerServerXPointsQuest, R as IndexerServerLeaderboardContestsParams, Rt as IndexerServerRequestType, S as IndexerServerDDAResponse, St as IndexerServerPortfolioParams, T as IndexerServerFailureResponse, Tt as IndexerServerPortfolioResponse, U as IndexerServerLeaderboardRegisterParams, Ut as IndexerServerTriggerTypeFilter, V as IndexerServerLeaderboardRankParams, Vt as IndexerServerSocialConnectParams, W as IndexerServerLeaderboardRegisterResponse, Wt as IndexerServerV2MarketHours, X as IndexerServerListSocialAccountsParams, Xt as IndexerServerXPointsEpoch, Y as IndexerServerLinkedSignerResponse, Yt as IndexerServerXPointsAllTime, Z as IndexerServerListSubaccountsParams, Zt as IndexerServerXPointsParams, _ as IndexerServerCashIncentivesUnclaimableClaim, _t as IndexerServerPerpPricesResponse, a as IndexerEdgeServerMarketSnapshotsResponse, at as IndexerServerMultiProductsParams, b as IndexerServerCashIncentivesWalletSummary, bt as IndexerServerPointsResponse, c as IndexerServerCandlesticksParams, ct as IndexerServerMultiSubaccountSnapshotsResponse, d as IndexerServerCashIncentivesEvent, dt as IndexerServerOraclePricesParams, en as isIndexerServerFailureResponse, et as IndexerServerMakerStatisticsResponse, f as IndexerServerCashIncentivesEventMetadata, ft as IndexerServerOraclePricesResponse, g as IndexerServerCashIncentivesResponse, gt as IndexerServerPerpPricesParams, h as IndexerServerCashIncentivesParams, ht as IndexerServerPerpPrices, i as IndexerEdgeServerMarketSnapshotsParams, it as IndexerServerMatchEventsResponse, j as IndexerServerFundingRateHistoryResponse, jt as IndexerServerProductsResponse, k as IndexerServerFundingRateHistoryEntry, kt as IndexerServerPrivateAlphaChoiceResponse, l as IndexerServerCandlesticksResponse, lt as IndexerServerNlpSnapshotsParams, m as IndexerServerCashIncentivesEventWallet, mt as IndexerServerOrdersResponse, n as IndexerEdgeServerCandlesticksParams, nt as IndexerServerMarketSnapshotsResponse, o as IndexerServerAllTimePoints, ot as IndexerServerMultiProductsResponse, p as IndexerServerCashIncentivesEventPlatform, pt as IndexerServerOrdersParams, q as IndexerServerLeaderboardResponse, qt as IndexerServerV2TickerResponse, r as IndexerEdgeServerCandlesticksResponse, rt as IndexerServerMatchEventsParams, s as IndexerServerBacklogResponse, st as IndexerServerMultiSubaccountSnapshotsParams, t as INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES, tt as IndexerServerMarketSnapshotsParams, u as IndexerServerCashIncentivesClaimableClaim, ut as IndexerServerNlpSnapshotsResponse, v as IndexerServerCashIncentivesWalletClaim, vt as IndexerServerPointsEpoch, w as IndexerServerEventsResponse, wt as IndexerServerPortfolioPoint, x as IndexerServerDDAQueryParams, xt as IndexerServerPortfolioHistory, y as IndexerServerCashIncentivesWalletStatus, yt as IndexerServerPointsParams, z as IndexerServerLeaderboardContestsResponse, zt as IndexerServerRevokeSocialAccountParams } from "./serverTypes-BQafrknp.js";
7
+ import { $ as GetIndexerOrdersResponse, $t as IndexerPointsEpoch, A as GetIndexerLeaderboardRegistrationsResponse, At as IndexerCashIncentivesWalletSummary, B as GetIndexerMultiProductFundingRatesParams, Bt as IndexerLeaderboardParticipant, C as GetIndexerInterestFundingPaymentsResponse, Cn as RevokeSocialAccountParams, Ct as IndexerCashIncentivesClaimableClaim, D as GetIndexerLeaderboardParticipantParams, Dt as IndexerCashIncentivesEventWallet, E as GetIndexerLeaderboardParams, Et as IndexerCashIncentivesEventPlatform, F as GetIndexerMakerStatisticsResponse, Ft as IndexerEventWithTx, G as GetIndexerMultiProductSnapshotsResponse, Gt as IndexerMarketSnapshot, H as GetIndexerMultiProductPerpPricesParams, Ht as IndexerLeaderboardTrackPosition, I as GetIndexerMarketSnapshotsParams, It as IndexerFundingRate, J as GetIndexerNlpSnapshotsParams, Jt as IndexerNlpSnapshot, K as GetIndexerMultiSubaccountSnapshotsParams, Kt as IndexerMatchEvent, L as GetIndexerMarketSnapshotsResponse, Lt as IndexerFundingRateHistoryEntry, M as GetIndexerLinkedSignerParams, Mt as IndexerEventBalanceStateSnapshot, N as GetIndexerLinkedSignerResponse, Nt as IndexerEventPerpStateSnapshot, O as GetIndexerLeaderboardParticipantResponse, Ot as IndexerCashIncentivesUnclaimableClaim, P as GetIndexerMakerStatisticsParams, Pt as IndexerEventSpotStateSnapshot, Q as GetIndexerOrdersParams, Qt as IndexerPerpPrices, R as GetIndexerMatchEventsParams, Rt as IndexerLeaderboardContest, S as GetIndexerInterestFundingPaymentsParams, Sn as RegisterLeaderboardResponse, St as IndexerBalanceTrackedVars, T as GetIndexerLeaderboardContestsResponse, Tn as TickerMarketType, Tt as IndexerCashIncentivesEventMetadata, U as GetIndexerMultiProductPerpPricesResponse, Ut as IndexerMaker, V as GetIndexerMultiProductFundingRatesResponse, Vt as IndexerLeaderboardRegistration, W as GetIndexerMultiProductSnapshotsParams, Wt as IndexerMakerSnapshot, X as GetIndexerOraclePricesParams, Xt as IndexerOrder, Y as GetIndexerNlpSnapshotsResponse, Yt as IndexerOraclePrice, Z as GetIndexerOraclePricesResponse, Zt as IndexerPerpBalance, _ as GetIndexerFastWithdrawalSignatureResponse, _n as ListIndexerSocialAccountsParams, _t as GetIndexerV2TickersParams, a as GetIndexerCandlesticksParams, an as IndexerSnapshotBalance, at as GetIndexerPortfolioResponse, b as GetIndexerFundingRateParams, bn as ListIndexerSubaccountsResponse, bt as GetIndexerXPointsResponse, c as GetIndexerCashIncentivesResponse, cn as IndexerSpotBalance, ct as GetIndexerProductSnapshotsParams, d as GetIndexerEdgeMarketSnapshotResponse, dn as IndexerV2Symbol, dt as GetIndexerReferralCodeParams, en as IndexerPortfolioHistory, et as GetIndexerPerpPricesParams, f as GetIndexerEdgeMarketSnapshotsParams, fn as IndexerV2TickerResponse, ft as GetIndexerReferralCodeResponse, g as GetIndexerFastWithdrawalSignatureParams, gn as IndexerXPointsQuest, gt as GetIndexerV2SymbolsResponse, h as GetIndexerEventsResponse, hn as IndexerXPointsEpoch, ht as GetIndexerV2SymbolsParams, i as GetIndexerBacklogResponse, in as IndexerProductSnapshot, it as GetIndexerPortfolioParams, j as GetIndexerLeaderboardResponse, jt as IndexerEvent, k as GetIndexerLeaderboardRegistrationsParams, kt as IndexerCashIncentivesWalletClaim, l as GetIndexerEdgeCandlesticksParams, ln as IndexerSubaccountSnapshot, lt as GetIndexerProductSnapshotsResponse, m as GetIndexerEventsParams, mn as IndexerXPointsAllTime, mt as GetIndexerSubaccountDDAResponse, n as ConnectSocialAccountParams, nn as IndexerPortfolioPoint, nt as GetIndexerPointsParams, o as GetIndexerCandlesticksResponse, on as IndexerSnapshotsIntervalParams, ot as GetIndexerPrivateAlphaChoiceParams, p as GetIndexerEventsLimitType, pn as IndexerV2TradingStatus, pt as GetIndexerSubaccountDDAParams, q as GetIndexerMultiSubaccountSnapshotsResponse, qt as IndexerMatchEventBalances, r as ConnectSocialAccountResponse, rn as IndexerProductPayment, rt as GetIndexerPointsResponse, s as GetIndexerCashIncentivesParams, sn as IndexerSocialAccountInfo, st as GetIndexerPrivateAlphaChoiceResponse, t as Candlestick, tn as IndexerPortfolioPeriod, tt as GetIndexerPerpPricesResponse, u as GetIndexerEdgeCandlesticksResponse, un as IndexerV2MarketHours, ut as GetIndexerQuotePriceResponse, v as GetIndexerFundingRateHistoryParams, vn as ListIndexerSocialAccountsResponse, vt as GetIndexerV2TickersResponse, w as GetIndexerLeaderboardContestsParams, wn as RevokeSocialAccountResponse, wt as IndexerCashIncentivesEvent, x as GetIndexerFundingRateResponse, xn as RegisterLeaderboardParams, xt as IndexerAllTimePoints, y as GetIndexerFundingRateHistoryResponse, yn as ListIndexerSubaccountsParams, yt as GetIndexerXPointsParams, z as GetIndexerMatchEventsResponse, zt as IndexerLeaderboardContestTrack } from "./clientTypes-BLKeWmIr.js";
8
8
  import { t as CollateralEventType } from "./collateralEventType-s-WbBniE.js";
9
9
  import { n as IndexerErrorCode, t as INDEXER_ERROR_CODES } from "./indexerErrorCodes-DNHtJXxm.js";
10
- import { t as IndexerServerFailureError } from "./IndexerServerFailureError-CnyMDTmR.js";
11
- import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-Mdjf2Myl.js";
10
+ import { t as IndexerServerFailureError } from "./IndexerServerFailureError-ClC8vkmR.js";
11
+ import { C as IndexerSettlementEvent, S as IndexerPaginationParams, T as WithPaginationMeta, _ as GetIndexerSubaccountSettlementEventsResponse, a as GetIndexerPaginatedOrdersParams, b as IndexerNlpEvent, c as GetIndexerSubaccountCollateralEventsResponse, d as GetIndexerSubaccountLiquidationEventsResponse, f as GetIndexerSubaccountMatchEventParams, g as GetIndexerSubaccountSettlementEventsParams, h as GetIndexerSubaccountNlpEventsResponse, i as GetIndexerPaginatedLeaderboardResponse, l as GetIndexerSubaccountInterestFundingPaymentsParams, m as GetIndexerSubaccountNlpEventsParams, n as GetIndexerPaginatedInterestFundingPaymentsResponse, o as GetIndexerPaginatedOrdersResponse, p as GetIndexerSubaccountMatchEventsResponse, r as GetIndexerPaginatedLeaderboardParams, s as GetIndexerSubaccountCollateralEventsParams, t as BaseIndexerPaginatedEvent, u as GetIndexerSubaccountLiquidationEventsParams, v as IndexerCollateralEvent, w as PaginatedIndexerEventsResponse, x as IndexerPaginationMeta, y as IndexerLiquidationEvent } from "./paginatedEventsTypes-D668Hgzl.js";
12
12
  import { IndexerBaseClient, IndexerClientOpts } from "./IndexerBaseClient.js";
13
13
  import { IndexerClient } from "./IndexerClient.js";
14
14
  import { INDEXER_CLIENT_ENDPOINTS } from "./endpoints.js";
15
- import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-CuM_RYc3.js";
16
- export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPortfolioParams, GetIndexerPortfolioResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerPortfolioHistory, IndexerPortfolioPeriod, IndexerPortfolioPoint, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPortfolioHistory, IndexerServerPortfolioParams, IndexerServerPortfolioPeriod, IndexerServerPortfolioPoint, IndexerServerPortfolioResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
15
+ import { n as calcIndexerPerpBalanceValue, r as calcIndexerSpotBalanceValue, t as calcIndexerPerpBalanceNotionalValue } from "./indexerBalanceValue-ZJec8hfI.js";
16
+ export { BaseIndexerPaginatedEvent, Candlestick, CandlestickPeriod, CollateralEventType, ConnectSocialAccountParams, ConnectSocialAccountResponse, GetIndexerBacklogResponse, GetIndexerCandlesticksParams, GetIndexerCandlesticksResponse, GetIndexerCashIncentivesParams, GetIndexerCashIncentivesResponse, GetIndexerEdgeCandlesticksParams, GetIndexerEdgeCandlesticksResponse, GetIndexerEdgeMarketSnapshotResponse, GetIndexerEdgeMarketSnapshotsParams, GetIndexerEventsLimitType, GetIndexerEventsParams, GetIndexerEventsResponse, GetIndexerFastWithdrawalSignatureParams, GetIndexerFastWithdrawalSignatureResponse, GetIndexerFundingRateHistoryParams, GetIndexerFundingRateHistoryResponse, GetIndexerFundingRateParams, GetIndexerFundingRateResponse, GetIndexerInterestFundingPaymentsParams, GetIndexerInterestFundingPaymentsResponse, GetIndexerLeaderboardContestsParams, GetIndexerLeaderboardContestsResponse, GetIndexerLeaderboardParams, GetIndexerLeaderboardParticipantParams, GetIndexerLeaderboardParticipantResponse, GetIndexerLeaderboardRegistrationsParams, GetIndexerLeaderboardRegistrationsResponse, GetIndexerLeaderboardResponse, GetIndexerLinkedSignerParams, GetIndexerLinkedSignerResponse, GetIndexerMakerStatisticsParams, GetIndexerMakerStatisticsResponse, GetIndexerMarketSnapshotsParams, GetIndexerMarketSnapshotsResponse, GetIndexerMatchEventsParams, GetIndexerMatchEventsResponse, GetIndexerMultiProductFundingRatesParams, GetIndexerMultiProductFundingRatesResponse, GetIndexerMultiProductPerpPricesParams, GetIndexerMultiProductPerpPricesResponse, GetIndexerMultiProductSnapshotsParams, GetIndexerMultiProductSnapshotsResponse, GetIndexerMultiSubaccountSnapshotsParams, GetIndexerMultiSubaccountSnapshotsResponse, GetIndexerNlpSnapshotsParams, GetIndexerNlpSnapshotsResponse, GetIndexerOraclePricesParams, GetIndexerOraclePricesResponse, GetIndexerOrdersParams, GetIndexerOrdersResponse, GetIndexerPaginatedInterestFundingPaymentsResponse, GetIndexerPaginatedLeaderboardParams, GetIndexerPaginatedLeaderboardResponse, GetIndexerPaginatedOrdersParams, GetIndexerPaginatedOrdersResponse, GetIndexerPerpPricesParams, GetIndexerPerpPricesResponse, GetIndexerPointsParams, GetIndexerPointsResponse, GetIndexerPortfolioParams, GetIndexerPortfolioResponse, GetIndexerPrivateAlphaChoiceParams, GetIndexerPrivateAlphaChoiceResponse, GetIndexerProductSnapshotsParams, GetIndexerProductSnapshotsResponse, GetIndexerQuotePriceResponse, GetIndexerReferralCodeParams, GetIndexerReferralCodeResponse, GetIndexerSubaccountCollateralEventsParams, GetIndexerSubaccountCollateralEventsResponse, GetIndexerSubaccountDDAParams, GetIndexerSubaccountDDAResponse, GetIndexerSubaccountInterestFundingPaymentsParams, GetIndexerSubaccountLiquidationEventsParams, GetIndexerSubaccountLiquidationEventsResponse, GetIndexerSubaccountMatchEventParams, GetIndexerSubaccountMatchEventsResponse, GetIndexerSubaccountNlpEventsParams, GetIndexerSubaccountNlpEventsResponse, GetIndexerSubaccountSettlementEventsParams, GetIndexerSubaccountSettlementEventsResponse, GetIndexerV2SymbolsParams, GetIndexerV2SymbolsResponse, GetIndexerV2TickersParams, GetIndexerV2TickersResponse, GetIndexerXPointsParams, GetIndexerXPointsResponse, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES, IndexerAllTimePoints, IndexerBalanceTrackedVars, IndexerBaseClient, IndexerCashIncentivesClaimableClaim, IndexerCashIncentivesEvent, IndexerCashIncentivesEventMetadata, IndexerCashIncentivesEventPlatform, IndexerCashIncentivesEventWallet, IndexerCashIncentivesUnclaimableClaim, IndexerCashIncentivesWalletClaim, IndexerCashIncentivesWalletSummary, IndexerClient, IndexerClientOpts, IndexerCollateralEvent, IndexerEdgeServerCandlesticksParams, IndexerEdgeServerCandlesticksResponse, IndexerEdgeServerMarketSnapshotsParams, IndexerEdgeServerMarketSnapshotsResponse, IndexerErrorCode, IndexerEvent, IndexerEventBalanceStateSnapshot, IndexerEventPerpStateSnapshot, IndexerEventSpotStateSnapshot, IndexerEventType, IndexerEventWithTx, IndexerFundingRate, IndexerFundingRateHistoryEntry, IndexerLeaderboardContest, IndexerLeaderboardContestTrack, IndexerLeaderboardParticipant, IndexerLeaderboardRankType, IndexerLeaderboardRegistration, IndexerLeaderboardTrackPosition, IndexerLiquidationEvent, IndexerMaker, IndexerMakerSnapshot, IndexerMarketSnapshot, IndexerMatchEvent, IndexerMatchEventBalances, IndexerNlpEvent, IndexerNlpSnapshot, IndexerOraclePrice, IndexerOrder, IndexerPaginationMeta, IndexerPaginationParams, IndexerPerpBalance, IndexerPerpPrices, IndexerPointsEpoch, IndexerPortfolioHistory, IndexerPortfolioPeriod, IndexerPortfolioPoint, IndexerProductPayment, IndexerProductSnapshot, IndexerServerAllTimePoints, IndexerServerBacklogResponse, IndexerServerBalance, IndexerServerCandlestick, IndexerServerCandlesticksParams, IndexerServerCandlesticksResponse, IndexerServerCashIncentivesClaimableClaim, IndexerServerCashIncentivesEvent, IndexerServerCashIncentivesEventMetadata, IndexerServerCashIncentivesEventPlatform, IndexerServerCashIncentivesEventWallet, IndexerServerCashIncentivesParams, IndexerServerCashIncentivesResponse, IndexerServerCashIncentivesUnclaimableClaim, IndexerServerCashIncentivesWalletClaim, IndexerServerCashIncentivesWalletStatus, IndexerServerCashIncentivesWalletSummary, IndexerServerDDAQueryParams, IndexerServerDDAResponse, IndexerServerEvent, IndexerServerEventsParams, IndexerServerEventsResponse, IndexerServerFailureError, IndexerServerFailureResponse, IndexerServerFastWithdrawalSignatureParams, IndexerServerFastWithdrawalSignatureResponse, IndexerServerFundingRate, IndexerServerFundingRateHistoryEntry, IndexerServerFundingRateHistoryParams, IndexerServerFundingRateHistoryResponse, IndexerServerFundingRateParams, IndexerServerFundingRateResponse, IndexerServerFundingRatesParams, IndexerServerFundingRatesResponse, IndexerServerInterestFundingParams, IndexerServerInterestFundingResponse, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardContestsParams, IndexerServerLeaderboardContestsResponse, IndexerServerLeaderboardParams, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRankParams, IndexerServerLeaderboardRankResponse, IndexerServerLeaderboardRegisterParams, IndexerServerLeaderboardRegisterResponse, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardRegistrationsParams, IndexerServerLeaderboardRegistrationsResponse, IndexerServerLeaderboardResponse, IndexerServerLeaderboardTrackPosition, IndexerServerLinkedSignerParams, IndexerServerLinkedSignerResponse, IndexerServerListSocialAccountsParams, IndexerServerListSubaccountsParams, IndexerServerListSubaccountsResponse, IndexerServerMaker, IndexerServerMakerData, IndexerServerMakerStatisticsParams, IndexerServerMakerStatisticsResponse, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMarketSnapshotsParams, IndexerServerMarketSnapshotsResponse, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerMatchEventsParams, IndexerServerMatchEventsResponse, IndexerServerMultiProductsParams, IndexerServerMultiProductsResponse, IndexerServerMultiSubaccountSnapshotsParams, IndexerServerMultiSubaccountSnapshotsResponse, IndexerServerNlpSnapshot, IndexerServerNlpSnapshotsParams, IndexerServerNlpSnapshotsResponse, IndexerServerOraclePrice, IndexerServerOraclePricesParams, IndexerServerOraclePricesResponse, IndexerServerOrder, IndexerServerOrdersParams, IndexerServerOrdersResponse, IndexerServerPerpPrices, IndexerServerPerpPricesParams, IndexerServerPerpPricesResponse, IndexerServerPointsEpoch, IndexerServerPointsParams, IndexerServerPointsResponse, IndexerServerPortfolioHistory, IndexerServerPortfolioParams, IndexerServerPortfolioPeriod, IndexerServerPortfolioPoint, IndexerServerPortfolioResponse, IndexerServerPriceParams, IndexerServerPriceResponse, IndexerServerPrivateAlphaChoiceParams, IndexerServerPrivateAlphaChoiceResponse, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerProductsParams, IndexerServerProductsResponse, IndexerServerQueryRequestByType, IndexerServerQueryRequestType, IndexerServerQueryResponseByType, IndexerServerQuotePriceResponse, IndexerServerReferralCodeParams, IndexerServerReferralCodeResponse, IndexerServerRequestType, IndexerServerRevokeSocialAccountParams, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerSocialAccountsResponse, IndexerServerSocialConnectParams, IndexerServerSocialConnectResponse, IndexerServerTriggerTypeFilter, IndexerServerTx, IndexerServerV2MarketHours, IndexerServerV2Symbol, IndexerServerV2SymbolsResponse, IndexerServerV2TickerResponse, IndexerServerV2TickersResponse, IndexerServerXPointsAllTime, IndexerServerXPointsEpoch, IndexerServerXPointsParams, IndexerServerXPointsQuest, IndexerServerXPointsResponse, IndexerSettlementEvent, IndexerSnapshotBalance, IndexerSnapshotsIntervalParams, IndexerSocialAccountInfo, IndexerSpotBalance, IndexerSubaccountSnapshot, IndexerV2MarketHours, IndexerV2Symbol, IndexerV2TickerResponse, IndexerV2TradingStatus, IndexerXPointsAllTime, IndexerXPointsEpoch, IndexerXPointsQuest, ListIndexerSocialAccountsParams, ListIndexerSocialAccountsResponse, ListIndexerSubaccountsParams, ListIndexerSubaccountsResponse, NadoDepositCollateralTx, NadoLiquidateSubaccountTx, NadoMatchOrdersRfqTx, NadoMatchOrdersTx, NadoTransferQuoteTx, NadoTx, NadoWithdrawCollateralTx, NadoWithdrawCollateralV2Tx, PaginatedIndexerEventsResponse, RegisterLeaderboardParams, RegisterLeaderboardResponse, RevokeSocialAccountParams, RevokeSocialAccountResponse, TickerMarketType, WithPaginationMeta, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { CandlestickPeriod } from "./types/CandlestickPeriod.js";
2
2
  import { INDEXER_ERROR_CODES } from "./types/indexerErrorCodes.js";
3
3
  import { IndexerServerFailureError } from "./types/IndexerServerFailureError.js";
4
- import { isIndexerServerFailureResponse } from "./types/serverTypes.js";
4
+ import { INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES, isIndexerServerFailureResponse } from "./types/serverTypes.js";
5
5
  import { IndexerBaseClient } from "./IndexerBaseClient.js";
6
6
  import { IndexerClient } from "./IndexerClient.js";
7
7
  import { INDEXER_CLIENT_ENDPOINTS } from "./endpoints.js";
8
8
  import { calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue } from "./utils/indexerBalanceValue.js";
9
9
  import "./utils/index.js";
10
- export { CandlestickPeriod, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, IndexerBaseClient, IndexerClient, IndexerServerFailureError, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
10
+ export { CandlestickPeriod, INDEXER_CLIENT_ENDPOINTS, INDEXER_ERROR_CODES, INDEXER_SERVER_CASH_INCENTIVES_WALLET_STATUSES, IndexerBaseClient, IndexerClient, IndexerServerFailureError, calcIndexerPerpBalanceNotionalValue, calcIndexerPerpBalanceValue, calcIndexerSpotBalanceValue, isIndexerServerFailureResponse };
@@ -1,4 +1,4 @@
1
- import { Jt as IndexerPerpBalance, an as IndexerSpotBalance } from "./clientTypes-sF5is5HA.cjs";
1
+ import { Zt as IndexerPerpBalance, cn as IndexerSpotBalance } from "./clientTypes-QBgifUeV.cjs";
2
2
  import BigNumber from "bignumber.js";
3
3
 
4
4
  //#region src/utils/indexerBalanceValue.d.ts
@@ -29,4 +29,4 @@ declare function calcIndexerPerpBalanceNotionalValue(balance: IndexerPerpBalance
29
29
  declare function calcIndexerPerpBalanceValue(balance: IndexerPerpBalance, oraclePrice: BigNumber): BigNumber;
30
30
  //#endregion
31
31
  export { calcIndexerPerpBalanceValue as n, calcIndexerSpotBalanceValue as r, calcIndexerPerpBalanceNotionalValue as t };
32
- //# sourceMappingURL=indexerBalanceValue-DaLg1BCK.d.cts.map
32
+ //# sourceMappingURL=indexerBalanceValue-DqMAvUsj.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexerBalanceValue-DaLg1BCK.d.cts","names":[],"sources":["../src/utils/src/utils/indexerBalanceValue.ts"],"mappings":";;;;;;;AAcA;;;;;;;iBAAgB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;;;;;;;iBAUa,mCAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;AAHH;;;;;;AAAA,iBAagB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA"}
1
+ {"version":3,"file":"indexerBalanceValue-DqMAvUsj.d.cts","names":[],"sources":["../src/utils/src/utils/indexerBalanceValue.ts"],"mappings":";;;;;;;AAcA;;;;;;;iBAAgB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;;;;;;;iBAUa,mCAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA;AAHH;;;;;;AAAA,iBAagB,2BAAA,CACd,OAAA,EAAS,kBAAA,EACT,WAAA,EAAa,SAAA,GACZ,SAAA"}