33 lines
890 B
Markdown
Raw Normal View History

2022-11-25 17:07:22 -08:00
The [RLN](contracts/Rln.sol) and [PoseidonHasher](contracts/PoseidonHasher.sol) smart contracts are initially borrowed from the following repository https://github.com/kilic/rlnapp and some modifications are made on top of them.
2022-11-25 16:47:35 -08:00
They may undertake further changes in the future as needed.
2022-09-25 23:49:21 +02:00
# Hardhat Project for Rln-membership-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
npx hardhat compile
```
2022-09-25 23:49:21 +02:00
## Testing
```shell
npx hardhat test
```
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-09-25 23:49:21 +02:00
npx hardhat node
npx hardhat run --network localhost scripts/deploy.ts
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-09-25 23:49:21 +02:00
npx hardhat run --network <your-network> scripts/deploy.js
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