Skip to content

refactor: consolidate AccountConfiguration, restructure account hierarchy, tidy docs#24

Merged
chunter-cb merged 2 commits into
mainfrom
refactor/account-hierarchy-and-docs
Jul 7, 2026
Merged

refactor: consolidate AccountConfiguration, restructure account hierarchy, tidy docs#24
chunter-cb merged 2 commits into
mainfrom
refactor/account-hierarchy-and-docs

Conversation

@chunter-cb

@chunter-cb chunter-cb commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Merge IAccountConfiguration into AccountConfiguration and drop the separate interface.
  • Rename SCOPE_CHANGE_ACTORSSCOPE_CONFIG to match the EIP-8130 spec.
  • Rename BackwardCompatibleERC4337AccountDefault4337Account and make ERC-4337 an opt-in building block — nothing deployed by default depends on it.
  • UpgradeableAccount now extends DefaultAccount (no 4337 surface by default). Upgrades are authorized only via the CONFIG-signed upgradeBySignature path; a one-shot flag guards _authorizeUpgrade so an executeBatch self-call can't smuggle an upgrade through a SENDER-scoped key.
  • Pin solc = 0.8.30 for reproducible addresses.
  • Tidy NatSpec across the account and example-policy contracts (remove negative/hypothetical framing).
  • Update unit tests, deploy scripts, and README to match.

Test plan

  • forge fmt --check
  • forge build --sizes
  • forge test — 207 passed, 0 failed

…rchy, tidy docs

- Merge IAccountConfiguration into AccountConfiguration (drop the separate interface).
- Rename SCOPE_CHANGE_ACTORS -> SCOPE_CONFIG to match the EIP-8130 spec.
- Rename BackwardCompatibleERC4337Account -> Default4337Account and make ERC-4337 an
  opt-in building block; nothing deployed by default depends on it.
- UpgradeableAccount now extends DefaultAccount (no 4337 surface by default). Upgrades
  are authorized only via the CONFIG-signed upgradeBySignature path; a one-shot flag
  guards _authorizeUpgrade so executeBatch/self-calls cannot smuggle an upgrade.
- Pin solc 0.8.30 for reproducible addresses.
- Tidy NatSpec across accounts and example policies (remove negative/hypothetical framing).
- Update unit tests, scripts, and README to match.
…ible4337Account

Reframe the ERC-4337 account as an explicit opt-in example rather than a core
building block: relocate it under src/accounts/example/ and rename the contract to
BackwardsCompatible4337Account. Update all references (UpgradeableAccount/UpgradeableProxy
docs, README, deploy script) and move the test suite to match.
@chunter-cb chunter-cb merged commit 7c31d40 into main Jul 7, 2026
4 checks passed
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.

1 participant