Initial commit
This commit is contained in:
41
hardhat/README.md
Normal file
41
hardhat/README.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# Hardhat 3 Project
|
||||
|
||||
This is a Hardhat 3 project, which uses the native Node.js test runner (`node:test`) and the `viem` library for Ethereum interactions.
|
||||
|
||||
|
||||
|
||||
## Building
|
||||
|
||||
To build, run:
|
||||
|
||||
```shell
|
||||
npx hardhat build
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Running Tests
|
||||
|
||||
To run all the tests in the project, execute the following command:
|
||||
|
||||
```shell
|
||||
npx hardhat test
|
||||
```
|
||||
|
||||
You can also selectively run the `node:test` tests:
|
||||
|
||||
```shell
|
||||
npx hardhat test nodejs
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Make a deployment to Next Testnet
|
||||
|
||||
This project includes an example Ignition module to deploy a contract to our testnet.
|
||||
|
||||
To run the deployment to Next Testnet, set your mnemonics in an .env file (MNEMONICS=...) and run:
|
||||
|
||||
```shell
|
||||
npx hardhat ignition deploy --network next ignition/modules/PowersOfTwo.ts
|
||||
```
|
||||
Reference in New Issue
Block a user