forked from eth-infinitism/account-abstraction
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,832 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ artifacts | |
.DS_Store | ||
/contracts/dist/ | ||
/contracts/types/ | ||
.certora_internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"files": [ | ||
"contracts/core/EntryPoint.sol" | ||
], | ||
"hashing_length_bound": "96", | ||
"loop_iter": "4", | ||
"optimistic_fallback": true, | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@openzeppelin=node_modules/@openzeppelin", | ||
"@uniswap=node_modules/@uniswap" | ||
], | ||
"process": "emv", | ||
"prover_args": [ | ||
"-canonicalizeTAC false", | ||
"-assumeFPStrictlyMonotonic false", | ||
"-enableSolidityBasedInlining true", | ||
"-adaptiveSolverConfig false", | ||
"-destructiveOptimizations enable", | ||
"-enableFlowSensitivePartitioning true", | ||
"-enableABIAnalysis true", | ||
"-optimisticBufferContents true", | ||
"-enableAggressiveABIOptimization true" | ||
], | ||
"smt_timeout": "1800", | ||
"verify": "EntryPoint:certora/specs/entryPoint.spec", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"files": [ | ||
"contracts/core/EntryPoint.sol" | ||
], | ||
"hashing_length_bound": "96", | ||
"loop_iter": "4", | ||
"optimistic_fallback": true, | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@openzeppelin=node_modules/@openzeppelin", | ||
"@uniswap=node_modules/@uniswap" | ||
], | ||
"process": "emv", | ||
"prover_args": [ | ||
"-canonicalizeTAC false", | ||
"-assumeFPStrictlyMonotonic false", | ||
"-enableSolidityBasedInlining true", | ||
"-adaptiveSolverConfig false", | ||
"-destructiveOptimizations enable", | ||
"-enableFlowSensitivePartitioning true", | ||
"-enableABIAnalysis true", | ||
"-optimisticBufferContents true", | ||
"-enableAggressiveABIOptimization true" | ||
], | ||
"smt_timeout": "1800", | ||
"verify": "EntryPoint:certora/specs/entryPointSanity.spec", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"files": [ | ||
"contracts/core/EntryPoint.sol" | ||
], | ||
"hashing_length_bound": "96", | ||
"loop_iter": "3", | ||
"optimistic_fallback": true, | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@openzeppelin=node_modules/@openzeppelin", | ||
"@uniswap=node_modules/@uniswap" | ||
], | ||
"process": "emv", | ||
"prover_args": [ | ||
"-canonicalizeTAC false", | ||
"-assumeFPStrictlyMonotonic false", | ||
"-enableSolidityBasedInlining true", | ||
"-adaptiveSolverConfig false", | ||
"-destructiveOptimizations enable", | ||
"-enableFlowSensitivePartitioning true", | ||
"-enableABIAnalysis true", | ||
"-optimisticBufferContents true", | ||
"-enableAggressiveABIOptimization true" | ||
], | ||
"smt_timeout": "1800", | ||
"verify": "EntryPoint:certora/specs/alwaysRevert.spec", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"files": [ | ||
"contracts/core/EntryPoint.sol" | ||
], | ||
"hashing_length_bound": "96", | ||
"loop_iter": "3", | ||
"optimistic_fallback": true, | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@openzeppelin=node_modules/@openzeppelin", | ||
"@uniswap=node_modules/@uniswap" | ||
], | ||
"process": "emv", | ||
"prover_args": [ | ||
"-canonicalizeTAC false", | ||
"-assumeFPStrictlyMonotonic false", | ||
"-enableSolidityBasedInlining true", | ||
"-destructiveOptimizations enable" | ||
], | ||
"rule_sanity": "basic", | ||
"smt_timeout": "1800", | ||
"verify": "EntryPoint:certora/specs/entryPoint.spec", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"files": [ | ||
"contracts/core/EntryPoint.sol" | ||
], | ||
"hashing_length_bound": "96", | ||
"independent_satisfy": true, | ||
"loop_iter": "3", | ||
"optimistic_fallback": true, | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@openzeppelin=node_modules/@openzeppelin", | ||
"@uniswap=node_modules/@uniswap" | ||
], | ||
"process": "emv", | ||
"prover_args": [ | ||
"-canonicalizeTAC false", | ||
"-assumeFPStrictlyMonotonic false", | ||
"-enableSolidityBasedInlining true" | ||
], | ||
"rule_sanity": "basic", | ||
"rule": ["checkInnerHandleOp"], | ||
"smt_timeout": "1800", | ||
"verify": "EntryPoint:certora/specs/residual.spec", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/contracts/core/EntryPoint.sol b/contracts/core/EntryPoint.sol | ||
index 058d8eb..8953da2 100644 | ||
--- a/contracts/core/EntryPoint.sol | ||
+++ b/contracts/core/EntryPoint.sol | ||
@@ -108,7 +108,7 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuardT | ||
assembly ("memory-safe") { | ||
success := call(gas(), address(), 0, add(innerCall, 0x20), mload(innerCall), 0, 32) | ||
collected := mload(0) | ||
- mstore(0x40, saveFreePtr) | ||
+ // mstore(0x40, saveFreePtr) // make analysis succeed, no-op | ||
} | ||
} | ||
if (!success) { | ||
@@ -299,7 +299,7 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuardT | ||
MemoryUserOp mUserOp; | ||
bytes32 userOpHash; | ||
uint256 prefund; | ||
- uint256 contextOffset; | ||
+ bytes contextOffset; // make analysis succeed, no-op | ||
uint256 preOpGas; | ||
} | ||
|
||
@@ -780,7 +780,7 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuardT | ||
*/ | ||
function getOffsetOfMemoryBytes( | ||
bytes memory data | ||
- ) internal pure returns (uint256 offset) { | ||
+ ) internal pure returns (bytes memory offset /* make analysis succeed, no-op */) { | ||
assembly { | ||
offset := data | ||
} | ||
@@ -791,7 +791,7 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuardT | ||
* @param offset - The offset to get the bytes from. | ||
*/ | ||
function getMemoryBytesFromOffset( | ||
- uint256 offset | ||
+ bytes memory offset // make analysis succeed, no-op | ||
) internal pure returns (bytes memory data) { | ||
assembly ("memory-safe") { | ||
data := offset |
Oops, something went wrong.