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

ERC-4337 & ERC-7579 compliant modular smart accounts #4991

Draft
wants to merge 75 commits into
base: master
Choose a base branch
from

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Apr 4, 2024

Fixes LIB-1237
Fixes LIB-1236
Fixes LIB-1231
Fixes LIB-1230
Fixes LIB-1229
Fixes LIB-1228
Fixes LIB-1227

PR Checklist

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

Copy link

changeset-bot bot commented Apr 4, 2024

⚠️ No Changeset found

Latest commit: 89e9504

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@Amxx Amxx force-pushed the erc4337/interfaces-and-helpers branch from e7f9dbd to a1532d0 Compare April 5, 2024 13:04
Comment on lines +22 to +28
function _tryUseNonce(address owner, uint256 keyNonce) internal returns (bool) {
return _tryUseNonce(owner, uint192(keyNonce >> 64), uint64(keyNonce));
}

function _tryUseNonce(address owner, uint192 key, uint64 nonce) internal virtual returns (bool) {
return _useNonce(owner, key) == nonce;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: these function are not available in the current Nonces contract. They are usefull if you want to revert with an error that you control (required in ERC-4337 entrypoints)

@Amxx Amxx mentioned this pull request Jun 2, 2024
Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

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

Fix for stack too deep: (all the following changes together)

contracts/abstraction/account/modules/AccountMultisig.sol Outdated Show resolved Hide resolved
contracts/abstraction/account/modules/AccountMultisig.sol Outdated Show resolved Hide resolved
contracts/abstraction/account/modules/AccountMultisig.sol Outdated Show resolved Hide resolved
@Amxx Amxx force-pushed the erc4337/interfaces-and-helpers branch from 63f1767 to a053a8c Compare July 19, 2024 10:42
@Amxx Amxx force-pushed the erc4337/interfaces-and-helpers branch from a053a8c to de032e3 Compare July 19, 2024 10:44
@Amxx Amxx changed the title Start initial work on ERC4337 interface and helpers ERC4337 & ERC7579 compliant modular smart accounts Jul 22, 2024
@Amxx Amxx changed the title ERC4337 & ERC7579 compliant modular smart accounts ERC-4337 & ERC-7579 compliant modular smart accounts Jul 22, 2024
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