-
Notifications
You must be signed in to change notification settings - Fork 3
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
17 changed files
with
492 additions
and
227 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ pragma solidity ^0.8.26; | |
// Nexus: A suite of contracts for Modular Smart Accounts compliant with ERC-7579 and ERC-4337, developed by Biconomy. | ||
// Learn more at https://biconomy.io. To report security issues, please contact us at: [email protected] | ||
|
||
import { CallType, ExecType } from "../lib/ModeLib.sol"; | ||
import { CallType } from "../lib/ModeLib.sol"; | ||
import { PackedUserOperation } from "account-abstraction/contracts/interfaces/PackedUserOperation.sol"; | ||
|
||
/// @title Nexus - INexus Events and Errors | ||
|
@@ -36,10 +36,6 @@ interface INexusEventsAndErrors { | |
/// @param callType The unsupported call type. | ||
error UnsupportedCallType(CallType callType); | ||
|
||
/// @notice Error thrown when an execution with an unsupported ExecType was made. | ||
/// @param execType The unsupported execution type. | ||
error UnsupportedExecType(ExecType execType); | ||
|
||
/// @notice Error thrown on failed execution. | ||
error ExecutionFailed(); | ||
|
||
|
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 |
---|---|---|
|
@@ -21,7 +21,17 @@ pragma solidity ^0.8.26; | |
/// @author @filmakarov | Biconomy | [email protected] | ||
/// @author @zeroknots | Rhinestone.wtf | zeroknots.eth | ||
/// Special thanks to the Solady team for foundational contributions: https://github.com/Vectorized/solady | ||
|
||
import { ExecType } from "../../lib/ModeLib.sol"; | ||
|
||
interface IExecutionHelperEventsAndErrors { | ||
/// @notice Event emitted when a transaction fails to execute successfully. | ||
event TryExecuteUnsuccessful(uint256 batchExecutionindex, bytes result); | ||
|
||
/// @notice Event emitted when a transaction fails to execute successfully. | ||
event TryDelegateCallUnsuccessful(uint256 batchExecutionindex, bytes result); | ||
|
||
/// @notice Error thrown when an execution with an unsupported ExecType was made. | ||
/// @param execType The unsupported execution type. | ||
error UnsupportedExecType(ExecType execType); | ||
} |
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,8 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.26; | ||
|
||
contract MockDelegateTarget { | ||
function sendValue(address target, uint256 _value) public { | ||
target.call{ value: _value }(""); | ||
} | ||
} |
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
Oops, something went wrong.