@agg-build/hooks 4.21.1 → 4.23.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __async,
3
3
  useAggClient
4
- } from "./chunk-QQVNZWRZ.mjs";
4
+ } from "./chunk-EXLVICJM.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
@@ -1100,6 +1100,10 @@ var enUsLabels = {
1100
1100
  manageProphetx: "Manage ProphetX connection",
1101
1101
  prophetxFundingNotice: "Manage funds on ProphetX",
1102
1102
  prophetxSettlementNotice: "This position settles on ProphetX",
1103
+ connectNovig: "Connect Novig to trade",
1104
+ manageNovig: "Manage Novig connection",
1105
+ novigFundingNotice: "Manage funds on Novig",
1106
+ novigSettlementNotice: "This position settles on Novig",
1103
1107
  requiresKalshiAccount: "Requires Kalshi account",
1104
1108
  tradingAccessVenues: "Venues",
1105
1109
  tradingAccessAvailable: "Available",
@@ -1316,6 +1320,22 @@ var enUsLabels = {
1316
1320
  connected: "Your ProphetX account is connected.",
1317
1321
  done: "Done"
1318
1322
  },
1323
+ connectNovigModal: {
1324
+ disconnect: "Disconnect Novig",
1325
+ disconnecting: "Disconnecting\u2026",
1326
+ disconnectError: "Could not disconnect Novig. Finish any open orders and try again.",
1327
+ title: "Connect Novig Account",
1328
+ description: "Add the trading key ID and private key for your funded Novig subaccount.",
1329
+ fundingNotice: "Trades use your Novig balance. Deposits, withdrawals, and transfers are managed on Novig, outside AGG.",
1330
+ instructions: "Set up a Novig trading subaccount",
1331
+ keyId: "Trading key ID",
1332
+ privateKey: "Private key",
1333
+ verify: "Verify connection",
1334
+ verifying: "Verifying\u2026",
1335
+ error: "Could not connect to Novig. Check your credentials and try again.",
1336
+ connected: "Your Novig account is connected.",
1337
+ done: "Done"
1338
+ },
1319
1339
  connectKalshiModal: {
1320
1340
  ariaLabel: "Connect Kalshi Account",
1321
1341
  title: "Connect Kalshi Account",
@@ -2582,15 +2602,16 @@ function useCachedAppConfig() {
2582
2602
  });
2583
2603
  }
2584
2604
  var toAppConfigResult = (query) => {
2585
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
2605
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
2586
2606
  return {
2587
2607
  prophetxExecutionMode: query.data ? (_a = query.data.prophetxExecutionMode) != null ? _a : "clearinghouse" : void 0,
2588
- disabledVenues: (_c = (_b = query.data) == null ? void 0 : _b.disabledVenues) != null ? _c : [],
2589
- disabledCategoryPresets: (_e = (_d = query.data) == null ? void 0 : _d.disabledCategoryPresets) != null ? _e : [],
2590
- earlyAccessEnabled: (_g = (_f = query.data) == null ? void 0 : _f.earlyAccessEnabled) != null ? _g : false,
2591
- authOptions: (_i = (_h = query.data) == null ? void 0 : _h.authOptions) != null ? _i : [],
2592
- tradingMode: (_j = query.data) == null ? void 0 : _j.tradingMode,
2593
- paperStartingBalance: (_k = query.data) == null ? void 0 : _k.paperStartingBalance,
2608
+ novigExecutionMode: query.data ? (_b = query.data.novigExecutionMode) != null ? _b : "clearinghouse" : void 0,
2609
+ disabledVenues: (_d = (_c = query.data) == null ? void 0 : _c.disabledVenues) != null ? _d : [],
2610
+ disabledCategoryPresets: (_f = (_e = query.data) == null ? void 0 : _e.disabledCategoryPresets) != null ? _f : [],
2611
+ earlyAccessEnabled: (_h = (_g = query.data) == null ? void 0 : _g.earlyAccessEnabled) != null ? _h : false,
2612
+ authOptions: (_j = (_i = query.data) == null ? void 0 : _i.authOptions) != null ? _j : [],
2613
+ tradingMode: (_k = query.data) == null ? void 0 : _k.tradingMode,
2614
+ paperStartingBalance: (_l = query.data) == null ? void 0 : _l.paperStartingBalance,
2594
2615
  isLoading: query.isLoading,
2595
2616
  error: query.error
2596
2617
  };
@@ -11,7 +11,7 @@ import {
11
11
  useOnWithdrawalLifecycle,
12
12
  useSyncBalances,
13
13
  useWithdrawManaged
14
- } from "./chunk-QQVNZWRZ.mjs";
14
+ } from "./chunk-EXLVICJM.mjs";
15
15
 
16
16
  // src/withdraw/use-withdraw-flow.ts
17
17
  import { useCallback, useEffect, useMemo, useState } from "react";
package/dist/deposit.js CHANGED
@@ -985,6 +985,10 @@ var enUsLabels = {
985
985
  manageProphetx: "Manage ProphetX connection",
986
986
  prophetxFundingNotice: "Manage funds on ProphetX",
987
987
  prophetxSettlementNotice: "This position settles on ProphetX",
988
+ connectNovig: "Connect Novig to trade",
989
+ manageNovig: "Manage Novig connection",
990
+ novigFundingNotice: "Manage funds on Novig",
991
+ novigSettlementNotice: "This position settles on Novig",
988
992
  requiresKalshiAccount: "Requires Kalshi account",
989
993
  tradingAccessVenues: "Venues",
990
994
  tradingAccessAvailable: "Available",
@@ -1201,6 +1205,22 @@ var enUsLabels = {
1201
1205
  connected: "Your ProphetX account is connected.",
1202
1206
  done: "Done"
1203
1207
  },
1208
+ connectNovigModal: {
1209
+ disconnect: "Disconnect Novig",
1210
+ disconnecting: "Disconnecting\u2026",
1211
+ disconnectError: "Could not disconnect Novig. Finish any open orders and try again.",
1212
+ title: "Connect Novig Account",
1213
+ description: "Add the trading key ID and private key for your funded Novig subaccount.",
1214
+ fundingNotice: "Trades use your Novig balance. Deposits, withdrawals, and transfers are managed on Novig, outside AGG.",
1215
+ instructions: "Set up a Novig trading subaccount",
1216
+ keyId: "Trading key ID",
1217
+ privateKey: "Private key",
1218
+ verify: "Verify connection",
1219
+ verifying: "Verifying\u2026",
1220
+ error: "Could not connect to Novig. Check your credentials and try again.",
1221
+ connected: "Your Novig account is connected.",
1222
+ done: "Done"
1223
+ },
1204
1224
  connectKalshiModal: {
1205
1225
  ariaLabel: "Connect Kalshi Account",
1206
1226
  title: "Connect Kalshi Account",
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-OAVURSWZ.mjs";
4
+ } from "./chunk-5YCKWYG7.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-QQVNZWRZ.mjs";
14
+ } from "./chunk-EXLVICJM.mjs";
15
15
 
16
16
  // src/deposit/normalize-wallet-error.ts
17
17
  function normalizeWalletError(error, supportedChains) {
package/dist/index.d.mts CHANGED
@@ -1514,6 +1514,10 @@ interface AggUiLabels {
1514
1514
  manageProphetx: string;
1515
1515
  prophetxFundingNotice: string;
1516
1516
  prophetxSettlementNotice: string;
1517
+ connectNovig: string;
1518
+ manageNovig: string;
1519
+ novigFundingNotice: string;
1520
+ novigSettlementNotice: string;
1517
1521
  /** Route card hint when Kalshi is quoted but the user has no Kalshi account connected. */
1518
1522
  requiresKalshiAccount: string;
1519
1523
  tradingAccessVenues: string;
@@ -1712,6 +1716,22 @@ interface AggUiLabels {
1712
1716
  connected: string;
1713
1717
  done: string;
1714
1718
  };
1719
+ connectNovigModal: {
1720
+ disconnect: string;
1721
+ disconnecting: string;
1722
+ disconnectError: string;
1723
+ title: string;
1724
+ description: string;
1725
+ fundingNotice: string;
1726
+ instructions: string;
1727
+ keyId: string;
1728
+ privateKey: string;
1729
+ verify: string;
1730
+ verifying: string;
1731
+ error: string;
1732
+ connected: string;
1733
+ done: string;
1734
+ };
1715
1735
  connectKalshiModal: {
1716
1736
  ariaLabel: string;
1717
1737
  title: string;
@@ -7623,6 +7643,7 @@ declare function useVisibleIds(options?: UseVisibleIdsOptions): UseVisibleIdsRes
7623
7643
  declare const appConfigQueryKey: (appId: string | undefined) => readonly ["agg", "app-config", string];
7624
7644
  interface UseAppConfigResult {
7625
7645
  prophetxExecutionMode?: "clearinghouse" | "direct";
7646
+ novigExecutionMode?: "clearinghouse" | "direct";
7626
7647
  disabledVenues: AppClientConfigResponse["disabledVenues"];
7627
7648
  disabledCategoryPresets: AppClientConfigResponse["disabledCategoryPresets"];
7628
7649
  earlyAccessEnabled: AppClientConfigResponse["earlyAccessEnabled"];
package/dist/index.d.ts CHANGED
@@ -1514,6 +1514,10 @@ interface AggUiLabels {
1514
1514
  manageProphetx: string;
1515
1515
  prophetxFundingNotice: string;
1516
1516
  prophetxSettlementNotice: string;
1517
+ connectNovig: string;
1518
+ manageNovig: string;
1519
+ novigFundingNotice: string;
1520
+ novigSettlementNotice: string;
1517
1521
  /** Route card hint when Kalshi is quoted but the user has no Kalshi account connected. */
1518
1522
  requiresKalshiAccount: string;
1519
1523
  tradingAccessVenues: string;
@@ -1712,6 +1716,22 @@ interface AggUiLabels {
1712
1716
  connected: string;
1713
1717
  done: string;
1714
1718
  };
1719
+ connectNovigModal: {
1720
+ disconnect: string;
1721
+ disconnecting: string;
1722
+ disconnectError: string;
1723
+ title: string;
1724
+ description: string;
1725
+ fundingNotice: string;
1726
+ instructions: string;
1727
+ keyId: string;
1728
+ privateKey: string;
1729
+ verify: string;
1730
+ verifying: string;
1731
+ error: string;
1732
+ connected: string;
1733
+ done: string;
1734
+ };
1715
1735
  connectKalshiModal: {
1716
1736
  ariaLabel: string;
1717
1737
  title: string;
@@ -7623,6 +7643,7 @@ declare function useVisibleIds(options?: UseVisibleIdsOptions): UseVisibleIdsRes
7623
7643
  declare const appConfigQueryKey: (appId: string | undefined) => readonly ["agg", "app-config", string];
7624
7644
  interface UseAppConfigResult {
7625
7645
  prophetxExecutionMode?: "clearinghouse" | "direct";
7646
+ novigExecutionMode?: "clearinghouse" | "direct";
7626
7647
  disabledVenues: AppClientConfigResponse["disabledVenues"];
7627
7648
  disabledCategoryPresets: AppClientConfigResponse["disabledCategoryPresets"];
7628
7649
  earlyAccessEnabled: AppClientConfigResponse["earlyAccessEnabled"];
package/dist/index.js CHANGED
@@ -1470,6 +1470,10 @@ var enUsLabels = {
1470
1470
  manageProphetx: "Manage ProphetX connection",
1471
1471
  prophetxFundingNotice: "Manage funds on ProphetX",
1472
1472
  prophetxSettlementNotice: "This position settles on ProphetX",
1473
+ connectNovig: "Connect Novig to trade",
1474
+ manageNovig: "Manage Novig connection",
1475
+ novigFundingNotice: "Manage funds on Novig",
1476
+ novigSettlementNotice: "This position settles on Novig",
1473
1477
  requiresKalshiAccount: "Requires Kalshi account",
1474
1478
  tradingAccessVenues: "Venues",
1475
1479
  tradingAccessAvailable: "Available",
@@ -1686,6 +1690,22 @@ var enUsLabels = {
1686
1690
  connected: "Your ProphetX account is connected.",
1687
1691
  done: "Done"
1688
1692
  },
1693
+ connectNovigModal: {
1694
+ disconnect: "Disconnect Novig",
1695
+ disconnecting: "Disconnecting\u2026",
1696
+ disconnectError: "Could not disconnect Novig. Finish any open orders and try again.",
1697
+ title: "Connect Novig Account",
1698
+ description: "Add the trading key ID and private key for your funded Novig subaccount.",
1699
+ fundingNotice: "Trades use your Novig balance. Deposits, withdrawals, and transfers are managed on Novig, outside AGG.",
1700
+ instructions: "Set up a Novig trading subaccount",
1701
+ keyId: "Trading key ID",
1702
+ privateKey: "Private key",
1703
+ verify: "Verify connection",
1704
+ verifying: "Verifying\u2026",
1705
+ error: "Could not connect to Novig. Check your credentials and try again.",
1706
+ connected: "Your Novig account is connected.",
1707
+ done: "Done"
1708
+ },
1689
1709
  connectKalshiModal: {
1690
1710
  ariaLabel: "Connect Kalshi Account",
1691
1711
  title: "Connect Kalshi Account",
@@ -2802,15 +2822,16 @@ function useCachedAppConfig() {
2802
2822
  });
2803
2823
  }
2804
2824
  var toAppConfigResult = (query) => {
2805
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
2825
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
2806
2826
  return {
2807
2827
  prophetxExecutionMode: query.data ? (_a = query.data.prophetxExecutionMode) != null ? _a : "clearinghouse" : void 0,
2808
- disabledVenues: (_c = (_b = query.data) == null ? void 0 : _b.disabledVenues) != null ? _c : [],
2809
- disabledCategoryPresets: (_e = (_d = query.data) == null ? void 0 : _d.disabledCategoryPresets) != null ? _e : [],
2810
- earlyAccessEnabled: (_g = (_f = query.data) == null ? void 0 : _f.earlyAccessEnabled) != null ? _g : false,
2811
- authOptions: (_i = (_h = query.data) == null ? void 0 : _h.authOptions) != null ? _i : [],
2812
- tradingMode: (_j = query.data) == null ? void 0 : _j.tradingMode,
2813
- paperStartingBalance: (_k = query.data) == null ? void 0 : _k.paperStartingBalance,
2828
+ novigExecutionMode: query.data ? (_b = query.data.novigExecutionMode) != null ? _b : "clearinghouse" : void 0,
2829
+ disabledVenues: (_d = (_c = query.data) == null ? void 0 : _c.disabledVenues) != null ? _d : [],
2830
+ disabledCategoryPresets: (_f = (_e = query.data) == null ? void 0 : _e.disabledCategoryPresets) != null ? _f : [],
2831
+ earlyAccessEnabled: (_h = (_g = query.data) == null ? void 0 : _g.earlyAccessEnabled) != null ? _h : false,
2832
+ authOptions: (_j = (_i = query.data) == null ? void 0 : _i.authOptions) != null ? _j : [],
2833
+ tradingMode: (_k = query.data) == null ? void 0 : _k.tradingMode,
2834
+ paperStartingBalance: (_l = query.data) == null ? void 0 : _l.paperStartingBalance,
2814
2835
  isLoading: query.isLoading,
2815
2836
  error: query.error
2816
2837
  };
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-OAVURSWZ.mjs";
4
+ } from "./chunk-5YCKWYG7.mjs";
5
5
  import {
6
6
  useWithdrawEstimate,
7
7
  useWithdrawFlow,
8
8
  useWithdrawPreview,
9
9
  useWithdrawalLifecycle
10
- } from "./chunk-P6SI6GU7.mjs";
10
+ } from "./chunk-YJDYAGPC.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-QQVNZWRZ.mjs";
101
+ } from "./chunk-EXLVICJM.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
@@ -915,6 +915,10 @@ var enUsLabels = {
915
915
  manageProphetx: "Manage ProphetX connection",
916
916
  prophetxFundingNotice: "Manage funds on ProphetX",
917
917
  prophetxSettlementNotice: "This position settles on ProphetX",
918
+ connectNovig: "Connect Novig to trade",
919
+ manageNovig: "Manage Novig connection",
920
+ novigFundingNotice: "Manage funds on Novig",
921
+ novigSettlementNotice: "This position settles on Novig",
918
922
  requiresKalshiAccount: "Requires Kalshi account",
919
923
  tradingAccessVenues: "Venues",
920
924
  tradingAccessAvailable: "Available",
@@ -1131,6 +1135,22 @@ var enUsLabels = {
1131
1135
  connected: "Your ProphetX account is connected.",
1132
1136
  done: "Done"
1133
1137
  },
1138
+ connectNovigModal: {
1139
+ disconnect: "Disconnect Novig",
1140
+ disconnecting: "Disconnecting\u2026",
1141
+ disconnectError: "Could not disconnect Novig. Finish any open orders and try again.",
1142
+ title: "Connect Novig Account",
1143
+ description: "Add the trading key ID and private key for your funded Novig subaccount.",
1144
+ fundingNotice: "Trades use your Novig balance. Deposits, withdrawals, and transfers are managed on Novig, outside AGG.",
1145
+ instructions: "Set up a Novig trading subaccount",
1146
+ keyId: "Trading key ID",
1147
+ privateKey: "Private key",
1148
+ verify: "Verify connection",
1149
+ verifying: "Verifying\u2026",
1150
+ error: "Could not connect to Novig. Check your credentials and try again.",
1151
+ connected: "Your Novig account is connected.",
1152
+ done: "Done"
1153
+ },
1134
1154
  connectKalshiModal: {
1135
1155
  ariaLabel: "Connect Kalshi Account",
1136
1156
  title: "Connect Kalshi Account",
package/dist/withdraw.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  useWithdrawFlow,
4
4
  useWithdrawPreview,
5
5
  useWithdrawalLifecycle
6
- } from "./chunk-P6SI6GU7.mjs";
6
+ } from "./chunk-YJDYAGPC.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-QQVNZWRZ.mjs";
11
+ } from "./chunk-EXLVICJM.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.21.1",
3
+ "version": "4.23.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.21.0"
86
+ "@agg-build/sdk": "^4.23.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {