entrypoint

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2023 License: GPL-3.0 Imports: 22 Imported by: 1

Documentation

Overview

Package entrypoint provides ABI bindings and helper methods for interacting with the EntryPoint contract.

Index

Constants

This section is empty.

Variables

View Source
var EntrypointABI = EntrypointMetaData.ABI

EntrypointABI is the input ABI used to generate the binding from. Deprecated: Use EntrypointMetaData.ABI instead.

View Source
var EntrypointMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"preOpGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paymasterDeadline\",\"type\":\"uint256\"}],\"name\":\"ExecutionResult\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"opIndex\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymaster\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"FailedOp\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SenderAddressResult\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"aggregator\",\"type\":\"address\"}],\"name\":\"SignatureValidationFailed\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"preOpGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prefund\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paymasterDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"paymasterContext\",\"type\":\"bytes\"}],\"internalType\":\"structIEntryPoint.ReturnInfo\",\"name\":\"returnInfo\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeDelaySec\",\"type\":\"uint256\"}],\"internalType\":\"structIStakeManager.StakeInfo\",\"name\":\"senderInfo\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeDelaySec\",\"type\":\"uint256\"}],\"internalType\":\"structIStakeManager.StakeInfo\",\"name\":\"factoryInfo\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeDelaySec\",\"type\":\"uint256\"}],\"internalType\":\"structIStakeManager.StakeInfo\",\"name\":\"paymasterInfo\",\"type\":\"tuple\"}],\"name\":\"ValidationResult\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"preOpGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prefund\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paymasterDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"paymasterContext\",\"type\":\"bytes\"}],\"internalType\":\"structIEntryPoint.ReturnInfo\",\"name\":\"returnInfo\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeDelaySec\",\"type\":\"uint256\"}],\"internalType\":\"structIStakeManager.StakeInfo\",\"name\":\"senderInfo\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeDelaySec\",\"type\":\"uint256\"}],\"internalType\":\"structIStakeManager.StakeInfo\",\"name\":\"factoryInfo\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeDelaySec\",\"type\":\"uint256\"}],\"internalType\":\"structIStakeManager.StakeInfo\",\"name\":\"paymasterInfo\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"actualAggregator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeDelaySec\",\"type\":\"uint256\"}],\"internalType\":\"structIStakeManager.StakeInfo\",\"name\":\"stakeInfo\",\"type\":\"tuple\"}],\"internalType\":\"structIEntryPoint.AggregatorStakeInfo\",\"name\":\"aggregatorInfo\",\"type\":\"tuple\"}],\"name\":\"ValidationResultWithAggregation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"userOpHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"factory\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"paymaster\",\"type\":\"address\"}],\"name\":\"AccountDeployed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalDeposit\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"aggregator\",\"type\":\"address\"}],\"name\":\"SignatureAggregatorChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalStaked\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawTime\",\"type\":\"uint256\"}],\"name\":\"StakeLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawTime\",\"type\":\"uint256\"}],\"name\":\"StakeUnlocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"StakeWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"userOpHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"paymaster\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"actualGasCost\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"actualGasUsed\",\"type\":\"uint256\"}],\"name\":\"UserOperationEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"userOpHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"revertReason\",\"type\":\"bytes\"}],\"name\":\"UserOperationRevertReason\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"SIG_VALIDATION_FAILED\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_unstakeDelaySec\",\"type\":\"uint32\"}],\"name\":\"addStake\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"depositTo\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"deposits\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"deposit\",\"type\":\"uint112\"},{\"internalType\":\"bool\",\"name\":\"staked\",\"type\":\"bool\"},{\"internalType\":\"uint112\",\"name\":\"stake\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"unstakeDelaySec\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"withdrawTime\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getDepositInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint112\",\"name\":\"deposit\",\"type\":\"uint112\"},{\"internalType\":\"bool\",\"name\":\"staked\",\"type\":\"bool\"},{\"internalType\":\"uint112\",\"name\":\"stake\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"unstakeDelaySec\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"withdrawTime\",\"type\":\"uint64\"}],\"internalType\":\"structIStakeManager.DepositInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"}],\"name\":\"getSenderAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"verificationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxPriorityFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"}],\"name\":\"getUserOpHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"verificationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxPriorityFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation[]\",\"name\":\"userOps\",\"type\":\"tuple[]\"},{\"internalType\":\"contractIAggregator\",\"name\":\"aggregator\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structIEntryPoint.UserOpsPerAggregator[]\",\"name\":\"opsPerAggregator\",\"type\":\"tuple[]\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"handleAggregatedOps\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"verificationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxPriorityFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation[]\",\"name\":\"ops\",\"type\":\"tuple[]\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"handleOps\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"verificationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymaster\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxPriorityFeePerGas\",\"type\":\"uint256\"}],\"internalType\":\"structEntryPoint.MemoryUserOp\",\"name\":\"mUserOp\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"userOpHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"prefund\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"contextOffset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"preOpGas\",\"type\":\"uint256\"}],\"internalType\":\"structEntryPoint.UserOpInfo\",\"name\":\"opInfo\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"context\",\"type\":\"bytes\"}],\"name\":\"innerHandleOp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"actualGasCost\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"verificationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxPriorityFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation\",\"name\":\"op\",\"type\":\"tuple\"}],\"name\":\"simulateHandleOp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"verificationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxPriorityFeePerGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"}],\"name\":\"simulateValidation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"withdrawAddress\",\"type\":\"address\"}],\"name\":\"withdrawStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"withdrawTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

EntrypointMetaData contains all meta data concerning the Entrypoint contract.

Functions

func TraceSimulateValidation

func TraceSimulateValidation(
	rpc *rpc.Client,
	entryPoint common.Address,
	op *userop.UserOperation,
	chainID *big.Int,
	customTracer string,
	stakes EntityStakes,
) error

TraceSimulateValidation makes a debug_traceCall to Entrypoint.simulateValidation(userop) and returns the results without any state changes.

Types

type EntitySlots added in v0.2.0

type EntitySlots map[common.Address]mapset.Set[string]

type EntityStakes added in v0.2.0

type EntityStakes = map[common.Address]*IStakeManagerDepositInfo

type EntryPointMemoryUserOp

type EntryPointMemoryUserOp struct {
	Sender               common.Address
	Nonce                *big.Int
	CallGasLimit         *big.Int
	VerificationGasLimit *big.Int
	PreVerificationGas   *big.Int
	Paymaster            common.Address
	MaxFeePerGas         *big.Int
	MaxPriorityFeePerGas *big.Int
}

EntryPointMemoryUserOp is an auto generated low-level Go binding around an user-defined struct.

type EntryPointUserOpInfo

type EntryPointUserOpInfo struct {
	MUserOp       EntryPointMemoryUserOp
	UserOpHash    [32]byte
	Prefund       *big.Int
	ContextOffset *big.Int
	PreOpGas      *big.Int
}

EntryPointUserOpInfo is an auto generated low-level Go binding around an user-defined struct.

type Entrypoint

type Entrypoint struct {
	EntrypointCaller     // Read-only binding to the contract
	EntrypointTransactor // Write-only binding to the contract
	EntrypointFilterer   // Log filterer for contract events
}

Entrypoint is an auto generated Go binding around an Ethereum contract.

func NewEntrypoint

func NewEntrypoint(address common.Address, backend bind.ContractBackend) (*Entrypoint, error)

NewEntrypoint creates a new instance of Entrypoint, bound to a specific deployed contract.

type EntrypointAccountDeployed

type EntrypointAccountDeployed struct {
	UserOpHash [32]byte
	Sender     common.Address
	Factory    common.Address
	Paymaster  common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

EntrypointAccountDeployed represents a AccountDeployed event raised by the Entrypoint contract.

type EntrypointAccountDeployedIterator

type EntrypointAccountDeployedIterator struct {
	Event *EntrypointAccountDeployed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointAccountDeployedIterator is returned from FilterAccountDeployed and is used to iterate over the raw logs and unpacked data for AccountDeployed events raised by the Entrypoint contract.

func (*EntrypointAccountDeployedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointAccountDeployedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointAccountDeployedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointCaller

type EntrypointCaller struct {
	// contains filtered or unexported fields
}

EntrypointCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewEntrypointCaller

func NewEntrypointCaller(address common.Address, caller bind.ContractCaller) (*EntrypointCaller, error)

NewEntrypointCaller creates a new read-only instance of Entrypoint, bound to a specific deployed contract.

func (*EntrypointCaller) BalanceOf

func (_Entrypoint *EntrypointCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*EntrypointCaller) Deposits

func (_Entrypoint *EntrypointCaller) Deposits(opts *bind.CallOpts, arg0 common.Address) (struct {
	Deposit         *big.Int
	Staked          bool
	Stake           *big.Int
	UnstakeDelaySec uint32
	WithdrawTime    uint64
}, error)

Deposits is a free data retrieval call binding the contract method 0xfc7e286d.

Solidity: function deposits(address ) view returns(uint112 deposit, bool staked, uint112 stake, uint32 unstakeDelaySec, uint64 withdrawTime)

func (*EntrypointCaller) GetDepositInfo

func (_Entrypoint *EntrypointCaller) GetDepositInfo(opts *bind.CallOpts, account common.Address) (IStakeManagerDepositInfo, error)

GetDepositInfo is a free data retrieval call binding the contract method 0x5287ce12.

Solidity: function getDepositInfo(address account) view returns((uint112,bool,uint112,uint32,uint64) info)

func (*EntrypointCaller) GetUserOpHash

func (_Entrypoint *EntrypointCaller) GetUserOpHash(opts *bind.CallOpts, userOp UserOperation) ([32]byte, error)

GetUserOpHash is a free data retrieval call binding the contract method 0xa6193531.

Solidity: function getUserOpHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp) view returns(bytes32)

func (*EntrypointCaller) SIGVALIDATIONFAILED added in v0.2.0

func (_Entrypoint *EntrypointCaller) SIGVALIDATIONFAILED(opts *bind.CallOpts) (*big.Int, error)

SIGVALIDATIONFAILED is a free data retrieval call binding the contract method 0x8f41ec5a.

Solidity: function SIG_VALIDATION_FAILED() view returns(uint256)

type EntrypointCallerRaw

type EntrypointCallerRaw struct {
	Contract *EntrypointCaller // Generic read-only contract binding to access the raw methods on
}

EntrypointCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*EntrypointCallerRaw) Call

func (_Entrypoint *EntrypointCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type EntrypointCallerSession

type EntrypointCallerSession struct {
	Contract *EntrypointCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

EntrypointCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*EntrypointCallerSession) BalanceOf

func (_Entrypoint *EntrypointCallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*EntrypointCallerSession) Deposits

func (_Entrypoint *EntrypointCallerSession) Deposits(arg0 common.Address) (struct {
	Deposit         *big.Int
	Staked          bool
	Stake           *big.Int
	UnstakeDelaySec uint32
	WithdrawTime    uint64
}, error)

Deposits is a free data retrieval call binding the contract method 0xfc7e286d.

Solidity: function deposits(address ) view returns(uint112 deposit, bool staked, uint112 stake, uint32 unstakeDelaySec, uint64 withdrawTime)

func (*EntrypointCallerSession) GetDepositInfo

func (_Entrypoint *EntrypointCallerSession) GetDepositInfo(account common.Address) (IStakeManagerDepositInfo, error)

GetDepositInfo is a free data retrieval call binding the contract method 0x5287ce12.

Solidity: function getDepositInfo(address account) view returns((uint112,bool,uint112,uint32,uint64) info)

func (*EntrypointCallerSession) GetUserOpHash

func (_Entrypoint *EntrypointCallerSession) GetUserOpHash(userOp UserOperation) ([32]byte, error)

GetUserOpHash is a free data retrieval call binding the contract method 0xa6193531.

Solidity: function getUserOpHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp) view returns(bytes32)

func (*EntrypointCallerSession) SIGVALIDATIONFAILED added in v0.2.0

func (_Entrypoint *EntrypointCallerSession) SIGVALIDATIONFAILED() (*big.Int, error)

SIGVALIDATIONFAILED is a free data retrieval call binding the contract method 0x8f41ec5a.

Solidity: function SIG_VALIDATION_FAILED() view returns(uint256)

type EntrypointDeposited

type EntrypointDeposited struct {
	Account      common.Address
	TotalDeposit *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

EntrypointDeposited represents a Deposited event raised by the Entrypoint contract.

type EntrypointDepositedIterator

type EntrypointDepositedIterator struct {
	Event *EntrypointDeposited // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Entrypoint contract.

func (*EntrypointDepositedIterator) Close

func (it *EntrypointDepositedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointDepositedIterator) Error

func (it *EntrypointDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointDepositedIterator) Next

func (it *EntrypointDepositedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointFilterer

type EntrypointFilterer struct {
	// contains filtered or unexported fields
}

EntrypointFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewEntrypointFilterer

func NewEntrypointFilterer(address common.Address, filterer bind.ContractFilterer) (*EntrypointFilterer, error)

NewEntrypointFilterer creates a new log filterer instance of Entrypoint, bound to a specific deployed contract.

func (*EntrypointFilterer) FilterAccountDeployed

func (_Entrypoint *EntrypointFilterer) FilterAccountDeployed(opts *bind.FilterOpts, userOpHash [][32]byte, sender []common.Address) (*EntrypointAccountDeployedIterator, error)

FilterAccountDeployed is a free log retrieval operation binding the contract event 0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d.

Solidity: event AccountDeployed(bytes32 indexed userOpHash, address indexed sender, address factory, address paymaster)

func (*EntrypointFilterer) FilterDeposited

func (_Entrypoint *EntrypointFilterer) FilterDeposited(opts *bind.FilterOpts, account []common.Address) (*EntrypointDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.

Solidity: event Deposited(address indexed account, uint256 totalDeposit)

func (*EntrypointFilterer) FilterSignatureAggregatorChanged

func (_Entrypoint *EntrypointFilterer) FilterSignatureAggregatorChanged(opts *bind.FilterOpts) (*EntrypointSignatureAggregatorChangedIterator, error)

FilterSignatureAggregatorChanged is a free log retrieval operation binding the contract event 0x575ff3acadd5ab348fe1855e217e0f3678f8d767d7494c9f9fefbee2e17cca4d.

Solidity: event SignatureAggregatorChanged(address aggregator)

func (*EntrypointFilterer) FilterStakeLocked

func (_Entrypoint *EntrypointFilterer) FilterStakeLocked(opts *bind.FilterOpts, account []common.Address) (*EntrypointStakeLockedIterator, error)

FilterStakeLocked is a free log retrieval operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.

Solidity: event StakeLocked(address indexed account, uint256 totalStaked, uint256 withdrawTime)

func (*EntrypointFilterer) FilterStakeUnlocked

func (_Entrypoint *EntrypointFilterer) FilterStakeUnlocked(opts *bind.FilterOpts, account []common.Address) (*EntrypointStakeUnlockedIterator, error)

FilterStakeUnlocked is a free log retrieval operation binding the contract event 0xfa9b3c14cc825c412c9ed81b3ba365a5b459439403f18829e572ed53a4180f0a.

Solidity: event StakeUnlocked(address indexed account, uint256 withdrawTime)

func (*EntrypointFilterer) FilterStakeWithdrawn

func (_Entrypoint *EntrypointFilterer) FilterStakeWithdrawn(opts *bind.FilterOpts, account []common.Address) (*EntrypointStakeWithdrawnIterator, error)

FilterStakeWithdrawn is a free log retrieval operation binding the contract event 0xb7c918e0e249f999e965cafeb6c664271b3f4317d296461500e71da39f0cbda3.

Solidity: event StakeWithdrawn(address indexed account, address withdrawAddress, uint256 amount)

func (*EntrypointFilterer) FilterUserOperationEvent

func (_Entrypoint *EntrypointFilterer) FilterUserOperationEvent(opts *bind.FilterOpts, userOpHash [][32]byte, sender []common.Address, paymaster []common.Address) (*EntrypointUserOperationEventIterator, error)

FilterUserOperationEvent is a free log retrieval operation binding the contract event 0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f.

Solidity: event UserOperationEvent(bytes32 indexed userOpHash, address indexed sender, address indexed paymaster, uint256 nonce, bool success, uint256 actualGasCost, uint256 actualGasUsed)

func (*EntrypointFilterer) FilterUserOperationRevertReason

func (_Entrypoint *EntrypointFilterer) FilterUserOperationRevertReason(opts *bind.FilterOpts, userOpHash [][32]byte, sender []common.Address) (*EntrypointUserOperationRevertReasonIterator, error)

FilterUserOperationRevertReason is a free log retrieval operation binding the contract event 0x1c4fada7374c0a9ee8841fc38afe82932dc0f8e69012e927f061a8bae611a201.

Solidity: event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)

func (*EntrypointFilterer) FilterWithdrawn

func (_Entrypoint *EntrypointFilterer) FilterWithdrawn(opts *bind.FilterOpts, account []common.Address) (*EntrypointWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(address indexed account, address withdrawAddress, uint256 amount)

func (*EntrypointFilterer) ParseAccountDeployed

func (_Entrypoint *EntrypointFilterer) ParseAccountDeployed(log types.Log) (*EntrypointAccountDeployed, error)

ParseAccountDeployed is a log parse operation binding the contract event 0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d.

Solidity: event AccountDeployed(bytes32 indexed userOpHash, address indexed sender, address factory, address paymaster)

func (*EntrypointFilterer) ParseDeposited

func (_Entrypoint *EntrypointFilterer) ParseDeposited(log types.Log) (*EntrypointDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.

Solidity: event Deposited(address indexed account, uint256 totalDeposit)

func (*EntrypointFilterer) ParseSignatureAggregatorChanged

func (_Entrypoint *EntrypointFilterer) ParseSignatureAggregatorChanged(log types.Log) (*EntrypointSignatureAggregatorChanged, error)

ParseSignatureAggregatorChanged is a log parse operation binding the contract event 0x575ff3acadd5ab348fe1855e217e0f3678f8d767d7494c9f9fefbee2e17cca4d.

Solidity: event SignatureAggregatorChanged(address aggregator)

func (*EntrypointFilterer) ParseStakeLocked

func (_Entrypoint *EntrypointFilterer) ParseStakeLocked(log types.Log) (*EntrypointStakeLocked, error)

ParseStakeLocked is a log parse operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.

Solidity: event StakeLocked(address indexed account, uint256 totalStaked, uint256 withdrawTime)

func (*EntrypointFilterer) ParseStakeUnlocked

func (_Entrypoint *EntrypointFilterer) ParseStakeUnlocked(log types.Log) (*EntrypointStakeUnlocked, error)

ParseStakeUnlocked is a log parse operation binding the contract event 0xfa9b3c14cc825c412c9ed81b3ba365a5b459439403f18829e572ed53a4180f0a.

Solidity: event StakeUnlocked(address indexed account, uint256 withdrawTime)

func (*EntrypointFilterer) ParseStakeWithdrawn

func (_Entrypoint *EntrypointFilterer) ParseStakeWithdrawn(log types.Log) (*EntrypointStakeWithdrawn, error)

ParseStakeWithdrawn is a log parse operation binding the contract event 0xb7c918e0e249f999e965cafeb6c664271b3f4317d296461500e71da39f0cbda3.

Solidity: event StakeWithdrawn(address indexed account, address withdrawAddress, uint256 amount)

func (*EntrypointFilterer) ParseUserOperationEvent

func (_Entrypoint *EntrypointFilterer) ParseUserOperationEvent(log types.Log) (*EntrypointUserOperationEvent, error)

ParseUserOperationEvent is a log parse operation binding the contract event 0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f.

Solidity: event UserOperationEvent(bytes32 indexed userOpHash, address indexed sender, address indexed paymaster, uint256 nonce, bool success, uint256 actualGasCost, uint256 actualGasUsed)

func (*EntrypointFilterer) ParseUserOperationRevertReason

func (_Entrypoint *EntrypointFilterer) ParseUserOperationRevertReason(log types.Log) (*EntrypointUserOperationRevertReason, error)

ParseUserOperationRevertReason is a log parse operation binding the contract event 0x1c4fada7374c0a9ee8841fc38afe82932dc0f8e69012e927f061a8bae611a201.

Solidity: event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)

func (*EntrypointFilterer) ParseWithdrawn

func (_Entrypoint *EntrypointFilterer) ParseWithdrawn(log types.Log) (*EntrypointWithdrawn, error)

ParseWithdrawn is a log parse operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(address indexed account, address withdrawAddress, uint256 amount)

func (*EntrypointFilterer) WatchAccountDeployed

func (_Entrypoint *EntrypointFilterer) WatchAccountDeployed(opts *bind.WatchOpts, sink chan<- *EntrypointAccountDeployed, userOpHash [][32]byte, sender []common.Address) (event.Subscription, error)

WatchAccountDeployed is a free log subscription operation binding the contract event 0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d.

Solidity: event AccountDeployed(bytes32 indexed userOpHash, address indexed sender, address factory, address paymaster)

func (*EntrypointFilterer) WatchDeposited

func (_Entrypoint *EntrypointFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *EntrypointDeposited, account []common.Address) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4.

Solidity: event Deposited(address indexed account, uint256 totalDeposit)

func (*EntrypointFilterer) WatchSignatureAggregatorChanged

func (_Entrypoint *EntrypointFilterer) WatchSignatureAggregatorChanged(opts *bind.WatchOpts, sink chan<- *EntrypointSignatureAggregatorChanged) (event.Subscription, error)

WatchSignatureAggregatorChanged is a free log subscription operation binding the contract event 0x575ff3acadd5ab348fe1855e217e0f3678f8d767d7494c9f9fefbee2e17cca4d.

Solidity: event SignatureAggregatorChanged(address aggregator)

func (*EntrypointFilterer) WatchStakeLocked

func (_Entrypoint *EntrypointFilterer) WatchStakeLocked(opts *bind.WatchOpts, sink chan<- *EntrypointStakeLocked, account []common.Address) (event.Subscription, error)

WatchStakeLocked is a free log subscription operation binding the contract event 0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01.

Solidity: event StakeLocked(address indexed account, uint256 totalStaked, uint256 withdrawTime)

func (*EntrypointFilterer) WatchStakeUnlocked

func (_Entrypoint *EntrypointFilterer) WatchStakeUnlocked(opts *bind.WatchOpts, sink chan<- *EntrypointStakeUnlocked, account []common.Address) (event.Subscription, error)

WatchStakeUnlocked is a free log subscription operation binding the contract event 0xfa9b3c14cc825c412c9ed81b3ba365a5b459439403f18829e572ed53a4180f0a.

Solidity: event StakeUnlocked(address indexed account, uint256 withdrawTime)

func (*EntrypointFilterer) WatchStakeWithdrawn

func (_Entrypoint *EntrypointFilterer) WatchStakeWithdrawn(opts *bind.WatchOpts, sink chan<- *EntrypointStakeWithdrawn, account []common.Address) (event.Subscription, error)

WatchStakeWithdrawn is a free log subscription operation binding the contract event 0xb7c918e0e249f999e965cafeb6c664271b3f4317d296461500e71da39f0cbda3.

Solidity: event StakeWithdrawn(address indexed account, address withdrawAddress, uint256 amount)

func (*EntrypointFilterer) WatchUserOperationEvent

func (_Entrypoint *EntrypointFilterer) WatchUserOperationEvent(opts *bind.WatchOpts, sink chan<- *EntrypointUserOperationEvent, userOpHash [][32]byte, sender []common.Address, paymaster []common.Address) (event.Subscription, error)

WatchUserOperationEvent is a free log subscription operation binding the contract event 0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f.

Solidity: event UserOperationEvent(bytes32 indexed userOpHash, address indexed sender, address indexed paymaster, uint256 nonce, bool success, uint256 actualGasCost, uint256 actualGasUsed)

func (*EntrypointFilterer) WatchUserOperationRevertReason

func (_Entrypoint *EntrypointFilterer) WatchUserOperationRevertReason(opts *bind.WatchOpts, sink chan<- *EntrypointUserOperationRevertReason, userOpHash [][32]byte, sender []common.Address) (event.Subscription, error)

WatchUserOperationRevertReason is a free log subscription operation binding the contract event 0x1c4fada7374c0a9ee8841fc38afe82932dc0f8e69012e927f061a8bae611a201.

Solidity: event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)

func (*EntrypointFilterer) WatchWithdrawn

func (_Entrypoint *EntrypointFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *EntrypointWithdrawn, account []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(address indexed account, address withdrawAddress, uint256 amount)

type EntrypointRaw

type EntrypointRaw struct {
	Contract *Entrypoint // Generic contract binding to access the raw methods on
}

EntrypointRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*EntrypointRaw) Call

func (_Entrypoint *EntrypointRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*EntrypointRaw) Transact

func (_Entrypoint *EntrypointRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*EntrypointRaw) Transfer

func (_Entrypoint *EntrypointRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type EntrypointSession

type EntrypointSession struct {
	Contract     *Entrypoint       // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

EntrypointSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*EntrypointSession) AddStake

func (_Entrypoint *EntrypointSession) AddStake(_unstakeDelaySec uint32) (*types.Transaction, error)

AddStake is a paid mutator transaction binding the contract method 0x0396cb60.

Solidity: function addStake(uint32 _unstakeDelaySec) payable returns()

func (*EntrypointSession) BalanceOf

func (_Entrypoint *EntrypointSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*EntrypointSession) DepositTo

func (_Entrypoint *EntrypointSession) DepositTo(account common.Address) (*types.Transaction, error)

DepositTo is a paid mutator transaction binding the contract method 0xb760faf9.

Solidity: function depositTo(address account) payable returns()

func (*EntrypointSession) Deposits

func (_Entrypoint *EntrypointSession) Deposits(arg0 common.Address) (struct {
	Deposit         *big.Int
	Staked          bool
	Stake           *big.Int
	UnstakeDelaySec uint32
	WithdrawTime    uint64
}, error)

Deposits is a free data retrieval call binding the contract method 0xfc7e286d.

Solidity: function deposits(address ) view returns(uint112 deposit, bool staked, uint112 stake, uint32 unstakeDelaySec, uint64 withdrawTime)

func (*EntrypointSession) GetDepositInfo

func (_Entrypoint *EntrypointSession) GetDepositInfo(account common.Address) (IStakeManagerDepositInfo, error)

GetDepositInfo is a free data retrieval call binding the contract method 0x5287ce12.

Solidity: function getDepositInfo(address account) view returns((uint112,bool,uint112,uint32,uint64) info)

func (*EntrypointSession) GetSenderAddress

func (_Entrypoint *EntrypointSession) GetSenderAddress(initCode []byte) (*types.Transaction, error)

GetSenderAddress is a paid mutator transaction binding the contract method 0x9b249f69.

Solidity: function getSenderAddress(bytes initCode) returns()

func (*EntrypointSession) GetUserOpHash

func (_Entrypoint *EntrypointSession) GetUserOpHash(userOp UserOperation) ([32]byte, error)

GetUserOpHash is a free data retrieval call binding the contract method 0xa6193531.

Solidity: function getUserOpHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp) view returns(bytes32)

func (*EntrypointSession) HandleAggregatedOps

func (_Entrypoint *EntrypointSession) HandleAggregatedOps(opsPerAggregator []IEntryPointUserOpsPerAggregator, beneficiary common.Address) (*types.Transaction, error)

HandleAggregatedOps is a paid mutator transaction binding the contract method 0x4b1d7cf5.

Solidity: function handleAggregatedOps(((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)[],address,bytes)[] opsPerAggregator, address beneficiary) returns()

func (*EntrypointSession) HandleOps

func (_Entrypoint *EntrypointSession) HandleOps(ops []UserOperation, beneficiary common.Address) (*types.Transaction, error)

HandleOps is a paid mutator transaction binding the contract method 0x1fad948c.

Solidity: function handleOps((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)[] ops, address beneficiary) returns()

func (*EntrypointSession) InnerHandleOp

func (_Entrypoint *EntrypointSession) InnerHandleOp(callData []byte, opInfo EntryPointUserOpInfo, context []byte) (*types.Transaction, error)

InnerHandleOp is a paid mutator transaction binding the contract method 0x1d732756.

Solidity: function innerHandleOp(bytes callData, ((address,uint256,uint256,uint256,uint256,address,uint256,uint256),bytes32,uint256,uint256,uint256) opInfo, bytes context) returns(uint256 actualGasCost)

func (*EntrypointSession) Receive

func (_Entrypoint *EntrypointSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*EntrypointSession) SIGVALIDATIONFAILED added in v0.2.0

func (_Entrypoint *EntrypointSession) SIGVALIDATIONFAILED() (*big.Int, error)

SIGVALIDATIONFAILED is a free data retrieval call binding the contract method 0x8f41ec5a.

Solidity: function SIG_VALIDATION_FAILED() view returns(uint256)

func (*EntrypointSession) SimulateHandleOp added in v0.2.0

func (_Entrypoint *EntrypointSession) SimulateHandleOp(op UserOperation) (*types.Transaction, error)

SimulateHandleOp is a paid mutator transaction binding the contract method 0xc2077116.

Solidity: function simulateHandleOp((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) op) returns()

func (*EntrypointSession) SimulateValidation

func (_Entrypoint *EntrypointSession) SimulateValidation(userOp UserOperation) (*types.Transaction, error)

SimulateValidation is a paid mutator transaction binding the contract method 0xee219423.

Solidity: function simulateValidation((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp) returns()

func (*EntrypointSession) UnlockStake

func (_Entrypoint *EntrypointSession) UnlockStake() (*types.Transaction, error)

UnlockStake is a paid mutator transaction binding the contract method 0xbb9fe6bf.

Solidity: function unlockStake() returns()

func (*EntrypointSession) WithdrawStake

func (_Entrypoint *EntrypointSession) WithdrawStake(withdrawAddress common.Address) (*types.Transaction, error)

WithdrawStake is a paid mutator transaction binding the contract method 0xc23a5cea.

Solidity: function withdrawStake(address withdrawAddress) returns()

func (*EntrypointSession) WithdrawTo

func (_Entrypoint *EntrypointSession) WithdrawTo(withdrawAddress common.Address, withdrawAmount *big.Int) (*types.Transaction, error)

WithdrawTo is a paid mutator transaction binding the contract method 0x205c2878.

Solidity: function withdrawTo(address withdrawAddress, uint256 withdrawAmount) returns()

type EntrypointSignatureAggregatorChanged

type EntrypointSignatureAggregatorChanged struct {
	Aggregator common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

EntrypointSignatureAggregatorChanged represents a SignatureAggregatorChanged event raised by the Entrypoint contract.

type EntrypointSignatureAggregatorChangedIterator

type EntrypointSignatureAggregatorChangedIterator struct {
	Event *EntrypointSignatureAggregatorChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointSignatureAggregatorChangedIterator is returned from FilterSignatureAggregatorChanged and is used to iterate over the raw logs and unpacked data for SignatureAggregatorChanged events raised by the Entrypoint contract.

func (*EntrypointSignatureAggregatorChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointSignatureAggregatorChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointSignatureAggregatorChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointStakeLocked

type EntrypointStakeLocked struct {
	Account      common.Address
	TotalStaked  *big.Int
	WithdrawTime *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

EntrypointStakeLocked represents a StakeLocked event raised by the Entrypoint contract.

type EntrypointStakeLockedIterator

type EntrypointStakeLockedIterator struct {
	Event *EntrypointStakeLocked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointStakeLockedIterator is returned from FilterStakeLocked and is used to iterate over the raw logs and unpacked data for StakeLocked events raised by the Entrypoint contract.

func (*EntrypointStakeLockedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointStakeLockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointStakeLockedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointStakeUnlocked

type EntrypointStakeUnlocked struct {
	Account      common.Address
	WithdrawTime *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

EntrypointStakeUnlocked represents a StakeUnlocked event raised by the Entrypoint contract.

type EntrypointStakeUnlockedIterator

type EntrypointStakeUnlockedIterator struct {
	Event *EntrypointStakeUnlocked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointStakeUnlockedIterator is returned from FilterStakeUnlocked and is used to iterate over the raw logs and unpacked data for StakeUnlocked events raised by the Entrypoint contract.

func (*EntrypointStakeUnlockedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointStakeUnlockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointStakeUnlockedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointStakeWithdrawn

type EntrypointStakeWithdrawn struct {
	Account         common.Address
	WithdrawAddress common.Address
	Amount          *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

EntrypointStakeWithdrawn represents a StakeWithdrawn event raised by the Entrypoint contract.

type EntrypointStakeWithdrawnIterator

type EntrypointStakeWithdrawnIterator struct {
	Event *EntrypointStakeWithdrawn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointStakeWithdrawnIterator is returned from FilterStakeWithdrawn and is used to iterate over the raw logs and unpacked data for StakeWithdrawn events raised by the Entrypoint contract.

func (*EntrypointStakeWithdrawnIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointStakeWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointStakeWithdrawnIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointTransactor

type EntrypointTransactor struct {
	// contains filtered or unexported fields
}

EntrypointTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewEntrypointTransactor

func NewEntrypointTransactor(address common.Address, transactor bind.ContractTransactor) (*EntrypointTransactor, error)

NewEntrypointTransactor creates a new write-only instance of Entrypoint, bound to a specific deployed contract.

func (*EntrypointTransactor) AddStake

func (_Entrypoint *EntrypointTransactor) AddStake(opts *bind.TransactOpts, _unstakeDelaySec uint32) (*types.Transaction, error)

AddStake is a paid mutator transaction binding the contract method 0x0396cb60.

Solidity: function addStake(uint32 _unstakeDelaySec) payable returns()

func (*EntrypointTransactor) DepositTo

func (_Entrypoint *EntrypointTransactor) DepositTo(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

DepositTo is a paid mutator transaction binding the contract method 0xb760faf9.

Solidity: function depositTo(address account) payable returns()

func (*EntrypointTransactor) GetSenderAddress

func (_Entrypoint *EntrypointTransactor) GetSenderAddress(opts *bind.TransactOpts, initCode []byte) (*types.Transaction, error)

GetSenderAddress is a paid mutator transaction binding the contract method 0x9b249f69.

Solidity: function getSenderAddress(bytes initCode) returns()

func (*EntrypointTransactor) HandleAggregatedOps

func (_Entrypoint *EntrypointTransactor) HandleAggregatedOps(opts *bind.TransactOpts, opsPerAggregator []IEntryPointUserOpsPerAggregator, beneficiary common.Address) (*types.Transaction, error)

HandleAggregatedOps is a paid mutator transaction binding the contract method 0x4b1d7cf5.

Solidity: function handleAggregatedOps(((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)[],address,bytes)[] opsPerAggregator, address beneficiary) returns()

func (*EntrypointTransactor) HandleOps

func (_Entrypoint *EntrypointTransactor) HandleOps(opts *bind.TransactOpts, ops []UserOperation, beneficiary common.Address) (*types.Transaction, error)

HandleOps is a paid mutator transaction binding the contract method 0x1fad948c.

Solidity: function handleOps((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)[] ops, address beneficiary) returns()

func (*EntrypointTransactor) InnerHandleOp

func (_Entrypoint *EntrypointTransactor) InnerHandleOp(opts *bind.TransactOpts, callData []byte, opInfo EntryPointUserOpInfo, context []byte) (*types.Transaction, error)

InnerHandleOp is a paid mutator transaction binding the contract method 0x1d732756.

Solidity: function innerHandleOp(bytes callData, ((address,uint256,uint256,uint256,uint256,address,uint256,uint256),bytes32,uint256,uint256,uint256) opInfo, bytes context) returns(uint256 actualGasCost)

func (*EntrypointTransactor) Receive

func (_Entrypoint *EntrypointTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*EntrypointTransactor) SimulateHandleOp added in v0.2.0

func (_Entrypoint *EntrypointTransactor) SimulateHandleOp(opts *bind.TransactOpts, op UserOperation) (*types.Transaction, error)

SimulateHandleOp is a paid mutator transaction binding the contract method 0xc2077116.

Solidity: function simulateHandleOp((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) op) returns()

func (*EntrypointTransactor) SimulateValidation

func (_Entrypoint *EntrypointTransactor) SimulateValidation(opts *bind.TransactOpts, userOp UserOperation) (*types.Transaction, error)

SimulateValidation is a paid mutator transaction binding the contract method 0xee219423.

Solidity: function simulateValidation((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp) returns()

func (*EntrypointTransactor) UnlockStake

func (_Entrypoint *EntrypointTransactor) UnlockStake(opts *bind.TransactOpts) (*types.Transaction, error)

UnlockStake is a paid mutator transaction binding the contract method 0xbb9fe6bf.

Solidity: function unlockStake() returns()

func (*EntrypointTransactor) WithdrawStake

func (_Entrypoint *EntrypointTransactor) WithdrawStake(opts *bind.TransactOpts, withdrawAddress common.Address) (*types.Transaction, error)

WithdrawStake is a paid mutator transaction binding the contract method 0xc23a5cea.

Solidity: function withdrawStake(address withdrawAddress) returns()

func (*EntrypointTransactor) WithdrawTo

func (_Entrypoint *EntrypointTransactor) WithdrawTo(opts *bind.TransactOpts, withdrawAddress common.Address, withdrawAmount *big.Int) (*types.Transaction, error)

WithdrawTo is a paid mutator transaction binding the contract method 0x205c2878.

Solidity: function withdrawTo(address withdrawAddress, uint256 withdrawAmount) returns()

type EntrypointTransactorRaw

type EntrypointTransactorRaw struct {
	Contract *EntrypointTransactor // Generic write-only contract binding to access the raw methods on
}

EntrypointTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*EntrypointTransactorRaw) Transact

func (_Entrypoint *EntrypointTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*EntrypointTransactorRaw) Transfer

func (_Entrypoint *EntrypointTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type EntrypointTransactorSession

type EntrypointTransactorSession struct {
	Contract     *EntrypointTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

EntrypointTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*EntrypointTransactorSession) AddStake

func (_Entrypoint *EntrypointTransactorSession) AddStake(_unstakeDelaySec uint32) (*types.Transaction, error)

AddStake is a paid mutator transaction binding the contract method 0x0396cb60.

Solidity: function addStake(uint32 _unstakeDelaySec) payable returns()

func (*EntrypointTransactorSession) DepositTo

func (_Entrypoint *EntrypointTransactorSession) DepositTo(account common.Address) (*types.Transaction, error)

DepositTo is a paid mutator transaction binding the contract method 0xb760faf9.

Solidity: function depositTo(address account) payable returns()

func (*EntrypointTransactorSession) GetSenderAddress

func (_Entrypoint *EntrypointTransactorSession) GetSenderAddress(initCode []byte) (*types.Transaction, error)

GetSenderAddress is a paid mutator transaction binding the contract method 0x9b249f69.

Solidity: function getSenderAddress(bytes initCode) returns()

func (*EntrypointTransactorSession) HandleAggregatedOps

func (_Entrypoint *EntrypointTransactorSession) HandleAggregatedOps(opsPerAggregator []IEntryPointUserOpsPerAggregator, beneficiary common.Address) (*types.Transaction, error)

HandleAggregatedOps is a paid mutator transaction binding the contract method 0x4b1d7cf5.

Solidity: function handleAggregatedOps(((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)[],address,bytes)[] opsPerAggregator, address beneficiary) returns()

func (*EntrypointTransactorSession) HandleOps

func (_Entrypoint *EntrypointTransactorSession) HandleOps(ops []UserOperation, beneficiary common.Address) (*types.Transaction, error)

HandleOps is a paid mutator transaction binding the contract method 0x1fad948c.

Solidity: function handleOps((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)[] ops, address beneficiary) returns()

func (*EntrypointTransactorSession) InnerHandleOp

func (_Entrypoint *EntrypointTransactorSession) InnerHandleOp(callData []byte, opInfo EntryPointUserOpInfo, context []byte) (*types.Transaction, error)

InnerHandleOp is a paid mutator transaction binding the contract method 0x1d732756.

Solidity: function innerHandleOp(bytes callData, ((address,uint256,uint256,uint256,uint256,address,uint256,uint256),bytes32,uint256,uint256,uint256) opInfo, bytes context) returns(uint256 actualGasCost)

func (*EntrypointTransactorSession) Receive

func (_Entrypoint *EntrypointTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*EntrypointTransactorSession) SimulateHandleOp added in v0.2.0

func (_Entrypoint *EntrypointTransactorSession) SimulateHandleOp(op UserOperation) (*types.Transaction, error)

SimulateHandleOp is a paid mutator transaction binding the contract method 0xc2077116.

Solidity: function simulateHandleOp((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) op) returns()

func (*EntrypointTransactorSession) SimulateValidation

func (_Entrypoint *EntrypointTransactorSession) SimulateValidation(userOp UserOperation) (*types.Transaction, error)

SimulateValidation is a paid mutator transaction binding the contract method 0xee219423.

Solidity: function simulateValidation((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp) returns()

func (*EntrypointTransactorSession) UnlockStake

func (_Entrypoint *EntrypointTransactorSession) UnlockStake() (*types.Transaction, error)

UnlockStake is a paid mutator transaction binding the contract method 0xbb9fe6bf.

Solidity: function unlockStake() returns()

func (*EntrypointTransactorSession) WithdrawStake

func (_Entrypoint *EntrypointTransactorSession) WithdrawStake(withdrawAddress common.Address) (*types.Transaction, error)

WithdrawStake is a paid mutator transaction binding the contract method 0xc23a5cea.

Solidity: function withdrawStake(address withdrawAddress) returns()

func (*EntrypointTransactorSession) WithdrawTo

func (_Entrypoint *EntrypointTransactorSession) WithdrawTo(withdrawAddress common.Address, withdrawAmount *big.Int) (*types.Transaction, error)

WithdrawTo is a paid mutator transaction binding the contract method 0x205c2878.

Solidity: function withdrawTo(address withdrawAddress, uint256 withdrawAmount) returns()

type EntrypointUserOperationEvent

type EntrypointUserOperationEvent struct {
	UserOpHash    [32]byte
	Sender        common.Address
	Paymaster     common.Address
	Nonce         *big.Int
	Success       bool
	ActualGasCost *big.Int
	ActualGasUsed *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

EntrypointUserOperationEvent represents a UserOperationEvent event raised by the Entrypoint contract.

type EntrypointUserOperationEventIterator

type EntrypointUserOperationEventIterator struct {
	Event *EntrypointUserOperationEvent // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointUserOperationEventIterator is returned from FilterUserOperationEvent and is used to iterate over the raw logs and unpacked data for UserOperationEvent events raised by the Entrypoint contract.

func (*EntrypointUserOperationEventIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointUserOperationEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointUserOperationEventIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointUserOperationRevertReason

type EntrypointUserOperationRevertReason struct {
	UserOpHash   [32]byte
	Sender       common.Address
	Nonce        *big.Int
	RevertReason []byte
	Raw          types.Log // Blockchain specific contextual infos
}

EntrypointUserOperationRevertReason represents a UserOperationRevertReason event raised by the Entrypoint contract.

type EntrypointUserOperationRevertReasonIterator

type EntrypointUserOperationRevertReasonIterator struct {
	Event *EntrypointUserOperationRevertReason // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointUserOperationRevertReasonIterator is returned from FilterUserOperationRevertReason and is used to iterate over the raw logs and unpacked data for UserOperationRevertReason events raised by the Entrypoint contract.

func (*EntrypointUserOperationRevertReasonIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointUserOperationRevertReasonIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointUserOperationRevertReasonIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EntrypointWithdrawn

type EntrypointWithdrawn struct {
	Account         common.Address
	WithdrawAddress common.Address
	Amount          *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

EntrypointWithdrawn represents a Withdrawn event raised by the Entrypoint contract.

type EntrypointWithdrawnIterator

type EntrypointWithdrawnIterator struct {
	Event *EntrypointWithdrawn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EntrypointWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Entrypoint contract.

func (*EntrypointWithdrawnIterator) Close

func (it *EntrypointWithdrawnIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*EntrypointWithdrawnIterator) Error

func (it *EntrypointWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*EntrypointWithdrawnIterator) Next

func (it *EntrypointWithdrawnIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type FailedOpRevert

type FailedOpRevert struct {
	OpIndex   int
	Paymaster common.Address
	Reason    string
}

func EstimateHandleOpsGas

func EstimateHandleOpsGas(
	eoa *signer.EOA,
	eth *ethclient.Client,
	chainID *big.Int,
	entryPoint common.Address,
	batch []*userop.UserOperation,
	beneficiary common.Address,
) (gas uint64, revert *FailedOpRevert, err error)

EstimateHandleOpsGas returns a gas estimate required to call handleOps() with a given batch. A failed call will return the cause of the revert.

func HandleOps

func HandleOps(
	eoa *signer.EOA,
	eth *ethclient.Client,
	chainID *big.Int,
	entryPoint common.Address,
	batch []*userop.UserOperation,
	beneficiary common.Address,
	gas uint64,
) (txn *types.Transaction, revert *FailedOpRevert, err error)

HandleOps calls handleOps() on the EntryPoint with a given batch, gas limit, and tip. A failed call will return the cause of the revert.

type IEntryPointUserOpsPerAggregator

type IEntryPointUserOpsPerAggregator struct {
	UserOps    []UserOperation
	Aggregator common.Address
	Signature  []byte
}

IEntryPointUserOpsPerAggregator is an auto generated low-level Go binding around an user-defined struct.

type IStakeManagerDepositInfo

type IStakeManagerDepositInfo struct {
	Deposit         *big.Int
	Staked          bool
	Stake           *big.Int
	UnstakeDelaySec uint32
	WithdrawTime    uint64
}

IStakeManagerDepositInfo is an auto generated low-level Go binding around an user-defined struct.

type ReturnInfo added in v0.2.0

type ReturnInfo struct {
	PreOpGas          *big.Int `json:"preOpGas"`
	Prefund           *big.Int `json:"prefund"`
	Deadline          *big.Int `json:"deadline"`
	PaymasterDeadline *big.Int `json:"paymasterDeadline"`
	PaymasterContext  []byte   `json:"paymasterContext"`
}

type StakeInfo

type StakeInfo struct {
	Stake           *big.Int `json:"stake"`
	UnstakeDelaySec *big.Int `json:"unstakeDelaySec"`
}

type UserOperation

type UserOperation struct {
	Sender               common.Address
	Nonce                *big.Int
	InitCode             []byte
	CallData             []byte
	CallGasLimit         *big.Int
	VerificationGasLimit *big.Int
	PreVerificationGas   *big.Int
	MaxFeePerGas         *big.Int
	MaxPriorityFeePerGas *big.Int
	PaymasterAndData     []byte
	Signature            []byte
}

UserOperation is an auto generated low-level Go binding around an user-defined struct.

type UserOperationReceipt added in v0.2.0

type UserOperationReceipt struct {
	UserOpHash    common.Hash        `json:"userOpHash"`
	Sender        common.Address     `json:"sender"`
	Paymaster     common.Address     `json:"paymaster"`
	Nonce         string             `json:"nonce"`
	Success       bool               `json:"success"`
	ActualGasCost string             `json:"actualGasCost"`
	ActualGasUsed string             `json:"actualGasUsed"`
	From          common.Address     `json:"from"`
	Receipt       *parsedTransaction `json:"receipt"`
	Logs          []*types.Log       `json:"logs"`
}

func GetUserOperationReceipt added in v0.2.0

func GetUserOperationReceipt(
	eth *ethclient.Client,
	userOpHash string,
	entryPoint common.Address,
) (*UserOperationReceipt, error)

GetUserOperationReceipt filters the EntryPoint contract for UserOperationEvents and returns a receipt for both the UserOperation and accompanying transaction.

type ValidationResultRevert added in v0.2.0

type ValidationResultRevert struct {
	ReturnInfo    *ReturnInfo
	SenderInfo    *StakeInfo
	FactoryInfo   *StakeInfo
	PaymasterInfo *StakeInfo
}

func SimulateValidation

func SimulateValidation(
	rpc *rpc.Client,
	entryPoint common.Address,
	op *userop.UserOperation,
) (*ValidationResultRevert, error)

SimulateValidation makes a static call to Entrypoint.simulateValidation(userop) and returns the results without any state changes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL