Title
Add EntryPoint v0.6 and v0.7 contract bindings
Labels
enhancement, account-abstraction, contract, entrypoint
Description
Implement contract bindings for the ERC-4337 EntryPoint contract, which is the core singleton contract that processes UserOperations. Reference: eth-infinitism/account-abstraction
Requirements
Contract Addresses
Core Methods
View Functions
Deposit Management
Events
Event Parsing
EntryPoint Contract Binding
File Structure
src/account_abstraction/
├── entrypoint.zig # EntryPoint contract bindings
├── entrypoint_abi.zig # ABI definitions
└── events.zig # Event types and parsing
Example Usage
const entrypoint = zigeth.accountAbstraction.EntryPoint.v06(provider);
// Get account nonce
const nonce = try entrypoint.getNonce(account_address, 0);
// Check deposit
const deposit = try entrypoint.balanceOf(account_address);
// Listen for UserOperationEvents
const filter = try entrypoint.createUserOpFilter(account_address);
const logs = try provider.eth.getLogs(filter);
References
Title
Add EntryPoint v0.6 and v0.7 contract bindings
Labels
enhancement,account-abstraction,contract,entrypointDescription
Implement contract bindings for the ERC-4337 EntryPoint contract, which is the core singleton contract that processes UserOperations. Reference: eth-infinitism/account-abstraction
Requirements
Contract Addresses
0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789Core Methods
handleOps:
handleAggregatedOps:
getUserOpHash:
getNonce:
View Functions
balanceOf(account: Address) u256- Get account's depositgetDepositInfo(account: Address) DepositInfogetSenderAddress(initCode: []u8) Address- Calculate sender addressDeposit Management
depositTo(account: Address, amount: u256)- Add depositwithdrawTo(withdrawAddress: Address, amount: u256)- WithdrawaddStake(unstakeDelaySec: u32, amount: u256)- Stake for entityEvents
UserOperationEvent- UserOp executedAccountDeployed- New account createdUserOperationRevertReason- UserOp failedDeposited- Deposit madeWithdrawn- Withdrawal madeStakeLocked- Entity stakedStakeUnlocked- Stake unlockedStakeWithdrawn- Stake withdrawnEvent Parsing
UserOperationEvent:EntryPoint Contract Binding
File Structure
Example Usage
References