hardhat-contract-sizer
Version:
Output Solidity contract sizes with Hardhat
30 lines (27 loc) • 640 B
TypeScript
import "hardhat/types/config";
declare module "hardhat/types/config" {
interface HardhatUserConfig {
contractSizer?: {
alphaSort?: boolean;
disambiguatePaths?: boolean;
runOnCompile?: boolean;
strict?: boolean;
only?: string[];
except?: string[];
outputFile?: string;
unit?: 'B' | 'kB' | 'KiB';
};
}
interface HardhatConfig {
contractSizer: {
alphaSort: boolean;
disambiguatePaths: boolean;
runOnCompile: boolean;
strict: boolean;
only: string[];
except: string[];
outputFile: string;
unit: 'B' | 'kB' | 'KiB';
};
}
}