UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

28 lines 1.11 kB
import { HardforkHistoryConfig } from "../../types/config"; export declare enum HardforkName { FRONTIER = "chainstart", HOMESTEAD = "homestead", DAO = "dao", TANGERINE_WHISTLE = "tangerineWhistle", SPURIOUS_DRAGON = "spuriousDragon", BYZANTIUM = "byzantium", CONSTANTINOPLE = "constantinople", PETERSBURG = "petersburg", ISTANBUL = "istanbul", MUIR_GLACIER = "muirGlacier", BERLIN = "berlin", LONDON = "london", ARROW_GLACIER = "arrowGlacier", GRAY_GLACIER = "grayGlacier", MERGE = "merge", SHANGHAI = "shanghai", CANCUN = "cancun" } export declare function getHardforkName(name: string): HardforkName; /** * Check if `hardforkA` is greater than or equal to `hardforkB`, * that is, if it includes all its changes. */ export declare function hardforkGte(hardforkA: HardforkName, hardforkB: HardforkName): boolean; export declare function selectHardfork(forkBlockNumber: bigint | undefined, currentHardfork: string, hardforkActivations: HardforkHistoryConfig | undefined, blockNumber: bigint): string; //# sourceMappingURL=hardforks.d.ts.map