EntryPoint
World Chain0x0000000071727de22e5e9d8baf0edac6f37da032
Solidity v0.8.23+commit.f704f362
概覽
讀取函式
Return the balance associated with the given account in this contract.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | - The account to query. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | - The deposit (for gas payment) of the account. |
Returns deposit and staking information for the given account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | - The account to query. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| info | tuple | info - Full deposit information of given account. |
Return the current nonce associated with a sender and a key.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| sender | address | the account address |
| key | uint192 | the high 192 bit of the nonce |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| userOp | tuple | - The user operation to generate the request ID for. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | hash the hash of this UserOperation |
Computes the sequence-based nonce for the given account and sequence value.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | uint192 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The resulting nonce as a uint256 derived from the account and sequence.✨ AI |
Checks whether the contract implements the specified interface ID.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | Interface identifier (bytes4) to check support for.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the interface identified by interfaceId; otherwise false.✨ AI |
寫入函式
Adds or increases the contract's stake and sets the minimum unstake delay.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | - The account to add to. |
Compute the sender address that would be deployed by the provided initCode without modifying contract state.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| key | uint192 |
Processes a user operation with metadata and context, then returns the actual gas cost.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| callData | bytes | - The callData to execute. |
| opInfo | tuple | - The UserOpInfo struct. |
| context | bytes | - The context bytes. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| withdrawAddress | address | - The address to send withdrawn value. |
Transfers up to withdrawAmount of the contract's Ether balance to withdrawAddress.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| withdrawAddress | address | - The address to send withdrawn value. |
| withdrawAmount | uint256 | - The amount to withdraw. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| 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.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| totalDeposit | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| 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". |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| aggregator | address | ✓ | - The aggregator used for the following UserOperationEvents. |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| totalStaked | uint256 | ||
| unstakeDelaySec | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| withdrawTime | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| withdrawAddress | address | ||
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| 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). |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| userOpHash | bytes32 | ✓ | - The request unique identifier. |
| sender | address | ✓ | - The sender of this request. |
| nonce | uint256 | - The nonce used in the request. |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| 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". |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| withdrawAddress | address | ||
| amount | uint256 |