@liberfi.io/ui-predict 0.1.47 → 0.1.49
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.
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/client/index.mjs.map +1 -1
- package/dist/{index-BcVbsRbS.d.mts → index-B-NMsVEe.d.mts} +122 -1
- package/dist/{index-BcVbsRbS.d.ts → index-B-NMsVEe.d.ts} +122 -1
- package/dist/index.d.mts +67 -4
- package/dist/index.d.ts +67 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, O as OrderResponse, b as SeriesResponse, C as CandlesticksResponse, c as OrderbookLevel, d as SingleTradeResponse, I as IPredictClient, e as IPredictWsClient, f as StandardEventsResponse, M as MarketQueryParams, g as StandardMarketsResponse, h as MarketsBatchRequest, i as OrderbookResponse, T as TradesQueryParams, j as MultiTradeResponse, k as TradesByMintQueryParams, l as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams,
|
|
3
|
-
export {
|
|
2
|
+
import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, O as OrderResponse, b as SeriesResponse, C as CandlesticksResponse, c as OrderbookLevel, d as SingleTradeResponse, I as IPredictClient, e as IPredictWsClient, W as WalletPositionItem, f as StandardEventsResponse, M as MarketQueryParams, g as StandardMarketsResponse, h as MarketsBatchRequest, i as OrderbookResponse, T as TradesQueryParams, j as MultiTradeResponse, k as TradesByMintQueryParams, l as OnchainTradesByWalletQueryParams, m as MultiOnchainTradeResponse, n as OnchainTradesByEventQueryParams, o as OnchainTradesByMarketQueryParams, p as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams, q as ForecastPercentileHistoryResponse, r as ForecastPercentileHistoryByMintQueryParams, L as LiveDataQueryParams, s as LiveDataResponse, t as LiveDataByEventQueryParams, u as LiveDataByMintQueryParams, v as SeriesQueryParams, w as SeriesListResponse, x as TagsByCategoriesResponse, y as FiltersBySportsResponse, z as SearchQueryParams, A as SearchResponse, P as PositionsByWalletQueryParams, B as WalletPositionsResponse, D as OutcomeMintsQueryParams, G as OutcomeMintsResponse, H as FilterOutcomeMintsRequest, J as FilterOutcomeMintsResponse, Q as QuoteQueryParams, K as QuoteResponse, N as SwapRequestBody, R as SwapResponse, U as SwapInstructionsResponse, V as OrderQueryParams, X as OrderStatusQueryParams, Y as OrderStatusResponse, Z as IntentQuoteQueryParams, _ as IntentQuoteResponse, $ as IntentSwapRequestBody, a0 as IntentSwapResponse, a1 as PredictionMarketInitQueryParams, a2 as PredictionMarketInitResponse, a3 as TokenListResponse, a4 as TokenListWithDecimalsResponse, a5 as VenueListResponse, a6 as WsConnectionStatus, a7 as WsPriceUpdate, a8 as WsTradeUpdate, a9 as WsOrderbookUpdate } from './index-B-NMsVEe.mjs';
|
|
3
|
+
export { aw as AccountMetaResponse, aJ as BasePredictClient, ay as BlockhashWithMetadata, ap as CandlestickDataPoint, ao as CandlestickOHLC, au as ComputeBudgetInfo, aG as CreateFeeAccountParams, aF as DestinationTokenAccountParam, aM as DflowPredictClient, aN as DflowPredictWsClient, ai as ExecutionMode, aq as ForecastPercentileDataPoint, ax as InstructionResponse, aB as IntentExpiry, ak as MarketAccountInfo, ab as MarketStatus, al as OnchainTrade, am as OnchainTradeSortBy, an as OnchainTradesBaseQueryParams, az as OrderFill, aA as OrderRevert, ae as OrderStatus, aD as OrderbookQueryParams, at as PlatformFee, af as PlatformFeeMode, aH as PositiveSlippageParams, aM as PredictClient, aN as PredictWsClient, aE as PrioritizationFeeLamports, av as PrioritizationType, ah as PriorityLevel, aa as ProviderType, as as RoutePlanLeg, ar as SeriesSettlementSource, aj as SettlementSource, ag as SlippageTolerance, ac as SortField, ad as SortOrder, aC as TokenWithDecimals, aP as WsClientConfig, aI as WsSubscribeOptions, aK as buildQuery, aO as createDflowPredictWsClient, aO as createPredictWsClient, aL as toRecord } from './index-B-NMsVEe.mjs';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -13,7 +13,7 @@ declare global {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
declare const _default: "0.1.
|
|
16
|
+
declare const _default: "0.1.49";
|
|
17
17
|
|
|
18
18
|
interface EventsPageProps {
|
|
19
19
|
/** Callback when an event is selected */
|
|
@@ -731,6 +731,20 @@ interface PredictContextValue {
|
|
|
731
731
|
}
|
|
732
732
|
declare const PredictContext: react.Context<PredictContextValue>;
|
|
733
733
|
|
|
734
|
+
interface UserPredictContextValue {
|
|
735
|
+
/** User's wallet positions */
|
|
736
|
+
positions: WalletPositionItem[];
|
|
737
|
+
/** USDC balance (UI amount) */
|
|
738
|
+
usdcBalance: number;
|
|
739
|
+
/** Whether positions are currently loading for the first time */
|
|
740
|
+
isLoading: boolean;
|
|
741
|
+
/** Error from the latest fetch, null if none */
|
|
742
|
+
error: Error | null;
|
|
743
|
+
/** Manually trigger a refetch */
|
|
744
|
+
refetch: () => void;
|
|
745
|
+
}
|
|
746
|
+
declare const UserPredictContext: react.Context<UserPredictContextValue | null>;
|
|
747
|
+
|
|
734
748
|
type PredictProviderProps = PropsWithChildren<{
|
|
735
749
|
/** The predict API client instance */
|
|
736
750
|
client: IPredictClient;
|
|
@@ -739,6 +753,16 @@ type PredictProviderProps = PropsWithChildren<{
|
|
|
739
753
|
}>;
|
|
740
754
|
declare function PredictProvider({ client, wsClient, children, }: PredictProviderProps): react_jsx_runtime.JSX.Element;
|
|
741
755
|
|
|
756
|
+
type UserPredictProviderProps = PropsWithChildren<{
|
|
757
|
+
/** Wallet address to poll positions for */
|
|
758
|
+
walletAddress: string;
|
|
759
|
+
/** Polling interval in milliseconds (default: 30 000) */
|
|
760
|
+
pollingInterval?: number;
|
|
761
|
+
/** Whether polling is enabled (default: true) */
|
|
762
|
+
enabled?: boolean;
|
|
763
|
+
}>;
|
|
764
|
+
declare function UserPredictProvider({ walletAddress, pollingInterval, enabled, children, }: UserPredictProviderProps): react_jsx_runtime.JSX.Element;
|
|
765
|
+
|
|
742
766
|
declare function usePredictContext(): PredictContextValue;
|
|
743
767
|
|
|
744
768
|
declare function usePredictClient(): IPredictClient;
|
|
@@ -794,6 +818,24 @@ declare function tradesByMintQueryKey(params: TradesByMintQueryParams): unknown[
|
|
|
794
818
|
declare function fetchTradesByMint(client: IPredictClient, params: TradesByMintQueryParams): Promise<MultiTradeResponse>;
|
|
795
819
|
declare function useTradesByMintQuery(params: TradesByMintQueryParams, queryOptions?: Omit<UseQueryOptions<MultiTradeResponse, Error, MultiTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiTradeResponse, Error>;
|
|
796
820
|
|
|
821
|
+
declare function onchainTradesByWalletQueryKey(params: OnchainTradesByWalletQueryParams): unknown[];
|
|
822
|
+
declare function fetchOnchainTradesByWallet(client: IPredictClient, params: OnchainTradesByWalletQueryParams): Promise<MultiOnchainTradeResponse>;
|
|
823
|
+
declare function useOnchainTradesByWalletQuery(params: OnchainTradesByWalletQueryParams, queryOptions?: Omit<UseQueryOptions<MultiOnchainTradeResponse, Error, MultiOnchainTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiOnchainTradeResponse, Error>;
|
|
824
|
+
declare function onchainTradesByEventQueryKey(params: OnchainTradesByEventQueryParams): unknown[];
|
|
825
|
+
declare function fetchOnchainTradesByEvent(client: IPredictClient, params: OnchainTradesByEventQueryParams): Promise<MultiOnchainTradeResponse>;
|
|
826
|
+
declare function useOnchainTradesByEventQuery(params: OnchainTradesByEventQueryParams, queryOptions?: Omit<UseQueryOptions<MultiOnchainTradeResponse, Error, MultiOnchainTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiOnchainTradeResponse, Error>;
|
|
827
|
+
declare function onchainTradesByMarketQueryKey(params: OnchainTradesByMarketQueryParams): unknown[];
|
|
828
|
+
declare function fetchOnchainTradesByMarket(client: IPredictClient, params: OnchainTradesByMarketQueryParams): Promise<MultiOnchainTradeResponse>;
|
|
829
|
+
declare function useOnchainTradesByMarketQuery(params: OnchainTradesByMarketQueryParams, queryOptions?: Omit<UseQueryOptions<MultiOnchainTradeResponse, Error, MultiOnchainTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiOnchainTradeResponse, Error>;
|
|
830
|
+
|
|
831
|
+
type OnchainTradesInfiniteOptions = Omit<UseInfiniteQueryOptions<MultiOnchainTradeResponse, Error, InfiniteData<MultiOnchainTradeResponse>, unknown[], string | undefined>, "queryKey" | "queryFn" | "getNextPageParam" | "initialPageParam">;
|
|
832
|
+
declare function onchainTradesByWalletInfiniteQueryKey(params: Omit<OnchainTradesByWalletQueryParams, "cursor">): unknown[];
|
|
833
|
+
declare function useOnchainTradesByWalletInfiniteQuery(params: Omit<OnchainTradesByWalletQueryParams, "cursor">, options?: OnchainTradesInfiniteOptions): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<MultiOnchainTradeResponse, unknown>, Error>;
|
|
834
|
+
declare function onchainTradesByEventInfiniteQueryKey(params: Omit<OnchainTradesByEventQueryParams, "cursor">): unknown[];
|
|
835
|
+
declare function useOnchainTradesByEventInfiniteQuery(params: Omit<OnchainTradesByEventQueryParams, "cursor">, options?: OnchainTradesInfiniteOptions): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<MultiOnchainTradeResponse, unknown>, Error>;
|
|
836
|
+
declare function onchainTradesByMarketInfiniteQueryKey(params: Omit<OnchainTradesByMarketQueryParams, "cursor">): unknown[];
|
|
837
|
+
declare function useOnchainTradesByMarketInfiniteQuery(params: Omit<OnchainTradesByMarketQueryParams, "cursor">, options?: OnchainTradesInfiniteOptions): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<MultiOnchainTradeResponse, unknown>, Error>;
|
|
838
|
+
|
|
797
839
|
interface UseEventCandlesticksParams extends CandlesticksQueryParams {
|
|
798
840
|
/** Event ticker */
|
|
799
841
|
ticker: string;
|
|
@@ -855,6 +897,27 @@ declare function searchQueryKey(params: SearchQueryParams): unknown[];
|
|
|
855
897
|
declare function fetchSearch(client: IPredictClient, params: SearchQueryParams): Promise<SearchResponse>;
|
|
856
898
|
declare function useSearchQuery(params: SearchQueryParams, queryOptions?: Omit<UseQueryOptions<SearchResponse, Error, SearchResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<SearchResponse, Error>;
|
|
857
899
|
|
|
900
|
+
declare function positionsByWalletQueryKey(params: PositionsByWalletQueryParams): unknown[];
|
|
901
|
+
declare function fetchPositionsByWallet(client: IPredictClient, params: PositionsByWalletQueryParams): Promise<WalletPositionsResponse>;
|
|
902
|
+
declare function usePositionsByWalletQuery(params: PositionsByWalletQueryParams, queryOptions?: Omit<UseQueryOptions<WalletPositionsResponse, Error, WalletPositionsResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<WalletPositionsResponse, Error>;
|
|
903
|
+
|
|
904
|
+
declare function useUserPredictContext(): UserPredictContextValue;
|
|
905
|
+
|
|
906
|
+
interface MarketPositionsResult {
|
|
907
|
+
/** Positions matching the given market */
|
|
908
|
+
positions: WalletPositionItem[];
|
|
909
|
+
/** Whether the positions query is loading */
|
|
910
|
+
isLoading: boolean;
|
|
911
|
+
/** Whether UserPredictProvider is available in the tree */
|
|
912
|
+
isAvailable: boolean;
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Returns the current user's positions filtered to a specific market.
|
|
916
|
+
* Safe to call without UserPredictProvider — returns empty positions
|
|
917
|
+
* with `isAvailable: false`.
|
|
918
|
+
*/
|
|
919
|
+
declare function useMarketPositions(market: StandardMarket): MarketPositionsResult;
|
|
920
|
+
|
|
858
921
|
declare function outcomeMintsQueryKey(params?: OutcomeMintsQueryParams): unknown[];
|
|
859
922
|
declare function fetchOutcomeMints(client: IPredictClient, params?: OutcomeMintsQueryParams): Promise<OutcomeMintsResponse>;
|
|
860
923
|
declare function useOutcomeMintsQuery(params?: OutcomeMintsQueryParams, options?: Omit<UseQueryOptions<OutcomeMintsResponse, Error, OutcomeMintsResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<OutcomeMintsResponse, Error>;
|
|
@@ -1039,4 +1102,4 @@ interface UseOrderbookSubscriptionResult {
|
|
|
1039
1102
|
*/
|
|
1040
1103
|
declare function useOrderbookSubscription({ client, all, tickers, enabled, onUpdate, }: UseOrderbookSubscriptionParams): UseOrderbookSubscriptionResult;
|
|
1041
1104
|
|
|
1042
|
-
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, EventsPage, type EventsPageProps, EventsSkeleton, type EventsSkeletonProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, MarketQueryParams, MarketsBatchRequest, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SearchQueryParams, SearchResponse, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, VenueListResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketsBatchQuery, useMarketsQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePredictClient, usePredictContext, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchQuery, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|
|
1105
|
+
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, EventsPage, type EventsPageProps, EventsSkeleton, type EventsSkeletonProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SearchQueryParams, SearchResponse, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchQuery, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, O as OrderResponse, b as SeriesResponse, C as CandlesticksResponse, c as OrderbookLevel, d as SingleTradeResponse, I as IPredictClient, e as IPredictWsClient, f as StandardEventsResponse, M as MarketQueryParams, g as StandardMarketsResponse, h as MarketsBatchRequest, i as OrderbookResponse, T as TradesQueryParams, j as MultiTradeResponse, k as TradesByMintQueryParams, l as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams,
|
|
3
|
-
export {
|
|
2
|
+
import { S as StandardEvent, a as StandardMarket, E as EventQueryParams, O as OrderResponse, b as SeriesResponse, C as CandlesticksResponse, c as OrderbookLevel, d as SingleTradeResponse, I as IPredictClient, e as IPredictWsClient, W as WalletPositionItem, f as StandardEventsResponse, M as MarketQueryParams, g as StandardMarketsResponse, h as MarketsBatchRequest, i as OrderbookResponse, T as TradesQueryParams, j as MultiTradeResponse, k as TradesByMintQueryParams, l as OnchainTradesByWalletQueryParams, m as MultiOnchainTradeResponse, n as OnchainTradesByEventQueryParams, o as OnchainTradesByMarketQueryParams, p as CandlesticksQueryParams, F as ForecastPercentileHistoryQueryParams, q as ForecastPercentileHistoryResponse, r as ForecastPercentileHistoryByMintQueryParams, L as LiveDataQueryParams, s as LiveDataResponse, t as LiveDataByEventQueryParams, u as LiveDataByMintQueryParams, v as SeriesQueryParams, w as SeriesListResponse, x as TagsByCategoriesResponse, y as FiltersBySportsResponse, z as SearchQueryParams, A as SearchResponse, P as PositionsByWalletQueryParams, B as WalletPositionsResponse, D as OutcomeMintsQueryParams, G as OutcomeMintsResponse, H as FilterOutcomeMintsRequest, J as FilterOutcomeMintsResponse, Q as QuoteQueryParams, K as QuoteResponse, N as SwapRequestBody, R as SwapResponse, U as SwapInstructionsResponse, V as OrderQueryParams, X as OrderStatusQueryParams, Y as OrderStatusResponse, Z as IntentQuoteQueryParams, _ as IntentQuoteResponse, $ as IntentSwapRequestBody, a0 as IntentSwapResponse, a1 as PredictionMarketInitQueryParams, a2 as PredictionMarketInitResponse, a3 as TokenListResponse, a4 as TokenListWithDecimalsResponse, a5 as VenueListResponse, a6 as WsConnectionStatus, a7 as WsPriceUpdate, a8 as WsTradeUpdate, a9 as WsOrderbookUpdate } from './index-B-NMsVEe.js';
|
|
3
|
+
export { aw as AccountMetaResponse, aJ as BasePredictClient, ay as BlockhashWithMetadata, ap as CandlestickDataPoint, ao as CandlestickOHLC, au as ComputeBudgetInfo, aG as CreateFeeAccountParams, aF as DestinationTokenAccountParam, aM as DflowPredictClient, aN as DflowPredictWsClient, ai as ExecutionMode, aq as ForecastPercentileDataPoint, ax as InstructionResponse, aB as IntentExpiry, ak as MarketAccountInfo, ab as MarketStatus, al as OnchainTrade, am as OnchainTradeSortBy, an as OnchainTradesBaseQueryParams, az as OrderFill, aA as OrderRevert, ae as OrderStatus, aD as OrderbookQueryParams, at as PlatformFee, af as PlatformFeeMode, aH as PositiveSlippageParams, aM as PredictClient, aN as PredictWsClient, aE as PrioritizationFeeLamports, av as PrioritizationType, ah as PriorityLevel, aa as ProviderType, as as RoutePlanLeg, ar as SeriesSettlementSource, aj as SettlementSource, ag as SlippageTolerance, ac as SortField, ad as SortOrder, aC as TokenWithDecimals, aP as WsClientConfig, aI as WsSubscribeOptions, aK as buildQuery, aO as createDflowPredictWsClient, aO as createPredictWsClient, aL as toRecord } from './index-B-NMsVEe.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
@@ -13,7 +13,7 @@ declare global {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
declare const _default: "0.1.
|
|
16
|
+
declare const _default: "0.1.49";
|
|
17
17
|
|
|
18
18
|
interface EventsPageProps {
|
|
19
19
|
/** Callback when an event is selected */
|
|
@@ -731,6 +731,20 @@ interface PredictContextValue {
|
|
|
731
731
|
}
|
|
732
732
|
declare const PredictContext: react.Context<PredictContextValue>;
|
|
733
733
|
|
|
734
|
+
interface UserPredictContextValue {
|
|
735
|
+
/** User's wallet positions */
|
|
736
|
+
positions: WalletPositionItem[];
|
|
737
|
+
/** USDC balance (UI amount) */
|
|
738
|
+
usdcBalance: number;
|
|
739
|
+
/** Whether positions are currently loading for the first time */
|
|
740
|
+
isLoading: boolean;
|
|
741
|
+
/** Error from the latest fetch, null if none */
|
|
742
|
+
error: Error | null;
|
|
743
|
+
/** Manually trigger a refetch */
|
|
744
|
+
refetch: () => void;
|
|
745
|
+
}
|
|
746
|
+
declare const UserPredictContext: react.Context<UserPredictContextValue | null>;
|
|
747
|
+
|
|
734
748
|
type PredictProviderProps = PropsWithChildren<{
|
|
735
749
|
/** The predict API client instance */
|
|
736
750
|
client: IPredictClient;
|
|
@@ -739,6 +753,16 @@ type PredictProviderProps = PropsWithChildren<{
|
|
|
739
753
|
}>;
|
|
740
754
|
declare function PredictProvider({ client, wsClient, children, }: PredictProviderProps): react_jsx_runtime.JSX.Element;
|
|
741
755
|
|
|
756
|
+
type UserPredictProviderProps = PropsWithChildren<{
|
|
757
|
+
/** Wallet address to poll positions for */
|
|
758
|
+
walletAddress: string;
|
|
759
|
+
/** Polling interval in milliseconds (default: 30 000) */
|
|
760
|
+
pollingInterval?: number;
|
|
761
|
+
/** Whether polling is enabled (default: true) */
|
|
762
|
+
enabled?: boolean;
|
|
763
|
+
}>;
|
|
764
|
+
declare function UserPredictProvider({ walletAddress, pollingInterval, enabled, children, }: UserPredictProviderProps): react_jsx_runtime.JSX.Element;
|
|
765
|
+
|
|
742
766
|
declare function usePredictContext(): PredictContextValue;
|
|
743
767
|
|
|
744
768
|
declare function usePredictClient(): IPredictClient;
|
|
@@ -794,6 +818,24 @@ declare function tradesByMintQueryKey(params: TradesByMintQueryParams): unknown[
|
|
|
794
818
|
declare function fetchTradesByMint(client: IPredictClient, params: TradesByMintQueryParams): Promise<MultiTradeResponse>;
|
|
795
819
|
declare function useTradesByMintQuery(params: TradesByMintQueryParams, queryOptions?: Omit<UseQueryOptions<MultiTradeResponse, Error, MultiTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiTradeResponse, Error>;
|
|
796
820
|
|
|
821
|
+
declare function onchainTradesByWalletQueryKey(params: OnchainTradesByWalletQueryParams): unknown[];
|
|
822
|
+
declare function fetchOnchainTradesByWallet(client: IPredictClient, params: OnchainTradesByWalletQueryParams): Promise<MultiOnchainTradeResponse>;
|
|
823
|
+
declare function useOnchainTradesByWalletQuery(params: OnchainTradesByWalletQueryParams, queryOptions?: Omit<UseQueryOptions<MultiOnchainTradeResponse, Error, MultiOnchainTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiOnchainTradeResponse, Error>;
|
|
824
|
+
declare function onchainTradesByEventQueryKey(params: OnchainTradesByEventQueryParams): unknown[];
|
|
825
|
+
declare function fetchOnchainTradesByEvent(client: IPredictClient, params: OnchainTradesByEventQueryParams): Promise<MultiOnchainTradeResponse>;
|
|
826
|
+
declare function useOnchainTradesByEventQuery(params: OnchainTradesByEventQueryParams, queryOptions?: Omit<UseQueryOptions<MultiOnchainTradeResponse, Error, MultiOnchainTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiOnchainTradeResponse, Error>;
|
|
827
|
+
declare function onchainTradesByMarketQueryKey(params: OnchainTradesByMarketQueryParams): unknown[];
|
|
828
|
+
declare function fetchOnchainTradesByMarket(client: IPredictClient, params: OnchainTradesByMarketQueryParams): Promise<MultiOnchainTradeResponse>;
|
|
829
|
+
declare function useOnchainTradesByMarketQuery(params: OnchainTradesByMarketQueryParams, queryOptions?: Omit<UseQueryOptions<MultiOnchainTradeResponse, Error, MultiOnchainTradeResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<MultiOnchainTradeResponse, Error>;
|
|
830
|
+
|
|
831
|
+
type OnchainTradesInfiniteOptions = Omit<UseInfiniteQueryOptions<MultiOnchainTradeResponse, Error, InfiniteData<MultiOnchainTradeResponse>, unknown[], string | undefined>, "queryKey" | "queryFn" | "getNextPageParam" | "initialPageParam">;
|
|
832
|
+
declare function onchainTradesByWalletInfiniteQueryKey(params: Omit<OnchainTradesByWalletQueryParams, "cursor">): unknown[];
|
|
833
|
+
declare function useOnchainTradesByWalletInfiniteQuery(params: Omit<OnchainTradesByWalletQueryParams, "cursor">, options?: OnchainTradesInfiniteOptions): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<MultiOnchainTradeResponse, unknown>, Error>;
|
|
834
|
+
declare function onchainTradesByEventInfiniteQueryKey(params: Omit<OnchainTradesByEventQueryParams, "cursor">): unknown[];
|
|
835
|
+
declare function useOnchainTradesByEventInfiniteQuery(params: Omit<OnchainTradesByEventQueryParams, "cursor">, options?: OnchainTradesInfiniteOptions): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<MultiOnchainTradeResponse, unknown>, Error>;
|
|
836
|
+
declare function onchainTradesByMarketInfiniteQueryKey(params: Omit<OnchainTradesByMarketQueryParams, "cursor">): unknown[];
|
|
837
|
+
declare function useOnchainTradesByMarketInfiniteQuery(params: Omit<OnchainTradesByMarketQueryParams, "cursor">, options?: OnchainTradesInfiniteOptions): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<MultiOnchainTradeResponse, unknown>, Error>;
|
|
838
|
+
|
|
797
839
|
interface UseEventCandlesticksParams extends CandlesticksQueryParams {
|
|
798
840
|
/** Event ticker */
|
|
799
841
|
ticker: string;
|
|
@@ -855,6 +897,27 @@ declare function searchQueryKey(params: SearchQueryParams): unknown[];
|
|
|
855
897
|
declare function fetchSearch(client: IPredictClient, params: SearchQueryParams): Promise<SearchResponse>;
|
|
856
898
|
declare function useSearchQuery(params: SearchQueryParams, queryOptions?: Omit<UseQueryOptions<SearchResponse, Error, SearchResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<SearchResponse, Error>;
|
|
857
899
|
|
|
900
|
+
declare function positionsByWalletQueryKey(params: PositionsByWalletQueryParams): unknown[];
|
|
901
|
+
declare function fetchPositionsByWallet(client: IPredictClient, params: PositionsByWalletQueryParams): Promise<WalletPositionsResponse>;
|
|
902
|
+
declare function usePositionsByWalletQuery(params: PositionsByWalletQueryParams, queryOptions?: Omit<UseQueryOptions<WalletPositionsResponse, Error, WalletPositionsResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<WalletPositionsResponse, Error>;
|
|
903
|
+
|
|
904
|
+
declare function useUserPredictContext(): UserPredictContextValue;
|
|
905
|
+
|
|
906
|
+
interface MarketPositionsResult {
|
|
907
|
+
/** Positions matching the given market */
|
|
908
|
+
positions: WalletPositionItem[];
|
|
909
|
+
/** Whether the positions query is loading */
|
|
910
|
+
isLoading: boolean;
|
|
911
|
+
/** Whether UserPredictProvider is available in the tree */
|
|
912
|
+
isAvailable: boolean;
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Returns the current user's positions filtered to a specific market.
|
|
916
|
+
* Safe to call without UserPredictProvider — returns empty positions
|
|
917
|
+
* with `isAvailable: false`.
|
|
918
|
+
*/
|
|
919
|
+
declare function useMarketPositions(market: StandardMarket): MarketPositionsResult;
|
|
920
|
+
|
|
858
921
|
declare function outcomeMintsQueryKey(params?: OutcomeMintsQueryParams): unknown[];
|
|
859
922
|
declare function fetchOutcomeMints(client: IPredictClient, params?: OutcomeMintsQueryParams): Promise<OutcomeMintsResponse>;
|
|
860
923
|
declare function useOutcomeMintsQuery(params?: OutcomeMintsQueryParams, options?: Omit<UseQueryOptions<OutcomeMintsResponse, Error, OutcomeMintsResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<OutcomeMintsResponse, Error>;
|
|
@@ -1039,4 +1102,4 @@ interface UseOrderbookSubscriptionResult {
|
|
|
1039
1102
|
*/
|
|
1040
1103
|
declare function useOrderbookSubscription({ client, all, tickers, enabled, onUpdate, }: UseOrderbookSubscriptionParams): UseOrderbookSubscriptionResult;
|
|
1041
1104
|
|
|
1042
|
-
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, EventsPage, type EventsPageProps, EventsSkeleton, type EventsSkeletonProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, MarketQueryParams, MarketsBatchRequest, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SearchQueryParams, SearchResponse, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, VenueListResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketsBatchQuery, useMarketsQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePredictClient, usePredictContext, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchQuery, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|
|
1105
|
+
export { CHART_RANGE_DURATION, CHART_RANGE_PERIOD, CHART_RANGE_SAMPLE_INTERVAL, CandlestickPeriod, type CandlestickPeriodType, CandlesticksQueryParams, CandlesticksResponse, CategoriesSkeleton, CategoriesUI, type CategoriesUIProps, CategoriesWidget, type CategoriesWidgetProps, type CategorySelection, ChartRange, type ChartRangeType, DEFAULT_CHART_RANGE, DEFAULT_PAGE_SIZE, DEFAULT_PRICE_HISTORY_INTERVAL, type EventCategory, EventDetailPage, type EventDetailPageProps, EventDetailSkeleton, type EventDetailSkeletonProps, EventDetailUI, type EventDetailUIProps, EventDetailWidget, type EventDetailWidgetProps, EventItemSkeleton, type EventItemSkeletonProps, EventItemUI, type EventItemUIProps, EventMarketDetailWidget, type EventMarketDetailWidgetProps, EventQueryParams, EventsPage, type EventsPageProps, EventsSkeleton, type EventsSkeletonProps, EventsUI, type EventsUIProps, EventsWidget, type EventsWidgetProps, FilterOutcomeMintsRequest, FilterOutcomeMintsResponse, FiltersBySportsResponse, ForecastPercentileHistoryByMintQueryParams, ForecastPercentileHistoryQueryParams, ForecastPercentileHistoryResponse, IPredictClient, IPredictWsClient, IntentQuoteQueryParams, IntentQuoteResponse, IntentSwapRequestBody, IntentSwapResponse, LiveDataByEventQueryParams, LiveDataByMintQueryParams, LiveDataQueryParams, LiveDataResponse, MAX_PRICE_HISTORY_MARKETS, type MarketPositionsResult, MarketQueryParams, MarketsBatchRequest, MultiOnchainTradeResponse, MultiTradeResponse, ORDER_MAX_PRICE, ORDER_MIN_PRICE, ORDER_MIN_QUANTITY, ORDER_PRICE_STEP, OnchainTradesByEventQueryParams, OnchainTradesByMarketQueryParams, OnchainTradesByWalletQueryParams, OpenOrdersUI, type OpenOrdersUIProps, OpenOrdersWidget, type OpenOrdersWidgetProps, type Order, type OrderBookRow, OrderBookUI, type OrderBookUIProps, OrderBookWidget, type OrderBookWidgetProps, OrderQueryParams, OrderResponse, OrderStatusQueryParams, OrderStatusResponse, type OrderbookData, OrderbookLevel, OrderbookResponse, OutcomeMintsQueryParams, OutcomeMintsResponse, PRICE_HISTORY_SAMPLE_INTERVAL, type Position, PositionsByWalletQueryParams, type PositionsSummary, PositionsUI, type PositionsUIProps, PositionsWidget, type PositionsWidgetProps, PredictContext, type PredictContextValue, PredictProvider, type PredictProviderProps, PredictionMarketInitQueryParams, PredictionMarketInitResponse, type PriceData, PriceHistoryInterval, type PriceHistoryIntervalType, QuoteQueryParams, QuoteResponse, SearchQueryParams, SearchResponse, SeriesListResponse, SeriesQueryParams, SeriesResponse, SingleTradeResponse, StandardEvent, StandardEventsResponse, StandardMarket, StandardMarketsResponse, SwapInstructionsResponse, SwapRequestBody, SwapResponse, TagsByCategoriesResponse, TokenListResponse, TokenListWithDecimalsResponse, type TradeData, TradeFormSkeleton, TradeFormUI, type TradeFormUIProps, type TradeFormValidation, TradeFormWidget, type TradeFormWidgetProps, TradeHistoryUI, type TradeHistoryUIProps, TradeHistoryWidget, type TradeHistoryWidgetProps, type TradeOutcome, type TradeSide, TradesByMintQueryParams, TradesQueryParams, type UseEventByIdQueryParams, type UseEventCandlesticksParams, type UseEventDetailParams, type UseEventsCategoriesResult, type UseEventsParams, type UseEventsResult, type UseMarketByIdQueryParams, type UseMarketCandlesticksByMintParams, type UseMarketCandlesticksParams, type UseOpenOrdersParams, type UseOpenOrdersResult, type UseOrderBookParams, type UseOrderBookResult, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UsePositionsParams, type UsePositionsResult, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseTradeFormParams, type UseTradeFormResult, type UseTradeHistoryParams, type UseTradeHistoryResult, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWsClientResult, type UseWsConnectionParams, type UseWsConnectionResult, UserPredictContext, type UserPredictContextValue, UserPredictProvider, type UserPredictProviderProps, VenueListResponse, WalletPositionItem, WalletPositionsResponse, WsConnectionStatus, WsOrderbookUpdate, WsPriceUpdate, WsTradeUpdate, createSwap, createSwapInstructions, eventByIdQueryKey, eventCandlesticksQueryKey, eventsInfiniteQueryKey, eventsQueryKey, fetchEventById, fetchEventCandlesticks, fetchEvents, fetchFiltersBySports, fetchForecastPercentileHistory, fetchForecastPercentileHistoryByMint, fetchIntentQuote, fetchLiveData, fetchLiveDataByEvent, fetchLiveDataByMint, fetchMarketById, fetchMarketByMint, fetchMarketCandlesticks, fetchMarketCandlesticksByMint, fetchMarkets, fetchMarketsBatch, fetchOnchainTradesByEvent, fetchOnchainTradesByMarket, fetchOnchainTradesByWallet, fetchOrder, fetchOrderBook, fetchOrderBookByMint, fetchOrderStatus, fetchOutcomeMints, fetchPositionsByWallet, fetchQuote, fetchSearch, fetchSeries, fetchSeriesByTicker, fetchTagsByCategories, fetchTokens, fetchTokensWithDecimals, fetchTrades, fetchTradesByMint, fetchVenues, filterOutcomeMints, filtersBySportsQueryKey, forecastPercentileHistoryByMintQueryKey, forecastPercentileHistoryQueryKey, initPredictionMarket, intentQuoteQueryKey, liveDataByEventQueryKey, liveDataByMintQueryKey, liveDataQueryKey, marketByIdQueryKey, marketByMintQueryKey, marketCandlesticksByMintQueryKey, marketCandlesticksQueryKey, marketsBatchQueryKey, marketsQueryKey, onchainTradesByEventInfiniteQueryKey, onchainTradesByEventQueryKey, onchainTradesByMarketInfiniteQueryKey, onchainTradesByMarketQueryKey, onchainTradesByWalletInfiniteQueryKey, onchainTradesByWalletQueryKey, orderBookByMintQueryKey, orderBookQueryKey, orderQueryKey, orderStatusQueryKey, outcomeMintsQueryKey, positionsByWalletQueryKey, quoteQueryKey, searchQueryKey, seriesByTickerQueryKey, seriesQueryKey, submitIntentSwap, tagsByCategoriesQueryKey, tokensQueryKey, tokensWithDecimalsQueryKey, tradesByMintQueryKey, tradesQueryKey, useCategoriesQuery, useCreateSwapInstructionsMutation, useCreateSwapMutation, useEventByIdQuery, useEventCandlesticksQuery, useEventDetail, useEvents, useEventsCategories, useEventsInfiniteQuery, useEventsQuery, useFilterOutcomeMintsMutation, useFiltersBySportsQuery, useForecastPercentileHistoryByMintQuery, useForecastPercentileHistoryQuery, useInitPredictionMarketMutation, useIntentQuoteQuery, useLiveDataByEventQuery, useLiveDataByMintQuery, useLiveDataQuery, useMarketByIdQuery, useMarketByMintQuery, useMarketCandlesticksByMintQuery, useMarketCandlesticksQuery, useMarketPositions, useMarketsBatchQuery, useMarketsQuery, useOnchainTradesByEventInfiniteQuery, useOnchainTradesByEventQuery, useOnchainTradesByMarketInfiniteQuery, useOnchainTradesByMarketQuery, useOnchainTradesByWalletInfiniteQuery, useOnchainTradesByWalletQuery, useOpenOrders, useOrderBook, useOrderBookByMintQuery, useOrderBookQuery, useOrderQuery, useOrderStatusQuery, useOrderbookSubscription, useOutcomeMintsQuery, usePositions, usePositionsByWalletQuery, usePredictClient, usePredictContext, usePriceHistoryQuery, usePricesSubscription, useQuoteQuery, useSearchQuery, useSeriesByTickerQuery, useSeriesQuery, useSubmitIntentSwapMutation, useTagsByCategoriesQuery, useTokensQuery, useTokensWithDecimalsQuery, useTradeForm, useTradeHistory, useTradesByMintQuery, useTradesQuery, useTradesSubscription, useUserPredictContext, useVenuesQuery, useWsClient, useWsConnection, venuesQueryKey, _default as version };
|