RLN contract
Go to file
rymnc 98df444e79
chore: cardona deployment
2024-04-26 11:51:34 +02:00
.github chore: remove template files 2023-12-06 16:47:38 +05:30
.husky docs: natspec, docgen 2023-03-30 12:24:58 +05:30
certora chore: disable pnpm verify 2023-12-05 15:08:33 +05:30
deployments chore: cardona deployment 2024-04-26 11:51:34 +02:00
lib fix: make tests compile with forge-std@1.6.0 2023-08-08 20:45:12 +02:00
script chore: cardona deployment 2024-04-26 11:51:34 +02:00
src feat: integrate LazyIMT with getting the merkle proof from the chain 2024-04-16 02:50:41 +05:30
test fix: sol versions, solhintignore 2023-12-04 17:48:15 +05:30
.editorconfig chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
.env.example chore: add deployments 2023-12-04 16:36: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 chore: add gas snapshot 2023-12-06 16:46:09 +05:30
.gitattributes chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
.gitignore chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
.gitmodules chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
.npmignore Initializing Repository 2022-06-23 15:36:10 +02:00
.prettierignore chore: add deployments to .prettierignore 2023-12-05 14:20:31 +05:30
.prettierrc Initializing Repository 2022-06-23 15:36:10 +02:00
.prettierrc.yml chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
.solcover.js feat: integrate plugins from rln-interep-contract 2023-03-29 11:58:09 +05:30
.solhint.json chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
.solhintignore fix: sol versions, solhintignore 2023-12-04 17:48:15 +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: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
README.md fix: sol versions, solhintignore 2023-12-04 17:48:15 +05:30
codecov.yml chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +05:30
foundry.toml chore: back to paris 2023-12-06 16:48:30 +05:30
package.json feat: integrate LazyIMT with getting the merkle proof from the chain 2024-04-16 02:50:41 +05:30
pnpm-lock.yaml feat: integrate LazyIMT with getting the merkle proof from the chain 2024-04-16 02:50:41 +05:30
remappings.txt feat: integrate LazyIMT with getting the merkle proof from the chain 2024-04-16 02:50:41 +05:30
slither.config.json chore: move to vacp2p/foundry-template 2023-12-04 15:14:24 +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.