pact-audit-free
Version:
Free smart contract security scanner using Slither static analysis
24 lines • 696 B
TypeScript
export interface Vulnerability {
type: string;
severity: 'HIGH' | 'MEDIUM' | 'LOW' | 'INFORMATIONAL';
description: string;
sourceMapping?: {
filename: string;
lines: number[];
};
confidence?: string;
impact?: string;
}
export interface SlitherResult {
success: boolean;
vulnerabilities: Vulnerability[];
error?: string;
rawOutput?: string;
}
export declare function checkSlitherInstallation(): Promise<boolean>;
export declare function validatePath(targetPath: string): {
valid: boolean;
error?: string;
};
export declare function runSlitherScan(targetPath: string): Promise<SlitherResult>;
//# sourceMappingURL=slither.d.ts.map