@agg-build/hooks 4.10.0 → 4.11.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.
@@ -177,13 +177,16 @@ function optimizedImageUrl(url, maxPx) {
177
177
  // ../common/src/utils/sort-venues.ts
178
178
  var VENUE_SORT_ORDER = [
179
179
  "polymarket" /* polymarket */,
180
+ "hyperliquid" /* hyperliquid */,
181
+ "predict" /* predict */,
182
+ "prophetx" /* prophetx */,
180
183
  "kalshi" /* kalshi */,
181
- "opinion" /* opinion */,
182
184
  "limitless" /* limitless */,
183
- "predict" /* predict */,
184
- "pred" /* pred */,
185
185
  "myriad" /* myriad */,
186
- "hyperliquid" /* hyperliquid */
186
+ "pred" /* pred */,
187
+ "probable" /* probable */,
188
+ "novig" /* novig */,
189
+ "opinion" /* opinion */
187
190
  ];
188
191
  var venueOrderIndex = new Map(VENUE_SORT_ORDER.map((v, i) => [v, i]));
189
192
  var getVenueOrder = (venue) => {
@@ -997,6 +1000,7 @@ var enUsLabels = {
997
1000
  executionReserveDescription: "Held for price movement or possible venue charges, not a confirmed fee. Unused funds are returned after execution.",
998
1001
  estimatedFeesTooltipAria: "Estimated fees breakdown",
999
1002
  feeBreakdownVenueFees: "Venue",
1003
+ feeBreakdownBuilderFee: "Builder",
1000
1004
  feeBreakdownBridgeFees: "Bridging",
1001
1005
  feeBreakdownExecutionGas: "Gas",
1002
1006
  feeBreakdownAggMarket: "agg.market",
@@ -11,7 +11,7 @@ import {
11
11
  useOnWithdrawalLifecycle,
12
12
  useSyncBalances,
13
13
  useWithdrawManaged
14
- } from "./chunk-SFSGE25P.mjs";
14
+ } from "./chunk-7J4DFAKD.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-SFSGE25P.mjs";
4
+ } from "./chunk-7J4DFAKD.mjs";
5
5
 
6
6
  // src/use-ramp-quotes.ts
7
7
  import { useMutation } from "@tanstack/react-query";
package/dist/deposit.js CHANGED
@@ -914,6 +914,7 @@ var enUsLabels = {
914
914
  executionReserveDescription: "Held for price movement or possible venue charges, not a confirmed fee. Unused funds are returned after execution.",
915
915
  estimatedFeesTooltipAria: "Estimated fees breakdown",
916
916
  feeBreakdownVenueFees: "Venue",
917
+ feeBreakdownBuilderFee: "Builder",
917
918
  feeBreakdownBridgeFees: "Bridging",
918
919
  feeBreakdownExecutionGas: "Gas",
919
920
  feeBreakdownAggMarket: "agg.market",
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-MIWXPZNP.mjs";
4
+ } from "./chunk-O5D5ISR3.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-SFSGE25P.mjs";
14
+ } from "./chunk-7J4DFAKD.mjs";
15
15
 
16
16
  // src/deposit/normalize-wallet-error.ts
17
17
  function normalizeWalletError(error, supportedChains) {
package/dist/index.d.mts CHANGED
@@ -1336,6 +1336,7 @@ interface AggUiLabels {
1336
1336
  executionReserveDescription: string;
1337
1337
  estimatedFeesTooltipAria: string;
1338
1338
  feeBreakdownVenueFees: string;
1339
+ feeBreakdownBuilderFee: string;
1339
1340
  feeBreakdownBridgeFees: string;
1340
1341
  feeBreakdownExecutionGas: string;
1341
1342
  feeBreakdownAggMarket: string;
@@ -6250,8 +6251,6 @@ interface UseVenueMarketsOptions {
6250
6251
  status?: MarketStatus;
6251
6252
  /** Filter by match status. */
6252
6253
  matchStatus?: MatchStatus;
6253
- /** Filter by category IDs. */
6254
- categoryIds?: string[];
6255
6254
  /** Canonical game or market key filter. */
6256
6255
  aggKey?: string[];
6257
6256
  /** Sports section filter: moneyline, spread, total, prop, ... */
package/dist/index.d.ts CHANGED
@@ -1336,6 +1336,7 @@ interface AggUiLabels {
1336
1336
  executionReserveDescription: string;
1337
1337
  estimatedFeesTooltipAria: string;
1338
1338
  feeBreakdownVenueFees: string;
1339
+ feeBreakdownBuilderFee: string;
1339
1340
  feeBreakdownBridgeFees: string;
1340
1341
  feeBreakdownExecutionGas: string;
1341
1342
  feeBreakdownAggMarket: string;
@@ -6250,8 +6251,6 @@ interface UseVenueMarketsOptions {
6250
6251
  status?: MarketStatus;
6251
6252
  /** Filter by match status. */
6252
6253
  matchStatus?: MatchStatus;
6253
- /** Filter by category IDs. */
6254
- categoryIds?: string[];
6255
6254
  /** Canonical game or market key filter. */
6256
6255
  aggKey?: string[];
6257
6256
  /** Sports section filter: moneyline, spread, total, prop, ... */
package/dist/index.js CHANGED
@@ -361,13 +361,16 @@ function optimizedImageUrl(url, maxPx) {
361
361
  // ../common/src/utils/sort-venues.ts
362
362
  var VENUE_SORT_ORDER = [
363
363
  "polymarket" /* polymarket */,
364
+ "hyperliquid" /* hyperliquid */,
365
+ "predict" /* predict */,
366
+ "prophetx" /* prophetx */,
364
367
  "kalshi" /* kalshi */,
365
- "opinion" /* opinion */,
366
368
  "limitless" /* limitless */,
367
- "predict" /* predict */,
368
- "pred" /* pred */,
369
369
  "myriad" /* myriad */,
370
- "hyperliquid" /* hyperliquid */
370
+ "pred" /* pred */,
371
+ "probable" /* probable */,
372
+ "novig" /* novig */,
373
+ "opinion" /* opinion */
371
374
  ];
372
375
  var venueOrderIndex = new Map(VENUE_SORT_ORDER.map((v, i) => [v, i]));
373
376
  var getVenueOrder = (venue) => {
@@ -1354,6 +1357,7 @@ var enUsLabels = {
1354
1357
  executionReserveDescription: "Held for price movement or possible venue charges, not a confirmed fee. Unused funds are returned after execution.",
1355
1358
  estimatedFeesTooltipAria: "Estimated fees breakdown",
1356
1359
  feeBreakdownVenueFees: "Venue",
1360
+ feeBreakdownBuilderFee: "Builder",
1357
1361
  feeBreakdownBridgeFees: "Bridging",
1358
1362
  feeBreakdownExecutionGas: "Gas",
1359
1363
  feeBreakdownAggMarket: "agg.market",
@@ -9348,7 +9352,7 @@ function useVenueEvent(options) {
9348
9352
  var import_react_query43 = require("@tanstack/react-query");
9349
9353
  var import_react36 = require("react");
9350
9354
  function useVenueMarkets(options) {
9351
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
9355
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
9352
9356
  const client = (0, import_react36.useContext)(AggClientContext);
9353
9357
  const queryClient = (0, import_react36.useContext)(import_react_query43.QueryClientContext);
9354
9358
  const [fallbackQueryClient] = (0, import_react36.useState)(() => new import_react_query43.QueryClient());
@@ -9358,7 +9362,6 @@ function useVenueMarkets(options) {
9358
9362
  const search = options == null ? void 0 : options.search;
9359
9363
  const matchStatus = options == null ? void 0 : options.matchStatus;
9360
9364
  const status = options == null ? void 0 : options.status;
9361
- const categoryIds = options == null ? void 0 : options.categoryIds;
9362
9365
  const aggKey = options == null ? void 0 : options.aggKey;
9363
9366
  const sportsMarketType = options == null ? void 0 : options.sportsMarketType;
9364
9367
  const period = options == null ? void 0 : options.period;
@@ -9389,12 +9392,11 @@ function useVenueMarkets(options) {
9389
9392
  search != null ? search : "",
9390
9393
  matchStatus != null ? matchStatus : "",
9391
9394
  status != null ? status : "",
9392
- (_c = categoryIds == null ? void 0 : categoryIds.join(",")) != null ? _c : "",
9393
- (_d = aggKey == null ? void 0 : aggKey.join(",")) != null ? _d : "",
9394
- (_e = sportsMarketType == null ? void 0 : sportsMarketType.join(",")) != null ? _e : "",
9395
- (_f = period == null ? void 0 : period.join(",")) != null ? _f : "",
9396
- (_g = marketCategory == null ? void 0 : marketCategory.join(",")) != null ? _g : "",
9397
- (_h = marketGroup == null ? void 0 : marketGroup.join(",")) != null ? _h : "",
9395
+ (_c = aggKey == null ? void 0 : aggKey.join(",")) != null ? _c : "",
9396
+ (_d = sportsMarketType == null ? void 0 : sportsMarketType.join(",")) != null ? _d : "",
9397
+ (_e = period == null ? void 0 : period.join(",")) != null ? _e : "",
9398
+ (_f = marketCategory == null ? void 0 : marketCategory.join(",")) != null ? _f : "",
9399
+ (_g = marketGroup == null ? void 0 : marketGroup.join(",")) != null ? _g : "",
9398
9400
  limit,
9399
9401
  sortBy != null ? sortBy : "",
9400
9402
  sortDir != null ? sortDir : "",
@@ -9411,7 +9413,6 @@ function useVenueMarkets(options) {
9411
9413
  search,
9412
9414
  matchStatus,
9413
9415
  status,
9414
- categoryIds,
9415
9416
  aggKey,
9416
9417
  sportsMarketType,
9417
9418
  period,
@@ -9435,10 +9436,10 @@ function useVenueMarkets(options) {
9435
9436
  },
9436
9437
  queryClient != null ? queryClient : fallbackQueryClient
9437
9438
  );
9438
- const markets = (_j = (_i = query.data) == null ? void 0 : _i.pages.flatMap((page) => page.data)) != null ? _j : [];
9439
+ const markets = (_i = (_h = query.data) == null ? void 0 : _h.pages.flatMap((page) => page.data)) != null ? _i : [];
9439
9440
  const hasNextPage = !!query.hasNextPage;
9440
9441
  const { fetchNextPage, isFetchingNextPage } = query;
9441
- const fetchAll = (_k = options == null ? void 0 : options.fetchAll) != null ? _k : false;
9442
+ const fetchAll = (_j = options == null ? void 0 : options.fetchAll) != null ? _j : false;
9442
9443
  (0, import_react36.useEffect)(() => {
9443
9444
  if (!fetchAll || !hasNextPage || isFetchingNextPage) return;
9444
9445
  void fetchNextPage();
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useRampQuotes,
3
3
  useRampSession
4
- } from "./chunk-MIWXPZNP.mjs";
4
+ } from "./chunk-O5D5ISR3.mjs";
5
5
  import {
6
6
  useWithdrawEstimate,
7
7
  useWithdrawFlow,
8
8
  useWithdrawPreview,
9
9
  useWithdrawalLifecycle
10
- } from "./chunk-7DCOWPUQ.mjs";
10
+ } from "./chunk-FX7UHERV.mjs";
11
11
  import {
12
12
  AggAuthContext,
13
13
  AggBalanceProvider,
@@ -101,7 +101,7 @@ import {
101
101
  useSyncBalances,
102
102
  useWithdrawManaged,
103
103
  userActivityQueryKeys
104
- } from "./chunk-SFSGE25P.mjs";
104
+ } from "./chunk-7J4DFAKD.mjs";
105
105
 
106
106
  // src/index.ts
107
107
  import { QueryClient as QueryClient4, QueryClientProvider, useQueryClient as useQueryClient2 } from "@tanstack/react-query";
@@ -3353,7 +3353,7 @@ function useVenueEvent(options) {
3353
3353
  import { QueryClient as QueryClient2, QueryClientContext as QueryClientContext2, useInfiniteQuery as useInfiniteQuery7 } from "@tanstack/react-query";
3354
3354
  import { useContext as useContext3, useEffect as useEffect8, useState as useState8 } from "react";
3355
3355
  function useVenueMarkets(options) {
3356
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
3356
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
3357
3357
  const client = useContext3(AggClientContext);
3358
3358
  const queryClient = useContext3(QueryClientContext2);
3359
3359
  const [fallbackQueryClient] = useState8(() => new QueryClient2());
@@ -3363,7 +3363,6 @@ function useVenueMarkets(options) {
3363
3363
  const search = options == null ? void 0 : options.search;
3364
3364
  const matchStatus = options == null ? void 0 : options.matchStatus;
3365
3365
  const status = options == null ? void 0 : options.status;
3366
- const categoryIds = options == null ? void 0 : options.categoryIds;
3367
3366
  const aggKey = options == null ? void 0 : options.aggKey;
3368
3367
  const sportsMarketType = options == null ? void 0 : options.sportsMarketType;
3369
3368
  const period = options == null ? void 0 : options.period;
@@ -3394,12 +3393,11 @@ function useVenueMarkets(options) {
3394
3393
  search != null ? search : "",
3395
3394
  matchStatus != null ? matchStatus : "",
3396
3395
  status != null ? status : "",
3397
- (_c = categoryIds == null ? void 0 : categoryIds.join(",")) != null ? _c : "",
3398
- (_d = aggKey == null ? void 0 : aggKey.join(",")) != null ? _d : "",
3399
- (_e = sportsMarketType == null ? void 0 : sportsMarketType.join(",")) != null ? _e : "",
3400
- (_f = period == null ? void 0 : period.join(",")) != null ? _f : "",
3401
- (_g = marketCategory == null ? void 0 : marketCategory.join(",")) != null ? _g : "",
3402
- (_h = marketGroup == null ? void 0 : marketGroup.join(",")) != null ? _h : "",
3396
+ (_c = aggKey == null ? void 0 : aggKey.join(",")) != null ? _c : "",
3397
+ (_d = sportsMarketType == null ? void 0 : sportsMarketType.join(",")) != null ? _d : "",
3398
+ (_e = period == null ? void 0 : period.join(",")) != null ? _e : "",
3399
+ (_f = marketCategory == null ? void 0 : marketCategory.join(",")) != null ? _f : "",
3400
+ (_g = marketGroup == null ? void 0 : marketGroup.join(",")) != null ? _g : "",
3403
3401
  limit,
3404
3402
  sortBy != null ? sortBy : "",
3405
3403
  sortDir != null ? sortDir : "",
@@ -3416,7 +3414,6 @@ function useVenueMarkets(options) {
3416
3414
  search,
3417
3415
  matchStatus,
3418
3416
  status,
3419
- categoryIds,
3420
3417
  aggKey,
3421
3418
  sportsMarketType,
3422
3419
  period,
@@ -3440,10 +3437,10 @@ function useVenueMarkets(options) {
3440
3437
  },
3441
3438
  queryClient != null ? queryClient : fallbackQueryClient
3442
3439
  );
3443
- const markets = (_j = (_i = query.data) == null ? void 0 : _i.pages.flatMap((page) => page.data)) != null ? _j : [];
3440
+ const markets = (_i = (_h = query.data) == null ? void 0 : _h.pages.flatMap((page) => page.data)) != null ? _i : [];
3444
3441
  const hasNextPage = !!query.hasNextPage;
3445
3442
  const { fetchNextPage, isFetchingNextPage } = query;
3446
- const fetchAll = (_k = options == null ? void 0 : options.fetchAll) != null ? _k : false;
3443
+ const fetchAll = (_j = options == null ? void 0 : options.fetchAll) != null ? _j : false;
3447
3444
  useEffect8(() => {
3448
3445
  if (!fetchAll || !hasNextPage || isFetchingNextPage) return;
3449
3446
  void fetchNextPage();
package/dist/withdraw.js CHANGED
@@ -844,6 +844,7 @@ var enUsLabels = {
844
844
  executionReserveDescription: "Held for price movement or possible venue charges, not a confirmed fee. Unused funds are returned after execution.",
845
845
  estimatedFeesTooltipAria: "Estimated fees breakdown",
846
846
  feeBreakdownVenueFees: "Venue",
847
+ feeBreakdownBuilderFee: "Builder",
847
848
  feeBreakdownBridgeFees: "Bridging",
848
849
  feeBreakdownExecutionGas: "Gas",
849
850
  feeBreakdownAggMarket: "agg.market",
package/dist/withdraw.mjs CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  useWithdrawFlow,
4
4
  useWithdrawPreview,
5
5
  useWithdrawalLifecycle
6
- } from "./chunk-7DCOWPUQ.mjs";
6
+ } from "./chunk-FX7UHERV.mjs";
7
7
  import {
8
8
  useDepositAddresses,
9
9
  useManagedBalances,
10
10
  useWithdrawManaged
11
- } from "./chunk-SFSGE25P.mjs";
11
+ } from "./chunk-7J4DFAKD.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.10.0",
3
+ "version": "4.11.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.10.0"
86
+ "@agg-build/sdk": "^4.11.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {