@liberfi.io/react-predict 0.1.59 → 0.1.61
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 +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/dist/{server-DUc4MoLH.d.mts → server-exUYV2o0.d.mts} +16 -1
- package/dist/{server-DUc4MoLH.d.ts → server-exUYV2o0.d.ts} +16 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +9 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +9 -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 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-
|
|
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-exUYV2o0.mjs';
|
|
2
|
+
export { b4 as BuildClobAuthMessageInput, bh as BuildOrderMessageInput, aX as CLOB_AUTH_DOMAIN, aY as CLOB_AUTH_TYPES, b5 as CTF_EXCHANGE_ADDRESS, ba as CTF_ORDER_TYPES, bg as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, b1 as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, aw as MatchConfidenceTier, as as MatchGroupEntry, at as MatchGroupMarket, ax as MatchMarketFlat, au as MatchSortField, ar as MatchStatus, av as MatchesStats, b6 as NEG_RISK_CTF_EXCHANGE_ADDRESS, bb as ORDER_TYPE, bi as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b8 as POLYGON_CHAIN_ID, b3 as PolymarketL2Headers, b2 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ap as PolymarketWithdrawPrepareRequest, aq as PolymarketWithdrawPrepareResponse, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aO as ResolveEventsParamsInput, bc as SIDE, a5 as SettlementSource, bj as SignedOrder, aP as TagSlugSelection, aa as TradeType, b7 as USDC_ADDRESS, ao as UnsignedTx, ay as WsChannel, az as WsChannelEvent, aA as WsClientMessage, aG as WsErrorCode, aH as WsErrorMessage, aC as WsPingMessage, aE as WsPongMessage, aD as WsServerMessage, aB as WsSubscribeMessage, aF as WsSubscribedMessage, aZ as buildClobAuthMessage, bf as buildClobPayload, b9 as buildCtfExchangeDomain, bd as buildOrderMessage, a$ as buildPolymarketL2Headers, be as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, b0 as derivePolymarketApiKey, aI as eventQueryKey, aJ as fetchEvent, aN as fetchEventsPage, aR as fetchMarket, aW as fetchMatchMarketsPage, aU as fetchMatchesPage, a_ as hmacSha256Base64, aM as infiniteEventsQueryKey, aQ as marketQueryKey, aV as matchMarketsQueryKey, aT as matchQueryKey, aS as matchesQueryKey, aL as resolveEventsParams, aK as resolveTagSlug } from './server-exUYV2o0.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, 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-
|
|
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-exUYV2o0.js';
|
|
2
|
+
export { b4 as BuildClobAuthMessageInput, bh as BuildOrderMessageInput, aX as CLOB_AUTH_DOMAIN, aY as CLOB_AUTH_TYPES, b5 as CTF_EXCHANGE_ADDRESS, ba as CTF_ORDER_TYPES, bg as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, b1 as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, aw as MatchConfidenceTier, as as MatchGroupEntry, at as MatchGroupMarket, ax as MatchMarketFlat, au as MatchSortField, ar as MatchStatus, av as MatchesStats, b6 as NEG_RISK_CTF_EXCHANGE_ADDRESS, bb as ORDER_TYPE, bi as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b8 as POLYGON_CHAIN_ID, b3 as PolymarketL2Headers, b2 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ap as PolymarketWithdrawPrepareRequest, aq as PolymarketWithdrawPrepareResponse, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aO as ResolveEventsParamsInput, bc as SIDE, a5 as SettlementSource, bj as SignedOrder, aP as TagSlugSelection, aa as TradeType, b7 as USDC_ADDRESS, ao as UnsignedTx, ay as WsChannel, az as WsChannelEvent, aA as WsClientMessage, aG as WsErrorCode, aH as WsErrorMessage, aC as WsPingMessage, aE as WsPongMessage, aD as WsServerMessage, aB as WsSubscribeMessage, aF as WsSubscribedMessage, aZ as buildClobAuthMessage, bf as buildClobPayload, b9 as buildCtfExchangeDomain, bd as buildOrderMessage, a$ as buildPolymarketL2Headers, be as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, b0 as derivePolymarketApiKey, aI as eventQueryKey, aJ as fetchEvent, aN as fetchEventsPage, aR as fetchMarket, aW as fetchMatchMarketsPage, aU as fetchMatchesPage, a_ as hmacSha256Base64, aM as infiniteEventsQueryKey, aQ as marketQueryKey, aV as matchMarketsQueryKey, aT as matchQueryKey, aS as matchesQueryKey, aL as resolveEventsParams, aK as resolveTagSlug } from './server-exUYV2o0.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
|
@@ -412,6 +412,15 @@ var PredictClient = class {
|
|
|
412
412
|
// -------------------------------------------------------------------------
|
|
413
413
|
// Polymarket Relayer Withdraw
|
|
414
414
|
// -------------------------------------------------------------------------
|
|
415
|
+
/**
|
|
416
|
+
* Prepare a Polymarket withdrawal by obtaining a Bridge deposit address.
|
|
417
|
+
*
|
|
418
|
+
* Maps to `POST /api/v1/withdraw/polymarket/prepare`.
|
|
419
|
+
*/
|
|
420
|
+
async preparePolymarketWithdraw(body) {
|
|
421
|
+
const url = `${this.endpoint}/api/v1/withdraw/polymarket/prepare`;
|
|
422
|
+
return await utils.httpPost(url, body);
|
|
423
|
+
}
|
|
415
424
|
/**
|
|
416
425
|
* Execute a gasless USDC.e withdrawal from a Polymarket Safe wallet via Relayer.
|
|
417
426
|
*
|