Kinto EntryPoint
Deployment Address
**Mainnet: ** 0x2843C269D2a64eCfA63548E8B3Fc0FD23B7F70cb
Code: EntryPoint.sol
Basics
Serves as a single EntryPoint implementation for Account Abstraction (EIP-4337).
Manages user operations, including validation, execution, and compensation for operations.
Supports aggregated operations from multiple aggregators.
Implements functionalities related to stake management and nonce management.
Provides interface support checks and utilities for handling delegate calls and reverts
State Functions
setWalletFactory(address _walletFactory) external
handleOps(UserOperation[] calldata ops, address payable beneficiary) public nonReentrant
handleAggregatedOps(UserOpsPerAggregator[] calldata opsPerAggregator, address payable beneficiary) public nonReentrant
getSenderAddress(bytes calldata initCode) public
delegateAndRevert(address target, bytes calldata data) external
setWalletFactory (Admin only)
Sets the wallet factory address.
function setWalletFactory(address _walletFactory) external;
_walletFactory
address
The address of the wallet factory.
handleOps
Handles an array of user operations.
function handleOps(UserOperation[] calldata ops, address payable beneficiary) public nonReentrant;
ops
UserOperation[] calldata
Array of user operations.
beneficiary
address payable
Address to receive the fees.
handleAggregatedOps
Handles aggregated operations from multiple aggregators.
function handleAggregatedOps(UserOpsPerAggregator[] calldata opsPerAggregator, address payable beneficiary) public nonReentrant;
opsPerAggregator
UserOpsPerAggregator[] calldata
Array of operations per aggregator.
beneficiary
address payable
Address to receive the fees.
getSenderAddress
Gets the address of a sender based on the provided initialization code.
function getSenderAddress(bytes calldata initCode) public;
initCode
bytes calldata
The initialization code.
delegateAndRevert
Delegates a call to another contract and reverts.
function delegateAndRevert(address target, bytes calldata data) external;
target
address
The target address of the delegatecall.
data
bytes calldata
The data to be sent in the call.
View Function
supportsInterface(bytes4 interfaceId) public view virtual override returns (bool)
getUserOpHash(UserOperation calldata userOp) public view returns (bytes32)
supportsInterface
Checks if the contract supports an interface.
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool);
interfaceId
bytes4
The interface identifier.
getUserOpHash
Gets the hash of a user operation.
function getUserOpHash(UserOperation calldata userOp) public view returns (bytes32);
userOp
UserOperation calldata
The user operation.
Events
FailedOp Emitted when an operation fails.
event FailedOp(uint256 opIndex, string reason);
FailedOpWithRevert Emitted when an operation fails with a revert reason.
event FailedOpWithRevert(uint256 opIndex, string reason, bytes returnData);
PostOpRevertReason Emitted when a post-operation reverts.
event PostOpRevertReason(bytes32 userOpHash, address sender, uint256 nonce, bytes revertReason);
UserOperationRevertReason Emitted when a user operation reverts.
event UserOperationRevertReason(bytes32 userOpHash, address sender, uint256 nonce, bytes revertReason);
AccountDeployed Emitted when an account is deployed.
event AccountDeployed(bytes32 userOpHash, address sender, address factory, address paymaster);
BeforeExecution Emitted before execution of operations.
event BeforeExecution();
SignatureAggregatorChanged Emitted when the signature aggregator is changed.
event SignatureAggregatorChanged(address aggregator);
UserOperationEvent Emitted for each user operation event.
event UserOperationEvent(bytes32 userOpHash, address sender, address paymaster, uint256 nonce, bool success, uint256 actualGasCost, uint256 actualGas);
PostOpReverted Emitted when a post-operation is reverted.
event PostOpReverted(bytes reason);
SenderAddressResult Emitted for the result of
getSenderAddress
.event SenderAddressResult(address sender);
DelegateAndRevert Emitted when
delegateAndRevert
is called.event DelegateAndRevert(bool success, bytes ret);
Last updated