@agg-build/hooks 2.3.0 → 2.4.4
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/{chunk-UYM2TJOM.mjs → chunk-KVMLKTGS.mjs} +1 -1
- package/dist/{chunk-TILXL4NI.mjs → chunk-RMGSLCL3.mjs} +1 -1
- package/dist/{chunk-R7C4J345.mjs → chunk-STOMNDHO.mjs} +4 -1
- package/dist/deposit.js +4 -1
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +18 -1
- package/dist/index.mjs +17 -3
- package/dist/withdraw.js +4 -1
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useOnWithdrawalLifecycle,
|
|
12
12
|
useSyncBalances,
|
|
13
13
|
useWithdrawManaged
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-STOMNDHO.mjs";
|
|
15
15
|
|
|
16
16
|
// src/withdraw/use-withdraw-flow.ts
|
|
17
17
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
@@ -596,6 +596,7 @@ var enUsLabels = {
|
|
|
596
596
|
venuePlural: "Venues",
|
|
597
597
|
matched: "Matched",
|
|
598
598
|
matchedCount: (count) => `${count} ${count === 1 ? "Match" : "Matches"}`,
|
|
599
|
+
remainingMarkets: (count) => `+${count} ${count === 1 ? "market" : "markets"}`,
|
|
599
600
|
priceGap: "Price Gap"
|
|
600
601
|
},
|
|
601
602
|
eventItemDetails: {
|
|
@@ -620,7 +621,7 @@ var enUsLabels = {
|
|
|
620
621
|
marketSelectEmpty: "No markets found"
|
|
621
622
|
},
|
|
622
623
|
settlementSummary: {
|
|
623
|
-
title: "Settlement",
|
|
624
|
+
title: "Settlement differences",
|
|
624
625
|
readFullDetails: "Read full details",
|
|
625
626
|
showLess: "Show less"
|
|
626
627
|
},
|
|
@@ -687,6 +688,8 @@ var enUsLabels = {
|
|
|
687
688
|
trading: {
|
|
688
689
|
settlementSection: "Settlement",
|
|
689
690
|
settlementDifferencesTitle: "Key differences across venues",
|
|
691
|
+
settlementCriticalDifferenceLabel: "Critical",
|
|
692
|
+
settlementValueUnavailable: "Not provided",
|
|
690
693
|
settlementLoading: "Loading settlement",
|
|
691
694
|
settlementDetailsAria: (venueLabel) => `${venueLabel} settlement details`,
|
|
692
695
|
settlementShowMoreAria: (ctaLabel, venueLabel) => `${ctaLabel} for ${venueLabel}`,
|
package/dist/deposit.js
CHANGED
|
@@ -533,6 +533,7 @@ var enUsLabels = {
|
|
|
533
533
|
venuePlural: "Venues",
|
|
534
534
|
matched: "Matched",
|
|
535
535
|
matchedCount: (count) => `${count} ${count === 1 ? "Match" : "Matches"}`,
|
|
536
|
+
remainingMarkets: (count) => `+${count} ${count === 1 ? "market" : "markets"}`,
|
|
536
537
|
priceGap: "Price Gap"
|
|
537
538
|
},
|
|
538
539
|
eventItemDetails: {
|
|
@@ -557,7 +558,7 @@ var enUsLabels = {
|
|
|
557
558
|
marketSelectEmpty: "No markets found"
|
|
558
559
|
},
|
|
559
560
|
settlementSummary: {
|
|
560
|
-
title: "Settlement",
|
|
561
|
+
title: "Settlement differences",
|
|
561
562
|
readFullDetails: "Read full details",
|
|
562
563
|
showLess: "Show less"
|
|
563
564
|
},
|
|
@@ -624,6 +625,8 @@ var enUsLabels = {
|
|
|
624
625
|
trading: {
|
|
625
626
|
settlementSection: "Settlement",
|
|
626
627
|
settlementDifferencesTitle: "Key differences across venues",
|
|
628
|
+
settlementCriticalDifferenceLabel: "Critical",
|
|
629
|
+
settlementValueUnavailable: "Not provided",
|
|
627
630
|
settlementLoading: "Loading settlement",
|
|
628
631
|
settlementDetailsAria: (venueLabel) => `${venueLabel} settlement details`,
|
|
629
632
|
settlementShowMoreAria: (ctaLabel, venueLabel) => `${ctaLabel} for ${venueLabel}`,
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KVMLKTGS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__async,
|
|
7
7
|
useAggAuthState,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useDepositAddresses,
|
|
12
12
|
useOptionalAggClient,
|
|
13
13
|
useSyncBalances
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-STOMNDHO.mjs";
|
|
15
15
|
|
|
16
16
|
// src/deposit/normalize-wallet-error.ts
|
|
17
17
|
function normalizeWalletError(error, supportedChains) {
|
package/dist/index.d.mts
CHANGED
|
@@ -363,6 +363,8 @@ type VenueEvent = {
|
|
|
363
363
|
structureType?: "candidate" | "sport" | "axis" | "dates" | null | undefined;
|
|
364
364
|
/** Canonical sport slug for sports events (e.g. "basketball", "soccer"); null for non-sports. */
|
|
365
365
|
sport?: string | null | undefined;
|
|
366
|
+
/** Structured per-venue settlement key-differences for this event's cluster. */
|
|
367
|
+
settlementDiff?: SettlementDiff | null | undefined;
|
|
366
368
|
};
|
|
367
369
|
type Orderbook = {
|
|
368
370
|
bids: {
|
|
@@ -403,6 +405,16 @@ type VenueMarketOutcome = {
|
|
|
403
405
|
type VenueEventWithMarkets = VenueEvent & {
|
|
404
406
|
venueMarkets: VenueMarket[];
|
|
405
407
|
};
|
|
408
|
+
type SettlementDifference = {
|
|
409
|
+
type: string;
|
|
410
|
+
title: string;
|
|
411
|
+
perVenue: Record<string, string>;
|
|
412
|
+
summary?: string | undefined;
|
|
413
|
+
};
|
|
414
|
+
type SettlementDiff = {
|
|
415
|
+
sharedSummary: string;
|
|
416
|
+
differences: SettlementDifference[];
|
|
417
|
+
};
|
|
406
418
|
|
|
407
419
|
declare function getWalletAddressFromUserProfile(user: UserProfile | undefined): string | undefined;
|
|
408
420
|
|
|
@@ -842,6 +854,7 @@ interface AggUiLabels {
|
|
|
842
854
|
venuePlural: string;
|
|
843
855
|
matched: string;
|
|
844
856
|
matchedCount: (count: number) => string;
|
|
857
|
+
remainingMarkets: (count: number) => string;
|
|
845
858
|
priceGap: string;
|
|
846
859
|
};
|
|
847
860
|
eventItemDetails: {
|
|
@@ -933,6 +946,8 @@ interface AggUiLabels {
|
|
|
933
946
|
trading: {
|
|
934
947
|
settlementSection: string;
|
|
935
948
|
settlementDifferencesTitle: string;
|
|
949
|
+
settlementCriticalDifferenceLabel: string;
|
|
950
|
+
settlementValueUnavailable: string;
|
|
936
951
|
settlementLoading: string;
|
|
937
952
|
settlementDetailsAria: (venueLabel: string) => string;
|
|
938
953
|
settlementShowMoreAria: (ctaLabel: string, venueLabel: string) => string;
|
|
@@ -5708,4 +5723,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5708
5723
|
*/
|
|
5709
5724
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5710
5725
|
|
|
5711
|
-
export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
|
|
5726
|
+
export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
|
package/dist/index.d.ts
CHANGED
|
@@ -363,6 +363,8 @@ type VenueEvent = {
|
|
|
363
363
|
structureType?: "candidate" | "sport" | "axis" | "dates" | null | undefined;
|
|
364
364
|
/** Canonical sport slug for sports events (e.g. "basketball", "soccer"); null for non-sports. */
|
|
365
365
|
sport?: string | null | undefined;
|
|
366
|
+
/** Structured per-venue settlement key-differences for this event's cluster. */
|
|
367
|
+
settlementDiff?: SettlementDiff | null | undefined;
|
|
366
368
|
};
|
|
367
369
|
type Orderbook = {
|
|
368
370
|
bids: {
|
|
@@ -403,6 +405,16 @@ type VenueMarketOutcome = {
|
|
|
403
405
|
type VenueEventWithMarkets = VenueEvent & {
|
|
404
406
|
venueMarkets: VenueMarket[];
|
|
405
407
|
};
|
|
408
|
+
type SettlementDifference = {
|
|
409
|
+
type: string;
|
|
410
|
+
title: string;
|
|
411
|
+
perVenue: Record<string, string>;
|
|
412
|
+
summary?: string | undefined;
|
|
413
|
+
};
|
|
414
|
+
type SettlementDiff = {
|
|
415
|
+
sharedSummary: string;
|
|
416
|
+
differences: SettlementDifference[];
|
|
417
|
+
};
|
|
406
418
|
|
|
407
419
|
declare function getWalletAddressFromUserProfile(user: UserProfile | undefined): string | undefined;
|
|
408
420
|
|
|
@@ -842,6 +854,7 @@ interface AggUiLabels {
|
|
|
842
854
|
venuePlural: string;
|
|
843
855
|
matched: string;
|
|
844
856
|
matchedCount: (count: number) => string;
|
|
857
|
+
remainingMarkets: (count: number) => string;
|
|
845
858
|
priceGap: string;
|
|
846
859
|
};
|
|
847
860
|
eventItemDetails: {
|
|
@@ -933,6 +946,8 @@ interface AggUiLabels {
|
|
|
933
946
|
trading: {
|
|
934
947
|
settlementSection: string;
|
|
935
948
|
settlementDifferencesTitle: string;
|
|
949
|
+
settlementCriticalDifferenceLabel: string;
|
|
950
|
+
settlementValueUnavailable: string;
|
|
936
951
|
settlementLoading: string;
|
|
937
952
|
settlementDetailsAria: (venueLabel: string) => string;
|
|
938
953
|
settlementShowMoreAria: (ctaLabel: string, venueLabel: string) => string;
|
|
@@ -5708,4 +5723,4 @@ declare function useAppConfig(): UseAppConfigResult;
|
|
|
5708
5723
|
*/
|
|
5709
5724
|
declare function useCachedAppConfig(): UseAppConfigResult;
|
|
5710
5725
|
|
|
5711
|
-
export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
|
|
5726
|
+
export { AUTH_CHOOSER_OPEN_EVENT, type AggAuthContextValue, type AggAuthSignInOptions, type AggBalanceContextValue, AggBalanceProvider, AggProvider, type AggProviderProps, AggProvider as AggSdkProvider, type AggProviderProps as AggSdkProviderProps, type AggUiConfig, type AggUiConfigInput, type AggUiLabels, type AggUiLabelsInput, AggUiProvider, type AggUiTradingExecutionMode, CHART_TIME_RANGES, CONFIRMED_MATCH_STATUSES, type ChartTimeRange, type ClosedPositionTotals, type ComputePriceGapsOptions, DEFAULT_AGG_ROOT_CLASS_NAME, type DagStepProgress, type EventListStateContextValue, EventListStateProvider, type EventListStateSnapshot, type EventTradingContextValue, type EventTradingState, type ExecutionProgressPhase, type ExecutionTerminalOrderEvent, type GeoBlockState, type GetOrdersQuery, type GetPositionsQuery, type InvalidateUserActivityOptions, type InvalidateUserMoneyStateOptions, type LiveBestPriceCandidate, type LiveBestPriceCandidates, type LiveBestPrices, type LiveCandle, MAX_PRICE_GAP_PCT, MIN_PRICE_GAP_PCT, type MarketChartCandle, type MarketChartData, type MarketChartVenueData, type MarketOrderbookData, type MarketOrderbookIntegrity, MarketStatus, type MarketTradingState, MatchStatus, MatchType, type OrderEligibility, type OrderEligibilityReason, type OrderListItem, type OrderbookResult, type PositionGroup, type PriceGapValue, type RedeemEvent, type RedeemLegLifecycle, type RedeemLifecycleState, RedeemRejectedError, type RollingChartWindow, type ScaledCandlePoint, type SdkUiConfig, type SdkUiConfigInput, type SdkUiProviderProps, type SettlementDiff, type SettlementDifference, type SmartRouteLoadingReason, type ThemeMode, TradeSide, type TradingAction, type TradingState, type TradingStateBase, type TradingStateKind, type UseAggAuthOptions, type UseAggAuthReturn, type UseAppConfigResult, type UseArbFeedResult, type UseCategoriesOptions, type UseCategoryChildrenOptions, type UseEnrichedVenueEventOptions, type UseExecuteManagedOptions, type UseExecutionOrdersOptions, type UseExecutionPositionsOptions, type UseExecutionProgressOptions, type UseExecutionProgressResult, type UseExternalIdOptions, type UseExternalIdReturn, type UseLinkAccountReturn, type UseLiveCandleOverlayOptions, type UseLiveCandleOverlayResult, type UseLiveCandlesOptions, type UseLiveCandlesResult, type UseLiveMarketResult, type UseMarketArbResult, type UseMarketChartOptions, type UseMarketChartResult, type UseMarketOrderbookOptions, type UseMarketOrderbookResult, type UseMarketOrderbookVenueOutcome, type UseMarketSearchOptions, type UseMidpointsOptions, type UseMidpointsResult, type UseOrderBookOptions, type UseOrderbookQuoteOptions, type UseOrderbookQuoteResult, type UseOrdersOptions, type UsePositionsOptions, type UseQuoteManagedOptions, type UseRedeemLifecycleInput, type UseRollingChartWindowOptions, type UseSearchOptions, type UseSmartRouteOptions, type UseSmartRouteResult, type UseUserActivityOptions, type UseUserHoldingsOptions, type UseVenueEventOptions, type UseVenueEventsOptions, type UseVenueMarketMidpointsOptions, type UseVenueMarketsOptions, type UseViewportMidpointsOptions, type UseVisibleIdsOptions, type UseVisibleIdsResult, type UserActivityInvalidationStrategy, Venue, type VenueAvailabilityState, type VenueEvent, type VenueEventWithMarkets, type VenueMarket, type VenueMarketOutcome, type WalletActionSendTokenParams, type WalletActions, buildLiveBestPriceCandidates, computeClosedPositionTotals, computePriceGaps, defaultAggUiConfig, defaultAggUiConfig as defaultSdkUiConfig, executionKeys, extractOutcomeBestCandidate, findLivePriceById, getBuilder, getOrCreateBuilder, getVenueAvailabilityState, getVisibleVenueIdsByConfig, getVisibleVenuesByConfig, getWalletAddressFromUserProfile, invalidateBalanceQueries, invalidatePositionQueries, invalidateUserActivityQueries, invalidateUserClaimState, invalidateUserMoneyState, isVenueDisabledByConfig, mergeBestPricesPreferringLive, normalizeVenueId, optimizedImageUrl, parseEmail, parseEmailStrict, rangeToSeconds, requestAggAuthChooserOpen, resolveAggUiLabels, resolveDefaultMarket as resolveDefaultTradingMarket, resolveEventTradingState, resolveMarketTradingState, resolveMarketWinningOutcome, resolveOrderEligibility, resolveRollingWindow, resolveTradingStateKind, sortVenues, timeRangeToInterval, tradingReducer, useAggAuth, useAggAuthContext, useAggAuthState, useAggBalance, useAggBalanceContext, useAggBalanceState, useAggClient, useAggLabels, useAggUiConfig, useAggWebSocket, useAppConfig, useArbFeed, useCachedAppConfig, useCategories, useCategoryChildren, useDebouncedValue, useEnrichedVenueEvent, useEventListState, useEventOrderbookData, useEventTradingContext, useExecuteManaged, useExecutionOrders, useExecutionPositions, useExecutionProgress, useExternalId, useGeoBlock, useLabels, useLinkAccount, useLiveBestPriceCandidates, useLiveBestPrices, useLiveCandleOverlay, useLiveCandles, useLiveMarket, useLiveMarketStores, useLiveOutcomePrices, useLiveTrades, useMarketArb, useMarketChart, useMarketOrderbook, useMarketSearch, useMidpoints, useOnBalanceUpdate, useOnOrderEvent, useOnOrderSubmitted, useOnRedeemEvent, useOnWithdrawalLifecycle, useOptionalAggClient, useOrderBook, useOrderbookQuote, useOrders, usePositions, useQuoteManaged, useRampQuotes, useRampSession, useRedeem, useRedeemEligibleCount, useRedeemLifecycle, useRedeemLifecycles, useRollingChartWindow, useSdkLabels, useSdkUiConfig, useSearch, useSmartRoute, useUserActivity, useUserHoldings, useVenueEvent, useVenueEvents, useVenueMarketMidpoints, useVenueMarkets, useViewportMidpoints, useVisibleIds, userActivityQueryKeys };
|
package/dist/index.js
CHANGED
|
@@ -918,6 +918,7 @@ var enUsLabels = {
|
|
|
918
918
|
venuePlural: "Venues",
|
|
919
919
|
matched: "Matched",
|
|
920
920
|
matchedCount: (count) => `${count} ${count === 1 ? "Match" : "Matches"}`,
|
|
921
|
+
remainingMarkets: (count) => `+${count} ${count === 1 ? "market" : "markets"}`,
|
|
921
922
|
priceGap: "Price Gap"
|
|
922
923
|
},
|
|
923
924
|
eventItemDetails: {
|
|
@@ -942,7 +943,7 @@ var enUsLabels = {
|
|
|
942
943
|
marketSelectEmpty: "No markets found"
|
|
943
944
|
},
|
|
944
945
|
settlementSummary: {
|
|
945
|
-
title: "Settlement",
|
|
946
|
+
title: "Settlement differences",
|
|
946
947
|
readFullDetails: "Read full details",
|
|
947
948
|
showLess: "Show less"
|
|
948
949
|
},
|
|
@@ -1009,6 +1010,8 @@ var enUsLabels = {
|
|
|
1009
1010
|
trading: {
|
|
1010
1011
|
settlementSection: "Settlement",
|
|
1011
1012
|
settlementDifferencesTitle: "Key differences across venues",
|
|
1013
|
+
settlementCriticalDifferenceLabel: "Critical",
|
|
1014
|
+
settlementValueUnavailable: "Not provided",
|
|
1012
1015
|
settlementLoading: "Loading settlement",
|
|
1013
1016
|
settlementDetailsAria: (venueLabel) => `${venueLabel} settlement details`,
|
|
1014
1017
|
settlementShowMoreAria: (ctaLabel, venueLabel) => `${ctaLabel} for ${venueLabel}`,
|
|
@@ -7598,6 +7601,19 @@ var import_react34 = require("react");
|
|
|
7598
7601
|
|
|
7599
7602
|
// src/use-venue-event.ts
|
|
7600
7603
|
var import_react_query34 = require("@tanstack/react-query");
|
|
7604
|
+
var RESOLUTION_POLL_MS = 15e3;
|
|
7605
|
+
var RESOLUTION_POLL_MAX_PAST_END_MS = 60 * 6e4;
|
|
7606
|
+
function resolutionPollInterval(event) {
|
|
7607
|
+
var _a;
|
|
7608
|
+
if (!((_a = event == null ? void 0 : event.venueMarkets) == null ? void 0 : _a.length)) return false;
|
|
7609
|
+
const now = Date.now();
|
|
7610
|
+
const shouldPoll = event.venueMarkets.some((market) => {
|
|
7611
|
+
if (market.status !== "open" /* open */ || !market.endDate) return false;
|
|
7612
|
+
const endsAt = new Date(market.endDate).getTime();
|
|
7613
|
+
return Number.isFinite(endsAt) && now > endsAt && now < endsAt + RESOLUTION_POLL_MAX_PAST_END_MS;
|
|
7614
|
+
});
|
|
7615
|
+
return shouldPoll ? RESOLUTION_POLL_MS : false;
|
|
7616
|
+
}
|
|
7601
7617
|
function useVenueEvent(options) {
|
|
7602
7618
|
var _a;
|
|
7603
7619
|
const client = useAggClient();
|
|
@@ -7613,6 +7629,7 @@ function useVenueEvent(options) {
|
|
|
7613
7629
|
refetchOnWindowFocus: true,
|
|
7614
7630
|
refetchOnReconnect: true,
|
|
7615
7631
|
refetchOnMount: true,
|
|
7632
|
+
refetchInterval: (query2) => resolutionPollInterval(query2.state.data),
|
|
7616
7633
|
retry: 1
|
|
7617
7634
|
});
|
|
7618
7635
|
return __spreadProps(__spreadValues({}, query), {
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KVMLKTGS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useWithdrawEstimate,
|
|
7
7
|
useWithdrawFlow,
|
|
8
8
|
useWithdrawPreview,
|
|
9
9
|
useWithdrawalLifecycle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RMGSLCL3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
AggAuthContext,
|
|
13
13
|
AggBalanceProvider,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
useSyncBalances,
|
|
96
96
|
useWithdrawManaged,
|
|
97
97
|
userActivityQueryKeys
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-STOMNDHO.mjs";
|
|
99
99
|
|
|
100
100
|
// src/index.ts
|
|
101
101
|
import { QueryClient as QueryClient4, QueryClientProvider, useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
@@ -2404,6 +2404,19 @@ import { useMemo as useMemo10 } from "react";
|
|
|
2404
2404
|
|
|
2405
2405
|
// src/use-venue-event.ts
|
|
2406
2406
|
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
2407
|
+
var RESOLUTION_POLL_MS = 15e3;
|
|
2408
|
+
var RESOLUTION_POLL_MAX_PAST_END_MS = 60 * 6e4;
|
|
2409
|
+
function resolutionPollInterval(event) {
|
|
2410
|
+
var _a;
|
|
2411
|
+
if (!((_a = event == null ? void 0 : event.venueMarkets) == null ? void 0 : _a.length)) return false;
|
|
2412
|
+
const now = Date.now();
|
|
2413
|
+
const shouldPoll = event.venueMarkets.some((market) => {
|
|
2414
|
+
if (market.status !== "open" /* open */ || !market.endDate) return false;
|
|
2415
|
+
const endsAt = new Date(market.endDate).getTime();
|
|
2416
|
+
return Number.isFinite(endsAt) && now > endsAt && now < endsAt + RESOLUTION_POLL_MAX_PAST_END_MS;
|
|
2417
|
+
});
|
|
2418
|
+
return shouldPoll ? RESOLUTION_POLL_MS : false;
|
|
2419
|
+
}
|
|
2407
2420
|
function useVenueEvent(options) {
|
|
2408
2421
|
var _a;
|
|
2409
2422
|
const client = useAggClient();
|
|
@@ -2419,6 +2432,7 @@ function useVenueEvent(options) {
|
|
|
2419
2432
|
refetchOnWindowFocus: true,
|
|
2420
2433
|
refetchOnReconnect: true,
|
|
2421
2434
|
refetchOnMount: true,
|
|
2435
|
+
refetchInterval: (query2) => resolutionPollInterval(query2.state.data),
|
|
2422
2436
|
retry: 1
|
|
2423
2437
|
});
|
|
2424
2438
|
return __spreadProps(__spreadValues({}, query), {
|
package/dist/withdraw.js
CHANGED
|
@@ -463,6 +463,7 @@ var enUsLabels = {
|
|
|
463
463
|
venuePlural: "Venues",
|
|
464
464
|
matched: "Matched",
|
|
465
465
|
matchedCount: (count) => `${count} ${count === 1 ? "Match" : "Matches"}`,
|
|
466
|
+
remainingMarkets: (count) => `+${count} ${count === 1 ? "market" : "markets"}`,
|
|
466
467
|
priceGap: "Price Gap"
|
|
467
468
|
},
|
|
468
469
|
eventItemDetails: {
|
|
@@ -487,7 +488,7 @@ var enUsLabels = {
|
|
|
487
488
|
marketSelectEmpty: "No markets found"
|
|
488
489
|
},
|
|
489
490
|
settlementSummary: {
|
|
490
|
-
title: "Settlement",
|
|
491
|
+
title: "Settlement differences",
|
|
491
492
|
readFullDetails: "Read full details",
|
|
492
493
|
showLess: "Show less"
|
|
493
494
|
},
|
|
@@ -554,6 +555,8 @@ var enUsLabels = {
|
|
|
554
555
|
trading: {
|
|
555
556
|
settlementSection: "Settlement",
|
|
556
557
|
settlementDifferencesTitle: "Key differences across venues",
|
|
558
|
+
settlementCriticalDifferenceLabel: "Critical",
|
|
559
|
+
settlementValueUnavailable: "Not provided",
|
|
557
560
|
settlementLoading: "Loading settlement",
|
|
558
561
|
settlementDetailsAria: (venueLabel) => `${venueLabel} settlement details`,
|
|
559
562
|
settlementShowMoreAria: (ctaLabel, venueLabel) => `${ctaLabel} for ${venueLabel}`,
|
package/dist/withdraw.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
useWithdrawFlow,
|
|
4
4
|
useWithdrawPreview,
|
|
5
5
|
useWithdrawalLifecycle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RMGSLCL3.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useDepositAddresses,
|
|
9
9
|
useManagedBalances,
|
|
10
10
|
useWithdrawManaged
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-STOMNDHO.mjs";
|
|
12
12
|
export {
|
|
13
13
|
useDepositAddresses,
|
|
14
14
|
useManagedBalances,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/hooks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "React hooks and providers for the AGG prediction market aggregator. Wraps @agg-build/sdk with TanStack Query, shared session state, and live WebSocket data.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|