keyring-agent-core 0.2.60 → 0.2.62

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
@@ -692,6 +692,70 @@ interface WalletNftListProps {
692
692
  */
693
693
  mode?: 'browse' | 'picker';
694
694
  }
695
+ /** One market row in the {@link LendingMarketListProps} shortlist. */
696
+ interface LendingMarketCardProps {
697
+ /** Display name of the market, e.g. "Aave v3 USDC". */
698
+ name: string;
699
+ /** Protocol brand, e.g. "Aave v3" — shown as the card's secondary line. */
700
+ protocol: string;
701
+ /**
702
+ * This market's own page on the protocol, as a full URL. Null when unknown —
703
+ * the card then renders the name as plain text rather than a link. Never
704
+ * fabricated FE-side.
705
+ */
706
+ protocolUrl: string | null;
707
+ /** Human-readable chain name, e.g. "Base". */
708
+ chain: string;
709
+ /**
710
+ * Live supply APY as a PERCENT (4.82 = 4.82%) — the total a supplier earns,
711
+ * already rounded for display. Null when the rate was unavailable, which the
712
+ * card shows as "—" rather than as 0.
713
+ */
714
+ apyPercent: number | null;
715
+ /**
716
+ * The message submitted as the next user turn when this card's "More detail"
717
+ * button is tapped. Carries the market's exact contract address, so the
718
+ * follow-up turn resolves to this one market rather than fuzzy-matching its
719
+ * name against sibling vaults of the same protocol.
720
+ */
721
+ detailPrompt: string;
722
+ /** Localized label for the detail button — just "More detail", no market name. */
723
+ detailLabel: string;
724
+ /**
725
+ * The message submitted when the card's "Supply" button is tapped, carrying
726
+ * the same exact-address hint as {@link detailPrompt}.
727
+ *
728
+ * Empty when this market cannot be supplied to — either the FE has no deposit
729
+ * encoding for its protocol family, or no prompt could be built. The card then
730
+ * renders the detail button alone rather than a Supply button that would fail
731
+ * at signing, after the user had already approved the asset to it.
732
+ */
733
+ supplyPrompt: string;
734
+ /** Localized label for the supply button, e.g. "Nạp vào Aave v3 USDC". */
735
+ supplyLabel: string;
736
+ }
737
+ /** Props for the `LendingMarketList` component — the market shortlist to display. */
738
+ interface LendingMarketListProps {
739
+ /**
740
+ * Chain the list was SCOPED to, or `'all'` when no scope was applied. This
741
+ * describes the request, not the result — see {@link multiChain} for what the
742
+ * cards actually contain.
743
+ */
744
+ chain: string;
745
+ /**
746
+ * Whether the markets in this list span MORE THAN ONE chain, which is the only
747
+ * case where a card needs to name its own chain.
748
+ *
749
+ * Sent as its own flag rather than inferred from `chain === 'all'`, because
750
+ * those two are not the same question and diverge in practice: an unscoped
751
+ * request whose markets all happen to land on one chain is `'all'` but is not
752
+ * multi-chain, and would otherwise print the same redundant chain on every
753
+ * card. The core computes this from the markets it is actually returning.
754
+ */
755
+ multiChain: boolean;
756
+ /** The markets to render, in ranked order. */
757
+ markets: LendingMarketCardProps[];
758
+ }
695
759
  /** Identifies a chain in BE↔FE payloads. */
696
760
  interface ChainRef {
697
761
  /** Hex chain id, e.g. "0x2105" for Base */
@@ -5624,7 +5688,11 @@ interface LendingMarketOverview extends LendingMarket {
5624
5688
  rewardApyPercent: number | null;
5625
5689
  /** Each reward programme on its own, empty when there are none. */
5626
5690
  rewards: ApyReward[];
5627
- /** Live APY minus the previous day's, in percentage points. */
5691
+ /**
5692
+ * Live base APY minus the published rate closest to 24h ago, in percentage
5693
+ * points. Interest only at both ends — {@link rewardApyPercent} is excluded,
5694
+ * since reward history is not published and counting it would read as a spike.
5695
+ */
5628
5696
  apyChangePercent: number | null;
5629
5697
  /** Daily APY samples, oldest first, last entry = today's live rate. */
5630
5698
  apyHistory: ApyPoint[];
@@ -6267,16 +6335,44 @@ type SortKey = 'apy' | 'score' | 'size';
6267
6335
  /**
6268
6336
  * Tool: get-lending-markets
6269
6337
  *
6270
- * The lending markets a user CAN supply to — the catalogue side of the
6271
- * lending domain, as opposed to `get-wallet-lending-positions` which reports
6272
- * what a wallet already supplies. Each market carries its size, the protocol's
6273
- * live supply APY — the rate the list is ranked on, and the one a depositor is
6274
- * quoted today — and the average over the last week as a stability check on it.
6338
+ * The lending markets a user CAN supply to — the catalogue side of the lending
6339
+ * domain, as opposed to `get-wallet-lending-positions` which reports what a
6340
+ * wallet already supplies.
6341
+ *
6342
+ * ## What this returns, and what it deliberately does not
6343
+ *
6344
+ * A row per market: its NAME (linked to its page on the protocol) and its LIVE
6345
+ * supply APY, which is also the default ranking and the rate a depositor is
6346
+ * quoted today. That is all. The size, the weekly average, the day-over-day
6347
+ * change, the reward split and the platform score are NOT in this payload —
6348
+ * they belong to `get-lending-market-detail`, which the per-market "More detail"
6349
+ * button routes to.
6350
+ *
6351
+ * The reason is the shape of the decision, not brevity for its own sake. A list
6352
+ * is scanned to narrow a field; a market is judged one at a time. Putting six
6353
+ * figures on every row makes the scan harder AND the judgement worse — a reader
6354
+ * comparing five reward-split footnotes at once absorbs none of them. So the
6355
+ * list carries the one number that orders it, and the second step carries
6356
+ * everything needed to commit.
6357
+ *
6358
+ * Each card carries TWO buttons: "More detail", which opens the figures above,
6359
+ * and "Supply", which starts a deposit straight from the list.
6360
+ *
6361
+ * The Supply button is a deliberate trade-off, made by the product owner and
6362
+ * worth stating plainly: it lets a user act on a market having seen only its
6363
+ * rate, not its size, its score, or whether that headline APY depends on reward
6364
+ * conditions a plain deposit will not meet. What makes it acceptable is that the
6365
+ * button does not move money — it opens the amount form, which runs its own
6366
+ * balance and encoding checks and still requires the user to type an amount and
6367
+ * sign. `canSupply` additionally suppresses the button on any market the FE
6368
+ * cannot encode a deposit for, so it never appears where it would fail at
6369
+ * signing. See {@link file://./marketButtons.ts} for both button kinds.
6275
6370
  *
6276
6371
  * See {@link file://../../../services/LendingService.ts} for the data sources.
6277
6372
  */
6278
6373
  declare class LendingMarketsTool extends BaseTool {
6279
6374
  name: string;
6375
+ kind: ToolKind;
6280
6376
  description: string;
6281
6377
  category: string;
6282
6378
  parameters: ToolParameter[];
@@ -6288,13 +6384,13 @@ declare class LendingMarketsTool extends BaseTool {
6288
6384
  protocolSupported: boolean;
6289
6385
  supportedProtocols: string[];
6290
6386
  marketCount: number;
6291
- markets: never[];
6387
+ marketNames: never[];
6292
6388
  } | {
6293
6389
  _instructions: string;
6294
6390
  chain: string;
6295
6391
  connectedChainHasNoMarkets: boolean;
6296
6392
  marketCount: number;
6297
- markets: never[];
6393
+ marketNames: never[];
6298
6394
  chainsWithLendingMarkets: string[];
6299
6395
  requestedProtocol?: undefined;
6300
6396
  protocolsAvailable?: undefined;
@@ -6303,7 +6399,7 @@ declare class LendingMarketsTool extends BaseTool {
6303
6399
  requestedProtocol: string;
6304
6400
  chain: string;
6305
6401
  marketCount: number;
6306
- markets: never[];
6402
+ marketNames: never[];
6307
6403
  protocolsAvailable: string[];
6308
6404
  connectedChainHasNoMarkets?: undefined;
6309
6405
  chainsWithLendingMarkets?: undefined;
@@ -6311,36 +6407,12 @@ declare class LendingMarketsTool extends BaseTool {
6311
6407
  sortedBy: SortKey;
6312
6408
  marketCount: number;
6313
6409
  totalMarketsAvailable: number;
6314
- markets: {
6315
- apyChangePercent: number | null;
6316
- totalSuppliedUsdc: number | null;
6317
- /**
6318
- * What `totalSuppliedUsdc` is denominated in. Almost always USDC, but a
6319
- * market on another asset reports its own — so the formatting rule below
6320
- * can say "dollars" only when this actually is a dollar stablecoin.
6321
- */
6322
- suppliedAssetSymbol: string | null;
6323
- platformScore: number | null;
6324
- currentApyPercent: number | null;
6325
- baseApyPercent: number | null;
6326
- rewardApyPercent: number | null;
6327
- rewards: {
6328
- apyPercent: number;
6329
- tokenSymbol: string | null;
6330
- conditions: string | null;
6331
- }[];
6332
- marketName: string;
6333
- protocol: string;
6334
- protocolUrl: string | null;
6335
- chain: string;
6336
- avgApyPercent: number | null;
6337
- avgApyDays: number;
6338
- }[];
6410
+ marketNames: string[];
6339
6411
  protocolFilter?: string | undefined;
6412
+ _instructions: string;
6340
6413
  chain: string;
6341
6414
  chainsQueried: string[];
6342
- actionButtons?: SuggestedAction[] | undefined;
6343
- _instructions: string;
6415
+ ui?: UIPayload<LendingMarketListProps> | undefined;
6344
6416
  connectedChainHasNoMarkets?: undefined;
6345
6417
  chainsWithLendingMarkets?: undefined;
6346
6418
  requestedProtocol?: undefined;
@@ -6361,6 +6433,118 @@ declare class LendingMarketsTool extends BaseTool {
6361
6433
  private instructions;
6362
6434
  }
6363
6435
 
6436
+ type LendingMarketDetailToolConfig = LendingServiceConfig;
6437
+ /**
6438
+ * Tool: get-lending-market-detail
6439
+ *
6440
+ * Everything about ONE lending market — the second half of the browse flow whose
6441
+ * first half is `get-lending-markets`.
6442
+ *
6443
+ * ## Why the split exists
6444
+ *
6445
+ * The list answers "what is out there" and carries one number per market, the
6446
+ * live APY it is ranked on. This answers "is this one worth it", and carries the
6447
+ * figures that question actually turns on: how big the market is, whether the
6448
+ * live rate is a spike against its recent average, how much of that rate is
6449
+ * reward incentives rather than interest, whether those incentives come with
6450
+ * conditions a plain deposit will not meet, and the platform's 0–10 score.
6451
+ *
6452
+ * Those figures are also why the SUPPLY button lives here and not on the list.
6453
+ * A deposit made off a single ranked number is a deposit made without knowing
6454
+ * any of the above; offering the action only once they are on screen is the
6455
+ * point of the two steps, not a side effect of them. See
6456
+ * {@link file://./marketButtons.ts}.
6457
+ *
6458
+ * ## What this is not
6459
+ *
6460
+ * It does NOT open the supply form, move funds or need a wallet — it reads and
6461
+ * describes. The button it emits re-enters the agent as a supply command, which
6462
+ * `open-supply-usdc-form` then handles with its own balance and encoding checks.
6463
+ *
6464
+ * See {@link file://../../../services/LendingService.ts} for the data sources.
6465
+ */
6466
+ declare class LendingMarketDetailTool extends BaseTool {
6467
+ name: string;
6468
+ category: string;
6469
+ description: string;
6470
+ parameters: ToolParameter[];
6471
+ private service;
6472
+ constructor(config?: LendingMarketDetailToolConfig);
6473
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<{
6474
+ error: string;
6475
+ _instructions: string;
6476
+ chain?: undefined;
6477
+ chainsWithLendingMarkets?: undefined;
6478
+ market?: undefined;
6479
+ candidates?: undefined;
6480
+ marketName?: undefined;
6481
+ } | {
6482
+ error: string;
6483
+ chain: string;
6484
+ chainsWithLendingMarkets: string[];
6485
+ _instructions: string;
6486
+ market?: undefined;
6487
+ candidates?: undefined;
6488
+ marketName?: undefined;
6489
+ } | {
6490
+ error: string;
6491
+ market: string;
6492
+ chain: string;
6493
+ _instructions: string;
6494
+ chainsWithLendingMarkets?: undefined;
6495
+ candidates?: undefined;
6496
+ marketName?: undefined;
6497
+ } | {
6498
+ error: string;
6499
+ market: string;
6500
+ chain: string;
6501
+ candidates: {
6502
+ marketName: string;
6503
+ protocol: string;
6504
+ }[];
6505
+ _instructions: string;
6506
+ chainsWithLendingMarkets?: undefined;
6507
+ marketName?: undefined;
6508
+ } | {
6509
+ error: string;
6510
+ marketName: string;
6511
+ chain: string;
6512
+ _instructions: string;
6513
+ chainsWithLendingMarkets?: undefined;
6514
+ market?: undefined;
6515
+ candidates?: undefined;
6516
+ } | {
6517
+ avgApyPercent: number | null;
6518
+ apyChangePercent: number | null;
6519
+ platformScore: number | null;
6520
+ supplySupported: boolean;
6521
+ currentApyPercent: number | null;
6522
+ baseApyPercent: number | null;
6523
+ rewardApyPercent: number | null;
6524
+ rewards: {
6525
+ apyPercent: number;
6526
+ tokenSymbol: string | null;
6527
+ conditions: string | null;
6528
+ }[];
6529
+ marketName: string;
6530
+ protocol: string;
6531
+ protocolUrl: string | null;
6532
+ chain: string;
6533
+ suppliedAssetSymbol: string | null;
6534
+ totalSuppliedUsdc: number | null;
6535
+ actionButtons?: SuggestedAction[] | undefined;
6536
+ _instructions: string;
6537
+ error?: undefined;
6538
+ chainsWithLendingMarkets?: undefined;
6539
+ market?: undefined;
6540
+ candidates?: undefined;
6541
+ }>;
6542
+ /** Size + live APY for the one resolved market. Null when it can't be described. */
6543
+ private describeOne;
6544
+ /** Presentation contract for the synthesizer — one market, described in full. */
6545
+ private instructions;
6546
+ }
6547
+
6364
6548
  type WalletLendingPositionsToolConfig = LendingServiceConfig;
6365
6549
  /**
6366
6550
  * Tool: get-wallet-lending-positions
@@ -11642,4 +11826,4 @@ declare class AbortError extends Error {
11642
11826
  */
11643
11827
  declare function isAbortError(err: unknown): boolean;
11644
11828
 
11645
- export { AI_AGENT_TOOL_NAMES, type Abi, type AbiItem, type AbiParameter, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type Address, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, type ApyPoint, BaseNftAiTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BlockParameters, type BlockTag, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, 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 ConfirmAddLiquidityTxProps, type ContractFunctionParameters, 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, type EIP1193RequestFn, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type Hex, 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, LendingReadService, LendingService, type LendingServiceConfig, type LendingSupplyPosition, LendingSupplyService, MULTICALL3_ADDRESS, ManageLiquidityRedirectTool, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, type MulticallParameters, type MulticallRawParameters, type MulticallResult, 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, PublicClient, type PublicClientConfig, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, type ReadContractParameters, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SUPPLIABLE_TYPES, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, 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 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 Transport, type TransportConfig, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, UNRESOLVED_ASSET, 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 YieldPricingOptions, type YieldPricingToken, type YieldTokenInput, type YieldTokenValue, ZERO_ADDRESS, amazonDomainForLanguage, apiClient, applyYieldConversions, buildChallenge, buildRangePresets, buildUniswapPoolUrl, call, chains, checksumAddress, clampTick, clearPublicClientCache, completeX402, configureSupportedChains, convertSusdsShares, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createPublicClient, createTokenAgent, createTransport, createWalletActionAgent, createWalletAgent, createX402SignatureProvider, decodeAbiParameters, decodeErrorResult, decodeFunctionData, decodeFunctionResult, displayFromChallenge, encodeAbiParameters, encodeErrorResult, encodeFunctionData, encodeSignedHeader, erc1155Abi, erc20Abi, erc20Abi_bytes32, erc721Abi, estimateGas, ethCallAt, ethCallByChain, fallback, fetchTopMarketplaces, getAbiItem, getAddress, getAffiliateFee, getBalance, getBlock, getBlockNumber, getChain, getChainContractAddress, getChainId, getChainMeta, getCode, getDefaultRpcUrl, getGasPrice, getGatewayAddress, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, getPublicClient, getRevertReason, getRpcOverrides, getStorageAt, getTokenPriceUSD, getTransactionCount, http, ingestKnowledgeBase, isAbortError, isAddress, isAddressEqual, isPaymentRequired, isShareBasedProtocol, isShareBasedYieldToken, isSupplyChain, listCandidateChains, listSupplyChains, multicall, multicall3Abi, multicallRaw, nfcAmazonSearchUrl, normaliseCountry, normalizePriceRangeToPool, parseAbi, parseAbiItem, parseAbiParameters, planYieldTokenConversions, priceToTick, protocolLabelFor, psm3For, readContract, readPaymentError, readPaymentRequired, readReceipt, registerMaybeNoForm, requestWithX402, resolveNfcShopLinks, resolveRpcUrl, resolveRpcUrls, resolveTokenPriceUSD, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toEventSelector, toFunctionSelector, toPantographChain, valueYieldTokens };
11829
+ export { AI_AGENT_TOOL_NAMES, type Abi, type AbiItem, type AbiParameter, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type Address, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, type ApyPoint, BaseNftAiTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BlockParameters, type BlockTag, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, 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 ConfirmAddLiquidityTxProps, type ContractFunctionParameters, 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, type EIP1193RequestFn, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type Hex, 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 LendingMarketCardProps, LendingMarketDetailTool, type LendingMarketDetailToolConfig, type LendingMarketListProps, type LendingMarketOverview, LendingMarketsTool, type LendingMarketsToolConfig, type LendingProtocolType, LendingReadService, LendingService, type LendingServiceConfig, type LendingSupplyPosition, LendingSupplyService, MULTICALL3_ADDRESS, ManageLiquidityRedirectTool, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, type MulticallParameters, type MulticallRawParameters, type MulticallResult, 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, PublicClient, type PublicClientConfig, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, type ReadContractParameters, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SUPPLIABLE_TYPES, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, 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 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 Transport, type TransportConfig, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, UNRESOLVED_ASSET, 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 YieldPricingOptions, type YieldPricingToken, type YieldTokenInput, type YieldTokenValue, ZERO_ADDRESS, amazonDomainForLanguage, apiClient, applyYieldConversions, buildChallenge, buildRangePresets, buildUniswapPoolUrl, call, chains, checksumAddress, clampTick, clearPublicClientCache, completeX402, configureSupportedChains, convertSusdsShares, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createPublicClient, createTokenAgent, createTransport, createWalletActionAgent, createWalletAgent, createX402SignatureProvider, decodeAbiParameters, decodeErrorResult, decodeFunctionData, decodeFunctionResult, displayFromChallenge, encodeAbiParameters, encodeErrorResult, encodeFunctionData, encodeSignedHeader, erc1155Abi, erc20Abi, erc20Abi_bytes32, erc721Abi, estimateGas, ethCallAt, ethCallByChain, fallback, fetchTopMarketplaces, getAbiItem, getAddress, getAffiliateFee, getBalance, getBlock, getBlockNumber, getChain, getChainContractAddress, getChainId, getChainMeta, getCode, getDefaultRpcUrl, getGasPrice, getGatewayAddress, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, getPublicClient, getRevertReason, getRpcOverrides, getStorageAt, getTokenPriceUSD, getTransactionCount, http, ingestKnowledgeBase, isAbortError, isAddress, isAddressEqual, isPaymentRequired, isShareBasedProtocol, isShareBasedYieldToken, isSupplyChain, listCandidateChains, listSupplyChains, multicall, multicall3Abi, multicallRaw, nfcAmazonSearchUrl, normaliseCountry, normalizePriceRangeToPool, parseAbi, parseAbiItem, parseAbiParameters, planYieldTokenConversions, priceToTick, protocolLabelFor, psm3For, readContract, readPaymentError, readPaymentRequired, readReceipt, registerMaybeNoForm, requestWithX402, resolveNfcShopLinks, resolveRpcUrl, resolveRpcUrls, resolveTokenPriceUSD, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toEventSelector, toFunctionSelector, toPantographChain, valueYieldTokens };