Commit Graph

65 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 b0e78f260d
chore: remove API and private keys from .env file (#23)
Few things:

1. I don't think we want to expose any etherscan API keys we use. We also
   don't want to expose any private keys.
2. Not sure where this private key comes from, likely a ganache/anvil
   generated account, but nonetheless, I think the `.env.example` file
   is meant to be copied to `.env` and then changes are done there.
2023-08-08 20:50:07 +02:00
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 a092b934a6
fix: make all functions virtual 2023-07-31 10:49:29 +05:30
rymnc ab148a6497
fix: args 2023-07-27 17:22:29 +05:30
rymnc 4124f28f4a
chore: remappings 2023-07-27 11:46:55 +05:30
Aaryamann Challani 4e14c58c67
Merge pull request #22 from vacp2p/test-pluggable-validation-logic
test pluggable validation logic
2023-07-27 10:40:53 +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 2dd8d56d5f
chore: updated deployments 2023-05-31 13:07:48 +05:30
rymnc 429a3ff404
chore: ready for redeploy 2023-05-31 12:59:56 +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
Aaryamann Challani b66d431040
Merge pull request #21 from vacp2p/fix-bugs
fix: remove .transfer from loops
2023-03-31 14:07:32 +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
Aaryamann Challani 2c4ddb0312
Merge pull request #20 from vacp2p/redeploy-to-sepolia
feat: sepolia deployment
2023-03-30 18:31:09 +05:30
rymnc f99eb2aa0d
feat: sepolia deployment 2023-03-30 18:29:06 +05:30
Aaryamann Challani 75ba356d01
Merge pull request #19 from vacp2p/custom-errors
feat: custom errors
2023-03-30 18:24:42 +05:30
rymnc ab78e5d8d0
feat: custom errors 2023-03-30 17:30:54 +05:30
Aaryamann Challani 4b87223904
Merge pull request #18 from vacp2p/natspec-comments
docs: natspec comments + docgen
2023-03-30 17:03:20 +05:30
rymnc 71ba5338cf
docs: natspec, docgen 2023-03-30 12:24:58 +05:30
Aaryamann Challani ca05aee912
Merge pull request #17 from vacp2p/upstream-fixes-foundry
Modernize repo, use foundry, deploy to sepolia
2023-03-29 17:58:50 +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 155619c632
fix: use foundry reporter instead 2023-03-29 14:17:51 +05:30
rymnc ce78e2ca63
fix: install forge in ci 2023-03-29 12:51:46 +05:30
rymnc f0ac6c3022
fix: package version 2023-03-29 12:45:56 +05:30
rymnc a14fce896d
feat: deployed to sepolia 2023-03-29 12:43:14 +05:30
rymnc 469d298fb8
fix: lint 2023-03-29 12:29:47 +05:30
rymnc 950abc403a
fix: pre commit hook perms 2023-03-29 12:29:30 +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
Aaryamann Challani e31da6ac40
Merge pull request #12 from vacp2p/disallow-multiple-registrations
fix: disallow dupe registrations
2022-12-01 10:06:09 +05:30
oskarth 6cdfb61456
Merge pull request #13 from vacp2p/adds-missing-links
Adds link to the rlnapp repo
2022-11-29 11:22:57 +08:00
sanaz 5867cda455
rewords 2022-11-25 17:07:22 -08:00
sanaz 660a7b2efd
adds link to the rlnapp repo 2022-11-25 16:47:35 -08:00
rymnc d11fa4d452
fix: disallow dupe registrations 2022-11-25 14:34:30 +05:30
Richard Ramos db3beff91a fix: solidity version 2022-10-26 08:32:48 -04:00
G b8d0a298c7
Merge pull request #9 from vacp2p/update-poseidon
refactor(poseidon): use correct constants in Poseidon
2022-10-04 23:02:30 +02:00
s1fr0 72fb565465
fix(rln): typo 2022-10-04 15:15:00 +02:00
s1fr0 77467a06ac
refactor(test): improve poseidon/rln register/withdraw test 2022-10-04 14:56:09 +02:00