@liberfi.io/react-predict 0.1.50 → 0.1.52
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/index.d.mts +36 -4
- package/dist/index.d.ts +36 -4
- package/dist/index.js +75 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +72 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{server-CaB0XJAa.d.mts → server-BPTOChEG.d.mts} +42 -2
- package/dist/{server-CaB0XJAa.d.ts → server-BPTOChEG.d.ts} +42 -2
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +22 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +22 -0
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as CancelOrderResult, M as MatchesParams,
|
|
2
|
-
export {
|
|
1
|
+
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as TickSizeResponse, V as WsConnectionStatus, X as WsDataMessage, Y as WsPriceEvent, Z as WsOrderbookEvent, _ as WsTradeEvent, $ as CreateOrderInput } from './server-BPTOChEG.mjs';
|
|
2
|
+
export { b2 as BuildClobAuthMessageInput, bf as BuildOrderMessageInput, aV as CLOB_AUTH_DOMAIN, aW as CLOB_AUTH_TYPES, b3 as CTF_EXCHANGE_ADDRESS, b8 as CTF_ORDER_TYPES, be as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, a$ as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, aq as MatchGroupEntry, ar as MatchGroupMarket, av as MatchMarketFlat, as as MatchSortField, ap as MatchStatus, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, aE as WsErrorCode, aF as WsErrorMessage, aA as WsPingMessage, aC as WsPongMessage, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, aX as buildClobAuthMessage, bd as buildClobPayload, b7 as buildCtfExchangeDomain, bb as buildOrderMessage, aZ as buildPolymarketL2Headers, bc as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, a_ as derivePolymarketApiKey, aG as eventQueryKey, aH as fetchEvent, aL as fetchEventsPage, aP as fetchMarket, aU as fetchMatchMarketsPage, aS as fetchMatchesPage, aY as hmacSha256Base64, aK as infiniteEventsQueryKey, aO as marketQueryKey, aT as matchMarketsQueryKey, aR as matchQueryKey, aQ as matchesQueryKey, aJ as resolveEventsParams, aI as resolveTagSlug } from './server-BPTOChEG.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
|
@@ -436,6 +436,27 @@ interface UseInfiniteOrdersOptions {
|
|
|
436
436
|
declare function infiniteOrdersQueryKey(params: UseInfiniteOrdersParams): unknown[];
|
|
437
437
|
declare function useInfiniteOrders(params: UseInfiniteOrdersParams, options?: UseInfiniteOrdersOptions): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<PredictPage<PredictOrder>, unknown>, Error>;
|
|
438
438
|
|
|
439
|
+
declare function ordersMultiQueryKey(params: ListOrdersMultiParams): unknown[];
|
|
440
|
+
interface UseOrdersMultiOptions {
|
|
441
|
+
/**
|
|
442
|
+
* Async callback invoked before each request to obtain extra headers.
|
|
443
|
+
* Used by Polymarket orders to attach POLY_* HMAC authentication headers.
|
|
444
|
+
*/
|
|
445
|
+
getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
446
|
+
/**
|
|
447
|
+
* Extra values appended to the query key for cache invalidation.
|
|
448
|
+
* Use this to force a refetch when external state changes
|
|
449
|
+
* (e.g. `[!!credentials]` so the query re-runs once HMAC credentials load).
|
|
450
|
+
*/
|
|
451
|
+
keyExtra?: unknown[];
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Fetch enriched orders for multiple wallets in a single request.
|
|
455
|
+
* Each provider is queried with its own address. Orders include
|
|
456
|
+
* market and event summary data from the backend.
|
|
457
|
+
*/
|
|
458
|
+
declare function useOrdersMulti(params: ListOrdersMultiParams, options?: UseOrdersMultiOptions, queryOptions?: Omit<UseQueryOptions<PredictOrdersResponse, Error, PredictOrdersResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<PredictOrdersResponse, Error>;
|
|
459
|
+
|
|
439
460
|
declare function orderQueryKey(id: string, source: ProviderSource): unknown[];
|
|
440
461
|
interface UseOrderParams {
|
|
441
462
|
id: string;
|
|
@@ -450,7 +471,14 @@ interface CancelOrderVariables {
|
|
|
450
471
|
id: string;
|
|
451
472
|
source: ProviderSource;
|
|
452
473
|
}
|
|
453
|
-
|
|
474
|
+
interface UseCancelOrderOptions {
|
|
475
|
+
/**
|
|
476
|
+
* Async callback invoked before the cancel request to obtain extra headers.
|
|
477
|
+
* Required for Polymarket orders (POLY_* HMAC authentication headers).
|
|
478
|
+
*/
|
|
479
|
+
getHeaders?: (vars: CancelOrderVariables) => Record<string, string> | Promise<Record<string, string>>;
|
|
480
|
+
}
|
|
481
|
+
declare function useCancelOrder(options?: UseCancelOrderOptions, mutationOptions?: Omit<UseMutationOptions<CancelOrderResult, Error, CancelOrderVariables>, "mutationFn">): _tanstack_react_query.UseMutationResult<CancelOrderResult, Error, CancelOrderVariables, unknown>;
|
|
454
482
|
|
|
455
483
|
type UseInfiniteMatchesParams = Omit<MatchesParams, "cursor">;
|
|
456
484
|
type InfiniteQueryOptions$1 = Omit<UseInfiniteQueryOptions<MatchGroupPage, Error, InfiniteData<MatchGroupPage>, unknown[], string | undefined>, "queryKey" | "queryFn" | "initialPageParam" | "getNextPageParam">;
|
|
@@ -481,6 +509,10 @@ type UseInfiniteTradesParams = Omit<ListTradesParams, "cursor">;
|
|
|
481
509
|
declare function infiniteTradesQueryKey(params: UseInfiniteTradesParams): unknown[];
|
|
482
510
|
declare function useInfiniteTrades(params: UseInfiniteTradesParams): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<PredictPage<PredictTrade>, unknown>, Error>;
|
|
483
511
|
|
|
512
|
+
type UseInfiniteTradesMultiParams = Omit<ListTradesMultiParams, "cursor">;
|
|
513
|
+
declare function infiniteTradesMultiQueryKey(params: UseInfiniteTradesMultiParams): unknown[];
|
|
514
|
+
declare function useInfiniteTradesMulti(params: UseInfiniteTradesMultiParams): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<PredictPage<PredictTrade>, unknown>, Error>;
|
|
515
|
+
|
|
484
516
|
declare function dflowQuoteQueryKey(params: DFlowQuoteRequest): unknown[];
|
|
485
517
|
/**
|
|
486
518
|
* Fetch a DFlow quote. The query is only enabled when all required
|
|
@@ -824,4 +856,4 @@ interface CreatePolymarketOrderVariables {
|
|
|
824
856
|
*/
|
|
825
857
|
declare function useCreatePolymarketOrder(mutationOptions?: Omit<UseMutationOptions<PredictOrder, Error, CreatePolymarketOrderVariables>, "mutationFn">): _tanstack_react_query.UseMutationResult<PredictOrder, Error, CreatePolymarketOrderVariables, unknown>;
|
|
826
858
|
|
|
827
|
-
export { AvailableSharesResponse, BalanceResponse, CancelOrderResult, type CancelOrderVariables, Candlestick, ChartRange, type ChartRangeType, CreateOrderInput, type CreatePolymarketOrderVariables, DFlowKYCStatus, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStats, EventStatus, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, type MarketHistoryPoint, type MarketHistorySeries, MatchGroup, MatchGroupPage, MatchMarketPage, MatchMarketParams, MatchesParams, Orderbook, PolymarketContext, type PolymarketContextValue, type PolymarketCredentials, PolymarketDepositAddresses, type PolymarketDepositResult, type PolymarketDepositVariables, PolymarketProvider, type PolymarketProviderProps, type PolymarketSigner, PolymarketWithdrawRequest, PolymarketWithdrawResponse, PositionsResponse, PredictClient, PredictContext, type PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictProvider, type PredictProviderProps, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, ProviderSource, SimilarEventsParams, TickSizeResponse, type UseAvailableSharesOptions, type UseAvailableSharesParams, type UseBalanceParams, type UseCandlesticksParams, type UseEventParams, type UseInfiniteMatchMarketsParams, type UseInfiniteMatchesParams, type UseInfiniteOrdersOptions, type UseInfiniteOrdersParams, type UseInfiniteTradesParams, type UseMarketHistoryResult, type UseMarketParams, type UseMarketTradesParams, type UseOrderParams, type UseOrderbookParams, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UseOrdersOptions, type UsePositionsMultiParams, type UsePositionsParams, type UsePredictWsClientResult, type UsePriceHistoryParams, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseRealtimeOrderbookParams, type UseRealtimePricesParams, type UseRealtimeTradesParams, type UseRealtimeTradesResult, type UseSearchEventsParams, type UseSimilarEventsParams, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWithdrawStatusQueryParams, WithdrawBuildRequest, WithdrawBuildResponse, WithdrawStatusResponse, WithdrawSubmitRequest, WithdrawSubmitResponse, WsConnectionStatus, WsDataMessage, WsOrderbookEvent, WsPriceEvent, WsTradeEvent, availableSharesQueryKey, balanceQueryKey, candlesticksQueryKey, dflowKYCQueryKey, dflowQuoteQueryKey, eventStatsQueryKey, eventsQueryKey, fetchEvents, infiniteOrdersQueryKey, infiniteTradesQueryKey, marketTradesQueryKey, orderQueryKey, orderbookQueryKey, ordersQueryKey, polymarketDepositAddressesQueryKey, polymarketSetupQueryKey, positionsMultiQueryKey, positionsQueryKey, priceHistoryQueryKey, similarEventsQueryKey, tickSizeQueryKey, tradesQueryKey, useAvailableShares, useBalance, useCancelOrder, useCandlesticks, useCreatePolymarketOrder, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrderbookSubscription, useOrders, usePolymarket, usePolymarketDeposit, usePolymarketDepositAddresses, usePolymarketSetup, usePolymarketWithdraw, usePositions, usePositionsMulti, usePredictClient, usePredictWsClient, usePriceHistory, usePricesSubscription, useRealtimeOrderbook, useRealtimePrices, useRealtimeTrades, useRunPolymarketSetup, useSearchEvents, useSimilarEvents, useTickSize, useTrades, useTradesSubscription, useWithdrawBuildMutation, useWithdrawStatusQuery, useWithdrawSubmitMutation, withdrawStatusQueryKey };
|
|
859
|
+
export { AvailableSharesResponse, BalanceResponse, CancelOrderResult, type CancelOrderVariables, Candlestick, ChartRange, type ChartRangeType, CreateOrderInput, type CreatePolymarketOrderVariables, DFlowKYCStatus, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStats, EventStatus, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersMultiParams, ListOrdersParams, ListTradesMultiParams, ListTradesParams, type MarketHistoryPoint, type MarketHistorySeries, MatchGroup, MatchGroupPage, MatchMarketPage, MatchMarketParams, MatchesParams, Orderbook, PolymarketContext, type PolymarketContextValue, type PolymarketCredentials, PolymarketDepositAddresses, type PolymarketDepositResult, type PolymarketDepositVariables, PolymarketProvider, type PolymarketProviderProps, type PolymarketSigner, PolymarketWithdrawRequest, PolymarketWithdrawResponse, PositionsResponse, PredictClient, PredictContext, type PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictOrdersResponse, PredictPage, PredictProvider, type PredictProviderProps, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, ProviderSource, SimilarEventsParams, TickSizeResponse, type UseAvailableSharesOptions, type UseAvailableSharesParams, type UseBalanceParams, type UseCancelOrderOptions, type UseCandlesticksParams, type UseEventParams, type UseInfiniteMatchMarketsParams, type UseInfiniteMatchesParams, type UseInfiniteOrdersOptions, type UseInfiniteOrdersParams, type UseInfiniteTradesMultiParams, type UseInfiniteTradesParams, type UseMarketHistoryResult, type UseMarketParams, type UseMarketTradesParams, type UseOrderParams, type UseOrderbookParams, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UseOrdersMultiOptions, type UseOrdersOptions, type UsePositionsMultiParams, type UsePositionsParams, type UsePredictWsClientResult, type UsePriceHistoryParams, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseRealtimeOrderbookParams, type UseRealtimePricesParams, type UseRealtimeTradesParams, type UseRealtimeTradesResult, type UseSearchEventsParams, type UseSimilarEventsParams, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWithdrawStatusQueryParams, WithdrawBuildRequest, WithdrawBuildResponse, WithdrawStatusResponse, WithdrawSubmitRequest, WithdrawSubmitResponse, WsConnectionStatus, WsDataMessage, WsOrderbookEvent, WsPriceEvent, WsTradeEvent, availableSharesQueryKey, balanceQueryKey, candlesticksQueryKey, dflowKYCQueryKey, dflowQuoteQueryKey, eventStatsQueryKey, eventsQueryKey, fetchEvents, infiniteOrdersQueryKey, infiniteTradesMultiQueryKey, infiniteTradesQueryKey, marketTradesQueryKey, orderQueryKey, orderbookQueryKey, ordersMultiQueryKey, ordersQueryKey, polymarketDepositAddressesQueryKey, polymarketSetupQueryKey, positionsMultiQueryKey, positionsQueryKey, priceHistoryQueryKey, similarEventsQueryKey, tickSizeQueryKey, tradesQueryKey, useAvailableShares, useBalance, useCancelOrder, useCandlesticks, useCreatePolymarketOrder, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useInfiniteTradesMulti, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrderbookSubscription, useOrders, useOrdersMulti, usePolymarket, usePolymarketDeposit, usePolymarketDepositAddresses, usePolymarketSetup, usePolymarketWithdraw, usePositions, usePositionsMulti, usePredictClient, usePredictWsClient, usePriceHistory, usePricesSubscription, useRealtimeOrderbook, useRealtimePrices, useRealtimeTrades, useRunPolymarketSetup, useSearchEvents, useSimilarEvents, useTickSize, useTrades, useTradesSubscription, useWithdrawBuildMutation, useWithdrawStatusQuery, useWithdrawSubmitMutation, withdrawStatusQueryKey };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as CancelOrderResult, M as MatchesParams,
|
|
2
|
-
export {
|
|
1
|
+
import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as TickSizeResponse, V as WsConnectionStatus, X as WsDataMessage, Y as WsPriceEvent, Z as WsOrderbookEvent, _ as WsTradeEvent, $ as CreateOrderInput } from './server-BPTOChEG.js';
|
|
2
|
+
export { b2 as BuildClobAuthMessageInput, bf as BuildOrderMessageInput, aV as CLOB_AUTH_DOMAIN, aW as CLOB_AUTH_TYPES, b3 as CTF_EXCHANGE_ADDRESS, b8 as CTF_ORDER_TYPES, be as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, a$ as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, aq as MatchGroupEntry, ar as MatchGroupMarket, av as MatchMarketFlat, as as MatchSortField, ap as MatchStatus, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, aE as WsErrorCode, aF as WsErrorMessage, aA as WsPingMessage, aC as WsPongMessage, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, aX as buildClobAuthMessage, bd as buildClobPayload, b7 as buildCtfExchangeDomain, bb as buildOrderMessage, aZ as buildPolymarketL2Headers, bc as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, a_ as derivePolymarketApiKey, aG as eventQueryKey, aH as fetchEvent, aL as fetchEventsPage, aP as fetchMarket, aU as fetchMatchMarketsPage, aS as fetchMatchesPage, aY as hmacSha256Base64, aK as infiniteEventsQueryKey, aO as marketQueryKey, aT as matchMarketsQueryKey, aR as matchQueryKey, aQ as matchesQueryKey, aJ as resolveEventsParams, aI as resolveTagSlug } from './server-BPTOChEG.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
|
@@ -436,6 +436,27 @@ interface UseInfiniteOrdersOptions {
|
|
|
436
436
|
declare function infiniteOrdersQueryKey(params: UseInfiniteOrdersParams): unknown[];
|
|
437
437
|
declare function useInfiniteOrders(params: UseInfiniteOrdersParams, options?: UseInfiniteOrdersOptions): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<PredictPage<PredictOrder>, unknown>, Error>;
|
|
438
438
|
|
|
439
|
+
declare function ordersMultiQueryKey(params: ListOrdersMultiParams): unknown[];
|
|
440
|
+
interface UseOrdersMultiOptions {
|
|
441
|
+
/**
|
|
442
|
+
* Async callback invoked before each request to obtain extra headers.
|
|
443
|
+
* Used by Polymarket orders to attach POLY_* HMAC authentication headers.
|
|
444
|
+
*/
|
|
445
|
+
getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
446
|
+
/**
|
|
447
|
+
* Extra values appended to the query key for cache invalidation.
|
|
448
|
+
* Use this to force a refetch when external state changes
|
|
449
|
+
* (e.g. `[!!credentials]` so the query re-runs once HMAC credentials load).
|
|
450
|
+
*/
|
|
451
|
+
keyExtra?: unknown[];
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Fetch enriched orders for multiple wallets in a single request.
|
|
455
|
+
* Each provider is queried with its own address. Orders include
|
|
456
|
+
* market and event summary data from the backend.
|
|
457
|
+
*/
|
|
458
|
+
declare function useOrdersMulti(params: ListOrdersMultiParams, options?: UseOrdersMultiOptions, queryOptions?: Omit<UseQueryOptions<PredictOrdersResponse, Error, PredictOrdersResponse, unknown[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<PredictOrdersResponse, Error>;
|
|
459
|
+
|
|
439
460
|
declare function orderQueryKey(id: string, source: ProviderSource): unknown[];
|
|
440
461
|
interface UseOrderParams {
|
|
441
462
|
id: string;
|
|
@@ -450,7 +471,14 @@ interface CancelOrderVariables {
|
|
|
450
471
|
id: string;
|
|
451
472
|
source: ProviderSource;
|
|
452
473
|
}
|
|
453
|
-
|
|
474
|
+
interface UseCancelOrderOptions {
|
|
475
|
+
/**
|
|
476
|
+
* Async callback invoked before the cancel request to obtain extra headers.
|
|
477
|
+
* Required for Polymarket orders (POLY_* HMAC authentication headers).
|
|
478
|
+
*/
|
|
479
|
+
getHeaders?: (vars: CancelOrderVariables) => Record<string, string> | Promise<Record<string, string>>;
|
|
480
|
+
}
|
|
481
|
+
declare function useCancelOrder(options?: UseCancelOrderOptions, mutationOptions?: Omit<UseMutationOptions<CancelOrderResult, Error, CancelOrderVariables>, "mutationFn">): _tanstack_react_query.UseMutationResult<CancelOrderResult, Error, CancelOrderVariables, unknown>;
|
|
454
482
|
|
|
455
483
|
type UseInfiniteMatchesParams = Omit<MatchesParams, "cursor">;
|
|
456
484
|
type InfiniteQueryOptions$1 = Omit<UseInfiniteQueryOptions<MatchGroupPage, Error, InfiniteData<MatchGroupPage>, unknown[], string | undefined>, "queryKey" | "queryFn" | "initialPageParam" | "getNextPageParam">;
|
|
@@ -481,6 +509,10 @@ type UseInfiniteTradesParams = Omit<ListTradesParams, "cursor">;
|
|
|
481
509
|
declare function infiniteTradesQueryKey(params: UseInfiniteTradesParams): unknown[];
|
|
482
510
|
declare function useInfiniteTrades(params: UseInfiniteTradesParams): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<PredictPage<PredictTrade>, unknown>, Error>;
|
|
483
511
|
|
|
512
|
+
type UseInfiniteTradesMultiParams = Omit<ListTradesMultiParams, "cursor">;
|
|
513
|
+
declare function infiniteTradesMultiQueryKey(params: UseInfiniteTradesMultiParams): unknown[];
|
|
514
|
+
declare function useInfiniteTradesMulti(params: UseInfiniteTradesMultiParams): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<PredictPage<PredictTrade>, unknown>, Error>;
|
|
515
|
+
|
|
484
516
|
declare function dflowQuoteQueryKey(params: DFlowQuoteRequest): unknown[];
|
|
485
517
|
/**
|
|
486
518
|
* Fetch a DFlow quote. The query is only enabled when all required
|
|
@@ -824,4 +856,4 @@ interface CreatePolymarketOrderVariables {
|
|
|
824
856
|
*/
|
|
825
857
|
declare function useCreatePolymarketOrder(mutationOptions?: Omit<UseMutationOptions<PredictOrder, Error, CreatePolymarketOrderVariables>, "mutationFn">): _tanstack_react_query.UseMutationResult<PredictOrder, Error, CreatePolymarketOrderVariables, unknown>;
|
|
826
858
|
|
|
827
|
-
export { AvailableSharesResponse, BalanceResponse, CancelOrderResult, type CancelOrderVariables, Candlestick, ChartRange, type ChartRangeType, CreateOrderInput, type CreatePolymarketOrderVariables, DFlowKYCStatus, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStats, EventStatus, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersParams, ListTradesParams, type MarketHistoryPoint, type MarketHistorySeries, MatchGroup, MatchGroupPage, MatchMarketPage, MatchMarketParams, MatchesParams, Orderbook, PolymarketContext, type PolymarketContextValue, type PolymarketCredentials, PolymarketDepositAddresses, type PolymarketDepositResult, type PolymarketDepositVariables, PolymarketProvider, type PolymarketProviderProps, type PolymarketSigner, PolymarketWithdrawRequest, PolymarketWithdrawResponse, PositionsResponse, PredictClient, PredictContext, type PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictPage, PredictProvider, type PredictProviderProps, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, ProviderSource, SimilarEventsParams, TickSizeResponse, type UseAvailableSharesOptions, type UseAvailableSharesParams, type UseBalanceParams, type UseCandlesticksParams, type UseEventParams, type UseInfiniteMatchMarketsParams, type UseInfiniteMatchesParams, type UseInfiniteOrdersOptions, type UseInfiniteOrdersParams, type UseInfiniteTradesParams, type UseMarketHistoryResult, type UseMarketParams, type UseMarketTradesParams, type UseOrderParams, type UseOrderbookParams, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UseOrdersOptions, type UsePositionsMultiParams, type UsePositionsParams, type UsePredictWsClientResult, type UsePriceHistoryParams, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseRealtimeOrderbookParams, type UseRealtimePricesParams, type UseRealtimeTradesParams, type UseRealtimeTradesResult, type UseSearchEventsParams, type UseSimilarEventsParams, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWithdrawStatusQueryParams, WithdrawBuildRequest, WithdrawBuildResponse, WithdrawStatusResponse, WithdrawSubmitRequest, WithdrawSubmitResponse, WsConnectionStatus, WsDataMessage, WsOrderbookEvent, WsPriceEvent, WsTradeEvent, availableSharesQueryKey, balanceQueryKey, candlesticksQueryKey, dflowKYCQueryKey, dflowQuoteQueryKey, eventStatsQueryKey, eventsQueryKey, fetchEvents, infiniteOrdersQueryKey, infiniteTradesQueryKey, marketTradesQueryKey, orderQueryKey, orderbookQueryKey, ordersQueryKey, polymarketDepositAddressesQueryKey, polymarketSetupQueryKey, positionsMultiQueryKey, positionsQueryKey, priceHistoryQueryKey, similarEventsQueryKey, tickSizeQueryKey, tradesQueryKey, useAvailableShares, useBalance, useCancelOrder, useCandlesticks, useCreatePolymarketOrder, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrderbookSubscription, useOrders, usePolymarket, usePolymarketDeposit, usePolymarketDepositAddresses, usePolymarketSetup, usePolymarketWithdraw, usePositions, usePositionsMulti, usePredictClient, usePredictWsClient, usePriceHistory, usePricesSubscription, useRealtimeOrderbook, useRealtimePrices, useRealtimeTrades, useRunPolymarketSetup, useSearchEvents, useSimilarEvents, useTickSize, useTrades, useTradesSubscription, useWithdrawBuildMutation, useWithdrawStatusQuery, useWithdrawSubmitMutation, withdrawStatusQueryKey };
|
|
859
|
+
export { AvailableSharesResponse, BalanceResponse, CancelOrderResult, type CancelOrderVariables, Candlestick, ChartRange, type ChartRangeType, CreateOrderInput, type CreatePolymarketOrderVariables, DFlowKYCStatus, DFlowQuoteRequest, DFlowQuoteResponse, DFlowSubmitRequest, DFlowSubmitResponse, EventSortField, EventStats, EventStatus, ListCandlesticksParams, ListEventsParams, ListMarketTradesParams, ListOrdersMultiParams, ListOrdersParams, ListTradesMultiParams, ListTradesParams, type MarketHistoryPoint, type MarketHistorySeries, MatchGroup, MatchGroupPage, MatchMarketPage, MatchMarketParams, MatchesParams, Orderbook, PolymarketContext, type PolymarketContextValue, type PolymarketCredentials, PolymarketDepositAddresses, type PolymarketDepositResult, type PolymarketDepositVariables, PolymarketProvider, type PolymarketProviderProps, type PolymarketSigner, PolymarketWithdrawRequest, PolymarketWithdrawResponse, PositionsResponse, PredictClient, PredictContext, type PredictContextValue, PredictEvent, PredictMarket, PredictOrder, PredictOrdersResponse, PredictPage, PredictProvider, type PredictProviderProps, PredictTrade, PredictWsClient, PriceHistoryRange, PriceHistoryResponse, ProviderSource, SimilarEventsParams, TickSizeResponse, type UseAvailableSharesOptions, type UseAvailableSharesParams, type UseBalanceParams, type UseCancelOrderOptions, type UseCandlesticksParams, type UseEventParams, type UseInfiniteMatchMarketsParams, type UseInfiniteMatchesParams, type UseInfiniteOrdersOptions, type UseInfiniteOrdersParams, type UseInfiniteTradesMultiParams, type UseInfiniteTradesParams, type UseMarketHistoryResult, type UseMarketParams, type UseMarketTradesParams, type UseOrderParams, type UseOrderbookParams, type UseOrderbookSubscriptionParams, type UseOrderbookSubscriptionResult, type UseOrdersMultiOptions, type UseOrdersOptions, type UsePositionsMultiParams, type UsePositionsParams, type UsePredictWsClientResult, type UsePriceHistoryParams, type UsePricesSubscriptionParams, type UsePricesSubscriptionResult, type UseRealtimeOrderbookParams, type UseRealtimePricesParams, type UseRealtimeTradesParams, type UseRealtimeTradesResult, type UseSearchEventsParams, type UseSimilarEventsParams, type UseTradesSubscriptionParams, type UseTradesSubscriptionResult, type UseWithdrawStatusQueryParams, WithdrawBuildRequest, WithdrawBuildResponse, WithdrawStatusResponse, WithdrawSubmitRequest, WithdrawSubmitResponse, WsConnectionStatus, WsDataMessage, WsOrderbookEvent, WsPriceEvent, WsTradeEvent, availableSharesQueryKey, balanceQueryKey, candlesticksQueryKey, dflowKYCQueryKey, dflowQuoteQueryKey, eventStatsQueryKey, eventsQueryKey, fetchEvents, infiniteOrdersQueryKey, infiniteTradesMultiQueryKey, infiniteTradesQueryKey, marketTradesQueryKey, orderQueryKey, orderbookQueryKey, ordersMultiQueryKey, ordersQueryKey, polymarketDepositAddressesQueryKey, polymarketSetupQueryKey, positionsMultiQueryKey, positionsQueryKey, priceHistoryQueryKey, similarEventsQueryKey, tickSizeQueryKey, tradesQueryKey, useAvailableShares, useBalance, useCancelOrder, useCandlesticks, useCreatePolymarketOrder, useDFlowKYC, useDFlowQuote, useDFlowSubmit, useEvent, useEventStats, useEvents, useInfiniteEvents, useInfiniteMatchMarkets, useInfiniteMatches, useInfiniteOrders, useInfiniteTrades, useInfiniteTradesMulti, useMarket, useMarketHistory, useMarketTrades, useMatch, useOrder, useOrderbook, useOrderbookSubscription, useOrders, useOrdersMulti, usePolymarket, usePolymarketDeposit, usePolymarketDepositAddresses, usePolymarketSetup, usePolymarketWithdraw, usePositions, usePositionsMulti, usePredictClient, usePredictWsClient, usePriceHistory, usePricesSubscription, useRealtimeOrderbook, useRealtimePrices, useRealtimeTrades, useRunPolymarketSetup, useSearchEvents, useSimilarEvents, useTickSize, useTrades, useTradesSubscription, useWithdrawBuildMutation, useWithdrawStatusQuery, useWithdrawSubmitMutation, withdrawStatusQueryKey };
|
package/dist/index.js
CHANGED
|
@@ -188,6 +188,22 @@ var PredictClient = class {
|
|
|
188
188
|
headers ? { headers } : void 0
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Multi-wallet order listing with enriched market/event context.
|
|
193
|
+
*
|
|
194
|
+
* Maps to `GET /api/v1/orders?kalshi_user=...&polymarket_user=...`.
|
|
195
|
+
*
|
|
196
|
+
* @param params - Per-provider wallet addresses.
|
|
197
|
+
* @param headers - Optional extra headers (e.g. Polymarket POLY_* HMAC headers).
|
|
198
|
+
*/
|
|
199
|
+
async listOrdersMulti(params, headers) {
|
|
200
|
+
const query = buildQuery(params);
|
|
201
|
+
const url = `${this.endpoint}/api/v1/orders${query}`;
|
|
202
|
+
return await utils.httpGet(
|
|
203
|
+
url,
|
|
204
|
+
headers ? { headers } : void 0
|
|
205
|
+
);
|
|
206
|
+
}
|
|
191
207
|
/**
|
|
192
208
|
* Maps to `GET /api/v1/orders/:id?source=...`.
|
|
193
209
|
*
|
|
@@ -332,6 +348,12 @@ var PredictClient = class {
|
|
|
332
348
|
const url = `${this.endpoint}/api/v1/trades${query}`;
|
|
333
349
|
return await utils.httpGet(url);
|
|
334
350
|
}
|
|
351
|
+
/** Maps to `GET /api/v1/trades?kalshi_user=...&polymarket_user=...`. */
|
|
352
|
+
async listTradesMulti(params) {
|
|
353
|
+
const query = buildQuery(params);
|
|
354
|
+
const url = `${this.endpoint}/api/v1/trades${query}`;
|
|
355
|
+
return await utils.httpGet(url);
|
|
356
|
+
}
|
|
335
357
|
// -------------------------------------------------------------------------
|
|
336
358
|
// Withdraw
|
|
337
359
|
// -------------------------------------------------------------------------
|
|
@@ -1337,6 +1359,30 @@ function useInfiniteOrders(params, options) {
|
|
|
1337
1359
|
enabled: Boolean(params.wallet_address)
|
|
1338
1360
|
});
|
|
1339
1361
|
}
|
|
1362
|
+
function ordersMultiQueryKey(params) {
|
|
1363
|
+
return [
|
|
1364
|
+
"predict",
|
|
1365
|
+
"orders",
|
|
1366
|
+
"multi",
|
|
1367
|
+
params.kalshi_user ?? "",
|
|
1368
|
+
params.polymarket_user ?? ""
|
|
1369
|
+
];
|
|
1370
|
+
}
|
|
1371
|
+
function useOrdersMulti(params, options, queryOptions = {}) {
|
|
1372
|
+
const client = usePredictClient();
|
|
1373
|
+
const hasAnyWallet = Boolean(params.kalshi_user || params.polymarket_user);
|
|
1374
|
+
return reactQuery.useQuery({
|
|
1375
|
+
queryKey: [...ordersMultiQueryKey(params), ...options?.keyExtra ?? []],
|
|
1376
|
+
queryFn: async () => {
|
|
1377
|
+
const headers = await options?.getHeaders?.();
|
|
1378
|
+
return client.listOrdersMulti(params, headers);
|
|
1379
|
+
},
|
|
1380
|
+
enabled: hasAnyWallet,
|
|
1381
|
+
staleTime: 1e4,
|
|
1382
|
+
refetchInterval: 3e4,
|
|
1383
|
+
...queryOptions
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1340
1386
|
function orderQueryKey(id, source) {
|
|
1341
1387
|
return ["predict", "order", id, source];
|
|
1342
1388
|
}
|
|
@@ -1350,15 +1396,23 @@ function useOrder(params, queryOptions = {}) {
|
|
|
1350
1396
|
...queryOptions
|
|
1351
1397
|
});
|
|
1352
1398
|
}
|
|
1353
|
-
function useCancelOrder(mutationOptions = {}) {
|
|
1399
|
+
function useCancelOrder(options, mutationOptions = {}) {
|
|
1354
1400
|
const client = usePredictClient();
|
|
1355
1401
|
const queryClient = reactQuery.useQueryClient();
|
|
1402
|
+
const { onSuccess, onError, ...restMutationOptions } = mutationOptions;
|
|
1356
1403
|
return reactQuery.useMutation({
|
|
1357
|
-
mutationFn: (vars) =>
|
|
1358
|
-
|
|
1404
|
+
mutationFn: async (vars) => {
|
|
1405
|
+
const headers = await options?.getHeaders?.(vars);
|
|
1406
|
+
return client.cancelOrder(vars.id, vars.source, headers);
|
|
1407
|
+
},
|
|
1408
|
+
onSuccess: (...args) => {
|
|
1359
1409
|
queryClient.invalidateQueries({ queryKey: ["predict", "orders"] });
|
|
1410
|
+
onSuccess?.(...args);
|
|
1360
1411
|
},
|
|
1361
|
-
...
|
|
1412
|
+
onError: (...args) => {
|
|
1413
|
+
onError?.(...args);
|
|
1414
|
+
},
|
|
1415
|
+
...restMutationOptions
|
|
1362
1416
|
});
|
|
1363
1417
|
}
|
|
1364
1418
|
|
|
@@ -1451,6 +1505,19 @@ function useInfiniteTrades(params) {
|
|
|
1451
1505
|
enabled: Boolean(params.wallet)
|
|
1452
1506
|
});
|
|
1453
1507
|
}
|
|
1508
|
+
function infiniteTradesMultiQueryKey(params) {
|
|
1509
|
+
return ["predict", "trades-by-wallet", "infinite-multi", params];
|
|
1510
|
+
}
|
|
1511
|
+
function useInfiniteTradesMulti(params) {
|
|
1512
|
+
const client = usePredictClient();
|
|
1513
|
+
return reactQuery.useInfiniteQuery({
|
|
1514
|
+
queryKey: infiniteTradesMultiQueryKey(params),
|
|
1515
|
+
queryFn: ({ pageParam }) => client.listTradesMulti({ ...params, cursor: pageParam }),
|
|
1516
|
+
initialPageParam: void 0,
|
|
1517
|
+
getNextPageParam: (lastPage) => lastPage.has_more ? lastPage.next_cursor : void 0,
|
|
1518
|
+
enabled: Boolean(params.kalshi_user || params.polymarket_user)
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1454
1521
|
function dflowQuoteQueryKey(params) {
|
|
1455
1522
|
return ["predict", "dflow-quote", params];
|
|
1456
1523
|
}
|
|
@@ -2132,6 +2199,7 @@ exports.fetchMatchesPage = fetchMatchesPage;
|
|
|
2132
2199
|
exports.hmacSha256Base64 = hmacSha256Base64;
|
|
2133
2200
|
exports.infiniteEventsQueryKey = infiniteEventsQueryKey;
|
|
2134
2201
|
exports.infiniteOrdersQueryKey = infiniteOrdersQueryKey;
|
|
2202
|
+
exports.infiniteTradesMultiQueryKey = infiniteTradesMultiQueryKey;
|
|
2135
2203
|
exports.infiniteTradesQueryKey = infiniteTradesQueryKey;
|
|
2136
2204
|
exports.marketQueryKey = marketQueryKey;
|
|
2137
2205
|
exports.marketTradesQueryKey = marketTradesQueryKey;
|
|
@@ -2140,6 +2208,7 @@ exports.matchQueryKey = matchQueryKey;
|
|
|
2140
2208
|
exports.matchesQueryKey = matchesQueryKey;
|
|
2141
2209
|
exports.orderQueryKey = orderQueryKey;
|
|
2142
2210
|
exports.orderbookQueryKey = orderbookQueryKey;
|
|
2211
|
+
exports.ordersMultiQueryKey = ordersMultiQueryKey;
|
|
2143
2212
|
exports.ordersQueryKey = ordersQueryKey;
|
|
2144
2213
|
exports.polymarketDepositAddressesQueryKey = polymarketDepositAddressesQueryKey;
|
|
2145
2214
|
exports.polymarketSetupQueryKey = polymarketSetupQueryKey;
|
|
@@ -2167,6 +2236,7 @@ exports.useInfiniteMatchMarkets = useInfiniteMatchMarkets;
|
|
|
2167
2236
|
exports.useInfiniteMatches = useInfiniteMatches;
|
|
2168
2237
|
exports.useInfiniteOrders = useInfiniteOrders;
|
|
2169
2238
|
exports.useInfiniteTrades = useInfiniteTrades;
|
|
2239
|
+
exports.useInfiniteTradesMulti = useInfiniteTradesMulti;
|
|
2170
2240
|
exports.useMarket = useMarket;
|
|
2171
2241
|
exports.useMarketHistory = useMarketHistory;
|
|
2172
2242
|
exports.useMarketTrades = useMarketTrades;
|
|
@@ -2175,6 +2245,7 @@ exports.useOrder = useOrder;
|
|
|
2175
2245
|
exports.useOrderbook = useOrderbook;
|
|
2176
2246
|
exports.useOrderbookSubscription = useOrderbookSubscription;
|
|
2177
2247
|
exports.useOrders = useOrders;
|
|
2248
|
+
exports.useOrdersMulti = useOrdersMulti;
|
|
2178
2249
|
exports.usePolymarket = usePolymarket;
|
|
2179
2250
|
exports.usePolymarketDeposit = usePolymarketDeposit;
|
|
2180
2251
|
exports.usePolymarketDepositAddresses = usePolymarketDepositAddresses;
|