2022-09-25 21:49:21 +00:00
|
|
|
# Hardhat Project for Rln-membership-contract
|
2022-06-23 13:36:10 +00:00
|
|
|
|
2022-09-25 21:49:21 +00:00
|
|
|
## Compilation
|
2022-06-23 13:36:10 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
npx hardhat compile
|
|
|
|
```
|
|
|
|
|
2022-09-25 21:49:21 +00:00
|
|
|
## Testing
|
|
|
|
```shell
|
|
|
|
npx hardhat test
|
|
|
|
```
|
2022-06-23 13:36:10 +00:00
|
|
|
|
2022-09-25 21:49:21 +00:00
|
|
|
## Deploying
|
2022-06-23 13:36:10 +00:00
|
|
|
|
2022-09-25 21:49:21 +00:00
|
|
|
- To deploy on local node, first start the local node and then run the deploy script
|
2022-06-23 13:36:10 +00:00
|
|
|
|
|
|
|
```shell
|
2022-09-25 21:49:21 +00:00
|
|
|
npx hardhat node
|
|
|
|
npx hardhat run --network localhost scripts/deploy.ts
|
2022-06-23 13:36:10 +00:00
|
|
|
```
|
|
|
|
|
2022-09-25 21:49:21 +00:00
|
|
|
- To deploy to an target network (like Goerli), use the name as mentioned in the Hardhat config file.
|
2022-06-23 13:36:10 +00:00
|
|
|
|
|
|
|
```shell
|
2022-09-25 21:49:21 +00:00
|
|
|
npx hardhat run --network <your-network> scripts/deploy.js
|
2022-06-23 13:36:10 +00:00
|
|
|
```
|
2022-09-25 21:49:21 +00:00
|
|
|
## References
|
2022-06-23 13:36:10 +00:00
|
|
|
|
2022-09-25 21:49:21 +00:00
|
|
|
For more information, see https://hardhat.org/hardhat-runner/docs/guides/project-setup
|