Skip to content

Conversation

@Lauman
Copy link
Contributor

@Lauman Lauman commented Oct 20, 2025

Description

The following listeners have been added to the SemaphoreEthers class:

  • onGroup (GroupCreated event): Return the ID of the newly created group.
  • onMember (MemberRemoved, MemberUpdated, MemberAdded events): Return the identity confirmation of the added, updated, or deleted members. For updates , the previous identity confirmation is returned.
  • onValidatedProof (ProofValidated event): Return the parameters of a validated proof.
  • onGroupAdmin (GroupAdminUpdated event): Return the addresses of the old and new admins.

Related Issue(s)

#326

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have run yarn format and yarn lint without getting any errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@Lauman Lauman requested a review from a team as a code owner October 20, 2025 22:11
@vplasencia vplasencia linked an issue Oct 23, 2025 that may be closed by this pull request
Copy link
Member

@vplasencia vplasencia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Lauman! Thank you very much for creating this PR. Great work! I added some comments.

the onMember method is separated and some names are adjusted

BREAKING CHANGE: N

re semaphore-protocol#326
the onMember method is separated and some names are adjusted

BREAKING CHANGE: N

re semaphore-protocol#326
@Lauman Lauman requested a review from vplasencia October 23, 2025 14:22
Copy link
Member

@vplasencia vplasencia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the updates. Just a few small changes and the PR is ready to be merged.

add missing merkleTreeRoot element in onMember events

re semaphore-protocol#326
@Lauman Lauman requested a review from vplasencia October 23, 2025 18:33
fix name listener of GroupAdminUpdated event

re semaphore-protocol#326
add groupId param to listener onGroupAdminUpdated

re semaphore-protocol#326
@Lauman Lauman requested a review from vplasencia October 23, 2025 20:25
Copy link
Member

@vplasencia vplasencia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding short descriptions (as code comments before the function declarations similar to the other functions) for the functions that remove listeners? That way all the functions will have consistent documentation.

Add short descriptions to off listeners methods

re semaphore-protocol#326
@Lauman
Copy link
Contributor Author

Lauman commented Oct 23, 2025

short descriptions

No problem. Done.

@Lauman Lauman requested a review from vplasencia October 23, 2025 21:43
Copy link
Member

@vplasencia vplasencia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @Lauman! Thank you very much! 🚀

@vplasencia vplasencia merged commit b55bf7f into semaphore-protocol:main Oct 23, 2025
2 of 4 checks passed
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 23, 2025

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2025 Semaphore Contributor:

GitPOAP: 2025 Semaphore Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Semaphore event listeners

2 participants