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

Proxy pattern smart wallet factory contracts #562

Merged
merged 14 commits into from
Oct 30, 2023

Conversation

nkrishang
Copy link
Contributor

@nkrishang nkrishang commented Oct 29, 2023

Built on top of #561

Comment on lines +17 to +22
function data() internal pure returns (Data storage baseAccountFactoryData) {
bytes32 position = BASE_ACCOUNT_FACTORY_STORAGE_POSITION;
assembly {
baseAccountFactoryData.slot := position
}
}

Check warning

Code scanning / Slither

Assembly usage Warning

@codecov
Copy link

codecov bot commented Oct 29, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...racts/prebuilts/account/dynamic/DynamicAccount.sol 100.00% <100.00%> (ø)
...rebuilts/account/dynamic/DynamicAccountFactory.sol 75.00% <100.00%> (+25.00%) ⬆️
...rebuilts/account/managed/ManagedAccountFactory.sol 88.88% <100.00%> (+22.22%) ⬆️
contracts/prebuilts/account/utils/AccountCore.sol 95.16% <100.00%> (+0.16%) ⬆️
...cts/prebuilts/account/utils/AccountCoreStorage.sol 0.00% <ø> (ø)
...builts/account/utils/BaseAccountFactoryStorage.sol 100.00% <100.00%> (ø)
...racts/prebuilts/account/managed/ManagedAccount.sol 50.00% <50.00%> (ø)
...acts/prebuilts/account/non-upgradeable/Account.sol 71.42% <80.00%> (+3.42%) ⬆️
...ebuilts/account/non-upgradeable/AccountFactory.sol 25.00% <50.00%> (-25.00%) ⬇️
...racts/prebuilts/account/utils/AccountExtension.sol 51.72% <75.00%> (+5.57%) ⬆️
... and 1 more

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

Copy link
Member

@joaquim-verges joaquim-verges left a comment

Choose a reason for hiding this comment

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

excited for this, will give it a spin on monday

{}

/// @notice Initializes the factory contract.
function initialize(address _defaultAdmin, string memory _contractURI) external initializer {
Copy link
Member

Choose a reason for hiding this comment

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

niice we can pass contractURI now :D

IEntryPoint _entrypoint,
Extension[] memory _defaultExtensions
)
constructor(IEntryPoint _entrypoint, Extension[] memory _defaultExtensions)
Copy link
Member

Choose a reason for hiding this comment

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

also this means we can now use publish feature for dynamic contracts properly 👌

@nkrishang nkrishang enabled auto-merge (squash) October 30, 2023 19:55
@nkrishang nkrishang merged commit c778b3c into main Oct 30, 2023
4 of 5 checks passed
@nkrishang nkrishang deleted the nkrishang/proxy-pattern-wallet-factory branch October 30, 2023 20:11
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