@atixlabs/hardhat-time-n-mine
Version:
Hardhat plugin to manipulate time and mine blocks
18 lines (15 loc) • 596 B
text/typescript
import "hardhat/types/runtime";
import "./time-and-mine";
declare module "hardhat/types/runtime" {
// This is an example of an extension to the Hardhat Runtime Environment.
// This new field will be available in tasks' actions, scripts, and tests.
export interface HardhatRuntimeEnvironment {
timeAndMine: {
increaseTime: (delta: string) => Promise<void>;
setTimeIncrease: (delta: string) => Promise<void>;
mine: (amount: number) => Promise<void>;
setTime: (time: number) => Promise<void>;
setTimeNextBlock: (time: number) => Promise<void>;
};
}
}