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 7779 support #231

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open

ERC 7779 support #231

wants to merge 9 commits into from

Conversation

filmakarov
Copy link
Collaborator

@filmakarov filmakarov commented Dec 18, 2024

Draft implementation of ERC-7779 support for Nexus


PR-Codex overview

This PR introduces the ERC7779Adapter contract and enhances the Nexus functionality to support new storage management features and module handling, specifically for the ERC-7779 standard. It also adds related events, errors, and testing functionalities.

Detailed summary

  • Added ERC7779Adapter contract with storage management methods.
  • Introduced _amIERC7702 function to check contract type.
  • Modified Nexus to inherit from ERC7779Adapter.
  • Updated storage location handling in Storage contract.
  • Implemented functions for uninstalling validators, executors, and hooks.
  • Added events for module uninstallation failures.
  • Enhanced IModuleManagerEventsAndErrors interface with new events.
  • Created MockERC7779 for testing purposes.
  • Added tests for ERC7779Adapter functionality in TestFuzz_ERC7779Adapter.
  • Updated INexus interface to include IERC7779.

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

Copy link

openzeppelin-code bot commented Dec 18, 2024

ERC 7779 support

Generated at commit: dcaec871dc2d4830c52b873036ee79544423eec3

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
1
0
6
29
37

For more details view the full report in OpenZeppelin Code Inspector

Copy link

🤖 Slither Analysis Report 🔎

Slither report

# Slither report

THIS CHECKLIST IS NOT COMPLETE. Use --show-ignored-findings to show all the results.
Summary
🟡 - locked-ether (1 results) (Medium)

locked-ether

🟡 Impact: Medium
🔴 Confidence: High

utils/NexusBootstrap.sol#L33-L185

constable-states

Impact: Optimization
🔴 Confidence: High

base/RegistryAdapter.sol#L10

factory/RegistryFactory.sol#L38

_This comment was automatically generated by the GitHub Actions workflow._

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