hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
14 lines • 1.03 kB
TypeScript
export declare const NATSPEC_MEMORY_SAFE_ASSEMBLY_WARNING = "Natspec memory-safe-assembly special comment for inline assembly is deprecated and scheduled for removal. Use the memory-safe block annotation instead.";
export declare const SPDX_WARNING = "SPDX license identifier not provided";
export declare const PRAGMA_WARNING = "Source file does not specify required compiler version";
/**
* Determines if a compiler warning should be suppressed.
*
* @param errorMessage - The formatted error message from the compiler
* @param absoluteSolidityTestsPath - Absolute path to the Solidity test directory
* @param absoluteProjectRoot - Absolute path to the project root
* @param coverage - Whether the build is running with `--coverage` enabled
* @returns true if the warning should be suppressed, false otherwise
*/
export declare function shouldSuppressWarning(errorMessage: string, absoluteSolidityTestsPath: string, absoluteProjectRoot: string, coverage: boolean): boolean;
//# sourceMappingURL=warning-suppression.d.ts.map