Skip to content

vacp2p/rln-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

98df444 · Apr 26, 2024

History

88 Commits
Dec 6, 2023
Mar 30, 2023
Dec 5, 2023
Apr 26, 2024
Aug 8, 2023
Apr 26, 2024
Apr 15, 2024
Dec 4, 2023
Dec 4, 2023
Dec 4, 2023
Jun 23, 2022
Jun 23, 2022
Dec 6, 2023
Dec 4, 2023
Dec 4, 2023
Dec 4, 2023
Jun 23, 2022
Dec 5, 2023
Jun 23, 2022
Dec 4, 2023
Mar 29, 2023
Dec 4, 2023
Dec 4, 2023
Mar 29, 2023
Mar 29, 2023
Dec 4, 2023
Dec 4, 2023
Dec 4, 2023
Dec 6, 2023
Apr 15, 2024
Apr 15, 2024
Apr 15, 2024
Dec 4, 2023

Repository files navigation

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.