1.0.12 • Published 4 months ago
@nomicfoundation/hardhat-network-helpers v1.0.12
Hardhat Network Helpers
Hardhat Network Helpers is a library that provides a set of utility functions to interact with the Hardhat Network. You can read their full documentation here.
Installation
We recommend using npm 7 or later:
npm install --save-dev @nomicfoundation/hardhat-network-helpers
Usage
Import it and use it in any of your files. For example, this Hardhat script mines some blocks and then prints the block number.
const helpers = require("@nomicfoundation/hardhat-network-helpers");
async function main() {
// mine 100 blocks
await helpers.mine(100);
console.log("The current block number is", await helpers.time.latestBlock());
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
3.0.0-next.11
5 months ago
3.0.0-next.10
5 months ago
3.0.0-next.13
5 months ago
3.0.0-next.12
5 months ago
3.0.0-next.2
7 months ago
3.0.0-next.1
7 months ago
3.0.0-next.4
6 months ago
3.0.0-next.3
7 months ago
3.0.0-next.14
4 months ago
3.0.0-next.0
8 months ago
3.0.0-next.9
5 months ago
3.0.0-next.6
6 months ago
3.0.0-next.5
6 months ago
3.0.0-next.8
5 months ago
3.0.0-next.7
5 months ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.0-beta.4
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
0.0.1
3 years ago
1.0.0-beta.2
3 years ago
1.0.0-beta.3
3 years ago
1.0.0-beta.1
4 years ago
1.0.0-beta.0
4 years ago