Skip to content
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

[Draft] feat: add guardian recovery #52

Draft
wants to merge 85 commits into
base: main
Choose a base branch
from
Draft

[Draft] feat: add guardian recovery #52

wants to merge 85 commits into from

Conversation

aon
Copy link

@aon aon commented Jan 30, 2025

Description

Add guardian recovery functionality.

Additional context

We'll be working on guardian-recovery branch. We'll ask for PR reviews when the feature is complete.

This PR must be merged together with matter-labs/zksync-sso-clave-contracts#261

aon and others added 30 commits January 9, 2025 13:09
feat: add initial guardian recovery views
fix: small UI and organization improvements
cpb8010 and others added 30 commits February 9, 2025 14:14
When deploying the contracts, it should create the file, blocking the build
Can have a different test to make sure this gets updated or
put the contract build step into the other builds
Try encoding the local contracts directly instead of via env vars
doesn't appear to work locally...
This was correct on creation, but wrong on signing
This was super tough to find and would have been a compile error
had we imported the abi directly from the contracts!

This is something I'm going to look into so we don't lose our minds
You just have to know that the quest address is added via .env.local
so the object in the config isn't used
* feat: execute pending recovery on login

* feat: move recovery client to sdk

* feat: add account-not-ready view

* chore: fix pnpm lock

---------

Co-authored-by: aon <[email protected]>
Having to manually update the ABI kinda defeats the point of type
safety, but it's clear the auto-generated one doesn't play nice
with the existing file so more work will be necessary to update it
so it's compatible
Picks up a fix from the publish function for the correct abi
It looks like nuxt builds don't like the poorly formatted json,
so instead of trying to pretty print the abi automatically we'll
rely on the editor tools to do this.

At the very least the publish step is documented?
problem was not the file format, but the file name change
This explains why the build was failing
This should be fine because we aren't actually using it
* feat: add placeholder to account select component

* feat: add init recovery method to be used by any client

* feat: improve recovery flow

* feat: improve confirm recovery flow

* feat: improve styles
* feat: update to work with new guardian validator

* chore: update contracts submodule

* chore: remove duplicated hooks

* chore: update guardian validator abi

* feat: update to match new contracts
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.

3 participants