11 Commits

Author SHA1 Message Date
richΛrd
3fea0a5201
refactor: do not keep track of membership registration order (#14)
* refactor: do not keep track of membership registration order
* unify terminology for mdetails
* more DRY in LinearPriceCalculator
* improve terminology consistency (#16)
* refactor, minor fixes
* do not reset ongoing grace period on extension (cf. spec change)
* minor renaming, comments
* refactor, group functions by funcitonality
* extract membership expiration calculation to internal function
* save active duration per membership (must carry over after extension)
* optional lazy erasure from membership set
* minor fixes in tests
* fix: off-by-one: end index can't be equal to next free index
* minor refactoring, comments
* define period boundaries: start inclusive, end exclusive
* separate eraseMembership functions to user-focused (lazy) and admin-focused (tree cleanup)
* minor fix to maintain line lengths
* unify membership-related events
* add test for  zero grace period
* fix typo in comment

Co-authored-by: richΛrd <info@richardramos.me>

---------

Co-authored-by: richΛrd <info@richardramos.me>

* code review

* refactor: unique register function

* fix: split errors of `_eraseMembershipLazily`

* chore: minor naming clarifications

---------

Co-authored-by: Sergei Tikhomirov <sergey.s.tikhomirov@gmail.com>
2024-10-08 08:58:43 -04:00
Richard Ramos
3fbcbfe624
chore: update readme and script to allow running on anvil 2024-09-11 12:21:25 -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
f3d085df8d
feat: membership 2024-09-05 17:17:49 -04:00
rymnc
64df4593c6
fix: update gitpkg url for zk-kit, default max msg limit 100 2024-06-27 13:59:24 +05:30
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
834cdbf5bb
chore(deployments): update deployments script (#6) 2024-05-28 17:56:10 +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