keyring-agent-core 0.2.49 → 0.2.52

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
@@ -5231,6 +5231,14 @@ declare class TransactionByHashTool extends BaseTool {
5231
5231
  }>;
5232
5232
  }
5233
5233
 
5234
+ /** One read in a {@link multicallRead} batch: a target contract + full calldata. */
5235
+ interface MulticallRequest {
5236
+ /** Contract to call. A malformed address yields a `null` result. */
5237
+ target: string;
5238
+ /** Encoded calldata — selector + ABI-encoded args, 0x-prefixed. */
5239
+ callData: string;
5240
+ }
5241
+
5234
5242
  /**
5235
5243
  * One class per USDC lending protocol — everything that differs between Aave,
5236
5244
  * Compound, Spark and Morpho, and nothing that doesn't.
@@ -8593,6 +8601,158 @@ declare function createX402SignatureProvider(opts: {
8593
8601
  getSigner: () => X402Signer | null | undefined;
8594
8602
  }): X402RetryHandler;
8595
8603
 
8604
+ /**
8605
+ * USD valuation for yield-bearing wallet tokens.
8606
+ *
8607
+ * A wallet's token list shows a balance and a price, and normally the USD value
8608
+ * is just the product of the two. For yield-bearing tokens that is wrong often
8609
+ * enough to matter, and the reason splits the tagged tokens into two kinds:
8610
+ *
8611
+ * - **Share-based vaults** (`spark`, `spark-ethereum`, `morpho-v2`) — `balanceOf`
8612
+ * returns ERC-4626 SHARES, while the price the token API quotes belongs to the
8613
+ * vault's UNDERLYING asset. A share is worth more than one unit of underlying
8614
+ * and drifts further up as yield accrues (measured live: 1 steakUSDC = 1.0354
8615
+ * USDC, 1 Spark sUSDC = 1.1051 USDC). The two are not even in the same unit —
8616
+ * shares carry the vault's own decimals, usually 18, against the underlying's
8617
+ * 6 for USDC. `convertToAssets(shares)` answers both problems at once: it
8618
+ * returns the position denominated in exactly what the price describes.
8619
+ *
8620
+ * - **Rebasing tokens** (`aave-v3`, `compound-v3`) — the balance is ALREADY the
8621
+ * underlying (their decimals match it) and yield arrives as a growing
8622
+ * `balanceOf`. Converting these would be a bug, so they are left untouched.
8623
+ *
8624
+ * Which side a token falls on is decided by an explicit allow-list of
8625
+ * share-based protocols, mirroring the wallet app's own `LENDING_PLATFORMS`.
8626
+ * The protocol classes encode the same split as `balanceIsUnderlying`, but that
8627
+ * flag is reached through `protocolFor`, which falls back to an ERC-4626
8628
+ * protocol for types it doesn't recognise — a safe default for listing lending
8629
+ * markets, and the wrong one here, where a mistaken conversion silently
8630
+ * corrupts a balance. An allow-list fails closed instead.
8631
+ *
8632
+ * ## Why this returns calls instead of making them
8633
+ *
8634
+ * Same reasoning as {@link LendingProtocol}: the caller owns the transport. The
8635
+ * wallet app already has its own RPC stack — ranked endpoints, failover, a
8636
+ * Multicall3 batcher, and rate-limit-aware pacing for chains without Multicall3 —
8637
+ * and duplicating it here would mean a second, worse copy. So
8638
+ * {@link planYieldTokenConversions} declares the reads, the caller executes them
8639
+ * however it likes, and {@link applyYieldConversions} folds the answers back in.
8640
+ * Both halves are pure and synchronous, which also makes them trivial to test.
8641
+ */
8642
+
8643
+ /**
8644
+ * Whether a `yieldProtocol` denominates balances in vault SHARES rather than the
8645
+ * underlying asset.
8646
+ *
8647
+ * Exported so callers can explain a decision — logging why a tagged token was
8648
+ * skipped, say — without keeping their own copy of the list, which would drift.
8649
+ * This answers only the protocol question: use {@link isShareBasedYieldToken}
8650
+ * for whether a specific token is actually convertible, since that also needs a
8651
+ * price and the underlying's decimals.
8652
+ */
8653
+ declare function isShareBasedProtocol(yieldProtocol?: string | null): yieldProtocol is string;
8654
+ /**
8655
+ * A wallet token as the caller already knows it. Field names mirror what the
8656
+ * Keyring/Pantograph token API returns, so a caller can pass its rows nearly
8657
+ * as-is.
8658
+ */
8659
+ interface YieldTokenInput {
8660
+ /** Caller's own identifier, echoed back untouched so results can be re-joined. */
8661
+ key: string;
8662
+ /** The token contract — the vault itself for a share-based position. */
8663
+ address: string;
8664
+ /** Raw on-chain balance, unscaled. */
8665
+ rawBalance: bigint;
8666
+ /** The token's own decimals (vault share decimals, usually 18). */
8667
+ decimals: number;
8668
+ /**
8669
+ * Price quoted by the token API — for a vault, the UNDERLYING's price.
8670
+ * Missing, zero or non-finite disables conversion for this token; see
8671
+ * {@link isShareBasedYieldToken}.
8672
+ */
8673
+ priceUSD: number;
8674
+ /** `yieldProtocol` from the token API; anything untagged is left alone. */
8675
+ yieldProtocol?: string | null;
8676
+ /** `yieldAsset` from the token API. Present only for share-based vaults. */
8677
+ yieldAsset?: {
8678
+ address?: string;
8679
+ decimals?: number;
8680
+ } | null;
8681
+ }
8682
+ /** One declared `convertToAssets` read, tagged with the token it belongs to. */
8683
+ interface YieldConversionCall extends MulticallRequest {
8684
+ /** {@link YieldTokenInput.key} of the token this call resolves. */
8685
+ key: string;
8686
+ }
8687
+ /** What {@link planYieldTokenConversions} worked out, ready to execute. */
8688
+ interface YieldConversionPlan {
8689
+ /** Reads to perform, in order. Empty when nothing needs converting. */
8690
+ calls: YieldConversionCall[];
8691
+ }
8692
+ /** A token's corrected valuation. */
8693
+ interface YieldTokenValue {
8694
+ /** Position size in UNDERLYING units (e.g. USDC), not shares. */
8695
+ underlyingAmount: number;
8696
+ /** `underlyingAmount × priceUSD`. */
8697
+ valueUSD: number;
8698
+ /**
8699
+ * Value per SHARE — `valueUSD / balanceFormatted`.
8700
+ *
8701
+ * Worth storing alongside the total: it keeps a row's displayed unit price
8702
+ * consistent with its total, and lets a later balance-only refresh recompute
8703
+ * `balance × price` correctly without re-reading the chain.
8704
+ */
8705
+ pricePerTokenUSD: number;
8706
+ /** True when an on-chain conversion produced this. See {@link applyYieldConversions}. */
8707
+ converted: boolean;
8708
+ }
8709
+ /**
8710
+ * True when a token's balance is ERC-4626 shares that must be converted.
8711
+ *
8712
+ * These are the same three conditions the wallet app (`coinpool-v2`) gates its
8713
+ * own portfolio conversion on, in the same order:
8714
+ *
8715
+ * 1. a known share-based protocol — its `LENDING_PLATFORMS` allow-list. Note
8716
+ * this is deliberately stricter than {@link protocolFor} alone, which falls
8717
+ * back to an ERC-4626 protocol for unrecognised types: the right default when
8718
+ * listing lending markets, but not here, where guessing wrong silently
8719
+ * corrupts a balance. Rebasing receipts (`aave-v3`, `compound-v3`) are
8720
+ * already underlying and are excluded by the list, exactly as they are there.
8721
+ * 2. `yieldAsset.decimals`, the scale the returned assets must be read at —
8722
+ * without it the result is an unscaled integer, not an amount;
8723
+ * 3. a usable `priceUSD` (finite and > 0). The conversion's whole purpose is to
8724
+ * produce a USD value, and with no price there is none to produce — the
8725
+ * read would cost an RPC call to compute `x × 0`. Worse, reporting a
8726
+ * converted price of 0 would overwrite the caller's own last-known-price
8727
+ * fallback, turning a priced row into a valueless one that dust filters then
8728
+ * hide. Leaving it untouched keeps whatever the caller already had.
8729
+ *
8730
+ * Anything failing these — rebasing, untagged, unpriced, or incompletely
8731
+ * described — is passed through on its existing `balance × price`.
8732
+ */
8733
+ declare function isShareBasedYieldToken(token: YieldTokenInput): boolean;
8734
+ /**
8735
+ * Declare the `convertToAssets` reads needed to value `tokens` correctly.
8736
+ *
8737
+ * Only share-based holdings with a non-zero balance produce a call, so a wallet
8738
+ * holding no vault tokens plans nothing and costs no RPC.
8739
+ */
8740
+ declare function planYieldTokenConversions(tokens: YieldTokenInput[]): YieldConversionPlan;
8741
+ /**
8742
+ * Fold executed conversion results back into per-token valuations.
8743
+ *
8744
+ * `returns` must align with {@link YieldConversionPlan.calls} — entry `i` is the
8745
+ * raw return data of call `i`, or `null` if that read failed. The returned map is
8746
+ * keyed by {@link YieldTokenInput.key} and contains an entry for every input
8747
+ * token, converted or not, so the caller can apply it uniformly.
8748
+ *
8749
+ * A failed or undecodable read is never destructive: that token falls back to
8750
+ * `balance × price` — the value it would have had anyway — and is reported with
8751
+ * `converted: false`, so a flaky RPC understates a position at worst instead of
8752
+ * zeroing it.
8753
+ */
8754
+ declare function applyYieldConversions(tokens: YieldTokenInput[], plan: YieldConversionPlan, returns: Array<string | null>): Map<string, YieldTokenValue>;
8755
+
8596
8756
  /**
8597
8757
  * PantographService — Pantograph API client.
8598
8758
  *
@@ -8992,4 +9152,4 @@ declare class AbortError extends Error {
8992
9152
  */
8993
9153
  declare function isAbortError(err: unknown): boolean;
8994
9154
 
8995
- export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, type ApyPoint, BaseNftAiTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, type ChainMeta, type ChainRef, type ChainSelector, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type ConfirmAddLiquidityTxProps, type CortexResponse, DEFAULT_CHAIN, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DebridgeAdapter, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type HolderChangePeriod, type HolderSupplyTier, type HttpMethod, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, type LendingMarket, type LendingMarketOverview, LendingMarketsTool, type LendingMarketsToolConfig, type LendingProtocolType, LendingService, type LendingServiceConfig, type LendingSupplyPosition, ManageLiquidityRedirectTool, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, 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 NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftTransferLastSale, NoFormTool, type NoFormToolMessages, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, OpenSupplyFormTool, type OpenSupplyFormToolConfig, POOL_AGENT_TOOL_NAMES, PantographService, type PantographServiceConfig, type PaymentToken, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProviderName, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, 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 SupplyProtocolType, type SupplyUsdcProps, type SupportedChainId, type SupportedChainName, type SwapQuoteParams, type SwapQuoteResult, type SwapServiceConfig, SwapServiceFactory, type SwapTokenConfirmTxProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, 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 TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, type UnsignedTx, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, 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 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 WebsiteTrustExtraData, type WebsiteTrustInput, WebsiteTrustKeyringAgent, type WebsiteTrustKeyringAgentConfig, type WebsiteTrustResult, type X402Authorization, type X402Challenge, type X402Display, type X402Outcome, type X402PaymentRequiredProps, type X402Receipt, type X402RequestSpec, type X402Requirements, type X402SignRequest, type X402Signer, type X402TypedData, type X402Version, ZERO_ADDRESS, amazonDomainForLanguage, apiClient, buildChallenge, buildRangePresets, buildUniswapPoolUrl, clampTick, completeX402, configureSupportedChains, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletAgent, createX402SignatureProvider, displayFromChallenge, encodeSignedHeader, ethCallAt, ethCallByChain, fetchTopMarketplaces, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, isPaymentRequired, nfcAmazonSearchUrl, normaliseCountry, normalizePriceRangeToPool, priceToTick, readPaymentError, readPaymentRequired, readReceipt, registerMaybeNoForm, requestWithX402, resolveNfcShopLinks, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };
9155
+ export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, type ApyPoint, BaseNftAiTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, type ChainMeta, type ChainRef, type ChainSelector, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type ConfirmAddLiquidityTxProps, type CortexResponse, DEFAULT_CHAIN, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DebridgeAdapter, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type HolderChangePeriod, type HolderSupplyTier, type HttpMethod, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, type LendingMarket, type LendingMarketOverview, LendingMarketsTool, type LendingMarketsToolConfig, type LendingProtocolType, LendingService, type LendingServiceConfig, type LendingSupplyPosition, ManageLiquidityRedirectTool, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, 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 NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftTransferLastSale, NoFormTool, type NoFormToolMessages, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, OpenSupplyFormTool, type OpenSupplyFormToolConfig, POOL_AGENT_TOOL_NAMES, PantographService, type PantographServiceConfig, type PaymentToken, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProviderName, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, 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 SupplyProtocolType, type SupplyUsdcProps, type SupportedChainId, type SupportedChainName, type SwapQuoteParams, type SwapQuoteResult, type SwapServiceConfig, SwapServiceFactory, type SwapTokenConfirmTxProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, 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 TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, type UnsignedTx, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, 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 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 WebsiteTrustExtraData, type WebsiteTrustInput, WebsiteTrustKeyringAgent, type WebsiteTrustKeyringAgentConfig, type WebsiteTrustResult, 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 YieldConversionCall, type YieldConversionPlan, type YieldTokenInput, type YieldTokenValue, ZERO_ADDRESS, amazonDomainForLanguage, apiClient, applyYieldConversions, buildChallenge, buildRangePresets, buildUniswapPoolUrl, clampTick, completeX402, configureSupportedChains, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletAgent, createX402SignatureProvider, displayFromChallenge, encodeSignedHeader, ethCallAt, ethCallByChain, fetchTopMarketplaces, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, isPaymentRequired, isShareBasedProtocol, isShareBasedYieldToken, nfcAmazonSearchUrl, normaliseCountry, normalizePriceRangeToPool, planYieldTokenConversions, priceToTick, readPaymentError, readPaymentRequired, readReceipt, registerMaybeNoForm, requestWithX402, resolveNfcShopLinks, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };