hardhat-abi-exporter
Version:
Export Ethereum smart contract ABIs on compilation
41 lines (40 loc) • 1.19 kB
TypeScript
import './tasks/clean';
import './tasks/clear_abi';
import './tasks/compile';
import './tasks/export_abi';
import 'hardhat/types/config';
interface AbiExporterUserConfigEntry {
path?: string;
runOnCompile?: boolean;
clear?: boolean;
flat?: boolean;
only?: string[];
except?: string[];
spacing?: number;
pretty?: boolean;
format?: string;
filter?: (abiElement: any, index: number, abi: any, fullyQualifiedName: string) => boolean;
rename?: (sourceName: string, contractName: string) => string;
}
export interface AbiExporterConfigEntry {
path: string;
runOnCompile: boolean;
clear: boolean;
flat: boolean;
only: string[];
except: string[];
spacing: number;
pretty: boolean;
format: string;
filter: (abiElement: any, index: number, abi: any, fullyQualifiedName: string) => boolean;
rename: (sourceName: string, contractName: string) => string;
}
declare module 'hardhat/types/config' {
interface HardhatUserConfig {
abiExporter?: AbiExporterUserConfigEntry | AbiExporterUserConfigEntry[];
}
interface HardhatConfig {
abiExporter: AbiExporterConfigEntry[];
}
}
export {};