Skip to content

Latest commit

 

History

History
78 lines (51 loc) · 1.55 KB

README.md

File metadata and controls

78 lines (51 loc) · 1.55 KB

rln-contract Github Actions Foundry License: MIT

A Foundry-based project for Rate Limiting Nullifiers.

Getting Started

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.

Usage

Compilation

forge build

Format

forge fmt

Clean

Deletes the build artifacts and cache directories:

forge clean

Gas Usage

Get a gas report:

forge test --gas-report

Test

Run the tests:

forge test

Deployment

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.

License

This project is dual licensed under MIT and APACHE-2.0.