IEntryPoint
Inherits: IEntryPointNonces, IEntryPointStake
Entry point for user operations. User operations are validated and executed by this contract.
Functions
handleOps
Executes a batch of user operations.
function handleOps(PackedUserOperation[] calldata ops, address payable beneficiary) external;
Parameters
| Name | Type | Description |
|---|---|---|
ops | PackedUserOperation[] | |
beneficiary | address payable | Address to which gas is refunded upon completing the execution. |
handleAggregatedOps
Executes a batch of aggregated user operations per aggregator.
function handleAggregatedOps(UserOpsPerAggregator[] calldata opsPerAggregator, address payable beneficiary) external;
Parameters
| Name | Type | Description |
|---|---|---|
opsPerAggregator | UserOpsPerAggregator[] | |
beneficiary | address payable | Address to which gas is refunded upon completing the execution. |
Errors
FailedOp
A user operation at opIndex failed with reason.
error FailedOp(uint256 opIndex, string reason);
FailedOpWithRevert
A user operation at opIndex failed with reason and inner returned data.
error FailedOpWithRevert(uint256 opIndex, string reason, bytes inner);
Structs
UserOpsPerAggregator
Batch of aggregated user operations per aggregator.
struct UserOpsPerAggregator {
PackedUserOperation[] userOps;
IAggregator aggregator;
bytes signature;
}