@agg-build/hooks 4.19.0 → 4.19.1

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,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  useAggClient
4
- } from "./chunk-4TVA4XJ5.mjs";
4
+ } from "./chunk-ZERDRL6N.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
@@ -11,7 +11,7 @@ import {
11
11
  useOnWithdrawalLifecycle,
12
12
  useSyncBalances,
13
13
  useWithdrawManaged
14
- } from "./chunk-4TVA4XJ5.mjs";
14
+ } from "./chunk-ZERDRL6N.mjs";
15
15
 
16
16
  // src/withdraw/use-withdraw-flow.ts
17
17
  import { useCallback, useEffect, useMemo, useState } from "react";
@@ -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.",
@@ -1098,6 +1102,7 @@ var enUsLabels = {
1098
1102
  tradingAccessVenues: "Venues",
1099
1103
  tradingAccessAvailable: "Available",
1100
1104
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
1105
+ configureBetdexAccount: "Configure account",
1101
1106
  outcome: (label) => `Outcome: ${label}`,
1102
1107
  smartRouting: "Smart Routing",
1103
1108
  limitRoutingCurrentPrice: (priceLabel, feeLabel) => feeLabel ? `Current ${priceLabel} \xB7 Fee ${feeLabel}` : `Current ${priceLabel}`,
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.",
@@ -983,6 +987,7 @@ var enUsLabels = {
983
987
  tradingAccessVenues: "Venues",
984
988
  tradingAccessAvailable: "Available",
985
989
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
990
+ configureBetdexAccount: "Configure account",
986
991
  outcome: (label) => `Outcome: ${label}`,
987
992
  smartRouting: "Smart Routing",
988
993
  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-3PDK5FZ4.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-ZERDRL6N.mjs";
15
15
 
16
16
  // src/deposit/normalize-wallet-error.ts
17
17
  function normalizeWalletError(error, supportedChains) {
package/dist/index.d.mts CHANGED
@@ -978,6 +978,10 @@ interface AggUiLabels {
978
978
  networkTooltipDescription: string;
979
979
  };
980
980
  hostedBetdex: {
981
+ manageFunds: string;
982
+ fromWallet: string;
983
+ toWallet: string;
984
+ transferToBetdex: string;
981
985
  deposit: string;
982
986
  depositInstructions: Record<"production" | "sandbox", string>;
983
987
  depositAddress: string;
@@ -1505,6 +1509,7 @@ interface AggUiLabels {
1505
1509
  tradingAccessVenues: string;
1506
1510
  tradingAccessAvailable: string;
1507
1511
  tradingAccessAddKalshiAccount: string;
1512
+ configureBetdexAccount: string;
1508
1513
  outcome: (label: string) => string;
1509
1514
  smartRouting: string;
1510
1515
  limitRoutingCurrentPrice: (priceLabel: string, feeLabel?: string) => string;
package/dist/index.d.ts CHANGED
@@ -978,6 +978,10 @@ interface AggUiLabels {
978
978
  networkTooltipDescription: string;
979
979
  };
980
980
  hostedBetdex: {
981
+ manageFunds: string;
982
+ fromWallet: string;
983
+ toWallet: string;
984
+ transferToBetdex: string;
981
985
  deposit: string;
982
986
  depositInstructions: Record<"production" | "sandbox", string>;
983
987
  depositAddress: string;
@@ -1505,6 +1509,7 @@ interface AggUiLabels {
1505
1509
  tradingAccessVenues: string;
1506
1510
  tradingAccessAvailable: string;
1507
1511
  tradingAccessAddKalshiAccount: string;
1512
+ configureBetdexAccount: string;
1508
1513
  outcome: (label: string) => string;
1509
1514
  smartRouting: string;
1510
1515
  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.",
@@ -1468,6 +1472,7 @@ var enUsLabels = {
1468
1472
  tradingAccessVenues: "Venues",
1469
1473
  tradingAccessAvailable: "Available",
1470
1474
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
1475
+ configureBetdexAccount: "Configure account",
1471
1476
  outcome: (label) => `Outcome: ${label}`,
1472
1477
  smartRouting: "Smart Routing",
1473
1478
  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-3PDK5FZ4.mjs";
5
5
  import {
6
6
  useWithdrawEstimate,
7
7
  useWithdrawFlow,
8
8
  useWithdrawPreview,
9
9
  useWithdrawalLifecycle
10
- } from "./chunk-XETRWNX5.mjs";
10
+ } from "./chunk-YLIXR2QM.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-ZERDRL6N.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.",
@@ -913,6 +917,7 @@ var enUsLabels = {
913
917
  tradingAccessVenues: "Venues",
914
918
  tradingAccessAvailable: "Available",
915
919
  tradingAccessAddKalshiAccount: "Add Kalshi Account",
920
+ configureBetdexAccount: "Configure account",
916
921
  outcome: (label) => `Outcome: ${label}`,
917
922
  smartRouting: "Smart Routing",
918
923
  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-YLIXR2QM.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-4TVA4XJ5.mjs";
11
+ } from "./chunk-ZERDRL6N.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.19.1",
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.19.1"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {