@liberfi.io/react-predict 0.1.48 → 0.1.49
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{server-Curi-jN1.d.mts → server-rYuNULuJ.d.mts} +10 -0
- package/dist/{server-Curi-jN1.d.ts → server-rYuNULuJ.d.ts} +10 -0
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +4 -2
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +4 -2
- 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, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as CancelOrderResult, M as MatchesParams, q as MatchGroupPage, r as MatchGroup, s as MatchMarketParams, t as MatchMarketPage, u as ListTradesParams, D as DFlowQuoteRequest, v as DFlowQuoteResponse, w as DFlowSubmitResponse, x as DFlowSubmitRequest, y as DFlowKYCStatus, z as PolymarketSetupStatus, W as WithdrawBuildResponse, A as WithdrawBuildRequest, F as WithdrawSubmitResponse, G as WithdrawSubmitRequest, H as WithdrawStatusResponse, I as PolymarketDepositAddresses, J as PolymarketWithdrawResponse, K as PolymarketWithdrawRequest, T as TickSizeResponse, N as WsConnectionStatus, Q as WsDataMessage, R as WsPriceEvent, U as WsOrderbookEvent, V as WsTradeEvent, X as CreateOrderInput } from './server-
|
|
2
|
-
export { a_ as BuildClobAuthMessageInput, bb as BuildOrderMessageInput, aR as CLOB_AUTH_DOMAIN, aS as CLOB_AUTH_TYPES, a$ as CTF_EXCHANGE_ADDRESS, b4 as CTF_ORDER_TYPES, ba as ClobOrderPayload, ad as DFlowOrderContext, af as DepositBuildRequest, ag as DepositBuildResponse, aj as DepositStatusResponse, ah as DepositSubmitRequest, ai as DepositSubmitResponse, a7 as EventSummary, aX as HttpMethod, a4 as MarketOutcome, a3 as MarketResult, a2 as MarketStatus, a8 as MarketSummary, aq as MatchConfidenceTier, am as MatchGroupEntry, an as MatchGroupMarket, ar as MatchMarketFlat, ao as MatchSortField, al as MatchStatus, ap as MatchesStats, b0 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b5 as ORDER_TYPE, bc as OrderMessage, ac as OrderSide, ab as OrderStatus, a5 as OrderbookLevel, b2 as POLYGON_CHAIN_ID, aZ as PolymarketL2Headers, aY as PolymarketL2HeadersInput, ae as PolymarketOrderType, aa as PredictPosition, a0 as PredictTag, _ as PredictWsClientConfig, a9 as PricePoint, $ as ProviderMeta, aI as ResolveEventsParamsInput, b6 as SIDE, a1 as SettlementSource, bd as SignedOrder, aJ as TagSlugSelection, a6 as TradeType, b1 as USDC_ADDRESS, ak as UnsignedTx, as as WsChannel, at as WsChannelEvent, au as WsClientMessage, aA as WsErrorCode, aB as WsErrorMessage, aw as WsPingMessage, ay as WsPongMessage, ax as WsServerMessage, av as WsSubscribeMessage, az as WsSubscribedMessage, aT as buildClobAuthMessage, b9 as buildClobPayload, b3 as buildCtfExchangeDomain, b7 as buildOrderMessage, aV as buildPolymarketL2Headers, b8 as buildSignedOrder, Y as createPredictClient, Z as createPredictWsClient, aW as derivePolymarketApiKey, aC as eventQueryKey, aD as fetchEvent, aH as fetchEventsPage, aL as fetchMarket, aQ as fetchMatchMarketsPage, aO as fetchMatchesPage, aU as hmacSha256Base64, aG as infiniteEventsQueryKey, aK as marketQueryKey, aP as matchMarketsQueryKey, aN as matchQueryKey, aM as matchesQueryKey, aF as resolveEventsParams, aE as resolveTagSlug } from './server-
|
|
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, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as CancelOrderResult, M as MatchesParams, q as MatchGroupPage, r as MatchGroup, s as MatchMarketParams, t as MatchMarketPage, u as ListTradesParams, D as DFlowQuoteRequest, v as DFlowQuoteResponse, w as DFlowSubmitResponse, x as DFlowSubmitRequest, y as DFlowKYCStatus, z as PolymarketSetupStatus, W as WithdrawBuildResponse, A as WithdrawBuildRequest, F as WithdrawSubmitResponse, G as WithdrawSubmitRequest, H as WithdrawStatusResponse, I as PolymarketDepositAddresses, J as PolymarketWithdrawResponse, K as PolymarketWithdrawRequest, T as TickSizeResponse, N as WsConnectionStatus, Q as WsDataMessage, R as WsPriceEvent, U as WsOrderbookEvent, V as WsTradeEvent, X as CreateOrderInput } from './server-rYuNULuJ.mjs';
|
|
2
|
+
export { a_ as BuildClobAuthMessageInput, bb as BuildOrderMessageInput, aR as CLOB_AUTH_DOMAIN, aS as CLOB_AUTH_TYPES, a$ as CTF_EXCHANGE_ADDRESS, b4 as CTF_ORDER_TYPES, ba as ClobOrderPayload, ad as DFlowOrderContext, af as DepositBuildRequest, ag as DepositBuildResponse, aj as DepositStatusResponse, ah as DepositSubmitRequest, ai as DepositSubmitResponse, a7 as EventSummary, aX as HttpMethod, a4 as MarketOutcome, a3 as MarketResult, a2 as MarketStatus, a8 as MarketSummary, aq as MatchConfidenceTier, am as MatchGroupEntry, an as MatchGroupMarket, ar as MatchMarketFlat, ao as MatchSortField, al as MatchStatus, ap as MatchesStats, b0 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b5 as ORDER_TYPE, bc as OrderMessage, ac as OrderSide, ab as OrderStatus, a5 as OrderbookLevel, b2 as POLYGON_CHAIN_ID, aZ as PolymarketL2Headers, aY as PolymarketL2HeadersInput, ae as PolymarketOrderType, aa as PredictPosition, a0 as PredictTag, _ as PredictWsClientConfig, a9 as PricePoint, $ as ProviderMeta, aI as ResolveEventsParamsInput, b6 as SIDE, a1 as SettlementSource, bd as SignedOrder, aJ as TagSlugSelection, a6 as TradeType, b1 as USDC_ADDRESS, ak as UnsignedTx, as as WsChannel, at as WsChannelEvent, au as WsClientMessage, aA as WsErrorCode, aB as WsErrorMessage, aw as WsPingMessage, ay as WsPongMessage, ax as WsServerMessage, av as WsSubscribeMessage, az as WsSubscribedMessage, aT as buildClobAuthMessage, b9 as buildClobPayload, b3 as buildCtfExchangeDomain, b7 as buildOrderMessage, aV as buildPolymarketL2Headers, b8 as buildSignedOrder, Y as createPredictClient, Z as createPredictWsClient, aW as derivePolymarketApiKey, aC as eventQueryKey, aD as fetchEvent, aH as fetchEventsPage, aL as fetchMarket, aQ as fetchMatchMarketsPage, aO as fetchMatchesPage, aU as hmacSha256Base64, aG as infiniteEventsQueryKey, aK as marketQueryKey, aP as matchMarketsQueryKey, aN as matchQueryKey, aM as matchesQueryKey, aF as resolveEventsParams, aE as resolveTagSlug } from './server-rYuNULuJ.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';
|
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, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as CancelOrderResult, M as MatchesParams, q as MatchGroupPage, r as MatchGroup, s as MatchMarketParams, t as MatchMarketPage, u as ListTradesParams, D as DFlowQuoteRequest, v as DFlowQuoteResponse, w as DFlowSubmitResponse, x as DFlowSubmitRequest, y as DFlowKYCStatus, z as PolymarketSetupStatus, W as WithdrawBuildResponse, A as WithdrawBuildRequest, F as WithdrawSubmitResponse, G as WithdrawSubmitRequest, H as WithdrawStatusResponse, I as PolymarketDepositAddresses, J as PolymarketWithdrawResponse, K as PolymarketWithdrawRequest, T as TickSizeResponse, N as WsConnectionStatus, Q as WsDataMessage, R as WsPriceEvent, U as WsOrderbookEvent, V as WsTradeEvent, X as CreateOrderInput } from './server-
|
|
2
|
-
export { a_ as BuildClobAuthMessageInput, bb as BuildOrderMessageInput, aR as CLOB_AUTH_DOMAIN, aS as CLOB_AUTH_TYPES, a$ as CTF_EXCHANGE_ADDRESS, b4 as CTF_ORDER_TYPES, ba as ClobOrderPayload, ad as DFlowOrderContext, af as DepositBuildRequest, ag as DepositBuildResponse, aj as DepositStatusResponse, ah as DepositSubmitRequest, ai as DepositSubmitResponse, a7 as EventSummary, aX as HttpMethod, a4 as MarketOutcome, a3 as MarketResult, a2 as MarketStatus, a8 as MarketSummary, aq as MatchConfidenceTier, am as MatchGroupEntry, an as MatchGroupMarket, ar as MatchMarketFlat, ao as MatchSortField, al as MatchStatus, ap as MatchesStats, b0 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b5 as ORDER_TYPE, bc as OrderMessage, ac as OrderSide, ab as OrderStatus, a5 as OrderbookLevel, b2 as POLYGON_CHAIN_ID, aZ as PolymarketL2Headers, aY as PolymarketL2HeadersInput, ae as PolymarketOrderType, aa as PredictPosition, a0 as PredictTag, _ as PredictWsClientConfig, a9 as PricePoint, $ as ProviderMeta, aI as ResolveEventsParamsInput, b6 as SIDE, a1 as SettlementSource, bd as SignedOrder, aJ as TagSlugSelection, a6 as TradeType, b1 as USDC_ADDRESS, ak as UnsignedTx, as as WsChannel, at as WsChannelEvent, au as WsClientMessage, aA as WsErrorCode, aB as WsErrorMessage, aw as WsPingMessage, ay as WsPongMessage, ax as WsServerMessage, av as WsSubscribeMessage, az as WsSubscribedMessage, aT as buildClobAuthMessage, b9 as buildClobPayload, b3 as buildCtfExchangeDomain, b7 as buildOrderMessage, aV as buildPolymarketL2Headers, b8 as buildSignedOrder, Y as createPredictClient, Z as createPredictWsClient, aW as derivePolymarketApiKey, aC as eventQueryKey, aD as fetchEvent, aH as fetchEventsPage, aL as fetchMarket, aQ as fetchMatchMarketsPage, aO as fetchMatchesPage, aU as hmacSha256Base64, aG as infiniteEventsQueryKey, aK as marketQueryKey, aP as matchMarketsQueryKey, aN as matchQueryKey, aM as matchesQueryKey, aF as resolveEventsParams, aE as resolveTagSlug } from './server-
|
|
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, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as CancelOrderResult, M as MatchesParams, q as MatchGroupPage, r as MatchGroup, s as MatchMarketParams, t as MatchMarketPage, u as ListTradesParams, D as DFlowQuoteRequest, v as DFlowQuoteResponse, w as DFlowSubmitResponse, x as DFlowSubmitRequest, y as DFlowKYCStatus, z as PolymarketSetupStatus, W as WithdrawBuildResponse, A as WithdrawBuildRequest, F as WithdrawSubmitResponse, G as WithdrawSubmitRequest, H as WithdrawStatusResponse, I as PolymarketDepositAddresses, J as PolymarketWithdrawResponse, K as PolymarketWithdrawRequest, T as TickSizeResponse, N as WsConnectionStatus, Q as WsDataMessage, R as WsPriceEvent, U as WsOrderbookEvent, V as WsTradeEvent, X as CreateOrderInput } from './server-rYuNULuJ.js';
|
|
2
|
+
export { a_ as BuildClobAuthMessageInput, bb as BuildOrderMessageInput, aR as CLOB_AUTH_DOMAIN, aS as CLOB_AUTH_TYPES, a$ as CTF_EXCHANGE_ADDRESS, b4 as CTF_ORDER_TYPES, ba as ClobOrderPayload, ad as DFlowOrderContext, af as DepositBuildRequest, ag as DepositBuildResponse, aj as DepositStatusResponse, ah as DepositSubmitRequest, ai as DepositSubmitResponse, a7 as EventSummary, aX as HttpMethod, a4 as MarketOutcome, a3 as MarketResult, a2 as MarketStatus, a8 as MarketSummary, aq as MatchConfidenceTier, am as MatchGroupEntry, an as MatchGroupMarket, ar as MatchMarketFlat, ao as MatchSortField, al as MatchStatus, ap as MatchesStats, b0 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b5 as ORDER_TYPE, bc as OrderMessage, ac as OrderSide, ab as OrderStatus, a5 as OrderbookLevel, b2 as POLYGON_CHAIN_ID, aZ as PolymarketL2Headers, aY as PolymarketL2HeadersInput, ae as PolymarketOrderType, aa as PredictPosition, a0 as PredictTag, _ as PredictWsClientConfig, a9 as PricePoint, $ as ProviderMeta, aI as ResolveEventsParamsInput, b6 as SIDE, a1 as SettlementSource, bd as SignedOrder, aJ as TagSlugSelection, a6 as TradeType, b1 as USDC_ADDRESS, ak as UnsignedTx, as as WsChannel, at as WsChannelEvent, au as WsClientMessage, aA as WsErrorCode, aB as WsErrorMessage, aw as WsPingMessage, ay as WsPongMessage, ax as WsServerMessage, av as WsSubscribeMessage, az as WsSubscribedMessage, aT as buildClobAuthMessage, b9 as buildClobPayload, b3 as buildCtfExchangeDomain, b7 as buildOrderMessage, aV as buildPolymarketL2Headers, b8 as buildSignedOrder, Y as createPredictClient, Z as createPredictWsClient, aW as derivePolymarketApiKey, aC as eventQueryKey, aD as fetchEvent, aH as fetchEventsPage, aL as fetchMarket, aQ as fetchMatchMarketsPage, aO as fetchMatchesPage, aU as hmacSha256Base64, aG as infiniteEventsQueryKey, aK as marketQueryKey, aP as matchMarketsQueryKey, aN as matchQueryKey, aM as matchesQueryKey, aF as resolveEventsParams, aE as resolveTagSlug } from './server-rYuNULuJ.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';
|
package/dist/index.js
CHANGED
|
@@ -948,7 +948,8 @@ function resolveEventsParams(input = {}) {
|
|
|
948
948
|
sort_asc,
|
|
949
949
|
minVolume,
|
|
950
950
|
minLiquidity,
|
|
951
|
-
timeRemaining
|
|
951
|
+
timeRemaining,
|
|
952
|
+
markets_limit = 3
|
|
952
953
|
} = input;
|
|
953
954
|
const tag_slug = resolveTagSlug(tagSlugSelection);
|
|
954
955
|
const min_volume = minVolume !== void 0 && minVolume !== "" ? Number(minVolume) : void 0;
|
|
@@ -964,7 +965,8 @@ function resolveEventsParams(input = {}) {
|
|
|
964
965
|
...sort_asc !== void 0 ? { sort_asc } : {},
|
|
965
966
|
...min_volume !== void 0 && !isNaN(min_volume) ? { min_volume } : {},
|
|
966
967
|
...min_liquidity !== void 0 && !isNaN(min_liquidity) ? { min_liquidity } : {},
|
|
967
|
-
...end_before ? { end_before } : {}
|
|
968
|
+
...end_before ? { end_before } : {},
|
|
969
|
+
...markets_limit ? { markets_limit } : {}
|
|
968
970
|
};
|
|
969
971
|
}
|
|
970
972
|
function infiniteEventsQueryKey(params) {
|