@agg-build/hooks 4.19.0 → 4.21.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.
@@ -593,6 +593,10 @@ var enUsLabels = {
593
593
  networkTooltipDescription: "Funds are stored across networks. We handle routing automatically, but keeping funds on the right network enables faster trades and lower fees. When depositing, you can choose your preferred network."
594
594
  },
595
595
  hostedBetdex: {
596
+ manageFunds: "Manage funds",
597
+ fromWallet: "Transfer from AGG wallet",
598
+ toWallet: "Use my AGG wallet",
599
+ transferToBetdex: "Transfer to BETDEX",
596
600
  deposit: "Deposit USDC",
597
601
  depositInstructions: {
598
602
  production: "Send USDC on Solana to this BETDEX account address.",
@@ -770,6 +774,8 @@ var enUsLabels = {
770
774
  subcategoriesCloseAria: "Close subcategories",
771
775
  loading: (title) => `Loading ${title}`,
772
776
  tabsAria: (title) => `${title} tabs`,
777
+ moreVenuesAria: (count) => `${count} more venues`,
778
+ moreVenuesListAria: "More venues",
773
779
  emptyAria: "No events found",
774
780
  emptyTitle: "No Events Found",
775
781
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -1098,6 +1104,7 @@ var enUsLabels = {
1098
1104
  tradingAccessVenues: "Venues",
1099
1105
  tradingAccessAvailable: "Available",
1100
1106
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
1107
+ configureBetdexAccount: "Configure account",
1101
1108
  outcome: (label) => `Outcome: ${label}`,
1102
1109
  smartRouting: "Smart Routing",
1103
1110
  limitRoutingCurrentPrice: (priceLabel, feeLabel) => feeLabel ? `Current ${priceLabel} \xB7 Fee ${feeLabel}` : `Current ${priceLabel}`,
@@ -11,7 +11,7 @@ import {
11
11
  useOnWithdrawalLifecycle,
12
12
  useSyncBalances,
13
13
  useWithdrawManaged
14
- } from "./chunk-4TVA4XJ5.mjs";
14
+ } from "./chunk-4J6HZ4AR.mjs";
15
15
 
16
16
  // src/withdraw/use-withdraw-flow.ts
17
17
  import { useCallback, useEffect, useMemo, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  useAggClient
4
- } from "./chunk-4TVA4XJ5.mjs";
4
+ } from "./chunk-4J6HZ4AR.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
package/dist/deposit.js CHANGED
@@ -478,6 +478,10 @@ var enUsLabels = {
478
478
  networkTooltipDescription: "Funds are stored across networks. We handle routing automatically, but keeping funds on the right network enables faster trades and lower fees. When depositing, you can choose your preferred network."
479
479
  },
480
480
  hostedBetdex: {
481
+ manageFunds: "Manage funds",
482
+ fromWallet: "Transfer from AGG wallet",
483
+ toWallet: "Use my AGG wallet",
484
+ transferToBetdex: "Transfer to BETDEX",
481
485
  deposit: "Deposit USDC",
482
486
  depositInstructions: {
483
487
  production: "Send USDC on Solana to this BETDEX account address.",
@@ -655,6 +659,8 @@ var enUsLabels = {
655
659
  subcategoriesCloseAria: "Close subcategories",
656
660
  loading: (title) => `Loading ${title}`,
657
661
  tabsAria: (title) => `${title} tabs`,
662
+ moreVenuesAria: (count) => `${count} more venues`,
663
+ moreVenuesListAria: "More venues",
658
664
  emptyAria: "No events found",
659
665
  emptyTitle: "No Events Found",
660
666
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -983,6 +989,7 @@ var enUsLabels = {
983
989
  tradingAccessVenues: "Venues",
984
990
  tradingAccessAvailable: "Available",
985
991
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
992
+ configureBetdexAccount: "Configure account",
986
993
  outcome: (label) => `Outcome: ${label}`,
987
994
  smartRouting: "Smart Routing",
988
995
  limitRoutingCurrentPrice: (priceLabel, feeLabel) => feeLabel ? `Current ${priceLabel} \xB7 Fee ${feeLabel}` : `Current ${priceLabel}`,
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-H4RVA4SH.mjs";
4
+ } from "./chunk-JWTUIRIW.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-4TVA4XJ5.mjs";
14
+ } from "./chunk-4J6HZ4AR.mjs";
15
15
 
16
16
  // src/deposit/normalize-wallet-error.ts
17
17
  function normalizeWalletError(error, supportedChains) {
package/dist/index.d.mts CHANGED
@@ -395,6 +395,8 @@ type VenueMarket = {
395
395
  winner?: boolean | null | undefined;
396
396
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
397
397
  payoutPerShare?: number | null | undefined;
398
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
399
+ refundAtCost?: boolean | undefined;
398
400
  /** Counterpart outcomes on matched sibling markets — only populated
399
401
  * on the parent (queried) market's outcomes. Each entry is a
400
402
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -463,6 +465,8 @@ type VenueMarket = {
463
465
  winner?: boolean | null | undefined;
464
466
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
465
467
  payoutPerShare?: number | null | undefined;
468
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
469
+ refundAtCost?: boolean | undefined;
466
470
  }[] | undefined;
467
471
  volume?: number | null | undefined;
468
472
  venueEvent?: {
@@ -575,6 +579,8 @@ type VenueMarketOutcome = {
575
579
  winner?: boolean | null | undefined;
576
580
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
577
581
  payoutPerShare?: number | null | undefined;
582
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
583
+ refundAtCost?: boolean | undefined;
578
584
  /** Counterpart outcomes on matched sibling markets — only populated on
579
585
  * the parent (queried) market's outcomes. */
580
586
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
@@ -978,6 +984,10 @@ interface AggUiLabels {
978
984
  networkTooltipDescription: string;
979
985
  };
980
986
  hostedBetdex: {
987
+ manageFunds: string;
988
+ fromWallet: string;
989
+ toWallet: string;
990
+ transferToBetdex: string;
981
991
  deposit: string;
982
992
  depositInstructions: Record<"production" | "sandbox", string>;
983
993
  depositAddress: string;
@@ -1135,6 +1145,10 @@ interface AggUiLabels {
1135
1145
  subcategoriesCloseAria: string;
1136
1146
  loading: (title: string) => string;
1137
1147
  tabsAria: (title: string) => string;
1148
+ /** Aria label for the "+N" chip that opens the folded venues. */
1149
+ moreVenuesAria: (count: number) => string;
1150
+ /** Aria label for the folded-venue list opened from the "+N" chip. */
1151
+ moreVenuesListAria: string;
1138
1152
  emptyAria: string;
1139
1153
  emptyTitle: string;
1140
1154
  emptyDescription: string;
@@ -1505,6 +1519,7 @@ interface AggUiLabels {
1505
1519
  tradingAccessVenues: string;
1506
1520
  tradingAccessAvailable: string;
1507
1521
  tradingAccessAddKalshiAccount: string;
1522
+ configureBetdexAccount: string;
1508
1523
  outcome: (label: string) => string;
1509
1524
  smartRouting: string;
1510
1525
  limitRoutingCurrentPrice: (priceLabel: string, feeLabel?: string) => string;
package/dist/index.d.ts CHANGED
@@ -395,6 +395,8 @@ type VenueMarket = {
395
395
  winner?: boolean | null | undefined;
396
396
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
397
397
  payoutPerShare?: number | null | undefined;
398
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
399
+ refundAtCost?: boolean | undefined;
398
400
  /** Counterpart outcomes on matched sibling markets — only populated
399
401
  * on the parent (queried) market's outcomes. Each entry is a
400
402
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -463,6 +465,8 @@ type VenueMarket = {
463
465
  winner?: boolean | null | undefined;
464
466
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
465
467
  payoutPerShare?: number | null | undefined;
468
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
469
+ refundAtCost?: boolean | undefined;
466
470
  }[] | undefined;
467
471
  volume?: number | null | undefined;
468
472
  venueEvent?: {
@@ -575,6 +579,8 @@ type VenueMarketOutcome = {
575
579
  winner?: boolean | null | undefined;
576
580
  /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
577
581
  payoutPerShare?: number | null | undefined;
582
+ /** Venue voided the market and refunds every holder their stake: value at avgEntryPrice. Check before `payoutPerShare`. */
583
+ refundAtCost?: boolean | undefined;
578
584
  /** Counterpart outcomes on matched sibling markets — only populated on
579
585
  * the parent (queried) market's outcomes. */
580
586
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
@@ -978,6 +984,10 @@ interface AggUiLabels {
978
984
  networkTooltipDescription: string;
979
985
  };
980
986
  hostedBetdex: {
987
+ manageFunds: string;
988
+ fromWallet: string;
989
+ toWallet: string;
990
+ transferToBetdex: string;
981
991
  deposit: string;
982
992
  depositInstructions: Record<"production" | "sandbox", string>;
983
993
  depositAddress: string;
@@ -1135,6 +1145,10 @@ interface AggUiLabels {
1135
1145
  subcategoriesCloseAria: string;
1136
1146
  loading: (title: string) => string;
1137
1147
  tabsAria: (title: string) => string;
1148
+ /** Aria label for the "+N" chip that opens the folded venues. */
1149
+ moreVenuesAria: (count: number) => string;
1150
+ /** Aria label for the folded-venue list opened from the "+N" chip. */
1151
+ moreVenuesListAria: string;
1138
1152
  emptyAria: string;
1139
1153
  emptyTitle: string;
1140
1154
  emptyDescription: string;
@@ -1505,6 +1519,7 @@ interface AggUiLabels {
1505
1519
  tradingAccessVenues: string;
1506
1520
  tradingAccessAvailable: string;
1507
1521
  tradingAccessAddKalshiAccount: string;
1522
+ configureBetdexAccount: string;
1508
1523
  outcome: (label: string) => string;
1509
1524
  smartRouting: string;
1510
1525
  limitRoutingCurrentPrice: (priceLabel: string, feeLabel?: string) => string;
package/dist/index.js CHANGED
@@ -963,6 +963,10 @@ var enUsLabels = {
963
963
  networkTooltipDescription: "Funds are stored across networks. We handle routing automatically, but keeping funds on the right network enables faster trades and lower fees. When depositing, you can choose your preferred network."
964
964
  },
965
965
  hostedBetdex: {
966
+ manageFunds: "Manage funds",
967
+ fromWallet: "Transfer from AGG wallet",
968
+ toWallet: "Use my AGG wallet",
969
+ transferToBetdex: "Transfer to BETDEX",
966
970
  deposit: "Deposit USDC",
967
971
  depositInstructions: {
968
972
  production: "Send USDC on Solana to this BETDEX account address.",
@@ -1140,6 +1144,8 @@ var enUsLabels = {
1140
1144
  subcategoriesCloseAria: "Close subcategories",
1141
1145
  loading: (title) => `Loading ${title}`,
1142
1146
  tabsAria: (title) => `${title} tabs`,
1147
+ moreVenuesAria: (count) => `${count} more venues`,
1148
+ moreVenuesListAria: "More venues",
1143
1149
  emptyAria: "No events found",
1144
1150
  emptyTitle: "No Events Found",
1145
1151
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -1468,6 +1474,7 @@ var enUsLabels = {
1468
1474
  tradingAccessVenues: "Venues",
1469
1475
  tradingAccessAvailable: "Available",
1470
1476
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
1477
+ configureBetdexAccount: "Configure account",
1471
1478
  outcome: (label) => `Outcome: ${label}`,
1472
1479
  smartRouting: "Smart Routing",
1473
1480
  limitRoutingCurrentPrice: (priceLabel, feeLabel) => feeLabel ? `Current ${priceLabel} \xB7 Fee ${feeLabel}` : `Current ${priceLabel}`,
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-H4RVA4SH.mjs";
4
+ } from "./chunk-JWTUIRIW.mjs";
5
5
  import {
6
6
  useWithdrawEstimate,
7
7
  useWithdrawFlow,
8
8
  useWithdrawPreview,
9
9
  useWithdrawalLifecycle
10
- } from "./chunk-XETRWNX5.mjs";
10
+ } from "./chunk-DWASBGV7.mjs";
11
11
  import {
12
12
  AggAuthContext,
13
13
  AggBalanceProvider,
@@ -98,7 +98,7 @@ import {
98
98
  useSyncBalances,
99
99
  useWithdrawManaged,
100
100
  userActivityQueryKeys
101
- } from "./chunk-4TVA4XJ5.mjs";
101
+ } from "./chunk-4J6HZ4AR.mjs";
102
102
 
103
103
  // src/index.ts
104
104
  import { QueryClient as QueryClient4, QueryClientProvider, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
package/dist/withdraw.js CHANGED
@@ -408,6 +408,10 @@ var enUsLabels = {
408
408
  networkTooltipDescription: "Funds are stored across networks. We handle routing automatically, but keeping funds on the right network enables faster trades and lower fees. When depositing, you can choose your preferred network."
409
409
  },
410
410
  hostedBetdex: {
411
+ manageFunds: "Manage funds",
412
+ fromWallet: "Transfer from AGG wallet",
413
+ toWallet: "Use my AGG wallet",
414
+ transferToBetdex: "Transfer to BETDEX",
411
415
  deposit: "Deposit USDC",
412
416
  depositInstructions: {
413
417
  production: "Send USDC on Solana to this BETDEX account address.",
@@ -585,6 +589,8 @@ var enUsLabels = {
585
589
  subcategoriesCloseAria: "Close subcategories",
586
590
  loading: (title) => `Loading ${title}`,
587
591
  tabsAria: (title) => `${title} tabs`,
592
+ moreVenuesAria: (count) => `${count} more venues`,
593
+ moreVenuesListAria: "More venues",
588
594
  emptyAria: "No events found",
589
595
  emptyTitle: "No Events Found",
590
596
  emptyDescription: "We couldn't find any events matching your filters.\nTry adjusting them or check back later.",
@@ -913,6 +919,7 @@ var enUsLabels = {
913
919
  tradingAccessVenues: "Venues",
914
920
  tradingAccessAvailable: "Available",
915
921
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
922
+ configureBetdexAccount: "Configure account",
916
923
  outcome: (label) => `Outcome: ${label}`,
917
924
  smartRouting: "Smart Routing",
918
925
  limitRoutingCurrentPrice: (priceLabel, feeLabel) => feeLabel ? `Current ${priceLabel} \xB7 Fee ${feeLabel}` : `Current ${priceLabel}`,
package/dist/withdraw.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  useWithdrawFlow,
4
4
  useWithdrawPreview,
5
5
  useWithdrawalLifecycle
6
- } from "./chunk-XETRWNX5.mjs";
6
+ } from "./chunk-DWASBGV7.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-4TVA4XJ5.mjs";
11
+ } from "./chunk-4J6HZ4AR.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.19.0",
3
+ "version": "4.21.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.19.0"
86
+ "@agg-build/sdk": "^4.21.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {