keyring-agent-core 0.2.33 → 0.2.35

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
@@ -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
@@ -3829,24 +3861,24 @@ declare class TrendingTokensTool extends BaseTool {
3829
3861
  constructor(config?: TrendingTokensToolConfig);
3830
3862
  protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<{
3831
3863
  error: string;
3864
+ _instructions?: undefined;
3865
+ chain?: undefined;
3866
+ count?: undefined;
3867
+ tokens?: undefined;
3832
3868
  } | {
3833
- actionButtons?: SuggestedAction[] | undefined;
3834
3869
  _instructions: string;
3835
3870
  chain: string;
3836
3871
  count: number;
3837
3872
  tokens: TrendingToken[];
3838
3873
  error?: undefined;
3839
3874
  }>;
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
3875
  }
3844
3876
 
3845
3877
  type TopGainersToolConfig = MoralisServiceConfig;
3846
3878
  /**
3847
3879
  * Tool: get-top-gainers
3848
3880
  *
3849
- * Queries Pantograph's `GET /token-list/top-gainers/{chain}?duration=…` — the
3881
+ * Queries Pantograph's `GET /token-list/all/top-gainers?chainId=…&duration=…` — the
3850
3882
  * tokens with the largest USD price increase over a chosen window. Single-chain
3851
3883
  * (Pantograph has no cross-chain feed); defaults to the connected chain, then
3852
3884
  * Ethereum. Returns the canonical trending-token shape: price, market cap, 24h
@@ -5036,7 +5068,7 @@ interface SubgraphServiceConfig {
5036
5068
  /** Override a subgraph URL by chain hex id. */
5037
5069
  subgraphUrls?: Record<string, string>;
5038
5070
  }
5039
- interface CoinPoolPairSummary$1 {
5071
+ interface CoinPoolPairSummary {
5040
5072
  poolId: string;
5041
5073
  pair: string;
5042
5074
  fee: string;
@@ -5054,7 +5086,10 @@ interface CoinPoolPairSummary$1 {
5054
5086
  }
5055
5087
  type SubgraphSort = 'tvl' | 'volume' | 'apr' | 'fee' | 'liquidity';
5056
5088
 
5057
- type TopPoolsToolConfig = UniswapServiceConfig;
5089
+ type TopPoolsToolConfig = UniswapServiceConfig & {
5090
+ /** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
5091
+ isProduction?: boolean;
5092
+ };
5058
5093
  /**
5059
5094
  * Tool: get-top-pools
5060
5095
  *
@@ -5077,53 +5112,10 @@ declare class TopPoolsTool extends BaseTool {
5077
5112
  * Uniswap-only; it never sees a subgraph tool.
5078
5113
  */
5079
5114
  private subgraphFallback;
5115
+ /** Used ONLY to check add-liquidity (gateway) support per chain — see {@link PoolService.isAddLiquiditySupported}. */
5116
+ private pool;
5080
5117
  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
- }>;
5118
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
5127
5119
  /**
5128
5120
  * Attach deterministic expert signals so the analysis is grounded in real
5129
5121
  * numbers rather than the LLM's arithmetic. `volumeToTvlRatio` (24h volume ÷
@@ -5160,26 +5152,11 @@ interface CoinPoolServiceConfig {
5160
5152
  /** Base URL of the CoinPool API. Defaults to `https://api.coinpool.app`. */
5161
5153
  coinPoolBaseUrl?: string;
5162
5154
  }
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
5155
 
5182
- type PoolDetailToolConfig = UniswapServiceConfig;
5156
+ type PoolDetailToolConfig = UniswapServiceConfig & {
5157
+ /** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
5158
+ isProduction?: boolean;
5159
+ };
5183
5160
  /**
5184
5161
  * Tool: get-pool-detail
5185
5162
  *
@@ -5207,152 +5184,10 @@ declare class PoolDetailTool extends BaseTool {
5207
5184
  * user having to ask separately.
5208
5185
  */
5209
5186
  private coinPool;
5187
+ /** Used ONLY to check add-liquidity (gateway) support per chain. */
5188
+ private pool;
5210
5189
  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
- }>;
5190
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
5356
5191
  /**
5357
5192
  * Filter predicate. `mode` controls pair-order matching when both symbols
5358
5193
  * are given:
@@ -5382,8 +5217,10 @@ declare class PoolDetailTool extends BaseTool {
5382
5217
  private formatHistorical;
5383
5218
  }
5384
5219
 
5385
- type PoolSearchToolConfig = UniswapServiceConfig;
5386
- type ProtocolVersionFilter = UniswapProtocolVersion | 'ALL';
5220
+ type PoolSearchToolConfig = UniswapServiceConfig & {
5221
+ /** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
5222
+ isProduction?: boolean;
5223
+ };
5387
5224
  /**
5388
5225
  * Tool: search-pools
5389
5226
  *
@@ -5398,30 +5235,18 @@ declare class PoolSearchTool extends BaseTool {
5398
5235
  category: string;
5399
5236
  parameters: ToolParameter[];
5400
5237
  private service;
5238
+ /** Used ONLY to check add-liquidity (gateway) support per chain. */
5239
+ private pool;
5401
5240
  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
- }>;
5241
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
5420
5242
  private parseProtocolFilter;
5421
5243
  private formatPool;
5422
5244
  }
5423
5245
 
5424
- type PoolByAddressToolConfig = UniswapServiceConfig;
5246
+ type PoolByAddressToolConfig = UniswapServiceConfig & {
5247
+ /** Hit production addresses endpoints (for add-liquidity gateway lookup). Default true. */
5248
+ isProduction?: boolean;
5249
+ };
5425
5250
  /**
5426
5251
  * Tool: lookup-pool-by-address
5427
5252
  *
@@ -5441,15 +5266,13 @@ declare class PoolByAddressTool extends BaseTool {
5441
5266
  category: string;
5442
5267
  parameters: ToolParameter[];
5443
5268
  private service;
5269
+ /** Used ONLY to check add-liquidity (gateway) support per chain. */
5270
+ private pool;
5444
5271
  constructor(config?: PoolByAddressToolConfig);
5445
- protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<{
5272
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown> | {
5446
5273
  error: string;
5447
- _instructions?: undefined;
5448
- resolvedAs?: undefined;
5449
- chain?: undefined;
5450
- protocolVersion?: undefined;
5451
- pool?: undefined;
5452
5274
  } | {
5275
+ actionButtons?: SuggestedAction[] | undefined;
5453
5276
  _instructions: string;
5454
5277
  resolvedAs: string;
5455
5278
  chain: string;
@@ -5498,15 +5321,7 @@ declare class PoolByAddressTool extends BaseTool {
5498
5321
  };
5499
5322
  error?: undefined;
5500
5323
  } | {
5501
- error: string;
5502
- _instructions?: undefined;
5503
- resolvedAs?: undefined;
5504
- chain?: undefined;
5505
- protocolVersion?: undefined;
5506
- token?: undefined;
5507
- poolCount?: undefined;
5508
- pools?: undefined;
5509
- } | {
5324
+ actionButtons?: SuggestedAction[] | undefined;
5510
5325
  _instructions: string;
5511
5326
  resolvedAs: string;
5512
5327
  chain: string;
@@ -5591,88 +5406,7 @@ declare class OpenAddLiquidityFormTool extends BaseTool {
5591
5406
  * ToolResult envelope (BaseTool only copies `data`).
5592
5407
  */
5593
5408
  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
- }>;
5409
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
5676
5410
  /**
5677
5411
  * Best-effort CoinPool in-range price-range candidates for the resolved pool,
5678
5412
  * offered to the user as a reference when filling the form's range inputs.
@@ -5754,142 +5488,10 @@ declare class PreviewAddLiquidityTool extends BaseTool {
5754
5488
  constructor(config?: PreviewAddLiquidityToolConfig);
5755
5489
  /** Forward `ui` from run() into the ToolResult envelope. */
5756
5490
  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
- }>;
5491
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
5873
5492
  }
5874
5493
 
5875
5494
  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
5495
  declare class EstimatePoolYieldTool extends BaseTool {
5894
5496
  name: string;
5895
5497
  description: string;
@@ -5897,95 +5499,7 @@ declare class EstimatePoolYieldTool extends BaseTool {
5897
5499
  parameters: ToolParameter[];
5898
5500
  private service;
5899
5501
  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
- }>;
5502
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
5989
5503
  private filterPools;
5990
5504
  private sym;
5991
5505
  private rankByVolume;
@@ -6015,34 +5529,7 @@ declare class PoolPriceRangesTool extends BaseTool {
6015
5529
  parameters: ToolParameter[];
6016
5530
  private service;
6017
5531
  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
- }>;
5532
+ protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown>>;
6046
5533
  }
6047
5534
 
6048
5535
  /**
@@ -6134,7 +5621,7 @@ declare class SubgraphPoolSearchTool extends BaseTool {
6134
5621
  };
6135
5622
  uniswapUrl: string;
6136
5623
  }[];
6137
- coinPoolPairs: (CoinPoolPairSummary$1 & {
5624
+ coinPoolPairs: (CoinPoolPairSummary & {
6138
5625
  chain: string;
6139
5626
  })[];
6140
5627
  supportedChains?: undefined;
@@ -6234,7 +5721,7 @@ declare class SubgraphPoolByAddressTool extends BaseTool {
6234
5721
  } | {
6235
5722
  _instructions: string;
6236
5723
  chain: string;
6237
- coinPoolPairs: never[] | CoinPoolPairSummary$1[];
5724
+ coinPoolPairs: never[] | CoinPoolPairSummary[];
6238
5725
  pool: {
6239
5726
  pair: string;
6240
5727
  poolAddress: string;
@@ -6487,7 +5974,7 @@ declare class SubgraphCoinPoolPairsTool extends BaseTool {
6487
5974
  tokens: string[];
6488
5975
  chain: string;
6489
5976
  count: number;
6490
- pairs: CoinPoolPairSummary$1[];
5977
+ pairs: CoinPoolPairSummary[];
6491
5978
  error?: undefined;
6492
5979
  unsupportedChains?: undefined;
6493
5980
  supportedChains?: undefined;
@@ -6557,7 +6044,7 @@ declare class SubgraphAddPoolTool extends BaseTool {
6557
6044
  };
6558
6045
  uniswapUrl: string;
6559
6046
  }[];
6560
- coinPoolPairs: CoinPoolPairSummary$1[];
6047
+ coinPoolPairs: CoinPoolPairSummary[];
6561
6048
  } | {
6562
6049
  _instructions: string;
6563
6050
  howTo: boolean;
@@ -6911,7 +6398,8 @@ declare class SendNativeTool extends BaseWalletActionTool {
6911
6398
  constructor(config?: MoralisServiceConfig);
6912
6399
  /**
6913
6400
  * A native coin can identify its own chain: "BNB" is only native on BSC,
6914
- * "MATIC"/"POL" on Polygon, "AVAX" on Avalanche. When the user names such a
6401
+ * "MATIC"/"POL" on Polygon, "AVAX" on Avalanche, "XDAI" on Gnosis, "HYPE" on HyperEVM,
6402
+ * "MNT" on Mantle, "MON" on Monad. When the user names such a
6915
6403
  * coin but did NOT name a chain explicitly, treat the coin as the chain
6916
6404
  * selection by pinning `args.chain` to it. The base `run()` then runs its
6917
6405
  * normal wrong-chain check: if the wallet is connected to a different chain
@@ -7727,7 +7215,7 @@ declare function ethCallByChain(chainId: string, to: string, data: string): Prom
7727
7215
  */
7728
7216
 
7729
7217
  interface PantographServiceConfig {
7730
- /** Pantograph API base URL (default: https://wallet-api.pantograph.app) */
7218
+ /** Pantograph API base URL (default: https://deblo-api-dev.pantograph.app) */
7731
7219
  baseUrl?: string;
7732
7220
  }
7733
7221
  /** Maps hex chain ID → Pantograph chain name */
@@ -7743,6 +7231,13 @@ declare function toPantographChain(hexChain: string): string;
7743
7231
  declare class PantographService {
7744
7232
  private baseUrl;
7745
7233
  constructor(config?: PantographServiceConfig);
7234
+ /**
7235
+ * Build the unified token metadata + price endpoint for a chain:
7236
+ * `/keyrings/tokens/all/{chainId}?addresses=…`, where `{chainId}` is the
7237
+ * DECIMAL chain id (hex → number). One route serves every chain — no per-chain
7238
+ * slug — so token lookups work the same on Ethereum, Gnosis, or any other EVM.
7239
+ */
7240
+ private tokensUrl;
7746
7241
  /**
7747
7242
  * Enrich token balances with price and logo data from Pantograph.
7748
7243
  * Mutates the array in-place. Non-fatal: silently skips on failure.
@@ -7756,7 +7251,7 @@ declare class PantographService {
7756
7251
  getTokensMetadata(addresses: string[], moralisChain: string): Promise<Record<string, TokenMetadata>>;
7757
7252
  /**
7758
7253
  * Search for tokens by symbol or name keyword on a specific chain.
7759
- * Uses the Pantograph /token-list endpoint.
7254
+ * Uses the Pantograph /token-list/all endpoint.
7760
7255
  */
7761
7256
  searchTokensByKey(params: {
7762
7257
  key: string;
@@ -7764,7 +7259,7 @@ declare class PantographService {
7764
7259
  }): Promise<MoralisApiResponse<TokenMetadata[]>>;
7765
7260
  /**
7766
7261
  * List trending tokens on a chain via Pantograph's top-gainers endpoint:
7767
- * `GET /token-list/top-gainers/{chainName}?duration=24h&limit=N`.
7262
+ * `GET /token-list/all/top-gainers?chainId={chainId}&duration=24h&limit=N`.
7768
7263
  *
7769
7264
  * Mirrors the SDK's trending view: the chain's staple tokens
7770
7265
  * ({@link TRENDING_DEFAULT_BY_HEX_CHAIN}, e.g. WETH/WBTC) are fetched in
@@ -7797,7 +7292,7 @@ declare class PantographService {
7797
7292
  private fetchTopGainers;
7798
7293
  /**
7799
7294
  * List the top-gaining tokens on a chain via Pantograph's top-gainers feed:
7800
- * `GET /token-list/top-gainers/{chainName}?duration={duration}&limit=N`.
7295
+ * `GET /token-list/all/top-gainers?chainId={chainId}&duration={duration}&limit=N`.
7801
7296
  *
7802
7297
  * Unlike {@link getTrendingTokens}, this does NOT prepend the chain's staple
7803
7298
  * tokens — it returns the raw gainers ranking only, so it answers "biggest
@@ -8111,4 +7606,4 @@ declare class AbortError extends Error {
8111
7606
  */
8112
7607
  declare function isAbortError(err: unknown): boolean;
8113
7608
 
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 };
7609
+ 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, getGatewayChains, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, nfcAmazonSearchUrl, normalizePriceRangeToPool, priceToTick, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };