keyring-agent-core 0.4.5 → 0.4.6

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.ts CHANGED
@@ -1153,7 +1153,7 @@ interface BridgeAsset {
1153
1153
  /** Smallest deposit the bridge credits, USD. */
1154
1154
  minUsd: number;
1155
1155
  }
1156
- /** Where cash can be withdrawn to: a USD stablecoin on an EVM chain the bridge serves. */
1156
+ /** Where cash can be withdrawn to: a token the bridge serves on an EVM chain (native = zero address). */
1157
1157
  interface WithdrawDestination {
1158
1158
  /** Bridge chain id (EVM chain id as a decimal string). */
1159
1159
  chainId: string;
@@ -1843,7 +1843,7 @@ interface PredictionDepositProps {
1843
1843
  /** Amount the user named, if any (decimal string). */
1844
1844
  prefillAmount: string | null;
1845
1845
  }
1846
- /** A destination a withdrawal can be paid out to: a USD stablecoin on an EVM chain. */
1846
+ /** A destination a withdrawal can be paid out to: any token the bridge serves on an EVM chain. */
1847
1847
  interface PredictionWithdrawDestinationProps {
1848
1848
  /** Bridge chain id (EVM chain id as a decimal string). */
1849
1849
  chainId: string;
@@ -8959,7 +8959,7 @@ declare const DELAYED_ORDER: {
8959
8959
  * (https://docs.polymarket.com/trading/bridge/withdraw).
8960
8960
  */
8961
8961
  declare const WITHDRAW: {
8962
- /** Destination tokens offered: plain USD stablecoins, in this order on a chain. */
8962
+ /** USD stablecoins listed first on a destination chain, in this order; every other token follows by symbol. */
8963
8963
  readonly STABLE_SYMBOLS: readonly ["USDC", "USDT", "USDT0", "USD₮0"];
8964
8964
  /** Destination chains first in the list (bridge chain ids); every other EVM chain follows by name. */
8965
8965
  readonly CHAIN_ORDER: readonly ["137", "8453", "42161", "1", "10", "56"];
@@ -11130,8 +11130,8 @@ declare function openSecureClient(options: AccountActionOptions): Promise<SdkCli
11130
11130
  * the chain and stablecoin they pick — the bridge flow polymarket.com uses
11131
11131
  * (https://docs.polymarket.com/trading/bridge/withdraw):
11132
11132
  *
11133
- * 1. **Destination** — an EVM chain and USD stablecoin from `/supported-assets`,
11134
- * with its `minCheckoutUsd`: the same floor applies to a withdrawal as to a
11133
+ * 1. **Destination** — any EVM chain and token from `/supported-assets` (the
11134
+ * bridge swaps pUSD into it), with its `minCheckoutUsd`: the same floor applies to a withdrawal as to a
11135
11135
  * deposit (a $1 withdrawal to Base USDC, minimum $2, was never delivered), so
11136
11136
  * an amount below it is refused before anything is sent.
11137
11137
  * 2. **Quote** — `POST /quote`: estimated output, fees and time (read-only).
@@ -11152,10 +11152,11 @@ declare class PolymarketWithdrawError extends Error {
11152
11152
  constructor(code: WithdrawErrorCode, message: string, cause?: unknown);
11153
11153
  }
11154
11154
  /**
11155
- * Where cash can be withdrawn to: the USD stablecoins the bridge serves on EVM
11156
- * chains (the user's own wallet address works on every one of them), pUSD
11157
- * itself excluded. Polygon USDC first — no cross-chain hop — then the chains
11158
- * Keyring users hold most, then the rest by name.
11155
+ * Where cash can be withdrawn to: every token the bridge serves on EVM chains
11156
+ * (the user's own wallet address works on every one of them), pUSD itself
11157
+ * excluded. Polygon USDC first — no cross-chain hop — then the chains Keyring
11158
+ * users hold most, then the rest by name; on a chain the USD stablecoins come
11159
+ * first, then every other token by symbol.
11159
11160
  */
11160
11161
  declare function withdrawDestinations(assets: BridgeAsset[]): WithdrawDestination[];
11161
11162
  /** The destination fields a withdrawal reads; `minUsd` is looked up when not given. */