ITransactionForwarder_v1.sol
Functions
createDigest
Creates a digest for the given ForwardRequestData.
The signature field of the given ForwardRequestData can be empty.
function createDigest(ERC2771ForwarderUpgradeable.ForwardRequestData memory req)
external
view
returns (bytes32 digest);Parameters
req
ERC2771ForwarderUpgradeable.ForwardRequestData
The ForwardRequest you want to get the digest from.
Returns
digest
bytes32
The digest needed to create a signature for the request.
executeMulticall
Enables the execution of multiple calls in a single transaction.
function executeMulticall(SingleCall[] calldata calls)
external
returns (Result[] memory returnData);Parameters
calls
SingleCall[]
Array of call structs that should be executed in the multicall.
Returns
returnData
Result[]
The return data of the calls that were executed.
Errors
CallFailed
The request from doesn't match with the recovered signer.
error CallFailed(SingleCall call);Parameters
call
SingleCall
The call that failed.
Structs
SingleCall
Struct used to store information about a single call.
struct SingleCall {
address target;
bool allowFailure;
bytes callData;
}Properties
target
address
Target contract that will receive the call.
allowFailure
bool
Is the call allowed to fail in the multicall execution.
callData
bytes
Data of the call.
Result
Struct used to store information about a call result.
struct Result {
bool success;
bytes returnData;
}Properties
success
bool
Was the call a success.
returnData
bytes
Return data of the call.
Last updated