keyring-agent-core 0.4.2 → 0.4.3
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 +20 -14
- package/dist/index.js +82 -82
- package/dist/index.native.js +202 -202
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2830,7 +2830,7 @@ interface AgentConfig {
|
|
|
2830
2830
|
/**
|
|
2831
2831
|
* Base URL for the token/pool search gateway (default:
|
|
2832
2832
|
* https://entry-gateway.backend-prod.api.uniswap.org). Separate from
|
|
2833
|
-
* `baseUrl`: Uniswap moved
|
|
2833
|
+
* `baseUrl`: Uniswap moved search and the pool leaderboard to this
|
|
2834
2834
|
* host while GraphQL stayed on the interface gateway.
|
|
2835
2835
|
*/
|
|
2836
2836
|
searchBaseUrl?: string;
|
|
@@ -11950,7 +11950,7 @@ interface UniswapServiceConfig {
|
|
|
11950
11950
|
* Base URL for the token/pool SEARCH gateway (default:
|
|
11951
11951
|
* https://entry-gateway.backend-prod.api.uniswap.org).
|
|
11952
11952
|
*
|
|
11953
|
-
* Deliberately separate from {@link baseUrl}: Uniswap moved
|
|
11953
|
+
* Deliberately separate from {@link baseUrl}: Uniswap moved search and
|
|
11954
11954
|
* the pool leaderboard here while GraphQL stayed on the interface gateway, so
|
|
11955
11955
|
* the two cannot share one origin. Kept configurable so the rest of the
|
|
11956
11956
|
* migration can be followed without a code change.
|
|
@@ -12067,7 +12067,7 @@ type PoolDetailToolConfig = UniswapServiceConfig;
|
|
|
12067
12067
|
* Tool: get-pool-detail
|
|
12068
12068
|
*
|
|
12069
12069
|
* Always-search-then-detail flow for a single Uniswap V3 pool:
|
|
12070
|
-
* 1) call
|
|
12070
|
+
* 1) call Uniswap search upstream to enumerate pools matching the user's input,
|
|
12071
12071
|
* 2) filter the search result by token symbols and (optionally) fee tier,
|
|
12072
12072
|
* 3) if the filter narrows to exactly one pool, fetch its full detail,
|
|
12073
12073
|
* 4) otherwise return the candidates so the LLM can ask the user to pick one.
|
|
@@ -12123,10 +12123,10 @@ type PoolSearchToolConfig = UniswapServiceConfig;
|
|
|
12123
12123
|
/**
|
|
12124
12124
|
* Tool: search-pools
|
|
12125
12125
|
*
|
|
12126
|
-
* Wraps the Uniswap `data.
|
|
12127
|
-
* `
|
|
12126
|
+
* Wraps the Uniswap `data.v2.SearchService/Search` endpoint with
|
|
12127
|
+
* `types: ["SEARCH_TYPE_POOL"]`. Lets users discover pools by free-text query
|
|
12128
12128
|
* (token symbol like "WBTC" or "USDC", token name, or pool address) on a
|
|
12129
|
-
* specific chain. Paginated.
|
|
12129
|
+
* specific chain. Paginated (client-side — the endpoint has no cursor).
|
|
12130
12130
|
*/
|
|
12131
12131
|
declare class PoolSearchTool extends BaseTool {
|
|
12132
12132
|
name: string;
|
|
@@ -12153,10 +12153,9 @@ type PoolByAddressToolConfig = UniswapServiceConfig;
|
|
|
12153
12153
|
* Tool: lookup-pool-by-address
|
|
12154
12154
|
*
|
|
12155
12155
|
* Resolves a single 0x address against Uniswap when the caller does not yet
|
|
12156
|
-
* know whether it is a pool contract or a token contract. The tool
|
|
12157
|
-
*
|
|
12158
|
-
*
|
|
12159
|
-
* data:
|
|
12156
|
+
* know whether it is a pool contract or a token contract. The tool makes ONE
|
|
12157
|
+
* search call asking for both pools and tokens and dispatches based on which
|
|
12158
|
+
* side the address matched:
|
|
12160
12159
|
*
|
|
12161
12160
|
* - POOL hit → fetch the pool's full detail. One version-agnostic lookup
|
|
12162
12161
|
* covers V2, V3 and V4, so a pasted address never has to be routed by a
|
|
@@ -12174,8 +12173,6 @@ declare class PoolByAddressTool extends BaseTool {
|
|
|
12174
12173
|
private pool;
|
|
12175
12174
|
constructor(config?: PoolByAddressToolConfig);
|
|
12176
12175
|
protected run(args: Record<string, unknown>, userContext?: UserContext): Promise<Record<string, unknown> | {
|
|
12177
|
-
error: string;
|
|
12178
|
-
} | {
|
|
12179
12176
|
actionButtons?: SuggestedAction[] | undefined;
|
|
12180
12177
|
_instructions: string;
|
|
12181
12178
|
resolvedAs: string;
|
|
@@ -12210,7 +12207,10 @@ declare class PoolByAddressTool extends BaseTool {
|
|
|
12210
12207
|
reserve: number | undefined;
|
|
12211
12208
|
isSpam: boolean | undefined;
|
|
12212
12209
|
safetyLevel: string | undefined;
|
|
12210
|
+
safetyVerdict: string | undefined;
|
|
12211
|
+
riskFlags: string[] | undefined;
|
|
12213
12212
|
transferFeeBps: number | undefined;
|
|
12213
|
+
isHiddenByUniswap: true | undefined;
|
|
12214
12214
|
isUnrecognizedToken: true | undefined;
|
|
12215
12215
|
} | undefined;
|
|
12216
12216
|
token1: {
|
|
@@ -12222,7 +12222,10 @@ declare class PoolByAddressTool extends BaseTool {
|
|
|
12222
12222
|
reserve: number | undefined;
|
|
12223
12223
|
isSpam: boolean | undefined;
|
|
12224
12224
|
safetyLevel: string | undefined;
|
|
12225
|
+
safetyVerdict: string | undefined;
|
|
12226
|
+
riskFlags: string[] | undefined;
|
|
12225
12227
|
transferFeeBps: number | undefined;
|
|
12228
|
+
isHiddenByUniswap: true | undefined;
|
|
12226
12229
|
isUnrecognizedToken: true | undefined;
|
|
12227
12230
|
} | undefined;
|
|
12228
12231
|
};
|
|
@@ -12239,8 +12242,11 @@ declare class PoolByAddressTool extends BaseTool {
|
|
|
12239
12242
|
name: string | undefined;
|
|
12240
12243
|
decimals: number | undefined;
|
|
12241
12244
|
chainId: number | undefined;
|
|
12242
|
-
isSpam:
|
|
12243
|
-
|
|
12245
|
+
isSpam: boolean | undefined;
|
|
12246
|
+
safetyVerdict: string | undefined;
|
|
12247
|
+
riskFlags: string[] | undefined;
|
|
12248
|
+
transferFeeBps: number | undefined;
|
|
12249
|
+
isHiddenByUniswap: boolean | undefined;
|
|
12244
12250
|
};
|
|
12245
12251
|
poolCount: number;
|
|
12246
12252
|
pools: {
|