UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

44 lines 2.03 kB
import type { SolidityStackTrace, SolidityStackTraceEntry } from "./solidity-stack-trace.js"; export declare function createSolidityErrorWithStackTrace(fallbackMessage: string, stackTrace: SolidityStackTrace, data: string, transactionHash?: string): SolidityError; export declare function encodeStackTraceEntry(stackTraceEntry: SolidityStackTraceEntry): SolidityCallSite; /** * Note: This error class does not extend ProviderError because it carries * Solidity-specific data (stackTrace) that ProviderError does not model. * It does carry `code = 3` to match the de facto standard used by geth and * anvil for execution revert errors, allowing libraries like viem to * properly detect and handle revert errors via the error cause chain. **/ export declare class SolidityError extends Error { readonly stackTrace: SolidityStackTrace; readonly data: string; readonly transactionHash?: string | undefined; readonly code: number; constructor(message: string, stackTrace: SolidityStackTrace, data: string, transactionHash?: string | undefined); } export declare class SolidityCallSite implements NodeJS.CallSite { #private; constructor(_sourceName: string | undefined, _contract: string | undefined, _functionName: string | undefined, _line: number | undefined); getColumnNumber(): null; getEvalOrigin(): undefined; getFileName(): string; getFunction(): undefined; getFunctionName(): string | null; getLineNumber(): number | null; getMethodName(): string | null; getPosition(): number; getPromiseIndex(): number; getScriptNameOrSourceURL(): string; getThis(): undefined; getTypeName(): string | null; isAsync(): boolean; isConstructor(): boolean; isEval(): boolean; isNative(): boolean; isPromiseAll(): boolean; isToplevel(): boolean; getScriptHash(): string; getEnclosingColumnNumber(): number; getEnclosingLineNumber(): number; toString(): string; } //# sourceMappingURL=stack-trace-solidity-errors.d.ts.map