@liberfi.io/react-predict 0.2.36 → 0.3.1
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 +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{server-rd8X_X_4.d.mts → server-D2N-KDxj.d.mts} +47 -1
- package/dist/{server-rd8X_X_4.d.ts → server-D2N-KDxj.d.ts} +47 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +13 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +13 -0
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -579,6 +579,43 @@ interface PolymarketDepositAddresses {
|
|
|
579
579
|
/** Tron bridge address — accepts USDT-TRC20 (optional, may be absent). */
|
|
580
580
|
tron?: string;
|
|
581
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* A single ERC20-style token entry returned by the Polymarket Bridge
|
|
584
|
+
* `/supported-assets` endpoint.
|
|
585
|
+
*/
|
|
586
|
+
interface PolymarketBridgeToken {
|
|
587
|
+
/** Full token name, e.g. "USD Coin". */
|
|
588
|
+
name: string;
|
|
589
|
+
/** Token symbol, e.g. "USDC". */
|
|
590
|
+
symbol: string;
|
|
591
|
+
/** On-chain token contract address. May be a native-token sentinel for non-EVM chains. */
|
|
592
|
+
address: string;
|
|
593
|
+
/** Token decimals. */
|
|
594
|
+
decimals: number;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* A single (chain, token) tuple supported by the Polymarket Bridge,
|
|
598
|
+
* carrying the minimum USD amount that the Bridge will process for
|
|
599
|
+
* deposits / withdrawals.
|
|
600
|
+
*/
|
|
601
|
+
interface PolymarketSupportedAsset {
|
|
602
|
+
/** Chain ID as a string (numeric for EVM, "solana"/"bitcoin"/"tron" for non-EVM, mirrors upstream). */
|
|
603
|
+
chainId: string;
|
|
604
|
+
/** Human-readable chain name, e.g. "Ethereum", "Polygon", "Solana". */
|
|
605
|
+
chainName: string;
|
|
606
|
+
/** Token metadata for this entry. */
|
|
607
|
+
token: PolymarketBridgeToken;
|
|
608
|
+
/** Minimum USD amount accepted by the bridge for this asset. */
|
|
609
|
+
minCheckoutUsd: number;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Response shape of `GET /api/v1/deposit/polymarket/supported-assets`.
|
|
613
|
+
*
|
|
614
|
+
* `supportedAssets` is the full list; consumers usually filter by `chainId`.
|
|
615
|
+
*/
|
|
616
|
+
interface PolymarketSupportedAssetsResponse {
|
|
617
|
+
supportedAssets: PolymarketSupportedAsset[];
|
|
618
|
+
}
|
|
582
619
|
/** Request body for `POST /api/v1/withdraw/polymarket/prepare`. */
|
|
583
620
|
interface PolymarketWithdrawPrepareRequest {
|
|
584
621
|
safe_address: string;
|
|
@@ -1084,6 +1121,15 @@ declare class PredictClient {
|
|
|
1084
1121
|
* Maps to `GET /api/v1/deposit/polymarket/addresses?safe_address=...`.
|
|
1085
1122
|
*/
|
|
1086
1123
|
getPolymarketDepositAddresses(safeAddress: string): Promise<PolymarketDepositAddresses>;
|
|
1124
|
+
/**
|
|
1125
|
+
* List the Polymarket Bridge supported (chain, token) tuples along with
|
|
1126
|
+
* the per-asset minimum USD deposit amount.
|
|
1127
|
+
*
|
|
1128
|
+
* The list is the same for every caller; backend caches it for 15 minutes.
|
|
1129
|
+
*
|
|
1130
|
+
* Maps to `GET /api/v1/deposit/polymarket/supported-assets`.
|
|
1131
|
+
*/
|
|
1132
|
+
getPolymarketSupportedAssets(): Promise<PolymarketSupportedAsset[]>;
|
|
1087
1133
|
/**
|
|
1088
1134
|
* Prepare a Polymarket withdrawal by obtaining a Bridge deposit address.
|
|
1089
1135
|
*
|
|
@@ -1694,4 +1740,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
1694
1740
|
*/
|
|
1695
1741
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
1696
1742
|
|
|
1697
|
-
export { type
|
|
1743
|
+
export { type WsPriceEvent as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketSupportedAsset as R, type SimilarEventsParams as S, type PolymarketWithdrawResponse as T, type PolymarketWithdrawRequest as U, type PolymarketRedeemResponse as V, type WithdrawBuildResponse as W, type TickSizeResponse as X, type FeeRateResponse as Y, type WsConnectionStatus as Z, type WsDataMessage as _, PredictWsClient as a, fetchMarket as a$, type WsOrderbookEvent as a0, type WsTradeEvent as a1, type CreateOrderInput as a2, createPredictClient as a3, createPredictWsClient as a4, type PredictWsClientConfig as a5, type ProviderMeta as a6, type PredictTag as a7, type SettlementSource as a8, type MarketStatus as a9, type MatchesStats as aA, type MatchConfidenceTier as aB, type SignalTag as aC, type MatchLeg as aD, type MatchMarketFlat as aE, type WsChannel as aF, type WsChannelEvent as aG, type WsClientMessage as aH, type WsSubscribeMessage as aI, type WsPingMessage as aJ, type WsServerMessage as aK, type WsPongMessage as aL, type WsSubscribedMessage as aM, type WsErrorCode as aN, type WsErrorMessage as aO, type PolymarketRedeemPrepareInput as aP, type PolymarketRedeemPrepareResponse as aQ, type PolymarketRedeemInput as aR, eventQueryKey as aS, fetchEvent as aT, resolveTagSlug as aU, resolveEventsParams as aV, infiniteEventsQueryKey as aW, fetchEventsPage as aX, type ResolveEventsParamsInput as aY, type TagSlugSelection as aZ, marketQueryKey as a_, type MarketResult as aa, type MarketOutcome as ab, type OrderbookLevel as ac, type TradeType as ad, type EventSummary as ae, type MarketSummary as af, type PricePoint as ag, type PredictPosition as ah, type OrderStatus as ai, type OrderSide as aj, type DFlowOrderContext as ak, type PolymarketOrderType as al, type DepositBuildRequest as am, type DepositBuildResponse as an, type DepositSubmitRequest as ao, type DepositSubmitResponse as ap, type DepositStatusResponse as aq, type UnsignedTx as ar, type PolymarketBridgeToken as as, type PolymarketSupportedAssetsResponse as at, type PolymarketWithdrawPrepareRequest as au, type PolymarketWithdrawPrepareResponse as av, type MatchStatus as aw, type MatchGroupEntry as ax, type MatchGroupMarket as ay, type MatchSortField as az, type PredictPage as b, matchesQueryKey as b0, matchQueryKey as b1, fetchMatchesPage as b2, matchMarketsQueryKey as b3, fetchMatchMarketsPage as b4, CLOB_AUTH_DOMAIN as b5, CLOB_AUTH_TYPES as b6, buildClobAuthMessage as b7, hmacSha256Base64 as b8, buildPolymarketL2Headers as b9, derivePolymarketApiKey as ba, type HttpMethod as bb, type PolymarketL2HeadersInput as bc, type PolymarketL2Headers as bd, type BuildClobAuthMessageInput as be, CTF_EXCHANGE_ADDRESS as bf, NEG_RISK_CTF_EXCHANGE_ADDRESS as bg, USDC_ADDRESS as bh, POLYGON_CHAIN_ID as bi, buildCtfExchangeDomain as bj, CTF_ORDER_TYPES as bk, ORDER_TYPE as bl, SIDE as bm, buildOrderMessage as bn, buildSignedOrder as bo, buildClobPayload as bp, getPolymarketSharesPrecision as bq, type ClobOrderPayload as br, type BuildOrderMessageInput as bs, type OrderMessage as bt, type SignedOrder as bu, DEFAULT_PAGE_SIZE as bv, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
|
|
@@ -579,6 +579,43 @@ interface PolymarketDepositAddresses {
|
|
|
579
579
|
/** Tron bridge address — accepts USDT-TRC20 (optional, may be absent). */
|
|
580
580
|
tron?: string;
|
|
581
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* A single ERC20-style token entry returned by the Polymarket Bridge
|
|
584
|
+
* `/supported-assets` endpoint.
|
|
585
|
+
*/
|
|
586
|
+
interface PolymarketBridgeToken {
|
|
587
|
+
/** Full token name, e.g. "USD Coin". */
|
|
588
|
+
name: string;
|
|
589
|
+
/** Token symbol, e.g. "USDC". */
|
|
590
|
+
symbol: string;
|
|
591
|
+
/** On-chain token contract address. May be a native-token sentinel for non-EVM chains. */
|
|
592
|
+
address: string;
|
|
593
|
+
/** Token decimals. */
|
|
594
|
+
decimals: number;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* A single (chain, token) tuple supported by the Polymarket Bridge,
|
|
598
|
+
* carrying the minimum USD amount that the Bridge will process for
|
|
599
|
+
* deposits / withdrawals.
|
|
600
|
+
*/
|
|
601
|
+
interface PolymarketSupportedAsset {
|
|
602
|
+
/** Chain ID as a string (numeric for EVM, "solana"/"bitcoin"/"tron" for non-EVM, mirrors upstream). */
|
|
603
|
+
chainId: string;
|
|
604
|
+
/** Human-readable chain name, e.g. "Ethereum", "Polygon", "Solana". */
|
|
605
|
+
chainName: string;
|
|
606
|
+
/** Token metadata for this entry. */
|
|
607
|
+
token: PolymarketBridgeToken;
|
|
608
|
+
/** Minimum USD amount accepted by the bridge for this asset. */
|
|
609
|
+
minCheckoutUsd: number;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Response shape of `GET /api/v1/deposit/polymarket/supported-assets`.
|
|
613
|
+
*
|
|
614
|
+
* `supportedAssets` is the full list; consumers usually filter by `chainId`.
|
|
615
|
+
*/
|
|
616
|
+
interface PolymarketSupportedAssetsResponse {
|
|
617
|
+
supportedAssets: PolymarketSupportedAsset[];
|
|
618
|
+
}
|
|
582
619
|
/** Request body for `POST /api/v1/withdraw/polymarket/prepare`. */
|
|
583
620
|
interface PolymarketWithdrawPrepareRequest {
|
|
584
621
|
safe_address: string;
|
|
@@ -1084,6 +1121,15 @@ declare class PredictClient {
|
|
|
1084
1121
|
* Maps to `GET /api/v1/deposit/polymarket/addresses?safe_address=...`.
|
|
1085
1122
|
*/
|
|
1086
1123
|
getPolymarketDepositAddresses(safeAddress: string): Promise<PolymarketDepositAddresses>;
|
|
1124
|
+
/**
|
|
1125
|
+
* List the Polymarket Bridge supported (chain, token) tuples along with
|
|
1126
|
+
* the per-asset minimum USD deposit amount.
|
|
1127
|
+
*
|
|
1128
|
+
* The list is the same for every caller; backend caches it for 15 minutes.
|
|
1129
|
+
*
|
|
1130
|
+
* Maps to `GET /api/v1/deposit/polymarket/supported-assets`.
|
|
1131
|
+
*/
|
|
1132
|
+
getPolymarketSupportedAssets(): Promise<PolymarketSupportedAsset[]>;
|
|
1087
1133
|
/**
|
|
1088
1134
|
* Prepare a Polymarket withdrawal by obtaining a Bridge deposit address.
|
|
1089
1135
|
*
|
|
@@ -1694,4 +1740,4 @@ declare function buildClobPayload(signedOrder: SignedOrder, owner: string): Clob
|
|
|
1694
1740
|
*/
|
|
1695
1741
|
declare function getPolymarketSharesPrecision(tickSize: string): number;
|
|
1696
1742
|
|
|
1697
|
-
export { type
|
|
1743
|
+
export { type WsPriceEvent as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketSupportedAsset as R, type SimilarEventsParams as S, type PolymarketWithdrawResponse as T, type PolymarketWithdrawRequest as U, type PolymarketRedeemResponse as V, type WithdrawBuildResponse as W, type TickSizeResponse as X, type FeeRateResponse as Y, type WsConnectionStatus as Z, type WsDataMessage as _, PredictWsClient as a, fetchMarket as a$, type WsOrderbookEvent as a0, type WsTradeEvent as a1, type CreateOrderInput as a2, createPredictClient as a3, createPredictWsClient as a4, type PredictWsClientConfig as a5, type ProviderMeta as a6, type PredictTag as a7, type SettlementSource as a8, type MarketStatus as a9, type MatchesStats as aA, type MatchConfidenceTier as aB, type SignalTag as aC, type MatchLeg as aD, type MatchMarketFlat as aE, type WsChannel as aF, type WsChannelEvent as aG, type WsClientMessage as aH, type WsSubscribeMessage as aI, type WsPingMessage as aJ, type WsServerMessage as aK, type WsPongMessage as aL, type WsSubscribedMessage as aM, type WsErrorCode as aN, type WsErrorMessage as aO, type PolymarketRedeemPrepareInput as aP, type PolymarketRedeemPrepareResponse as aQ, type PolymarketRedeemInput as aR, eventQueryKey as aS, fetchEvent as aT, resolveTagSlug as aU, resolveEventsParams as aV, infiniteEventsQueryKey as aW, fetchEventsPage as aX, type ResolveEventsParamsInput as aY, type TagSlugSelection as aZ, marketQueryKey as a_, type MarketResult as aa, type MarketOutcome as ab, type OrderbookLevel as ac, type TradeType as ad, type EventSummary as ae, type MarketSummary as af, type PricePoint as ag, type PredictPosition as ah, type OrderStatus as ai, type OrderSide as aj, type DFlowOrderContext as ak, type PolymarketOrderType as al, type DepositBuildRequest as am, type DepositBuildResponse as an, type DepositSubmitRequest as ao, type DepositSubmitResponse as ap, type DepositStatusResponse as aq, type UnsignedTx as ar, type PolymarketBridgeToken as as, type PolymarketSupportedAssetsResponse as at, type PolymarketWithdrawPrepareRequest as au, type PolymarketWithdrawPrepareResponse as av, type MatchStatus as aw, type MatchGroupEntry as ax, type MatchGroupMarket as ay, type MatchSortField as az, type PredictPage as b, matchesQueryKey as b0, matchQueryKey as b1, fetchMatchesPage as b2, matchMarketsQueryKey as b3, fetchMatchMarketsPage as b4, CLOB_AUTH_DOMAIN as b5, CLOB_AUTH_TYPES as b6, buildClobAuthMessage as b7, hmacSha256Base64 as b8, buildPolymarketL2Headers as b9, derivePolymarketApiKey as ba, type HttpMethod as bb, type PolymarketL2HeadersInput as bc, type PolymarketL2Headers as bd, type BuildClobAuthMessageInput as be, CTF_EXCHANGE_ADDRESS as bf, NEG_RISK_CTF_EXCHANGE_ADDRESS as bg, USDC_ADDRESS as bh, POLYGON_CHAIN_ID as bi, buildCtfExchangeDomain as bj, CTF_ORDER_TYPES as bk, ORDER_TYPE as bl, SIDE as bm, buildOrderMessage as bn, buildSignedOrder as bo, buildClobPayload as bp, getPolymarketSharesPrecision as bq, type ClobOrderPayload as br, type BuildOrderMessageInput as bs, type OrderMessage as bt, type SignedOrder as bu, DEFAULT_PAGE_SIZE as bv, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
|
package/dist/server.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse,
|
|
1
|
+
export { B as BalanceResponse, be as BuildClobAuthMessageInput, bs as BuildOrderMessageInput, b5 as CLOB_AUTH_DOMAIN, b6 as CLOB_AUTH_TYPES, bf as CTF_EXCHANGE_ADDRESS, bk as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, br as ClobOrderPayload, a2 as CreateOrderInput, bv as DEFAULT_PAGE_SIZE, ak as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, am as DepositBuildRequest, an as DepositBuildResponse, aq as DepositStatusResponse, ao as DepositSubmitRequest, ap as DepositSubmitResponse, f as EventSortField, e as EventStatus, ae as EventSummary, bb as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, ab as MarketOutcome, aa as MarketResult, a9 as MarketStatus, af as MarketSummary, aB as MatchConfidenceTier, t as MatchGroup, ax as MatchGroupEntry, ay as MatchGroupMarket, s as MatchGroupPage, aD as MatchLeg, aE as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, az as MatchSortField, aw as MatchStatus, M as MatchesParams, aA as MatchesStats, bg as NEG_RISK_CTF_EXCHANGE_ADDRESS, bl as ORDER_TYPE, bt as OrderMessage, aj as OrderSide, ai as OrderStatus, O as Orderbook, ac as OrderbookLevel, bi as POLYGON_CHAIN_ID, bd as PolymarketL2Headers, bc as PolymarketL2HeadersInput, al as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ah as PredictPosition, a7 as PredictTag, i as PredictTrade, a as PredictWsClient, a5 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ag as PricePoint, a6 as ProviderMeta, d as ProviderSource, aY as ResolveEventsParamsInput, bm as SIDE, a8 as SettlementSource, aC as SignalTag, bu as SignedOrder, S as SimilarEventsParams, aZ as TagSlugSelection, ad as TradeType, bh as USDC_ADDRESS, ar as UnsignedTx, aF as WsChannel, aG as WsChannelEvent, aH as WsClientMessage, Z as WsConnectionStatus, _ as WsDataMessage, aN as WsErrorCode, aO as WsErrorMessage, a0 as WsOrderbookEvent, aJ as WsPingMessage, aL as WsPongMessage, $ as WsPriceEvent, aK as WsServerMessage, aI as WsSubscribeMessage, aM as WsSubscribedMessage, a1 as WsTradeEvent, b7 as buildClobAuthMessage, bp as buildClobPayload, bj as buildCtfExchangeDomain, bn as buildOrderMessage, b9 as buildPolymarketL2Headers, bo as buildSignedOrder, a3 as createPredictClient, a4 as createPredictWsClient, ba as derivePolymarketApiKey, aS as eventQueryKey, aT as fetchEvent, aX as fetchEventsPage, a$ as fetchMarket, b4 as fetchMatchMarketsPage, b2 as fetchMatchesPage, b8 as hmacSha256Base64, aW as infiniteEventsQueryKey, a_ as marketQueryKey, b3 as matchMarketsQueryKey, b1 as matchQueryKey, b0 as matchesQueryKey, aV as resolveEventsParams, aU as resolveTagSlug } from './server-D2N-KDxj.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BalanceResponse,
|
|
1
|
+
export { B as BalanceResponse, be as BuildClobAuthMessageInput, bs as BuildOrderMessageInput, b5 as CLOB_AUTH_DOMAIN, b6 as CLOB_AUTH_TYPES, bf as CTF_EXCHANGE_ADDRESS, bk as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, br as ClobOrderPayload, a2 as CreateOrderInput, bv as DEFAULT_PAGE_SIZE, ak as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, am as DepositBuildRequest, an as DepositBuildResponse, aq as DepositStatusResponse, ao as DepositSubmitRequest, ap as DepositSubmitResponse, f as EventSortField, e as EventStatus, ae as EventSummary, bb as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, ab as MarketOutcome, aa as MarketResult, a9 as MarketStatus, af as MarketSummary, aB as MatchConfidenceTier, t as MatchGroup, ax as MatchGroupEntry, ay as MatchGroupMarket, s as MatchGroupPage, aD as MatchLeg, aE as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, az as MatchSortField, aw as MatchStatus, M as MatchesParams, aA as MatchesStats, bg as NEG_RISK_CTF_EXCHANGE_ADDRESS, bl as ORDER_TYPE, bt as OrderMessage, aj as OrderSide, ai as OrderStatus, O as Orderbook, ac as OrderbookLevel, bi as POLYGON_CHAIN_ID, bd as PolymarketL2Headers, bc as PolymarketL2HeadersInput, al as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ah as PredictPosition, a7 as PredictTag, i as PredictTrade, a as PredictWsClient, a5 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ag as PricePoint, a6 as ProviderMeta, d as ProviderSource, aY as ResolveEventsParamsInput, bm as SIDE, a8 as SettlementSource, aC as SignalTag, bu as SignedOrder, S as SimilarEventsParams, aZ as TagSlugSelection, ad as TradeType, bh as USDC_ADDRESS, ar as UnsignedTx, aF as WsChannel, aG as WsChannelEvent, aH as WsClientMessage, Z as WsConnectionStatus, _ as WsDataMessage, aN as WsErrorCode, aO as WsErrorMessage, a0 as WsOrderbookEvent, aJ as WsPingMessage, aL as WsPongMessage, $ as WsPriceEvent, aK as WsServerMessage, aI as WsSubscribeMessage, aM as WsSubscribedMessage, a1 as WsTradeEvent, b7 as buildClobAuthMessage, bp as buildClobPayload, bj as buildCtfExchangeDomain, bn as buildOrderMessage, b9 as buildPolymarketL2Headers, bo as buildSignedOrder, a3 as createPredictClient, a4 as createPredictWsClient, ba as derivePolymarketApiKey, aS as eventQueryKey, aT as fetchEvent, aX as fetchEventsPage, a$ as fetchMarket, b4 as fetchMatchMarketsPage, b2 as fetchMatchesPage, b8 as hmacSha256Base64, aW as infiniteEventsQueryKey, a_ as marketQueryKey, b3 as matchMarketsQueryKey, b1 as matchQueryKey, b0 as matchesQueryKey, aV as resolveEventsParams, aU as resolveTagSlug } from './server-D2N-KDxj.js';
|
package/dist/server.js
CHANGED
|
@@ -492,6 +492,19 @@ var PredictClient = class {
|
|
|
492
492
|
const url = `${this.endpoint}/api/v1/deposit/polymarket/addresses${query}`;
|
|
493
493
|
return await utils.httpGet(url);
|
|
494
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* List the Polymarket Bridge supported (chain, token) tuples along with
|
|
497
|
+
* the per-asset minimum USD deposit amount.
|
|
498
|
+
*
|
|
499
|
+
* The list is the same for every caller; backend caches it for 15 minutes.
|
|
500
|
+
*
|
|
501
|
+
* Maps to `GET /api/v1/deposit/polymarket/supported-assets`.
|
|
502
|
+
*/
|
|
503
|
+
async getPolymarketSupportedAssets() {
|
|
504
|
+
const url = `${this.endpoint}/api/v1/deposit/polymarket/supported-assets`;
|
|
505
|
+
const data = await utils.httpGet(url);
|
|
506
|
+
return data.supportedAssets ?? [];
|
|
507
|
+
}
|
|
495
508
|
// -------------------------------------------------------------------------
|
|
496
509
|
// Polymarket Relayer Withdraw
|
|
497
510
|
// -------------------------------------------------------------------------
|