keyring-agent-core 0.2.34 → 0.2.36
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 +147 -603
- package/dist/index.js +118 -109
- package/dist/index.native.js +200 -191
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -234,6 +234,8 @@ declare function getProviderByChain(chainId: number | string, isProduction: bool
|
|
|
234
234
|
declare function getAffiliateFee(provider: ProviderName, chainId: number | string): Promise<AffiliateFee | null>;
|
|
235
235
|
|
|
236
236
|
declare function getGatewayAddress(chainId: string, isProduction: boolean): Promise<string | undefined>;
|
|
237
|
+
/** Decimal chain ids that have an add-liquidity gateway (`createPoolProxyV3`) configured. */
|
|
238
|
+
declare function getGatewayChains(isProduction: boolean): Promise<string[]>;
|
|
237
239
|
declare function getPositionManagerAddress(chainId: string, isProduction: boolean): Promise<string | undefined>;
|
|
238
240
|
|
|
239
241
|
declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
@@ -331,8 +333,38 @@ declare class PoolService {
|
|
|
331
333
|
private swapFactory;
|
|
332
334
|
private isProduction;
|
|
333
335
|
constructor(config?: PoolServiceConfig);
|
|
336
|
+
/**
|
|
337
|
+
* True when this service has on-chain pool support (RPC + gateway config) for
|
|
338
|
+
* `chain`. The core's global supported-chain set is a superset — some chains
|
|
339
|
+
* (e.g. Gnosis) are supported for wallet/token data but have NO liquidity-pool
|
|
340
|
+
* coverage here. Add-liquidity tools call this after resolving the chain so
|
|
341
|
+
* they can tell the user pools aren't available there.
|
|
342
|
+
*/
|
|
343
|
+
isSupported(chain?: string | null): boolean;
|
|
344
|
+
/** Canonical hex ids of every chain this service supports pools on (active set only). */
|
|
345
|
+
listSupportedChains(): string[];
|
|
334
346
|
getRpcUrl(chainId: string): string;
|
|
335
347
|
getGatewayAddress(chainId: string): Promise<string | undefined>;
|
|
348
|
+
/**
|
|
349
|
+
* True when `chain` supports the ADD-LIQUIDITY flow. This is a SEPARATE, smaller
|
|
350
|
+
* set than {@link isSupported} (pool INFO/data): a chain can have full pool data
|
|
351
|
+
* yet no add-liquidity support. Add-liquidity needs BOTH (a) on-chain meta + RPC
|
|
352
|
+
* (the chain is in this service's registry) AND (b) a gateway (`createPoolProxyV3`)
|
|
353
|
+
* contract returned by the addresses API. Used by the data tools to decide whether
|
|
354
|
+
* to render an "Add liquidity" button, and by the add-liquidity tools to gate the
|
|
355
|
+
* flow — so we never offer/attempt an add that dead-ends on `no_gateway_configured`.
|
|
356
|
+
*/
|
|
357
|
+
isAddLiquiditySupported(chainId: string): Promise<boolean>;
|
|
358
|
+
/**
|
|
359
|
+
* Canonical hex ids of every chain the ADD-LIQUIDITY flow currently supports:
|
|
360
|
+
* chains that have a gateway configured in the addresses API AND on-chain meta
|
|
361
|
+
* here (so the tx can actually be built). This is the authoritative list for the
|
|
362
|
+
* add-liquidity not-supported message and chain picker — never the broader pool
|
|
363
|
+
* INFO set ({@link listSupportedChains}). Falls back to the info set if the
|
|
364
|
+
* addresses config can't be loaded (network failure), so the message is never
|
|
365
|
+
* empty; in normal operation it reflects exactly what the API returns.
|
|
366
|
+
*/
|
|
367
|
+
listAddLiquiditySupportedChains(): Promise<string[]>;
|
|
336
368
|
getPositionManagerAddress(chainId: string): Promise<string | undefined>;
|
|
337
369
|
/** Generic eth_call helper. `data` is the encoded calldata (with selector). */
|
|
338
370
|
ethCall(chainId: string, to: string, data: string): Promise<string>;
|
|
@@ -476,11 +508,11 @@ declare class PoolService {
|
|
|
476
508
|
* immutable CATALOG; the ACTIVE set may be narrowed at runtime via
|
|
477
509
|
* {@link configureSupportedChains} and can only ever be a subset of this.
|
|
478
510
|
*/
|
|
479
|
-
declare const SUPPORTED_CHAINS: readonly ["0x1", "0xa", "0x38", "0x89", "0x2105", "0xa4b1", "0xa86a", "0xe708"];
|
|
511
|
+
declare const SUPPORTED_CHAINS: readonly ["0x1", "0xa", "0x38", "0x89", "0x2105", "0xa4b1", "0xa86a", "0xe708", "0x64", "0x3e7", "0x1388", "0x8f"];
|
|
480
512
|
/** Canonical hex id of a built-in chain (the immutable catalog), e.g. "0x2105". */
|
|
481
513
|
type SupportedChainId = (typeof SUPPORTED_CHAINS)[number];
|
|
482
514
|
/** Human-readable name of a built-in chain — the other accepted selector form. */
|
|
483
|
-
type SupportedChainName = 'ethereum' | 'optimism' | 'bsc' | 'polygon' | 'base' | 'arbitrum' | 'avalanche' | 'linea';
|
|
515
|
+
type SupportedChainName = 'ethereum' | 'optimism' | 'bsc' | 'polygon' | 'base' | 'arbitrum' | 'avalanche' | 'linea' | 'gnosis' | 'hyperevm' | 'mantle' | 'monad';
|
|
484
516
|
/**
|
|
485
517
|
* Any identifier accepted where a built-in chain must be named (e.g.
|
|
486
518
|
* {@link configureSupportedChains} / `AgentConfig.excludeChains`): the canonical
|
|
@@ -1034,6 +1066,14 @@ interface UserContext {
|
|
|
1034
1066
|
walletAddress?: string | null;
|
|
1035
1067
|
/** Current chain the wallet is on (e.g. "ethereum", "arbitrum", "base"). */
|
|
1036
1068
|
chain?: string | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* ISO 3166-1 alpha-2 country of the user's device region (e.g. "VN", "JP",
|
|
1071
|
+
* "US"), provided by the UI when the user consents to share their region. Used
|
|
1072
|
+
* to pick the largest local shopping marketplaces (e.g. for "where to buy an
|
|
1073
|
+
* NFC tag"). Omitted/empty when the user declined — tools then fall back to the
|
|
1074
|
+
* language-based link.
|
|
1075
|
+
*/
|
|
1076
|
+
country?: string | null;
|
|
1037
1077
|
/**
|
|
1038
1078
|
* The raw user query for this turn (verbatim phrasing). Tools that need to
|
|
1039
1079
|
* disambiguate LLM-extracted args against what the user actually typed read it
|
|
@@ -3829,24 +3869,24 @@ declare class TrendingTokensTool extends BaseTool {
|
|
|
3829
3869
|
constructor(config?: TrendingTokensToolConfig);
|
|
3830
3870
|
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<{
|
|
3831
3871
|
error: string;
|
|
3872
|
+
_instructions?: undefined;
|
|
3873
|
+
chain?: undefined;
|
|
3874
|
+
count?: undefined;
|
|
3875
|
+
tokens?: undefined;
|
|
3832
3876
|
} | {
|
|
3833
|
-
actionButtons?: SuggestedAction[] | undefined;
|
|
3834
3877
|
_instructions: string;
|
|
3835
3878
|
chain: string;
|
|
3836
3879
|
count: number;
|
|
3837
3880
|
tokens: TrendingToken[];
|
|
3838
3881
|
error?: undefined;
|
|
3839
3882
|
}>;
|
|
3840
|
-
execute(args: Record<string, unknown>, userContext?: UserContext): Promise<ToolResult>;
|
|
3841
|
-
/** Substitute the {token} placeholder in an LLM-supplied localized template. */
|
|
3842
|
-
private fillTemplate;
|
|
3843
3883
|
}
|
|
3844
3884
|
|
|
3845
3885
|
type TopGainersToolConfig = MoralisServiceConfig;
|
|
3846
3886
|
/**
|
|
3847
3887
|
* Tool: get-top-gainers
|
|
3848
3888
|
*
|
|
3849
|
-
* Queries Pantograph's `GET /token-list/top-gainers
|
|
3889
|
+
* Queries Pantograph's `GET /token-list/all/top-gainers?chainId=…&duration=…` — the
|
|
3850
3890
|
* tokens with the largest USD price increase over a chosen window. Single-chain
|
|
3851
3891
|
* (Pantograph has no cross-chain feed); defaults to the connected chain, then
|
|
3852
3892
|
* Ethereum. Returns the canonical trending-token shape: price, market cap, 24h
|
|
@@ -4900,16 +4940,19 @@ declare class NfcInfoTool extends BaseTool {
|
|
|
4900
4940
|
category: string;
|
|
4901
4941
|
description: string;
|
|
4902
4942
|
parameters: ToolParameter[];
|
|
4903
|
-
|
|
4943
|
+
private llm?;
|
|
4944
|
+
constructor(llmConfig?: LLMProviderConfig);
|
|
4945
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<unknown>;
|
|
4904
4946
|
}
|
|
4905
4947
|
|
|
4906
4948
|
/**
|
|
4907
4949
|
* Tool: nfc-buy-link
|
|
4908
4950
|
*
|
|
4909
|
-
* Points the user to
|
|
4910
|
-
*
|
|
4911
|
-
*
|
|
4912
|
-
*
|
|
4951
|
+
* Points the user to where to buy an NFC tag. When the UI has shared the user's
|
|
4952
|
+
* device country (UserContext.country), it returns the LARGEST e-commerce
|
|
4953
|
+
* platforms of that country (up to 3) with a pre-built "NFC Tag" search — one
|
|
4954
|
+
* tap lands on the products. With no country it falls back to a language-based
|
|
4955
|
+
* Amazon storefront. The subagent passes the current turn's BCP-47 `language`.
|
|
4913
4956
|
*/
|
|
4914
4957
|
declare class NfcBuyTool extends BaseTool {
|
|
4915
4958
|
kind: ToolKind;
|
|
@@ -4918,7 +4961,9 @@ declare class NfcBuyTool extends BaseTool {
|
|
|
4918
4961
|
noSuggestions: boolean;
|
|
4919
4962
|
description: string;
|
|
4920
4963
|
parameters: ToolParameter[];
|
|
4921
|
-
|
|
4964
|
+
private llm?;
|
|
4965
|
+
constructor(llmConfig?: LLMProviderConfig);
|
|
4966
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<unknown>;
|
|
4922
4967
|
}
|
|
4923
4968
|
|
|
4924
4969
|
/**
|
|
@@ -4946,6 +4991,42 @@ declare function amazonDomainForLanguage(language?: string | null): string;
|
|
|
4946
4991
|
*/
|
|
4947
4992
|
declare function nfcAmazonSearchUrl(language?: string | null): string;
|
|
4948
4993
|
|
|
4994
|
+
/**
|
|
4995
|
+
* Shared types/helpers for the NFC "where to buy" links.
|
|
4996
|
+
*
|
|
4997
|
+
* The actual list of a country's largest e-commerce platforms is NOT hardcoded
|
|
4998
|
+
* here — it is fetched at runtime from a Google-Search-grounded AI model (see
|
|
4999
|
+
* {@link ./marketplaceSearch}). This module only holds the link shape and the
|
|
5000
|
+
* country-code normaliser that both the fetcher and the Amazon fallback share.
|
|
5001
|
+
*/
|
|
5002
|
+
/** One marketplace the user can tap to buy NFC tags. */
|
|
5003
|
+
interface MarketplaceLink {
|
|
5004
|
+
/** Human brand name shown in the answer (e.g. "Shopee", "Amazon"). */
|
|
5005
|
+
label: string;
|
|
5006
|
+
/** Final, query-encoded "NFC Tag" search URL for that storefront. */
|
|
5007
|
+
url: string;
|
|
5008
|
+
}
|
|
5009
|
+
/** Normalise a country code (or BCP-47-ish region) to its uppercase alpha-2. */
|
|
5010
|
+
declare function normaliseCountry(country?: string | null): string;
|
|
5011
|
+
|
|
5012
|
+
/**
|
|
5013
|
+
* The top marketplaces for a country, fetched via the search-grounded model and
|
|
5014
|
+
* cached. Returns `null` when the country is unknown, no model is available, or
|
|
5015
|
+
* the model gives nothing usable — callers then fall back.
|
|
5016
|
+
*/
|
|
5017
|
+
declare function fetchTopMarketplaces(country: string | null | undefined, llm: GeminiProvider | undefined): Promise<MarketplaceLink[] | null>;
|
|
5018
|
+
/**
|
|
5019
|
+
* Single source of truth for the NFC "where to buy" links, used by both NFC
|
|
5020
|
+
* tools. Prefers the country's largest local marketplaces (resolved live by the
|
|
5021
|
+
* AI); otherwise falls back to the language-based Amazon storefront so behaviour
|
|
5022
|
+
* is unchanged when no region/model is available or the lookup fails.
|
|
5023
|
+
*/
|
|
5024
|
+
declare function resolveNfcShopLinks(opts: {
|
|
5025
|
+
country?: string | null;
|
|
5026
|
+
language?: string | null;
|
|
5027
|
+
llm?: GeminiProvider;
|
|
5028
|
+
}): Promise<MarketplaceLink[]>;
|
|
5029
|
+
|
|
4949
5030
|
type GeminiSearchAiToolConfig = LLMProviderConfig;
|
|
4950
5031
|
/**
|
|
4951
5032
|
* Tool: gemini-search-ai
|
|
@@ -5036,7 +5117,7 @@ interface SubgraphServiceConfig {
|
|
|
5036
5117
|
/** Override a subgraph URL by chain hex id. */
|
|
5037
5118
|
subgraphUrls?: Record<string, string>;
|
|
5038
5119
|
}
|
|
5039
|
-
interface CoinPoolPairSummary
|
|
5120
|
+
interface CoinPoolPairSummary {
|
|
5040
5121
|
poolId: string;
|
|
5041
5122
|
pair: string;
|
|
5042
5123
|
fee: string;
|
|
@@ -5054,7 +5135,10 @@ interface CoinPoolPairSummary$1 {
|
|
|
5054
5135
|
}
|
|
5055
5136
|
type SubgraphSort = 'tvl' | 'volume' | 'apr' | 'fee' | 'liquidity';
|
|
5056
5137
|
|
|
5057
|
-
type TopPoolsToolConfig = UniswapServiceConfig
|
|
5138
|
+
type TopPoolsToolConfig = UniswapServiceConfig & {
|
|
5139
|
+
/** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
|
|
5140
|
+
isProduction?: boolean;
|
|
5141
|
+
};
|
|
5058
5142
|
/**
|
|
5059
5143
|
* Tool: get-top-pools
|
|
5060
5144
|
*
|
|
@@ -5077,53 +5161,10 @@ declare class TopPoolsTool extends BaseTool {
|
|
|
5077
5161
|
* Uniswap-only; it never sees a subgraph tool.
|
|
5078
5162
|
*/
|
|
5079
5163
|
private subgraphFallback;
|
|
5164
|
+
/** Used ONLY to check add-liquidity (gateway) support per chain — see {@link PoolService.isAddLiquiditySupported}. */
|
|
5165
|
+
private pool;
|
|
5080
5166
|
constructor(config?: TopPoolsToolConfig, subgraphConfig?: SubgraphServiceConfig);
|
|
5081
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<
|
|
5082
|
-
error: string;
|
|
5083
|
-
} | {
|
|
5084
|
-
actionButtons?: SuggestedAction[] | undefined;
|
|
5085
|
-
_instructions: string;
|
|
5086
|
-
chain: string;
|
|
5087
|
-
protocolVersion: UniswapProtocolVersion;
|
|
5088
|
-
sortBy: "tvl" | "volume1Day" | "volume1Week" | "volume30Day" | "txCount" | "apr";
|
|
5089
|
-
source: "uniswap" | "subgraph";
|
|
5090
|
-
count: number;
|
|
5091
|
-
pools: {
|
|
5092
|
-
uniswapUrl?: string;
|
|
5093
|
-
apr: number | undefined;
|
|
5094
|
-
address: string;
|
|
5095
|
-
chain: string | undefined;
|
|
5096
|
-
protocolVersion: UniswapProtocolVersion | undefined;
|
|
5097
|
-
feeTierBps: number | undefined;
|
|
5098
|
-
feeTierPercent: number | undefined;
|
|
5099
|
-
tvlUsd: number | undefined;
|
|
5100
|
-
fee24hUsd: number | undefined;
|
|
5101
|
-
volume1DayUsd: number | undefined;
|
|
5102
|
-
volume1WeekUsd: number | undefined;
|
|
5103
|
-
volume30DayUsd: number | undefined;
|
|
5104
|
-
txCount: number | undefined;
|
|
5105
|
-
token0: {
|
|
5106
|
-
address: string | undefined;
|
|
5107
|
-
symbol: string | undefined;
|
|
5108
|
-
name: string | undefined;
|
|
5109
|
-
decimals: number | undefined;
|
|
5110
|
-
priceUsd: number | undefined;
|
|
5111
|
-
isSpam: boolean | undefined;
|
|
5112
|
-
safetyLevel: string | undefined;
|
|
5113
|
-
} | undefined;
|
|
5114
|
-
token1: {
|
|
5115
|
-
address: string | undefined;
|
|
5116
|
-
symbol: string | undefined;
|
|
5117
|
-
name: string | undefined;
|
|
5118
|
-
decimals: number | undefined;
|
|
5119
|
-
priceUsd: number | undefined;
|
|
5120
|
-
isSpam: boolean | undefined;
|
|
5121
|
-
safetyLevel: string | undefined;
|
|
5122
|
-
} | undefined;
|
|
5123
|
-
volumeToTvlRatio?: number;
|
|
5124
|
-
}[];
|
|
5125
|
-
error?: undefined;
|
|
5126
|
-
}>;
|
|
5167
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
|
|
5127
5168
|
/**
|
|
5128
5169
|
* Attach deterministic expert signals so the analysis is grounded in real
|
|
5129
5170
|
* numbers rather than the LLM's arithmetic. `volumeToTvlRatio` (24h volume ÷
|
|
@@ -5160,26 +5201,11 @@ interface CoinPoolServiceConfig {
|
|
|
5160
5201
|
/** Base URL of the CoinPool API. Defaults to `https://api.coinpool.app`. */
|
|
5161
5202
|
coinPoolBaseUrl?: string;
|
|
5162
5203
|
}
|
|
5163
|
-
/** A single concentrated-liquidity price-range candidate from CoinPool. */
|
|
5164
|
-
interface CoinPoolPairSummary {
|
|
5165
|
-
poolId: string;
|
|
5166
|
-
pair: string;
|
|
5167
|
-
fee: string;
|
|
5168
|
-
/** APR earned ONLY within this specific price range (not the overall pool APR). */
|
|
5169
|
-
apr: number | null;
|
|
5170
|
-
aprAvg: number | null;
|
|
5171
|
-
token0Price: number;
|
|
5172
|
-
token1Price: number;
|
|
5173
|
-
priceRange: {
|
|
5174
|
-
minPrice: number;
|
|
5175
|
-
maxPrice: number;
|
|
5176
|
-
currentPrice: number;
|
|
5177
|
-
baseToken: string;
|
|
5178
|
-
quoteToken: string;
|
|
5179
|
-
};
|
|
5180
|
-
}
|
|
5181
5204
|
|
|
5182
|
-
type PoolDetailToolConfig = UniswapServiceConfig
|
|
5205
|
+
type PoolDetailToolConfig = UniswapServiceConfig & {
|
|
5206
|
+
/** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
|
|
5207
|
+
isProduction?: boolean;
|
|
5208
|
+
};
|
|
5183
5209
|
/**
|
|
5184
5210
|
* Tool: get-pool-detail
|
|
5185
5211
|
*
|
|
@@ -5207,152 +5233,10 @@ declare class PoolDetailTool extends BaseTool {
|
|
|
5207
5233
|
* user having to ask separately.
|
|
5208
5234
|
*/
|
|
5209
5235
|
private coinPool;
|
|
5236
|
+
/** Used ONLY to check add-liquidity (gateway) support per chain. */
|
|
5237
|
+
private pool;
|
|
5210
5238
|
constructor(config?: PoolDetailToolConfig, coinPoolConfig?: CoinPoolServiceConfig);
|
|
5211
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<
|
|
5212
|
-
error: string;
|
|
5213
|
-
priceRanges?: undefined;
|
|
5214
|
-
_instructions?: undefined;
|
|
5215
|
-
pairOrderMatched?: undefined;
|
|
5216
|
-
pool?: undefined;
|
|
5217
|
-
chain?: undefined;
|
|
5218
|
-
multiFeeTier?: undefined;
|
|
5219
|
-
count?: undefined;
|
|
5220
|
-
pools?: undefined;
|
|
5221
|
-
reason?: undefined;
|
|
5222
|
-
missing?: undefined;
|
|
5223
|
-
candidates?: undefined;
|
|
5224
|
-
} | {
|
|
5225
|
-
priceRanges: CoinPoolPairSummary[];
|
|
5226
|
-
_instructions: string;
|
|
5227
|
-
pairOrderMatched: string;
|
|
5228
|
-
pool: {
|
|
5229
|
-
uniswapUrl?: string;
|
|
5230
|
-
address: string | undefined;
|
|
5231
|
-
protocolVersion: UniswapProtocolVersion | undefined;
|
|
5232
|
-
feeTierBps: number | undefined;
|
|
5233
|
-
feeTierPercent: number | undefined;
|
|
5234
|
-
tvlUsd: number | undefined;
|
|
5235
|
-
tvlChange24hPercent: number | undefined;
|
|
5236
|
-
volume24hUsd: number | undefined;
|
|
5237
|
-
fees24hUsd: number | undefined;
|
|
5238
|
-
aprPercent: number | undefined;
|
|
5239
|
-
volumeToTvlRatio: number | undefined;
|
|
5240
|
-
txCount: number | undefined;
|
|
5241
|
-
historicalVolumeWeek: {
|
|
5242
|
-
timestamp: number | undefined;
|
|
5243
|
-
volumeUsd: number | undefined;
|
|
5244
|
-
}[] | undefined;
|
|
5245
|
-
token0: {
|
|
5246
|
-
address: string | undefined;
|
|
5247
|
-
symbol: string | undefined;
|
|
5248
|
-
name: string | undefined;
|
|
5249
|
-
decimals: number | undefined;
|
|
5250
|
-
priceUsd: number | undefined;
|
|
5251
|
-
reserve: number | undefined;
|
|
5252
|
-
isSpam: boolean | undefined;
|
|
5253
|
-
safetyLevel: string | undefined;
|
|
5254
|
-
} | undefined;
|
|
5255
|
-
token1: {
|
|
5256
|
-
address: string | undefined;
|
|
5257
|
-
symbol: string | undefined;
|
|
5258
|
-
name: string | undefined;
|
|
5259
|
-
decimals: number | undefined;
|
|
5260
|
-
priceUsd: number | undefined;
|
|
5261
|
-
reserve: number | undefined;
|
|
5262
|
-
isSpam: boolean | undefined;
|
|
5263
|
-
safetyLevel: string | undefined;
|
|
5264
|
-
} | undefined;
|
|
5265
|
-
};
|
|
5266
|
-
error?: undefined;
|
|
5267
|
-
chain?: undefined;
|
|
5268
|
-
multiFeeTier?: undefined;
|
|
5269
|
-
count?: undefined;
|
|
5270
|
-
pools?: undefined;
|
|
5271
|
-
reason?: undefined;
|
|
5272
|
-
missing?: undefined;
|
|
5273
|
-
candidates?: undefined;
|
|
5274
|
-
} | {
|
|
5275
|
-
_instructions: string;
|
|
5276
|
-
chain: string;
|
|
5277
|
-
pairOrderMatched: string;
|
|
5278
|
-
multiFeeTier: boolean;
|
|
5279
|
-
count: number;
|
|
5280
|
-
pools: {
|
|
5281
|
-
uniswapUrl?: string;
|
|
5282
|
-
address: string | undefined;
|
|
5283
|
-
protocolVersion: UniswapProtocolVersion | undefined;
|
|
5284
|
-
feeTierBps: number | undefined;
|
|
5285
|
-
feeTierPercent: number | undefined;
|
|
5286
|
-
tvlUsd: number | undefined;
|
|
5287
|
-
tvlChange24hPercent: number | undefined;
|
|
5288
|
-
volume24hUsd: number | undefined;
|
|
5289
|
-
fees24hUsd: number | undefined;
|
|
5290
|
-
aprPercent: number | undefined;
|
|
5291
|
-
volumeToTvlRatio: number | undefined;
|
|
5292
|
-
txCount: number | undefined;
|
|
5293
|
-
historicalVolumeWeek: {
|
|
5294
|
-
timestamp: number | undefined;
|
|
5295
|
-
volumeUsd: number | undefined;
|
|
5296
|
-
}[] | undefined;
|
|
5297
|
-
token0: {
|
|
5298
|
-
address: string | undefined;
|
|
5299
|
-
symbol: string | undefined;
|
|
5300
|
-
name: string | undefined;
|
|
5301
|
-
decimals: number | undefined;
|
|
5302
|
-
priceUsd: number | undefined;
|
|
5303
|
-
reserve: number | undefined;
|
|
5304
|
-
isSpam: boolean | undefined;
|
|
5305
|
-
safetyLevel: string | undefined;
|
|
5306
|
-
} | undefined;
|
|
5307
|
-
token1: {
|
|
5308
|
-
address: string | undefined;
|
|
5309
|
-
symbol: string | undefined;
|
|
5310
|
-
name: string | undefined;
|
|
5311
|
-
decimals: number | undefined;
|
|
5312
|
-
priceUsd: number | undefined;
|
|
5313
|
-
reserve: number | undefined;
|
|
5314
|
-
isSpam: boolean | undefined;
|
|
5315
|
-
safetyLevel: string | undefined;
|
|
5316
|
-
} | undefined;
|
|
5317
|
-
}[];
|
|
5318
|
-
error?: undefined;
|
|
5319
|
-
priceRanges?: undefined;
|
|
5320
|
-
pool?: undefined;
|
|
5321
|
-
reason?: undefined;
|
|
5322
|
-
missing?: undefined;
|
|
5323
|
-
candidates?: undefined;
|
|
5324
|
-
} | {
|
|
5325
|
-
_instructions: string;
|
|
5326
|
-
chain: string;
|
|
5327
|
-
pairOrderMatched: string;
|
|
5328
|
-
reason: string;
|
|
5329
|
-
missing: string[];
|
|
5330
|
-
candidates: {
|
|
5331
|
-
uniswapUrl?: string;
|
|
5332
|
-
address: string | undefined;
|
|
5333
|
-
protocolVersion: UniswapProtocolVersion | undefined;
|
|
5334
|
-
feeTierBps: number | undefined;
|
|
5335
|
-
feeTierPercent: number | undefined;
|
|
5336
|
-
volume24hUsd: number | undefined;
|
|
5337
|
-
pair: string | undefined;
|
|
5338
|
-
token0: {
|
|
5339
|
-
symbol: string | undefined;
|
|
5340
|
-
name: string | undefined;
|
|
5341
|
-
address: string | undefined;
|
|
5342
|
-
} | undefined;
|
|
5343
|
-
token1: {
|
|
5344
|
-
symbol: string | undefined;
|
|
5345
|
-
name: string | undefined;
|
|
5346
|
-
address: string | undefined;
|
|
5347
|
-
} | undefined;
|
|
5348
|
-
}[];
|
|
5349
|
-
error?: undefined;
|
|
5350
|
-
priceRanges?: undefined;
|
|
5351
|
-
pool?: undefined;
|
|
5352
|
-
multiFeeTier?: undefined;
|
|
5353
|
-
count?: undefined;
|
|
5354
|
-
pools?: undefined;
|
|
5355
|
-
}>;
|
|
5239
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
|
|
5356
5240
|
/**
|
|
5357
5241
|
* Filter predicate. `mode` controls pair-order matching when both symbols
|
|
5358
5242
|
* are given:
|
|
@@ -5382,8 +5266,10 @@ declare class PoolDetailTool extends BaseTool {
|
|
|
5382
5266
|
private formatHistorical;
|
|
5383
5267
|
}
|
|
5384
5268
|
|
|
5385
|
-
type PoolSearchToolConfig = UniswapServiceConfig
|
|
5386
|
-
|
|
5269
|
+
type PoolSearchToolConfig = UniswapServiceConfig & {
|
|
5270
|
+
/** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
|
|
5271
|
+
isProduction?: boolean;
|
|
5272
|
+
};
|
|
5387
5273
|
/**
|
|
5388
5274
|
* Tool: search-pools
|
|
5389
5275
|
*
|
|
@@ -5398,30 +5284,18 @@ declare class PoolSearchTool extends BaseTool {
|
|
|
5398
5284
|
category: string;
|
|
5399
5285
|
parameters: ToolParameter[];
|
|
5400
5286
|
private service;
|
|
5287
|
+
/** Used ONLY to check add-liquidity (gateway) support per chain. */
|
|
5288
|
+
private pool;
|
|
5401
5289
|
constructor(config?: PoolSearchToolConfig);
|
|
5402
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<
|
|
5403
|
-
error: string;
|
|
5404
|
-
} | {
|
|
5405
|
-
actionButtons?: SuggestedAction[] | undefined;
|
|
5406
|
-
_instructions: string;
|
|
5407
|
-
query: string;
|
|
5408
|
-
chain: string;
|
|
5409
|
-
protocolVersion: ProtocolVersionFilter;
|
|
5410
|
-
feeTierBps: number | undefined;
|
|
5411
|
-
feeTierPercent: number | undefined;
|
|
5412
|
-
page: number;
|
|
5413
|
-
size: number;
|
|
5414
|
-
count: number;
|
|
5415
|
-
pools: {
|
|
5416
|
-
uniswapUrl?: string;
|
|
5417
|
-
}[];
|
|
5418
|
-
error?: undefined;
|
|
5419
|
-
}>;
|
|
5290
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
|
|
5420
5291
|
private parseProtocolFilter;
|
|
5421
5292
|
private formatPool;
|
|
5422
5293
|
}
|
|
5423
5294
|
|
|
5424
|
-
type PoolByAddressToolConfig = UniswapServiceConfig
|
|
5295
|
+
type PoolByAddressToolConfig = UniswapServiceConfig & {
|
|
5296
|
+
/** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
|
|
5297
|
+
isProduction?: boolean;
|
|
5298
|
+
};
|
|
5425
5299
|
/**
|
|
5426
5300
|
* Tool: lookup-pool-by-address
|
|
5427
5301
|
*
|
|
@@ -5441,15 +5315,13 @@ declare class PoolByAddressTool extends BaseTool {
|
|
|
5441
5315
|
category: string;
|
|
5442
5316
|
parameters: ToolParameter[];
|
|
5443
5317
|
private service;
|
|
5318
|
+
/** Used ONLY to check add-liquidity (gateway) support per chain. */
|
|
5319
|
+
private pool;
|
|
5444
5320
|
constructor(config?: PoolByAddressToolConfig);
|
|
5445
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<{
|
|
5321
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown> | {
|
|
5446
5322
|
error: string;
|
|
5447
|
-
_instructions?: undefined;
|
|
5448
|
-
resolvedAs?: undefined;
|
|
5449
|
-
chain?: undefined;
|
|
5450
|
-
protocolVersion?: undefined;
|
|
5451
|
-
pool?: undefined;
|
|
5452
5323
|
} | {
|
|
5324
|
+
actionButtons?: SuggestedAction[] | undefined;
|
|
5453
5325
|
_instructions: string;
|
|
5454
5326
|
resolvedAs: string;
|
|
5455
5327
|
chain: string;
|
|
@@ -5498,15 +5370,7 @@ declare class PoolByAddressTool extends BaseTool {
|
|
|
5498
5370
|
};
|
|
5499
5371
|
error?: undefined;
|
|
5500
5372
|
} | {
|
|
5501
|
-
|
|
5502
|
-
_instructions?: undefined;
|
|
5503
|
-
resolvedAs?: undefined;
|
|
5504
|
-
chain?: undefined;
|
|
5505
|
-
protocolVersion?: undefined;
|
|
5506
|
-
token?: undefined;
|
|
5507
|
-
poolCount?: undefined;
|
|
5508
|
-
pools?: undefined;
|
|
5509
|
-
} | {
|
|
5373
|
+
actionButtons?: SuggestedAction[] | undefined;
|
|
5510
5374
|
_instructions: string;
|
|
5511
5375
|
resolvedAs: string;
|
|
5512
5376
|
chain: string;
|
|
@@ -5591,88 +5455,7 @@ declare class OpenAddLiquidityFormTool extends BaseTool {
|
|
|
5591
5455
|
* ToolResult envelope (BaseTool only copies `data`).
|
|
5592
5456
|
*/
|
|
5593
5457
|
execute(args: Record<string, unknown>, userContext?: UserContext): Promise<ToolResult>;
|
|
5594
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<
|
|
5595
|
-
error: string;
|
|
5596
|
-
_instructions: string;
|
|
5597
|
-
chain?: undefined;
|
|
5598
|
-
requestedToken?: undefined;
|
|
5599
|
-
nativeSymbol?: undefined;
|
|
5600
|
-
chainName?: undefined;
|
|
5601
|
-
ui?: undefined;
|
|
5602
|
-
suggestedRanges?: undefined;
|
|
5603
|
-
summary?: undefined;
|
|
5604
|
-
} | {
|
|
5605
|
-
error: string;
|
|
5606
|
-
chain: string;
|
|
5607
|
-
_instructions: string;
|
|
5608
|
-
requestedToken?: undefined;
|
|
5609
|
-
nativeSymbol?: undefined;
|
|
5610
|
-
chainName?: undefined;
|
|
5611
|
-
ui?: undefined;
|
|
5612
|
-
suggestedRanges?: undefined;
|
|
5613
|
-
summary?: undefined;
|
|
5614
|
-
} | {
|
|
5615
|
-
error: string;
|
|
5616
|
-
requestedToken: string;
|
|
5617
|
-
nativeSymbol: string;
|
|
5618
|
-
chainName: string;
|
|
5619
|
-
_instructions: string;
|
|
5620
|
-
chain?: undefined;
|
|
5621
|
-
ui?: undefined;
|
|
5622
|
-
suggestedRanges?: undefined;
|
|
5623
|
-
summary?: undefined;
|
|
5624
|
-
} | {
|
|
5625
|
-
error: string;
|
|
5626
|
-
_instructions?: undefined;
|
|
5627
|
-
chain?: undefined;
|
|
5628
|
-
requestedToken?: undefined;
|
|
5629
|
-
nativeSymbol?: undefined;
|
|
5630
|
-
chainName?: undefined;
|
|
5631
|
-
ui?: undefined;
|
|
5632
|
-
suggestedRanges?: undefined;
|
|
5633
|
-
summary?: undefined;
|
|
5634
|
-
} | {
|
|
5635
|
-
_instructions: string;
|
|
5636
|
-
actionButtons?: SuggestedAction[] | undefined;
|
|
5637
|
-
relatedPools: {
|
|
5638
|
-
apr?: number | undefined;
|
|
5639
|
-
volumeToTvlRatio?: number | undefined;
|
|
5640
|
-
address: string | undefined;
|
|
5641
|
-
token0Symbol: string | undefined;
|
|
5642
|
-
token1Symbol: string | undefined;
|
|
5643
|
-
feeTier: number | undefined;
|
|
5644
|
-
feeTierPercent: number | undefined;
|
|
5645
|
-
volume24hUsd: number | undefined;
|
|
5646
|
-
tvlUsd: number | undefined;
|
|
5647
|
-
}[];
|
|
5648
|
-
count: number;
|
|
5649
|
-
error?: undefined;
|
|
5650
|
-
chain?: undefined;
|
|
5651
|
-
requestedToken?: undefined;
|
|
5652
|
-
nativeSymbol?: undefined;
|
|
5653
|
-
chainName?: undefined;
|
|
5654
|
-
ui?: undefined;
|
|
5655
|
-
suggestedRanges?: undefined;
|
|
5656
|
-
summary?: undefined;
|
|
5657
|
-
} | {
|
|
5658
|
-
ui: UIPayload<AddLiquidityFormProps>;
|
|
5659
|
-
suggestedRanges: {
|
|
5660
|
-
fee: string;
|
|
5661
|
-
apr: number | null;
|
|
5662
|
-
minPrice: number;
|
|
5663
|
-
maxPrice: number;
|
|
5664
|
-
currentPrice: number;
|
|
5665
|
-
baseSymbol?: string;
|
|
5666
|
-
quoteSymbol?: string;
|
|
5667
|
-
}[];
|
|
5668
|
-
summary: string;
|
|
5669
|
-
_instructions: string;
|
|
5670
|
-
error?: undefined;
|
|
5671
|
-
chain?: undefined;
|
|
5672
|
-
requestedToken?: undefined;
|
|
5673
|
-
nativeSymbol?: undefined;
|
|
5674
|
-
chainName?: undefined;
|
|
5675
|
-
}>;
|
|
5458
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
|
|
5676
5459
|
/**
|
|
5677
5460
|
* Best-effort CoinPool in-range price-range candidates for the resolved pool,
|
|
5678
5461
|
* offered to the user as a reference when filling the form's range inputs.
|
|
@@ -5754,142 +5537,10 @@ declare class PreviewAddLiquidityTool extends BaseTool {
|
|
|
5754
5537
|
constructor(config?: PreviewAddLiquidityToolConfig);
|
|
5755
5538
|
/** Forward `ui` from run() into the ToolResult envelope. */
|
|
5756
5539
|
execute(args: Record<string, unknown>, userContext?: UserContext): Promise<ToolResult>;
|
|
5757
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<
|
|
5758
|
-
error: string;
|
|
5759
|
-
_instructions: string;
|
|
5760
|
-
chain?: undefined;
|
|
5761
|
-
rawTickLower?: undefined;
|
|
5762
|
-
rawTickUpper?: undefined;
|
|
5763
|
-
tickLower?: undefined;
|
|
5764
|
-
tickUpper?: undefined;
|
|
5765
|
-
currentPrice?: undefined;
|
|
5766
|
-
requestedRange?: undefined;
|
|
5767
|
-
side?: undefined;
|
|
5768
|
-
balanceWei?: undefined;
|
|
5769
|
-
requiredWei?: undefined;
|
|
5770
|
-
gasReserveWei?: undefined;
|
|
5771
|
-
ui?: undefined;
|
|
5772
|
-
summary?: undefined;
|
|
5773
|
-
} | {
|
|
5774
|
-
error: string;
|
|
5775
|
-
chain: string;
|
|
5776
|
-
_instructions?: undefined;
|
|
5777
|
-
rawTickLower?: undefined;
|
|
5778
|
-
rawTickUpper?: undefined;
|
|
5779
|
-
tickLower?: undefined;
|
|
5780
|
-
tickUpper?: undefined;
|
|
5781
|
-
currentPrice?: undefined;
|
|
5782
|
-
requestedRange?: undefined;
|
|
5783
|
-
side?: undefined;
|
|
5784
|
-
balanceWei?: undefined;
|
|
5785
|
-
requiredWei?: undefined;
|
|
5786
|
-
gasReserveWei?: undefined;
|
|
5787
|
-
ui?: undefined;
|
|
5788
|
-
summary?: undefined;
|
|
5789
|
-
} | {
|
|
5790
|
-
error: string;
|
|
5791
|
-
_instructions?: undefined;
|
|
5792
|
-
chain?: undefined;
|
|
5793
|
-
rawTickLower?: undefined;
|
|
5794
|
-
rawTickUpper?: undefined;
|
|
5795
|
-
tickLower?: undefined;
|
|
5796
|
-
tickUpper?: undefined;
|
|
5797
|
-
currentPrice?: undefined;
|
|
5798
|
-
requestedRange?: undefined;
|
|
5799
|
-
side?: undefined;
|
|
5800
|
-
balanceWei?: undefined;
|
|
5801
|
-
requiredWei?: undefined;
|
|
5802
|
-
gasReserveWei?: undefined;
|
|
5803
|
-
ui?: undefined;
|
|
5804
|
-
summary?: undefined;
|
|
5805
|
-
} | {
|
|
5806
|
-
error: string;
|
|
5807
|
-
_instructions: string;
|
|
5808
|
-
rawTickLower: number;
|
|
5809
|
-
rawTickUpper: number;
|
|
5810
|
-
tickLower: number;
|
|
5811
|
-
tickUpper: number;
|
|
5812
|
-
chain?: undefined;
|
|
5813
|
-
currentPrice?: undefined;
|
|
5814
|
-
requestedRange?: undefined;
|
|
5815
|
-
side?: undefined;
|
|
5816
|
-
balanceWei?: undefined;
|
|
5817
|
-
requiredWei?: undefined;
|
|
5818
|
-
gasReserveWei?: undefined;
|
|
5819
|
-
ui?: undefined;
|
|
5820
|
-
summary?: undefined;
|
|
5821
|
-
} | {
|
|
5822
|
-
error: string;
|
|
5823
|
-
_instructions: string;
|
|
5824
|
-
currentPrice: number;
|
|
5825
|
-
requestedRange: {
|
|
5826
|
-
minPrice: number;
|
|
5827
|
-
maxPrice: number;
|
|
5828
|
-
};
|
|
5829
|
-
side: string;
|
|
5830
|
-
chain?: undefined;
|
|
5831
|
-
rawTickLower?: undefined;
|
|
5832
|
-
rawTickUpper?: undefined;
|
|
5833
|
-
tickLower?: undefined;
|
|
5834
|
-
tickUpper?: undefined;
|
|
5835
|
-
balanceWei?: undefined;
|
|
5836
|
-
requiredWei?: undefined;
|
|
5837
|
-
gasReserveWei?: undefined;
|
|
5838
|
-
ui?: undefined;
|
|
5839
|
-
summary?: undefined;
|
|
5840
|
-
} | {
|
|
5841
|
-
error: string;
|
|
5842
|
-
_instructions: string;
|
|
5843
|
-
balanceWei: string;
|
|
5844
|
-
requiredWei: string;
|
|
5845
|
-
gasReserveWei: string;
|
|
5846
|
-
chain?: undefined;
|
|
5847
|
-
rawTickLower?: undefined;
|
|
5848
|
-
rawTickUpper?: undefined;
|
|
5849
|
-
tickLower?: undefined;
|
|
5850
|
-
tickUpper?: undefined;
|
|
5851
|
-
currentPrice?: undefined;
|
|
5852
|
-
requestedRange?: undefined;
|
|
5853
|
-
side?: undefined;
|
|
5854
|
-
ui?: undefined;
|
|
5855
|
-
summary?: undefined;
|
|
5856
|
-
} | {
|
|
5857
|
-
ui: UIPayload<ConfirmAddLiquidityTxProps>;
|
|
5858
|
-
summary: string;
|
|
5859
|
-
_instructions: string;
|
|
5860
|
-
error?: undefined;
|
|
5861
|
-
chain?: undefined;
|
|
5862
|
-
rawTickLower?: undefined;
|
|
5863
|
-
rawTickUpper?: undefined;
|
|
5864
|
-
tickLower?: undefined;
|
|
5865
|
-
tickUpper?: undefined;
|
|
5866
|
-
currentPrice?: undefined;
|
|
5867
|
-
requestedRange?: undefined;
|
|
5868
|
-
side?: undefined;
|
|
5869
|
-
balanceWei?: undefined;
|
|
5870
|
-
requiredWei?: undefined;
|
|
5871
|
-
gasReserveWei?: undefined;
|
|
5872
|
-
}>;
|
|
5540
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
|
|
5873
5541
|
}
|
|
5874
5542
|
|
|
5875
5543
|
type EstimatePoolYieldToolConfig = UniswapServiceConfig;
|
|
5876
|
-
/**
|
|
5877
|
-
* Yield formula (matches Uniswap UI's "estimated APR"):
|
|
5878
|
-
* fees24h = volume24h × feeTier_decimal
|
|
5879
|
-
* APR = (fees24h / TVL) × 365
|
|
5880
|
-
* yield = deposit × APR / period
|
|
5881
|
-
*
|
|
5882
|
-
* Note: assumes full-range liquidity. Concentrated positions earn more when in
|
|
5883
|
-
* range, zero when out of range. Does not account for impermanent loss.
|
|
5884
|
-
*/
|
|
5885
|
-
interface YieldEstimate {
|
|
5886
|
-
depositUsd: number;
|
|
5887
|
-
aprPercent: number;
|
|
5888
|
-
dailyUsd: number;
|
|
5889
|
-
weeklyUsd: number;
|
|
5890
|
-
monthlyUsd: number;
|
|
5891
|
-
yearlyUsd: number;
|
|
5892
|
-
}
|
|
5893
5544
|
declare class EstimatePoolYieldTool extends BaseTool {
|
|
5894
5545
|
name: string;
|
|
5895
5546
|
description: string;
|
|
@@ -5897,95 +5548,7 @@ declare class EstimatePoolYieldTool extends BaseTool {
|
|
|
5897
5548
|
parameters: ToolParameter[];
|
|
5898
5549
|
private service;
|
|
5899
5550
|
constructor(config?: EstimatePoolYieldToolConfig);
|
|
5900
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<
|
|
5901
|
-
error: string;
|
|
5902
|
-
_instructions?: undefined;
|
|
5903
|
-
reason?: undefined;
|
|
5904
|
-
missing?: undefined;
|
|
5905
|
-
candidates?: undefined;
|
|
5906
|
-
pool?: undefined;
|
|
5907
|
-
autoPickedReason?: undefined;
|
|
5908
|
-
aprUnavailableReason?: undefined;
|
|
5909
|
-
estimate?: undefined;
|
|
5910
|
-
depositMode?: undefined;
|
|
5911
|
-
disclaimer?: undefined;
|
|
5912
|
-
} | {
|
|
5913
|
-
_instructions: string;
|
|
5914
|
-
reason: string;
|
|
5915
|
-
missing: string[];
|
|
5916
|
-
candidates: {
|
|
5917
|
-
pair: string | undefined;
|
|
5918
|
-
feeTierBps: number | undefined;
|
|
5919
|
-
feeTierPercent: number | undefined;
|
|
5920
|
-
volume24hUsd: number | undefined;
|
|
5921
|
-
address: string | undefined;
|
|
5922
|
-
}[];
|
|
5923
|
-
error?: undefined;
|
|
5924
|
-
pool?: undefined;
|
|
5925
|
-
autoPickedReason?: undefined;
|
|
5926
|
-
aprUnavailableReason?: undefined;
|
|
5927
|
-
estimate?: undefined;
|
|
5928
|
-
depositMode?: undefined;
|
|
5929
|
-
disclaimer?: undefined;
|
|
5930
|
-
} | {
|
|
5931
|
-
_instructions: string;
|
|
5932
|
-
pool: {
|
|
5933
|
-
address: string | undefined;
|
|
5934
|
-
pair: string | undefined;
|
|
5935
|
-
feeTierBps: number | undefined;
|
|
5936
|
-
feeTierPercent: number | undefined;
|
|
5937
|
-
tvlUsd: number | undefined;
|
|
5938
|
-
volume24hUsd: number | undefined;
|
|
5939
|
-
fees24hUsd: number | undefined;
|
|
5940
|
-
volumeToTvlRatio: number | undefined;
|
|
5941
|
-
aprPercent: number | undefined;
|
|
5942
|
-
chain: string;
|
|
5943
|
-
token0: {
|
|
5944
|
-
symbol: string | undefined;
|
|
5945
|
-
} | undefined;
|
|
5946
|
-
token1: {
|
|
5947
|
-
symbol: string | undefined;
|
|
5948
|
-
} | undefined;
|
|
5949
|
-
};
|
|
5950
|
-
autoPickedReason: string | undefined;
|
|
5951
|
-
aprUnavailableReason: string;
|
|
5952
|
-
error?: undefined;
|
|
5953
|
-
reason?: undefined;
|
|
5954
|
-
missing?: undefined;
|
|
5955
|
-
candidates?: undefined;
|
|
5956
|
-
estimate?: undefined;
|
|
5957
|
-
depositMode?: undefined;
|
|
5958
|
-
disclaimer?: undefined;
|
|
5959
|
-
} | {
|
|
5960
|
-
_instructions: string;
|
|
5961
|
-
pool: {
|
|
5962
|
-
address: string | undefined;
|
|
5963
|
-
pair: string | undefined;
|
|
5964
|
-
feeTierBps: number | undefined;
|
|
5965
|
-
feeTierPercent: number | undefined;
|
|
5966
|
-
tvlUsd: number | undefined;
|
|
5967
|
-
volume24hUsd: number | undefined;
|
|
5968
|
-
fees24hUsd: number | undefined;
|
|
5969
|
-
volumeToTvlRatio: number | undefined;
|
|
5970
|
-
aprPercent: number | undefined;
|
|
5971
|
-
chain: string;
|
|
5972
|
-
token0: {
|
|
5973
|
-
symbol: string | undefined;
|
|
5974
|
-
} | undefined;
|
|
5975
|
-
token1: {
|
|
5976
|
-
symbol: string | undefined;
|
|
5977
|
-
} | undefined;
|
|
5978
|
-
};
|
|
5979
|
-
estimate: YieldEstimate;
|
|
5980
|
-
depositMode: string;
|
|
5981
|
-
autoPickedReason: string | undefined;
|
|
5982
|
-
disclaimer: string;
|
|
5983
|
-
error?: undefined;
|
|
5984
|
-
reason?: undefined;
|
|
5985
|
-
missing?: undefined;
|
|
5986
|
-
candidates?: undefined;
|
|
5987
|
-
aprUnavailableReason?: undefined;
|
|
5988
|
-
}>;
|
|
5551
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
|
|
5989
5552
|
private filterPools;
|
|
5990
5553
|
private sym;
|
|
5991
5554
|
private rankByVolume;
|
|
@@ -6015,34 +5578,7 @@ declare class PoolPriceRangesTool extends BaseTool {
|
|
|
6015
5578
|
parameters: ToolParameter[];
|
|
6016
5579
|
private service;
|
|
6017
5580
|
constructor(config?: PoolPriceRangesToolConfig);
|
|
6018
|
-
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<
|
|
6019
|
-
error: string;
|
|
6020
|
-
_instructions?: undefined;
|
|
6021
|
-
unsupportedChains?: undefined;
|
|
6022
|
-
supportedChains?: undefined;
|
|
6023
|
-
tokens?: undefined;
|
|
6024
|
-
chain?: undefined;
|
|
6025
|
-
count?: undefined;
|
|
6026
|
-
pairs?: undefined;
|
|
6027
|
-
} | {
|
|
6028
|
-
_instructions: string;
|
|
6029
|
-
unsupportedChains: string[];
|
|
6030
|
-
supportedChains: string[];
|
|
6031
|
-
error?: undefined;
|
|
6032
|
-
tokens?: undefined;
|
|
6033
|
-
chain?: undefined;
|
|
6034
|
-
count?: undefined;
|
|
6035
|
-
pairs?: undefined;
|
|
6036
|
-
} | {
|
|
6037
|
-
_instructions: string;
|
|
6038
|
-
tokens: string[];
|
|
6039
|
-
chain: string;
|
|
6040
|
-
count: number;
|
|
6041
|
-
pairs: CoinPoolPairSummary[];
|
|
6042
|
-
error?: undefined;
|
|
6043
|
-
unsupportedChains?: undefined;
|
|
6044
|
-
supportedChains?: undefined;
|
|
6045
|
-
}>;
|
|
5581
|
+
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
|
|
6046
5582
|
}
|
|
6047
5583
|
|
|
6048
5584
|
/**
|
|
@@ -6134,7 +5670,7 @@ declare class SubgraphPoolSearchTool extends BaseTool {
|
|
|
6134
5670
|
};
|
|
6135
5671
|
uniswapUrl: string;
|
|
6136
5672
|
}[];
|
|
6137
|
-
coinPoolPairs: (CoinPoolPairSummary
|
|
5673
|
+
coinPoolPairs: (CoinPoolPairSummary & {
|
|
6138
5674
|
chain: string;
|
|
6139
5675
|
})[];
|
|
6140
5676
|
supportedChains?: undefined;
|
|
@@ -6234,7 +5770,7 @@ declare class SubgraphPoolByAddressTool extends BaseTool {
|
|
|
6234
5770
|
} | {
|
|
6235
5771
|
_instructions: string;
|
|
6236
5772
|
chain: string;
|
|
6237
|
-
coinPoolPairs: never[] | CoinPoolPairSummary
|
|
5773
|
+
coinPoolPairs: never[] | CoinPoolPairSummary[];
|
|
6238
5774
|
pool: {
|
|
6239
5775
|
pair: string;
|
|
6240
5776
|
poolAddress: string;
|
|
@@ -6487,7 +6023,7 @@ declare class SubgraphCoinPoolPairsTool extends BaseTool {
|
|
|
6487
6023
|
tokens: string[];
|
|
6488
6024
|
chain: string;
|
|
6489
6025
|
count: number;
|
|
6490
|
-
pairs: CoinPoolPairSummary
|
|
6026
|
+
pairs: CoinPoolPairSummary[];
|
|
6491
6027
|
error?: undefined;
|
|
6492
6028
|
unsupportedChains?: undefined;
|
|
6493
6029
|
supportedChains?: undefined;
|
|
@@ -6557,7 +6093,7 @@ declare class SubgraphAddPoolTool extends BaseTool {
|
|
|
6557
6093
|
};
|
|
6558
6094
|
uniswapUrl: string;
|
|
6559
6095
|
}[];
|
|
6560
|
-
coinPoolPairs: CoinPoolPairSummary
|
|
6096
|
+
coinPoolPairs: CoinPoolPairSummary[];
|
|
6561
6097
|
} | {
|
|
6562
6098
|
_instructions: string;
|
|
6563
6099
|
howTo: boolean;
|
|
@@ -6911,7 +6447,8 @@ declare class SendNativeTool extends BaseWalletActionTool {
|
|
|
6911
6447
|
constructor(config?: MoralisServiceConfig);
|
|
6912
6448
|
/**
|
|
6913
6449
|
* A native coin can identify its own chain: "BNB" is only native on BSC,
|
|
6914
|
-
* "MATIC"/"POL" on Polygon, "AVAX" on Avalanche
|
|
6450
|
+
* "MATIC"/"POL" on Polygon, "AVAX" on Avalanche, "XDAI" on Gnosis, "HYPE" on HyperEVM,
|
|
6451
|
+
* "MNT" on Mantle, "MON" on Monad. When the user names such a
|
|
6915
6452
|
* coin but did NOT name a chain explicitly, treat the coin as the chain
|
|
6916
6453
|
* selection by pinning `args.chain` to it. The base `run()` then runs its
|
|
6917
6454
|
* normal wrong-chain check: if the wallet is connected to a different chain
|
|
@@ -7727,7 +7264,7 @@ declare function ethCallByChain(chainId: string, to: string, data: string): Prom
|
|
|
7727
7264
|
*/
|
|
7728
7265
|
|
|
7729
7266
|
interface PantographServiceConfig {
|
|
7730
|
-
/** Pantograph API base URL (default: https://
|
|
7267
|
+
/** Pantograph API base URL (default: https://deblo-api-dev.pantograph.app) */
|
|
7731
7268
|
baseUrl?: string;
|
|
7732
7269
|
}
|
|
7733
7270
|
/** Maps hex chain ID → Pantograph chain name */
|
|
@@ -7743,6 +7280,13 @@ declare function toPantographChain(hexChain: string): string;
|
|
|
7743
7280
|
declare class PantographService {
|
|
7744
7281
|
private baseUrl;
|
|
7745
7282
|
constructor(config?: PantographServiceConfig);
|
|
7283
|
+
/**
|
|
7284
|
+
* Build the unified token metadata + price endpoint for a chain:
|
|
7285
|
+
* `/keyrings/tokens/all/{chainId}?addresses=…`, where `{chainId}` is the
|
|
7286
|
+
* DECIMAL chain id (hex → number). One route serves every chain — no per-chain
|
|
7287
|
+
* slug — so token lookups work the same on Ethereum, Gnosis, or any other EVM.
|
|
7288
|
+
*/
|
|
7289
|
+
private tokensUrl;
|
|
7746
7290
|
/**
|
|
7747
7291
|
* Enrich token balances with price and logo data from Pantograph.
|
|
7748
7292
|
* Mutates the array in-place. Non-fatal: silently skips on failure.
|
|
@@ -7756,7 +7300,7 @@ declare class PantographService {
|
|
|
7756
7300
|
getTokensMetadata(addresses: string[], moralisChain: string): Promise<Record<string, TokenMetadata>>;
|
|
7757
7301
|
/**
|
|
7758
7302
|
* Search for tokens by symbol or name keyword on a specific chain.
|
|
7759
|
-
* Uses the Pantograph /token-list endpoint.
|
|
7303
|
+
* Uses the Pantograph /token-list/all endpoint.
|
|
7760
7304
|
*/
|
|
7761
7305
|
searchTokensByKey(params: {
|
|
7762
7306
|
key: string;
|
|
@@ -7764,7 +7308,7 @@ declare class PantographService {
|
|
|
7764
7308
|
}): Promise<MoralisApiResponse<TokenMetadata[]>>;
|
|
7765
7309
|
/**
|
|
7766
7310
|
* List trending tokens on a chain via Pantograph's top-gainers endpoint:
|
|
7767
|
-
* `GET /token-list/top-gainers
|
|
7311
|
+
* `GET /token-list/all/top-gainers?chainId={chainId}&duration=24h&limit=N`.
|
|
7768
7312
|
*
|
|
7769
7313
|
* Mirrors the SDK's trending view: the chain's staple tokens
|
|
7770
7314
|
* ({@link TRENDING_DEFAULT_BY_HEX_CHAIN}, e.g. WETH/WBTC) are fetched in
|
|
@@ -7797,7 +7341,7 @@ declare class PantographService {
|
|
|
7797
7341
|
private fetchTopGainers;
|
|
7798
7342
|
/**
|
|
7799
7343
|
* List the top-gaining tokens on a chain via Pantograph's top-gainers feed:
|
|
7800
|
-
* `GET /token-list/top-gainers
|
|
7344
|
+
* `GET /token-list/all/top-gainers?chainId={chainId}&duration={duration}&limit=N`.
|
|
7801
7345
|
*
|
|
7802
7346
|
* Unlike {@link getTrendingTokens}, this does NOT prepend the chain's staple
|
|
7803
7347
|
* tokens — it returns the raw gainers ranking only, so it answers "biggest
|
|
@@ -8111,4 +7655,4 @@ declare class AbortError extends Error {
|
|
|
8111
7655
|
*/
|
|
8112
7656
|
declare function isAbortError(err: unknown): boolean;
|
|
8113
7657
|
|
|
8114
|
-
export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftAiTool, BaseNftMessageTool, 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 IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, ManageLiquidityRedirectTool, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFC_AGENT_TOOL_NAMES, NFC_AMAZON_DEFAULT_DOMAIN, NFC_AMAZON_DOMAINS, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, NFT_AGENT_TOOL_NAMES, type NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftMessageToolConfig, type NftTransferLastSale, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, 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 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, WalletActionAppTool, type WalletActionAppToolConfig, 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, WalletDefiSummaryTool, type WalletDefiSummaryToolConfig, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, 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, ZERO_ADDRESS, amazonDomainForLanguage, buildRangePresets, buildUniswapPoolUrl, clampTick, configureSupportedChains, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletActionAppTools, createWalletAgent, ethCallAt, ethCallByChain, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, nfcAmazonSearchUrl, normalizePriceRangeToPool, priceToTick, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };
|
|
7658
|
+
export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftAiTool, BaseNftMessageTool, 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 IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, ManageLiquidityRedirectTool, type MarketplaceLink, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFC_AGENT_TOOL_NAMES, NFC_AMAZON_DEFAULT_DOMAIN, NFC_AMAZON_DOMAINS, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, NFT_AGENT_TOOL_NAMES, type NativeTokenInfo, NfcBuyTool, NfcInfoTool, type NftMessageToolConfig, type NftTransferLastSale, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, 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 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, WalletActionAppTool, type WalletActionAppToolConfig, 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, WalletDefiSummaryTool, type WalletDefiSummaryToolConfig, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, 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, ZERO_ADDRESS, amazonDomainForLanguage, buildRangePresets, buildUniswapPoolUrl, clampTick, configureSupportedChains, createAiAgent, createDefaultSubagents, createNfcAgent, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletActionAppTools, createWalletAgent, ethCallAt, ethCallByChain, fetchTopMarketplaces, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, nfcAmazonSearchUrl, normaliseCountry, normalizePriceRangeToPool, priceToTick, resolveNfcShopLinks, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };
|