@liberfi.io/react-predict 0.3.48 → 0.3.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 +21 -10
- package/dist/index.d.ts +21 -10
- package/dist/index.js +38 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{server-DcZETqAE.d.mts → server-D5LNY5tz.d.mts} +23 -8
- package/dist/{server-DcZETqAE.d.ts → server-D5LNY5tz.d.ts} +23 -8
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +4 -3
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +4 -3
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1092,12 +1092,23 @@ interface PolymarketRedeemPrepareInput {
|
|
|
1092
1092
|
condition_id: string;
|
|
1093
1093
|
neg_risk: boolean;
|
|
1094
1094
|
}
|
|
1095
|
-
/** Response from the redeem prepare endpoint
|
|
1095
|
+
/** Response from the redeem prepare endpoint. */
|
|
1096
1096
|
interface PolymarketRedeemPrepareResponse {
|
|
1097
|
-
|
|
1097
|
+
/** Active Polymarket wallet kind for redeem execution. */
|
|
1098
|
+
wallet_kind?: PolymarketWalletKind;
|
|
1099
|
+
/** Active smart-contract wallet that holds the redeemable position. */
|
|
1100
|
+
wallet_address?: string;
|
|
1101
|
+
/** Legacy Gnosis Safe wallet address, present when wallet_kind is "safe". */
|
|
1102
|
+
safe_address?: string;
|
|
1103
|
+
/** CLOB V2 deposit wallet address, present when wallet_kind is "deposit". */
|
|
1104
|
+
deposit_wallet_address?: string;
|
|
1098
1105
|
nonce: string;
|
|
1099
|
-
/**
|
|
1100
|
-
|
|
1106
|
+
/** Deposit-wallet Batch deadline, present when wallet_kind is "deposit". */
|
|
1107
|
+
deadline?: string;
|
|
1108
|
+
/** Deposit-wallet Batch typed data. Sign with eth_signTypedData_v4. */
|
|
1109
|
+
typed_data?: PolymarketTypedData;
|
|
1110
|
+
/** Legacy SafeTx hash (0x-prefixed). Sign with personal_sign. */
|
|
1111
|
+
message_hash?: string;
|
|
1101
1112
|
}
|
|
1102
1113
|
/** Input for redeeming tokens — includes the EIP-712 signature. */
|
|
1103
1114
|
interface PolymarketRedeemInput {
|
|
@@ -1106,10 +1117,13 @@ interface PolymarketRedeemInput {
|
|
|
1106
1117
|
neg_risk: boolean;
|
|
1107
1118
|
signature: string;
|
|
1108
1119
|
nonce: string;
|
|
1120
|
+
wallet_kind?: PolymarketWalletKind;
|
|
1121
|
+
deadline?: string;
|
|
1109
1122
|
}
|
|
1110
1123
|
/** Response from the Polymarket redeem endpoint. */
|
|
1111
1124
|
interface PolymarketRedeemResponse {
|
|
1112
1125
|
transaction_id: string;
|
|
1126
|
+
transaction_hash?: string;
|
|
1113
1127
|
status: string;
|
|
1114
1128
|
}
|
|
1115
1129
|
|
|
@@ -1397,15 +1411,16 @@ declare class PredictClient {
|
|
|
1397
1411
|
*/
|
|
1398
1412
|
executePolymarketWithdraw(body: PolymarketWithdrawRequest): Promise<PolymarketWithdrawResponse>;
|
|
1399
1413
|
/**
|
|
1400
|
-
* Prepare
|
|
1401
|
-
* The frontend must sign
|
|
1414
|
+
* Prepare the signing payload for a Polymarket redeem transaction.
|
|
1415
|
+
* The frontend must sign the returned Safe hash or deposit-wallet typed data
|
|
1416
|
+
* and pass the signature to `redeemPolymarket`.
|
|
1402
1417
|
*
|
|
1403
1418
|
* Maps to `POST /api/v1/redeem/polymarket/prepare`.
|
|
1404
1419
|
*/
|
|
1405
1420
|
prepareRedeemPolymarket(body: PolymarketRedeemPrepareInput): Promise<PolymarketRedeemPrepareResponse>;
|
|
1406
1421
|
/**
|
|
1407
1422
|
* Redeem tokens from a resolved Polymarket market via gasless Relayer.
|
|
1408
|
-
* Requires a valid
|
|
1423
|
+
* Requires a valid signature for the payload returned by the prepare step.
|
|
1409
1424
|
*
|
|
1410
1425
|
* Maps to `POST /api/v1/redeem/polymarket`.
|
|
1411
1426
|
*/
|
|
@@ -1999,4 +2014,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
1999
2014
|
*/
|
|
2000
2015
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2001
2016
|
|
|
2002
|
-
export { type PolymarketWithdrawPrepareRequest as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesMultiParams as D, type EventStats as E, type DFlowQuoteRequest as F, type DFlowQuoteResponse as G, type DFlowSubmitResponse as H, type DFlowSubmitRequest as I, type DFlowKYCStatus as J, type PolymarketSetupStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketDepositWalletDeployResponse as N, type OrderbookOutcome as O, PredictClient as P, type WithdrawBuildRequest as Q, type WithdrawSubmitResponse as R, type SimilarEventsParams as S, type WithdrawSubmitRequest as T, type WithdrawStatusResponse as U, type PolymarketDepositAddresses as V, type WithdrawBuildResponse as W, type PolymarketSupportedAsset as X, type PolymarketWithdrawResponse as Y, type PolymarketWithdrawRequest as Z, type PolymarketWithdrawPrepareResponse as _, PredictWsClient as a, type WsChannelEvent as a$, type PolymarketWithdrawQuoteResponse as a0, type PolymarketWithdrawQuoteRequest as a1, type PolymarketWithdrawRelayBuildResponse as a2, type PolymarketWithdrawRelayBuildRequest as a3, type PolymarketWithdrawRelaySubmitResponse as a4, type PolymarketWithdrawRelaySubmitRequest as a5, type PolymarketWithdrawBridgeStatusResponse as a6, type PolymarketRedeemResponse as a7, type
|
|
2017
|
+
export { type PolymarketWithdrawPrepareRequest as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesMultiParams as D, type EventStats as E, type DFlowQuoteRequest as F, type DFlowQuoteResponse as G, type DFlowSubmitResponse as H, type DFlowSubmitRequest as I, type DFlowKYCStatus as J, type PolymarketSetupStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketDepositWalletDeployResponse as N, type OrderbookOutcome as O, PredictClient as P, type WithdrawBuildRequest as Q, type WithdrawSubmitResponse as R, type SimilarEventsParams as S, type WithdrawSubmitRequest as T, type WithdrawStatusResponse as U, type PolymarketDepositAddresses as V, type WithdrawBuildResponse as W, type PolymarketSupportedAsset as X, type PolymarketWithdrawResponse as Y, type PolymarketWithdrawRequest as Z, type PolymarketWithdrawPrepareResponse as _, PredictWsClient as a, type WsChannelEvent as a$, type PolymarketWithdrawQuoteResponse as a0, type PolymarketWithdrawQuoteRequest as a1, type PolymarketWithdrawRelayBuildResponse as a2, type PolymarketWithdrawRelayBuildRequest as a3, type PolymarketWithdrawRelaySubmitResponse as a4, type PolymarketWithdrawRelaySubmitRequest as a5, type PolymarketWithdrawBridgeStatusResponse as a6, type PolymarketRedeemResponse as a7, type PolymarketTypedData as a8, type TickSizeResponse as a9, type PricePoint as aA, type PredictPosition as aB, type OrderStatus as aC, type OrderSide as aD, type DFlowOrderContext as aE, type PolymarketOrderType as aF, type PolymarketWalletKind as aG, type PolymarketDepositWalletDeployRequest as aH, type DepositBuildRequest as aI, type DepositBuildResponse as aJ, type DepositSubmitRequest as aK, type DepositSubmitResponse as aL, type DepositStatusResponse as aM, type UnsignedTx as aN, type PolymarketBridgeToken as aO, type PolymarketSupportedAssetsResponse as aP, type PolymarketTypedDataArg as aQ, type MatchStatus as aR, type MatchGroupEntry as aS, type MatchGroupMarket as aT, type MatchSortField as aU, type MatchesStats as aV, type MatchConfidenceTier as aW, type SignalTag as aX, type MatchLeg as aY, type MatchMarketFlat as aZ, type WsChannel as a_, type FeeRateResponse as aa, type RebateConfig as ab, type WsConnectionStatus as ac, type WsDataMessage as ad, type WsPriceEvent as ae, type WsOrderbookEvent as af, type WsTradeEvent as ag, type CreateOrderInput as ah, createPredictClient as ai, createPredictWsClient as aj, type PredictWsClientConfig as ak, type ProviderMeta as al, type PredictTag as am, type SettlementSource as an, type MarketStatus as ao, type MarketResult as ap, type MarketOutcome as aq, type OrderbookLevel as ar, type OrderbookBatchItem as as, type OrderbookBatchResult as at, type OrderbooksBatchRequest as au, type OrderbooksBatchResponse as av, type TradeType as aw, type EventSummary as ax, type MarketSummary as ay, type PredictCommentProfile as az, type PredictPage as b, type WsClientMessage as b0, type WsSubscribeMessage as b1, type WsPingMessage as b2, type WsServerMessage as b3, type WsPongMessage as b4, type WsSubscribedMessage as b5, type WsErrorCode as b6, type WsErrorMessage as b7, type PolymarketRedeemPrepareInput as b8, type PolymarketRedeemPrepareResponse as b9, CTF_EXCHANGE_ADDRESS as bA, NEG_RISK_CTF_EXCHANGE_ADDRESS as bB, USDC_ADDRESS as bC, POLYGON_CHAIN_ID as bD, buildCtfExchangeDomain as bE, CTF_ORDER_TYPES as bF, ORDER_TYPE as bG, SIDE as bH, buildOrderMessage as bI, buildSignedOrder as bJ, buildClobPayload as bK, getPolymarketSharesPrecision as bL, type ClobOrderPayload as bM, type BuildOrderMessageInput as bN, type OrderMessage as bO, type SignedOrder as bP, DEFAULT_PAGE_SIZE as bQ, type PolymarketRedeemInput as ba, eventQueryKey as bb, fetchEvent as bc, resolveTagSlug as bd, resolveEventsParams as be, infiniteEventsQueryKey as bf, fetchEventsPage as bg, type ResolveEventsParamsInput as bh, type TagSlugSelection as bi, marketQueryKey as bj, fetchMarket as bk, matchesQueryKey as bl, matchQueryKey as bm, fetchMatchesPage as bn, matchMarketsQueryKey as bo, fetchMatchMarketsPage as bp, CLOB_AUTH_DOMAIN as bq, CLOB_AUTH_TYPES as br, buildClobAuthMessage as bs, hmacSha256Base64 as bt, buildPolymarketL2Headers as bu, derivePolymarketApiKey as bv, type HttpMethod as bw, type PolymarketL2HeadersInput as bx, type PolymarketL2Headers as by, type BuildClobAuthMessageInput as bz, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type Orderbook as h, type ListMarketTradesParams as i, type PredictTrade as j, type PriceHistoryRange as k, type PriceHistoryResponse as l, type ListCandlesticksParams as m, type ListCommentsParams as n, type PredictComment as o, type PositionsResponse as p, type ListOrdersParams as q, type PredictOrder as r, type ListOrdersMultiParams as s, type PredictOrdersResponse as t, type CancelOrderResult as u, type MatchGroupPage as v, type MatchGroup as w, type MatchMarketParams as x, type MatchMarketPage as y, type ListTradesParams as z };
|
|
@@ -1092,12 +1092,23 @@ interface PolymarketRedeemPrepareInput {
|
|
|
1092
1092
|
condition_id: string;
|
|
1093
1093
|
neg_risk: boolean;
|
|
1094
1094
|
}
|
|
1095
|
-
/** Response from the redeem prepare endpoint
|
|
1095
|
+
/** Response from the redeem prepare endpoint. */
|
|
1096
1096
|
interface PolymarketRedeemPrepareResponse {
|
|
1097
|
-
|
|
1097
|
+
/** Active Polymarket wallet kind for redeem execution. */
|
|
1098
|
+
wallet_kind?: PolymarketWalletKind;
|
|
1099
|
+
/** Active smart-contract wallet that holds the redeemable position. */
|
|
1100
|
+
wallet_address?: string;
|
|
1101
|
+
/** Legacy Gnosis Safe wallet address, present when wallet_kind is "safe". */
|
|
1102
|
+
safe_address?: string;
|
|
1103
|
+
/** CLOB V2 deposit wallet address, present when wallet_kind is "deposit". */
|
|
1104
|
+
deposit_wallet_address?: string;
|
|
1098
1105
|
nonce: string;
|
|
1099
|
-
/**
|
|
1100
|
-
|
|
1106
|
+
/** Deposit-wallet Batch deadline, present when wallet_kind is "deposit". */
|
|
1107
|
+
deadline?: string;
|
|
1108
|
+
/** Deposit-wallet Batch typed data. Sign with eth_signTypedData_v4. */
|
|
1109
|
+
typed_data?: PolymarketTypedData;
|
|
1110
|
+
/** Legacy SafeTx hash (0x-prefixed). Sign with personal_sign. */
|
|
1111
|
+
message_hash?: string;
|
|
1101
1112
|
}
|
|
1102
1113
|
/** Input for redeeming tokens — includes the EIP-712 signature. */
|
|
1103
1114
|
interface PolymarketRedeemInput {
|
|
@@ -1106,10 +1117,13 @@ interface PolymarketRedeemInput {
|
|
|
1106
1117
|
neg_risk: boolean;
|
|
1107
1118
|
signature: string;
|
|
1108
1119
|
nonce: string;
|
|
1120
|
+
wallet_kind?: PolymarketWalletKind;
|
|
1121
|
+
deadline?: string;
|
|
1109
1122
|
}
|
|
1110
1123
|
/** Response from the Polymarket redeem endpoint. */
|
|
1111
1124
|
interface PolymarketRedeemResponse {
|
|
1112
1125
|
transaction_id: string;
|
|
1126
|
+
transaction_hash?: string;
|
|
1113
1127
|
status: string;
|
|
1114
1128
|
}
|
|
1115
1129
|
|
|
@@ -1397,15 +1411,16 @@ declare class PredictClient {
|
|
|
1397
1411
|
*/
|
|
1398
1412
|
executePolymarketWithdraw(body: PolymarketWithdrawRequest): Promise<PolymarketWithdrawResponse>;
|
|
1399
1413
|
/**
|
|
1400
|
-
* Prepare
|
|
1401
|
-
* The frontend must sign
|
|
1414
|
+
* Prepare the signing payload for a Polymarket redeem transaction.
|
|
1415
|
+
* The frontend must sign the returned Safe hash or deposit-wallet typed data
|
|
1416
|
+
* and pass the signature to `redeemPolymarket`.
|
|
1402
1417
|
*
|
|
1403
1418
|
* Maps to `POST /api/v1/redeem/polymarket/prepare`.
|
|
1404
1419
|
*/
|
|
1405
1420
|
prepareRedeemPolymarket(body: PolymarketRedeemPrepareInput): Promise<PolymarketRedeemPrepareResponse>;
|
|
1406
1421
|
/**
|
|
1407
1422
|
* Redeem tokens from a resolved Polymarket market via gasless Relayer.
|
|
1408
|
-
* Requires a valid
|
|
1423
|
+
* Requires a valid signature for the payload returned by the prepare step.
|
|
1409
1424
|
*
|
|
1410
1425
|
* Maps to `POST /api/v1/redeem/polymarket`.
|
|
1411
1426
|
*/
|
|
@@ -1999,4 +2014,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
1999
2014
|
*/
|
|
2000
2015
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
2001
2016
|
|
|
2002
|
-
export { type PolymarketWithdrawPrepareRequest as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesMultiParams as D, type EventStats as E, type DFlowQuoteRequest as F, type DFlowQuoteResponse as G, type DFlowSubmitResponse as H, type DFlowSubmitRequest as I, type DFlowKYCStatus as J, type PolymarketSetupStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketDepositWalletDeployResponse as N, type OrderbookOutcome as O, PredictClient as P, type WithdrawBuildRequest as Q, type WithdrawSubmitResponse as R, type SimilarEventsParams as S, type WithdrawSubmitRequest as T, type WithdrawStatusResponse as U, type PolymarketDepositAddresses as V, type WithdrawBuildResponse as W, type PolymarketSupportedAsset as X, type PolymarketWithdrawResponse as Y, type PolymarketWithdrawRequest as Z, type PolymarketWithdrawPrepareResponse as _, PredictWsClient as a, type WsChannelEvent as a$, type PolymarketWithdrawQuoteResponse as a0, type PolymarketWithdrawQuoteRequest as a1, type PolymarketWithdrawRelayBuildResponse as a2, type PolymarketWithdrawRelayBuildRequest as a3, type PolymarketWithdrawRelaySubmitResponse as a4, type PolymarketWithdrawRelaySubmitRequest as a5, type PolymarketWithdrawBridgeStatusResponse as a6, type PolymarketRedeemResponse as a7, type
|
|
2017
|
+
export { type PolymarketWithdrawPrepareRequest as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type ListTradesMultiParams as D, type EventStats as E, type DFlowQuoteRequest as F, type DFlowQuoteResponse as G, type DFlowSubmitResponse as H, type DFlowSubmitRequest as I, type DFlowKYCStatus as J, type PolymarketSetupStatus as K, type ListEventsParams as L, type MatchesParams as M, type PolymarketDepositWalletDeployResponse as N, type OrderbookOutcome as O, PredictClient as P, type WithdrawBuildRequest as Q, type WithdrawSubmitResponse as R, type SimilarEventsParams as S, type WithdrawSubmitRequest as T, type WithdrawStatusResponse as U, type PolymarketDepositAddresses as V, type WithdrawBuildResponse as W, type PolymarketSupportedAsset as X, type PolymarketWithdrawResponse as Y, type PolymarketWithdrawRequest as Z, type PolymarketWithdrawPrepareResponse as _, PredictWsClient as a, type WsChannelEvent as a$, type PolymarketWithdrawQuoteResponse as a0, type PolymarketWithdrawQuoteRequest as a1, type PolymarketWithdrawRelayBuildResponse as a2, type PolymarketWithdrawRelayBuildRequest as a3, type PolymarketWithdrawRelaySubmitResponse as a4, type PolymarketWithdrawRelaySubmitRequest as a5, type PolymarketWithdrawBridgeStatusResponse as a6, type PolymarketRedeemResponse as a7, type PolymarketTypedData as a8, type TickSizeResponse as a9, type PricePoint as aA, type PredictPosition as aB, type OrderStatus as aC, type OrderSide as aD, type DFlowOrderContext as aE, type PolymarketOrderType as aF, type PolymarketWalletKind as aG, type PolymarketDepositWalletDeployRequest as aH, type DepositBuildRequest as aI, type DepositBuildResponse as aJ, type DepositSubmitRequest as aK, type DepositSubmitResponse as aL, type DepositStatusResponse as aM, type UnsignedTx as aN, type PolymarketBridgeToken as aO, type PolymarketSupportedAssetsResponse as aP, type PolymarketTypedDataArg as aQ, type MatchStatus as aR, type MatchGroupEntry as aS, type MatchGroupMarket as aT, type MatchSortField as aU, type MatchesStats as aV, type MatchConfidenceTier as aW, type SignalTag as aX, type MatchLeg as aY, type MatchMarketFlat as aZ, type WsChannel as a_, type FeeRateResponse as aa, type RebateConfig as ab, type WsConnectionStatus as ac, type WsDataMessage as ad, type WsPriceEvent as ae, type WsOrderbookEvent as af, type WsTradeEvent as ag, type CreateOrderInput as ah, createPredictClient as ai, createPredictWsClient as aj, type PredictWsClientConfig as ak, type ProviderMeta as al, type PredictTag as am, type SettlementSource as an, type MarketStatus as ao, type MarketResult as ap, type MarketOutcome as aq, type OrderbookLevel as ar, type OrderbookBatchItem as as, type OrderbookBatchResult as at, type OrderbooksBatchRequest as au, type OrderbooksBatchResponse as av, type TradeType as aw, type EventSummary as ax, type MarketSummary as ay, type PredictCommentProfile as az, type PredictPage as b, type WsClientMessage as b0, type WsSubscribeMessage as b1, type WsPingMessage as b2, type WsServerMessage as b3, type WsPongMessage as b4, type WsSubscribedMessage as b5, type WsErrorCode as b6, type WsErrorMessage as b7, type PolymarketRedeemPrepareInput as b8, type PolymarketRedeemPrepareResponse as b9, CTF_EXCHANGE_ADDRESS as bA, NEG_RISK_CTF_EXCHANGE_ADDRESS as bB, USDC_ADDRESS as bC, POLYGON_CHAIN_ID as bD, buildCtfExchangeDomain as bE, CTF_ORDER_TYPES as bF, ORDER_TYPE as bG, SIDE as bH, buildOrderMessage as bI, buildSignedOrder as bJ, buildClobPayload as bK, getPolymarketSharesPrecision as bL, type ClobOrderPayload as bM, type BuildOrderMessageInput as bN, type OrderMessage as bO, type SignedOrder as bP, DEFAULT_PAGE_SIZE as bQ, type PolymarketRedeemInput as ba, eventQueryKey as bb, fetchEvent as bc, resolveTagSlug as bd, resolveEventsParams as be, infiniteEventsQueryKey as bf, fetchEventsPage as bg, type ResolveEventsParamsInput as bh, type TagSlugSelection as bi, marketQueryKey as bj, fetchMarket as bk, matchesQueryKey as bl, matchQueryKey as bm, fetchMatchesPage as bn, matchMarketsQueryKey as bo, fetchMatchMarketsPage as bp, CLOB_AUTH_DOMAIN as bq, CLOB_AUTH_TYPES as br, buildClobAuthMessage as bs, hmacSha256Base64 as bt, buildPolymarketL2Headers as bu, derivePolymarketApiKey as bv, type HttpMethod as bw, type PolymarketL2HeadersInput as bx, type PolymarketL2Headers as by, type BuildClobAuthMessageInput as bz, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type Orderbook as h, type ListMarketTradesParams as i, type PredictTrade as j, type PriceHistoryRange as k, type PriceHistoryResponse as l, type ListCandlesticksParams as m, type ListCommentsParams as n, type PredictComment as o, type PositionsResponse as p, type ListOrdersParams as q, type PredictOrder as r, type ListOrdersMultiParams as s, type PredictOrdersResponse as t, type CancelOrderResult as u, type MatchGroupPage as v, type MatchGroup as w, type MatchMarketParams as x, type MatchMarketPage as y, type ListTradesParams as z };
|
package/dist/server.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload,
|
|
1
|
+
export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload, ah as CreateOrderInput, bQ as DEFAULT_PAGE_SIZE, aE as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, f as EventSortField, e as EventStatus, ax as EventSummary, bw as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, w as MatchGroup, aS as MatchGroupEntry, aT as MatchGroupMarket, v as MatchGroupPage, aY as MatchLeg, aZ as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aU as MatchSortField, aR as MatchStatus, M as MatchesParams, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, h as Orderbook, ar as OrderbookLevel, bD as POLYGON_CHAIN_ID, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, aB as PredictPosition, am as PredictTag, j as PredictTrade, a as PredictWsClient, ak as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aA as PricePoint, al as ProviderMeta, d as ProviderSource, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, S as SimilarEventsParams, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, ac as WsConnectionStatus, ad as WsDataMessage, b6 as WsErrorCode, b7 as WsErrorMessage, af as WsOrderbookEvent, b2 as WsPingMessage, b4 as WsPongMessage, ae as WsPriceEvent, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, ag as WsTradeEvent, bs as buildClobAuthMessage, bK as buildClobPayload, bE as buildCtfExchangeDomain, bI as buildOrderMessage, bu as buildPolymarketL2Headers, bJ as buildSignedOrder, ai as createPredictClient, aj as createPredictWsClient, bv as derivePolymarketApiKey, bb as eventQueryKey, bc as fetchEvent, bg as fetchEventsPage, bk as fetchMarket, bp as fetchMatchMarketsPage, bn as fetchMatchesPage, bt as hmacSha256Base64, bf as infiniteEventsQueryKey, bj as marketQueryKey, bo as matchMarketsQueryKey, bm as matchQueryKey, bl as matchesQueryKey, be as resolveEventsParams, bd as resolveTagSlug } from './server-D5LNY5tz.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload,
|
|
1
|
+
export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload, ah as CreateOrderInput, bQ as DEFAULT_PAGE_SIZE, aE as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, f as EventSortField, e as EventStatus, ax as EventSummary, bw as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, w as MatchGroup, aS as MatchGroupEntry, aT as MatchGroupMarket, v as MatchGroupPage, aY as MatchLeg, aZ as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aU as MatchSortField, aR as MatchStatus, M as MatchesParams, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, h as Orderbook, ar as OrderbookLevel, bD as POLYGON_CHAIN_ID, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, aB as PredictPosition, am as PredictTag, j as PredictTrade, a as PredictWsClient, ak as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aA as PricePoint, al as ProviderMeta, d as ProviderSource, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, S as SimilarEventsParams, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, ac as WsConnectionStatus, ad as WsDataMessage, b6 as WsErrorCode, b7 as WsErrorMessage, af as WsOrderbookEvent, b2 as WsPingMessage, b4 as WsPongMessage, ae as WsPriceEvent, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, ag as WsTradeEvent, bs as buildClobAuthMessage, bK as buildClobPayload, bE as buildCtfExchangeDomain, bI as buildOrderMessage, bu as buildPolymarketL2Headers, bJ as buildSignedOrder, ai as createPredictClient, aj as createPredictWsClient, bv as derivePolymarketApiKey, bb as eventQueryKey, bc as fetchEvent, bg as fetchEventsPage, bk as fetchMarket, bp as fetchMatchMarketsPage, bn as fetchMatchesPage, bt as hmacSha256Base64, bf as infiniteEventsQueryKey, bj as marketQueryKey, bo as matchMarketsQueryKey, bm as matchQueryKey, bl as matchesQueryKey, be as resolveEventsParams, bd as resolveTagSlug } from './server-D5LNY5tz.js';
|
package/dist/server.js
CHANGED
|
@@ -598,8 +598,9 @@ var PredictClient = class {
|
|
|
598
598
|
// Redeem (resolved market token redemption)
|
|
599
599
|
// -------------------------------------------------------------------------
|
|
600
600
|
/**
|
|
601
|
-
* Prepare
|
|
602
|
-
* The frontend must sign
|
|
601
|
+
* Prepare the signing payload for a Polymarket redeem transaction.
|
|
602
|
+
* The frontend must sign the returned Safe hash or deposit-wallet typed data
|
|
603
|
+
* and pass the signature to `redeemPolymarket`.
|
|
603
604
|
*
|
|
604
605
|
* Maps to `POST /api/v1/redeem/polymarket/prepare`.
|
|
605
606
|
*/
|
|
@@ -609,7 +610,7 @@ var PredictClient = class {
|
|
|
609
610
|
}
|
|
610
611
|
/**
|
|
611
612
|
* Redeem tokens from a resolved Polymarket market via gasless Relayer.
|
|
612
|
-
* Requires a valid
|
|
613
|
+
* Requires a valid signature for the payload returned by the prepare step.
|
|
613
614
|
*
|
|
614
615
|
* Maps to `POST /api/v1/redeem/polymarket`.
|
|
615
616
|
*/
|