33 Commits

Author SHA1 Message Date
Sergei Tikhomirov
96364ac87a
separate eraseMembership functions to user-focused (lazy) and admin-focused (tree cleanup) 2024-10-03 12:35:25 +02:00
Sergei Tikhomirov
018ba1c9d2
define period boundaries: start inclusive, end exclusive 2024-10-03 10:38:04 +02:00
Sergei Tikhomirov
0201d38f6f
minor refactoring, comments 2024-10-02 17:57:28 +02:00
Sergei Tikhomirov
0d2ee0a403
fix: off-by-one: end index can't be equal to next free index 2024-10-02 17:13:43 +02:00
Sergei Tikhomirov
fb9e27975f
optional lazy erasure from membership set 2024-10-02 11:28:16 +02:00
Sergei Tikhomirov
bf70df2911
save active duration per membership (must carry over after extension) 2024-10-01 19:42:44 +02:00
Sergei Tikhomirov
deb7371650
extract membership expiration calculation to internal function 2024-10-01 19:07:42 +02:00
Sergei Tikhomirov
79f694c79f
refactor, group functions by funcitonality 2024-10-01 14:21:03 +02:00
Sergei Tikhomirov
6ffac526ba
minor renaming, comments 2024-10-01 10:36:00 +02:00
Sergei Tikhomirov
9ceae53677
do not reset ongoing grace period on extension (cf. spec change) 2024-09-30 17:14:32 +02:00
Sergei Tikhomirov
eedd9288f2
refactor, minor fixes 2024-09-27 20:24:03 +02:00
Sergei Tikhomirov
ce52272102
chore: improve terminology consistency (#16)
improve terminology consistency and minor refactoring
2024-09-27 18:18:59 +02:00
Sergei Tikhomirov
a58f54f0e2
refactor: more DRY in LinearPriceCalculator 2024-09-25 11:58:51 +02:00
Sergei Tikhomirov
4fdcdbc73c
chore: unify terminology for mdetails 2024-09-23 17:14:27 +02:00
Richard Ramos
c967934a41
refactor: do not keep track of membership registration order 2024-09-18 16:45:41 -04:00
Richard Ramos
df502c78ff
fix: code review 2024-09-18 16:42:57 -04:00
Richard Ramos
a658315e03
chore: rename commitmentIndex to nextCommitmentIndex 2024-09-11 10:36:02 -04:00
Richard Ramos
12e837a1e2
feat: allow choosing automatic membership erases and specific membership removal on register 2024-09-09 22:01:50 -04:00
Richard Ramos
c66f72897b
fix: type for rate limit in price calculator 2024-09-09 17:23:43 -04:00
Richard Ramos
7f60c538b3
fix: remove ETH support 2024-09-09 14:58:28 -04:00
Richard Ramos
0cd80d639c
refactor: use expiration term instead of billing period 2024-09-09 12:20:58 -04:00
Richard Ramos
f91269a1b0
fix: lint 2024-09-06 19:32:03 -04:00
Richard Ramos
9251400051
chore: some fixes and gas optimizations 2024-09-06 16:12:19 -04:00
Richard Ramos
9a1c1dc33d
refactor: minor optimization when expiring memberships 2024-09-06 12:09:04 -04:00
Richard Ramos
5ddfc3554d
chore: more test units and fixes 2024-09-06 11:31:43 -04:00
Richard Ramos
fe018930dc
chore: more test units and fixes 2024-09-06 09:58:56 -04:00
Richard Ramos
f3d085df8d
feat: membership 2024-09-05 17:17:49 -04:00
Aaryamann Challani
a576a8949c
chore: emit rate commitment instead of idcommitment (#9)
chore: emit rate commitment instead of idcommitment

chore

chore

forge install: openzeppelin-contracts

v4.9.6

forge install: openzeppelin-contracts-upgradeable

v4.9.6

fix: use oz v4.9.6
2024-06-03 21:09:11 +05:30
Aaryamann Challani
48542f3f04
chore: integrate proxy (#8)
* forge install: openzeppelin-foundry-upgrades

v0.3.1

* forge install: openzeppelin-contracts-upgradeable

v5.0.2

* test: integrate transparent proxy

* test: patch

* fix 

* fix: adorno

* fix: add cardona deployment

* fix: broken test for upgrade

* fix: cleanup

* fix: cleanup

* fix: lint

* fix: remove upgrade from Deploy.s.sol

* fix: envCheck
2024-05-30 19:21:55 +05:30
Aaryamann Challani
5f0d62d52e
chore(tests): add kats test for merkle proof (#7)
* chore(tests): add kats test for merkle proof

fix: cleanup, snapshot

* fix: fixed size return for proof

* fix: remove redundant size check
2024-05-28 18:51:01 +05:30
Aaryamann Challani
4c6b8fb253
chore: tests (#5)
* chore: tests

* fix: add helper to get all metadata from idCommitment

* fix: max runs

* fix: full tree test

* fix: refactor, reuse function for memberExists

* fix: getCommitments range and cut scope from other tests

* fix: range for assert on pagination

* fix: duped conditionals
2024-05-28 15:33:16 +05:30
Aaryamann Challani
6d028a1308
chore: add the initial contract after few optimizations (#4)
* chore: add deps

* fix: fmt in package.json

* chore: add the initial contract after few optimizations

* fix: lint

* chore: more optimizations

* chore: adorno

* fix: test getCommitments too

* chore: add kats

* fix: adorno

* fix: install deps before running build

* ci: add pnpm install before other jobs

* fix: remove magic number

* fix: remove unused errors,events and hardcode depth
2024-05-23 18:33:41 +05:30
rymnc
284cc38916 feat: initial commit 2024-05-21 00:46:20 +00:00