-
Notifications
You must be signed in to change notification settings - Fork 199
feat: update Hardhat configuration and add TestSelfVerificationRoot d… #655
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
Conversation
* remove sdk/tests (#622) * remove sdk/tests * chore: update yarn.lock --------- Co-authored-by: Ayman <[email protected]> * fix: add range check on paddedInLength of shaBytesDynamic (#623) * fix ci (#626) --------- Co-authored-by: Ayman <[email protected]> Co-authored-by: Vishalkulkarni45 <[email protected]>
* remove sdk/tests (#622) * remove sdk/tests * chore: update yarn.lock --------- Co-authored-by: Ayman <[email protected]> * fix: add range check on paddedInLength of shaBytesDynamic (#623) * fix ci (#626) * implement self uups upgradeable (#592) * implement self uups upgradeable * small changes in identityVerificationHubImplV2 * delete aderyn.toml * chore: add custom verifier * chnage return output * feat: use self structs and a Generic output struct * feat: add userIdentifier, nullifier, forbiddencountries to returned output * add root view functions from registry * fix: build and compilation errors * add userDefined data into selfVerificationRoot * "resolve conflicts" * fix compilation problem * fix how to register verification config * test: CustomVerifier * fix verification root and hub integration * add scope check in hub impl * replace poseidon hash to ripemd+sha256 * add todo list * feat: refactor and add test cases for generic formatter * add performUserIdentifierCheck in basicVerification * change how to handle additionalData and fix stack too deep * start adding test codes * fix dependency problems in monorepo * fix: forbidden countries (#612) LGTM! * able to run test code * pass happy path * delete unused codes * change error code name, add caller address validation and add scripts to run test and build in monorepo * add all test cases in vcAndDisclose flow * remove comment out * chore: use actual user identifier outputs * success in registration tests * cover all cases * pass contractVersion instead of circuitVersion * fix disclose test * chore: add natspecs for ImplHubV2, CustomVerifier and GenericFormatter * change val name and remove unused lines * add val name change * remove userIdentifier from return data * feat: use GenericDiscloseOutput struct in verfication hook fix test cases for user identifier * chore: change the function order for Hub Impl V2 (#625) * fix nat specs * add nat spec in SelfStructs --------- Co-authored-by: Ayman <[email protected]> Co-authored-by: Nesopie <[email protected]> * prettier (#629) --------- Co-authored-by: Ayman <[email protected]> Co-authored-by: Vishalkulkarni45 <[email protected]> Co-authored-by: nicoshark <[email protected]> Co-authored-by: Nesopie <[email protected]>
* fix: vc_and_disclose_id test * chore: yarn prettier
* feat: add getConfigId function in SelfVerificationRoot * update comment --------- Co-authored-by: motemotech <[email protected]>
…eployment module * Change account key reference from CELO_KEY to PRIVATE_KEY in Hardhat config. * Rename celoAlfajores to alfajores in the config. * Add custom chain configuration for alfajores with updated API URLs. * Introduce a new deployment module for TestSelfVerificationRoot contract, including usage and verification instructions.
WalkthroughThe changes introduce a new Hardhat Ignition deployment module for the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant IgnitionModule
participant TestSelfVerificationRoot
User->>IgnitionModule: Deploy module with (identityVerificationHubV2Address, scopeValue)
IgnitionModule->>TestSelfVerificationRoot: Deploy contract with constructor args
TestSelfVerificationRoot-->>IgnitionModule: Contract instance deployed
IgnitionModule-->>User: Return deployed contract instance
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🔇 Additional comments (7)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
closing the PR as i cherry-picked the commit from dev branch |
Add TestSelfVerificationRoot Deployment Module
Summary
Adds Hardhat Ignition deployment module for TestSelfVerificationRoot contract with improved Celo network configuration.
Changes
New deployment module:
ignition/modules/deployTestSelfVerificationRoot.tsEnhanced Hardhat config:
PRIVATE_KEYinstead ofCELO_KEYMinor formatting: Improved code formatting in TestSelfVerificationRoot contract
Usage
Notes
setScopeValue()Summary by CodeRabbit
New Features
Chores
Style