@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.
@@ -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-DJjgOoin.mjs';
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';
@@ -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-DJjgOoin.js';
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';
@@ -646,6 +646,8 @@ interface WalletPositionItem {
646
646
  interface WalletPositionsResponse {
647
647
  /** Wallet address */
648
648
  wallet: string;
649
+ /** USDC balance (UI amount) */
650
+ usdcBalance: number;
649
651
  /** List of positions */
650
652
  positions: WalletPositionItem[];
651
653
  }
@@ -646,6 +646,8 @@ interface WalletPositionItem {
646
646
  interface WalletPositionsResponse {
647
647
  /** Wallet address */
648
648
  wallet: string;
649
+ /** USDC balance (UI amount) */
650
+ usdcBalance: number;
649
651
  /** List of positions */
650
652
  positions: WalletPositionItem[];
651
653
  }
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-DJjgOoin.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-DJjgOoin.mjs';
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.48";
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-DJjgOoin.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-DJjgOoin.js';
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.48";
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 */