-
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
feat: deploy and address prediction scripts #321
Conversation
Summary by OctaneNew Contracts
Updated Contracts
🔗 Commit Hash: 42a60b3 |
OverviewOctane AI analysis has finished. No vulnerabilities were found. Cheers! 🎉🎉🎉 🔗 Commit Hash: 42a60b3 |
Contract sizes: | Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
| AccountFactory | 6,121 | 6,595 | 18,455 | 42,557 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| Address | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| AllowlistModule | 9,602 | 9,629 | 14,974 | 39,523 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| Base64 | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| Create2 | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
-| DeployScriptBase | 17 | 42 | 24,559 | 49,110 |
-|-------------------------------+------------------+-------------------+--------------------+---------------------|
| ECDSA | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| ERC165Checker | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| ERC1967Utils | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| ExecutionInstallDelegate | 5,947 | 5,993 | 18,629 | 43,159 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| FCL_Elliptic_ZZ | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| FCL_ecdsa | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| Math | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| MessageHashUtils | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| ModularAccount | 21,923 | 22,322 | 2,653 | 26,830 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| NativeTokenLimitModule | 4,583 | 4,610 | 19,993 | 44,542 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| PaymasterGuardModule | 1,827 | 1,854 | 22,749 | 47,298 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| SafeERC20 | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| SemiModularAccount7702 | 23,153 | 23,545 | 1,423 | 25,607 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| SemiModularAccountBytecode | 23,635 | 24,034 | 941 | 25,118 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| SemiModularAccountStorageOnly | 24,168 | 24,567 | 408 | 24,585 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| SignatureChecker | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| SignedMath | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| SingleSignerValidationModule | 3,646 | 3,673 | 20,930 | 45,479 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| StorageSlot | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| Strings | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| TimeRangeModule | 2,204 | 2,231 | 22,372 | 46,921 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| WebAuthn | 17 | 46 | 24,559 | 49,106 |
|-------------------------------+------------------+-------------------+--------------------+---------------------|
| WebAuthnValidationModule | 7,854 | 7,881 | 16,722 | 41,271 | Code coverage: |
e79eb4c
to
209ed33
Compare
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.
1 small nit otherwise lgtm
Motivation
We need the ability to deploy and predict addresses of our deployments
Solution
Add scripts to deploy all top-level contracts needed by our account implementation.
Add scripts to predict the deployment addresses of those contracts.
Add tests for each of these scripts.