-
Notifications
You must be signed in to change notification settings - Fork 33
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
6 changed files
with
74 additions
and
56 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
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
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
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
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,33 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
import { IFallback, EncodedModuleTypes } from "erc7579/interfaces/IERC7579Module.sol"; | ||
import { IERC7579Account, Execution } from "erc7579/interfaces/IERC7579Account.sol"; | ||
import { ExecutionLib } from "erc7579/lib/ExecutionLib.sol"; | ||
import { ModeLib } from "erc7579/lib/ModeLib.sol"; | ||
import { HandlerContext } from "@safe-global/safe-contracts/contracts/handler/HandlerContext.sol"; | ||
|
||
contract MockFallback is IFallback, HandlerContext { | ||
function onInstall(bytes calldata data) external override { } | ||
|
||
function onUninstall(bytes calldata data) external override { } | ||
|
||
function target(uint256 value) | ||
external | ||
returns (uint256 _value, address erc2771Sender, address msgSender) | ||
{ | ||
_value = value; | ||
erc2771Sender = _msgSender(); | ||
msgSender = msg.sender; | ||
} | ||
|
||
function isModuleType(uint256 typeID) external view returns (bool) { | ||
return typeID == 3; | ||
} | ||
|
||
function getModuleTypes() external view returns (EncodedModuleTypes) { } | ||
|
||
function isInitialized(address smartAccount) external view returns (bool) { | ||
return false; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
BaseTest:test_transfer() (gas: 712286) | ||
ERC7579DifferentialModuleKitLibTest:testAddExecutor() (gas: 1083999) | ||
ERC7579DifferentialModuleKitLibTest:testAddHook() (gas: 717105) | ||
BaseTest:test_transfer() (gas: 933500) | ||
ERC7579DifferentialModuleKitLibTest:testAddExecutor() (gas: 1313175) | ||
ERC7579DifferentialModuleKitLibTest:testAddHook() (gas: 946237) | ||
ERC7579DifferentialModuleKitLibTest:testAddSessionKey() (gas: 166) | ||
ERC7579DifferentialModuleKitLibTest:testAddValidator() (gas: 1245702) | ||
ERC7579DifferentialModuleKitLibTest:testDeployAccount() (gas: 20472236) | ||
ERC7579DifferentialModuleKitLibTest:testAddValidator() (gas: 1495677) | ||
ERC7579DifferentialModuleKitLibTest:testDeployAccount() (gas: 20345899) | ||
ERC7579DifferentialModuleKitLibTest:testGetUserOpHash() (gas: 188) | ||
ERC7579DifferentialModuleKitLibTest:testRemoveExecutor() (gas: 1160670) | ||
ERC7579DifferentialModuleKitLibTest:testRemoveValidator() (gas: 1002596) | ||
ERC7579DifferentialModuleKitLibTest:testWriteGas() (gas: 1567493) | ||
ERC7579DifferentialModuleKitLibTest:test_transfer() (gas: 712461) | ||
ERC7579DifferentialModuleKitLibTest:testexec__Given__FourInputs() (gas: 710862) | ||
ERC7579DifferentialModuleKitLibTest:testexec__Given__ThreeInputs() (gas: 711683) | ||
ERC7579DifferentialModuleKitLibTest:testexec__Given__TwoInputs() (gas: 716318) | ||
ERC7579DifferentialModuleKitLibTest:testexec__RevertWhen__UserOperationFails() (gas: 694625) | ||
ERC7579DifferentialModuleKitLibTest:testRemoveExecutor() (gas: 1411255) | ||
ERC7579DifferentialModuleKitLibTest:testRemoveValidator() (gas: 1253998) | ||
ERC7579DifferentialModuleKitLibTest:testWriteGas() (gas: 1787983) | ||
ERC7579DifferentialModuleKitLibTest:test_transfer() (gas: 933743) | ||
ERC7579DifferentialModuleKitLibTest:testexec__Given__FourInputs() (gas: 932130) | ||
ERC7579DifferentialModuleKitLibTest:testexec__Given__ThreeInputs() (gas: 932966) | ||
ERC7579DifferentialModuleKitLibTest:testexec__Given__TwoInputs() (gas: 937887) | ||
ERC7579DifferentialModuleKitLibTest:testexec__RevertWhen__UserOperationFails() (gas: 914927) |