RLN contract
Go to file
rymnc 373942b8fd
fix: unused storage access
2024-01-24 14:55:39 +05:30
.github chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.husky docs: natspec, docgen 2023-03-30 12:24:58 +05:30
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 fix: unused storage access 2024-01-24 14:55:39 +05:30
test feat: rln-v2 (#35) 2024-01-23 23:20:33 +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 Initializing Repository 2022-06-23 15:36:10 +02:00
.eslintrc.js Initializing Repository 2022-06-23 15:36:10 +02:00
.gas-snapshot feat: rln-v2 (#35) 2024-01-23 23:20:33 +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 Initializing Repository 2022-06-23 15:36:10 +02:00
.prettierignore chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.prettierrc Initializing Repository 2022-06-23 15:36:10 +02:00
.prettierrc.yml chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
.solcover.js feat: integrate plugins from rln-interep-contract 2023-03-29 11:58:09 +05:30
.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 feat: integrate plugins from rln-interep-contract 2023-03-29 11:58:09 +05:30
LICENSE-MIT feat: integrate plugins from rln-interep-contract 2023-03-29 11:58:09 +05:30
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: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
package.json chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
pnpm-lock.yaml chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
remappings.txt chore: patch foundry template (#34) 2024-01-11 14:59:18 +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.