Commit Graph

30 Commits

Author SHA1 Message Date
Aaryamann Challani 5d9108a138
feat: rln-v2 (#35)
* feat: init rln-v2 changes

* chore: remove poseidont3, dont calculate rate commitments

* fix: deploy script

* feat: add g16 verifier

* chore: deploy to sepolia and polygon-zkevm-testnet

* chore: snapshot

* fix(rln): reuse getDepositAmount func
2024-01-23 23:20:33 +05:30
Aaryamann Challani 9ee3217886
chore: patch foundry template (#34) 2024-01-11 14:59:18 +05:30
Aaryamann Challani 35f2182669
fix(rln): use zero based indexing for commitments (#28) 2023-08-30 22:17:07 +05:30
Aaryamann Challani bd8403a74e
chore: use deployed block number (#27)
* chore: add deployedBlockNumber to the constructor

* fix: use uint32 instead of uint256 for deployedBlockNumber
2023-08-21 12:37:15 +05:30
Aaryamann Challani d899a0ca85
fix: constraint on bn254 values (#26)
* fix: constraint on bn254 values

* fix: test sig

* fix: test invalid id commitment
2023-08-16 18:50:49 +05:30
r4bbit e13af692f7 fix: make tests compile with forge-std@1.6.0
There was a breaking change introduced in `forge-std` at
https://github.com/foundry-rs/forge-std/pull/407 which breaks
compilation of `Rln.t.sol` with `forge-std@v1.6.0`.

This commit updates the dependency to v1.6.0 and adjusts the test source
such that it successfully compiles.

Another way to go about this would've been to just stick with `v1.5.6.`
and ensuring installation of that version.
However, I've decided to update the dependency to the latest stable
version instead.
2023-08-08 20:45:12 +02:00
rymnc ab148a6497
fix: args 2023-07-27 17:22:29 +05:30
rymnc 5cbeb45a8a
fix: test file name 2023-07-27 10:38:21 +05:30
rymnc 5d3b5dddcc
fix: rename file 2023-07-27 09:50:59 +05:30
rymnc 766366c612
chore: convert rln to rlnbase, and inherit into rln 2023-07-26 16:40:55 +05:30
rymnc fc606d98b2
chore: create verifier and integrate 2023-05-26 13:31:05 +05:30
rymnc 18783ba67e
fix: remove batching ops, include index in removal 2023-05-23 12:24:58 +05:30
rymnc d8a9435fa7
fix: hardhat tests 2023-03-30 20:28:04 +05:30
rymnc 99c6625b40
fix: remove .transfer from loops 2023-03-30 20:24:39 +05:30
rymnc ab78e5d8d0
feat: custom errors 2023-03-30 17:30:54 +05:30
rymnc cae34e64d8
fix: workaround assumePayable 2023-03-29 17:51:48 +05:30
rymnc 7c081c1ad8
fix: reorder assumePayable 2023-03-29 17:29:33 +05:30
rymnc d2ce17af4b
fix: remove remnant test from interep integration 2023-03-29 17:23:21 +05:30
rymnc 39c7b0b31e
feat: coverage 2023-03-29 17:18:00 +05:30
rymnc 70e5199c3c
fix: remove unncessary function from poseidon, add Rln.t.sol 2023-03-29 15:19:32 +05:30
rymnc 2cc32d000a
feat: foundry integration 2023-03-29 12:28:42 +05:30
rymnc 5d59fbfe41
feat: integrate plugins from rln-interep-contract 2023-03-29 11:58:09 +05:30
rymnc d11fa4d452
fix: disallow dupe registrations 2022-11-25 14:34:30 +05:30
s1fr0 77467a06ac
refactor(test): improve poseidon/rln register/withdraw test 2022-10-04 14:56:09 +02:00
s1fr0 5a49736ee4
feat(rln): add test for registration/withdraw 2022-10-04 02:35:29 +02:00
s1fr0 8a70eb7c28
feat(poseidon): add hash test for random value 2022-10-04 01:23:40 +02:00
s1fr0 c30913520f
refactor(poseidon): use correct constants in poseidon, i.e. hardcode Bn254(2,8,56) 2022-10-04 01:09:33 +02:00
Keshav Gupta d8c3d4e62f Using unindexed events. Setting depth to 20 2022-06-23 18:21:08 +02:00
Keshav Gupta 5544cd7ce2 Case sensitive naming 2022-06-23 16:42:29 +02:00
Keshav Gupta ffc962b472 Initializing Repository 2022-06-23 15:36:10 +02:00