-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update contract #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this PR, we need to integrate the registry appropriately
src/constants.ts
Outdated
"event MemberRegistered(uint256 pubkey, uint256 index)", | ||
"event MemberWithdrawn(uint256 pubkey, uint256 index)", | ||
"function register(uint256[] calldata commitments) external payable", | ||
"event MemberRegistered(uint256 idCommitment, uint256 idCommitmentIndex)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this abi isn't quite right, we now use an rln registry contract, within which we have references to the storage contracts. you would want to first get the usingStorageIndex
from the registry contract, then subscribe to MemberRegistered
from that contract.
refer to how we do it in nwaku - https://github.com/waku-org/nwaku/blob/2e515a06ed0885a9e2b226a452b36bfdbfef324e/waku/waku_rln_relay/group_manager/on_chain/group_manager.nim#L30-L51 and https://github.com/waku-org/nwaku/blob/2e515a06ed0885a9e2b226a452b36bfdbfef324e/waku/waku_rln_relay/group_manager/on_chain/group_manager.nim#L398-L492
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pointers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, have you tested this e2e perhaps?
on my local setup, next step is to integrate into |
https://rfc.vac.dev/spec/64/#memberships
https://github.com/waku-org/waku-rln-contract/tree/main/deployments/sepolia
Resolves: #53