aimiddleware

package
v0.0.0-...-7be72bc Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package aimiddleware provides ABI bindings that are automatically generated by abigen for interacting with the AiMiddleware contract. The aimiddleware directory also contains helper modules for convenience.

Index

Constants

This section is empty.

Variables

View Source
var AimiddlewareABI = AimiddlewareMetaData.ABI

AimiddlewareABI is the input ABI used to generate the binding from. Deprecated: Use AimiddlewareMetaData.ABI instead.

View Source
var AimiddlewareMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_validator\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"SIG_VALIDATION_FAILED\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"_validateSenderAndPaymaster\",\"inputs\":[{\"name\":\"initCode\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"paymasterAndData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"addStake\",\"inputs\":[{\"name\":\"unstakeDelaySec\",\"type\":\"uint32\",\"internalType\":\"uint32\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"depositTo\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"deposits\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"deposit\",\"type\":\"uint112\",\"internalType\":\"uint112\"},{\"name\":\"staked\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"stake\",\"type\":\"uint112\",\"internalType\":\"uint112\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"withdrawTime\",\"type\":\"uint48\",\"internalType\":\"uint48\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAiOpHash\",\"inputs\":[{\"name\":\"aiOp\",\"type\":\"tuple\",\"internalType\":\"structAiOperation\",\"components\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"initCode\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"callData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"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\":\"uint256\"},{\"name\":\"paymasterAndData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDepositInfo\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"info\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.DepositInfo\",\"components\":[{\"name\":\"deposit\",\"type\":\"uint112\",\"internalType\":\"uint112\"},{\"name\":\"staked\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"stake\",\"type\":\"uint112\",\"internalType\":\"uint112\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"withdrawTime\",\"type\":\"uint48\",\"internalType\":\"uint48\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNonce\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"key\",\"type\":\"uint192\",\"internalType\":\"uint192\"}],\"outputs\":[{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSenderAddress\",\"inputs\":[{\"name\":\"initCode\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getValidator\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"handleAggregatedOps\",\"inputs\":[{\"name\":\"opsPerAggregator\",\"type\":\"tuple[]\",\"internalType\":\"structIAiMiddleware.AiOpsPerAggregator[]\",\"components\":[{\"name\":\"aiOps\",\"type\":\"tuple[]\",\"internalType\":\"structAiOperation[]\",\"components\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"initCode\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"callData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"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\":\"uint256\"},{\"name\":\"paymasterAndData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"aggregator\",\"type\":\"address\",\"internalType\":\"contractIAggregator\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"beneficiary\",\"type\":\"address\",\"internalType\":\"addresspayable\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"handleOps\",\"inputs\":[{\"name\":\"ops\",\"type\":\"tuple[]\",\"internalType\":\"structAiOperation[]\",\"components\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"initCode\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"callData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"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\":\"uint256\"},{\"name\":\"paymasterAndData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"beneficiary\",\"type\":\"address\",\"internalType\":\"addresspayable\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"incrementNonce\",\"inputs\":[{\"name\":\"key\",\"type\":\"uint192\",\"internalType\":\"uint192\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"innerHandleOp\",\"inputs\":[{\"name\":\"callData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"opInfo\",\"type\":\"tuple\",\"internalType\":\"structAiMiddleware.AiOpInfo\",\"components\":[{\"name\":\"mAiOp\",\"type\":\"tuple\",\"internalType\":\"structAiMiddleware.MemoryAiOp\",\"components\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"callGasLimit\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"verificationGasLimit\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"preVerificationGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"paymaster\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"maxFeePerGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"maxPriorityFeePerGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"aiOpHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"prefund\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"contextOffset\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"preOpGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"context\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"actualGasCost\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"modifyValidator\",\"inputs\":[{\"name\":\"_validator\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"nonceSequenceNumber\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"uint192\",\"internalType\":\"uint192\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"simulateHandleOp\",\"inputs\":[{\"name\":\"op\",\"type\":\"tuple\",\"internalType\":\"structAiOperation\",\"components\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"initCode\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"callData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"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\":\"uint256\"},{\"name\":\"paymasterAndData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"target\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"targetCallData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"simulateValidation\",\"inputs\":[{\"name\":\"aiOp\",\"type\":\"tuple\",\"internalType\":\"structAiOperation\",\"components\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"initCode\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"callData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"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\":\"uint256\"},{\"name\":\"paymasterAndData\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"unlockStake\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawStake\",\"inputs\":[{\"name\":\"withdrawAddress\",\"type\":\"address\",\"internalType\":\"addresspayable\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawTo\",\"inputs\":[{\"name\":\"withdrawAddress\",\"type\":\"address\",\"internalType\":\"addresspayable\"},{\"name\":\"withdrawAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"AccountDeployed\",\"inputs\":[{\"name\":\"aiOpHash\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"factory\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"paymaster\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"AiOperationEvent\",\"inputs\":[{\"name\":\"aiOpHash\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"paymaster\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"success\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"actualGasCost\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"actualGasUsed\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"AiOperationRevertReason\",\"inputs\":[{\"name\":\"aiOpHash\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"revertReason\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"BeforeAiopsExecution\",\"inputs\":[],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Deposited\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"totalDeposit\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SignatureAggregatorChanged\",\"inputs\":[{\"name\":\"aggregator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"StakeLocked\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"totalStaked\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"StakeUnlocked\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"withdrawTime\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"StakeWithdrawn\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"withdrawAddress\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Withdrawn\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"withdrawAddress\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"ExecutionResult\",\"inputs\":[{\"name\":\"preOpGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"paid\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"validAfter\",\"type\":\"uint48\",\"internalType\":\"uint48\"},{\"name\":\"validUntil\",\"type\":\"uint48\",\"internalType\":\"uint48\"},{\"name\":\"targetSuccess\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"targetResult\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"type\":\"error\",\"name\":\"FailedOp\",\"inputs\":[{\"name\":\"opIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"reason\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"ReentrancyGuardReentrantCall\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"SenderAddressResult\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"SignatureValidationFailed\",\"inputs\":[{\"name\":\"aggregator\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ValidationResult\",\"inputs\":[{\"name\":\"returnInfo\",\"type\":\"tuple\",\"internalType\":\"structIAiMiddleware.ReturnInfo\",\"components\":[{\"name\":\"preOpGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"prefund\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"sigFailed\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"validAfter\",\"type\":\"uint48\",\"internalType\":\"uint48\"},{\"name\":\"validUntil\",\"type\":\"uint48\",\"internalType\":\"uint48\"},{\"name\":\"paymasterContext\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"senderInfo\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.StakeInfo\",\"components\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"factoryInfo\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.StakeInfo\",\"components\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"paymasterInfo\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.StakeInfo\",\"components\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}]},{\"type\":\"error\",\"name\":\"ValidationResultWithAggregation\",\"inputs\":[{\"name\":\"returnInfo\",\"type\":\"tuple\",\"internalType\":\"structIAiMiddleware.ReturnInfo\",\"components\":[{\"name\":\"preOpGas\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"prefund\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"sigFailed\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"validAfter\",\"type\":\"uint48\",\"internalType\":\"uint48\"},{\"name\":\"validUntil\",\"type\":\"uint48\",\"internalType\":\"uint48\"},{\"name\":\"paymasterContext\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"senderInfo\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.StakeInfo\",\"components\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"factoryInfo\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.StakeInfo\",\"components\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"paymasterInfo\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.StakeInfo\",\"components\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"aggregatorInfo\",\"type\":\"tuple\",\"internalType\":\"structIAiMiddleware.AggregatorStakeInfo\",\"components\":[{\"name\":\"aggregator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"stakeInfo\",\"type\":\"tuple\",\"internalType\":\"structIDepositManager.StakeInfo\",\"components\":[{\"name\":\"stake\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"unstakeDelaySec\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]}]}]}]",
}

AimiddlewareMetaData contains all meta data concerning the Aimiddleware contract.

Functions

This section is empty.

Types

type AiMiddlewareAiOpInfo

type AiMiddlewareAiOpInfo struct {
	MAiOp         AiMiddlewareMemoryAiOp
	AiOpHash      [32]byte
	Prefund       *big.Int
	ContextOffset *big.Int
	PreOpGas      *big.Int
}

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

type AiMiddlewareMemoryAiOp

type AiMiddlewareMemoryAiOp 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
}

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

type AiOperation

type AiOperation 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
}

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

type Aimiddleware

type Aimiddleware struct {
	AimiddlewareCaller     // Read-only binding to the contract
	AimiddlewareTransactor // Write-only binding to the contract
	AimiddlewareFilterer   // Log filterer for contract events
}

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

func NewAimiddleware

func NewAimiddleware(address common.Address, backend bind.ContractBackend) (*Aimiddleware, error)

NewAimiddleware creates a new instance of Aimiddleware, bound to a specific deployed contract.

type AimiddlewareAccountDeployed

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

AimiddlewareAccountDeployed represents a AccountDeployed event raised by the Aimiddleware contract.

type AimiddlewareAccountDeployedIterator

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

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

func (*AimiddlewareAccountDeployedIterator) Close

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

func (*AimiddlewareAccountDeployedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareAccountDeployedIterator) 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 AimiddlewareAiOperationEvent

type AimiddlewareAiOperationEvent struct {
	AiOpHash      [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
}

AimiddlewareAiOperationEvent represents a AiOperationEvent event raised by the Aimiddleware contract.

type AimiddlewareAiOperationEventIterator

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

AimiddlewareAiOperationEventIterator is returned from FilterAiOperationEvent and is used to iterate over the raw logs and unpacked data for AiOperationEvent events raised by the Aimiddleware contract.

func (*AimiddlewareAiOperationEventIterator) Close

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

func (*AimiddlewareAiOperationEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareAiOperationEventIterator) 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 AimiddlewareAiOperationRevertReason

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

AimiddlewareAiOperationRevertReason represents a AiOperationRevertReason event raised by the Aimiddleware contract.

type AimiddlewareAiOperationRevertReasonIterator

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

AimiddlewareAiOperationRevertReasonIterator is returned from FilterAiOperationRevertReason and is used to iterate over the raw logs and unpacked data for AiOperationRevertReason events raised by the Aimiddleware contract.

func (*AimiddlewareAiOperationRevertReasonIterator) Close

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

func (*AimiddlewareAiOperationRevertReasonIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareAiOperationRevertReasonIterator) 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 AimiddlewareBeforeAiopsExecution

type AimiddlewareBeforeAiopsExecution struct {
	Raw types.Log // Blockchain specific contextual infos
}

AimiddlewareBeforeAiopsExecution represents a BeforeAiopsExecution event raised by the Aimiddleware contract.

type AimiddlewareBeforeAiopsExecutionIterator

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

AimiddlewareBeforeAiopsExecutionIterator is returned from FilterBeforeAiopsExecution and is used to iterate over the raw logs and unpacked data for BeforeAiopsExecution events raised by the Aimiddleware contract.

func (*AimiddlewareBeforeAiopsExecutionIterator) Close

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

func (*AimiddlewareBeforeAiopsExecutionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareBeforeAiopsExecutionIterator) 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 AimiddlewareCaller

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

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

func NewAimiddlewareCaller

func NewAimiddlewareCaller(address common.Address, caller bind.ContractCaller) (*AimiddlewareCaller, error)

NewAimiddlewareCaller creates a new read-only instance of Aimiddleware, bound to a specific deployed contract.

func (*AimiddlewareCaller) BalanceOf

func (_Aimiddleware *AimiddlewareCaller) 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 (*AimiddlewareCaller) Deposits

func (_Aimiddleware *AimiddlewareCaller) Deposits(opts *bind.CallOpts, arg0 common.Address) (struct {
	Deposit         *big.Int
	Staked          bool
	Stake           *big.Int
	UnstakeDelaySec uint32
	WithdrawTime    *big.Int
}, 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, uint48 withdrawTime)

func (*AimiddlewareCaller) GetAiOpHash

func (_Aimiddleware *AimiddlewareCaller) GetAiOpHash(opts *bind.CallOpts, aiOp AiOperation) ([32]byte, error)

GetAiOpHash is a free data retrieval call binding the contract method 0x6960c859.

Solidity: function getAiOpHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) aiOp) view returns(bytes32)

func (*AimiddlewareCaller) GetDepositInfo

func (_Aimiddleware *AimiddlewareCaller) GetDepositInfo(opts *bind.CallOpts, account common.Address) (IDepositManagerDepositInfo, error)

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

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

func (*AimiddlewareCaller) GetNonce

func (_Aimiddleware *AimiddlewareCaller) GetNonce(opts *bind.CallOpts, sender common.Address, key *big.Int) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x35567e1a.

Solidity: function getNonce(address sender, uint192 key) view returns(uint256 nonce)

func (*AimiddlewareCaller) NonceSequenceNumber

func (_Aimiddleware *AimiddlewareCaller) NonceSequenceNumber(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)

NonceSequenceNumber is a free data retrieval call binding the contract method 0x1b2e01b8.

Solidity: function nonceSequenceNumber(address , uint192 ) view returns(uint256)

func (*AimiddlewareCaller) SIGVALIDATIONFAILED

func (_Aimiddleware *AimiddlewareCaller) 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)

func (*AimiddlewareCaller) ValidateSenderAndPaymaster

func (_Aimiddleware *AimiddlewareCaller) ValidateSenderAndPaymaster(opts *bind.CallOpts, initCode []byte, sender common.Address, paymasterAndData []byte) error

ValidateSenderAndPaymaster is a free data retrieval call binding the contract method 0x957122ab.

Solidity: function _validateSenderAndPaymaster(bytes initCode, address sender, bytes paymasterAndData) view returns()

type AimiddlewareCallerRaw

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

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

func (*AimiddlewareCallerRaw) Call

func (_Aimiddleware *AimiddlewareCallerRaw) 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 AimiddlewareCallerSession

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

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

func (*AimiddlewareCallerSession) BalanceOf

func (_Aimiddleware *AimiddlewareCallerSession) 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 (*AimiddlewareCallerSession) Deposits

func (_Aimiddleware *AimiddlewareCallerSession) Deposits(arg0 common.Address) (struct {
	Deposit         *big.Int
	Staked          bool
	Stake           *big.Int
	UnstakeDelaySec uint32
	WithdrawTime    *big.Int
}, 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, uint48 withdrawTime)

func (*AimiddlewareCallerSession) GetAiOpHash

func (_Aimiddleware *AimiddlewareCallerSession) GetAiOpHash(aiOp AiOperation) ([32]byte, error)

GetAiOpHash is a free data retrieval call binding the contract method 0x6960c859.

Solidity: function getAiOpHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) aiOp) view returns(bytes32)

func (*AimiddlewareCallerSession) GetDepositInfo

func (_Aimiddleware *AimiddlewareCallerSession) GetDepositInfo(account common.Address) (IDepositManagerDepositInfo, error)

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

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

func (*AimiddlewareCallerSession) GetNonce

func (_Aimiddleware *AimiddlewareCallerSession) GetNonce(sender common.Address, key *big.Int) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x35567e1a.

Solidity: function getNonce(address sender, uint192 key) view returns(uint256 nonce)

func (*AimiddlewareCallerSession) NonceSequenceNumber

func (_Aimiddleware *AimiddlewareCallerSession) NonceSequenceNumber(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

NonceSequenceNumber is a free data retrieval call binding the contract method 0x1b2e01b8.

Solidity: function nonceSequenceNumber(address , uint192 ) view returns(uint256)

func (*AimiddlewareCallerSession) SIGVALIDATIONFAILED

func (_Aimiddleware *AimiddlewareCallerSession) 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 (*AimiddlewareCallerSession) ValidateSenderAndPaymaster

func (_Aimiddleware *AimiddlewareCallerSession) ValidateSenderAndPaymaster(initCode []byte, sender common.Address, paymasterAndData []byte) error

ValidateSenderAndPaymaster is a free data retrieval call binding the contract method 0x957122ab.

Solidity: function _validateSenderAndPaymaster(bytes initCode, address sender, bytes paymasterAndData) view returns()

type AimiddlewareDeposited

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

AimiddlewareDeposited represents a Deposited event raised by the Aimiddleware contract.

type AimiddlewareDepositedIterator

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

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

func (*AimiddlewareDepositedIterator) Close

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

func (*AimiddlewareDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareDepositedIterator) 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 AimiddlewareFilterer

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

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

func NewAimiddlewareFilterer

func NewAimiddlewareFilterer(address common.Address, filterer bind.ContractFilterer) (*AimiddlewareFilterer, error)

NewAimiddlewareFilterer creates a new log filterer instance of Aimiddleware, bound to a specific deployed contract.

func (*AimiddlewareFilterer) FilterAccountDeployed

func (_Aimiddleware *AimiddlewareFilterer) FilterAccountDeployed(opts *bind.FilterOpts, aiOpHash [][32]byte, sender []common.Address) (*AimiddlewareAccountDeployedIterator, error)

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

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

func (*AimiddlewareFilterer) FilterAiOperationEvent

func (_Aimiddleware *AimiddlewareFilterer) FilterAiOperationEvent(opts *bind.FilterOpts, aiOpHash [][32]byte, sender []common.Address, paymaster []common.Address) (*AimiddlewareAiOperationEventIterator, error)

FilterAiOperationEvent is a free log retrieval operation binding the contract event 0x7b592a4f684d032578f75dff2ca3d3d2aec981a6d0a782e1d127595a6511a4f1.

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

func (*AimiddlewareFilterer) FilterAiOperationRevertReason

func (_Aimiddleware *AimiddlewareFilterer) FilterAiOperationRevertReason(opts *bind.FilterOpts, aiOpHash [][32]byte, sender []common.Address) (*AimiddlewareAiOperationRevertReasonIterator, error)

FilterAiOperationRevertReason is a free log retrieval operation binding the contract event 0xd5425d9883d2972240bba93dc9098c4f8a304a1a73d0c8b5a7276ce2994f9bb2.

Solidity: event AiOperationRevertReason(bytes32 indexed aiOpHash, address indexed sender, uint256 nonce, bytes revertReason)

func (*AimiddlewareFilterer) FilterBeforeAiopsExecution

func (_Aimiddleware *AimiddlewareFilterer) FilterBeforeAiopsExecution(opts *bind.FilterOpts) (*AimiddlewareBeforeAiopsExecutionIterator, error)

FilterBeforeAiopsExecution is a free log retrieval operation binding the contract event 0xd22ebd07844ae9e9c8d9945236ef70e6c2f2f0c5bbeef9980c0384600d424243.

Solidity: event BeforeAiopsExecution()

func (*AimiddlewareFilterer) FilterDeposited

func (_Aimiddleware *AimiddlewareFilterer) FilterDeposited(opts *bind.FilterOpts, account []common.Address) (*AimiddlewareDepositedIterator, error)

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

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

func (*AimiddlewareFilterer) FilterSignatureAggregatorChanged

func (_Aimiddleware *AimiddlewareFilterer) FilterSignatureAggregatorChanged(opts *bind.FilterOpts, aggregator []common.Address) (*AimiddlewareSignatureAggregatorChangedIterator, error)

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

Solidity: event SignatureAggregatorChanged(address indexed aggregator)

func (*AimiddlewareFilterer) FilterStakeLocked

func (_Aimiddleware *AimiddlewareFilterer) FilterStakeLocked(opts *bind.FilterOpts, account []common.Address) (*AimiddlewareStakeLockedIterator, error)

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

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

func (*AimiddlewareFilterer) FilterStakeUnlocked

func (_Aimiddleware *AimiddlewareFilterer) FilterStakeUnlocked(opts *bind.FilterOpts, account []common.Address) (*AimiddlewareStakeUnlockedIterator, error)

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

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

func (*AimiddlewareFilterer) FilterStakeWithdrawn

func (_Aimiddleware *AimiddlewareFilterer) FilterStakeWithdrawn(opts *bind.FilterOpts, account []common.Address) (*AimiddlewareStakeWithdrawnIterator, error)

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

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

func (*AimiddlewareFilterer) FilterWithdrawn

func (_Aimiddleware *AimiddlewareFilterer) FilterWithdrawn(opts *bind.FilterOpts, account []common.Address) (*AimiddlewareWithdrawnIterator, error)

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

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

func (*AimiddlewareFilterer) ParseAccountDeployed

func (_Aimiddleware *AimiddlewareFilterer) ParseAccountDeployed(log types.Log) (*AimiddlewareAccountDeployed, error)

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

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

func (*AimiddlewareFilterer) ParseAiOperationEvent

func (_Aimiddleware *AimiddlewareFilterer) ParseAiOperationEvent(log types.Log) (*AimiddlewareAiOperationEvent, error)

ParseAiOperationEvent is a log parse operation binding the contract event 0x7b592a4f684d032578f75dff2ca3d3d2aec981a6d0a782e1d127595a6511a4f1.

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

func (*AimiddlewareFilterer) ParseAiOperationRevertReason

func (_Aimiddleware *AimiddlewareFilterer) ParseAiOperationRevertReason(log types.Log) (*AimiddlewareAiOperationRevertReason, error)

ParseAiOperationRevertReason is a log parse operation binding the contract event 0xd5425d9883d2972240bba93dc9098c4f8a304a1a73d0c8b5a7276ce2994f9bb2.

Solidity: event AiOperationRevertReason(bytes32 indexed aiOpHash, address indexed sender, uint256 nonce, bytes revertReason)

func (*AimiddlewareFilterer) ParseBeforeAiopsExecution

func (_Aimiddleware *AimiddlewareFilterer) ParseBeforeAiopsExecution(log types.Log) (*AimiddlewareBeforeAiopsExecution, error)

ParseBeforeAiopsExecution is a log parse operation binding the contract event 0xd22ebd07844ae9e9c8d9945236ef70e6c2f2f0c5bbeef9980c0384600d424243.

Solidity: event BeforeAiopsExecution()

func (*AimiddlewareFilterer) ParseDeposited

func (_Aimiddleware *AimiddlewareFilterer) ParseDeposited(log types.Log) (*AimiddlewareDeposited, error)

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

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

func (*AimiddlewareFilterer) ParseSignatureAggregatorChanged

func (_Aimiddleware *AimiddlewareFilterer) ParseSignatureAggregatorChanged(log types.Log) (*AimiddlewareSignatureAggregatorChanged, error)

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

Solidity: event SignatureAggregatorChanged(address indexed aggregator)

func (*AimiddlewareFilterer) ParseStakeLocked

func (_Aimiddleware *AimiddlewareFilterer) ParseStakeLocked(log types.Log) (*AimiddlewareStakeLocked, error)

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

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

func (*AimiddlewareFilterer) ParseStakeUnlocked

func (_Aimiddleware *AimiddlewareFilterer) ParseStakeUnlocked(log types.Log) (*AimiddlewareStakeUnlocked, error)

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

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

func (*AimiddlewareFilterer) ParseStakeWithdrawn

func (_Aimiddleware *AimiddlewareFilterer) ParseStakeWithdrawn(log types.Log) (*AimiddlewareStakeWithdrawn, error)

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

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

func (*AimiddlewareFilterer) ParseWithdrawn

func (_Aimiddleware *AimiddlewareFilterer) ParseWithdrawn(log types.Log) (*AimiddlewareWithdrawn, error)

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

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

func (*AimiddlewareFilterer) WatchAccountDeployed

func (_Aimiddleware *AimiddlewareFilterer) WatchAccountDeployed(opts *bind.WatchOpts, sink chan<- *AimiddlewareAccountDeployed, aiOpHash [][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 aiOpHash, address indexed sender, address factory, address paymaster)

func (*AimiddlewareFilterer) WatchAiOperationEvent

func (_Aimiddleware *AimiddlewareFilterer) WatchAiOperationEvent(opts *bind.WatchOpts, sink chan<- *AimiddlewareAiOperationEvent, aiOpHash [][32]byte, sender []common.Address, paymaster []common.Address) (event.Subscription, error)

WatchAiOperationEvent is a free log subscription operation binding the contract event 0x7b592a4f684d032578f75dff2ca3d3d2aec981a6d0a782e1d127595a6511a4f1.

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

func (*AimiddlewareFilterer) WatchAiOperationRevertReason

func (_Aimiddleware *AimiddlewareFilterer) WatchAiOperationRevertReason(opts *bind.WatchOpts, sink chan<- *AimiddlewareAiOperationRevertReason, aiOpHash [][32]byte, sender []common.Address) (event.Subscription, error)

WatchAiOperationRevertReason is a free log subscription operation binding the contract event 0xd5425d9883d2972240bba93dc9098c4f8a304a1a73d0c8b5a7276ce2994f9bb2.

Solidity: event AiOperationRevertReason(bytes32 indexed aiOpHash, address indexed sender, uint256 nonce, bytes revertReason)

func (*AimiddlewareFilterer) WatchBeforeAiopsExecution

func (_Aimiddleware *AimiddlewareFilterer) WatchBeforeAiopsExecution(opts *bind.WatchOpts, sink chan<- *AimiddlewareBeforeAiopsExecution) (event.Subscription, error)

WatchBeforeAiopsExecution is a free log subscription operation binding the contract event 0xd22ebd07844ae9e9c8d9945236ef70e6c2f2f0c5bbeef9980c0384600d424243.

Solidity: event BeforeAiopsExecution()

func (*AimiddlewareFilterer) WatchDeposited

func (_Aimiddleware *AimiddlewareFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *AimiddlewareDeposited, 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 (*AimiddlewareFilterer) WatchSignatureAggregatorChanged

func (_Aimiddleware *AimiddlewareFilterer) WatchSignatureAggregatorChanged(opts *bind.WatchOpts, sink chan<- *AimiddlewareSignatureAggregatorChanged, aggregator []common.Address) (event.Subscription, error)

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

Solidity: event SignatureAggregatorChanged(address indexed aggregator)

func (*AimiddlewareFilterer) WatchStakeLocked

func (_Aimiddleware *AimiddlewareFilterer) WatchStakeLocked(opts *bind.WatchOpts, sink chan<- *AimiddlewareStakeLocked, 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 unstakeDelaySec)

func (*AimiddlewareFilterer) WatchStakeUnlocked

func (_Aimiddleware *AimiddlewareFilterer) WatchStakeUnlocked(opts *bind.WatchOpts, sink chan<- *AimiddlewareStakeUnlocked, 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 (*AimiddlewareFilterer) WatchStakeWithdrawn

func (_Aimiddleware *AimiddlewareFilterer) WatchStakeWithdrawn(opts *bind.WatchOpts, sink chan<- *AimiddlewareStakeWithdrawn, 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 (*AimiddlewareFilterer) WatchWithdrawn

func (_Aimiddleware *AimiddlewareFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *AimiddlewareWithdrawn, 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 AimiddlewareRaw

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

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

func (*AimiddlewareRaw) Call

func (_Aimiddleware *AimiddlewareRaw) 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 (*AimiddlewareRaw) Transact

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

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

func (*AimiddlewareRaw) Transfer

func (_Aimiddleware *AimiddlewareRaw) 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 AimiddlewareSession

type AimiddlewareSession struct {
	Contract     *Aimiddleware     // 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
}

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

func (*AimiddlewareSession) AddStake

func (_Aimiddleware *AimiddlewareSession) 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 (*AimiddlewareSession) BalanceOf

func (_Aimiddleware *AimiddlewareSession) 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 (*AimiddlewareSession) DepositTo

func (_Aimiddleware *AimiddlewareSession) 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 (*AimiddlewareSession) Deposits

func (_Aimiddleware *AimiddlewareSession) Deposits(arg0 common.Address) (struct {
	Deposit         *big.Int
	Staked          bool
	Stake           *big.Int
	UnstakeDelaySec uint32
	WithdrawTime    *big.Int
}, 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, uint48 withdrawTime)

func (*AimiddlewareSession) GetAiOpHash

func (_Aimiddleware *AimiddlewareSession) GetAiOpHash(aiOp AiOperation) ([32]byte, error)

GetAiOpHash is a free data retrieval call binding the contract method 0x6960c859.

Solidity: function getAiOpHash((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes) aiOp) view returns(bytes32)

func (*AimiddlewareSession) GetDepositInfo

func (_Aimiddleware *AimiddlewareSession) GetDepositInfo(account common.Address) (IDepositManagerDepositInfo, error)

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

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

func (*AimiddlewareSession) GetNonce

func (_Aimiddleware *AimiddlewareSession) GetNonce(sender common.Address, key *big.Int) (*big.Int, error)

GetNonce is a free data retrieval call binding the contract method 0x35567e1a.

Solidity: function getNonce(address sender, uint192 key) view returns(uint256 nonce)

func (*AimiddlewareSession) GetSenderAddress

func (_Aimiddleware *AimiddlewareSession) GetSenderAddress(initCode []byte) (*types.Transaction, error)

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

Solidity: function getSenderAddress(bytes initCode) returns()

func (*AimiddlewareSession) GetValidator

func (_Aimiddleware *AimiddlewareSession) GetValidator() (*types.Transaction, error)

GetValidator is a paid mutator transaction binding the contract method 0x1195e07e.

Solidity: function getValidator() returns(address)

func (*AimiddlewareSession) HandleAggregatedOps

func (_Aimiddleware *AimiddlewareSession) HandleAggregatedOps(opsPerAggregator []IAiMiddlewareAiOpsPerAggregator, 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 (*AimiddlewareSession) HandleOps

func (_Aimiddleware *AimiddlewareSession) HandleOps(ops []AiOperation, 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 (*AimiddlewareSession) IncrementNonce

func (_Aimiddleware *AimiddlewareSession) IncrementNonce(key *big.Int) (*types.Transaction, error)

IncrementNonce is a paid mutator transaction binding the contract method 0x0bd28e3b.

Solidity: function incrementNonce(uint192 key) returns()

func (*AimiddlewareSession) InnerHandleOp

func (_Aimiddleware *AimiddlewareSession) InnerHandleOp(callData []byte, opInfo AiMiddlewareAiOpInfo, 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 (*AimiddlewareSession) ModifyValidator

func (_Aimiddleware *AimiddlewareSession) ModifyValidator(_validator common.Address) (*types.Transaction, error)

ModifyValidator is a paid mutator transaction binding the contract method 0x739429a5.

Solidity: function modifyValidator(address _validator) returns()

func (*AimiddlewareSession) NonceSequenceNumber

func (_Aimiddleware *AimiddlewareSession) NonceSequenceNumber(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

NonceSequenceNumber is a free data retrieval call binding the contract method 0x1b2e01b8.

Solidity: function nonceSequenceNumber(address , uint192 ) view returns(uint256)

func (*AimiddlewareSession) Receive

func (_Aimiddleware *AimiddlewareSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*AimiddlewareSession) SIGVALIDATIONFAILED

func (_Aimiddleware *AimiddlewareSession) 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 (*AimiddlewareSession) SimulateHandleOp

func (_Aimiddleware *AimiddlewareSession) SimulateHandleOp(op AiOperation, target common.Address, targetCallData []byte) (*types.Transaction, error)

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

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

func (*AimiddlewareSession) SimulateValidation

func (_Aimiddleware *AimiddlewareSession) SimulateValidation(aiOp AiOperation) (*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) aiOp) returns()

func (*AimiddlewareSession) TransferOwnership

func (_Aimiddleware *AimiddlewareSession) TransferOwnership(_owner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address _owner) returns()

func (*AimiddlewareSession) UnlockStake

func (_Aimiddleware *AimiddlewareSession) UnlockStake() (*types.Transaction, error)

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

Solidity: function unlockStake() returns()

func (*AimiddlewareSession) ValidateSenderAndPaymaster

func (_Aimiddleware *AimiddlewareSession) ValidateSenderAndPaymaster(initCode []byte, sender common.Address, paymasterAndData []byte) error

ValidateSenderAndPaymaster is a free data retrieval call binding the contract method 0x957122ab.

Solidity: function _validateSenderAndPaymaster(bytes initCode, address sender, bytes paymasterAndData) view returns()

func (*AimiddlewareSession) WithdrawStake

func (_Aimiddleware *AimiddlewareSession) 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 (*AimiddlewareSession) WithdrawTo

func (_Aimiddleware *AimiddlewareSession) 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 AimiddlewareSignatureAggregatorChanged

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

AimiddlewareSignatureAggregatorChanged represents a SignatureAggregatorChanged event raised by the Aimiddleware contract.

type AimiddlewareSignatureAggregatorChangedIterator

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

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

func (*AimiddlewareSignatureAggregatorChangedIterator) Close

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

func (*AimiddlewareSignatureAggregatorChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareSignatureAggregatorChangedIterator) 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 AimiddlewareStakeLocked

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

AimiddlewareStakeLocked represents a StakeLocked event raised by the Aimiddleware contract.

type AimiddlewareStakeLockedIterator

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

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

func (*AimiddlewareStakeLockedIterator) Close

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

func (*AimiddlewareStakeLockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareStakeLockedIterator) 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 AimiddlewareStakeUnlocked

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

AimiddlewareStakeUnlocked represents a StakeUnlocked event raised by the Aimiddleware contract.

type AimiddlewareStakeUnlockedIterator

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

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

func (*AimiddlewareStakeUnlockedIterator) Close

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

func (*AimiddlewareStakeUnlockedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareStakeUnlockedIterator) 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 AimiddlewareStakeWithdrawn

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

AimiddlewareStakeWithdrawn represents a StakeWithdrawn event raised by the Aimiddleware contract.

type AimiddlewareStakeWithdrawnIterator

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

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

func (*AimiddlewareStakeWithdrawnIterator) Close

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

func (*AimiddlewareStakeWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareStakeWithdrawnIterator) 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 AimiddlewareTransactor

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

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

func NewAimiddlewareTransactor

func NewAimiddlewareTransactor(address common.Address, transactor bind.ContractTransactor) (*AimiddlewareTransactor, error)

NewAimiddlewareTransactor creates a new write-only instance of Aimiddleware, bound to a specific deployed contract.

func (*AimiddlewareTransactor) AddStake

func (_Aimiddleware *AimiddlewareTransactor) 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 (*AimiddlewareTransactor) DepositTo

func (_Aimiddleware *AimiddlewareTransactor) 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 (*AimiddlewareTransactor) GetSenderAddress

func (_Aimiddleware *AimiddlewareTransactor) 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 (*AimiddlewareTransactor) GetValidator

func (_Aimiddleware *AimiddlewareTransactor) GetValidator(opts *bind.TransactOpts) (*types.Transaction, error)

GetValidator is a paid mutator transaction binding the contract method 0x1195e07e.

Solidity: function getValidator() returns(address)

func (*AimiddlewareTransactor) HandleAggregatedOps

func (_Aimiddleware *AimiddlewareTransactor) HandleAggregatedOps(opts *bind.TransactOpts, opsPerAggregator []IAiMiddlewareAiOpsPerAggregator, 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 (*AimiddlewareTransactor) HandleOps

func (_Aimiddleware *AimiddlewareTransactor) HandleOps(opts *bind.TransactOpts, ops []AiOperation, 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 (*AimiddlewareTransactor) IncrementNonce

func (_Aimiddleware *AimiddlewareTransactor) IncrementNonce(opts *bind.TransactOpts, key *big.Int) (*types.Transaction, error)

IncrementNonce is a paid mutator transaction binding the contract method 0x0bd28e3b.

Solidity: function incrementNonce(uint192 key) returns()

func (*AimiddlewareTransactor) InnerHandleOp

func (_Aimiddleware *AimiddlewareTransactor) InnerHandleOp(opts *bind.TransactOpts, callData []byte, opInfo AiMiddlewareAiOpInfo, 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 (*AimiddlewareTransactor) ModifyValidator

func (_Aimiddleware *AimiddlewareTransactor) ModifyValidator(opts *bind.TransactOpts, _validator common.Address) (*types.Transaction, error)

ModifyValidator is a paid mutator transaction binding the contract method 0x739429a5.

Solidity: function modifyValidator(address _validator) returns()

func (*AimiddlewareTransactor) Receive

func (_Aimiddleware *AimiddlewareTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*AimiddlewareTransactor) SimulateHandleOp

func (_Aimiddleware *AimiddlewareTransactor) SimulateHandleOp(opts *bind.TransactOpts, op AiOperation, target common.Address, targetCallData []byte) (*types.Transaction, error)

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

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

func (*AimiddlewareTransactor) SimulateValidation

func (_Aimiddleware *AimiddlewareTransactor) SimulateValidation(opts *bind.TransactOpts, aiOp AiOperation) (*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) aiOp) returns()

func (*AimiddlewareTransactor) TransferOwnership

func (_Aimiddleware *AimiddlewareTransactor) TransferOwnership(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address _owner) returns()

func (*AimiddlewareTransactor) UnlockStake

func (_Aimiddleware *AimiddlewareTransactor) UnlockStake(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function unlockStake() returns()

func (*AimiddlewareTransactor) WithdrawStake

func (_Aimiddleware *AimiddlewareTransactor) 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 (*AimiddlewareTransactor) WithdrawTo

func (_Aimiddleware *AimiddlewareTransactor) 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 AimiddlewareTransactorRaw

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

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

func (*AimiddlewareTransactorRaw) Transact

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

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

func (*AimiddlewareTransactorRaw) Transfer

func (_Aimiddleware *AimiddlewareTransactorRaw) 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 AimiddlewareTransactorSession

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

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

func (*AimiddlewareTransactorSession) AddStake

func (_Aimiddleware *AimiddlewareTransactorSession) 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 (*AimiddlewareTransactorSession) DepositTo

func (_Aimiddleware *AimiddlewareTransactorSession) 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 (*AimiddlewareTransactorSession) GetSenderAddress

func (_Aimiddleware *AimiddlewareTransactorSession) GetSenderAddress(initCode []byte) (*types.Transaction, error)

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

Solidity: function getSenderAddress(bytes initCode) returns()

func (*AimiddlewareTransactorSession) GetValidator

func (_Aimiddleware *AimiddlewareTransactorSession) GetValidator() (*types.Transaction, error)

GetValidator is a paid mutator transaction binding the contract method 0x1195e07e.

Solidity: function getValidator() returns(address)

func (*AimiddlewareTransactorSession) HandleAggregatedOps

func (_Aimiddleware *AimiddlewareTransactorSession) HandleAggregatedOps(opsPerAggregator []IAiMiddlewareAiOpsPerAggregator, 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 (*AimiddlewareTransactorSession) HandleOps

func (_Aimiddleware *AimiddlewareTransactorSession) HandleOps(ops []AiOperation, 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 (*AimiddlewareTransactorSession) IncrementNonce

func (_Aimiddleware *AimiddlewareTransactorSession) IncrementNonce(key *big.Int) (*types.Transaction, error)

IncrementNonce is a paid mutator transaction binding the contract method 0x0bd28e3b.

Solidity: function incrementNonce(uint192 key) returns()

func (*AimiddlewareTransactorSession) InnerHandleOp

func (_Aimiddleware *AimiddlewareTransactorSession) InnerHandleOp(callData []byte, opInfo AiMiddlewareAiOpInfo, 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 (*AimiddlewareTransactorSession) ModifyValidator

func (_Aimiddleware *AimiddlewareTransactorSession) ModifyValidator(_validator common.Address) (*types.Transaction, error)

ModifyValidator is a paid mutator transaction binding the contract method 0x739429a5.

Solidity: function modifyValidator(address _validator) returns()

func (*AimiddlewareTransactorSession) Receive

func (_Aimiddleware *AimiddlewareTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*AimiddlewareTransactorSession) SimulateHandleOp

func (_Aimiddleware *AimiddlewareTransactorSession) SimulateHandleOp(op AiOperation, target common.Address, targetCallData []byte) (*types.Transaction, error)

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

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

func (*AimiddlewareTransactorSession) SimulateValidation

func (_Aimiddleware *AimiddlewareTransactorSession) SimulateValidation(aiOp AiOperation) (*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) aiOp) returns()

func (*AimiddlewareTransactorSession) TransferOwnership

func (_Aimiddleware *AimiddlewareTransactorSession) TransferOwnership(_owner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address _owner) returns()

func (*AimiddlewareTransactorSession) UnlockStake

func (_Aimiddleware *AimiddlewareTransactorSession) UnlockStake() (*types.Transaction, error)

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

Solidity: function unlockStake() returns()

func (*AimiddlewareTransactorSession) WithdrawStake

func (_Aimiddleware *AimiddlewareTransactorSession) 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 (*AimiddlewareTransactorSession) WithdrawTo

func (_Aimiddleware *AimiddlewareTransactorSession) 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 AimiddlewareWithdrawn

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

AimiddlewareWithdrawn represents a Withdrawn event raised by the Aimiddleware contract.

type AimiddlewareWithdrawnIterator

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

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

func (*AimiddlewareWithdrawnIterator) Close

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

func (*AimiddlewareWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AimiddlewareWithdrawnIterator) 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 IAiMiddlewareAiOpsPerAggregator

type IAiMiddlewareAiOpsPerAggregator struct {
	AiOps      []AiOperation
	Aggregator common.Address
	Signature  []byte
}

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

type IDepositManagerDepositInfo

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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