0x0000000071727de22e5e9d8baf0edac6f37da032
Solidity v0.8.23+commit.f704f362
Overview
Read Functions
Return the balance associated with the given account in this contract.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | - The account to query. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | - The deposit (for gas payment) of the account. |
Returns deposit and staking information for the given account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| deposit | uint256 | deposit: Total deposit balance for the account (wei).✨ AI |
| staked | bool | staked: True if the account has an active stake.✨ AI |
| stake | uint112 | stake: Amount currently staked by the account (wei).✨ AI |
| unstakeDelaySec | uint32 | unstakeDelaySec: Delay in seconds required before staked funds can be withdrawn.✨ AI |
| withdrawTime | uint48 | withdrawTime: Unix timestamp when withdrawal becomes allowed; 0 if not scheduled.✨ AI |
Get deposit and stake details for the specified account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | - The account to query. |
Returns
| Name | Type | Description |
|---|---|---|
| info | tuple | info - Full deposit information of given account. |
Return the current nonce associated with a sender and a key.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| sender | address | the account address |
| key | uint192 | the high 192 bit of the nonce |
Returns
| Name | Type | Description |
|---|---|---|
| nonce | uint256 | nonce a full nonce to pass for next UserOp with this sender. |
Computes the keccak256 hash of a UserOperation to uniquely identify that operation.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| userOp | tuple | - The user operation to generate the request ID for. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | hash the hash of this UserOperation |
Computes the sequence-based nonce for the given account and sequence value.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | uint192 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The resulting nonce as a uint256 derived from the account and sequence.✨ AI |
Checks whether the contract implements the specified interface ID.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 | Interface identifier (bytes4) to check support for.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the contract implements the interface identified by interfaceId; otherwise false.✨ AI |
Write Functions
Adds or increases the contract's stake and sets the minimum unstake delay.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| unstakeDelaySec | uint32 | The new lock duration before the deposit can be withdrawn. |
Delegate the provided call to a target contract and then revert using the callee's returned data.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| target | address | a target contract to make a delegatecall from entrypoint |
| data | bytes | data to pass to target in a delegatecall |
Deposit ETH to the EntryPoint contract and credit the specified account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | - The account to add to. |
Compute the sender address that would be deployed by the provided initCode without modifying contract state.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| initCode | bytes | - The constructor code to be passed into the UserOperation. |
Processes batches of user operations grouped per aggregator and executes them while crediting the beneficiary.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| opsPerAggregator | tuple[] | - The operations to execute, grouped by aggregator (or address(0) for no-aggregator accounts). |
| beneficiary | address | - The address to receive the fees. |
Execute a batch of user operations and transfer collected fees to the beneficiary.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| ops | tuple[] | - The operations to execute. |
| beneficiary | address | - The address to receive the fees. |
Manually increment the nonce of the sender. This method is exposed just for completeness.. Account does NOT need to call it, neither during validation, nor elsewhere, as the EntryPoint will update the nonce regardless. Possible use-case is call it with various keys to "initialize" their nonces to one, so that future UserOperations will not pay extra for the first transaction with a given key.
Parameters
| Name | Type | Description |
|---|---|---|
| key | uint192 |
Processes a user operation with metadata and context, then returns the actual gas cost.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| callData | bytes | - The callData to execute. |
| opInfo | tuple | - The UserOpInfo struct. |
| context | bytes | - The context bytes. |
Returns
| Name | Type | Description |
|---|---|---|
| actualGasCost | uint256 | actualGasCost - the actual cost in eth this UserOperation paid for gas |
Attempt to unlock the stake. The value can be withdrawn (using withdrawStake) after the unstake delay.
Withdraws available stake to the specified withdraw address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| withdrawAddress | address | - The address to send withdrawn value. |
Transfers up to withdrawAmount of the contract's Ether balance to withdrawAddress.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| withdrawAddress | address | - The address to send withdrawn value. |
| withdrawAmount | uint256 | - The amount to withdraw. |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| userOpHash | bytes32 | ✓ | - The userOp that deployed this account. UserOperationEvent will follow. |
| sender | address | ✓ | - The account that is deployed |
| factory | address | - The factory used to deploy this account (in the initCode) | |
| paymaster | address | - The paymaster used by this UserOp |
An event emitted by handleOps(), before starting the execution loop. Any event emitted before this event, is part of the validation.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | |
| totalDeposit | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| userOpHash | bytes32 | ✓ | - The request unique identifier. |
| sender | address | ✓ | - The sender of this request. |
| nonce | uint256 | - The nonce used in the request. | |
| revertReason | bytes | - The return bytes from the (reverted) call to "callData". |
| Name | Type | Indexed | Description |
|---|---|---|---|
| aggregator | address | ✓ | - The aggregator used for the following UserOperationEvents. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | |
| totalStaked | uint256 | ||
| unstakeDelaySec | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | |
| withdrawTime | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | |
| withdrawAddress | address | ||
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| userOpHash | bytes32 | ✓ | - Unique identifier for the request (hash its entire content, except signature). |
| sender | address | ✓ | - The account that generates this request. |
| paymaster | address | ✓ | - If non-null, the paymaster that pays for this request. |
| nonce | uint256 | - The nonce value from the request. | |
| success | bool | - True if the sender transaction succeeded, false if reverted. | |
| actualGasCost | uint256 | - Actual amount paid (by account or paymaster) for this UserOperation. | |
| actualGasUsed | uint256 | - Total gas used by this UserOperation (including preVerification, creation, validation and execution). |
| Name | Type | Indexed | Description |
|---|---|---|---|
| userOpHash | bytes32 | ✓ | - The request unique identifier. |
| sender | address | ✓ | - The sender of this request. |
| nonce | uint256 | - The nonce used in the request. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| userOpHash | bytes32 | ✓ | - The request unique identifier. |
| sender | address | ✓ | - The sender of this request. |
| nonce | uint256 | - The nonce used in the request. | |
| revertReason | bytes | - The return bytes from the (reverted) call to "callData". |
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | |
| withdrawAddress | address | ||
| amount | uint256 |