keyring-agent-core 0.4.8 → 0.4.9

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
@@ -1791,14 +1791,17 @@ interface PredictionDepositOptionProps {
1791
1791
  chainId: number;
1792
1792
  chainHex: string;
1793
1793
  chainName: string;
1794
+ /** Lowercase; the zero address for the chain's native coin. */
1794
1795
  tokenAddress: string;
1795
1796
  symbol: string;
1796
- /** Read from the token contract, not the bridge listing. */
1797
+ /** Read from the token contract, not the bridge listing (the native coin: the listing's). */
1797
1798
  decimals: number;
1798
1799
  /** Human units (decimal string). */
1799
1800
  balance: string;
1800
- /** Smallest deposit the bridge credits, USD (= token units for a stablecoin). */
1801
+ /** Smallest deposit the bridge credits, USD (= token units for a stablecoin only). */
1801
1802
  minUsd: number;
1803
+ /** A USD stablecoin: one unit ≈ $1. Any other token is priced to compare with `minUsd`. */
1804
+ stable: boolean;
1802
1805
  }
1803
1806
  /** Where a deposit from any OTHER wallet goes, per address family. */
1804
1807
  interface PredictionDepositNetworkProps {
@@ -1831,7 +1834,7 @@ interface PredictionDepositProps {
1831
1834
  owner: string;
1832
1835
  /** The bridge EVM deposit address the in-app deposit is sent to. */
1833
1836
  depositAddress: string;
1834
- /** Stablecoins the owner holds that can be deposited from the app, largest first. */
1837
+ /** Bridge-supported tokens the owner holds that can be deposited from the app (stablecoins first). */
1835
1838
  options: PredictionDepositOptionProps[];
1836
1839
  /**
1837
1840
  * Every token the bridge credits when sent to `depositAddress` from an EVM
@@ -8727,6 +8730,12 @@ declare function getPolymarketBuilderCode(): string;
8727
8730
  */
8728
8731
  declare const BRIDGE_STATUS_POLL_MS = 10000;
8729
8732
  declare const BRIDGE_SUPPORT_URL = "https://intercom.help/funxyz/en/articles/10732578-contact-us";
8733
+ /**
8734
+ * Polygon's native-coin precompile, which the bridge also lists (as "MATIC") next
8735
+ * to the native POL: the same coin and balance, so it is left out of the wallet
8736
+ * deposit options and the withdraw destinations rather than shown twice.
8737
+ */
8738
+ declare const POLYGON_NATIVE_PRECOMPILE = "0x0000000000000000000000000000000000001010";
8730
8739
  /** Placeholder the bridge uses for a chain's native coin; mapped to the zero address. */
8731
8740
  declare const NATIVE_TOKEN_PLACEHOLDER = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
8732
8741
  /** polymarket.com — event pages live at `${POLYMARKET_WEB_URL}/event/<slug>`. */
@@ -10827,20 +10836,28 @@ interface WalletDepositOption {
10827
10836
  /** Hex chain id, e.g. "0x2105". */
10828
10837
  chainHex: string;
10829
10838
  chainName: string;
10839
+ /** Lowercase; the zero address for the chain's native coin. */
10830
10840
  tokenAddress: string;
10831
10841
  symbol: string;
10832
10842
  decimals: number;
10833
10843
  /** The wallet's balance of this token, human units (decimal string). */
10834
10844
  balance: string;
10835
- /** Smallest deposit the bridge credits, USD (= token units for these stablecoins). */
10845
+ /** Smallest deposit the bridge credits, USD. */
10836
10846
  minUsd: number;
10847
+ /** A USD stablecoin: one unit ≈ $1, so amounts and minimums compare directly. */
10848
+ stable: boolean;
10837
10849
  }
10838
- /** Bridge assets the app deposits from the wallet: EVM, ERC-20, USD stablecoin. */
10850
+ /**
10851
+ * Bridge assets the app deposits from the wallet: every token the bridge
10852
+ * accepts on an EVM chain — native coin (zero address) and ERC-20s alike, not
10853
+ * only USD stablecoins. pUSD itself is left out (it IS the account's cash).
10854
+ */
10839
10855
  declare function walletDepositAssets(assets: BridgeAsset[]): BridgeAsset[];
10840
10856
  /**
10841
10857
  * The wallet's non-zero balances of {@link walletDepositAssets}, largest first.
10842
- * One multicall per chain, all chains in parallel; a chain this core cannot
10843
- * read, or whose RPC fails, is simply left out.
10858
+ * One multicall per chain (plus `getBalance` for the native coin), all chains
10859
+ * in parallel; a chain this core cannot read, or whose RPC fails, is simply
10860
+ * left out.
10844
10861
  */
10845
10862
  declare function findWalletDepositOptions(owner: string, assets: BridgeAsset[]): Promise<WalletDepositOption[]>;
10846
10863
  /** A token the bridge credits when sent to the EVM deposit address, on one EVM chain. */
@@ -11158,7 +11175,7 @@ declare function openSecureClient(options: AccountActionOptions): Promise<SdkCli
11158
11175
 
11159
11176
  /**
11160
11177
  * Withdrawing cash (pUSD) from a Polymarket account to the user's own wallet on
11161
- * the chain and stablecoin they pick — the bridge flow polymarket.com uses
11178
+ * the chain and token they pick (native coin included) — the bridge flow polymarket.com uses
11162
11179
  * (https://docs.polymarket.com/trading/bridge/withdraw):
11163
11180
  *
11164
11181
  * 1. **Destination** — any EVM chain and token from `/supported-assets` (the
@@ -11463,7 +11480,8 @@ declare class PredictionSetupTool extends BaseTool {
11463
11480
  * Tool: open-prediction-deposit
11464
11481
  *
11465
11482
  * Opens the card that funds the user's Polymarket account. From the app, the
11466
- * user sends a USD stablecoin they hold to the account's bridge deposit address
11483
+ * user sends any token the bridge accepts that they hold (USDC, ETH, WETH…) to the
11484
+ * account's bridge deposit address
11467
11485
  * (the card signs and sends it, like any transfer); from any other wallet, the
11468
11486
  * card shows the deposit addresses with a QR code. The bridge swaps to pUSD and
11469
11487
  * credits the account. This tool only reads — it never moves funds.
@@ -11484,7 +11502,7 @@ declare class PredictionDepositTool extends BaseTool {
11484
11502
  _instructions: string;
11485
11503
  ui?: undefined;
11486
11504
  hasPolymarketAccount?: undefined;
11487
- walletHasDepositableStablecoins?: undefined;
11505
+ walletHasDepositableTokens?: undefined;
11488
11506
  depositableFromWallet?: undefined;
11489
11507
  minimumDepositUsd?: undefined;
11490
11508
  } | {
@@ -11492,12 +11510,12 @@ declare class PredictionDepositTool extends BaseTool {
11492
11510
  hasPolymarketAccount: boolean;
11493
11511
  _instructions: string;
11494
11512
  error?: undefined;
11495
- walletHasDepositableStablecoins?: undefined;
11513
+ walletHasDepositableTokens?: undefined;
11496
11514
  depositableFromWallet?: undefined;
11497
11515
  minimumDepositUsd?: undefined;
11498
11516
  } | {
11499
11517
  ui: UIPayload<PredictionDepositProps>;
11500
- walletHasDepositableStablecoins: boolean;
11518
+ walletHasDepositableTokens: boolean;
11501
11519
  depositableFromWallet: string[];
11502
11520
  minimumDepositUsd: number | null;
11503
11521
  _instructions: string;
@@ -16234,4 +16252,4 @@ declare class AbortError extends Error {
16234
16252
  */
16235
16253
  declare function isAbortError(err: unknown): boolean;
16236
16254
 
16237
- export { AI_AGENT_TOOL_NAMES, type Abi, type AbiItem, type AbiParameter, AbortError, type AccountActionOptions, type AddLiquidityFormProps, type AddLiquiditySummary, type Address, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, type ApprovalTx, ApproveTokenTool, type ApyPoint, BRIDGE_NON_EVM_CHAIN_FAMILY, BRIDGE_STATUS_POLL_MS, BRIDGE_SUPPORT_URL, BUILDER_CODE, BaseNftAiTool, BaseSwapProvider, BaseTool, BaseWalletActionTool, type BlockParameters, type BlockTag, type BookLevel, type BookStreamStatus, type BridgeAddresses, type BridgeAsset, type BridgeQuote, type BridgeTransfer, type BuildApprovalsParams, type BuilderAuthRequest, type BuilderAuthorization, type BuyTokenSide, BuyTokenTool, CONDITIONAL_TOKENS, CachedResource, type CallParameters, type Chain, type ChainMeta, type ChainRef, type ChainSelector, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type Client, type ClientBatchConfig, type ClobCredentials, CoinpoolConfigApi, type ConfirmAddLiquidityTxProps, type ContractFunctionParameters, type CortexResponse, type CryptoPriceTick, DEFAULT_CHAIN, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DEFILLAMA_EXTRA_SIGNALS, DEFILLAMA_POOL_CHAIN_HEXES, DEFILLAMA_POOL_CHAIN_PARAM_DESCRIPTION, DELAYED_ORDER, DEPOSIT_REFERENCE_USD, DEPOSIT_STABLE_SYMBOLS, DebridgeProvider, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, DefiLlamaEstimatePoolYieldTool, type DefiLlamaEstimatePoolYieldToolConfig, type DefiLlamaPool, DefiLlamaPoolByAddressTool, type DefiLlamaPoolByAddressToolConfig, DefiLlamaPoolCandidateResolver, DefiLlamaPoolDetailTool, type DefiLlamaPoolDetailToolConfig, DefiLlamaPoolSearchTool, type DefiLlamaPoolSearchToolConfig, DefiLlamaPoolService, type DefiLlamaPoolServiceConfig, type DefiLlamaProtocolVersion, type DefiLlamaServiceResponse, type DefiLlamaSortBy, DefiLlamaTopPoolsTool, type DefiLlamaTopPoolsToolConfig, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, type DeployDepositWalletResult, type DepositQuote, type EIP1193RequestFn, ERC1967_INIT_CODE, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type EvmDepositAsset, type FeeContext, type FormattedDefiLlamaPool, GAMES_TAG_ID, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, HIDE_FROM_NEW_TAG_ID, type Hex, type HolderChangePeriod, type HolderSupplyTier, type HttpMethod, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KeyringSettingApi, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, type LendingMarket, type LendingMarketCardProps, LendingMarketDetailTool, type LendingMarketDetailToolConfig, type LendingMarketListProps, type LendingMarketOverview, LendingMarketsTool, type LendingMarketsToolConfig, type LendingProtocolType, LendingReadService, LendingService, type LendingServiceConfig, type LendingSupplyPosition, LendingSupplyService, MARKET_ORDER, MARKET_STREAM, MULTICALL3_ADDRESS, ManageLiquidityRedirectTool, type MarketFee, type MarketOrder, type MarketOrderInput, type MarketQuote, type MarketTradeInfo, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, type MulticallParameters, type MulticallRawParameters, type MulticallResult, NATIVE_GAS_LIMIT, NATIVE_TOKEN_PLACEHOLDER, NEG_RISK_ADAPTER, NFC_AGENT_TOOL_NAMES, NFC_AMAZON_DEFAULT_DOMAIN, NFC_AMAZON_DOMAINS, type NFTCollectionItem, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, NFT_AGENT_TOOL_NAMES, type NativeActionKind, type NativeGasGap, type NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftTransferLastSale, NoFormTool, type NoFormToolMessages, ONBOARDING_STEP, ONBOARDING_TRACKING, ORDER_INPUT_ERROR, type OnboardingResult, type OnboardingSnapshot, type OnboardingStep, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, OpenSupplyFormTool, type OpenSupplyFormToolConfig, type OrderBookSnapshot, type OrderBookWatch, type OrderInputError, PERPS_DEPOSIT_CONTRACT, POLYGON_CHAIN_ID, POLYGON_HEX_CHAIN_ID, POLYMARKET_API, POLYMARKET_LIVE_DATA_WS, POLYMARKET_WEB_URL, POOL_UNISWAP_AGENT_TOOL_NAMES, POSITION_DUST_SHARES, PREDICTION_ACTIVITY_TYPES, PREDICTION_AGENT_TOOL_NAMES, PREDICTION_CATEGORIES, PREDICTION_SORTS, PUSD_ADDRESS, PUSD_DECIMALS, PantographService, type PantographServiceConfig, type PantographYieldIdentity, type PaymentToken, type PlaceOrderOptions, type PlacedOrder, type PolymarketAccount, PolymarketApiError, type PolymarketBuilderAuth, type PolymarketBuilderCredentials, PolymarketOnboardingError, PolymarketRedeemError, type PolymarketSdkSigner, PolymarketService, type PolymarketServiceConfig, type PolymarketSignerBridge, PolymarketTradeError, type PolymarketTypedData, PolymarketWithdrawError, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, PoolSwapRouter, type PredictionActivityItem, type PredictionActivityItemProps, type PredictionActivityProps, PredictionActivityTool, type PredictionCategoryKey, type PredictionDepositAssetProps, type PredictionDepositNetworkProps, type PredictionDepositOptionProps, type PredictionDepositProps, PredictionDepositTool, type PredictionEvent, type PredictionEventCardProps, type PredictionHeadline, type PredictionMarket, type PredictionMarketDetailProps, PredictionMarketDetailTool, type PredictionMarketListProps, type PredictionMarketRowProps, PredictionMarketsTool, type PredictionOutcome, type PredictionOutcomeProps, type PredictionPortfolioProps, PredictionPortfolioTool, type PredictionPosition, type PredictionPositionProps, type PredictionSetupProps, PredictionSetupTool, type PredictionSortKey, type PredictionTradeMarketProps, type PredictionTradeProps, PredictionTradeTool, type PredictionWithdrawDestinationProps, type PredictionWithdrawProps, PredictionWithdrawTool, type PreparedOrder, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProtocolVersion, type ProviderName, PublicClient, type PublicClientConfig, type QuickRate, type QuoteGas, REDEEM, RELAYER_DEPLOY_POLL, RELAYER_SUBMIT_PATH, type RangePreset, type RawYieldIdentityRow, type ReActPhase, type ReActStep, type ReActTrace, type ReadContractParameters, type RedeemErrorCode, type RedeemOptions, type RedeemResult, RelayProvider, type RemoteBuilderSigningConfig, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, type RunOnboardingOptions, SUPPLIABLE_TYPES, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, type SpendableBalance, type StateOverride, type StorageProvider, Subagent, type SubagentCard, type SubagentOptions, type SubagentParams, type SubagentResult, type SubagentTask, type SubagentToggles, SubgraphAddPoolTool, type SubgraphAddPoolToolConfig, SubgraphCoinPoolPairsTool, type SubgraphCoinPoolPairsToolConfig, SubgraphPoolByAddressTool, type SubgraphPoolByAddressToolConfig, SubgraphPoolByPositionIdTool, type SubgraphPoolByPositionIdToolConfig, SubgraphPoolSearchTool, type SubgraphPoolSearchToolConfig, SubgraphPositionDetailTool, type SubgraphPositionDetailToolConfig, SubgraphTrendingPoolsTool, type SubgraphTrendingPoolsToolConfig, type SuggestedAction, Summarizer, type SuppliableMarket, type SupplyProtocolType, type SupplyUsdcProps, type SupportedChainId, type SupportedChainName, type SwapProviderConfig, type SwapProviderConfigMap, SwapProviderFactory, type SwapQuoteParams, type SwapQuoteResult, type SwapRoute, type SwapRouteRequest, SwapRouter, SwapRouterRegistry, type SwapTokenFormProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, TRADE_ERROR, TRADING_APPROVALS_METADATA, TRANSFER_TOPIC, TRENDING_DEFAULT_BY_HEX_CHAIN, type TokenAnalyticsResponse, type TokenAnalyticsTimeframeBuckets, TokenAnalyticsTool, type TokenAnalyticsToolConfig, type TokenApproval, type TokenApprovalSpender, type TokenApprovalToken, type TokenBalance, type TokenDisplay, type TokenHoldersResponse, TokenHoldersTool, type TokenHoldersToolConfig, TokenInfoTool, type TokenInfoToolConfig, type TokenMetadata, type TokenScoreMetrics, type TokenScoreResponse, type TokenScoreSupply, type TokenScoreTimeframeBuckets, TokenScoreTool, type TokenScoreToolConfig, type Tool, type ToolDefinition, type ToolKind, type ToolParameter, ToolRegistry, type ToolResult, type TopGainerTimeFrames, type TopGainerToken, type TopGainersTimeFrame, TopGainersTool, type TopGainersToolConfig, TopPoolsTool, type TopPoolsToolConfig, type TrackStatus, type TrackTransactionParams, type TrackTransactionResult, type TradeErrorCode, type TradingApprovalsStatus, type TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type Transport, type TransportConfig, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, UNRESOLVED_ASSET, UP_OR_DOWN_TAG_ID, type UnsignedTx, type UpDownPrices, type UpDownWindow, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, UserSwapRouter, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, WALLET_DERIVATION, WITHDRAW, type WalletActionProps, type WalletActionType, type WalletApprovalsResponse, WalletApprovalsTool, type WalletApprovalsToolConfig, type WalletDefiPositionSummary, WalletDefiPositionsTool, type WalletDefiPositionsToolConfig, type WalletDefiPositionsV1Response, type WalletDefiProtocolPositionsResponse, WalletDefiProtocolPositionsTool, type WalletDefiProtocolPositionsToolConfig, type WalletDefiProtocolPositionsV1Response, type WalletDefiSummaryResponse, type WalletDefiSummaryV1Response, type WalletDepositOption, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletLendingPositionsTool, type WalletLendingPositionsToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, type WalletNftCardProps, type WalletNftListProps, type WalletNftTransferItem, type WalletNftTransfersResponse, WalletNftTransfersTool, type WalletNftTransfersToolConfig, type WalletPnlDaysWindow, type WalletPnlResponse, type WalletPnlSummaryResponse, WalletPnlSummaryTool, type WalletPnlSummaryToolConfig, type WalletPnlTokenItem, WalletPnlTool, type WalletPnlToolConfig, WalletTokenBalancesTool, type WalletTokenBalancesToolConfig, type WalletTokenTransferItem, type WalletTokenTransfersResponse, WalletTokenTransfersTool, type WalletTokenTransfersToolConfig, type WatchOrderBooksOptions, type WebsiteTrustExtraData, type WebsiteTrustInput, WebsiteTrustKeyringAgent, type WebsiteTrustKeyringAgentConfig, type WebsiteTrustResult, type WithdrawDestination, type WithdrawErrorCode, type WithdrawOptions, type WithdrawQuote, type WithdrawResult, type WithdrawTarget, type X402Authorization, type X402Challenge, type X402Display, type X402Outcome, type X402PaymentRequiredProps, type X402Receipt, type X402RequestSpec, type X402Requirements, type X402SignRequest, type X402Signer, type X402TypedData, type X402Version, type YieldAssetInfo, type YieldConversionCall, type YieldConversionPlan, type YieldPricingOptions, type YieldPricingToken, type YieldTokenInput, type YieldTokenValue, ZERO_ADDRESS, adjustBuyAmountForFees, allInBuyNotional, amazonDomainForLanguage, apiClient, applyMarketEvent, applyYieldConversions, bestPrice, buildApprovalCalls, buildApprovals, buildBuilderSignature, buildChallenge, buildRangePresets, buildUniswapPoolUrl, builderApiKey, buyNotional, buyNotionalAfterFee, call, canDeriveV3PoolAddress, ceil2, chains, checkNativeGasAffordable, checksumAddress, clampTick, classifyTradeError, classifyWithdrawError, clearPublicClientCache, coinpoolConfigApi, compareDecimal, completeX402, configureSupportedChains, configureSwapProvider, convertSusdsShares, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPolymarketSigner, createPoolUniswapAgent, createPredictionAgent, createPublicClient, createTokenAgent, createTransport, createWalletActionAgent, createWalletAgent, createX402SignatureProvider, decodeAbiParameters, decodeErrorResult, decodeFunctionData, decodeFunctionResult, defiLlamaPoolInfoScope, defiLlamaPoolSupportsLabel, deployDepositWallet, depositPriceImpact, deriveBeaconDepositWallet, deriveDepositWallet, deriveSafeWallet, deriveUupsDepositWallet, deriveV3PoolAddress, displayFromChallenge, effectivePriceUSD, encodeAbiParameters, encodeApprove, encodeErrorResult, encodeFunctionData, encodeSignedHeader, erc1155Abi, erc20Abi, erc20Abi_bytes32, erc721Abi, estimateGas, estimateNativeGasReserveWei, estimateTransactionFeeWei, ethCallAt, ethCallByChain, eventHeadline, eventUrl, evmDepositAssets, exactAmountString, extractOutRaw, extractQuoteError, fallback, feePerShare, feeWeiToNative, fetchOnboardingSnapshot, fetchTopMarketplaces, fetchTradingApprovalsStatus, fetchUnderlyingPricesUSD, findWalletDepositOptions, floor2, floorToDecimals, formatDefiLlamaPool, getAbiItem, getAddress, getBalance, getBlock, getBlockNumber, getCashBalance, getCashBalanceBaseUnits, getChain, getChainContractAddress, getChainId, getChainMeta, getCode, getDefaultRpcUrl, getGasPrice, getNativeTokenInfo, getPolymarketBuilderCode, getPublicClient, getRevertReason, getRpcOverrides, getShareBalances, getStorageAt, getTokenPriceUSD, getTransactionCount, http, humanToWei, ingestKnowledgeBase, isAbortError, isAddress, isAddressEqual, isBelowWithdrawMinimum, isEvmAddress, isMarketOpen, isPaymentRequired, isShareBasedProtocol, isShareBasedYieldToken, isSupplyChain, keyringSettingApi, listCandidateChains, listSupplyChains, mapEvent, mapMarket, marketFee, marketProtocol, moneylineMarket, mulDivFloor, multicall, multicall3Abi, multicallRaw, nativeGasShortfall, nfcAmazonSearchUrl, normaliseCountry, normalizeDecimal, normalizeLevels, normalizePriceRangeToPool, normalizeText, onboardingStep, openSecureClient, parseAbi, parseAbiItem, parseAbiParameters, parsePolymarketUrl, parsePredictionHint, pickLogo, placePredictionOrder, planYieldTokenConversions, predictionHint, prepareMarketOrder, priceToTick, protocolLabelFor, psm3For, pusdFromBaseUnits, pusdToBaseUnits, quoteBuyAsPolymarket, quoteBuyUsd, quoteDeposit, quoteMarketOrder, quoteSellShares, quoteWithdrawal, readContract, readPaymentError, readPaymentRequired, readProtocolFeeWei, readReceipt, readSpendableBalance, readTokenUsdPrice, redeemPredictionPositions, registerMaybeNoForm, remoteBuilderSigning, requestWithX402, resolveAccountWallet, resolveCategory, resolveGasLimit, resolveNfcShopLinks, resolveRawYieldAsset, resolveRawYieldIdentity, resolveRawYieldProtocol, resolveRpcUrl, resolveRpcUrls, resolveTokenPriceUSD, roundTickToSpacing, rpcCall, runPolymarketOnboarding, setPolymarketBuilderCode, setRpcOverrides, slippagePrice, spendableNative, swapProviderFactory, swapRouterRegistry, tickToPrice, ticketFee, toBuilderAuthorization, toEventSelector, toFunctionSelector, toPantographChain, toPlainDecimal, unitPriceUSD, upDownWindow, valueYieldTokens, walletDepositAssets, watchCryptoPrice, watchOrderBooks, weiToHuman, withdrawDestinations, withdrawFromPolymarket };
16255
+ export { AI_AGENT_TOOL_NAMES, type Abi, type AbiItem, type AbiParameter, AbortError, type AccountActionOptions, type AddLiquidityFormProps, type AddLiquiditySummary, type Address, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, type ApprovalTx, ApproveTokenTool, type ApyPoint, BRIDGE_NON_EVM_CHAIN_FAMILY, BRIDGE_STATUS_POLL_MS, BRIDGE_SUPPORT_URL, BUILDER_CODE, BaseNftAiTool, BaseSwapProvider, BaseTool, BaseWalletActionTool, type BlockParameters, type BlockTag, type BookLevel, type BookStreamStatus, type BridgeAddresses, type BridgeAsset, type BridgeQuote, type BridgeTransfer, type BuildApprovalsParams, type BuilderAuthRequest, type BuilderAuthorization, type BuyTokenSide, BuyTokenTool, CONDITIONAL_TOKENS, CachedResource, type CallParameters, type Chain, type ChainMeta, type ChainRef, type ChainSelector, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type Client, type ClientBatchConfig, type ClobCredentials, CoinpoolConfigApi, type ConfirmAddLiquidityTxProps, type ContractFunctionParameters, type CortexResponse, type CryptoPriceTick, DEFAULT_CHAIN, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DEFILLAMA_EXTRA_SIGNALS, DEFILLAMA_POOL_CHAIN_HEXES, DEFILLAMA_POOL_CHAIN_PARAM_DESCRIPTION, DELAYED_ORDER, DEPOSIT_REFERENCE_USD, DEPOSIT_STABLE_SYMBOLS, DebridgeProvider, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, DefiLlamaEstimatePoolYieldTool, type DefiLlamaEstimatePoolYieldToolConfig, type DefiLlamaPool, DefiLlamaPoolByAddressTool, type DefiLlamaPoolByAddressToolConfig, DefiLlamaPoolCandidateResolver, DefiLlamaPoolDetailTool, type DefiLlamaPoolDetailToolConfig, DefiLlamaPoolSearchTool, type DefiLlamaPoolSearchToolConfig, DefiLlamaPoolService, type DefiLlamaPoolServiceConfig, type DefiLlamaProtocolVersion, type DefiLlamaServiceResponse, type DefiLlamaSortBy, DefiLlamaTopPoolsTool, type DefiLlamaTopPoolsToolConfig, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, type DeployDepositWalletResult, type DepositQuote, type EIP1193RequestFn, ERC1967_INIT_CODE, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type EvmDepositAsset, type FeeContext, type FormattedDefiLlamaPool, GAMES_TAG_ID, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, HIDE_FROM_NEW_TAG_ID, type Hex, type HolderChangePeriod, type HolderSupplyTier, type HttpMethod, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KeyringSettingApi, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, type LendingMarket, type LendingMarketCardProps, LendingMarketDetailTool, type LendingMarketDetailToolConfig, type LendingMarketListProps, type LendingMarketOverview, LendingMarketsTool, type LendingMarketsToolConfig, type LendingProtocolType, LendingReadService, LendingService, type LendingServiceConfig, type LendingSupplyPosition, LendingSupplyService, MARKET_ORDER, MARKET_STREAM, MULTICALL3_ADDRESS, ManageLiquidityRedirectTool, type MarketFee, type MarketOrder, type MarketOrderInput, type MarketQuote, type MarketTradeInfo, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, type MulticallParameters, type MulticallRawParameters, type MulticallResult, NATIVE_GAS_LIMIT, NATIVE_TOKEN_PLACEHOLDER, NEG_RISK_ADAPTER, NFC_AGENT_TOOL_NAMES, NFC_AMAZON_DEFAULT_DOMAIN, NFC_AMAZON_DOMAINS, type NFTCollectionItem, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, NFT_AGENT_TOOL_NAMES, type NativeActionKind, type NativeGasGap, type NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftTransferLastSale, NoFormTool, type NoFormToolMessages, ONBOARDING_STEP, ONBOARDING_TRACKING, ORDER_INPUT_ERROR, type OnboardingResult, type OnboardingSnapshot, type OnboardingStep, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, OpenSupplyFormTool, type OpenSupplyFormToolConfig, type OrderBookSnapshot, type OrderBookWatch, type OrderInputError, PERPS_DEPOSIT_CONTRACT, POLYGON_CHAIN_ID, POLYGON_HEX_CHAIN_ID, POLYGON_NATIVE_PRECOMPILE, POLYMARKET_API, POLYMARKET_LIVE_DATA_WS, POLYMARKET_WEB_URL, POOL_UNISWAP_AGENT_TOOL_NAMES, POSITION_DUST_SHARES, PREDICTION_ACTIVITY_TYPES, PREDICTION_AGENT_TOOL_NAMES, PREDICTION_CATEGORIES, PREDICTION_SORTS, PUSD_ADDRESS, PUSD_DECIMALS, PantographService, type PantographServiceConfig, type PantographYieldIdentity, type PaymentToken, type PlaceOrderOptions, type PlacedOrder, type PolymarketAccount, PolymarketApiError, type PolymarketBuilderAuth, type PolymarketBuilderCredentials, PolymarketOnboardingError, PolymarketRedeemError, type PolymarketSdkSigner, PolymarketService, type PolymarketServiceConfig, type PolymarketSignerBridge, PolymarketTradeError, type PolymarketTypedData, PolymarketWithdrawError, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, PoolSwapRouter, type PredictionActivityItem, type PredictionActivityItemProps, type PredictionActivityProps, PredictionActivityTool, type PredictionCategoryKey, type PredictionDepositAssetProps, type PredictionDepositNetworkProps, type PredictionDepositOptionProps, type PredictionDepositProps, PredictionDepositTool, type PredictionEvent, type PredictionEventCardProps, type PredictionHeadline, type PredictionMarket, type PredictionMarketDetailProps, PredictionMarketDetailTool, type PredictionMarketListProps, type PredictionMarketRowProps, PredictionMarketsTool, type PredictionOutcome, type PredictionOutcomeProps, type PredictionPortfolioProps, PredictionPortfolioTool, type PredictionPosition, type PredictionPositionProps, type PredictionSetupProps, PredictionSetupTool, type PredictionSortKey, type PredictionTradeMarketProps, type PredictionTradeProps, PredictionTradeTool, type PredictionWithdrawDestinationProps, type PredictionWithdrawProps, PredictionWithdrawTool, type PreparedOrder, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProtocolVersion, type ProviderName, PublicClient, type PublicClientConfig, type QuickRate, type QuoteGas, REDEEM, RELAYER_DEPLOY_POLL, RELAYER_SUBMIT_PATH, type RangePreset, type RawYieldIdentityRow, type ReActPhase, type ReActStep, type ReActTrace, type ReadContractParameters, type RedeemErrorCode, type RedeemOptions, type RedeemResult, RelayProvider, type RemoteBuilderSigningConfig, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, type RunOnboardingOptions, SUPPLIABLE_TYPES, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, type SpendableBalance, type StateOverride, type StorageProvider, Subagent, type SubagentCard, type SubagentOptions, type SubagentParams, type SubagentResult, type SubagentTask, type SubagentToggles, SubgraphAddPoolTool, type SubgraphAddPoolToolConfig, SubgraphCoinPoolPairsTool, type SubgraphCoinPoolPairsToolConfig, SubgraphPoolByAddressTool, type SubgraphPoolByAddressToolConfig, SubgraphPoolByPositionIdTool, type SubgraphPoolByPositionIdToolConfig, SubgraphPoolSearchTool, type SubgraphPoolSearchToolConfig, SubgraphPositionDetailTool, type SubgraphPositionDetailToolConfig, SubgraphTrendingPoolsTool, type SubgraphTrendingPoolsToolConfig, type SuggestedAction, Summarizer, type SuppliableMarket, type SupplyProtocolType, type SupplyUsdcProps, type SupportedChainId, type SupportedChainName, type SwapProviderConfig, type SwapProviderConfigMap, SwapProviderFactory, type SwapQuoteParams, type SwapQuoteResult, type SwapRoute, type SwapRouteRequest, SwapRouter, SwapRouterRegistry, type SwapTokenFormProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, TRADE_ERROR, TRADING_APPROVALS_METADATA, TRANSFER_TOPIC, TRENDING_DEFAULT_BY_HEX_CHAIN, type TokenAnalyticsResponse, type TokenAnalyticsTimeframeBuckets, TokenAnalyticsTool, type TokenAnalyticsToolConfig, type TokenApproval, type TokenApprovalSpender, type TokenApprovalToken, type TokenBalance, type TokenDisplay, type TokenHoldersResponse, TokenHoldersTool, type TokenHoldersToolConfig, TokenInfoTool, type TokenInfoToolConfig, type TokenMetadata, type TokenScoreMetrics, type TokenScoreResponse, type TokenScoreSupply, type TokenScoreTimeframeBuckets, TokenScoreTool, type TokenScoreToolConfig, type Tool, type ToolDefinition, type ToolKind, type ToolParameter, ToolRegistry, type ToolResult, type TopGainerTimeFrames, type TopGainerToken, type TopGainersTimeFrame, TopGainersTool, type TopGainersToolConfig, TopPoolsTool, type TopPoolsToolConfig, type TrackStatus, type TrackTransactionParams, type TrackTransactionResult, type TradeErrorCode, type TradingApprovalsStatus, type TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type Transport, type TransportConfig, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, UNRESOLVED_ASSET, UP_OR_DOWN_TAG_ID, type UnsignedTx, type UpDownPrices, type UpDownWindow, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, UserSwapRouter, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, WALLET_DERIVATION, WITHDRAW, type WalletActionProps, type WalletActionType, type WalletApprovalsResponse, WalletApprovalsTool, type WalletApprovalsToolConfig, type WalletDefiPositionSummary, WalletDefiPositionsTool, type WalletDefiPositionsToolConfig, type WalletDefiPositionsV1Response, type WalletDefiProtocolPositionsResponse, WalletDefiProtocolPositionsTool, type WalletDefiProtocolPositionsToolConfig, type WalletDefiProtocolPositionsV1Response, type WalletDefiSummaryResponse, type WalletDefiSummaryV1Response, type WalletDepositOption, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletLendingPositionsTool, type WalletLendingPositionsToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, type WalletNftCardProps, type WalletNftListProps, type WalletNftTransferItem, type WalletNftTransfersResponse, WalletNftTransfersTool, type WalletNftTransfersToolConfig, type WalletPnlDaysWindow, type WalletPnlResponse, type WalletPnlSummaryResponse, WalletPnlSummaryTool, type WalletPnlSummaryToolConfig, type WalletPnlTokenItem, WalletPnlTool, type WalletPnlToolConfig, WalletTokenBalancesTool, type WalletTokenBalancesToolConfig, type WalletTokenTransferItem, type WalletTokenTransfersResponse, WalletTokenTransfersTool, type WalletTokenTransfersToolConfig, type WatchOrderBooksOptions, type WebsiteTrustExtraData, type WebsiteTrustInput, WebsiteTrustKeyringAgent, type WebsiteTrustKeyringAgentConfig, type WebsiteTrustResult, type WithdrawDestination, type WithdrawErrorCode, type WithdrawOptions, type WithdrawQuote, type WithdrawResult, type WithdrawTarget, type X402Authorization, type X402Challenge, type X402Display, type X402Outcome, type X402PaymentRequiredProps, type X402Receipt, type X402RequestSpec, type X402Requirements, type X402SignRequest, type X402Signer, type X402TypedData, type X402Version, type YieldAssetInfo, type YieldConversionCall, type YieldConversionPlan, type YieldPricingOptions, type YieldPricingToken, type YieldTokenInput, type YieldTokenValue, ZERO_ADDRESS, adjustBuyAmountForFees, allInBuyNotional, amazonDomainForLanguage, apiClient, applyMarketEvent, applyYieldConversions, bestPrice, buildApprovalCalls, buildApprovals, buildBuilderSignature, buildChallenge, buildRangePresets, buildUniswapPoolUrl, builderApiKey, buyNotional, buyNotionalAfterFee, call, canDeriveV3PoolAddress, ceil2, chains, checkNativeGasAffordable, checksumAddress, clampTick, classifyTradeError, classifyWithdrawError, clearPublicClientCache, coinpoolConfigApi, compareDecimal, completeX402, configureSupportedChains, configureSwapProvider, convertSusdsShares, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPolymarketSigner, createPoolUniswapAgent, createPredictionAgent, createPublicClient, createTokenAgent, createTransport, createWalletActionAgent, createWalletAgent, createX402SignatureProvider, decodeAbiParameters, decodeErrorResult, decodeFunctionData, decodeFunctionResult, defiLlamaPoolInfoScope, defiLlamaPoolSupportsLabel, deployDepositWallet, depositPriceImpact, deriveBeaconDepositWallet, deriveDepositWallet, deriveSafeWallet, deriveUupsDepositWallet, deriveV3PoolAddress, displayFromChallenge, effectivePriceUSD, encodeAbiParameters, encodeApprove, encodeErrorResult, encodeFunctionData, encodeSignedHeader, erc1155Abi, erc20Abi, erc20Abi_bytes32, erc721Abi, estimateGas, estimateNativeGasReserveWei, estimateTransactionFeeWei, ethCallAt, ethCallByChain, eventHeadline, eventUrl, evmDepositAssets, exactAmountString, extractOutRaw, extractQuoteError, fallback, feePerShare, feeWeiToNative, fetchOnboardingSnapshot, fetchTopMarketplaces, fetchTradingApprovalsStatus, fetchUnderlyingPricesUSD, findWalletDepositOptions, floor2, floorToDecimals, formatDefiLlamaPool, getAbiItem, getAddress, getBalance, getBlock, getBlockNumber, getCashBalance, getCashBalanceBaseUnits, getChain, getChainContractAddress, getChainId, getChainMeta, getCode, getDefaultRpcUrl, getGasPrice, getNativeTokenInfo, getPolymarketBuilderCode, getPublicClient, getRevertReason, getRpcOverrides, getShareBalances, getStorageAt, getTokenPriceUSD, getTransactionCount, http, humanToWei, ingestKnowledgeBase, isAbortError, isAddress, isAddressEqual, isBelowWithdrawMinimum, isEvmAddress, isMarketOpen, isPaymentRequired, isShareBasedProtocol, isShareBasedYieldToken, isSupplyChain, keyringSettingApi, listCandidateChains, listSupplyChains, mapEvent, mapMarket, marketFee, marketProtocol, moneylineMarket, mulDivFloor, multicall, multicall3Abi, multicallRaw, nativeGasShortfall, nfcAmazonSearchUrl, normaliseCountry, normalizeDecimal, normalizeLevels, normalizePriceRangeToPool, normalizeText, onboardingStep, openSecureClient, parseAbi, parseAbiItem, parseAbiParameters, parsePolymarketUrl, parsePredictionHint, pickLogo, placePredictionOrder, planYieldTokenConversions, predictionHint, prepareMarketOrder, priceToTick, protocolLabelFor, psm3For, pusdFromBaseUnits, pusdToBaseUnits, quoteBuyAsPolymarket, quoteBuyUsd, quoteDeposit, quoteMarketOrder, quoteSellShares, quoteWithdrawal, readContract, readPaymentError, readPaymentRequired, readProtocolFeeWei, readReceipt, readSpendableBalance, readTokenUsdPrice, redeemPredictionPositions, registerMaybeNoForm, remoteBuilderSigning, requestWithX402, resolveAccountWallet, resolveCategory, resolveGasLimit, resolveNfcShopLinks, resolveRawYieldAsset, resolveRawYieldIdentity, resolveRawYieldProtocol, resolveRpcUrl, resolveRpcUrls, resolveTokenPriceUSD, roundTickToSpacing, rpcCall, runPolymarketOnboarding, setPolymarketBuilderCode, setRpcOverrides, slippagePrice, spendableNative, swapProviderFactory, swapRouterRegistry, tickToPrice, ticketFee, toBuilderAuthorization, toEventSelector, toFunctionSelector, toPantographChain, toPlainDecimal, unitPriceUSD, upDownWindow, valueYieldTokens, walletDepositAssets, watchCryptoPrice, watchOrderBooks, weiToHuman, withdrawDestinations, withdrawFromPolymarket };