@liberfi.io/ui-predict 0.1.48 → 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/{index-DJjgOoin.d.mts → index-B-NMsVEe.d.mts} +2 -0
- package/dist/{index-DJjgOoin.d.ts → index-B-NMsVEe.d.ts} +2 -0
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/client/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aJ as BasePredictClient, aM as DflowPredictClient, aN as DflowPredictWsClient, aM as PredictClient, aN as PredictWsClient, aP as WsClientConfig, aK as buildQuery, aO as createDflowPredictWsClient, aO as createPredictWsClient, aL as toRecord } from '../index-
|
|
1
|
+
export { aJ as BasePredictClient, aM as DflowPredictClient, aN as DflowPredictWsClient, aM as PredictClient, aN as PredictWsClient, aP as WsClientConfig, aK as buildQuery, aO as createDflowPredictWsClient, aO as createPredictWsClient, aL as toRecord } from '../index-B-NMsVEe.mjs';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aJ as BasePredictClient, aM as DflowPredictClient, aN as DflowPredictWsClient, aM as PredictClient, aN as PredictWsClient, aP as WsClientConfig, aK as buildQuery, aO as createDflowPredictWsClient, aO as createPredictWsClient, aL as toRecord } from '../index-
|
|
1
|
+
export { aJ as BasePredictClient, aM as DflowPredictClient, aN as DflowPredictWsClient, aM as PredictClient, aN as PredictWsClient, aP as WsClientConfig, aK as buildQuery, aO as createDflowPredictWsClient, aO as createPredictWsClient, aL as toRecord } from '../index-B-NMsVEe.js';
|
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, 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-
|
|
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-
|
|
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 */
|
|
@@ -734,6 +734,8 @@ declare const PredictContext: react.Context<PredictContextValue>;
|
|
|
734
734
|
interface UserPredictContextValue {
|
|
735
735
|
/** User's wallet positions */
|
|
736
736
|
positions: WalletPositionItem[];
|
|
737
|
+
/** USDC balance (UI amount) */
|
|
738
|
+
usdcBalance: number;
|
|
737
739
|
/** Whether positions are currently loading for the first time */
|
|
738
740
|
isLoading: boolean;
|
|
739
741
|
/** Error from the latest fetch, null if none */
|
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, 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-
|
|
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-
|
|
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 */
|
|
@@ -734,6 +734,8 @@ declare const PredictContext: react.Context<PredictContextValue>;
|
|
|
734
734
|
interface UserPredictContextValue {
|
|
735
735
|
/** User's wallet positions */
|
|
736
736
|
positions: WalletPositionItem[];
|
|
737
|
+
/** USDC balance (UI amount) */
|
|
738
|
+
usdcBalance: number;
|
|
737
739
|
/** Whether positions are currently loading for the first time */
|
|
738
740
|
isLoading: boolean;
|
|
739
741
|
/** Error from the latest fetch, null if none */
|