Refactor/type-validation#951
Merged
vplasencia merged 2 commits intosemaphore-protocol:mainfrom Feb 3, 2025
Merged
Conversation
vplasencia
approved these changes
Feb 3, 2025
Member
vplasencia
left a comment
There was a problem hiding this comment.
Great work @FaezehShakouri! Thank you very much!
|
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2025 Semaphore Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Lauman
added a commit
to crowd-wisdom/semaphore
that referenced
this pull request
Feb 12, 2025
* docs: update contributing and pull_request_template files * feat(website): add obscurus to projects section (semaphore-protocol#941) re semaphore-protocol#939 * chore: fix 404 status URL (semaphore-protocol#917) Signed-off-by: hanghuge <[email protected]> * docs(website): update roadmap (semaphore-protocol#943) docs(website): update roadmap on the website * docs: make year update dynamically on website and docs (semaphore-protocol#945) * docs: make year update dynamically on website and docs * docs(docs): make year update dynamically * docs: fix broken link and typo correction (semaphore-protocol#923) * broken redirect CONTRIBUTING.md * typo README.md * docs: fixed circuit logic url (semaphore-protocol#931) fix: circuit logic url * chore(subgraph): update matchstick-as dependency (semaphore-protocol#946) * chore(subgraph): update matchstick-as dependency * chore(subgraph): update dependency versions * ci: update pull request workflow to install libssl1.1 before testing the subgraph * ci: update pull requests workflow * ci: update ubuntu version * ci: update ubuntu version in tests * ci: update ubuntu version * Add new article (semaphore-protocol#918) * Add new article * Update apps/website/src/data/articles.json remove referral link Co-authored-by: Vivian Plasencia <[email protected]> --------- Co-authored-by: Vivian Plasencia <[email protected]> * revert(subgraph): reverses changes made (semaphore-protocol#952) re semaphore-protocol#915 * Refactor/type-validation (semaphore-protocol#951) * chore(data): add @zk-kit/utils dependency * refactor(data): refactor parameter validation using @zk-kit/utils * chore: update utils package version (semaphore-protocol#954) * chore: v4.9.0 --------- Signed-off-by: hanghuge <[email protected]> Co-authored-by: Vivian Plasencia <[email protected]> Co-authored-by: 0xpanoramix <[email protected]> Co-authored-by: hanghuge <[email protected]> Co-authored-by: youyyytrok <[email protected]> Co-authored-by: Sumit Vekariya <[email protected]> Co-authored-by: zanastas <[email protected]> Co-authored-by: Chidozie DAVID <[email protected]> Co-authored-by: Faezeh Shakouri <[email protected]>
Lauman
added a commit
to crowd-wisdom/semaphore
that referenced
this pull request
Feb 12, 2025
* docs: update contributing and pull_request_template files * feat(website): add obscurus to projects section (semaphore-protocol#941) re semaphore-protocol#939 * chore: fix 404 status URL (semaphore-protocol#917) * docs(website): update roadmap (semaphore-protocol#943) docs(website): update roadmap on the website * docs: make year update dynamically on website and docs (semaphore-protocol#945) * docs: make year update dynamically on website and docs * docs(docs): make year update dynamically * docs: fix broken link and typo correction (semaphore-protocol#923) * broken redirect CONTRIBUTING.md * typo README.md * docs: fixed circuit logic url (semaphore-protocol#931) fix: circuit logic url * chore(subgraph): update matchstick-as dependency (semaphore-protocol#946) * chore(subgraph): update matchstick-as dependency * chore(subgraph): update dependency versions * ci: update pull request workflow to install libssl1.1 before testing the subgraph * ci: update pull requests workflow * ci: update ubuntu version * ci: update ubuntu version in tests * ci: update ubuntu version * Add new article (semaphore-protocol#918) * Add new article * Update apps/website/src/data/articles.json remove referral link --------- * revert(subgraph): reverses changes made (semaphore-protocol#952) re semaphore-protocol#915 * Refactor/type-validation (semaphore-protocol#951) * chore(data): add @zk-kit/utils dependency * refactor(data): refactor parameter validation using @zk-kit/utils * chore: update utils package version (semaphore-protocol#954) * chore: v4.9.0 --------- Signed-off-by: hanghuge <[email protected]> Co-authored-by: Vivian Plasencia <[email protected]> Co-authored-by: 0xpanoramix <[email protected]> Co-authored-by: hanghuge <[email protected]> Co-authored-by: youyyytrok <[email protected]> Co-authored-by: Sumit Vekariya <[email protected]> Co-authored-by: zanastas <[email protected]> Co-authored-by: Chidozie DAVID <[email protected]> Co-authored-by: Faezeh Shakouri <[email protected]>
jimmychu0807
added a commit
to jimmychu0807/semaphore
that referenced
this pull request
Mar 27, 2025
* feat(website): add obscurus to projects section (semaphore-protocol#941) re semaphore-protocol#939 * chore: fix 404 status URL (semaphore-protocol#917) Signed-off-by: hanghuge <[email protected]> * docs(website): update roadmap (semaphore-protocol#943) docs(website): update roadmap on the website * docs: make year update dynamically on website and docs (semaphore-protocol#945) * docs: make year update dynamically on website and docs * docs(docs): make year update dynamically * docs: fix broken link and typo correction (semaphore-protocol#923) * broken redirect CONTRIBUTING.md * typo README.md * docs: fixed circuit logic url (semaphore-protocol#931) fix: circuit logic url * chore(subgraph): update matchstick-as dependency (semaphore-protocol#946) * chore(subgraph): update matchstick-as dependency * chore(subgraph): update dependency versions * ci: update pull request workflow to install libssl1.1 before testing the subgraph * ci: update pull requests workflow * ci: update ubuntu version * ci: update ubuntu version in tests * ci: update ubuntu version * Add new article (semaphore-protocol#918) * Add new article * Update apps/website/src/data/articles.json remove referral link Co-authored-by: Vivian Plasencia <[email protected]> --------- Co-authored-by: Vivian Plasencia <[email protected]> * revert(subgraph): reverses changes made (semaphore-protocol#952) re semaphore-protocol#915 * Refactor/type-validation (semaphore-protocol#951) * chore(data): add @zk-kit/utils dependency * refactor(data): refactor parameter validation using @zk-kit/utils * chore: update utils package version (semaphore-protocol#954) * chore: v4.9.0 * Fix broken link for LeanMIT (semaphore-protocol#956) chore: fixes broken link for LeanMIT * chore(group): update leanimt package version (semaphore-protocol#957) * chore: v4.9.1 * docs(website): update spec status to true on roadmap (semaphore-protocol#959) * docs(website): update roadmap to add semaphore noir implementation (semaphore-protocol#962) * docs: add specification document link to website and docs (semaphore-protocol#965) * docs(website): add scaling semaphore with pir to the roadmap (semaphore-protocol#969) * update to latest semaphore --------- Signed-off-by: hanghuge <[email protected]> Co-authored-by: 0xpanoramix <[email protected]> Co-authored-by: hanghuge <[email protected]> Co-authored-by: Vivian Plasencia <[email protected]> Co-authored-by: youyyytrok <[email protected]> Co-authored-by: Sumit Vekariya <[email protected]> Co-authored-by: zanastas <[email protected]> Co-authored-by: Chidozie DAVID <[email protected]> Co-authored-by: Faezeh Shakouri <[email protected]> Co-authored-by: ewynx <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This pull request replaces the custom
checkParameterfunction with theerrorHandlersutility from the@zk-kit/utilspackage for parameter validation across multiple files. This change improves code consistency and leverages existing utility functions for better error handling.checkParameterto validate parameters.requireString,requireObjectandrequireBooleanfrom@zk-kit/utils/error-handlersfor parameter validation.Related Issue(s)
Closes #773
Other information
No visual changes are introduced by this PR, as it primarily focuses on refactoring the parameter validation logic.
Previous work: #938
Checklist
yarn formatandyarn lintwithout getting any errors