@agg-build/hooks 4.0.1 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/withdraw.js CHANGED
@@ -101,7 +101,8 @@ var enUsLabels = {
101
101
  limitless: "Limitless",
102
102
  probable: "Probable",
103
103
  myriad: "Myriad",
104
- hyperliquid: "Hyperliquid"
104
+ hyperliquid: "Hyperliquid",
105
+ novig: "Novig"
105
106
  },
106
107
  auth: {
107
108
  connect: (connectorName) => connectorName ? `Sign in with ${connectorName}` : "Sign in",
@@ -382,7 +383,7 @@ var enUsLabels = {
382
383
  userProfile: {
383
384
  tabs: {
384
385
  positions: "Positions",
385
- openOrders: "Open orders",
386
+ openOrders: "Open limit orders",
386
387
  activity: "Activity"
387
388
  },
388
389
  balance: {
@@ -485,6 +486,7 @@ var enUsLabels = {
485
486
  goodTilCanceled: "Good 'til canceled",
486
487
  expired: "Expired",
487
488
  cancel: "Cancel",
489
+ pending: "Pending",
488
490
  cancelOrderAria: (orderId) => `Cancel order ${orderId}`,
489
491
  loading: "Loading open orders",
490
492
  loadingMore: "Loading more open orders",
@@ -563,7 +565,19 @@ var enUsLabels = {
563
565
  volumeSuffix: "Vol.",
564
566
  marketSelectPlaceholder: "Select market",
565
567
  marketSelectSearchPlaceholder: "Search markets...",
566
- marketSelectEmpty: "No markets found"
568
+ marketSelectEmpty: "No markets found",
569
+ moreMarkets: "More",
570
+ liveMarket: "Live"
571
+ },
572
+ sportsLive: {
573
+ scoreAria: (firstName, firstScore, secondName, secondScore, status) => `${firstName} ${firstScore}, ${secondName} ${secondScore}, ${status}`,
574
+ scheduled: "Scheduled",
575
+ live: "Live",
576
+ paused: "Paused",
577
+ finished: "Final",
578
+ cancelled: "Cancelled",
579
+ postponed: "Postponed",
580
+ unknown: "Status unavailable"
567
581
  },
568
582
  settlementSummary: {
569
583
  title: "Settlement differences",
@@ -610,6 +624,7 @@ var enUsLabels = {
610
624
  showOutcomeAria: (label) => `Show ${label} outcome`,
611
625
  viewResolved: "View resolved",
612
626
  hideResolved: "Hide resolved",
627
+ resolvingBadge: "Resolving",
613
628
  resolvingTitle: "Resolving market\u2026",
614
629
  resolvingDescription: "This market has closed. We're waiting for final settlement data and will update the result once it's confirmed on-chain.",
615
630
  volumeUnavailable: "Volume unavailable",
@@ -690,7 +705,9 @@ var enUsLabels = {
690
705
  orderDisabledNoOutcome: "Select an outcome to place an order.",
691
706
  orderDisabledNoEvent: "No event selected.",
692
707
  insufficientBalance: "Insufficient balance",
693
- lowLiquidityWarning: "This market has low liquidity, which may impact execution price for larger orders.",
708
+ insufficientBalanceDetails: "Insufficient balance details",
709
+ lowLiquidityWarning: "Your avg. price is higher than the market price due to your order size and available market liquidity.",
710
+ lowLiquiditySellWarning: "Your avg. price is lower than the market price due to your order size and available market liquidity.",
694
711
  refreshQuote: "Refresh Quote",
695
712
  confirmOrder: "Confirm Order",
696
713
  withdrawSubmitted: "Withdrawal submitted",
@@ -766,6 +783,12 @@ var enUsLabels = {
766
783
  limitPrice: "Limit price",
767
784
  limitPriceInputAria: "Limit price in cents",
768
785
  limitPriceInvalid: "Limit price must be greater than 0 and less than 100.",
786
+ limitPriceAdjusted: (venueLabels, tickSizeCents, originalPriceLabel, side, adjustedPriceLabel) => {
787
+ const venues = venueLabels.length <= 1 ? venueLabels.join("") : venueLabels.length === 2 ? `${venueLabels[0]} and ${venueLabels[1]}` : `${venueLabels.slice(0, -1).join(", ")} and ${venueLabels[venueLabels.length - 1]}`;
788
+ const increment = tickSizeCents === 1 ? "whole cents" : `${tickSizeCents.toLocaleString("en-US", { maximumFractionDigits: 4 })}\xA2 increments`;
789
+ const direction = side === "buy" ? "down" : "up";
790
+ return `${venues} price in ${increment}, so your ${originalPriceLabel} ${side} rounds ${direction} to ${adjustedPriceLabel}`;
791
+ },
769
792
  limitPriceDecreaseAria: "Decrease limit price",
770
793
  limitPriceIncreaseAria: "Increase limit price",
771
794
  expiration: "Expiration",
@@ -809,9 +832,23 @@ var enUsLabels = {
809
832
  updatingRoute: "Updating route\u2026",
810
833
  refreshingQuotes: "Refreshing quotes\u2026",
811
834
  checkingBalance: "Checking balance",
835
+ executingOrder: "Executing order...",
812
836
  submittingOrderProgress: "Submitting order...",
837
+ executionOrderSubmitted: "Order submitted",
813
838
  orderSubmittedProgress: (orderId) => `Order #${orderId.replace(/^#/, "")} submitted`,
814
839
  executingOnVenue: (venueLabel) => `Executing on ${venueLabel}...`,
840
+ venueOrder: (venueLabel) => `${venueLabel} order`,
841
+ settingUpBridge: "Setting up bridging...",
842
+ bridgeSetupComplete: "Bridge setup complete",
843
+ bridgingFundsProgress: "Bridging funds...",
844
+ bridgeComplete: "Bridge complete",
845
+ bridgingFunds: (amount, sourceChain, destinationChain, tokenSymbol = "USDC") => `Bridging ${amount} ${tokenSymbol} from ${sourceChain} to ${destinationChain}...`,
846
+ fundsBridged: (amount, sourceChain, destinationChain, tokenSymbol = "USDC") => `Bridged ${amount} ${tokenSymbol} from ${sourceChain} to ${destinationChain}`,
847
+ depositingFunds: (amount, tokenSymbol, destinationChain) => `Depositing ${amount} ${tokenSymbol} to ${destinationChain}...`,
848
+ fundsDeposited: (amount, tokenSymbol, destinationChain) => `Deposited ${amount} ${tokenSymbol} to ${destinationChain}`,
849
+ fillingOnVenue: (venueLabel) => `Filling on ${venueLabel}...`,
850
+ venueFilledAtPriceWithAmount: (venueLabel, amountLabel, priceLabel) => `${venueLabel} filled ${amountLabel} at ${priceLabel}`,
851
+ executionShares: (value) => `${value} shares`,
815
852
  confirmTransactionInWallet: "Confirm the transaction in your wallet",
816
853
  executionConfirmed: "Execution confirmed",
817
854
  orderSuccessTitle: "Order placed",
@@ -819,7 +856,7 @@ var enUsLabels = {
819
856
  orderFailureTitle: "Order failed",
820
857
  orderFailureDescription: (message) => message || "Something went wrong. Please try again.",
821
858
  orderDone: "Done",
822
- orderNewTrade: "New Trade",
859
+ orderNewTrade: "New trade",
823
860
  orderShare: "Share",
824
861
  orderRetry: "Try again",
825
862
  orderContinue: "Continue",
@@ -832,12 +869,20 @@ var enUsLabels = {
832
869
  orderSummaryAvgPrice: "Avg. price",
833
870
  orderSummaryEstCost: "Est. cost",
834
871
  orderSummaryVenue: "Venue",
872
+ orderAmountFilled: "Amount filled",
873
+ orderAmountFilledOf: (requestedAmount) => `of ${requestedAmount}`,
874
+ orderPayout: "Payout",
875
+ orderFullyFilled: "Order fully filled",
876
+ orderPartiallyFilled: "Order partially filled",
877
+ orderAveragePrice: (priceLabel) => `avg. ${priceLabel}`,
835
878
  orderComplete: "Order complete",
836
879
  orderFilledAtPrice: (venueLabel, priceLabel) => `${venueLabel} order filled at ${priceLabel}`,
837
880
  orderFilledAtPriceWithAmount: (venueLabel, priceLabel, amountLabel) => `${venueLabel} order filled at ${priceLabel} (${amountLabel})`,
838
881
  orderPartiallyFilledAtPriceWithAmount: (venueLabel, priceLabel, amountLabel) => `${venueLabel} order partially filled at ${priceLabel} (${amountLabel})`,
839
882
  orderSkip: "Skip",
840
883
  orderRetryRemaining: "Retry remaining",
884
+ orderTryRemaining: (remainingLabel) => `Try remaining ${remainingLabel}`,
885
+ orderClose: "Close",
841
886
  resolvedEarningsTitle: "Your Earnings",
842
887
  resolvedResolutionDateLabel: "Resolution date",
843
888
  resolvedSharesLabel: "Shares",
@@ -846,6 +891,7 @@ var enUsLabels = {
846
891
  boughtOutcomeAtPrice: (label, priceLabel) => `Bought ${label} at ${priceLabel}`,
847
892
  soldOutcomeAtPrice: (label, priceLabel) => `Sold ${label} at ${priceLabel}`,
848
893
  potentialReturnBonus: (value) => `+${value} Better Payout`,
894
+ potentialReturnBetter: (value) => `+${value} Better`,
849
895
  withSmartRouting: "with Smart Routing",
850
896
  buy: "Buy",
851
897
  sell: "Sell",
@@ -990,6 +1036,9 @@ var enUsLabels = {
990
1036
  resolvedOutcome: (label) => `Resolved: ${label}`,
991
1037
  marketDetailsAriaByDate: (dateLabel) => `Market details for ${dateLabel}`,
992
1038
  marketDetailsAriaByQuestion: (question) => `Market details for ${question}`,
1039
+ recurringCountdownAria: (countdown) => `Current market ends in ${countdown}`,
1040
+ goToLive: "Go to live",
1041
+ liveMarketUnavailable: "A live market is not available yet",
993
1042
  sports: {
994
1043
  summaryAria: "Sports event summary",
995
1044
  sectionTabsAria: "Sports market sections",
package/dist/withdraw.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  useWithdrawFlow,
4
4
  useWithdrawPreview,
5
5
  useWithdrawalLifecycle
6
- } from "./chunk-AZYAQIZB.mjs";
6
+ } from "./chunk-IHMZHA2W.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-SC6X5TL4.mjs";
11
+ } from "./chunk-LVOL27OZ.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": "4.0.1",
3
+ "version": "4.5.0",
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",
@@ -83,7 +83,7 @@
83
83
  "react": "^18.0.0 || ^19.0.0",
84
84
  "viem": "^2.0.0",
85
85
  "wagmi": "^3.0.0 || ^2.0.0",
86
- "@agg-build/sdk": "^4.0.1"
86
+ "@agg-build/sdk": "^4.5.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {