-
Notifications
You must be signed in to change notification settings - Fork 38
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
refactor: add docs + cleanup MA and MABase with small opt #259
Conversation
fangting-alchemy
commented
Oct 16, 2024
- Add NatSpecs
- Small refactor on comments and code
- tiny opt by rid of one error
Summary by OctaneNew ContractsNo new contracts were added in this PR. Updated Contracts
🔗 Commit Hash: 490845c |
Contract sizes: | Contract | Size (B) | Margin (B) |
|-------------------------------|----------|------------|
| AccountFactory | 4,814 | 19,762 |
| AllowlistModule | 9,230 | 15,346 |
| ModularAccount | 25,167 | -591 |
| NativeTokenLimitModule | 4,714 | 19,862 |
| PaymasterGuardModule | 1,797 | 22,779 |
| SemiModularAccountBytecode | 27,775 | -3,199 |
| SemiModularAccountStorageOnly | 28,293 | -3,717 |
| SingleSignerValidationModule | 4,300 | 20,276 |
| TimeRangeModule | 2,000 | 22,576 |
| WebAuthnValidationModule | 7,854 | 16,722 | Code coverage:
|
Overview
Detailed findings
|
src/account/ModularAccount.sol
Outdated
@@ -6,6 +6,10 @@ import {IEntryPoint} from "@eth-infinitism/account-abstraction/interfaces/IEntry | |||
|
|||
import {ModularAccountBase} from "./ModularAccountBase.sol"; | |||
|
|||
/// @title Modular Account | |||
/// @author Alchemy | |||
/// @notice This contract allow initionalizing with a validation config (of a validation module) to be installed on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @notice This contract allow initionalizing with a validation config (of a validation module) to be installed on | |
/// @notice This contract allow initializing with a validation config (of a validation module) to be installed on |
src/account/ModularAccountBase.sol
Outdated
@@ -43,6 +43,10 @@ import {ModularAccountView} from "./ModularAccountView.sol"; | |||
import {ModuleManagerInternals} from "./ModuleManagerInternals.sol"; | |||
import {TokenReceiver} from "./TokenReceiver.sol"; | |||
|
|||
/// @title Modular Account Base | |||
/// @author Alchemy | |||
/// @notice This abstract account is a modular account that is compliant with ERC-6900 standard. It supports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @notice This abstract account is a modular account that is compliant with ERC-6900 standard. It supports | |
/// @notice This abstract contract is a modular account that is compliant with ERC-6900 standard. It supports |