UNPKG

hardhat-abi-exporter

Version:

Export Ethereum smart contract ABIs on compilation

38 lines (34 loc) 984 B
import 'hardhat/types/config'; interface AbiExporterUserConfig { 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?: AbiExporterUserConfig | AbiExporterUserConfig[] } interface HardhatConfig { abiExporter: { 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, }[] } }