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 #261

Draft
wants to merge 42 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e9c2b5e
feat: empty GuardianRecoveryValidator
calvogenerico Jan 9, 2025
df852cf
feat: methods to add a guardian
calvogenerico Jan 9, 2025
3972ec2
fix: reverting when guardian not found
calvogenerico Jan 9, 2025
1a6def0
fix: uint to uint256
calvogenerico Jan 9, 2025
b1478cd
feat: add validateTransaction implementation to GuardianRecoveryValid…
MiniRoman Jan 17, 2025
f01162c
chore: refactor tests
MiniRoman Jan 17, 2025
a7eec81
chore: clean up code
MiniRoman Jan 17, 2025
3290826
feat: improve init method
MiniRoman Jan 17, 2025
fde86e3
feat: simplify initRecovery method
MiniRoman Jan 22, 2025
731ffd7
chore: resolve build issues
MiniRoman Jan 22, 2025
d9dc82b
chore: resolve build issues
MiniRoman Jan 22, 2025
94ffc8b
chore: resolve pr comments
MiniRoman Jan 23, 2025
771c586
feat: restore guardiansFor method
MiniRoman Jan 23, 2025
b36bcb2
chore: remove unused access to accountGuardians
MiniRoman Jan 23, 2025
24f34e8
feat: make guardian recovery validator contract proxy-able
MiniRoman Jan 23, 2025
4c73093
chore: simplify initializer function name
MiniRoman Jan 24, 2025
4ae13ba
Merge pull request #1 from Moonsong-Labs/feat/guardian-module
aon Jan 24, 2025
064764b
feat: add function to retrieve guarded accounts
MiniRoman Jan 24, 2025
afb9c70
fix: improve recovery validator logic
aon Jan 24, 2025
a09d7e2
Merge pull request #2 from Moonsong-Labs/feat/guardian-module
aon Jan 24, 2025
460446c
feat: allow paymaster calls to GuardianRecoveryValidator
MiniRoman Jan 28, 2025
b408afc
Merge pull request #3 from Moonsong-Labs/feat/guardian-module
aon Jan 28, 2025
ddac18b
feat: merge from working branch
aon Jan 30, 2025
0ec4f89
feat: fix guardian recovery validator compilation
MiniRoman Jan 30, 2025
59cff84
fix: add compiler version and remove unwanted comments
aon Jan 30, 2025
b5e95c6
fix: bugs and jsdoc format to match rest of package
aon Jan 30, 2025
5f4feea
fix: test that included guardian contract
aon Jan 30, 2025
a759787
feat: add passkey to account relation
aon Jan 31, 2025
303827d
feat: prevent account overlap
aon Jan 31, 2025
9768a19
feat: improve registered accounts logic
aon Feb 3, 2025
2d4d3f1
fix: tests
aon Feb 3, 2025
e14f484
fix: unknown accounts
aon Feb 3, 2025
b147d63
fix: discard recovery bug
aon Feb 3, 2025
62eb5fe
fix: move account verifications
aon Feb 3, 2025
cae4e89
feat: add guardian added time to guardian information
MiniRoman Jan 31, 2025
ae25098
fix: deployment
aon Feb 3, 2025
b8fe05b
fix: address to account id is not empty when initiating recovery
MiniRoman Feb 4, 2025
ac2d360
fix: remove double save on guardedAccounts
aon Feb 4, 2025
b41bed1
Add OidcKeyRegistry
matias-gonz Feb 6, 2025
ecde01c
Update deploy script
matias-gonz Feb 6, 2025
fb48235
Fix/paymaster-recovery-validator (#291)
aon Feb 13, 2025
c248dae
Merge branch 'feat/oidc-account-recovery' into guardian-recovery
matias-gonz Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: restore guardiansFor method
MiniRoman committed Jan 23, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 771c586ef062b0f7fecebea6f66adfde0072a2c5
4 changes: 4 additions & 0 deletions src/validators/GuardianRecoveryValidator.sol
Original file line number Diff line number Diff line change
@@ -215,4 +215,8 @@ contract GuardianRecoveryValidator is IGuardianRecoveryValidator {
function supportsInterface(bytes4 interfaceId) external view returns (bool) {
return interfaceId == type(IERC165).interfaceId || interfaceId == type(IModuleValidator).interfaceId;
}

function guardiansFor(address addr) public view returns (Guardian[] memory) {
return accountGuardians[addr];
}
}