From 51238e5abeb77cba881d18b911dcdf44bd48dd6a Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 5 Oct 2021 21:37:52 +0100 Subject: [PATCH] hardhat: add page (#6627) --- pages/common/hardhat.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/hardhat.md diff --git a/pages/common/hardhat.md b/pages/common/hardhat.md new file mode 100644 index 0000000000..4d43c8d60e --- /dev/null +++ b/pages/common/hardhat.md @@ -0,0 +1,36 @@ +# hardhat + +> A development environment for Ethereum software. +> More information: . + +- List available subcommands (or create a new project if no configuration exists): + +`hardhat` + +- Compile the current project and build all artifacts: + +`hardhat compile` + +- Run a user-defined script after compiling the project: + +`hardhat run {{path/to/script.js}}` + +- Run Mocha tests: + +`hardhat test` + +- Run all given test files: + +`hardhat test {{path/to/file1.js}} {{path/to/file2.js}}` + +- Start a local Ethereum JSON-RPC node for development: + +`hardhat node` + +- Start a local Ethereum JSON-RPC node with a specific hostname and port: + +`hardhat node --hostname {{hostname}} --port {{port}}` + +- Clean the cache and all artifacts: + +`hardhat clean`