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

Add stake management function to ERC4337Utils #5471

Merged

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Jan 31, 2025

This PR:

  • Add a constant ENTRYPOINT to ERC4337Utils. Using it will avoid hardcoding the value in multiple places (AccountCore.sol, PaymasterCore.sol, ...), and will facilitate updating the value when new version of the paymaster are released.
  • Provide primitives to manage deposit and stake on the entrypoint (usefull for building paymasters?)

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

Copy link

changeset-bot bot commented Jan 31, 2025

🦋 Changeset detected

Latest commit: 9061134

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Amxx Amxx requested review from arr00 and ernestognw January 31, 2025 10:38
@ernestognw ernestognw merged commit 828dbc3 into OpenZeppelin:master Jan 31, 2025
17 checks passed
@Amxx Amxx deleted the features/erc4337-stake-management branch January 31, 2025 15:38
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.

2 participants