@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.
@@ -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 WsOrderbookEvent 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 PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type PolymarketRedeemResponse as U, type TickSizeResponse as V, type WithdrawBuildResponse as W, type FeeRateResponse as X, type WsConnectionStatus as Y, type WsDataMessage as Z, type WsPriceEvent as _, PredictWsClient as a, fetchMatchesPage as a$, type WsTradeEvent as a0, type CreateOrderInput as a1, createPredictClient as a2, createPredictWsClient as a3, type PredictWsClientConfig as a4, type ProviderMeta as a5, type PredictTag as a6, type SettlementSource as a7, type MarketStatus as a8, type MarketResult as a9, type MatchLeg as aA, type MatchMarketFlat as aB, type WsChannel as aC, type WsChannelEvent as aD, type WsClientMessage as aE, type WsSubscribeMessage as aF, type WsPingMessage as aG, type WsServerMessage as aH, type WsPongMessage as aI, type WsSubscribedMessage as aJ, type WsErrorCode as aK, type WsErrorMessage as aL, type PolymarketRedeemPrepareInput as aM, type PolymarketRedeemPrepareResponse as aN, type PolymarketRedeemInput as aO, eventQueryKey as aP, fetchEvent as aQ, resolveTagSlug as aR, resolveEventsParams as aS, infiniteEventsQueryKey as aT, fetchEventsPage as aU, type ResolveEventsParamsInput as aV, type TagSlugSelection as aW, marketQueryKey as aX, fetchMarket as aY, matchesQueryKey as aZ, matchQueryKey as a_, type MarketOutcome as aa, type OrderbookLevel as ab, type TradeType as ac, type EventSummary as ad, type MarketSummary as ae, type PricePoint as af, type PredictPosition as ag, type OrderStatus as ah, type OrderSide as ai, type DFlowOrderContext as aj, type PolymarketOrderType as ak, type DepositBuildRequest as al, type DepositBuildResponse as am, type DepositSubmitRequest as an, type DepositSubmitResponse as ao, type DepositStatusResponse as ap, type UnsignedTx as aq, type PolymarketWithdrawPrepareRequest as ar, type PolymarketWithdrawPrepareResponse as as, type MatchStatus as at, type MatchGroupEntry as au, type MatchGroupMarket as av, type MatchSortField as aw, type MatchesStats as ax, type MatchConfidenceTier as ay, type SignalTag as az, type PredictPage as b, matchMarketsQueryKey as b0, fetchMatchMarketsPage as b1, CLOB_AUTH_DOMAIN as b2, CLOB_AUTH_TYPES as b3, buildClobAuthMessage as b4, hmacSha256Base64 as b5, buildPolymarketL2Headers as b6, derivePolymarketApiKey as b7, type HttpMethod as b8, type PolymarketL2HeadersInput as b9, type PolymarketL2Headers as ba, type BuildClobAuthMessageInput as bb, CTF_EXCHANGE_ADDRESS as bc, NEG_RISK_CTF_EXCHANGE_ADDRESS as bd, USDC_ADDRESS as be, POLYGON_CHAIN_ID as bf, buildCtfExchangeDomain as bg, CTF_ORDER_TYPES as bh, ORDER_TYPE as bi, SIDE as bj, buildOrderMessage as bk, buildSignedOrder as bl, buildClobPayload as bm, getPolymarketSharesPrecision as bn, type ClobOrderPayload as bo, type BuildOrderMessageInput as bp, type OrderMessage as bq, type SignedOrder as br, DEFAULT_PAGE_SIZE as bs, 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 };
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 WsOrderbookEvent 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 PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type PolymarketRedeemResponse as U, type TickSizeResponse as V, type WithdrawBuildResponse as W, type FeeRateResponse as X, type WsConnectionStatus as Y, type WsDataMessage as Z, type WsPriceEvent as _, PredictWsClient as a, fetchMatchesPage as a$, type WsTradeEvent as a0, type CreateOrderInput as a1, createPredictClient as a2, createPredictWsClient as a3, type PredictWsClientConfig as a4, type ProviderMeta as a5, type PredictTag as a6, type SettlementSource as a7, type MarketStatus as a8, type MarketResult as a9, type MatchLeg as aA, type MatchMarketFlat as aB, type WsChannel as aC, type WsChannelEvent as aD, type WsClientMessage as aE, type WsSubscribeMessage as aF, type WsPingMessage as aG, type WsServerMessage as aH, type WsPongMessage as aI, type WsSubscribedMessage as aJ, type WsErrorCode as aK, type WsErrorMessage as aL, type PolymarketRedeemPrepareInput as aM, type PolymarketRedeemPrepareResponse as aN, type PolymarketRedeemInput as aO, eventQueryKey as aP, fetchEvent as aQ, resolveTagSlug as aR, resolveEventsParams as aS, infiniteEventsQueryKey as aT, fetchEventsPage as aU, type ResolveEventsParamsInput as aV, type TagSlugSelection as aW, marketQueryKey as aX, fetchMarket as aY, matchesQueryKey as aZ, matchQueryKey as a_, type MarketOutcome as aa, type OrderbookLevel as ab, type TradeType as ac, type EventSummary as ad, type MarketSummary as ae, type PricePoint as af, type PredictPosition as ag, type OrderStatus as ah, type OrderSide as ai, type DFlowOrderContext as aj, type PolymarketOrderType as ak, type DepositBuildRequest as al, type DepositBuildResponse as am, type DepositSubmitRequest as an, type DepositSubmitResponse as ao, type DepositStatusResponse as ap, type UnsignedTx as aq, type PolymarketWithdrawPrepareRequest as ar, type PolymarketWithdrawPrepareResponse as as, type MatchStatus as at, type MatchGroupEntry as au, type MatchGroupMarket as av, type MatchSortField as aw, type MatchesStats as ax, type MatchConfidenceTier as ay, type SignalTag as az, type PredictPage as b, matchMarketsQueryKey as b0, fetchMatchMarketsPage as b1, CLOB_AUTH_DOMAIN as b2, CLOB_AUTH_TYPES as b3, buildClobAuthMessage as b4, hmacSha256Base64 as b5, buildPolymarketL2Headers as b6, derivePolymarketApiKey as b7, type HttpMethod as b8, type PolymarketL2HeadersInput as b9, type PolymarketL2Headers as ba, type BuildClobAuthMessageInput as bb, CTF_EXCHANGE_ADDRESS as bc, NEG_RISK_CTF_EXCHANGE_ADDRESS as bd, USDC_ADDRESS as be, POLYGON_CHAIN_ID as bf, buildCtfExchangeDomain as bg, CTF_ORDER_TYPES as bh, ORDER_TYPE as bi, SIDE as bj, buildOrderMessage as bk, buildSignedOrder as bl, buildClobPayload as bm, getPolymarketSharesPrecision as bn, type ClobOrderPayload as bo, type BuildOrderMessageInput as bp, type OrderMessage as bq, type SignedOrder as br, DEFAULT_PAGE_SIZE as bs, 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 };
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, bb as BuildClobAuthMessageInput, bp as BuildOrderMessageInput, b2 as CLOB_AUTH_DOMAIN, b3 as CLOB_AUTH_TYPES, bc as CTF_EXCHANGE_ADDRESS, bh as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bo as ClobOrderPayload, a1 as CreateOrderInput, bs as DEFAULT_PAGE_SIZE, aj as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, al as DepositBuildRequest, am as DepositBuildResponse, ap as DepositStatusResponse, an as DepositSubmitRequest, ao as DepositSubmitResponse, f as EventSortField, e as EventStatus, ad as EventSummary, b8 as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, aa as MarketOutcome, a9 as MarketResult, a8 as MarketStatus, ae as MarketSummary, ay as MatchConfidenceTier, t as MatchGroup, au as MatchGroupEntry, av as MatchGroupMarket, s as MatchGroupPage, aA as MatchLeg, aB as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bd as NEG_RISK_CTF_EXCHANGE_ADDRESS, bi as ORDER_TYPE, bq as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bf as POLYGON_CHAIN_ID, ba as PolymarketL2Headers, b9 as PolymarketL2HeadersInput, ak as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ag as PredictPosition, a6 as PredictTag, i as PredictTrade, a as PredictWsClient, a4 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, af as PricePoint, a5 as ProviderMeta, d as ProviderSource, aV as ResolveEventsParamsInput, bj as SIDE, a7 as SettlementSource, az as SignalTag, br as SignedOrder, S as SimilarEventsParams, aW as TagSlugSelection, ac as TradeType, be as USDC_ADDRESS, aq as UnsignedTx, aC as WsChannel, aD as WsChannelEvent, aE as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aK as WsErrorCode, aL as WsErrorMessage, $ as WsOrderbookEvent, aG as WsPingMessage, aI as WsPongMessage, _ as WsPriceEvent, aH as WsServerMessage, aF as WsSubscribeMessage, aJ as WsSubscribedMessage, a0 as WsTradeEvent, b4 as buildClobAuthMessage, bm as buildClobPayload, bg as buildCtfExchangeDomain, bk as buildOrderMessage, b6 as buildPolymarketL2Headers, bl as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b7 as derivePolymarketApiKey, aP as eventQueryKey, aQ as fetchEvent, aU as fetchEventsPage, aY as fetchMarket, b1 as fetchMatchMarketsPage, a$ as fetchMatchesPage, b5 as hmacSha256Base64, aT as infiniteEventsQueryKey, aX as marketQueryKey, b0 as matchMarketsQueryKey, a_ as matchQueryKey, aZ as matchesQueryKey, aS as resolveEventsParams, aR as resolveTagSlug } from './server-rd8X_X_4.mjs';
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, bb as BuildClobAuthMessageInput, bp as BuildOrderMessageInput, b2 as CLOB_AUTH_DOMAIN, b3 as CLOB_AUTH_TYPES, bc as CTF_EXCHANGE_ADDRESS, bh as CTF_ORDER_TYPES, r as CancelOrderResult, C as Candlestick, bo as ClobOrderPayload, a1 as CreateOrderInput, bs as DEFAULT_PAGE_SIZE, aj as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, al as DepositBuildRequest, am as DepositBuildResponse, ap as DepositStatusResponse, an as DepositSubmitRequest, ao as DepositSubmitResponse, f as EventSortField, e as EventStatus, ad as EventSummary, b8 as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, aa as MarketOutcome, a9 as MarketResult, a8 as MarketStatus, ae as MarketSummary, ay as MatchConfidenceTier, t as MatchGroup, au as MatchGroupEntry, av as MatchGroupMarket, s as MatchGroupPage, aA as MatchLeg, aB as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, aw as MatchSortField, at as MatchStatus, M as MatchesParams, ax as MatchesStats, bd as NEG_RISK_CTF_EXCHANGE_ADDRESS, bi as ORDER_TYPE, bq as OrderMessage, ai as OrderSide, ah as OrderStatus, O as Orderbook, ab as OrderbookLevel, bf as POLYGON_CHAIN_ID, ba as PolymarketL2Headers, b9 as PolymarketL2HeadersInput, ak as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ag as PredictPosition, a6 as PredictTag, i as PredictTrade, a as PredictWsClient, a4 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, af as PricePoint, a5 as ProviderMeta, d as ProviderSource, aV as ResolveEventsParamsInput, bj as SIDE, a7 as SettlementSource, az as SignalTag, br as SignedOrder, S as SimilarEventsParams, aW as TagSlugSelection, ac as TradeType, be as USDC_ADDRESS, aq as UnsignedTx, aC as WsChannel, aD as WsChannelEvent, aE as WsClientMessage, Y as WsConnectionStatus, Z as WsDataMessage, aK as WsErrorCode, aL as WsErrorMessage, $ as WsOrderbookEvent, aG as WsPingMessage, aI as WsPongMessage, _ as WsPriceEvent, aH as WsServerMessage, aF as WsSubscribeMessage, aJ as WsSubscribedMessage, a0 as WsTradeEvent, b4 as buildClobAuthMessage, bm as buildClobPayload, bg as buildCtfExchangeDomain, bk as buildOrderMessage, b6 as buildPolymarketL2Headers, bl as buildSignedOrder, a2 as createPredictClient, a3 as createPredictWsClient, b7 as derivePolymarketApiKey, aP as eventQueryKey, aQ as fetchEvent, aU as fetchEventsPage, aY as fetchMarket, b1 as fetchMatchMarketsPage, a$ as fetchMatchesPage, b5 as hmacSha256Base64, aT as infiniteEventsQueryKey, aX as marketQueryKey, b0 as matchMarketsQueryKey, a_ as matchQueryKey, aZ as matchesQueryKey, aS as resolveEventsParams, aR as resolveTagSlug } from './server-rd8X_X_4.js';
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
  // -------------------------------------------------------------------------