RLN contract
Go to file
rymnc bb8c88c546
fmt
2024-04-30 13:49:51 +05:30
.github chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.husky
certora chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
deployments feat: rln-v2 (#35) 2024-01-23 23:20:33 +05:30
lib fix: make tests compile with forge-std@1.6.0 2023-08-08 20:45:12 +02:00
script feat: rln-v2 (#35) 2024-01-23 23:20:33 +05:30
src chore(rln-v2): use lazyImt for gas estimates 2024-04-30 13:48:14 +05:30
test fmt 2024-04-30 13:49:51 +05:30
.editorconfig chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.env.example chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.eslintignore
.eslintrc.js
.gas-snapshot chore(rln-v2): use lazyImt for gas estimates 2024-04-30 13:48:14 +05:30
.gitattributes chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.gitignore chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.gitmodules chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.npmignore
.prettierignore chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.prettierrc
.prettierrc.yml chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.solcover.js
.solhint.json chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.solhintignore chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
LICENSE-APACHE
LICENSE-MIT
PROPERTIES.md chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
README.md chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
codecov.yml chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
foundry.toml chore(rln-v2): use lazyImt for gas estimates 2024-04-30 13:48:14 +05:30
package.json chore(rln-v2): use lazyImt for gas estimates 2024-04-30 13:48:14 +05:30
pnpm-lock.yaml chore(rln-v2): use lazyImt for gas estimates 2024-04-30 13:48:14 +05:30
remappings.txt chore(rln-v2): use lazyImt for gas estimates 2024-04-30 13:48:14 +05:30
slither.config.json chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30

README.md

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.