web3-tools-mcp 1.3.4 → 1.4.0

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.
Files changed (53) hide show
  1. package/README.md +51 -4
  2. package/dist/anvil.d.ts +34 -0
  3. package/dist/anvil.d.ts.map +1 -0
  4. package/dist/anvil.js +254 -0
  5. package/dist/anvil.js.map +1 -0
  6. package/dist/client.d.ts +3 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +11 -0
  9. package/dist/client.js.map +1 -1
  10. package/dist/index.js +25 -5
  11. package/dist/index.js.map +1 -1
  12. package/dist/preview.d.ts +55 -0
  13. package/dist/preview.d.ts.map +1 -0
  14. package/dist/preview.js +233 -0
  15. package/dist/preview.js.map +1 -0
  16. package/dist/tools/advanced.d.ts +67 -9
  17. package/dist/tools/advanced.d.ts.map +1 -1
  18. package/dist/tools/advanced.js +206 -67
  19. package/dist/tools/advanced.js.map +1 -1
  20. package/dist/tools/balance.d.ts +5 -5
  21. package/dist/tools/contract-info.d.ts +9 -9
  22. package/dist/tools/contract.d.ts +8 -8
  23. package/dist/tools/ens.d.ts +15 -15
  24. package/dist/tools/gas.d.ts +18 -18
  25. package/dist/tools/logs.d.ts +3 -3
  26. package/dist/tools/transactions.d.ts +9 -9
  27. package/dist/tools/transactions.d.ts.map +1 -1
  28. package/dist/tools/transactions.js +92 -113
  29. package/dist/tools/transactions.js.map +1 -1
  30. package/dist/utils.d.ts +13 -0
  31. package/dist/utils.d.ts.map +1 -1
  32. package/dist/utils.js +76 -0
  33. package/dist/utils.js.map +1 -1
  34. package/dist/wallet-client.d.ts +83 -0
  35. package/dist/wallet-client.d.ts.map +1 -0
  36. package/dist/wallet-client.js +357 -0
  37. package/dist/wallet-client.js.map +1 -0
  38. package/package.json +9 -8
  39. package/src/anvil.ts +323 -0
  40. package/src/client.ts +14 -0
  41. package/src/index.ts +26 -5
  42. package/src/preview.ts +320 -0
  43. package/src/tools/advanced.ts +239 -70
  44. package/src/tools/transactions.ts +98 -125
  45. package/src/utils.ts +95 -0
  46. package/src/wallet-client.ts +380 -0
  47. package/dist/wallet-server.d.ts +0 -35
  48. package/dist/wallet-server.d.ts.map +0 -1
  49. package/dist/wallet-server.js +0 -232
  50. package/dist/wallet-server.js.map +0 -1
  51. package/public/wallet-app.js +0 -677
  52. package/public/wallet.html +0 -723
  53. package/src/wallet-server.ts +0 -283
@@ -1,7 +1,8 @@
1
1
  import { decodeAbiParameters, isAddress, parseAbiParameters } from 'viem';
2
2
  import { z } from 'zod';
3
3
  import { getClientManager, SUPPORTED_CHAINS } from '../client.js';
4
- import { createTool, formatResponse } from '../utils.js';
4
+ import { createTool, formatResponse, summarizeTrace } from '../utils.js';
5
+ import { isAnvilInstalled, traceTransactionWithAnvil, simulateCallWithTrace } from '../anvil.js';
5
6
  export default {
6
7
  get_storage_at: createTool('Read Contract Storage', '⚠️ ADVANCED: Direct storage slot access with type decoding. Use for low-level contract inspection.', z.object({
7
8
  chain: z.enum(SUPPORTED_CHAINS).describe('The blockchain network to use'),
@@ -139,7 +140,17 @@ export default {
139
140
  .enum(['trace', 'vmTrace', 'stateDiff'])
140
141
  .optional()
141
142
  .describe('Trace type: "trace" (call tree, recommended), "vmTrace" (VM execution), "stateDiff" (state changes)')
142
- .default('trace')
143
+ .default('trace'),
144
+ useAnvil: z
145
+ .boolean()
146
+ .optional()
147
+ .describe('Force using Anvil for tracing (requires Foundry installed). Auto-used as fallback when RPC tracing fails.')
148
+ .default(false),
149
+ summarize: z
150
+ .boolean()
151
+ .optional()
152
+ .describe('Return a compact summary instead of full trace. Truncates hex data and flattens nested calls.')
153
+ .default(false)
143
154
  }), async (args) => {
144
155
  const clientManager = getClientManager();
145
156
  const client = clientManager.getClient(args.chain);
@@ -148,87 +159,215 @@ export default {
148
159
  const transaction = await client.getTransaction({ hash: args.transactionHash });
149
160
  const receipt = await client.getTransactionReceipt({ hash: args.transactionHash });
150
161
  let traceResult = null;
151
- // Perform the requested trace type
152
- switch (args.traceType) {
153
- case 'trace':
154
- try {
155
- // Use debug_traceTransaction for call trace
156
- traceResult = await client.request({
157
- method: 'debug_traceTransaction',
158
- params: [args.transactionHash, { tracer: 'callTracer' }]
159
- });
160
- }
161
- catch (e) {
162
- traceResult = { error: e.message };
163
- }
164
- break;
165
- case 'vmTrace':
166
- try {
167
- traceResult = await client.request({
168
- method: 'debug_traceTransaction',
169
- params: [args.transactionHash, { tracer: 'prestateTracer' }]
170
- });
162
+ let usedAnvil = false;
163
+ // Map trace type to tracer name
164
+ const tracerMap = {
165
+ trace: 'callTracer',
166
+ vmTrace: 'prestateTracer',
167
+ stateDiff: 'stateDiffTracer'
168
+ };
169
+ const tracer = tracerMap[args.traceType ?? 'trace'] ?? 'callTracer';
170
+ // Try RPC tracing first (unless forceAnvil is true)
171
+ if (!args.useAnvil) {
172
+ try {
173
+ traceResult = await client.request({
174
+ method: 'debug_traceTransaction',
175
+ params: [args.transactionHash, { tracer }]
176
+ });
177
+ }
178
+ catch (rpcError) {
179
+ // RPC tracing failed, will try Anvil fallback
180
+ const errorMessage = rpcError.message;
181
+ if (errorMessage.includes('not supported') ||
182
+ errorMessage.includes('not available') ||
183
+ errorMessage.includes('method not found') ||
184
+ errorMessage.includes('does not exist')) {
185
+ // This is an expected error for public RPCs, try Anvil
186
+ traceResult = null;
171
187
  }
172
- catch (e) {
173
- traceResult = { error: e.message };
188
+ else {
189
+ // Other error, store it but still try Anvil
190
+ traceResult = { rpcError: errorMessage };
174
191
  }
175
- break;
176
- case 'stateDiff':
192
+ }
193
+ }
194
+ // Fallback to Anvil if RPC tracing failed or was skipped
195
+ if (traceResult === null || (traceResult && typeof traceResult === 'object' && 'rpcError' in traceResult) || args.useAnvil) {
196
+ const anvilAvailable = await isAnvilInstalled();
197
+ if (anvilAvailable) {
198
+ usedAnvil = true; // Mark as used before attempting (even if it fails)
177
199
  try {
178
- traceResult = await client.request({
179
- method: 'debug_traceTransaction',
180
- params: [args.transactionHash, { tracer: 'stateDiffTracer' }]
181
- });
200
+ const forkUrl = clientManager.getRpcUrl(args.chain);
201
+ const blockNumber = transaction.blockNumber ?? 0n;
202
+ traceResult = await traceTransactionWithAnvil(forkUrl, args.transactionHash, blockNumber, tracer, args.chain);
182
203
  }
183
- catch (e) {
184
- traceResult = { error: e.message };
204
+ catch (anvilError) {
205
+ // Anvil tracing also failed
206
+ traceResult = {
207
+ error: `Anvil tracing failed: ${anvilError.message}`,
208
+ rpcError: traceResult && typeof traceResult === 'object' && 'rpcError' in traceResult
209
+ ? traceResult.rpcError
210
+ : 'RPC does not support debug_traceTransaction'
211
+ };
185
212
  }
186
- break;
187
- default:
213
+ }
214
+ else if (!traceResult || (typeof traceResult === 'object' && 'rpcError' in traceResult)) {
215
+ // Anvil not available and RPC failed
188
216
  traceResult = {
189
- type: 'CALL',
217
+ error: 'Tracing not available. Install Foundry (anvil) for local tracing: https://book.getfoundry.sh/getting-started/installation',
218
+ rpcError: traceResult && typeof traceResult === 'object' && 'rpcError' in traceResult
219
+ ? traceResult.rpcError
220
+ : 'RPC does not support debug_traceTransaction'
221
+ };
222
+ }
223
+ }
224
+ // Apply summarization if requested - focused on finding reverts
225
+ // Skip summarization only if traceResult is a plain error object (not a call trace with an error field)
226
+ const isPlainError = traceResult && typeof traceResult === 'object' &&
227
+ 'error' in traceResult && !('type' in traceResult) && !('calls' in traceResult);
228
+ const traceSummary = args.summarize && traceResult && typeof traceResult === 'object' && !isPlainError
229
+ ? summarizeTrace(traceResult)
230
+ : null;
231
+ const result = args.summarize && traceSummary
232
+ ? {
233
+ chain: args.chain,
234
+ transactionHash: args.transactionHash,
235
+ status: receipt.status,
236
+ gasUsed: receipt.gasUsed?.toString(),
237
+ ...traceSummary // { hasError, errorPath, summary }
238
+ }
239
+ : {
240
+ success: true,
241
+ chain: args.chain,
242
+ transactionHash: args.transactionHash,
243
+ traceType: args.traceType,
244
+ usedAnvil,
245
+ transaction: {
246
+ blockNumber: transaction.blockNumber?.toString(),
190
247
  from: transaction.from,
191
248
  to: transaction.to,
192
249
  value: transaction.value?.toString() || '0',
193
250
  gas: transaction.gas?.toString() || '0',
251
+ gasPrice: transaction.gasPrice?.toString() || '0',
252
+ nonce: transaction.nonce?.toString() || '0',
253
+ input: transaction.input
254
+ },
255
+ receipt: {
256
+ status: receipt.status,
194
257
  gasUsed: receipt.gasUsed?.toString() || '0',
195
- input: transaction.input,
196
- output: '0x',
197
- error: receipt.status === 'success' ? null : 'Transaction failed'
198
- };
199
- }
200
- const result = {
201
- success: true,
202
- chain: args.chain,
203
- transactionHash: args.transactionHash,
204
- traceType: args.traceType,
205
- transaction: {
206
- blockNumber: transaction.blockNumber?.toString(),
207
- from: transaction.from,
208
- to: transaction.to,
209
- value: transaction.value?.toString() || '0',
210
- gas: transaction.gas?.toString() || '0',
211
- gasPrice: transaction.gasPrice?.toString() || '0',
212
- nonce: transaction.nonce?.toString() || '0',
213
- input: transaction.input
214
- },
215
- receipt: {
216
- status: receipt.status,
217
- gasUsed: receipt.gasUsed?.toString() || '0',
218
- effectiveGasPrice: receipt.effectiveGasPrice?.toString() || '0',
219
- logs: receipt.logs.map(log => ({
220
- address: log.address,
221
- topics: log.topics,
222
- data: log.data
223
- }))
224
- },
225
- trace: traceResult
226
- };
258
+ effectiveGasPrice: receipt.effectiveGasPrice?.toString() || '0',
259
+ logs: receipt.logs.map(log => ({
260
+ address: log.address,
261
+ topics: log.topics,
262
+ data: log.data
263
+ }))
264
+ },
265
+ trace: traceResult
266
+ };
227
267
  return formatResponse(result);
228
268
  }
229
269
  catch (error) {
230
270
  throw new Error(`Transaction trace failed: ${error}`);
231
271
  }
272
+ }),
273
+ debug_call: createTool('Debug Contract Call', 'Simulate a contract call with full trace output. Requires Foundry (anvil) installed. Useful for debugging reverts and understanding call execution.', z.object({
274
+ chain: z.enum(SUPPORTED_CHAINS).describe('The blockchain network to fork'),
275
+ to: z.string().describe('Contract address to call'),
276
+ data: z.string().optional().describe('Calldata (hex encoded). Either provide this or functionAbi + args.'),
277
+ functionAbi: z
278
+ .string()
279
+ .optional()
280
+ .describe('Function ABI signature (e.g., "function transfer(address to, uint256 amount)"). Use with args parameter.'),
281
+ args: z
282
+ .array(z.union([z.string(), z.number(), z.boolean()]))
283
+ .optional()
284
+ .describe('Function arguments (when using functionAbi)'),
285
+ from: z
286
+ .string()
287
+ .optional()
288
+ .describe('Sender address (defaults to zero address)'),
289
+ value: z.string().optional().describe('ETH value to send (in wei)'),
290
+ blockNumber: z.string().optional().describe('Block number to fork from (defaults to latest)'),
291
+ traceType: z
292
+ .enum(['callTracer', 'prestateTracer'])
293
+ .optional()
294
+ .default('callTracer')
295
+ .describe('Trace type: callTracer (call tree) or prestateTracer (state before execution)'),
296
+ summarize: z
297
+ .boolean()
298
+ .optional()
299
+ .describe('Return a compact summary instead of full trace. Truncates hex data and flattens nested calls.')
300
+ .default(false)
301
+ }), async (args) => {
302
+ // Check if Anvil is installed
303
+ const anvilAvailable = await isAnvilInstalled();
304
+ if (!anvilAvailable) {
305
+ throw new Error('Anvil is not installed. Please install Foundry: https://book.getfoundry.sh/getting-started/installation');
306
+ }
307
+ const clientManager = getClientManager();
308
+ const forkUrl = clientManager.getRpcUrl(args.chain);
309
+ // Encode calldata if functionAbi is provided
310
+ let calldata = args.data;
311
+ if (args.functionAbi && !calldata) {
312
+ try {
313
+ const { encodeFunctionData, parseAbiItem } = await import('viem');
314
+ const abiItem = parseAbiItem(args.functionAbi);
315
+ if (abiItem.type !== 'function') {
316
+ throw new Error('ABI must be a function signature');
317
+ }
318
+ calldata = encodeFunctionData({
319
+ abi: [abiItem],
320
+ functionName: abiItem.name,
321
+ args: (args.args ?? [])
322
+ });
323
+ }
324
+ catch (encodeError) {
325
+ throw new Error(`Failed to encode function call: ${encodeError.message}`);
326
+ }
327
+ }
328
+ try {
329
+ const blockNumber = args.blockNumber ? BigInt(args.blockNumber) : undefined;
330
+ const value = args.value ? BigInt(args.value) : undefined;
331
+ const traceResult = await simulateCallWithTrace(forkUrl, {
332
+ to: args.to,
333
+ data: calldata,
334
+ from: args.from,
335
+ value
336
+ }, blockNumber, args.traceType);
337
+ // Apply summarization if requested - focused on finding reverts
338
+ // Skip summarization only if trace is a plain error object (not a call trace with an error field)
339
+ const isPlainTraceError = traceResult.trace && typeof traceResult.trace === 'object' &&
340
+ 'error' in traceResult.trace && !('type' in traceResult.trace) && !('calls' in traceResult.trace);
341
+ const traceSummary = args.summarize && traceResult.trace && typeof traceResult.trace === 'object' && !isPlainTraceError
342
+ ? summarizeTrace(traceResult.trace)
343
+ : null;
344
+ const result = args.summarize && traceSummary
345
+ ? {
346
+ chain: args.chain,
347
+ to: args.to,
348
+ success: traceResult.success,
349
+ gasUsed: traceResult.gasUsed.toString(),
350
+ revertReason: traceResult.revertReason,
351
+ ...traceSummary // { hasError, errorPath, summary }
352
+ }
353
+ : {
354
+ success: traceResult.success,
355
+ chain: args.chain,
356
+ to: args.to,
357
+ from: args.from ?? '0x0000000000000000000000000000000000000000',
358
+ data: calldata,
359
+ value: value?.toString() ?? '0',
360
+ blockNumber: blockNumber?.toString() ?? 'latest',
361
+ result: traceResult.result,
362
+ gasUsed: traceResult.gasUsed.toString(),
363
+ revertReason: traceResult.revertReason,
364
+ trace: traceResult.trace
365
+ };
366
+ return formatResponse(result);
367
+ }
368
+ catch (error) {
369
+ throw new Error(`Debug call failed: ${error.message}`);
370
+ }
232
371
  })
233
372
  };
234
373
  //# sourceMappingURL=advanced.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"advanced.js","sourceRoot":"","sources":["../../src/tools/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAA;AACvF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AA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AAC,KAAK;oBACjB,EAAE,EAAE,IAAI,CAAC,EAAE;oBACX,OAAO,EAAE,WAAW,CAAC,OAAO;oBAC5B,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE;oBACvC,YAAY,EAAE,WAAW,CAAC,YAAY;oBACtC,GAAG,YAAY,CAAC,mCAAmC;iBACpD;gBACH,CAAC,CAAC;oBACE,OAAO,EAAE,WAAW,CAAC,OAAO;oBAC5B,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,EAAE,EAAE,IAAI,CAAC,EAAE;oBACX,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,4CAA4C;oBAC/D,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG;oBAC/B,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,QAAQ;oBAChD,MAAM,EAAE,WAAW,CAAC,MAAM;oBAC1B,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,QAAQ,EAAE;oBACvC,YAAY,EAAE,WAAW,CAAC,YAAY;oBACtC,KAAK,EAAE,WAAW,CAAC,KAAK;iBACzB,CAAA;YAEL,OAAO,cAAc,CAAC,MAAM,CAAC,CAAA;QAC/B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,sBAAuB,KAAe,CAAC,OAAO,EAAE,CAAC,CAAA;QACnE,CAAC;IACH,CAAC,CACF;CACF,CAAA"}
@@ -11,30 +11,30 @@ declare const _default: {
11
11
  blockNumber: z.ZodOptional<z.ZodString>;
12
12
  label: z.ZodOptional<z.ZodString>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
15
14
  address: string;
15
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
16
16
  blockNumber?: string | undefined;
17
17
  tokenAddress?: string | undefined;
18
18
  label?: string | undefined;
19
19
  }, {
20
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
21
20
  address: string;
21
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
22
22
  blockNumber?: string | undefined;
23
23
  tokenAddress?: string | undefined;
24
24
  label?: string | undefined;
25
25
  }>, "many">;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  queries: {
28
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
29
28
  address: string;
29
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
30
30
  blockNumber?: string | undefined;
31
31
  tokenAddress?: string | undefined;
32
32
  label?: string | undefined;
33
33
  }[];
34
34
  }, {
35
35
  queries: {
36
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
37
36
  address: string;
37
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
38
38
  blockNumber?: string | undefined;
39
39
  tokenAddress?: string | undefined;
40
40
  label?: string | undefined;
@@ -42,8 +42,8 @@ declare const _default: {
42
42
  }>;
43
43
  handler: (args: {
44
44
  queries: {
45
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
46
45
  address: string;
46
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
47
47
  blockNumber?: string | undefined;
48
48
  tokenAddress?: string | undefined;
49
49
  label?: string | undefined;
@@ -8,17 +8,17 @@ declare const _default: {
8
8
  address: z.ZodString;
9
9
  include: z.ZodOptional<z.ZodArray<z.ZodEnum<["abi", "implementationAbi", "metadata", "compilation", "creation", "stats"]>, "many">>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
12
11
  address: string;
12
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
13
13
  include?: ("abi" | "implementationAbi" | "metadata" | "compilation" | "creation" | "stats")[] | undefined;
14
14
  }, {
15
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
16
15
  address: string;
16
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
17
17
  include?: ("abi" | "implementationAbi" | "metadata" | "compilation" | "creation" | "stats")[] | undefined;
18
18
  }>;
19
19
  handler: (args: {
20
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
21
20
  address: string;
21
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
22
22
  include?: ("abi" | "implementationAbi" | "metadata" | "compilation" | "creation" | "stats")[] | undefined;
23
23
  }) => Promise<import("../types.js").ToolResult>;
24
24
  };
@@ -31,19 +31,19 @@ declare const _default: {
31
31
  includeImplementation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
32
32
  includeSource: z.ZodDefault<z.ZodOptional<z.ZodEnum<["full", "summary", "none"]>>>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
35
34
  address: string;
35
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
36
36
  includeImplementation: boolean;
37
37
  includeSource: "full" | "summary" | "none";
38
38
  }, {
39
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
40
39
  address: string;
40
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
41
41
  includeImplementation?: boolean | undefined;
42
42
  includeSource?: "full" | "summary" | "none" | undefined;
43
43
  }>;
44
44
  handler: (args: {
45
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
46
45
  address: string;
46
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
47
47
  includeImplementation: boolean;
48
48
  includeSource: "full" | "summary" | "none";
49
49
  }) => Promise<import("../types.js").ToolResult>;
@@ -57,19 +57,19 @@ declare const _default: {
57
57
  filePath: z.ZodOptional<z.ZodString>;
58
58
  useImplementation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
59
59
  }, "strip", z.ZodTypeAny, {
60
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
61
60
  address: string;
61
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
62
62
  useImplementation: boolean;
63
63
  filePath?: string | undefined;
64
64
  }, {
65
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
66
65
  address: string;
66
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
67
67
  filePath?: string | undefined;
68
68
  useImplementation?: boolean | undefined;
69
69
  }>;
70
70
  handler: (args: {
71
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
72
71
  address: string;
72
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
73
73
  useImplementation: boolean;
74
74
  filePath?: string | undefined;
75
75
  }) => Promise<import("../types.js").ToolResult>;
@@ -12,14 +12,14 @@ declare const _default: {
12
12
  blockNumber: z.ZodOptional<z.ZodString>;
13
13
  label: z.ZodOptional<z.ZodString>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
15
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
16
16
  contractAddress: string;
17
17
  functionAbi: string;
18
18
  blockNumber?: string | undefined;
19
19
  args?: (string | number | boolean | null)[] | undefined;
20
20
  label?: string | undefined;
21
21
  }, {
22
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
22
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
23
23
  contractAddress: string;
24
24
  functionAbi: string;
25
25
  blockNumber?: string | undefined;
@@ -28,7 +28,7 @@ declare const _default: {
28
28
  }>, "many">;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  calls: {
31
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
31
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
32
32
  contractAddress: string;
33
33
  functionAbi: string;
34
34
  blockNumber?: string | undefined;
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  }[];
38
38
  }, {
39
39
  calls: {
40
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
40
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
41
41
  contractAddress: string;
42
42
  functionAbi: string;
43
43
  blockNumber?: string | undefined;
@@ -47,7 +47,7 @@ declare const _default: {
47
47
  }>;
48
48
  handler: (args: {
49
49
  calls: {
50
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
50
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
51
51
  contractAddress: string;
52
52
  functionAbi: string;
53
53
  blockNumber?: string | undefined;
@@ -63,15 +63,15 @@ declare const _default: {
63
63
  chain: z.ZodEnum<["mainnet", "arbitrum", "avalanche", "base", "bnb", "gnosis", "sonic", "optimism", "polygon", "zksync", "linea", "unichain", "localhost"]>;
64
64
  address: z.ZodString;
65
65
  }, "strip", z.ZodTypeAny, {
66
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
67
66
  address: string;
67
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
68
68
  }, {
69
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
70
69
  address: string;
70
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
71
71
  }>;
72
72
  handler: (args: {
73
- chain: "mainnet" | "arbitrum" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
74
73
  address: string;
74
+ chain: "arbitrum" | "mainnet" | "avalanche" | "base" | "bnb" | "gnosis" | "sonic" | "optimism" | "polygon" | "zksync" | "linea" | "unichain" | "localhost";
75
75
  }) => Promise<import("../types.js").ToolResult>;
76
76
  };
77
77
  };