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

feat: add paymaster guard module #1252

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

linnall
Copy link
Collaborator

@linnall linnall commented Dec 20, 2024

Pull Request Checklist


PR-Codex overview

This PR focuses on enhancing the PaymasterGuardModule functionality by adding installation and uninstallation processes, as well as testing scenarios for valid and invalid paymaster usage within the installValidation actions.

Detailed summary

  • Commented out error handling for DEFAULT_OWNER_ENTITY_ID in installValidation.ts.
  • Introduced PaymasterGuardModule with encodeOnInstallData and encodeOnUninstallData methods in module.ts.
  • Updated tests in client.test.ts to include scenarios for installing and uninstalling the PaymasterGuardModule.
  • Verified correct paymaster usage and handled cases for invalid paymaster in the tests.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Dec 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ❌ Failed (Inspect) Dec 20, 2024 11:04pm
aa-sdk-ui-demo ❌ Failed (Inspect) Dec 20, 2024 11:04pm

Copy link

graphite-app bot commented Dec 20, 2024

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

Copy link
Contributor

@dphilipson dphilipson left a comment

Choose a reason for hiding this comment

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

Looks good! Some minor comments inline.

@howydev howydev force-pushed the howy/add-mav2-uo-call-encoding branch from df3501a to 45d889c Compare December 20, 2024 21:35
Base automatically changed from howy/add-mav2-uo-call-encoding to howy/add-install-validation December 20, 2024 21:58
@howydev howydev force-pushed the howy/add-install-validation branch from d161f12 to 4e59a6f Compare December 20, 2024 22:02
Base automatically changed from howy/add-install-validation to howy/scaffold-v0.8 December 20, 2024 22:02
@linnall linnall force-pushed the linna/paymaster-guard-module-2 branch from 99e1b4a to fe4493f Compare December 20, 2024 22:44
fix: lint

fix: review fixes

feat: add view functions and user op calldata encodings

feat: add paymaster guard module impl

feat: adds tests for paymaster guard module

chore: clean up comments

refactor: removes unnecessary .resolves.not.toThrowError()

fix: removes value field from encodeAbiParameters args
@linnall linnall force-pushed the linna/paymaster-guard-module-2 branch from fe4493f to e138cd6 Compare December 20, 2024 22:50
@linnall linnall merged commit 2c27b4c into howy/scaffold-v0.8 Dec 20, 2024
3 of 6 checks passed
@linnall linnall deleted the linna/paymaster-guard-module-2 branch December 20, 2024 22:54
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