Versions in this module Expand all Collapse all v0 v0.0.1 Mar 31, 2024 Changes in this version + var ContractABI = ContractMetaData.ABI + var ContractMetaData = &bind.MetaData + func EncodePaymasterAndData(data *Data, signature []byte) ([]byte, error) + func GetHash(eth *ethclient.Client, op *userop.UserOperation, data *Data) ([32]byte, error) + func Sign(message []byte, signer *signer.EOA) ([]byte, error) + type Contract struct + func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error) + type ContractCaller struct + func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error) + func (_Contract *ContractCaller) EntryPoint(opts *bind.CallOpts) (common.Address, error) + func (_Contract *ContractCaller) GetDeposit(opts *bind.CallOpts) (*big.Int, error) + func (_Contract *ContractCaller) GetHash(opts *bind.CallOpts, userOp UserOperation, validUntil *big.Int, ...) ([32]byte, error) + func (_Contract *ContractCaller) Owner(opts *bind.CallOpts) (common.Address, error) + func (_Contract *ContractCaller) POSTOPGAS(opts *bind.CallOpts) (*big.Int, error) + func (_Contract *ContractCaller) ParsePaymasterAndData(opts *bind.CallOpts, paymasterAndData []byte) (struct{ ... }, error) + func (_Contract *ContractCaller) Vault(opts *bind.CallOpts) (common.Address, error) + func (_Contract *ContractCaller) Verifier(opts *bind.CallOpts) (common.Address, error) + type ContractCallerRaw struct + Contract *ContractCaller + func (_Contract *ContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type ContractCallerSession struct + CallOpts bind.CallOpts + Contract *ContractCaller + func (_Contract *ContractCallerSession) EntryPoint() (common.Address, error) + func (_Contract *ContractCallerSession) GetDeposit() (*big.Int, error) + func (_Contract *ContractCallerSession) GetHash(userOp UserOperation, validUntil *big.Int, validAfter *big.Int, ...) ([32]byte, error) + func (_Contract *ContractCallerSession) Owner() (common.Address, error) + func (_Contract *ContractCallerSession) POSTOPGAS() (*big.Int, error) + func (_Contract *ContractCallerSession) ParsePaymasterAndData(paymasterAndData []byte) (struct{ ... }, error) + func (_Contract *ContractCallerSession) Vault() (common.Address, error) + func (_Contract *ContractCallerSession) Verifier() (common.Address, error) + type ContractFilterer struct + func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error) + func (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*ContractOwnershipTransferredIterator, error) + func (_Contract *ContractFilterer) ParseOwnershipTransferred(log types.Log) (*ContractOwnershipTransferred, error) + func (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferred, ...) (event.Subscription, error) + type ContractOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type ContractOwnershipTransferredIterator struct + Event *ContractOwnershipTransferred + func (it *ContractOwnershipTransferredIterator) Close() error + func (it *ContractOwnershipTransferredIterator) Error() error + func (it *ContractOwnershipTransferredIterator) Next() bool + type ContractRaw struct + Contract *Contract + func (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ContractSession struct + CallOpts bind.CallOpts + Contract *Contract + TransactOpts bind.TransactOpts + func (_Contract *ContractSession) AddStake(unstakeDelaySec uint32) (*types.Transaction, error) + func (_Contract *ContractSession) Deposit() (*types.Transaction, error) + func (_Contract *ContractSession) EntryPoint() (common.Address, error) + func (_Contract *ContractSession) GetDeposit() (*big.Int, error) + func (_Contract *ContractSession) GetHash(userOp UserOperation, validUntil *big.Int, validAfter *big.Int, ...) ([32]byte, error) + func (_Contract *ContractSession) Owner() (common.Address, error) + func (_Contract *ContractSession) POSTOPGAS() (*big.Int, error) + func (_Contract *ContractSession) ParsePaymasterAndData(paymasterAndData []byte) (struct{ ... }, error) + func (_Contract *ContractSession) PostOp(mode uint8, context []byte, actualGasCost *big.Int) (*types.Transaction, error) + func (_Contract *ContractSession) RenounceOwnership() (*types.Transaction, error) + func (_Contract *ContractSession) SetVault(_vault common.Address) (*types.Transaction, error) + func (_Contract *ContractSession) SetVerifier(_verifier common.Address) (*types.Transaction, error) + func (_Contract *ContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_Contract *ContractSession) UnlockStake() (*types.Transaction, error) + func (_Contract *ContractSession) ValidatePaymasterUserOp(userOp UserOperation, userOpHash [32]byte, maxCost *big.Int) (*types.Transaction, error) + func (_Contract *ContractSession) Vault() (common.Address, error) + func (_Contract *ContractSession) Verifier() (common.Address, error) + func (_Contract *ContractSession) WithdrawStake(withdrawAddress common.Address) (*types.Transaction, error) + func (_Contract *ContractSession) WithdrawTo(withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + type ContractTransactor struct + func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error) + func (_Contract *ContractTransactor) AddStake(opts *bind.TransactOpts, unstakeDelaySec uint32) (*types.Transaction, error) + func (_Contract *ContractTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Contract *ContractTransactor) PostOp(opts *bind.TransactOpts, mode uint8, context []byte, actualGasCost *big.Int) (*types.Transaction, error) + func (_Contract *ContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Contract *ContractTransactor) SetVault(opts *bind.TransactOpts, _vault common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactor) SetVerifier(opts *bind.TransactOpts, _verifier common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactor) UnlockStake(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Contract *ContractTransactor) ValidatePaymasterUserOp(opts *bind.TransactOpts, userOp UserOperation, userOpHash [32]byte, ...) (*types.Transaction, error) + func (_Contract *ContractTransactor) WithdrawStake(opts *bind.TransactOpts, withdrawAddress common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactor) WithdrawTo(opts *bind.TransactOpts, withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + type ContractTransactorRaw struct + Contract *ContractTransactor + func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Contract *ContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ContractTransactorSession struct + Contract *ContractTransactor + TransactOpts bind.TransactOpts + func (_Contract *ContractTransactorSession) AddStake(unstakeDelaySec uint32) (*types.Transaction, error) + func (_Contract *ContractTransactorSession) Deposit() (*types.Transaction, error) + func (_Contract *ContractTransactorSession) PostOp(mode uint8, context []byte, actualGasCost *big.Int) (*types.Transaction, error) + func (_Contract *ContractTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_Contract *ContractTransactorSession) SetVault(_vault common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactorSession) SetVerifier(_verifier common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactorSession) UnlockStake() (*types.Transaction, error) + func (_Contract *ContractTransactorSession) ValidatePaymasterUserOp(userOp UserOperation, userOpHash [32]byte, maxCost *big.Int) (*types.Transaction, error) + func (_Contract *ContractTransactorSession) WithdrawStake(withdrawAddress common.Address) (*types.Transaction, error) + func (_Contract *ContractTransactorSession) WithdrawTo(withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error) + type Data struct + ERC20Token common.Address + ExchangeRate *big.Int + Paymaster common.Address + ValidAfter *big.Int + ValidUntil *big.Int + func NewData(pm common.Address, token common.Address, exchangeRate *big.Int) *Data + type UserOperation struct + CallData []byte + CallGasLimit *big.Int + InitCode []byte + MaxFeePerGas *big.Int + MaxPriorityFeePerGas *big.Int + Nonce *big.Int + PaymasterAndData []byte + PreVerificationGas *big.Int + Sender common.Address + Signature []byte + VerificationGasLimit *big.Int