EntryPoint

World Chain

0x0000000071727de22e5e9d8baf0edac6f37da032

Solidity v0.8.23+commit.f704f362

🤖
通过你的 AI 查询此合约
引用: 0x0000000071727de22e5e9d8baf0edac6f37da032
示例提示词: "Tell me the current state of world/0x0000000071727de22e5e9d8baf0edac6f37da032"
还没有接入 AI?→ mcp.smarts.md
World Chain 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
7
写入函数
11
事件
12

读取函数

balanceOf(account: address) view

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.
deposits(address) view

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
getDepositInfo(account: address) view

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.
getNonce(sender: address, key: uint192) view

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.
getUserOpHash(userOp: tuple) view

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
nonceSequenceNumber(address, uint192) view

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
supportsInterface(interfaceId: bytes4) view

Checks whether the contract implements the specified interface ID.✨ AI

开发者: See {IERC165-supportsInterface}.

参数

名称 类型 描述
interfaceId bytes4 Interface identifier (bytes4) to check support for.✨ AI

返回值

名称 类型 描述
bool True if the contract implements the interface identified by interfaceId; otherwise false.✨ AI

写入函数

addStake(unstakeDelaySec: uint32) payable

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.
delegateAndRevert(target: address, data: bytes) nonpayable

Delegate the provided call to a target contract and then revert using the callee's returned data.✨ AI

开发者: calling this method, the EntryPoint will make a delegatecall to the given data, and report (via revert) the result. The method always revert, so is only useful off-chain for dry run calls, in cases where state-override to replace actual EntryPoint code is less convenient.

参数

名称 类型 描述
target address a target contract to make a delegatecall from entrypoint
data bytes data to pass to target in a delegatecall
depositTo(account: address) payable

Deposit ETH to the EntryPoint contract and credit the specified account.✨ AI

参数

名称 类型 描述
account address - The account to add to.
getSenderAddress(initCode: bytes) nonpayable

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.
handleAggregatedOps(opsPerAggregator: tuple[], beneficiary: address) nonpayable

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.
handleOps(ops: tuple[], beneficiary: address) nonpayable

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.
incrementNonce(key: uint192) nonpayable

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
innerHandleOp(callData: bytes, opInfo: tuple, context: bytes) nonpayable

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
unlockStake() nonpayable

Attempt to unlock the stake. The value can be withdrawn (using withdrawStake) after the unstake delay.

withdrawStake(withdrawAddress: address) nonpayable

Withdraws available stake to the specified withdraw address.✨ AI

参数

名称 类型 描述
withdrawAddress address - The address to send withdrawn value.
withdrawTo(withdrawAddress: address, withdrawAmount: uint256) nonpayable

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.

事件

AccountDeployed(userOpHash: bytes32, sender: address, factory: address, paymaster: address)
名称 类型 已索引 描述
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
BeforeExecution()

An event emitted by handleOps(), before starting the execution loop. Any event emitted before this event, is part of the validation.

Deposited(account: address, totalDeposit: uint256)
名称 类型 已索引 描述
account address
totalDeposit uint256
PostOpRevertReason(userOpHash: bytes32, sender: address, nonce: uint256, revertReason: bytes)
名称 类型 已索引 描述
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".
SignatureAggregatorChanged(aggregator: address)
名称 类型 已索引 描述
aggregator address - The aggregator used for the following UserOperationEvents.
StakeLocked(account: address, totalStaked: uint256, unstakeDelaySec: uint256)
名称 类型 已索引 描述
account address
totalStaked uint256
unstakeDelaySec uint256
StakeUnlocked(account: address, withdrawTime: uint256)
名称 类型 已索引 描述
account address
withdrawTime uint256
StakeWithdrawn(account: address, withdrawAddress: address, amount: uint256)
名称 类型 已索引 描述
account address
withdrawAddress address
amount uint256
UserOperationEvent(userOpHash: bytes32, sender: address, paymaster: address, nonce: uint256, success: bool, actualGasCost: uint256, actualGasUsed: 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).
UserOperationPrefundTooLow(userOpHash: bytes32, sender: address, nonce: uint256)
名称 类型 已索引 描述
userOpHash bytes32 - The request unique identifier.
sender address - The sender of this request.
nonce uint256 - The nonce used in the request.
UserOperationRevertReason(userOpHash: bytes32, sender: address, nonce: uint256, revertReason: bytes)
名称 类型 已索引 描述
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".
Withdrawn(account: address, withdrawAddress: address, amount: uint256)
名称 类型 已索引 描述
account address
withdrawAddress address
amount uint256