hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
22 lines • 1.33 kB
TypeScript
import type { TaskOverrideActionFunction } from "../../../../../types/tasks.js";
import type { FunctionGasSnapshotCheckResult } from "../../function-gas-snapshots.js";
import type { SnapshotCheatcodesCheckResult } from "../../snapshot-cheatcodes.js";
import type { SuiteResult } from "@nomicfoundation/edr";
interface GasAnalyticsTestActionArguments {
snapshot: boolean;
snapshotCheck: boolean;
}
export interface SnapshotResult {
functionGasSnapshotsWritten: boolean;
}
export interface SnapshotCheckResult {
functionGasSnapshotsCheck: FunctionGasSnapshotCheckResult;
snapshotCheatcodesCheck: SnapshotCheatcodesCheckResult;
}
declare const runSolidityTests: TaskOverrideActionFunction<GasAnalyticsTestActionArguments>;
export declare function handleSnapshot(basePath: string, suiteResults: SuiteResult[], testsPassed: boolean): Promise<SnapshotResult>;
export declare function logSnapshotResult(result: SnapshotResult, logger?: typeof console.log): void;
export declare function handleSnapshotCheck(basePath: string, suiteResults: SuiteResult[]): Promise<SnapshotCheckResult>;
export declare function logSnapshotCheckResult({ functionGasSnapshotsCheck, snapshotCheatcodesCheck }: SnapshotCheckResult, logger?: typeof console.log): void;
export default runSolidityTests;
//# sourceMappingURL=task-action.d.ts.map