A Foundry-based project for Rate Limiting Nullifiers.
pnpm install # install Solhint, Prettier, and other Node.js deps
forge install # install Foundry's dependencies
If this is your first time with Foundry, check out the installation instructions.
forge build
forge fmt
Deletes the build artifacts and cache directories:
forge clean
Get a gas report:
forge test --gas-report
Run the tests:
forge test
Ensure you setup the .env file with the correct values mentioned in the .env.example file.
./script/deploy.sh rln <network>
Where <network>
is one of -
sepolia
polygon-zkevm
This will deploy the RLN contract, with its associated libraries to the specified network. If forge supports the network, it will also verify the contract on the block explorer.
This project is dual licensed under MIT and APACHE-2.0.