{"modulePath":"github.com/stackup-wallet/stackup-paymaster","version":"v0.0.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package contract\n\n## Variables\n\n```go\nvar ContractABI = ContractMetaData.ABI\n```\nContractABI is the input ABI used to generate the binding from. Deprecated: Use ContractMetaData.ABI instead.\n\n```go\nvar ContractMetaData = \u0026bind.MetaData{\n\tABI: \"[{\\\"inputs\\\":[{\\\"internalType\\\":\\\"contractIEntryPoint\\\",\\\"name\\\":\\\"_entryPoint\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"_owner\\\",\\\"type\\\":\\\"address\\\"}],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"constructor\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"previousOwner\\\",\\\"type\\\":\\\"address\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"newOwner\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"OwnershipTransferred\\\",\\\"type\\\":\\\"event\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"POST_OP_GAS\\\",\\\"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\\\":[],\\\"name\\\":\\\"deposit\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"payable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"entryPoint\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"contractIEntryPoint\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"getDeposit\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"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\\\"},{\\\"internalType\\\":\\\"uint48\\\",\\\"name\\\":\\\"validUntil\\\",\\\"type\\\":\\\"uint48\\\"},{\\\"internalType\\\":\\\"uint48\\\",\\\"name\\\":\\\"validAfter\\\",\\\"type\\\":\\\"uint48\\\"},{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"erc20Token\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"exchangeRate\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"getHash\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"owner\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes\\\",\\\"name\\\":\\\"paymasterAndData\\\",\\\"type\\\":\\\"bytes\\\"}],\\\"name\\\":\\\"parsePaymasterAndData\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"uint48\\\",\\\"name\\\":\\\"validUntil\\\",\\\"type\\\":\\\"uint48\\\"},{\\\"internalType\\\":\\\"uint48\\\",\\\"name\\\":\\\"validAfter\\\",\\\"type\\\":\\\"uint48\\\"},{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"erc20Token\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"exchangeRate\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"internalType\\\":\\\"bytes\\\",\\\"name\\\":\\\"signature\\\",\\\"type\\\":\\\"bytes\\\"}],\\\"stateMutability\\\":\\\"pure\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"enumIPaymaster.PostOpMode\\\",\\\"name\\\":\\\"mode\\\",\\\"type\\\":\\\"uint8\\\"},{\\\"internalType\\\":\\\"bytes\\\",\\\"name\\\":\\\"context\\\",\\\"type\\\":\\\"bytes\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"actualGasCost\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"postOp\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"renounceOwnership\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"_vault\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"setVault\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"_verifier\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"setVerifier\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"newOwner\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"transferOwnership\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"unlockStake\\\",\\\"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\\\"},{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"userOpHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"maxCost\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"validatePaymasterUserOp\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"bytes\\\",\\\"name\\\":\\\"context\\\",\\\"type\\\":\\\"bytes\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"validationData\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"vault\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"verifier\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"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\\\":\\\"amount\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"withdrawTo\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"}]\",\n}\n```\nContractMetaData contains all meta data concerning the Contract contract.\n\n## Functions\n\n```go\nfunc EncodePaymasterAndData(\n\tdata *Data,\n\tsignature []byte,\n) ([]byte, error)\n```\n\n```go\nfunc GetHash(\n\teth *ethclient.Client,\n\top *userop.UserOperation,\n\tdata *Data,\n) ([32]byte, error)\n```\n\n```go\nfunc Sign(message []byte, signer *signer.EOA) ([]byte, error)\n```\n\n## Types\n\n```go\ntype Contract struct {\n\tContractCaller     // Read-only binding to the contract\n\tContractTransactor // Write-only binding to the contract\n\tContractFilterer   // Log filterer for contract events\n}\n```\nContract is an auto generated Go binding around an Ethereum contract.\n\n```go\nfunc NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error)\n```\nNewContract creates a new instance of Contract, bound to a specific deployed contract.\n\n```go\ntype ContractCaller struct {\n\t// contains filtered or unexported fields\n}\n```\nContractCaller is an auto generated read-only Go binding around an Ethereum contract.\n\n```go\nfunc NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error)\n```\nNewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.\n\n```go\nfunc (_Contract *ContractCaller) EntryPoint(opts *bind.CallOpts) (common.Address, error)\n```\nEntryPoint is a free data retrieval call binding the contract method 0xb0d691fe.\n\nSolidity: function entryPoint() view returns(address)\n\n```go\nfunc (_Contract *ContractCaller) GetDeposit(opts *bind.CallOpts) (*big.Int, error)\n```\nGetDeposit is a free data retrieval call binding the contract method 0xc399ec88.\n\nSolidity: function getDeposit() view returns(uint256)\n\n```go\nfunc (_Contract *ContractCaller) GetHash(opts *bind.CallOpts, userOp UserOperation, validUntil *big.Int, validAfter *big.Int, erc20Token common.Address, exchangeRate *big.Int) ([32]byte, error)\n```\nGetHash is a free data retrieval call binding the contract method 0x290da2ad.\n\nSolidity: function getHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp, uint48 validUntil, uint48 validAfter, address erc20Token, uint256 exchangeRate) view returns(bytes32)\n\n```go\nfunc (_Contract *ContractCaller) Owner(opts *bind.CallOpts) (common.Address, error)\n```\nOwner is a free data retrieval call binding the contract method 0x8da5cb5b.\n\nSolidity: function owner() view returns(address)\n\n```go\nfunc (_Contract *ContractCaller) POSTOPGAS(opts *bind.CallOpts) (*big.Int, error)\n```\nPOSTOPGAS is a free data retrieval call binding the contract method 0xb8202d8f.\n\nSolidity: function POST\\_OP\\_GAS() view returns(uint256)\n\n```go\nfunc (_Contract *ContractCaller) ParsePaymasterAndData(opts *bind.CallOpts, paymasterAndData []byte) (struct {\n\tValidUntil   *big.Int\n\tValidAfter   *big.Int\n\tErc20Token   common.Address\n\tExchangeRate *big.Int\n\tSignature    []byte\n}, error)\n```\nParsePaymasterAndData is a free data retrieval call binding the contract method 0x94d4ad60.\n\nSolidity: function parsePaymasterAndData(bytes paymasterAndData) pure returns(uint48 validUntil, uint48 validAfter, address erc20Token, uint256 exchangeRate, bytes signature)\n\n```go\nfunc (_Contract *ContractCaller) Vault(opts *bind.CallOpts) (common.Address, error)\n```\nVault is a free data retrieval call binding the contract method 0xfbfa77cf.\n\nSolidity: function vault() view returns(address)\n\n```go\nfunc (_Contract *ContractCaller) Verifier(opts *bind.CallOpts) (common.Address, error)\n```\nVerifier is a free data retrieval call binding the contract method 0x2b7ac3f3.\n\nSolidity: function verifier() view returns(address)\n\n```go\ntype ContractCallerRaw struct {\n\tContract *ContractCaller // Generic read-only contract binding to access the raw methods on\n}\n```\nContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.\n\n```go\nfunc (_Contract *ContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error\n```\nCall 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.\n\n```go\ntype ContractCallerSession struct {\n\tContract *ContractCaller // Generic contract caller binding to set the session for\n\tCallOpts bind.CallOpts   // Call options to use throughout this session\n}\n```\nContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.\n\n```go\nfunc (_Contract *ContractCallerSession) EntryPoint() (common.Address, error)\n```\nEntryPoint is a free data retrieval call binding the contract method 0xb0d691fe.\n\nSolidity: function entryPoint() view returns(address)\n\n```go\nfunc (_Contract *ContractCallerSession) GetDeposit() (*big.Int, error)\n```\nGetDeposit is a free data retrieval call binding the contract method 0xc399ec88.\n\nSolidity: function getDeposit() view returns(uint256)\n\n```go\nfunc (_Contract *ContractCallerSession) GetHash(userOp UserOperation, validUntil *big.Int, validAfter *big.Int, erc20Token common.Address, exchangeRate *big.Int) ([32]byte, error)\n```\nGetHash is a free data retrieval call binding the contract method 0x290da2ad.\n\nSolidity: function getHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp, uint48 validUntil, uint48 validAfter, address erc20Token, uint256 exchangeRate) view returns(bytes32)\n\n```go\nfunc (_Contract *ContractCallerSession) Owner() (common.Address, error)\n```\nOwner is a free data retrieval call binding the contract method 0x8da5cb5b.\n\nSolidity: function owner() view returns(address)\n\n```go\nfunc (_Contract *ContractCallerSession) POSTOPGAS() (*big.Int, error)\n```\nPOSTOPGAS is a free data retrieval call binding the contract method 0xb8202d8f.\n\nSolidity: function POST\\_OP\\_GAS() view returns(uint256)\n\n```go\nfunc (_Contract *ContractCallerSession) ParsePaymasterAndData(paymasterAndData []byte) (struct {\n\tValidUntil   *big.Int\n\tValidAfter   *big.Int\n\tErc20Token   common.Address\n\tExchangeRate *big.Int\n\tSignature    []byte\n}, error)\n```\nParsePaymasterAndData is a free data retrieval call binding the contract method 0x94d4ad60.\n\nSolidity: function parsePaymasterAndData(bytes paymasterAndData) pure returns(uint48 validUntil, uint48 validAfter, address erc20Token, uint256 exchangeRate, bytes signature)\n\n```go\nfunc (_Contract *ContractCallerSession) Vault() (common.Address, error)\n```\nVault is a free data retrieval call binding the contract method 0xfbfa77cf.\n\nSolidity: function vault() view returns(address)\n\n```go\nfunc (_Contract *ContractCallerSession) Verifier() (common.Address, error)\n```\nVerifier is a free data retrieval call binding the contract method 0x2b7ac3f3.\n\nSolidity: function verifier() view returns(address)\n\n```go\ntype ContractFilterer struct {\n\t// contains filtered or unexported fields\n}\n```\nContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.\n\n```go\nfunc NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error)\n```\nNewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.\n\n```go\nfunc (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractOwnershipTransferredIterator, error)\n```\nFilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.\n\nSolidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)\n\n```go\nfunc (_Contract *ContractFilterer) ParseOwnershipTransferred(log types.Log) (*ContractOwnershipTransferred, error)\n```\nParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.\n\nSolidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)\n\n```go\nfunc (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan\u003c- *ContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)\n```\nWatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.\n\nSolidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)\n\n```go\ntype ContractOwnershipTransferred struct {\n\tPreviousOwner common.Address\n\tNewOwner      common.Address\n\tRaw           types.Log // Blockchain specific contextual infos\n}\n```\nContractOwnershipTransferred represents a OwnershipTransferred event raised by the Contract contract.\n\n```go\ntype ContractOwnershipTransferredIterator struct {\n\tEvent *ContractOwnershipTransferred // Event containing the contract specifics and raw log\n\t// contains filtered or unexported fields\n}\n```\nContractOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Contract contract.\n\n```go\nfunc (it *ContractOwnershipTransferredIterator) Close() error\n```\nClose terminates the iteration process, releasing any pending underlying resources.\n\n```go\nfunc (it *ContractOwnershipTransferredIterator) Error() error\n```\nError returns any retrieval or parsing error occurred during filtering.\n\n```go\nfunc (it *ContractOwnershipTransferredIterator) Next() bool\n```\nNext 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.\n\n```go\ntype ContractRaw struct {\n\tContract *Contract // Generic contract binding to access the raw methods on\n}\n```\nContractRaw is an auto generated low-level Go binding around an Ethereum contract.\n\n```go\nfunc (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error\n```\nCall 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.\n\n```go\nfunc (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)\n```\nTransact invokes the (paid) contract method with params as input values.\n\n```go\nfunc (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)\n```\nTransfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.\n\n```go\ntype ContractSession struct {\n\tContract     *Contract         // Generic contract binding to set the session for\n\tCallOpts     bind.CallOpts     // Call options to use throughout this session\n\tTransactOpts bind.TransactOpts // Transaction auth options to use throughout this session\n}\n```\nContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.\n\n```go\nfunc (_Contract *ContractSession) AddStake(unstakeDelaySec uint32) (*types.Transaction, error)\n```\nAddStake is a paid mutator transaction binding the contract method 0x0396cb60.\n\nSolidity: function addStake(uint32 unstakeDelaySec) payable returns()\n\n```go\nfunc (_Contract *ContractSession) Deposit() (*types.Transaction, error)\n```\nDeposit is a paid mutator transaction binding the contract method 0xd0e30db0.\n\nSolidity: function deposit() payable returns()\n\n```go\nfunc (_Contract *ContractSession) EntryPoint() (common.Address, error)\n```\nEntryPoint is a free data retrieval call binding the contract method 0xb0d691fe.\n\nSolidity: function entryPoint() view returns(address)\n\n```go\nfunc (_Contract *ContractSession) GetDeposit() (*big.Int, error)\n```\nGetDeposit is a free data retrieval call binding the contract method 0xc399ec88.\n\nSolidity: function getDeposit() view returns(uint256)\n\n```go\nfunc (_Contract *ContractSession) GetHash(userOp UserOperation, validUntil *big.Int, validAfter *big.Int, erc20Token common.Address, exchangeRate *big.Int) ([32]byte, error)\n```\nGetHash is a free data retrieval call binding the contract method 0x290da2ad.\n\nSolidity: function getHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp, uint48 validUntil, uint48 validAfter, address erc20Token, uint256 exchangeRate) view returns(bytes32)\n\n```go\nfunc (_Contract *ContractSession) Owner() (common.Address, error)\n```\nOwner is a free data retrieval call binding the contract method 0x8da5cb5b.\n\nSolidity: function owner() view returns(address)\n\n```go\nfunc (_Contract *ContractSession) POSTOPGAS() (*big.Int, error)\n```\nPOSTOPGAS is a free data retrieval call binding the contract method 0xb8202d8f.\n\nSolidity: function POST\\_OP\\_GAS() view returns(uint256)\n\n```go\nfunc (_Contract *ContractSession) ParsePaymasterAndData(paymasterAndData []byte) (struct {\n\tValidUntil   *big.Int\n\tValidAfter   *big.Int\n\tErc20Token   common.Address\n\tExchangeRate *big.Int\n\tSignature    []byte\n}, error)\n```\nParsePaymasterAndData is a free data retrieval call binding the contract method 0x94d4ad60.\n\nSolidity: function parsePaymasterAndData(bytes paymasterAndData) pure returns(uint48 validUntil, uint48 validAfter, address erc20Token, uint256 exchangeRate, bytes signature)\n\n```go\nfunc (_Contract *ContractSession) PostOp(mode uint8, context []byte, actualGasCost *big.Int) (*types.Transaction, error)\n```\nPostOp is a paid mutator transaction binding the contract method 0xa9a23409.\n\nSolidity: function postOp(uint8 mode, bytes context, uint256 actualGasCost) returns()\n\n```go\nfunc (_Contract *ContractSession) RenounceOwnership() (*types.Transaction, error)\n```\nRenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.\n\nSolidity: function renounceOwnership() returns()\n\n```go\nfunc (_Contract *ContractSession) SetVault(_vault common.Address) (*types.Transaction, error)\n```\nSetVault is a paid mutator transaction binding the contract method 0x6817031b.\n\nSolidity: function setVault(address \\_vault) returns()\n\n```go\nfunc (_Contract *ContractSession) SetVerifier(_verifier common.Address) (*types.Transaction, error)\n```\nSetVerifier is a paid mutator transaction binding the contract method 0x5437988d.\n\nSolidity: function setVerifier(address \\_verifier) returns()\n\n```go\nfunc (_Contract *ContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)\n```\nTransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.\n\nSolidity: function transferOwnership(address newOwner) returns()\n\n```go\nfunc (_Contract *ContractSession) UnlockStake() (*types.Transaction, error)\n```\nUnlockStake is a paid mutator transaction binding the contract method 0xbb9fe6bf.\n\nSolidity: function unlockStake() returns()\n\n```go\nfunc (_Contract *ContractSession) ValidatePaymasterUserOp(userOp UserOperation, userOpHash [32]byte, maxCost *big.Int) (*types.Transaction, error)\n```\nValidatePaymasterUserOp is a paid mutator transaction binding the contract method 0xf465c77e.\n\nSolidity: function validatePaymasterUserOp((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp, bytes32 userOpHash, uint256 maxCost) returns(bytes context, uint256 validationData)\n\n```go\nfunc (_Contract *ContractSession) Vault() (common.Address, error)\n```\nVault is a free data retrieval call binding the contract method 0xfbfa77cf.\n\nSolidity: function vault() view returns(address)\n\n```go\nfunc (_Contract *ContractSession) Verifier() (common.Address, error)\n```\nVerifier is a free data retrieval call binding the contract method 0x2b7ac3f3.\n\nSolidity: function verifier() view returns(address)\n\n```go\nfunc (_Contract *ContractSession) WithdrawStake(withdrawAddress common.Address) (*types.Transaction, error)\n```\nWithdrawStake is a paid mutator transaction binding the contract method 0xc23a5cea.\n\nSolidity: function withdrawStake(address withdrawAddress) returns()\n\n```go\nfunc (_Contract *ContractSession) WithdrawTo(withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error)\n```\nWithdrawTo is a paid mutator transaction binding the contract method 0x205c2878.\n\nSolidity: function withdrawTo(address withdrawAddress, uint256 amount) returns()\n\n```go\ntype ContractTransactor struct {\n\t// contains filtered or unexported fields\n}\n```\nContractTransactor is an auto generated write-only Go binding around an Ethereum contract.\n\n```go\nfunc NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error)\n```\nNewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.\n\n```go\nfunc (_Contract *ContractTransactor) AddStake(opts *bind.TransactOpts, unstakeDelaySec uint32) (*types.Transaction, error)\n```\nAddStake is a paid mutator transaction binding the contract method 0x0396cb60.\n\nSolidity: function addStake(uint32 unstakeDelaySec) payable returns()\n\n```go\nfunc (_Contract *ContractTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)\n```\nDeposit is a paid mutator transaction binding the contract method 0xd0e30db0.\n\nSolidity: function deposit() payable returns()\n\n```go\nfunc (_Contract *ContractTransactor) PostOp(opts *bind.TransactOpts, mode uint8, context []byte, actualGasCost *big.Int) (*types.Transaction, error)\n```\nPostOp is a paid mutator transaction binding the contract method 0xa9a23409.\n\nSolidity: function postOp(uint8 mode, bytes context, uint256 actualGasCost) returns()\n\n```go\nfunc (_Contract *ContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)\n```\nRenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.\n\nSolidity: function renounceOwnership() returns()\n\n```go\nfunc (_Contract *ContractTransactor) SetVault(opts *bind.TransactOpts, _vault common.Address) (*types.Transaction, error)\n```\nSetVault is a paid mutator transaction binding the contract method 0x6817031b.\n\nSolidity: function setVault(address \\_vault) returns()\n\n```go\nfunc (_Contract *ContractTransactor) SetVerifier(opts *bind.TransactOpts, _verifier common.Address) (*types.Transaction, error)\n```\nSetVerifier is a paid mutator transaction binding the contract method 0x5437988d.\n\nSolidity: function setVerifier(address \\_verifier) returns()\n\n```go\nfunc (_Contract *ContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)\n```\nTransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.\n\nSolidity: function transferOwnership(address newOwner) returns()\n\n```go\nfunc (_Contract *ContractTransactor) UnlockStake(opts *bind.TransactOpts) (*types.Transaction, error)\n```\nUnlockStake is a paid mutator transaction binding the contract method 0xbb9fe6bf.\n\nSolidity: function unlockStake() returns()\n\n```go\nfunc (_Contract *ContractTransactor) ValidatePaymasterUserOp(opts *bind.TransactOpts, userOp UserOperation, userOpHash [32]byte, maxCost *big.Int) (*types.Transaction, error)\n```\nValidatePaymasterUserOp is a paid mutator transaction binding the contract method 0xf465c77e.\n\nSolidity: function validatePaymasterUserOp((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp, bytes32 userOpHash, uint256 maxCost) returns(bytes context, uint256 validationData)\n\n```go\nfunc (_Contract *ContractTransactor) WithdrawStake(opts *bind.TransactOpts, withdrawAddress common.Address) (*types.Transaction, error)\n```\nWithdrawStake is a paid mutator transaction binding the contract method 0xc23a5cea.\n\nSolidity: function withdrawStake(address withdrawAddress) returns()\n\n```go\nfunc (_Contract *ContractTransactor) WithdrawTo(opts *bind.TransactOpts, withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error)\n```\nWithdrawTo is a paid mutator transaction binding the contract method 0x205c2878.\n\nSolidity: function withdrawTo(address withdrawAddress, uint256 amount) returns()\n\n```go\ntype ContractTransactorRaw struct {\n\tContract *ContractTransactor // Generic write-only contract binding to access the raw methods on\n}\n```\nContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.\n\n```go\nfunc (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)\n```\nTransact invokes the (paid) contract method with params as input values.\n\n```go\nfunc (_Contract *ContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)\n```\nTransfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.\n\n```go\ntype ContractTransactorSession struct {\n\tContract     *ContractTransactor // Generic contract transactor binding to set the session for\n\tTransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session\n}\n```\nContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.\n\n```go\nfunc (_Contract *ContractTransactorSession) AddStake(unstakeDelaySec uint32) (*types.Transaction, error)\n```\nAddStake is a paid mutator transaction binding the contract method 0x0396cb60.\n\nSolidity: function addStake(uint32 unstakeDelaySec) payable returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) Deposit() (*types.Transaction, error)\n```\nDeposit is a paid mutator transaction binding the contract method 0xd0e30db0.\n\nSolidity: function deposit() payable returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) PostOp(mode uint8, context []byte, actualGasCost *big.Int) (*types.Transaction, error)\n```\nPostOp is a paid mutator transaction binding the contract method 0xa9a23409.\n\nSolidity: function postOp(uint8 mode, bytes context, uint256 actualGasCost) returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) RenounceOwnership() (*types.Transaction, error)\n```\nRenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.\n\nSolidity: function renounceOwnership() returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) SetVault(_vault common.Address) (*types.Transaction, error)\n```\nSetVault is a paid mutator transaction binding the contract method 0x6817031b.\n\nSolidity: function setVault(address \\_vault) returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) SetVerifier(_verifier common.Address) (*types.Transaction, error)\n```\nSetVerifier is a paid mutator transaction binding the contract method 0x5437988d.\n\nSolidity: function setVerifier(address \\_verifier) returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)\n```\nTransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.\n\nSolidity: function transferOwnership(address newOwner) returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) UnlockStake() (*types.Transaction, error)\n```\nUnlockStake is a paid mutator transaction binding the contract method 0xbb9fe6bf.\n\nSolidity: function unlockStake() returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) ValidatePaymasterUserOp(userOp UserOperation, userOpHash [32]byte, maxCost *big.Int) (*types.Transaction, error)\n```\nValidatePaymasterUserOp is a paid mutator transaction binding the contract method 0xf465c77e.\n\nSolidity: function validatePaymasterUserOp((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) userOp, bytes32 userOpHash, uint256 maxCost) returns(bytes context, uint256 validationData)\n\n```go\nfunc (_Contract *ContractTransactorSession) WithdrawStake(withdrawAddress common.Address) (*types.Transaction, error)\n```\nWithdrawStake is a paid mutator transaction binding the contract method 0xc23a5cea.\n\nSolidity: function withdrawStake(address withdrawAddress) returns()\n\n```go\nfunc (_Contract *ContractTransactorSession) WithdrawTo(withdrawAddress common.Address, amount *big.Int) (*types.Transaction, error)\n```\nWithdrawTo is a paid mutator transaction binding the contract method 0x205c2878.\n\nSolidity: function withdrawTo(address withdrawAddress, uint256 amount) returns()\n\n```go\ntype Data struct {\n\tPaymaster    common.Address\n\tValidUntil   *big.Int\n\tValidAfter   *big.Int\n\tERC20Token   common.Address\n\tExchangeRate *big.Int\n}\n```\n\n```go\nfunc NewData(pm common.Address, token common.Address, exchangeRate *big.Int) *Data\n```\n\n```go\ntype UserOperation struct {\n\tSender               common.Address\n\tNonce                *big.Int\n\tInitCode             []byte\n\tCallData             []byte\n\tCallGasLimit         *big.Int\n\tVerificationGasLimit *big.Int\n\tPreVerificationGas   *big.Int\n\tMaxFeePerGas         *big.Int\n\tMaxPriorityFeePerGas *big.Int\n\tPaymasterAndData     []byte\n\tSignature            []byte\n}\n```\nUserOperation is an auto generated low-level Go binding around an user-defined struct.\n\n","path":"github.com/stackup-wallet/stackup-paymaster/pkg/contract","name":"contract","synopsis":"","isRedistributable":true}
