2022-11-25 10:12:55 +05:30
|
|
|
# Hardhat Project for Rln-interep-contract
|
2022-06-23 15:36:10 +02:00
|
|
|
|
2022-09-25 23:49:21 +02:00
|
|
|
## Compilation
|
2022-06-23 15:36:10 +02:00
|
|
|
|
|
|
|
```shell
|
2022-11-25 10:12:55 +05:30
|
|
|
yarn compile
|
2022-06-23 15:36:10 +02:00
|
|
|
```
|
|
|
|
|
2022-09-25 23:49:21 +02:00
|
|
|
## Testing
|
|
|
|
```shell
|
2022-11-25 10:12:55 +05:30
|
|
|
yarn test
|
2022-09-25 23:49:21 +02:00
|
|
|
```
|
2022-06-23 15:36:10 +02:00
|
|
|
|
2022-09-25 23:49:21 +02:00
|
|
|
## Deploying
|
2022-06-23 15:36:10 +02:00
|
|
|
|
2022-09-25 23:49:21 +02:00
|
|
|
- To deploy on local node, first start the local node and then run the deploy script
|
2022-06-23 15:36:10 +02:00
|
|
|
|
|
|
|
```shell
|
2022-11-25 10:12:55 +05:30
|
|
|
yarn start
|
|
|
|
yarn deploy:localhost
|
2022-06-23 15:36:10 +02:00
|
|
|
```
|
|
|
|
|
2022-09-25 23:49:21 +02:00
|
|
|
- To deploy to an target network (like Goerli), use the name as mentioned in the Hardhat config file.
|
2022-06-23 15:36:10 +02:00
|
|
|
|
|
|
|
```shell
|
2022-11-25 10:12:55 +05:30
|
|
|
yarn deploy:goerli
|
2022-06-23 15:36:10 +02:00
|
|
|
```
|
2022-09-25 23:49:21 +02:00
|
|
|
## References
|
2022-06-23 15:36:10 +02:00
|
|
|
|
2022-09-25 23:49:21 +02:00
|
|
|
For more information, see https://hardhat.org/hardhat-runner/docs/guides/project-setup
|