Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
hardhat Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# hardhat
> A development environment for Ethereum software.
> More information: <https://hardhat.org>.
- 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`