Arseniy Klempner
3e2255dbda
fix: update comments, tsconfig
2025-11-21 10:06:30 -08:00
Arseniy Klempner
5a7b549c37
fix: refactor to use a single viem client object
2025-11-21 10:06:30 -08:00
Arseniy Klempner
8620014ccd
feat: migrate rln from ethers to viem
2025-11-21 10:06:30 -08:00
Arseniy Klempner
3bede7a7b8
feat: use wagmi to generate contract types
2025-11-21 10:06:30 -08:00
Arseniy Klempner
bbcfc94879
feat(rln)!: use zerokit for credential generation ( #2632 )
...
Co-authored-by: Danish Arora <danisharora099@gmail.com>
2025-09-30 16:49:18 -07:00
Danish Arora
7f7f772d93
feat(rln): price calculator for rate limits ( #2480 )
...
* chore: add ABI for PriceCalculator
* chore: rename LINEA_CONTRACT to RLN_CONTRACT
* chore: add price calculator & test
* fix: import
* chore: convert e2e test to unit
* fix: test
2025-07-16 15:16:13 +05:30
Danish Arora
3b23bceb9d
feat: refine work with membership info and other meta information ( #2341 )
...
* chore: update definitions to match the ABI
* chore: improve exports and types
* chore: use big endian instead of little endian
* chore: improve logging
* chore: update import
* fix: use overloaded function call
* chore: estimate gas
* test
* npm i
* chore: regen locl
* chore: update
* chore: update playwright docker images
* chore: cannot erase membership if it isn't expired/in grace period
* chore: fix condition
* chore: add `getMembershipStatus` method
* refactor(rln): cache min/max rate limits at contract instantiation
* chore: fix accessor
* chore: rename arg
* chore: allow chromebin path through env
2025-05-29 16:09:08 +05:30
Danish Arora
4adf8706c3
feat(rln): create CredentialsManager without Zerokit ( #2295 )
...
* chore: update ABI
* chore: update contract address and chain ID to Linea Sepolia
* chore: improve error handling
* fix: bigint conversion
* chore: update tests
* chore: clean comments
* chore: export keystore types
* chore: update README with contract address
* tests: add reusable mock functions
* chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT
* chore: add linea to cspell
* chore: add rateLimit to MembershipInfo
* fix: determine start options
* feat: RLNLight
* chore: fix
* chore: export
* fix: returns for ratelimit
* chore: big number conversions
* chore: rename RLNLight to CredentialsManager, add logs
* chore: setup and use rln_base_contract
* chore: use CredentialsManager for rln.ts
* chore: public methods written above private methods
* fix: rate limit getter
* chore: simplify getters/setters
* chore: insert empty line
2025-04-07 16:04:06 +05:30
Danish Arora
a8ff776962
chore(rln): update ABI and contract address to Linea Sepolia, enhancements ( #2294 )
...
* chore: update ABI
* chore: update contract address and chain ID to Linea Sepolia
* chore: improve error handling
* fix: bigint conversion
* chore: update tests
* chore: clean comments
* chore: export keystore types
* chore: update README with contract address
* tests: add reusable mock functions
* chore: LINEA_CONTRACT instead of SEPOLIA_CONTRACT
* chore: add linea to cspell
* chore: add rateLimit to MembershipInfo
* fix(tests): rate limit additions
* chore: update gitignore
2025-03-31 14:32:29 +05:30
Danish Arora
6fc6bf3916
feat(rln): migrate from v1 to v2, rate limiting, memberships, test coverage ( #2262 )
...
* chore: update ABIs and deployed address
* chore: remove storage contract references
* feat: upgrading adapter to basic rlnv2
* feat: rate limit
* chore: upgrade packages revert
* fix: tests
* chore: remove uneeded file
* feat(rln): implement RLNv2 rate limiting and membership states
- Add rate limit validation and handling in proof generation/verification
- Implement membership lifecycle state management (Active/GracePeriod/Expired)
- Add new membership management methods:
- getMembershipInfo
- extendMembership
- eraseMembership
- registerMembership
- Update proof verification to include rate limit checks
- Refactor message serialization to include rate limit data
Breaking changes:
- verifyWithRoots now takes roots as array instead of spread parameters
- Proof verification methods now accept optional rateLimit parameter
* fix: typo
* chore: add to cspell
* chore: reduce diff
* chore: simplify subdir for abi
* chore: address comments
* chore: simplify access to variables
* chore: address comments
* chore: simplify constants
* chore: add error handling
* chore: change rln v2 references to rln
* fix: check
2025-03-03 18:14:06 +05:30
Danish Arora
0a0a92bccb
feat: @waku/rln ( #2244 )
...
* chore: setup rln as a new package
* chore: migrate src
* fix: wasm loading, tests, config
* chore: fix Karma CI
* fix: bundler
* chore: copy dist resources
* chore(rln): enable all tests
* chore: increase karma timeouts
2025-02-11 15:28:00 +05:30