// Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. package bondingmanager import ( "errors" "math/big" "strings" ethereum "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/event" ) // Reference imports to suppress errors if they are not otherwise used. var ( _ = errors.New _ = big.NewInt _ = strings.NewReader _ = ethereum.NotFound _ = bind.Bind _ = common.Big1 _ = types.BloomLookup _ = event.NewSubscription _ = abi.ConvertType ) // AgentStatus is an auto generated low-level Go binding around an user-defined struct. type AgentStatus struct { Flag uint8 Domain uint32 Index uint32 } // DisputeStatus is an auto generated low-level Go binding around an user-defined struct. type DisputeStatus struct { Flag uint8 OpenedAt *big.Int ResolvedAt *big.Int } // MultiCallableCall is an auto generated low-level Go binding around an user-defined struct. type MultiCallableCall struct { AllowFailure bool CallData []byte } // MultiCallableResult is an auto generated low-level Go binding around an user-defined struct. type MultiCallableResult struct { Success bool ReturnData []byte } // AddressUpgradeableMetaData contains all meta data concerning the AddressUpgradeable contract. var AddressUpgradeableMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206c23b1ec0cf82dd38b49a5eb8ab5e3a8a9d244a2408df4e3856fd16c6ee0293d64736f6c63430008110033", } // AddressUpgradeableABI is the input ABI used to generate the binding from. // Deprecated: Use AddressUpgradeableMetaData.ABI instead. var AddressUpgradeableABI = AddressUpgradeableMetaData.ABI // AddressUpgradeableBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use AddressUpgradeableMetaData.Bin instead. var AddressUpgradeableBin = AddressUpgradeableMetaData.Bin // DeployAddressUpgradeable deploys a new Ethereum contract, binding an instance of AddressUpgradeable to it. func DeployAddressUpgradeable(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AddressUpgradeable, error) { parsed, err := AddressUpgradeableMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(AddressUpgradeableBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &AddressUpgradeable{AddressUpgradeableCaller: AddressUpgradeableCaller{contract: contract}, AddressUpgradeableTransactor: AddressUpgradeableTransactor{contract: contract}, AddressUpgradeableFilterer: AddressUpgradeableFilterer{contract: contract}}, nil } // AddressUpgradeable is an auto generated Go binding around an Ethereum contract. type AddressUpgradeable struct { AddressUpgradeableCaller // Read-only binding to the contract AddressUpgradeableTransactor // Write-only binding to the contract AddressUpgradeableFilterer // Log filterer for contract events } // AddressUpgradeableCaller is an auto generated read-only Go binding around an Ethereum contract. type AddressUpgradeableCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AddressUpgradeableTransactor is an auto generated write-only Go binding around an Ethereum contract. type AddressUpgradeableTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AddressUpgradeableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type AddressUpgradeableFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AddressUpgradeableSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type AddressUpgradeableSession struct { Contract *AddressUpgradeable // 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 } // AddressUpgradeableCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type AddressUpgradeableCallerSession struct { Contract *AddressUpgradeableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // AddressUpgradeableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type AddressUpgradeableTransactorSession struct { Contract *AddressUpgradeableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // AddressUpgradeableRaw is an auto generated low-level Go binding around an Ethereum contract. type AddressUpgradeableRaw struct { Contract *AddressUpgradeable // Generic contract binding to access the raw methods on } // AddressUpgradeableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type AddressUpgradeableCallerRaw struct { Contract *AddressUpgradeableCaller // Generic read-only contract binding to access the raw methods on } // AddressUpgradeableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type AddressUpgradeableTransactorRaw struct { Contract *AddressUpgradeableTransactor // Generic write-only contract binding to access the raw methods on } // NewAddressUpgradeable creates a new instance of AddressUpgradeable, bound to a specific deployed contract. func NewAddressUpgradeable(address common.Address, backend bind.ContractBackend) (*AddressUpgradeable, error) { contract, err := bindAddressUpgradeable(address, backend, backend, backend) if err != nil { return nil, err } return &AddressUpgradeable{AddressUpgradeableCaller: AddressUpgradeableCaller{contract: contract}, AddressUpgradeableTransactor: AddressUpgradeableTransactor{contract: contract}, AddressUpgradeableFilterer: AddressUpgradeableFilterer{contract: contract}}, nil } // NewAddressUpgradeableCaller creates a new read-only instance of AddressUpgradeable, bound to a specific deployed contract. func NewAddressUpgradeableCaller(address common.Address, caller bind.ContractCaller) (*AddressUpgradeableCaller, error) { contract, err := bindAddressUpgradeable(address, caller, nil, nil) if err != nil { return nil, err } return &AddressUpgradeableCaller{contract: contract}, nil } // NewAddressUpgradeableTransactor creates a new write-only instance of AddressUpgradeable, bound to a specific deployed contract. func NewAddressUpgradeableTransactor(address common.Address, transactor bind.ContractTransactor) (*AddressUpgradeableTransactor, error) { contract, err := bindAddressUpgradeable(address, nil, transactor, nil) if err != nil { return nil, err } return &AddressUpgradeableTransactor{contract: contract}, nil } // NewAddressUpgradeableFilterer creates a new log filterer instance of AddressUpgradeable, bound to a specific deployed contract. func NewAddressUpgradeableFilterer(address common.Address, filterer bind.ContractFilterer) (*AddressUpgradeableFilterer, error) { contract, err := bindAddressUpgradeable(address, nil, nil, filterer) if err != nil { return nil, err } return &AddressUpgradeableFilterer{contract: contract}, nil } // bindAddressUpgradeable binds a generic wrapper to an already deployed contract. func bindAddressUpgradeable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := AddressUpgradeableMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_AddressUpgradeable *AddressUpgradeableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AddressUpgradeable.Contract.AddressUpgradeableCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_AddressUpgradeable *AddressUpgradeableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AddressUpgradeable.Contract.AddressUpgradeableTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AddressUpgradeable *AddressUpgradeableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AddressUpgradeable.Contract.AddressUpgradeableTransactor.contract.Transact(opts, method, params...) } // 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 (_AddressUpgradeable *AddressUpgradeableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AddressUpgradeable.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_AddressUpgradeable *AddressUpgradeableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AddressUpgradeable.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AddressUpgradeable *AddressUpgradeableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AddressUpgradeable.Contract.contract.Transact(opts, method, params...) } // AgentManagerMetaData contains all meta data concerning the AgentManager contract. var AgentManagerMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[],\"name\":\"AgentNotActiveNorUnstaking\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotInbox\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DisputeAlreadyResolved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GuardInDispute\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectAgentDomain\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectVersionLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IndexOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotaryInDispute\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"AgentRootProposed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"disputeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"guardIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"DisputeOpened\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"disputeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"slashedIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"rivalIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"}],\"name\":\"DisputeResolved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"proposedRoot\",\"type\":\"bytes32\"}],\"name\":\"ProposedAgentRootCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"proposedRoot\",\"type\":\"bytes32\"}],\"name\":\"ProposedAgentRootResolved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"RootUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"StatusUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"agentRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"agentStatus\",\"outputs\":[{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"destination\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"disputeStatus\",\"outputs\":[{\"internalType\":\"enumDisputeFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"rival\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"disputePtr\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getAgent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getDispute\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"notary\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"slashedAgent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"reportPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"reportSignature\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDisputesAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inbox\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"localDomain\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"multicall\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Result[]\",\"name\":\"callResults\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"guardIndex\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"openDispute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"origin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"prover\",\"type\":\"address\"}],\"name\":\"slashAgent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"synapseDomain\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"versionString\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", Sigs: map[string]string{ "79ba5097": "acceptOwnership()", "36cba43c": "agentRoot()", "28f3fac9": "agentStatus(address)", "b269681d": "destination()", "3463d1b1": "disputeStatus(address)", "2de5aaf7": "getAgent(uint256)", "e3a96cbd": "getDispute(uint256)", "3aaeccc6": "getDisputesAmount()", "fb0e722b": "inbox()", "8d3638f4": "localDomain()", "60fc8466": "multicall((bool,bytes)[])", "a2155c34": "openDispute(uint32,uint32)", "938b5f32": "origin()", "8da5cb5b": "owner()", "e30c3978": "pendingOwner()", "715018a6": "renounceOwnership()", "2853a0e6": "slashAgent(uint32,address,address)", "717b8638": "synapseDomain()", "f2fde38b": "transferOwnership(address)", "54fd4d50": "version()", }, } // AgentManagerABI is the input ABI used to generate the binding from. // Deprecated: Use AgentManagerMetaData.ABI instead. var AgentManagerABI = AgentManagerMetaData.ABI // Deprecated: Use AgentManagerMetaData.Sigs instead. // AgentManagerFuncSigs maps the 4-byte function signature to its string representation. var AgentManagerFuncSigs = AgentManagerMetaData.Sigs // AgentManager is an auto generated Go binding around an Ethereum contract. type AgentManager struct { AgentManagerCaller // Read-only binding to the contract AgentManagerTransactor // Write-only binding to the contract AgentManagerFilterer // Log filterer for contract events } // AgentManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type AgentManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AgentManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type AgentManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AgentManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type AgentManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AgentManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type AgentManagerSession struct { Contract *AgentManager // 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 } // AgentManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type AgentManagerCallerSession struct { Contract *AgentManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // AgentManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type AgentManagerTransactorSession struct { Contract *AgentManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // AgentManagerRaw is an auto generated low-level Go binding around an Ethereum contract. type AgentManagerRaw struct { Contract *AgentManager // Generic contract binding to access the raw methods on } // AgentManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type AgentManagerCallerRaw struct { Contract *AgentManagerCaller // Generic read-only contract binding to access the raw methods on } // AgentManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type AgentManagerTransactorRaw struct { Contract *AgentManagerTransactor // Generic write-only contract binding to access the raw methods on } // NewAgentManager creates a new instance of AgentManager, bound to a specific deployed contract. func NewAgentManager(address common.Address, backend bind.ContractBackend) (*AgentManager, error) { contract, err := bindAgentManager(address, backend, backend, backend) if err != nil { return nil, err } return &AgentManager{AgentManagerCaller: AgentManagerCaller{contract: contract}, AgentManagerTransactor: AgentManagerTransactor{contract: contract}, AgentManagerFilterer: AgentManagerFilterer{contract: contract}}, nil } // NewAgentManagerCaller creates a new read-only instance of AgentManager, bound to a specific deployed contract. func NewAgentManagerCaller(address common.Address, caller bind.ContractCaller) (*AgentManagerCaller, error) { contract, err := bindAgentManager(address, caller, nil, nil) if err != nil { return nil, err } return &AgentManagerCaller{contract: contract}, nil } // NewAgentManagerTransactor creates a new write-only instance of AgentManager, bound to a specific deployed contract. func NewAgentManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*AgentManagerTransactor, error) { contract, err := bindAgentManager(address, nil, transactor, nil) if err != nil { return nil, err } return &AgentManagerTransactor{contract: contract}, nil } // NewAgentManagerFilterer creates a new log filterer instance of AgentManager, bound to a specific deployed contract. func NewAgentManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*AgentManagerFilterer, error) { contract, err := bindAgentManager(address, nil, nil, filterer) if err != nil { return nil, err } return &AgentManagerFilterer{contract: contract}, nil } // bindAgentManager binds a generic wrapper to an already deployed contract. func bindAgentManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := AgentManagerMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_AgentManager *AgentManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AgentManager.Contract.AgentManagerCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_AgentManager *AgentManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AgentManager.Contract.AgentManagerTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AgentManager *AgentManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AgentManager.Contract.AgentManagerTransactor.contract.Transact(opts, method, params...) } // 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 (_AgentManager *AgentManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AgentManager.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_AgentManager *AgentManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AgentManager.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AgentManager *AgentManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AgentManager.Contract.contract.Transact(opts, method, params...) } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_AgentManager *AgentManagerCaller) AgentRoot(opts *bind.CallOpts) ([32]byte, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "agentRoot") if err != nil { return *new([32]byte), err } out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) return out0, err } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_AgentManager *AgentManagerSession) AgentRoot() ([32]byte, error) { return _AgentManager.Contract.AgentRoot(&_AgentManager.CallOpts) } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_AgentManager *AgentManagerCallerSession) AgentRoot() ([32]byte, error) { return _AgentManager.Contract.AgentRoot(&_AgentManager.CallOpts) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32) status) func (_AgentManager *AgentManagerCaller) AgentStatus(opts *bind.CallOpts, agent common.Address) (AgentStatus, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "agentStatus", agent) if err != nil { return *new(AgentStatus), err } out0 := *abi.ConvertType(out[0], new(AgentStatus)).(*AgentStatus) return out0, err } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32) status) func (_AgentManager *AgentManagerSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _AgentManager.Contract.AgentStatus(&_AgentManager.CallOpts, agent) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32) status) func (_AgentManager *AgentManagerCallerSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _AgentManager.Contract.AgentStatus(&_AgentManager.CallOpts, agent) } // Destination is a free data retrieval call binding the contract method 0xb269681d. // // Solidity: function destination() view returns(address) func (_AgentManager *AgentManagerCaller) Destination(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "destination") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Destination is a free data retrieval call binding the contract method 0xb269681d. // // Solidity: function destination() view returns(address) func (_AgentManager *AgentManagerSession) Destination() (common.Address, error) { return _AgentManager.Contract.Destination(&_AgentManager.CallOpts) } // Destination is a free data retrieval call binding the contract method 0xb269681d. // // Solidity: function destination() view returns(address) func (_AgentManager *AgentManagerCallerSession) Destination() (common.Address, error) { return _AgentManager.Contract.Destination(&_AgentManager.CallOpts) } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_AgentManager *AgentManagerCaller) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "disputeStatus", agent) outstruct := new(struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }) if err != nil { return *outstruct, err } outstruct.Flag = *abi.ConvertType(out[0], new(uint8)).(*uint8) outstruct.Rival = *abi.ConvertType(out[1], new(common.Address)).(*common.Address) outstruct.FraudProver = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) outstruct.DisputePtr = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) return *outstruct, err } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_AgentManager *AgentManagerSession) DisputeStatus(agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { return _AgentManager.Contract.DisputeStatus(&_AgentManager.CallOpts, agent) } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_AgentManager *AgentManagerCallerSession) DisputeStatus(agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { return _AgentManager.Contract.DisputeStatus(&_AgentManager.CallOpts, agent) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_AgentManager *AgentManagerCaller) GetAgent(opts *bind.CallOpts, index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "getAgent", index) outstruct := new(struct { Agent common.Address Status AgentStatus }) if err != nil { return *outstruct, err } outstruct.Agent = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) outstruct.Status = *abi.ConvertType(out[1], new(AgentStatus)).(*AgentStatus) return *outstruct, err } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_AgentManager *AgentManagerSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _AgentManager.Contract.GetAgent(&_AgentManager.CallOpts, index) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_AgentManager *AgentManagerCallerSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _AgentManager.Contract.GetAgent(&_AgentManager.CallOpts, index) } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_AgentManager *AgentManagerCaller) GetDispute(opts *bind.CallOpts, index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "getDispute", index) outstruct := new(struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }) if err != nil { return *outstruct, err } outstruct.Guard = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) outstruct.Notary = *abi.ConvertType(out[1], new(common.Address)).(*common.Address) outstruct.SlashedAgent = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) outstruct.FraudProver = *abi.ConvertType(out[3], new(common.Address)).(*common.Address) outstruct.ReportPayload = *abi.ConvertType(out[4], new([]byte)).(*[]byte) outstruct.ReportSignature = *abi.ConvertType(out[5], new([]byte)).(*[]byte) return *outstruct, err } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_AgentManager *AgentManagerSession) GetDispute(index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { return _AgentManager.Contract.GetDispute(&_AgentManager.CallOpts, index) } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_AgentManager *AgentManagerCallerSession) GetDispute(index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { return _AgentManager.Contract.GetDispute(&_AgentManager.CallOpts, index) } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_AgentManager *AgentManagerCaller) GetDisputesAmount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "getDisputesAmount") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_AgentManager *AgentManagerSession) GetDisputesAmount() (*big.Int, error) { return _AgentManager.Contract.GetDisputesAmount(&_AgentManager.CallOpts) } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_AgentManager *AgentManagerCallerSession) GetDisputesAmount() (*big.Int, error) { return _AgentManager.Contract.GetDisputesAmount(&_AgentManager.CallOpts) } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_AgentManager *AgentManagerCaller) Inbox(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "inbox") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_AgentManager *AgentManagerSession) Inbox() (common.Address, error) { return _AgentManager.Contract.Inbox(&_AgentManager.CallOpts) } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_AgentManager *AgentManagerCallerSession) Inbox() (common.Address, error) { return _AgentManager.Contract.Inbox(&_AgentManager.CallOpts) } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_AgentManager *AgentManagerCaller) LocalDomain(opts *bind.CallOpts) (uint32, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "localDomain") if err != nil { return *new(uint32), err } out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) return out0, err } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_AgentManager *AgentManagerSession) LocalDomain() (uint32, error) { return _AgentManager.Contract.LocalDomain(&_AgentManager.CallOpts) } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_AgentManager *AgentManagerCallerSession) LocalDomain() (uint32, error) { return _AgentManager.Contract.LocalDomain(&_AgentManager.CallOpts) } // Origin is a free data retrieval call binding the contract method 0x938b5f32. // // Solidity: function origin() view returns(address) func (_AgentManager *AgentManagerCaller) Origin(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "origin") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Origin is a free data retrieval call binding the contract method 0x938b5f32. // // Solidity: function origin() view returns(address) func (_AgentManager *AgentManagerSession) Origin() (common.Address, error) { return _AgentManager.Contract.Origin(&_AgentManager.CallOpts) } // Origin is a free data retrieval call binding the contract method 0x938b5f32. // // Solidity: function origin() view returns(address) func (_AgentManager *AgentManagerCallerSession) Origin() (common.Address, error) { return _AgentManager.Contract.Origin(&_AgentManager.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_AgentManager *AgentManagerCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_AgentManager *AgentManagerSession) Owner() (common.Address, error) { return _AgentManager.Contract.Owner(&_AgentManager.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_AgentManager *AgentManagerCallerSession) Owner() (common.Address, error) { return _AgentManager.Contract.Owner(&_AgentManager.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_AgentManager *AgentManagerCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "pendingOwner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_AgentManager *AgentManagerSession) PendingOwner() (common.Address, error) { return _AgentManager.Contract.PendingOwner(&_AgentManager.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_AgentManager *AgentManagerCallerSession) PendingOwner() (common.Address, error) { return _AgentManager.Contract.PendingOwner(&_AgentManager.CallOpts) } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_AgentManager *AgentManagerCaller) SynapseDomain(opts *bind.CallOpts) (uint32, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "synapseDomain") if err != nil { return *new(uint32), err } out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) return out0, err } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_AgentManager *AgentManagerSession) SynapseDomain() (uint32, error) { return _AgentManager.Contract.SynapseDomain(&_AgentManager.CallOpts) } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_AgentManager *AgentManagerCallerSession) SynapseDomain() (uint32, error) { return _AgentManager.Contract.SynapseDomain(&_AgentManager.CallOpts) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_AgentManager *AgentManagerCaller) Version(opts *bind.CallOpts) (string, error) { var out []interface{} err := _AgentManager.contract.Call(opts, &out, "version") if err != nil { return *new(string), err } out0 := *abi.ConvertType(out[0], new(string)).(*string) return out0, err } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_AgentManager *AgentManagerSession) Version() (string, error) { return _AgentManager.Contract.Version(&_AgentManager.CallOpts) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_AgentManager *AgentManagerCallerSession) Version() (string, error) { return _AgentManager.Contract.Version(&_AgentManager.CallOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_AgentManager *AgentManagerTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _AgentManager.contract.Transact(opts, "acceptOwnership") } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_AgentManager *AgentManagerSession) AcceptOwnership() (*types.Transaction, error) { return _AgentManager.Contract.AcceptOwnership(&_AgentManager.TransactOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_AgentManager *AgentManagerTransactorSession) AcceptOwnership() (*types.Transaction, error) { return _AgentManager.Contract.AcceptOwnership(&_AgentManager.TransactOpts) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_AgentManager *AgentManagerTransactor) Multicall(opts *bind.TransactOpts, calls []MultiCallableCall) (*types.Transaction, error) { return _AgentManager.contract.Transact(opts, "multicall", calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_AgentManager *AgentManagerSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _AgentManager.Contract.Multicall(&_AgentManager.TransactOpts, calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_AgentManager *AgentManagerTransactorSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _AgentManager.Contract.Multicall(&_AgentManager.TransactOpts, calls) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_AgentManager *AgentManagerTransactor) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _AgentManager.contract.Transact(opts, "openDispute", guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_AgentManager *AgentManagerSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _AgentManager.Contract.OpenDispute(&_AgentManager.TransactOpts, guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_AgentManager *AgentManagerTransactorSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _AgentManager.Contract.OpenDispute(&_AgentManager.TransactOpts, guardIndex, notaryIndex) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_AgentManager *AgentManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _AgentManager.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_AgentManager *AgentManagerSession) RenounceOwnership() (*types.Transaction, error) { return _AgentManager.Contract.RenounceOwnership(&_AgentManager.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_AgentManager *AgentManagerTransactorSession) RenounceOwnership() (*types.Transaction, error) { return _AgentManager.Contract.RenounceOwnership(&_AgentManager.TransactOpts) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_AgentManager *AgentManagerTransactor) SlashAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _AgentManager.contract.Transact(opts, "slashAgent", domain, agent, prover) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_AgentManager *AgentManagerSession) SlashAgent(domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _AgentManager.Contract.SlashAgent(&_AgentManager.TransactOpts, domain, agent, prover) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_AgentManager *AgentManagerTransactorSession) SlashAgent(domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _AgentManager.Contract.SlashAgent(&_AgentManager.TransactOpts, domain, agent, prover) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_AgentManager *AgentManagerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { return _AgentManager.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_AgentManager *AgentManagerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _AgentManager.Contract.TransferOwnership(&_AgentManager.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_AgentManager *AgentManagerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _AgentManager.Contract.TransferOwnership(&_AgentManager.TransactOpts, newOwner) } // AgentManagerAgentRootProposedIterator is returned from FilterAgentRootProposed and is used to iterate over the raw logs and unpacked data for AgentRootProposed events raised by the AgentManager contract. type AgentManagerAgentRootProposedIterator struct { Event *AgentManagerAgentRootProposed // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerAgentRootProposedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerAgentRootProposed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerAgentRootProposed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerAgentRootProposedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerAgentRootProposedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerAgentRootProposed represents a AgentRootProposed event raised by the AgentManager contract. type AgentManagerAgentRootProposed struct { NewRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterAgentRootProposed is a free log retrieval operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_AgentManager *AgentManagerFilterer) FilterAgentRootProposed(opts *bind.FilterOpts) (*AgentManagerAgentRootProposedIterator, error) { logs, sub, err := _AgentManager.contract.FilterLogs(opts, "AgentRootProposed") if err != nil { return nil, err } return &AgentManagerAgentRootProposedIterator{contract: _AgentManager.contract, event: "AgentRootProposed", logs: logs, sub: sub}, nil } // WatchAgentRootProposed is a free log subscription operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_AgentManager *AgentManagerFilterer) WatchAgentRootProposed(opts *bind.WatchOpts, sink chan<- *AgentManagerAgentRootProposed) (event.Subscription, error) { logs, sub, err := _AgentManager.contract.WatchLogs(opts, "AgentRootProposed") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerAgentRootProposed) if err := _AgentManager.contract.UnpackLog(event, "AgentRootProposed", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseAgentRootProposed is a log parse operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_AgentManager *AgentManagerFilterer) ParseAgentRootProposed(log types.Log) (*AgentManagerAgentRootProposed, error) { event := new(AgentManagerAgentRootProposed) if err := _AgentManager.contract.UnpackLog(event, "AgentRootProposed", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerDisputeOpenedIterator is returned from FilterDisputeOpened and is used to iterate over the raw logs and unpacked data for DisputeOpened events raised by the AgentManager contract. type AgentManagerDisputeOpenedIterator struct { Event *AgentManagerDisputeOpened // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerDisputeOpenedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerDisputeOpened) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerDisputeOpened) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerDisputeOpenedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerDisputeOpenedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerDisputeOpened represents a DisputeOpened event raised by the AgentManager contract. type AgentManagerDisputeOpened struct { DisputeIndex *big.Int GuardIndex uint32 NotaryIndex uint32 Raw types.Log // Blockchain specific contextual infos } // FilterDisputeOpened is a free log retrieval operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_AgentManager *AgentManagerFilterer) FilterDisputeOpened(opts *bind.FilterOpts) (*AgentManagerDisputeOpenedIterator, error) { logs, sub, err := _AgentManager.contract.FilterLogs(opts, "DisputeOpened") if err != nil { return nil, err } return &AgentManagerDisputeOpenedIterator{contract: _AgentManager.contract, event: "DisputeOpened", logs: logs, sub: sub}, nil } // WatchDisputeOpened is a free log subscription operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_AgentManager *AgentManagerFilterer) WatchDisputeOpened(opts *bind.WatchOpts, sink chan<- *AgentManagerDisputeOpened) (event.Subscription, error) { logs, sub, err := _AgentManager.contract.WatchLogs(opts, "DisputeOpened") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerDisputeOpened) if err := _AgentManager.contract.UnpackLog(event, "DisputeOpened", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseDisputeOpened is a log parse operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_AgentManager *AgentManagerFilterer) ParseDisputeOpened(log types.Log) (*AgentManagerDisputeOpened, error) { event := new(AgentManagerDisputeOpened) if err := _AgentManager.contract.UnpackLog(event, "DisputeOpened", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerDisputeResolvedIterator is returned from FilterDisputeResolved and is used to iterate over the raw logs and unpacked data for DisputeResolved events raised by the AgentManager contract. type AgentManagerDisputeResolvedIterator struct { Event *AgentManagerDisputeResolved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerDisputeResolvedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerDisputeResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerDisputeResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerDisputeResolvedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerDisputeResolvedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerDisputeResolved represents a DisputeResolved event raised by the AgentManager contract. type AgentManagerDisputeResolved struct { DisputeIndex *big.Int SlashedIndex uint32 RivalIndex uint32 FraudProver common.Address Raw types.Log // Blockchain specific contextual infos } // FilterDisputeResolved is a free log retrieval operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_AgentManager *AgentManagerFilterer) FilterDisputeResolved(opts *bind.FilterOpts) (*AgentManagerDisputeResolvedIterator, error) { logs, sub, err := _AgentManager.contract.FilterLogs(opts, "DisputeResolved") if err != nil { return nil, err } return &AgentManagerDisputeResolvedIterator{contract: _AgentManager.contract, event: "DisputeResolved", logs: logs, sub: sub}, nil } // WatchDisputeResolved is a free log subscription operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_AgentManager *AgentManagerFilterer) WatchDisputeResolved(opts *bind.WatchOpts, sink chan<- *AgentManagerDisputeResolved) (event.Subscription, error) { logs, sub, err := _AgentManager.contract.WatchLogs(opts, "DisputeResolved") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerDisputeResolved) if err := _AgentManager.contract.UnpackLog(event, "DisputeResolved", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseDisputeResolved is a log parse operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_AgentManager *AgentManagerFilterer) ParseDisputeResolved(log types.Log) (*AgentManagerDisputeResolved, error) { event := new(AgentManagerDisputeResolved) if err := _AgentManager.contract.UnpackLog(event, "DisputeResolved", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the AgentManager contract. type AgentManagerInitializedIterator struct { Event *AgentManagerInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerInitialized represents a Initialized event raised by the AgentManager contract. type AgentManagerInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_AgentManager *AgentManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*AgentManagerInitializedIterator, error) { logs, sub, err := _AgentManager.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } return &AgentManagerInitializedIterator{contract: _AgentManager.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_AgentManager *AgentManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AgentManagerInitialized) (event.Subscription, error) { logs, sub, err := _AgentManager.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerInitialized) if err := _AgentManager.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_AgentManager *AgentManagerFilterer) ParseInitialized(log types.Log) (*AgentManagerInitialized, error) { event := new(AgentManagerInitialized) if err := _AgentManager.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the AgentManager contract. type AgentManagerOwnershipTransferStartedIterator struct { Event *AgentManagerOwnershipTransferStarted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerOwnershipTransferStartedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerOwnershipTransferStartedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerOwnershipTransferStartedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the AgentManager contract. type AgentManagerOwnershipTransferStarted struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_AgentManager *AgentManagerFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AgentManagerOwnershipTransferStartedIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _AgentManager.contract.FilterLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &AgentManagerOwnershipTransferStartedIterator{contract: _AgentManager.contract, event: "OwnershipTransferStarted", logs: logs, sub: sub}, nil } // WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_AgentManager *AgentManagerFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *AgentManagerOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _AgentManager.contract.WatchLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerOwnershipTransferStarted) if err := _AgentManager.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_AgentManager *AgentManagerFilterer) ParseOwnershipTransferStarted(log types.Log) (*AgentManagerOwnershipTransferStarted, error) { event := new(AgentManagerOwnershipTransferStarted) if err := _AgentManager.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the AgentManager contract. type AgentManagerOwnershipTransferredIterator struct { Event *AgentManagerOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerOwnershipTransferred represents a OwnershipTransferred event raised by the AgentManager contract. type AgentManagerOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_AgentManager *AgentManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AgentManagerOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _AgentManager.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &AgentManagerOwnershipTransferredIterator{contract: _AgentManager.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_AgentManager *AgentManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AgentManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _AgentManager.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerOwnershipTransferred) if err := _AgentManager.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_AgentManager *AgentManagerFilterer) ParseOwnershipTransferred(log types.Log) (*AgentManagerOwnershipTransferred, error) { event := new(AgentManagerOwnershipTransferred) if err := _AgentManager.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerProposedAgentRootCancelledIterator is returned from FilterProposedAgentRootCancelled and is used to iterate over the raw logs and unpacked data for ProposedAgentRootCancelled events raised by the AgentManager contract. type AgentManagerProposedAgentRootCancelledIterator struct { Event *AgentManagerProposedAgentRootCancelled // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerProposedAgentRootCancelledIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerProposedAgentRootCancelled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerProposedAgentRootCancelled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerProposedAgentRootCancelledIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerProposedAgentRootCancelledIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerProposedAgentRootCancelled represents a ProposedAgentRootCancelled event raised by the AgentManager contract. type AgentManagerProposedAgentRootCancelled struct { ProposedRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterProposedAgentRootCancelled is a free log retrieval operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_AgentManager *AgentManagerFilterer) FilterProposedAgentRootCancelled(opts *bind.FilterOpts) (*AgentManagerProposedAgentRootCancelledIterator, error) { logs, sub, err := _AgentManager.contract.FilterLogs(opts, "ProposedAgentRootCancelled") if err != nil { return nil, err } return &AgentManagerProposedAgentRootCancelledIterator{contract: _AgentManager.contract, event: "ProposedAgentRootCancelled", logs: logs, sub: sub}, nil } // WatchProposedAgentRootCancelled is a free log subscription operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_AgentManager *AgentManagerFilterer) WatchProposedAgentRootCancelled(opts *bind.WatchOpts, sink chan<- *AgentManagerProposedAgentRootCancelled) (event.Subscription, error) { logs, sub, err := _AgentManager.contract.WatchLogs(opts, "ProposedAgentRootCancelled") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerProposedAgentRootCancelled) if err := _AgentManager.contract.UnpackLog(event, "ProposedAgentRootCancelled", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseProposedAgentRootCancelled is a log parse operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_AgentManager *AgentManagerFilterer) ParseProposedAgentRootCancelled(log types.Log) (*AgentManagerProposedAgentRootCancelled, error) { event := new(AgentManagerProposedAgentRootCancelled) if err := _AgentManager.contract.UnpackLog(event, "ProposedAgentRootCancelled", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerProposedAgentRootResolvedIterator is returned from FilterProposedAgentRootResolved and is used to iterate over the raw logs and unpacked data for ProposedAgentRootResolved events raised by the AgentManager contract. type AgentManagerProposedAgentRootResolvedIterator struct { Event *AgentManagerProposedAgentRootResolved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerProposedAgentRootResolvedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerProposedAgentRootResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerProposedAgentRootResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerProposedAgentRootResolvedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerProposedAgentRootResolvedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerProposedAgentRootResolved represents a ProposedAgentRootResolved event raised by the AgentManager contract. type AgentManagerProposedAgentRootResolved struct { ProposedRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterProposedAgentRootResolved is a free log retrieval operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_AgentManager *AgentManagerFilterer) FilterProposedAgentRootResolved(opts *bind.FilterOpts) (*AgentManagerProposedAgentRootResolvedIterator, error) { logs, sub, err := _AgentManager.contract.FilterLogs(opts, "ProposedAgentRootResolved") if err != nil { return nil, err } return &AgentManagerProposedAgentRootResolvedIterator{contract: _AgentManager.contract, event: "ProposedAgentRootResolved", logs: logs, sub: sub}, nil } // WatchProposedAgentRootResolved is a free log subscription operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_AgentManager *AgentManagerFilterer) WatchProposedAgentRootResolved(opts *bind.WatchOpts, sink chan<- *AgentManagerProposedAgentRootResolved) (event.Subscription, error) { logs, sub, err := _AgentManager.contract.WatchLogs(opts, "ProposedAgentRootResolved") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerProposedAgentRootResolved) if err := _AgentManager.contract.UnpackLog(event, "ProposedAgentRootResolved", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseProposedAgentRootResolved is a log parse operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_AgentManager *AgentManagerFilterer) ParseProposedAgentRootResolved(log types.Log) (*AgentManagerProposedAgentRootResolved, error) { event := new(AgentManagerProposedAgentRootResolved) if err := _AgentManager.contract.UnpackLog(event, "ProposedAgentRootResolved", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerRootUpdatedIterator is returned from FilterRootUpdated and is used to iterate over the raw logs and unpacked data for RootUpdated events raised by the AgentManager contract. type AgentManagerRootUpdatedIterator struct { Event *AgentManagerRootUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerRootUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerRootUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerRootUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerRootUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerRootUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerRootUpdated represents a RootUpdated event raised by the AgentManager contract. type AgentManagerRootUpdated struct { NewRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterRootUpdated is a free log retrieval operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_AgentManager *AgentManagerFilterer) FilterRootUpdated(opts *bind.FilterOpts) (*AgentManagerRootUpdatedIterator, error) { logs, sub, err := _AgentManager.contract.FilterLogs(opts, "RootUpdated") if err != nil { return nil, err } return &AgentManagerRootUpdatedIterator{contract: _AgentManager.contract, event: "RootUpdated", logs: logs, sub: sub}, nil } // WatchRootUpdated is a free log subscription operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_AgentManager *AgentManagerFilterer) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *AgentManagerRootUpdated) (event.Subscription, error) { logs, sub, err := _AgentManager.contract.WatchLogs(opts, "RootUpdated") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerRootUpdated) if err := _AgentManager.contract.UnpackLog(event, "RootUpdated", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseRootUpdated is a log parse operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_AgentManager *AgentManagerFilterer) ParseRootUpdated(log types.Log) (*AgentManagerRootUpdated, error) { event := new(AgentManagerRootUpdated) if err := _AgentManager.contract.UnpackLog(event, "RootUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerStatusUpdatedIterator is returned from FilterStatusUpdated and is used to iterate over the raw logs and unpacked data for StatusUpdated events raised by the AgentManager contract. type AgentManagerStatusUpdatedIterator struct { Event *AgentManagerStatusUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerStatusUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerStatusUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerStatusUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerStatusUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerStatusUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerStatusUpdated represents a StatusUpdated event raised by the AgentManager contract. type AgentManagerStatusUpdated struct { Flag uint8 Domain uint32 Agent common.Address Raw types.Log // Blockchain specific contextual infos } // FilterStatusUpdated is a free log retrieval operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_AgentManager *AgentManagerFilterer) FilterStatusUpdated(opts *bind.FilterOpts, domain []uint32, agent []common.Address) (*AgentManagerStatusUpdatedIterator, error) { var domainRule []interface{} for _, domainItem := range domain { domainRule = append(domainRule, domainItem) } var agentRule []interface{} for _, agentItem := range agent { agentRule = append(agentRule, agentItem) } logs, sub, err := _AgentManager.contract.FilterLogs(opts, "StatusUpdated", domainRule, agentRule) if err != nil { return nil, err } return &AgentManagerStatusUpdatedIterator{contract: _AgentManager.contract, event: "StatusUpdated", logs: logs, sub: sub}, nil } // WatchStatusUpdated is a free log subscription operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_AgentManager *AgentManagerFilterer) WatchStatusUpdated(opts *bind.WatchOpts, sink chan<- *AgentManagerStatusUpdated, domain []uint32, agent []common.Address) (event.Subscription, error) { var domainRule []interface{} for _, domainItem := range domain { domainRule = append(domainRule, domainItem) } var agentRule []interface{} for _, agentItem := range agent { agentRule = append(agentRule, agentItem) } logs, sub, err := _AgentManager.contract.WatchLogs(opts, "StatusUpdated", domainRule, agentRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerStatusUpdated) if err := _AgentManager.contract.UnpackLog(event, "StatusUpdated", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseStatusUpdated is a log parse operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_AgentManager *AgentManagerFilterer) ParseStatusUpdated(log types.Log) (*AgentManagerStatusUpdated, error) { event := new(AgentManagerStatusUpdated) if err := _AgentManager.contract.UnpackLog(event, "StatusUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerEventsMetaData contains all meta data concerning the AgentManagerEvents contract. var AgentManagerEventsMetaData = &bind.MetaData{ ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"AgentRootProposed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"disputeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"guardIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"DisputeOpened\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"disputeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"slashedIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"rivalIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"}],\"name\":\"DisputeResolved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"proposedRoot\",\"type\":\"bytes32\"}],\"name\":\"ProposedAgentRootCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"proposedRoot\",\"type\":\"bytes32\"}],\"name\":\"ProposedAgentRootResolved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"RootUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"StatusUpdated\",\"type\":\"event\"}]", } // AgentManagerEventsABI is the input ABI used to generate the binding from. // Deprecated: Use AgentManagerEventsMetaData.ABI instead. var AgentManagerEventsABI = AgentManagerEventsMetaData.ABI // AgentManagerEvents is an auto generated Go binding around an Ethereum contract. type AgentManagerEvents struct { AgentManagerEventsCaller // Read-only binding to the contract AgentManagerEventsTransactor // Write-only binding to the contract AgentManagerEventsFilterer // Log filterer for contract events } // AgentManagerEventsCaller is an auto generated read-only Go binding around an Ethereum contract. type AgentManagerEventsCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AgentManagerEventsTransactor is an auto generated write-only Go binding around an Ethereum contract. type AgentManagerEventsTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AgentManagerEventsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type AgentManagerEventsFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AgentManagerEventsSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type AgentManagerEventsSession struct { Contract *AgentManagerEvents // 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 } // AgentManagerEventsCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type AgentManagerEventsCallerSession struct { Contract *AgentManagerEventsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // AgentManagerEventsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type AgentManagerEventsTransactorSession struct { Contract *AgentManagerEventsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // AgentManagerEventsRaw is an auto generated low-level Go binding around an Ethereum contract. type AgentManagerEventsRaw struct { Contract *AgentManagerEvents // Generic contract binding to access the raw methods on } // AgentManagerEventsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type AgentManagerEventsCallerRaw struct { Contract *AgentManagerEventsCaller // Generic read-only contract binding to access the raw methods on } // AgentManagerEventsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type AgentManagerEventsTransactorRaw struct { Contract *AgentManagerEventsTransactor // Generic write-only contract binding to access the raw methods on } // NewAgentManagerEvents creates a new instance of AgentManagerEvents, bound to a specific deployed contract. func NewAgentManagerEvents(address common.Address, backend bind.ContractBackend) (*AgentManagerEvents, error) { contract, err := bindAgentManagerEvents(address, backend, backend, backend) if err != nil { return nil, err } return &AgentManagerEvents{AgentManagerEventsCaller: AgentManagerEventsCaller{contract: contract}, AgentManagerEventsTransactor: AgentManagerEventsTransactor{contract: contract}, AgentManagerEventsFilterer: AgentManagerEventsFilterer{contract: contract}}, nil } // NewAgentManagerEventsCaller creates a new read-only instance of AgentManagerEvents, bound to a specific deployed contract. func NewAgentManagerEventsCaller(address common.Address, caller bind.ContractCaller) (*AgentManagerEventsCaller, error) { contract, err := bindAgentManagerEvents(address, caller, nil, nil) if err != nil { return nil, err } return &AgentManagerEventsCaller{contract: contract}, nil } // NewAgentManagerEventsTransactor creates a new write-only instance of AgentManagerEvents, bound to a specific deployed contract. func NewAgentManagerEventsTransactor(address common.Address, transactor bind.ContractTransactor) (*AgentManagerEventsTransactor, error) { contract, err := bindAgentManagerEvents(address, nil, transactor, nil) if err != nil { return nil, err } return &AgentManagerEventsTransactor{contract: contract}, nil } // NewAgentManagerEventsFilterer creates a new log filterer instance of AgentManagerEvents, bound to a specific deployed contract. func NewAgentManagerEventsFilterer(address common.Address, filterer bind.ContractFilterer) (*AgentManagerEventsFilterer, error) { contract, err := bindAgentManagerEvents(address, nil, nil, filterer) if err != nil { return nil, err } return &AgentManagerEventsFilterer{contract: contract}, nil } // bindAgentManagerEvents binds a generic wrapper to an already deployed contract. func bindAgentManagerEvents(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := AgentManagerEventsMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_AgentManagerEvents *AgentManagerEventsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AgentManagerEvents.Contract.AgentManagerEventsCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_AgentManagerEvents *AgentManagerEventsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AgentManagerEvents.Contract.AgentManagerEventsTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AgentManagerEvents *AgentManagerEventsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AgentManagerEvents.Contract.AgentManagerEventsTransactor.contract.Transact(opts, method, params...) } // 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 (_AgentManagerEvents *AgentManagerEventsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AgentManagerEvents.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_AgentManagerEvents *AgentManagerEventsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AgentManagerEvents.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AgentManagerEvents *AgentManagerEventsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AgentManagerEvents.Contract.contract.Transact(opts, method, params...) } // AgentManagerEventsAgentRootProposedIterator is returned from FilterAgentRootProposed and is used to iterate over the raw logs and unpacked data for AgentRootProposed events raised by the AgentManagerEvents contract. type AgentManagerEventsAgentRootProposedIterator struct { Event *AgentManagerEventsAgentRootProposed // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerEventsAgentRootProposedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerEventsAgentRootProposed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerEventsAgentRootProposed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerEventsAgentRootProposedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerEventsAgentRootProposedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerEventsAgentRootProposed represents a AgentRootProposed event raised by the AgentManagerEvents contract. type AgentManagerEventsAgentRootProposed struct { NewRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterAgentRootProposed is a free log retrieval operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) FilterAgentRootProposed(opts *bind.FilterOpts) (*AgentManagerEventsAgentRootProposedIterator, error) { logs, sub, err := _AgentManagerEvents.contract.FilterLogs(opts, "AgentRootProposed") if err != nil { return nil, err } return &AgentManagerEventsAgentRootProposedIterator{contract: _AgentManagerEvents.contract, event: "AgentRootProposed", logs: logs, sub: sub}, nil } // WatchAgentRootProposed is a free log subscription operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) WatchAgentRootProposed(opts *bind.WatchOpts, sink chan<- *AgentManagerEventsAgentRootProposed) (event.Subscription, error) { logs, sub, err := _AgentManagerEvents.contract.WatchLogs(opts, "AgentRootProposed") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerEventsAgentRootProposed) if err := _AgentManagerEvents.contract.UnpackLog(event, "AgentRootProposed", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseAgentRootProposed is a log parse operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) ParseAgentRootProposed(log types.Log) (*AgentManagerEventsAgentRootProposed, error) { event := new(AgentManagerEventsAgentRootProposed) if err := _AgentManagerEvents.contract.UnpackLog(event, "AgentRootProposed", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerEventsDisputeOpenedIterator is returned from FilterDisputeOpened and is used to iterate over the raw logs and unpacked data for DisputeOpened events raised by the AgentManagerEvents contract. type AgentManagerEventsDisputeOpenedIterator struct { Event *AgentManagerEventsDisputeOpened // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerEventsDisputeOpenedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerEventsDisputeOpened) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerEventsDisputeOpened) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerEventsDisputeOpenedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerEventsDisputeOpenedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerEventsDisputeOpened represents a DisputeOpened event raised by the AgentManagerEvents contract. type AgentManagerEventsDisputeOpened struct { DisputeIndex *big.Int GuardIndex uint32 NotaryIndex uint32 Raw types.Log // Blockchain specific contextual infos } // FilterDisputeOpened is a free log retrieval operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_AgentManagerEvents *AgentManagerEventsFilterer) FilterDisputeOpened(opts *bind.FilterOpts) (*AgentManagerEventsDisputeOpenedIterator, error) { logs, sub, err := _AgentManagerEvents.contract.FilterLogs(opts, "DisputeOpened") if err != nil { return nil, err } return &AgentManagerEventsDisputeOpenedIterator{contract: _AgentManagerEvents.contract, event: "DisputeOpened", logs: logs, sub: sub}, nil } // WatchDisputeOpened is a free log subscription operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_AgentManagerEvents *AgentManagerEventsFilterer) WatchDisputeOpened(opts *bind.WatchOpts, sink chan<- *AgentManagerEventsDisputeOpened) (event.Subscription, error) { logs, sub, err := _AgentManagerEvents.contract.WatchLogs(opts, "DisputeOpened") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerEventsDisputeOpened) if err := _AgentManagerEvents.contract.UnpackLog(event, "DisputeOpened", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseDisputeOpened is a log parse operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_AgentManagerEvents *AgentManagerEventsFilterer) ParseDisputeOpened(log types.Log) (*AgentManagerEventsDisputeOpened, error) { event := new(AgentManagerEventsDisputeOpened) if err := _AgentManagerEvents.contract.UnpackLog(event, "DisputeOpened", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerEventsDisputeResolvedIterator is returned from FilterDisputeResolved and is used to iterate over the raw logs and unpacked data for DisputeResolved events raised by the AgentManagerEvents contract. type AgentManagerEventsDisputeResolvedIterator struct { Event *AgentManagerEventsDisputeResolved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerEventsDisputeResolvedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerEventsDisputeResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerEventsDisputeResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerEventsDisputeResolvedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerEventsDisputeResolvedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerEventsDisputeResolved represents a DisputeResolved event raised by the AgentManagerEvents contract. type AgentManagerEventsDisputeResolved struct { DisputeIndex *big.Int SlashedIndex uint32 RivalIndex uint32 FraudProver common.Address Raw types.Log // Blockchain specific contextual infos } // FilterDisputeResolved is a free log retrieval operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_AgentManagerEvents *AgentManagerEventsFilterer) FilterDisputeResolved(opts *bind.FilterOpts) (*AgentManagerEventsDisputeResolvedIterator, error) { logs, sub, err := _AgentManagerEvents.contract.FilterLogs(opts, "DisputeResolved") if err != nil { return nil, err } return &AgentManagerEventsDisputeResolvedIterator{contract: _AgentManagerEvents.contract, event: "DisputeResolved", logs: logs, sub: sub}, nil } // WatchDisputeResolved is a free log subscription operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_AgentManagerEvents *AgentManagerEventsFilterer) WatchDisputeResolved(opts *bind.WatchOpts, sink chan<- *AgentManagerEventsDisputeResolved) (event.Subscription, error) { logs, sub, err := _AgentManagerEvents.contract.WatchLogs(opts, "DisputeResolved") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerEventsDisputeResolved) if err := _AgentManagerEvents.contract.UnpackLog(event, "DisputeResolved", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseDisputeResolved is a log parse operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_AgentManagerEvents *AgentManagerEventsFilterer) ParseDisputeResolved(log types.Log) (*AgentManagerEventsDisputeResolved, error) { event := new(AgentManagerEventsDisputeResolved) if err := _AgentManagerEvents.contract.UnpackLog(event, "DisputeResolved", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerEventsProposedAgentRootCancelledIterator is returned from FilterProposedAgentRootCancelled and is used to iterate over the raw logs and unpacked data for ProposedAgentRootCancelled events raised by the AgentManagerEvents contract. type AgentManagerEventsProposedAgentRootCancelledIterator struct { Event *AgentManagerEventsProposedAgentRootCancelled // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerEventsProposedAgentRootCancelledIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerEventsProposedAgentRootCancelled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerEventsProposedAgentRootCancelled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerEventsProposedAgentRootCancelledIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerEventsProposedAgentRootCancelledIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerEventsProposedAgentRootCancelled represents a ProposedAgentRootCancelled event raised by the AgentManagerEvents contract. type AgentManagerEventsProposedAgentRootCancelled struct { ProposedRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterProposedAgentRootCancelled is a free log retrieval operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) FilterProposedAgentRootCancelled(opts *bind.FilterOpts) (*AgentManagerEventsProposedAgentRootCancelledIterator, error) { logs, sub, err := _AgentManagerEvents.contract.FilterLogs(opts, "ProposedAgentRootCancelled") if err != nil { return nil, err } return &AgentManagerEventsProposedAgentRootCancelledIterator{contract: _AgentManagerEvents.contract, event: "ProposedAgentRootCancelled", logs: logs, sub: sub}, nil } // WatchProposedAgentRootCancelled is a free log subscription operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) WatchProposedAgentRootCancelled(opts *bind.WatchOpts, sink chan<- *AgentManagerEventsProposedAgentRootCancelled) (event.Subscription, error) { logs, sub, err := _AgentManagerEvents.contract.WatchLogs(opts, "ProposedAgentRootCancelled") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerEventsProposedAgentRootCancelled) if err := _AgentManagerEvents.contract.UnpackLog(event, "ProposedAgentRootCancelled", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseProposedAgentRootCancelled is a log parse operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) ParseProposedAgentRootCancelled(log types.Log) (*AgentManagerEventsProposedAgentRootCancelled, error) { event := new(AgentManagerEventsProposedAgentRootCancelled) if err := _AgentManagerEvents.contract.UnpackLog(event, "ProposedAgentRootCancelled", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerEventsProposedAgentRootResolvedIterator is returned from FilterProposedAgentRootResolved and is used to iterate over the raw logs and unpacked data for ProposedAgentRootResolved events raised by the AgentManagerEvents contract. type AgentManagerEventsProposedAgentRootResolvedIterator struct { Event *AgentManagerEventsProposedAgentRootResolved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerEventsProposedAgentRootResolvedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerEventsProposedAgentRootResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerEventsProposedAgentRootResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerEventsProposedAgentRootResolvedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerEventsProposedAgentRootResolvedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerEventsProposedAgentRootResolved represents a ProposedAgentRootResolved event raised by the AgentManagerEvents contract. type AgentManagerEventsProposedAgentRootResolved struct { ProposedRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterProposedAgentRootResolved is a free log retrieval operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) FilterProposedAgentRootResolved(opts *bind.FilterOpts) (*AgentManagerEventsProposedAgentRootResolvedIterator, error) { logs, sub, err := _AgentManagerEvents.contract.FilterLogs(opts, "ProposedAgentRootResolved") if err != nil { return nil, err } return &AgentManagerEventsProposedAgentRootResolvedIterator{contract: _AgentManagerEvents.contract, event: "ProposedAgentRootResolved", logs: logs, sub: sub}, nil } // WatchProposedAgentRootResolved is a free log subscription operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) WatchProposedAgentRootResolved(opts *bind.WatchOpts, sink chan<- *AgentManagerEventsProposedAgentRootResolved) (event.Subscription, error) { logs, sub, err := _AgentManagerEvents.contract.WatchLogs(opts, "ProposedAgentRootResolved") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerEventsProposedAgentRootResolved) if err := _AgentManagerEvents.contract.UnpackLog(event, "ProposedAgentRootResolved", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseProposedAgentRootResolved is a log parse operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) ParseProposedAgentRootResolved(log types.Log) (*AgentManagerEventsProposedAgentRootResolved, error) { event := new(AgentManagerEventsProposedAgentRootResolved) if err := _AgentManagerEvents.contract.UnpackLog(event, "ProposedAgentRootResolved", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerEventsRootUpdatedIterator is returned from FilterRootUpdated and is used to iterate over the raw logs and unpacked data for RootUpdated events raised by the AgentManagerEvents contract. type AgentManagerEventsRootUpdatedIterator struct { Event *AgentManagerEventsRootUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerEventsRootUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerEventsRootUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerEventsRootUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerEventsRootUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerEventsRootUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerEventsRootUpdated represents a RootUpdated event raised by the AgentManagerEvents contract. type AgentManagerEventsRootUpdated struct { NewRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterRootUpdated is a free log retrieval operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) FilterRootUpdated(opts *bind.FilterOpts) (*AgentManagerEventsRootUpdatedIterator, error) { logs, sub, err := _AgentManagerEvents.contract.FilterLogs(opts, "RootUpdated") if err != nil { return nil, err } return &AgentManagerEventsRootUpdatedIterator{contract: _AgentManagerEvents.contract, event: "RootUpdated", logs: logs, sub: sub}, nil } // WatchRootUpdated is a free log subscription operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *AgentManagerEventsRootUpdated) (event.Subscription, error) { logs, sub, err := _AgentManagerEvents.contract.WatchLogs(opts, "RootUpdated") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerEventsRootUpdated) if err := _AgentManagerEvents.contract.UnpackLog(event, "RootUpdated", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseRootUpdated is a log parse operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_AgentManagerEvents *AgentManagerEventsFilterer) ParseRootUpdated(log types.Log) (*AgentManagerEventsRootUpdated, error) { event := new(AgentManagerEventsRootUpdated) if err := _AgentManagerEvents.contract.UnpackLog(event, "RootUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } // AgentManagerEventsStatusUpdatedIterator is returned from FilterStatusUpdated and is used to iterate over the raw logs and unpacked data for StatusUpdated events raised by the AgentManagerEvents contract. type AgentManagerEventsStatusUpdatedIterator struct { Event *AgentManagerEventsStatusUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *AgentManagerEventsStatusUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(AgentManagerEventsStatusUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(AgentManagerEventsStatusUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *AgentManagerEventsStatusUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *AgentManagerEventsStatusUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } // AgentManagerEventsStatusUpdated represents a StatusUpdated event raised by the AgentManagerEvents contract. type AgentManagerEventsStatusUpdated struct { Flag uint8 Domain uint32 Agent common.Address Raw types.Log // Blockchain specific contextual infos } // FilterStatusUpdated is a free log retrieval operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_AgentManagerEvents *AgentManagerEventsFilterer) FilterStatusUpdated(opts *bind.FilterOpts, domain []uint32, agent []common.Address) (*AgentManagerEventsStatusUpdatedIterator, error) { var domainRule []interface{} for _, domainItem := range domain { domainRule = append(domainRule, domainItem) } var agentRule []interface{} for _, agentItem := range agent { agentRule = append(agentRule, agentItem) } logs, sub, err := _AgentManagerEvents.contract.FilterLogs(opts, "StatusUpdated", domainRule, agentRule) if err != nil { return nil, err } return &AgentManagerEventsStatusUpdatedIterator{contract: _AgentManagerEvents.contract, event: "StatusUpdated", logs: logs, sub: sub}, nil } // WatchStatusUpdated is a free log subscription operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_AgentManagerEvents *AgentManagerEventsFilterer) WatchStatusUpdated(opts *bind.WatchOpts, sink chan<- *AgentManagerEventsStatusUpdated, domain []uint32, agent []common.Address) (event.Subscription, error) { var domainRule []interface{} for _, domainItem := range domain { domainRule = append(domainRule, domainItem) } var agentRule []interface{} for _, agentItem := range agent { agentRule = append(agentRule, agentItem) } logs, sub, err := _AgentManagerEvents.contract.WatchLogs(opts, "StatusUpdated", domainRule, agentRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(AgentManagerEventsStatusUpdated) if err := _AgentManagerEvents.contract.UnpackLog(event, "StatusUpdated", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseStatusUpdated is a log parse operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_AgentManagerEvents *AgentManagerEventsFilterer) ParseStatusUpdated(log types.Log) (*AgentManagerEventsStatusUpdated, error) { event := new(AgentManagerEventsStatusUpdated) if err := _AgentManagerEvents.contract.UnpackLog(event, "StatusUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerMetaData contains all meta data concerning the BondingManager contract. var BondingManagerMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"synapseDomain_\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AgentCantBeAdded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AgentNotActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AgentNotActiveNorUnstaking\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AgentNotFraudulent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AgentNotUnstaking\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotDestination\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotInbox\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotSummit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DisputeAlreadyResolved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DisputeNotOpened\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GuardInDispute\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectAgentDomain\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectOriginDomain\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncorrectVersionLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IndexOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LeafNotProven\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MustBeSynapseDomain\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotStuck\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotaryInDispute\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SlashAgentOptimisticPeriod\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SynapseDomainForbidden\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TreeHeightTooLow\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"AgentRootProposed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"disputeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"guardIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"DisputeOpened\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"disputeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"slashedIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"rivalIndex\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"}],\"name\":\"DisputeResolved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"proposedRoot\",\"type\":\"bytes32\"}],\"name\":\"ProposedAgentRootCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"proposedRoot\",\"type\":\"bytes32\"}],\"name\":\"ProposedAgentRootResolved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"RootUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"StatusUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"addAgent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"agentLeaf\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"leaf\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"agentRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"agentStatus\",\"outputs\":[{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"allLeafs\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"leafs\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"completeSlashing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"completeUnstaking\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"destination\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"disputeStatus\",\"outputs\":[{\"internalType\":\"enumDisputeFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"rival\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"disputePtr\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"}],\"name\":\"getActiveAgents\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"agents\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getAgent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getDispute\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"notary\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"slashedAgent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"reportPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"reportSignature\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDisputesAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"indexFrom\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getLeafs\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"leafs\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"getProof\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inbox\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destination_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"inbox_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"summit_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"initiateUnstaking\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"leafsAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"localDomain\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"multicall\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Result[]\",\"name\":\"callResults\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"guardIndex\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"openDispute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"origin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"msgOrigin\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"proofMaturity\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"prover\",\"type\":\"address\"}],\"name\":\"remoteSlashAgent\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"magicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"slashedAgent\",\"type\":\"address\"}],\"name\":\"resolveDisputeWhenStuck\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"prover\",\"type\":\"address\"}],\"name\":\"slashAgent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"summit\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"synapseDomain\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"versionString\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"origin_\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTips\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "79ba5097": "acceptOwnership()", "237a85a5": "addAgent(uint32,address,bytes32[])", "c99dcb9e": "agentLeaf(address)", "36cba43c": "agentRoot()", "28f3fac9": "agentStatus(address)", "12db2ef6": "allLeafs()", "fbc5265e": "completeSlashing(uint32,address,bytes32[])", "4c3e1c1f": "completeUnstaking(uint32,address,bytes32[])", "b269681d": "destination()", "3463d1b1": "disputeStatus(address)", "c1c0f4f6": "getActiveAgents(uint32)", "2de5aaf7": "getAgent(uint256)", "e3a96cbd": "getDispute(uint256)", "3aaeccc6": "getDisputesAmount()", "33d1b2e8": "getLeafs(uint256,uint256)", "3eea79d1": "getProof(address)", "fb0e722b": "inbox()", "f8c8765e": "initialize(address,address,address,address)", "130c5673": "initiateUnstaking(uint32,address,bytes32[])", "33c3a8f3": "leafsAmount()", "8d3638f4": "localDomain()", "60fc8466": "multicall((bool,bytes)[])", "a2155c34": "openDispute(uint32,uint32)", "938b5f32": "origin()", "8da5cb5b": "owner()", "e30c3978": "pendingOwner()", "9d228a51": "remoteSlashAgent(uint32,uint256,uint32,address,address)", "715018a6": "renounceOwnership()", "b15a707d": "resolveDisputeWhenStuck(uint32,address)", "2853a0e6": "slashAgent(uint32,address,address)", "9fbcb9cb": "summit()", "717b8638": "synapseDomain()", "f2fde38b": "transferOwnership(address)", "54fd4d50": "version()", "cc875501": "withdrawTips(address,uint32,uint256)", }, Bin: "0x6101006040523480156200001257600080fd5b5060405162003cb038038062003cb0833981016040819052620000359162000146565b60408051808201909152600580825264302e302e3360d81b60208301526080528181620000628162000175565b60a08181525050506200007f620000bb60201b62001f0c1760201c565b63ffffffff90811660c0819052911660e0819052149050620000b457604051632b3a807f60e01b815260040160405180910390fd5b506200019d565b6000620000d346620000d860201b62001f131760201c565b905090565b600063ffffffff821115620001425760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b606482015260840160405180910390fd5b5090565b6000602082840312156200015957600080fd5b815163ffffffff811681146200016e57600080fd5b9392505050565b8051602080830151919081101562000197576000198160200360031b1b821691505b50919050565b60805160a05160c05160e051613ac4620001ec600039600081816103e901526106c601526000818161042d0152818161100a015261183f0152600061038c015260006103690152613ac46000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c806379ba509711610145578063c1c0f4f6116100bd578063e3a96cbd1161008c578063f8c8765e11610071578063f8c8765e146105a6578063fb0e722b146105b9578063fbc5265e146105cc57600080fd5b8063e3a96cbd1461056e578063f2fde38b1461059357600080fd5b8063c1c0f4f614610517578063c99dcb9e14610537578063cc8755011461054a578063e30c39781461055d57600080fd5b80639d228a5111610114578063a2155c34116100f9578063a2155c34146104de578063b15a707d146104f1578063b269681d1461050457600080fd5b80639d228a51146104875780639fbcb9cb146104cb57600080fd5b806379ba5097146104205780638d3638f4146104285780638da5cb5b1461044f578063938b5f321461047457600080fd5b80633463d1b1116101d85780634c3e1c1f116101a757806360fc84661161018c57806360fc8466146103bc578063715018a6146103dc578063717b8638146103e457600080fd5b80634c3e1c1f1461034b57806354fd4d501461035e57600080fd5b80633463d1b11461030557806336cba43c146103285780633aaeccc6146103305780633eea79d11461033857600080fd5b806328f3fac91161021457806328f3fac91461029f5780632de5aaf7146102bf57806333c3a8f3146102e057806333d1b2e8146102f257600080fd5b806312db2ef614610246578063130c567314610264578063237a85a5146102795780632853a0e61461028c575b600080fd5b61024e6105df565b60405161025b9190613006565b60405180910390f35b6102776102723660046130f1565b6105f6565b005b6102776102873660046130f1565b6106bc565b61027761029a3660046131bc565b6108c3565b6102b26102ad366004613201565b610917565b60405161025b919061328b565b6102d26102cd366004613299565b6109ba565b60405161025b9291906132b2565b60fe545b60405190815260200161025b565b61024e6103003660046132cf565b610a01565b610318610313366004613201565b610af5565b60405161025b94939291906132f1565b60ff546102e4565b60cd546102e4565b61024e610346366004613201565b610c69565b6102776103593660046130f1565b610cc8565b6040805180820182527f000000000000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006020820152905161025b9190613396565b6103cf6103ca3660046133a9565b610d62565b60405161025b919061341e565b610277610ecd565b61040b7f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff909116815260200161025b565b610277610ed7565b61040b7f000000000000000000000000000000000000000000000000000000000000000081565b6033546001600160a01b03165b6040516001600160a01b03909116815260200161025b565b60c95461045c906001600160a01b031681565b61049a6104953660046134b2565b610f84565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161025b565b60fb5461045c906001600160a01b031681565b6102776104ec366004613514565b6110a3565b6102776104ff36600461354d565b61148d565b60ca5461045c906001600160a01b031681565b61052a610525366004613582565b6116bb565b60405161025b919061359f565b6102e4610545366004613201565b6117e8565b6102776105583660046135e0565b6117f9565b6065546001600160a01b031661045c565b61058161057c366004613299565b6119f2565b60405161025b9695949392919061361f565b6102776105a1366004613201565b611bca565b6102776105b436600461367a565b611c53565b60cb5461045c906001600160a01b031681565b6102776105da3660046130f1565b611e7e565b60606105f1600060fe80549050610a01565b905090565b6105fe611fad565b600061060983610917565b905061061481612021565b8363ffffffff16816020015163ffffffff161461065d576040517f1612d2ee00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061066b6001868661206d565b90506106b581846040518060600160405280600260058111156106905761069061321c565b81526020018963ffffffff168152602001866040015163ffffffff16815250876120a4565b5050505050565b6106c4611fad565b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168363ffffffff1603610729576040517ff2b2faa000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061073483612237565b9050600080808351600581111561074d5761074d61321c565b036107f55760fe5461075e90611f13565b60fe805460018181019092557f54075df80ec1ae6ac9100e1fd0ebf3246c17f5c933137af392011f4c5f61513a0180546001600160a01b0389167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216811790925563ffffffff8a16600090815260fd602090815260408220805495860181558252902090920180549092161790559150610877565b60038351600581111561080a5761080a61321c565b14801561082657508563ffffffff16836020015163ffffffff16145b15610845578260400151915061083e6003878761206d565b9050610877565b6040517f86511bd900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108bb818560405180606001604052806001600581111561089a5761089a61321c565b81526020018a63ffffffff1681526020018663ffffffff16815250886120a4565b505050505050565b60cb546001600160a01b03163314610907576040517fdbc2fa8500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109128383836122cc565b505050565b604080516060810182526000808252602082018190529181019190915261093d82612237565b6001600160a01b038316600090815260fc602090815260408083205465010000000000900463ffffffff16835260cc90915290205490915060029060ff168181111561098b5761098b61321c565b1480156109ab57506005815160058111156109a8576109a861321c565b14155b156109b557600481525b919050565b604080516060810182526000808252602082018190529181018290526109df83612387565b91506001600160a01b038216156109fc576109f982610917565b90505b915091565b60fe54606090808410610a40576040517f1390f2a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80610a4b84866136fd565b1115610a5e57610a5b8482613710565b92505b8267ffffffffffffffff811115610a7757610a77613073565b604051908082528060200260200182016040528015610aa0578160200160208202803683370190505b50915060005b83811015610aed57610ac0610abb82876136fd565b6123c2565b838281518110610ad257610ad2613723565b6020908102919091010152610ae681613752565b9050610aa6565b505092915050565b6000806000806000610b2c866001600160a01b0316600090815260fc602052604090205463ffffffff650100000000009091041690565b600081815260cc602052604080822081516060810190925280549394509192909190829060ff166002811115610b6457610b6461321c565b6002811115610b7557610b7561321c565b8152905461010081046affffffffffffffffffffff9081166020808501919091526c010000000000000000000000009092046001600160a01b03166040938401528351928401519184015192995090965016935090508215610c6057600060cd610be0600186613710565b81548110610bf057610bf0613723565b600091825260209182902060408051606081018252929091015463ffffffff80821680855264010000000083048216958501959095526801000000000000000090910416908201529150610c5c908414610c4b578151610c51565b81602001515b63ffffffff16612387565b9550505b50509193509193565b60606000610c756105df565b90506000610c8284612237565b905060008082516005811115610c9a57610c9a61321c565b14610caf57816040015163ffffffff16610cb3565b60fe545b9050610cbf83826123fa565b95945050505050565b610cd0611fad565b6000610cdb83610917565b9050610ce681612569565b8363ffffffff16816020015163ffffffff1614610d2f576040517f1612d2ee00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d3d6002868661206d565b90506106b581846040518060600160405280600360058111156106905761069061321c565b6060818067ffffffffffffffff811115610d7e57610d7e613073565b604051908082528060200260200182016040528015610dc457816020015b604080518082019091526000815260606020820152815260200190600190039081610d9c5790505b5091503660005b82811015610ec457858582818110610de557610de5613723565b9050602002810190610df7919061378a565b91506000848281518110610e0d57610e0d613723565b60200260200101519050306001600160a01b0316838060200190610e3191906137c8565b604051610e3f929190613834565b600060405180830381855af49150503d8060008114610e7a576040519150601f19603f3d011682016040523d82523d6000602084013e610e7f565b606091505b5060208301521515808252833517610ebb577f4d6a23280000000000000000000000000000000000000000000000000000000060005260046000fd5b50600101610dcb565b50505092915050565b610ed5611fad565b565b60655433906001600160a01b03168114610f78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610f81816125b5565b50565b60ca546000906001600160a01b03163314610fcb576040517f6efcc49f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62015180851015611008576040517fa8928dd000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168663ffffffff160361106d576040517f3eeb1dd400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110788484846122cc565b507f9d228a510000000000000000000000000000000000000000000000000000000095945050505050565b60cb546001600160a01b031633146110e7576040517fdbc2fa8500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff8216600090815260cc602052604081205460ff1660028111156111115761111161321c565b14611148576040517fd9d49b4c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff8116600090815260cc602052604081205460ff1660028111156111725761117261321c565b146111a9576040517f6893014300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080516060808201835263ffffffff808616835284811660208401908152600084860181815260cd8054600181810183559382905296517f83978b4c69c48dd978ab43fe30f077615294f938fb7f936d9eb340e51ea7db2e909701805494519251861668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff938716640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090961698909616979097179390931716929092179093559154835191820190935290819081526affffffffffffffffffffff83166020808301919091526000604092830181905263ffffffff8716815260cc909152208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360028111156112f6576112f661321c565b0217905550602082015181546040938401516001600160a01b03166c01000000000000000000000000026bffffffffffffffffffffffff6affffffffffffffffffffff909316610100029290921660ff9091161717905580516060810190915280600181526affffffffffffffffffffff83166020808301919091526000604092830181905263ffffffff8616815260cc909152208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360028111156113c7576113c761321c565b0217905550602082015181546040909301516001600160a01b03166c01000000000000000000000000026bffffffffffffffffffffffff6affffffffffffffffffffff909216610100029190911660ff909316929092179190911790557fd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530611450600183613844565b604080516affffffffffffffffffffff909216825263ffffffff808716602084015285169082015260600160405180910390a161091283836125e6565b611495611fad565b60ca54604080517f4098915200000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163409891529160048083019260609291908290030181865afa1580156114f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151c9190613884565b505090508064ffffffffff1661384061153591906136fd565b42101561156e576040517f5be16c4600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038216600090815260fc602090815260408083205465010000000000900463ffffffff16835260cc9091528082208151606081019092528054829060ff1660028111156115c4576115c461321c565b60028111156115d5576115d561321c565b8152905461010081046affffffffffffffffffffff1660208301526c0100000000000000000000000090046001600160a01b031660409091015290506000815160028111156116265761162661321c565b0361165d576040517fb3a71fa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002815160028111156116725761167261321c565b036116a9576040517ff10068b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116b5848460006122cc565b50505050565b63ffffffff8116600090815260fd60205260409020546060908067ffffffffffffffff8111156116ed576116ed613073565b604051908082528060200260200182016040528015611716578160200160208202803683370190505b5091506000805b828110156117d55763ffffffff8516600090815260fd6020526040812080548390811061174c5761174c613723565b6000918252602090912001546001600160a01b03169050600161176e82610917565b5160058111156117805761178061321c565b036117c45780858461179181613752565b9550815181106117a3576117a3613723565b60200260200101906001600160a01b031690816001600160a01b0316815250505b506117ce81613752565b905061171d565b508181146117e1578083525b5050919050565b60006117f3826126eb565b92915050565b60fb546001600160a01b0316331461183d576040517fc9c49ce600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168263ffffffff16036118f45760c9546040517f4e04e7a70000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820184905290911690634e04e7a790604401600060405180830381600087803b1580156118d757600080fd5b505af11580156118eb573d6000803e3d6000fd5b50505050505050565b60c954604080516001600160a01b038681166024830152604480830186905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1fa071380000000000000000000000000000000000000000000000000000000017905291517fa1c702a7000000000000000000000000000000000000000000000000000000008152919092169163a1c702a7916119b09186916201518091906004016138cb565b60408051808303816000875af11580156119ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b591906138f4565b60008060008060608060cd805490508710611a39576040517f1390f2a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060cd8881548110611a4e57611a4e613723565b600091825260209182902060408051606081018252929091015463ffffffff80821680855264010000000083048216958501959095526801000000000000000090910416908201529150611aa190612387565b9650611ab6816020015163ffffffff16612387565b604082015190965063ffffffff1615611b1357611adc816040015163ffffffff16612387565b60408281015163ffffffff16600090815260cc60205220549095506c0100000000000000000000000090046001600160a01b031693505b60cb546040517fc495912b000000000000000000000000000000000000000000000000000000008152600481018a90526001600160a01b039091169063c495912b90602401600060405180830381865afa158015611b75573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611bbb91908101906139a4565b97999698509496939592505050565b611bd2611fad565b606580546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155611c1b6033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600054610100900460ff1615808015611c735750600054600160ff909116105b80611c8d5750303b158015611c8d575060005460ff166001145b611d19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610f6f565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015611d7757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b611d8285858561272c565b60fb80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416179055611dbd61281a565b60fe80546001810182556000919091527f54075df80ec1ae6ac9100e1fd0ebf3246c17f5c933137af392011f4c5f61513a0180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905580156106b557600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050505050565b6000611e8983610917565b9050611e94816128b9565b8363ffffffff16816020015163ffffffff1614611edd576040517f1612d2ee00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ee8846126eb565b90506106b5818460405180606001604052806005808111156106905761069061321c565b60006105f1465b600063ffffffff821115611fa9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201527f32206269747300000000000000000000000000000000000000000000000000006064820152608401610f6f565b5090565b6033546001600160a01b03163314610ed5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f6f565b6001815160058111156120365761203661321c565b14610f81576040517f486fcee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083838360405160200161208493929190613a08565b6040516020818303038152906040528051906020012090505b9392505050565b60006120b9836000015184602001518461206d565b905060006120e1846040015163ffffffff1687878560ff61290590949392919063ffffffff16565b6001600160a01b038416600090815260fc6020526040902085518154929350869282907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600183600581111561213a5761213a61321c565b021790555060208281015182546040948501517fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000ff90911661010063ffffffff938416027fffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffffff1617650100000000009183169190910217909255860151865192516001600160a01b0387169391909216917f8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e916121f491613a80565b60405180910390a36040518181527f2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa49060200160405180910390a1505050505050565b60408051606081018252600080825260208201819052918101919091526001600160a01b038216600090815260fc6020526040908190208151606081019092528054829060ff16600581111561228f5761228f61321c565b60058111156122a0576122a061321c565b8152905463ffffffff610100820481166020840152650100000000009091041660409091015292915050565b60006122d783612237565b90506122e281612969565b8363ffffffff16816020015163ffffffff161461232b576040517f1612d2ee00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001600160a01b03168463ffffffff167f8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e600460405161236c9190613a80565b60405180910390a36123828160400151836129d6565b6116b5565b60fe546000908210156109b55760fe82815481106123a7576123a7613723565b6000918252602090912001546001600160a01b031692915050565b600081156109b5576117f360fe83815481106123e0576123e0613723565b6000918252602090912001546001600160a01b03166126eb565b6060600061242084518410612419576124148460016136fd565b612ce7565b8451612ce7565b90508067ffffffffffffffff81111561243b5761243b613073565b604051908082528060200260200182016040528015612464578160200160208202803683370190505b50845190925060005b82811015610ec4578185600118106124865760006124a4565b85856001188151811061249b5761249b613723565b60200260200101515b8482815181106124b6576124b6613723565b60200260200101818152505060005b8281101561255657600081600101905060008883815181106124e9576124e9613723565b60200260200101519050600085831061250357600061251e565b89838151811061251557612515613723565b60200260200101515b905061252a8282612d00565b8a600186901c8151811061254057612540613723565b60209081029190910101525050506002016124c5565b50600194851c94918201821c910161246d565b60028151600581111561257e5761257e61321c565b14610f81576040517fe637af9400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610f8181612d48565b60ca546040517fa2155c3400000000000000000000000000000000000000000000000000000000815263ffffffff8085166004830152831660248201526001600160a01b039091169063a2155c3490604401600060405180830381600087803b15801561265257600080fd5b505af1158015612666573d6000803e3d6000fd5b505060fb546040517fa2155c3400000000000000000000000000000000000000000000000000000000815263ffffffff8087166004830152851660248201526001600160a01b03909116925063a2155c3491506044015b600060405180830381600087803b1580156126d757600080fd5b505af11580156108bb573d6000803e3d6000fd5b6000806126f783612237565b905060008151600581111561270e5761270e61321c565b146127265761209d816000015182602001518561206d565b50919050565b600054610100900460ff166127c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610f6f565b60c980546001600160a01b039485167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560ca80549385169382169390931790925560cb8054919093169116179055565b600054610100900460ff166128b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610f6f565b610ed5612db2565b6004815160058111156128ce576128ce61321c565b14610f81576040517f0a06903700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84546000906129178686866020612e52565b1461294e576040517f18b00be200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61295b8583856020612e52565b958690555093949350505050565b60018151600581111561297e5761297e61321c565b1415801561299f575060028151600581111561299c5761299c61321c565b14155b15610f81576040517fec3d0d8500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff8216600090815260cc60205260408082208151606081019092528054829060ff166002811115612a0d57612a0d61321c565b6002811115612a1e57612a1e61321c565b8152905461010081046affffffffffffffffffffff1660208301526c0100000000000000000000000090046001600160a01b03166040909101529050600281516002811115612a6f57612a6f61321c565b03612aa6576040517ff10068b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028082526001600160a01b03831660408084019190915263ffffffff8516600090815260cc6020522082518154849383917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016906001908490811115612b0f57612b0f61321c565b021790555060208281015182546040909401516001600160a01b03166c01000000000000000000000000026bffffffffffffffffffffffff6affffffffffffffffffffff928316610100021660ff90951694909417939093179091558201516000911615612cdd57600060018360200151612b8a9190613844565b6affffffffffffffffffffff169050600060cd8281548110612bae57612bae613723565b600091825260209182902060408051606081018252919092015463ffffffff808216835264010000000082048116948301949094526801000000000000000090049092169082015260cd8054919250879184908110612c0f57612c0f613723565b60009182526020918290200180547fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff166801000000000000000063ffffffff94851602179055820151878216911614612c6c578060200151612c6f565b80515b63ffffffff818116600081815260cc60209081526040808320929092558151878152938b16908401528201526001600160a01b03871660608201529093507fb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf9060800160405180910390a150505b6116b58482612efa565b600060015b82811015612726576001918201911b612cec565b600082158015612d0e575081155b15612d1b575060006117f3565b50604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612e49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610f6f565b610ed5336125b5565b815160009082811115612e91576040517fc5360feb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84915060005b81811015612ece57612ec483868381518110612eb557612eb5613723565b60200260200101518984612fd5565b9250600101612e97565b50805b83811015612ef057612ee68360008984612fd5565b9250600101612ed1565b5050949350505050565b60ca546040517f6116921800000000000000000000000000000000000000000000000000000000815263ffffffff8085166004830152831660248201526001600160a01b0390911690636116921890604401600060405180830381600087803b158015612f6657600080fd5b505af1158015612f7a573d6000803e3d6000fd5b505060fb546040517f6116921800000000000000000000000000000000000000000000000000000000815263ffffffff8087166004830152851660248201526001600160a01b039091169250636116921891506044016126bd565b6000600183831c168103612ff457612fed8585612d00565b9050612ffe565b612fed8486612d00565b949350505050565b6020808252825182820181905260009190848201906040850190845b8181101561303e57835183529284019291840191600101613022565b50909695505050505050565b63ffffffff81168114610f8157600080fd5b80356001600160a01b03811681146109b557600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156130e9576130e9613073565b604052919050565b60008060006060848603121561310657600080fd5b83356131118161304a565b9250602061312085820161305c565b9250604085013567ffffffffffffffff8082111561313d57600080fd5b818701915087601f83011261315157600080fd5b81358181111561316357613163613073565b8060051b91506131748483016130a2565b818152918301840191848101908a84111561318e57600080fd5b938501935b838510156131ac57843582529385019390850190613193565b8096505050505050509250925092565b6000806000606084860312156131d157600080fd5b83356131dc8161304a565b92506131ea6020850161305c565b91506131f86040850161305c565b90509250925092565b60006020828403121561321357600080fd5b61209d8261305c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6006811061325b5761325b61321c565b9052565b61326a82825161324b565b60208181015163ffffffff9081169184019190915260409182015116910152565b606081016117f3828461325f565b6000602082840312156132ab57600080fd5b5035919050565b6001600160a01b03831681526080810161209d602083018461325f565b600080604083850312156132e257600080fd5b50508035926020909101359150565b60808101600386106133055761330561321c565b9481526001600160a01b0393841660208201529190921660408201526060015290565b60005b8381101561334357818101518382015260200161332b565b50506000910152565b60008151808452613364816020860160208601613328565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061209d602083018461334c565b600080602083850312156133bc57600080fd5b823567ffffffffffffffff808211156133d457600080fd5b818501915085601f8301126133e857600080fd5b8135818111156133f757600080fd5b8660208260051b850101111561340c57600080fd5b60209290920196919550909350505050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156134a4578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc001855281518051151584528701518784018790526134918785018261334c565b9588019593505090860190600101613445565b509098975050505050505050565b600080600080600060a086880312156134ca57600080fd5b85356134d58161304a565b94506020860135935060408601356134ec8161304a565b92506134fa6060870161305c565b91506135086080870161305c565b90509295509295909350565b6000806040838503121561352757600080fd5b82356135328161304a565b915060208301356135428161304a565b809150509250929050565b6000806040838503121561356057600080fd5b823561356b8161304a565b91506135796020840161305c565b90509250929050565b60006020828403121561359457600080fd5b813561209d8161304a565b6020808252825182820181905260009190848201906040850190845b8181101561303e5783516001600160a01b0316835292840192918401916001016135bb565b6000806000606084860312156135f557600080fd5b6135fe8461305c565b9250602084013561360e8161304a565b929592945050506040919091013590565b60006001600160a01b0380891683528088166020840152808716604084015280861660608401525060c0608083015261365b60c083018561334c565b82810360a084015261366d818561334c565b9998505050505050505050565b6000806000806080858703121561369057600080fd5b6136998561305c565b93506136a76020860161305c565b92506136b56040860161305c565b91506136c36060860161305c565b905092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156117f3576117f36136ce565b818103818111156117f3576117f36136ce565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613783576137836136ce565b5060010190565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc18336030181126137be57600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126137fd57600080fd5b83018035915067ffffffffffffffff82111561381857600080fd5b60200191503681900382131561382d57600080fd5b9250929050565b8183823760009101908152919050565b6affffffffffffffffffffff828116828216039080821115613868576138686136ce565b5092915050565b805164ffffffffff811681146109b557600080fd5b60008060006060848603121561389957600080fd5b6138a28461386f565b92506138b06020850161386f565b915060408401516138c08161304a565b809150509250925092565b600063ffffffff808616835280851660208401525060606040830152610cbf606083018461334c565b6000806040838503121561390757600080fd5b82516139128161304a565b6020939093015192949293505050565b600082601f83011261393357600080fd5b815167ffffffffffffffff81111561394d5761394d613073565b61397e60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016130a2565b81815284602083860101111561399357600080fd5b612ffe826020830160208701613328565b600080604083850312156139b757600080fd5b825167ffffffffffffffff808211156139cf57600080fd5b6139db86838701613922565b935060208501519150808211156139f157600080fd5b506139fe85828601613922565b9150509250929050565b600060068510613a1a57613a1a61321c565b5060f89390931b835260e09190911b7fffffffff0000000000000000000000000000000000000000000000000000000016600183015260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016600582015260190190565b602081016117f3828461324b56fea264697066735822122057e82d4980b793aae796edd18d61300b3e4657cc4a90ed80b688cdc73f22838b64736f6c63430008110033", } // BondingManagerABI is the input ABI used to generate the binding from. // Deprecated: Use BondingManagerMetaData.ABI instead. var BondingManagerABI = BondingManagerMetaData.ABI // Deprecated: Use BondingManagerMetaData.Sigs instead. // BondingManagerFuncSigs maps the 4-byte function signature to its string representation. var BondingManagerFuncSigs = BondingManagerMetaData.Sigs // BondingManagerBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use BondingManagerMetaData.Bin instead. var BondingManagerBin = BondingManagerMetaData.Bin // DeployBondingManager deploys a new Ethereum contract, binding an instance of BondingManager to it. func DeployBondingManager(auth *bind.TransactOpts, backend bind.ContractBackend, synapseDomain_ uint32) (common.Address, *types.Transaction, *BondingManager, error) { parsed, err := BondingManagerMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(BondingManagerBin), backend, synapseDomain_) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &BondingManager{BondingManagerCaller: BondingManagerCaller{contract: contract}, BondingManagerTransactor: BondingManagerTransactor{contract: contract}, BondingManagerFilterer: BondingManagerFilterer{contract: contract}}, nil } // BondingManager is an auto generated Go binding around an Ethereum contract. type BondingManager struct { BondingManagerCaller // Read-only binding to the contract BondingManagerTransactor // Write-only binding to the contract BondingManagerFilterer // Log filterer for contract events } // BondingManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type BondingManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // BondingManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type BondingManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // BondingManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type BondingManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // BondingManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type BondingManagerSession struct { Contract *BondingManager // 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 } // BondingManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type BondingManagerCallerSession struct { Contract *BondingManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // BondingManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type BondingManagerTransactorSession struct { Contract *BondingManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // BondingManagerRaw is an auto generated low-level Go binding around an Ethereum contract. type BondingManagerRaw struct { Contract *BondingManager // Generic contract binding to access the raw methods on } // BondingManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type BondingManagerCallerRaw struct { Contract *BondingManagerCaller // Generic read-only contract binding to access the raw methods on } // BondingManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type BondingManagerTransactorRaw struct { Contract *BondingManagerTransactor // Generic write-only contract binding to access the raw methods on } // NewBondingManager creates a new instance of BondingManager, bound to a specific deployed contract. func NewBondingManager(address common.Address, backend bind.ContractBackend) (*BondingManager, error) { contract, err := bindBondingManager(address, backend, backend, backend) if err != nil { return nil, err } return &BondingManager{BondingManagerCaller: BondingManagerCaller{contract: contract}, BondingManagerTransactor: BondingManagerTransactor{contract: contract}, BondingManagerFilterer: BondingManagerFilterer{contract: contract}}, nil } // NewBondingManagerCaller creates a new read-only instance of BondingManager, bound to a specific deployed contract. func NewBondingManagerCaller(address common.Address, caller bind.ContractCaller) (*BondingManagerCaller, error) { contract, err := bindBondingManager(address, caller, nil, nil) if err != nil { return nil, err } return &BondingManagerCaller{contract: contract}, nil } // NewBondingManagerTransactor creates a new write-only instance of BondingManager, bound to a specific deployed contract. func NewBondingManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*BondingManagerTransactor, error) { contract, err := bindBondingManager(address, nil, transactor, nil) if err != nil { return nil, err } return &BondingManagerTransactor{contract: contract}, nil } // NewBondingManagerFilterer creates a new log filterer instance of BondingManager, bound to a specific deployed contract. func NewBondingManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*BondingManagerFilterer, error) { contract, err := bindBondingManager(address, nil, nil, filterer) if err != nil { return nil, err } return &BondingManagerFilterer{contract: contract}, nil } // bindBondingManager binds a generic wrapper to an already deployed contract. func bindBondingManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := BondingManagerMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_BondingManager *BondingManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _BondingManager.Contract.BondingManagerCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_BondingManager *BondingManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _BondingManager.Contract.BondingManagerTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_BondingManager *BondingManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _BondingManager.Contract.BondingManagerTransactor.contract.Transact(opts, method, params...) } // 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 (_BondingManager *BondingManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _BondingManager.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_BondingManager *BondingManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _BondingManager.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_BondingManager *BondingManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _BondingManager.Contract.contract.Transact(opts, method, params...) } // AgentLeaf is a free data retrieval call binding the contract method 0xc99dcb9e. // // Solidity: function agentLeaf(address agent) view returns(bytes32 leaf) func (_BondingManager *BondingManagerCaller) AgentLeaf(opts *bind.CallOpts, agent common.Address) ([32]byte, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "agentLeaf", agent) if err != nil { return *new([32]byte), err } out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) return out0, err } // AgentLeaf is a free data retrieval call binding the contract method 0xc99dcb9e. // // Solidity: function agentLeaf(address agent) view returns(bytes32 leaf) func (_BondingManager *BondingManagerSession) AgentLeaf(agent common.Address) ([32]byte, error) { return _BondingManager.Contract.AgentLeaf(&_BondingManager.CallOpts, agent) } // AgentLeaf is a free data retrieval call binding the contract method 0xc99dcb9e. // // Solidity: function agentLeaf(address agent) view returns(bytes32 leaf) func (_BondingManager *BondingManagerCallerSession) AgentLeaf(agent common.Address) ([32]byte, error) { return _BondingManager.Contract.AgentLeaf(&_BondingManager.CallOpts, agent) } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_BondingManager *BondingManagerCaller) AgentRoot(opts *bind.CallOpts) ([32]byte, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "agentRoot") if err != nil { return *new([32]byte), err } out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) return out0, err } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_BondingManager *BondingManagerSession) AgentRoot() ([32]byte, error) { return _BondingManager.Contract.AgentRoot(&_BondingManager.CallOpts) } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_BondingManager *BondingManagerCallerSession) AgentRoot() ([32]byte, error) { return _BondingManager.Contract.AgentRoot(&_BondingManager.CallOpts) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32) status) func (_BondingManager *BondingManagerCaller) AgentStatus(opts *bind.CallOpts, agent common.Address) (AgentStatus, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "agentStatus", agent) if err != nil { return *new(AgentStatus), err } out0 := *abi.ConvertType(out[0], new(AgentStatus)).(*AgentStatus) return out0, err } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32) status) func (_BondingManager *BondingManagerSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _BondingManager.Contract.AgentStatus(&_BondingManager.CallOpts, agent) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32) status) func (_BondingManager *BondingManagerCallerSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _BondingManager.Contract.AgentStatus(&_BondingManager.CallOpts, agent) } // AllLeafs is a free data retrieval call binding the contract method 0x12db2ef6. // // Solidity: function allLeafs() view returns(bytes32[] leafs) func (_BondingManager *BondingManagerCaller) AllLeafs(opts *bind.CallOpts) ([][32]byte, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "allLeafs") if err != nil { return *new([][32]byte), err } out0 := *abi.ConvertType(out[0], new([][32]byte)).(*[][32]byte) return out0, err } // AllLeafs is a free data retrieval call binding the contract method 0x12db2ef6. // // Solidity: function allLeafs() view returns(bytes32[] leafs) func (_BondingManager *BondingManagerSession) AllLeafs() ([][32]byte, error) { return _BondingManager.Contract.AllLeafs(&_BondingManager.CallOpts) } // AllLeafs is a free data retrieval call binding the contract method 0x12db2ef6. // // Solidity: function allLeafs() view returns(bytes32[] leafs) func (_BondingManager *BondingManagerCallerSession) AllLeafs() ([][32]byte, error) { return _BondingManager.Contract.AllLeafs(&_BondingManager.CallOpts) } // Destination is a free data retrieval call binding the contract method 0xb269681d. // // Solidity: function destination() view returns(address) func (_BondingManager *BondingManagerCaller) Destination(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "destination") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Destination is a free data retrieval call binding the contract method 0xb269681d. // // Solidity: function destination() view returns(address) func (_BondingManager *BondingManagerSession) Destination() (common.Address, error) { return _BondingManager.Contract.Destination(&_BondingManager.CallOpts) } // Destination is a free data retrieval call binding the contract method 0xb269681d. // // Solidity: function destination() view returns(address) func (_BondingManager *BondingManagerCallerSession) Destination() (common.Address, error) { return _BondingManager.Contract.Destination(&_BondingManager.CallOpts) } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_BondingManager *BondingManagerCaller) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "disputeStatus", agent) outstruct := new(struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }) if err != nil { return *outstruct, err } outstruct.Flag = *abi.ConvertType(out[0], new(uint8)).(*uint8) outstruct.Rival = *abi.ConvertType(out[1], new(common.Address)).(*common.Address) outstruct.FraudProver = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) outstruct.DisputePtr = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) return *outstruct, err } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_BondingManager *BondingManagerSession) DisputeStatus(agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { return _BondingManager.Contract.DisputeStatus(&_BondingManager.CallOpts, agent) } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_BondingManager *BondingManagerCallerSession) DisputeStatus(agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { return _BondingManager.Contract.DisputeStatus(&_BondingManager.CallOpts, agent) } // GetActiveAgents is a free data retrieval call binding the contract method 0xc1c0f4f6. // // Solidity: function getActiveAgents(uint32 domain) view returns(address[] agents) func (_BondingManager *BondingManagerCaller) GetActiveAgents(opts *bind.CallOpts, domain uint32) ([]common.Address, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "getActiveAgents", domain) if err != nil { return *new([]common.Address), err } out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) return out0, err } // GetActiveAgents is a free data retrieval call binding the contract method 0xc1c0f4f6. // // Solidity: function getActiveAgents(uint32 domain) view returns(address[] agents) func (_BondingManager *BondingManagerSession) GetActiveAgents(domain uint32) ([]common.Address, error) { return _BondingManager.Contract.GetActiveAgents(&_BondingManager.CallOpts, domain) } // GetActiveAgents is a free data retrieval call binding the contract method 0xc1c0f4f6. // // Solidity: function getActiveAgents(uint32 domain) view returns(address[] agents) func (_BondingManager *BondingManagerCallerSession) GetActiveAgents(domain uint32) ([]common.Address, error) { return _BondingManager.Contract.GetActiveAgents(&_BondingManager.CallOpts, domain) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_BondingManager *BondingManagerCaller) GetAgent(opts *bind.CallOpts, index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "getAgent", index) outstruct := new(struct { Agent common.Address Status AgentStatus }) if err != nil { return *outstruct, err } outstruct.Agent = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) outstruct.Status = *abi.ConvertType(out[1], new(AgentStatus)).(*AgentStatus) return *outstruct, err } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_BondingManager *BondingManagerSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _BondingManager.Contract.GetAgent(&_BondingManager.CallOpts, index) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_BondingManager *BondingManagerCallerSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _BondingManager.Contract.GetAgent(&_BondingManager.CallOpts, index) } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_BondingManager *BondingManagerCaller) GetDispute(opts *bind.CallOpts, index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "getDispute", index) outstruct := new(struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }) if err != nil { return *outstruct, err } outstruct.Guard = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) outstruct.Notary = *abi.ConvertType(out[1], new(common.Address)).(*common.Address) outstruct.SlashedAgent = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) outstruct.FraudProver = *abi.ConvertType(out[3], new(common.Address)).(*common.Address) outstruct.ReportPayload = *abi.ConvertType(out[4], new([]byte)).(*[]byte) outstruct.ReportSignature = *abi.ConvertType(out[5], new([]byte)).(*[]byte) return *outstruct, err } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_BondingManager *BondingManagerSession) GetDispute(index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { return _BondingManager.Contract.GetDispute(&_BondingManager.CallOpts, index) } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_BondingManager *BondingManagerCallerSession) GetDispute(index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { return _BondingManager.Contract.GetDispute(&_BondingManager.CallOpts, index) } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_BondingManager *BondingManagerCaller) GetDisputesAmount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "getDisputesAmount") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_BondingManager *BondingManagerSession) GetDisputesAmount() (*big.Int, error) { return _BondingManager.Contract.GetDisputesAmount(&_BondingManager.CallOpts) } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_BondingManager *BondingManagerCallerSession) GetDisputesAmount() (*big.Int, error) { return _BondingManager.Contract.GetDisputesAmount(&_BondingManager.CallOpts) } // GetLeafs is a free data retrieval call binding the contract method 0x33d1b2e8. // // Solidity: function getLeafs(uint256 indexFrom, uint256 amount) view returns(bytes32[] leafs) func (_BondingManager *BondingManagerCaller) GetLeafs(opts *bind.CallOpts, indexFrom *big.Int, amount *big.Int) ([][32]byte, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "getLeafs", indexFrom, amount) if err != nil { return *new([][32]byte), err } out0 := *abi.ConvertType(out[0], new([][32]byte)).(*[][32]byte) return out0, err } // GetLeafs is a free data retrieval call binding the contract method 0x33d1b2e8. // // Solidity: function getLeafs(uint256 indexFrom, uint256 amount) view returns(bytes32[] leafs) func (_BondingManager *BondingManagerSession) GetLeafs(indexFrom *big.Int, amount *big.Int) ([][32]byte, error) { return _BondingManager.Contract.GetLeafs(&_BondingManager.CallOpts, indexFrom, amount) } // GetLeafs is a free data retrieval call binding the contract method 0x33d1b2e8. // // Solidity: function getLeafs(uint256 indexFrom, uint256 amount) view returns(bytes32[] leafs) func (_BondingManager *BondingManagerCallerSession) GetLeafs(indexFrom *big.Int, amount *big.Int) ([][32]byte, error) { return _BondingManager.Contract.GetLeafs(&_BondingManager.CallOpts, indexFrom, amount) } // GetProof is a free data retrieval call binding the contract method 0x3eea79d1. // // Solidity: function getProof(address agent) view returns(bytes32[] proof) func (_BondingManager *BondingManagerCaller) GetProof(opts *bind.CallOpts, agent common.Address) ([][32]byte, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "getProof", agent) if err != nil { return *new([][32]byte), err } out0 := *abi.ConvertType(out[0], new([][32]byte)).(*[][32]byte) return out0, err } // GetProof is a free data retrieval call binding the contract method 0x3eea79d1. // // Solidity: function getProof(address agent) view returns(bytes32[] proof) func (_BondingManager *BondingManagerSession) GetProof(agent common.Address) ([][32]byte, error) { return _BondingManager.Contract.GetProof(&_BondingManager.CallOpts, agent) } // GetProof is a free data retrieval call binding the contract method 0x3eea79d1. // // Solidity: function getProof(address agent) view returns(bytes32[] proof) func (_BondingManager *BondingManagerCallerSession) GetProof(agent common.Address) ([][32]byte, error) { return _BondingManager.Contract.GetProof(&_BondingManager.CallOpts, agent) } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_BondingManager *BondingManagerCaller) Inbox(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "inbox") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_BondingManager *BondingManagerSession) Inbox() (common.Address, error) { return _BondingManager.Contract.Inbox(&_BondingManager.CallOpts) } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_BondingManager *BondingManagerCallerSession) Inbox() (common.Address, error) { return _BondingManager.Contract.Inbox(&_BondingManager.CallOpts) } // LeafsAmount is a free data retrieval call binding the contract method 0x33c3a8f3. // // Solidity: function leafsAmount() view returns(uint256 amount) func (_BondingManager *BondingManagerCaller) LeafsAmount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "leafsAmount") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // LeafsAmount is a free data retrieval call binding the contract method 0x33c3a8f3. // // Solidity: function leafsAmount() view returns(uint256 amount) func (_BondingManager *BondingManagerSession) LeafsAmount() (*big.Int, error) { return _BondingManager.Contract.LeafsAmount(&_BondingManager.CallOpts) } // LeafsAmount is a free data retrieval call binding the contract method 0x33c3a8f3. // // Solidity: function leafsAmount() view returns(uint256 amount) func (_BondingManager *BondingManagerCallerSession) LeafsAmount() (*big.Int, error) { return _BondingManager.Contract.LeafsAmount(&_BondingManager.CallOpts) } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_BondingManager *BondingManagerCaller) LocalDomain(opts *bind.CallOpts) (uint32, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "localDomain") if err != nil { return *new(uint32), err } out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) return out0, err } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_BondingManager *BondingManagerSession) LocalDomain() (uint32, error) { return _BondingManager.Contract.LocalDomain(&_BondingManager.CallOpts) } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_BondingManager *BondingManagerCallerSession) LocalDomain() (uint32, error) { return _BondingManager.Contract.LocalDomain(&_BondingManager.CallOpts) } // Origin is a free data retrieval call binding the contract method 0x938b5f32. // // Solidity: function origin() view returns(address) func (_BondingManager *BondingManagerCaller) Origin(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "origin") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Origin is a free data retrieval call binding the contract method 0x938b5f32. // // Solidity: function origin() view returns(address) func (_BondingManager *BondingManagerSession) Origin() (common.Address, error) { return _BondingManager.Contract.Origin(&_BondingManager.CallOpts) } // Origin is a free data retrieval call binding the contract method 0x938b5f32. // // Solidity: function origin() view returns(address) func (_BondingManager *BondingManagerCallerSession) Origin() (common.Address, error) { return _BondingManager.Contract.Origin(&_BondingManager.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_BondingManager *BondingManagerCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_BondingManager *BondingManagerSession) Owner() (common.Address, error) { return _BondingManager.Contract.Owner(&_BondingManager.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_BondingManager *BondingManagerCallerSession) Owner() (common.Address, error) { return _BondingManager.Contract.Owner(&_BondingManager.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_BondingManager *BondingManagerCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "pendingOwner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_BondingManager *BondingManagerSession) PendingOwner() (common.Address, error) { return _BondingManager.Contract.PendingOwner(&_BondingManager.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_BondingManager *BondingManagerCallerSession) PendingOwner() (common.Address, error) { return _BondingManager.Contract.PendingOwner(&_BondingManager.CallOpts) } // Summit is a free data retrieval call binding the contract method 0x9fbcb9cb. // // Solidity: function summit() view returns(address) func (_BondingManager *BondingManagerCaller) Summit(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "summit") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Summit is a free data retrieval call binding the contract method 0x9fbcb9cb. // // Solidity: function summit() view returns(address) func (_BondingManager *BondingManagerSession) Summit() (common.Address, error) { return _BondingManager.Contract.Summit(&_BondingManager.CallOpts) } // Summit is a free data retrieval call binding the contract method 0x9fbcb9cb. // // Solidity: function summit() view returns(address) func (_BondingManager *BondingManagerCallerSession) Summit() (common.Address, error) { return _BondingManager.Contract.Summit(&_BondingManager.CallOpts) } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_BondingManager *BondingManagerCaller) SynapseDomain(opts *bind.CallOpts) (uint32, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "synapseDomain") if err != nil { return *new(uint32), err } out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) return out0, err } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_BondingManager *BondingManagerSession) SynapseDomain() (uint32, error) { return _BondingManager.Contract.SynapseDomain(&_BondingManager.CallOpts) } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_BondingManager *BondingManagerCallerSession) SynapseDomain() (uint32, error) { return _BondingManager.Contract.SynapseDomain(&_BondingManager.CallOpts) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_BondingManager *BondingManagerCaller) Version(opts *bind.CallOpts) (string, error) { var out []interface{} err := _BondingManager.contract.Call(opts, &out, "version") if err != nil { return *new(string), err } out0 := *abi.ConvertType(out[0], new(string)).(*string) return out0, err } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_BondingManager *BondingManagerSession) Version() (string, error) { return _BondingManager.Contract.Version(&_BondingManager.CallOpts) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_BondingManager *BondingManagerCallerSession) Version() (string, error) { return _BondingManager.Contract.Version(&_BondingManager.CallOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_BondingManager *BondingManagerTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "acceptOwnership") } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_BondingManager *BondingManagerSession) AcceptOwnership() (*types.Transaction, error) { return _BondingManager.Contract.AcceptOwnership(&_BondingManager.TransactOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_BondingManager *BondingManagerTransactorSession) AcceptOwnership() (*types.Transaction, error) { return _BondingManager.Contract.AcceptOwnership(&_BondingManager.TransactOpts) } // AddAgent is a paid mutator transaction binding the contract method 0x237a85a5. // // Solidity: function addAgent(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactor) AddAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "addAgent", domain, agent, proof) } // AddAgent is a paid mutator transaction binding the contract method 0x237a85a5. // // Solidity: function addAgent(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerSession) AddAgent(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.AddAgent(&_BondingManager.TransactOpts, domain, agent, proof) } // AddAgent is a paid mutator transaction binding the contract method 0x237a85a5. // // Solidity: function addAgent(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactorSession) AddAgent(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.AddAgent(&_BondingManager.TransactOpts, domain, agent, proof) } // CompleteSlashing is a paid mutator transaction binding the contract method 0xfbc5265e. // // Solidity: function completeSlashing(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactor) CompleteSlashing(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "completeSlashing", domain, agent, proof) } // CompleteSlashing is a paid mutator transaction binding the contract method 0xfbc5265e. // // Solidity: function completeSlashing(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerSession) CompleteSlashing(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.CompleteSlashing(&_BondingManager.TransactOpts, domain, agent, proof) } // CompleteSlashing is a paid mutator transaction binding the contract method 0xfbc5265e. // // Solidity: function completeSlashing(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactorSession) CompleteSlashing(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.CompleteSlashing(&_BondingManager.TransactOpts, domain, agent, proof) } // CompleteUnstaking is a paid mutator transaction binding the contract method 0x4c3e1c1f. // // Solidity: function completeUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactor) CompleteUnstaking(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "completeUnstaking", domain, agent, proof) } // CompleteUnstaking is a paid mutator transaction binding the contract method 0x4c3e1c1f. // // Solidity: function completeUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerSession) CompleteUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.CompleteUnstaking(&_BondingManager.TransactOpts, domain, agent, proof) } // CompleteUnstaking is a paid mutator transaction binding the contract method 0x4c3e1c1f. // // Solidity: function completeUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactorSession) CompleteUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.CompleteUnstaking(&_BondingManager.TransactOpts, domain, agent, proof) } // Initialize is a paid mutator transaction binding the contract method 0xf8c8765e. // // Solidity: function initialize(address origin_, address destination_, address inbox_, address summit_) returns() func (_BondingManager *BondingManagerTransactor) Initialize(opts *bind.TransactOpts, origin_ common.Address, destination_ common.Address, inbox_ common.Address, summit_ common.Address) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "initialize", origin_, destination_, inbox_, summit_) } // Initialize is a paid mutator transaction binding the contract method 0xf8c8765e. // // Solidity: function initialize(address origin_, address destination_, address inbox_, address summit_) returns() func (_BondingManager *BondingManagerSession) Initialize(origin_ common.Address, destination_ common.Address, inbox_ common.Address, summit_ common.Address) (*types.Transaction, error) { return _BondingManager.Contract.Initialize(&_BondingManager.TransactOpts, origin_, destination_, inbox_, summit_) } // Initialize is a paid mutator transaction binding the contract method 0xf8c8765e. // // Solidity: function initialize(address origin_, address destination_, address inbox_, address summit_) returns() func (_BondingManager *BondingManagerTransactorSession) Initialize(origin_ common.Address, destination_ common.Address, inbox_ common.Address, summit_ common.Address) (*types.Transaction, error) { return _BondingManager.Contract.Initialize(&_BondingManager.TransactOpts, origin_, destination_, inbox_, summit_) } // InitiateUnstaking is a paid mutator transaction binding the contract method 0x130c5673. // // Solidity: function initiateUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactor) InitiateUnstaking(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "initiateUnstaking", domain, agent, proof) } // InitiateUnstaking is a paid mutator transaction binding the contract method 0x130c5673. // // Solidity: function initiateUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerSession) InitiateUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.InitiateUnstaking(&_BondingManager.TransactOpts, domain, agent, proof) } // InitiateUnstaking is a paid mutator transaction binding the contract method 0x130c5673. // // Solidity: function initiateUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_BondingManager *BondingManagerTransactorSession) InitiateUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _BondingManager.Contract.InitiateUnstaking(&_BondingManager.TransactOpts, domain, agent, proof) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_BondingManager *BondingManagerTransactor) Multicall(opts *bind.TransactOpts, calls []MultiCallableCall) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "multicall", calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_BondingManager *BondingManagerSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _BondingManager.Contract.Multicall(&_BondingManager.TransactOpts, calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_BondingManager *BondingManagerTransactorSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _BondingManager.Contract.Multicall(&_BondingManager.TransactOpts, calls) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_BondingManager *BondingManagerTransactor) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "openDispute", guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_BondingManager *BondingManagerSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _BondingManager.Contract.OpenDispute(&_BondingManager.TransactOpts, guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_BondingManager *BondingManagerTransactorSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _BondingManager.Contract.OpenDispute(&_BondingManager.TransactOpts, guardIndex, notaryIndex) } // RemoteSlashAgent is a paid mutator transaction binding the contract method 0x9d228a51. // // Solidity: function remoteSlashAgent(uint32 msgOrigin, uint256 proofMaturity, uint32 domain, address agent, address prover) returns(bytes4 magicValue) func (_BondingManager *BondingManagerTransactor) RemoteSlashAgent(opts *bind.TransactOpts, msgOrigin uint32, proofMaturity *big.Int, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "remoteSlashAgent", msgOrigin, proofMaturity, domain, agent, prover) } // RemoteSlashAgent is a paid mutator transaction binding the contract method 0x9d228a51. // // Solidity: function remoteSlashAgent(uint32 msgOrigin, uint256 proofMaturity, uint32 domain, address agent, address prover) returns(bytes4 magicValue) func (_BondingManager *BondingManagerSession) RemoteSlashAgent(msgOrigin uint32, proofMaturity *big.Int, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _BondingManager.Contract.RemoteSlashAgent(&_BondingManager.TransactOpts, msgOrigin, proofMaturity, domain, agent, prover) } // RemoteSlashAgent is a paid mutator transaction binding the contract method 0x9d228a51. // // Solidity: function remoteSlashAgent(uint32 msgOrigin, uint256 proofMaturity, uint32 domain, address agent, address prover) returns(bytes4 magicValue) func (_BondingManager *BondingManagerTransactorSession) RemoteSlashAgent(msgOrigin uint32, proofMaturity *big.Int, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _BondingManager.Contract.RemoteSlashAgent(&_BondingManager.TransactOpts, msgOrigin, proofMaturity, domain, agent, prover) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_BondingManager *BondingManagerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_BondingManager *BondingManagerSession) RenounceOwnership() (*types.Transaction, error) { return _BondingManager.Contract.RenounceOwnership(&_BondingManager.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_BondingManager *BondingManagerTransactorSession) RenounceOwnership() (*types.Transaction, error) { return _BondingManager.Contract.RenounceOwnership(&_BondingManager.TransactOpts) } // ResolveDisputeWhenStuck is a paid mutator transaction binding the contract method 0xb15a707d. // // Solidity: function resolveDisputeWhenStuck(uint32 domain, address slashedAgent) returns() func (_BondingManager *BondingManagerTransactor) ResolveDisputeWhenStuck(opts *bind.TransactOpts, domain uint32, slashedAgent common.Address) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "resolveDisputeWhenStuck", domain, slashedAgent) } // ResolveDisputeWhenStuck is a paid mutator transaction binding the contract method 0xb15a707d. // // Solidity: function resolveDisputeWhenStuck(uint32 domain, address slashedAgent) returns() func (_BondingManager *BondingManagerSession) ResolveDisputeWhenStuck(domain uint32, slashedAgent common.Address) (*types.Transaction, error) { return _BondingManager.Contract.ResolveDisputeWhenStuck(&_BondingManager.TransactOpts, domain, slashedAgent) } // ResolveDisputeWhenStuck is a paid mutator transaction binding the contract method 0xb15a707d. // // Solidity: function resolveDisputeWhenStuck(uint32 domain, address slashedAgent) returns() func (_BondingManager *BondingManagerTransactorSession) ResolveDisputeWhenStuck(domain uint32, slashedAgent common.Address) (*types.Transaction, error) { return _BondingManager.Contract.ResolveDisputeWhenStuck(&_BondingManager.TransactOpts, domain, slashedAgent) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_BondingManager *BondingManagerTransactor) SlashAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "slashAgent", domain, agent, prover) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_BondingManager *BondingManagerSession) SlashAgent(domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _BondingManager.Contract.SlashAgent(&_BondingManager.TransactOpts, domain, agent, prover) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_BondingManager *BondingManagerTransactorSession) SlashAgent(domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _BondingManager.Contract.SlashAgent(&_BondingManager.TransactOpts, domain, agent, prover) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_BondingManager *BondingManagerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_BondingManager *BondingManagerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _BondingManager.Contract.TransferOwnership(&_BondingManager.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_BondingManager *BondingManagerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _BondingManager.Contract.TransferOwnership(&_BondingManager.TransactOpts, newOwner) } // WithdrawTips is a paid mutator transaction binding the contract method 0xcc875501. // // Solidity: function withdrawTips(address recipient, uint32 origin_, uint256 amount) returns() func (_BondingManager *BondingManagerTransactor) WithdrawTips(opts *bind.TransactOpts, recipient common.Address, origin_ uint32, amount *big.Int) (*types.Transaction, error) { return _BondingManager.contract.Transact(opts, "withdrawTips", recipient, origin_, amount) } // WithdrawTips is a paid mutator transaction binding the contract method 0xcc875501. // // Solidity: function withdrawTips(address recipient, uint32 origin_, uint256 amount) returns() func (_BondingManager *BondingManagerSession) WithdrawTips(recipient common.Address, origin_ uint32, amount *big.Int) (*types.Transaction, error) { return _BondingManager.Contract.WithdrawTips(&_BondingManager.TransactOpts, recipient, origin_, amount) } // WithdrawTips is a paid mutator transaction binding the contract method 0xcc875501. // // Solidity: function withdrawTips(address recipient, uint32 origin_, uint256 amount) returns() func (_BondingManager *BondingManagerTransactorSession) WithdrawTips(recipient common.Address, origin_ uint32, amount *big.Int) (*types.Transaction, error) { return _BondingManager.Contract.WithdrawTips(&_BondingManager.TransactOpts, recipient, origin_, amount) } // BondingManagerAgentRootProposedIterator is returned from FilterAgentRootProposed and is used to iterate over the raw logs and unpacked data for AgentRootProposed events raised by the BondingManager contract. type BondingManagerAgentRootProposedIterator struct { Event *BondingManagerAgentRootProposed // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerAgentRootProposedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerAgentRootProposed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerAgentRootProposed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerAgentRootProposedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerAgentRootProposedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerAgentRootProposed represents a AgentRootProposed event raised by the BondingManager contract. type BondingManagerAgentRootProposed struct { NewRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterAgentRootProposed is a free log retrieval operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_BondingManager *BondingManagerFilterer) FilterAgentRootProposed(opts *bind.FilterOpts) (*BondingManagerAgentRootProposedIterator, error) { logs, sub, err := _BondingManager.contract.FilterLogs(opts, "AgentRootProposed") if err != nil { return nil, err } return &BondingManagerAgentRootProposedIterator{contract: _BondingManager.contract, event: "AgentRootProposed", logs: logs, sub: sub}, nil } // WatchAgentRootProposed is a free log subscription operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_BondingManager *BondingManagerFilterer) WatchAgentRootProposed(opts *bind.WatchOpts, sink chan<- *BondingManagerAgentRootProposed) (event.Subscription, error) { logs, sub, err := _BondingManager.contract.WatchLogs(opts, "AgentRootProposed") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerAgentRootProposed) if err := _BondingManager.contract.UnpackLog(event, "AgentRootProposed", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseAgentRootProposed is a log parse operation binding the contract event 0xc222e0af9f2301ee0bfafe1044550b0553f5bdc4a65cb92cc2568820b5bf2944. // // Solidity: event AgentRootProposed(bytes32 newRoot) func (_BondingManager *BondingManagerFilterer) ParseAgentRootProposed(log types.Log) (*BondingManagerAgentRootProposed, error) { event := new(BondingManagerAgentRootProposed) if err := _BondingManager.contract.UnpackLog(event, "AgentRootProposed", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerDisputeOpenedIterator is returned from FilterDisputeOpened and is used to iterate over the raw logs and unpacked data for DisputeOpened events raised by the BondingManager contract. type BondingManagerDisputeOpenedIterator struct { Event *BondingManagerDisputeOpened // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerDisputeOpenedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerDisputeOpened) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerDisputeOpened) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerDisputeOpenedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerDisputeOpenedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerDisputeOpened represents a DisputeOpened event raised by the BondingManager contract. type BondingManagerDisputeOpened struct { DisputeIndex *big.Int GuardIndex uint32 NotaryIndex uint32 Raw types.Log // Blockchain specific contextual infos } // FilterDisputeOpened is a free log retrieval operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_BondingManager *BondingManagerFilterer) FilterDisputeOpened(opts *bind.FilterOpts) (*BondingManagerDisputeOpenedIterator, error) { logs, sub, err := _BondingManager.contract.FilterLogs(opts, "DisputeOpened") if err != nil { return nil, err } return &BondingManagerDisputeOpenedIterator{contract: _BondingManager.contract, event: "DisputeOpened", logs: logs, sub: sub}, nil } // WatchDisputeOpened is a free log subscription operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_BondingManager *BondingManagerFilterer) WatchDisputeOpened(opts *bind.WatchOpts, sink chan<- *BondingManagerDisputeOpened) (event.Subscription, error) { logs, sub, err := _BondingManager.contract.WatchLogs(opts, "DisputeOpened") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerDisputeOpened) if err := _BondingManager.contract.UnpackLog(event, "DisputeOpened", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseDisputeOpened is a log parse operation binding the contract event 0xd0672fae056abe2bf0637742527d49add67fdb68192a6c6f6bf86eac19fe0530. // // Solidity: event DisputeOpened(uint256 disputeIndex, uint32 guardIndex, uint32 notaryIndex) func (_BondingManager *BondingManagerFilterer) ParseDisputeOpened(log types.Log) (*BondingManagerDisputeOpened, error) { event := new(BondingManagerDisputeOpened) if err := _BondingManager.contract.UnpackLog(event, "DisputeOpened", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerDisputeResolvedIterator is returned from FilterDisputeResolved and is used to iterate over the raw logs and unpacked data for DisputeResolved events raised by the BondingManager contract. type BondingManagerDisputeResolvedIterator struct { Event *BondingManagerDisputeResolved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerDisputeResolvedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerDisputeResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerDisputeResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerDisputeResolvedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerDisputeResolvedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerDisputeResolved represents a DisputeResolved event raised by the BondingManager contract. type BondingManagerDisputeResolved struct { DisputeIndex *big.Int SlashedIndex uint32 RivalIndex uint32 FraudProver common.Address Raw types.Log // Blockchain specific contextual infos } // FilterDisputeResolved is a free log retrieval operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_BondingManager *BondingManagerFilterer) FilterDisputeResolved(opts *bind.FilterOpts) (*BondingManagerDisputeResolvedIterator, error) { logs, sub, err := _BondingManager.contract.FilterLogs(opts, "DisputeResolved") if err != nil { return nil, err } return &BondingManagerDisputeResolvedIterator{contract: _BondingManager.contract, event: "DisputeResolved", logs: logs, sub: sub}, nil } // WatchDisputeResolved is a free log subscription operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_BondingManager *BondingManagerFilterer) WatchDisputeResolved(opts *bind.WatchOpts, sink chan<- *BondingManagerDisputeResolved) (event.Subscription, error) { logs, sub, err := _BondingManager.contract.WatchLogs(opts, "DisputeResolved") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerDisputeResolved) if err := _BondingManager.contract.UnpackLog(event, "DisputeResolved", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseDisputeResolved is a log parse operation binding the contract event 0xb4cad5624e1d1c6c622ec70516ee582fe3f6519440c5b47e5165141edc9c54cf. // // Solidity: event DisputeResolved(uint256 disputeIndex, uint32 slashedIndex, uint32 rivalIndex, address fraudProver) func (_BondingManager *BondingManagerFilterer) ParseDisputeResolved(log types.Log) (*BondingManagerDisputeResolved, error) { event := new(BondingManagerDisputeResolved) if err := _BondingManager.contract.UnpackLog(event, "DisputeResolved", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the BondingManager contract. type BondingManagerInitializedIterator struct { Event *BondingManagerInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerInitialized represents a Initialized event raised by the BondingManager contract. type BondingManagerInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_BondingManager *BondingManagerFilterer) FilterInitialized(opts *bind.FilterOpts) (*BondingManagerInitializedIterator, error) { logs, sub, err := _BondingManager.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } return &BondingManagerInitializedIterator{contract: _BondingManager.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_BondingManager *BondingManagerFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BondingManagerInitialized) (event.Subscription, error) { logs, sub, err := _BondingManager.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerInitialized) if err := _BondingManager.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_BondingManager *BondingManagerFilterer) ParseInitialized(log types.Log) (*BondingManagerInitialized, error) { event := new(BondingManagerInitialized) if err := _BondingManager.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the BondingManager contract. type BondingManagerOwnershipTransferStartedIterator struct { Event *BondingManagerOwnershipTransferStarted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerOwnershipTransferStartedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerOwnershipTransferStartedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerOwnershipTransferStartedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the BondingManager contract. type BondingManagerOwnershipTransferStarted struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_BondingManager *BondingManagerFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BondingManagerOwnershipTransferStartedIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _BondingManager.contract.FilterLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &BondingManagerOwnershipTransferStartedIterator{contract: _BondingManager.contract, event: "OwnershipTransferStarted", logs: logs, sub: sub}, nil } // WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_BondingManager *BondingManagerFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *BondingManagerOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _BondingManager.contract.WatchLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerOwnershipTransferStarted) if err := _BondingManager.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_BondingManager *BondingManagerFilterer) ParseOwnershipTransferStarted(log types.Log) (*BondingManagerOwnershipTransferStarted, error) { event := new(BondingManagerOwnershipTransferStarted) if err := _BondingManager.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the BondingManager contract. type BondingManagerOwnershipTransferredIterator struct { Event *BondingManagerOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerOwnershipTransferred represents a OwnershipTransferred event raised by the BondingManager contract. type BondingManagerOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_BondingManager *BondingManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BondingManagerOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _BondingManager.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &BondingManagerOwnershipTransferredIterator{contract: _BondingManager.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_BondingManager *BondingManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BondingManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _BondingManager.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerOwnershipTransferred) if err := _BondingManager.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_BondingManager *BondingManagerFilterer) ParseOwnershipTransferred(log types.Log) (*BondingManagerOwnershipTransferred, error) { event := new(BondingManagerOwnershipTransferred) if err := _BondingManager.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerProposedAgentRootCancelledIterator is returned from FilterProposedAgentRootCancelled and is used to iterate over the raw logs and unpacked data for ProposedAgentRootCancelled events raised by the BondingManager contract. type BondingManagerProposedAgentRootCancelledIterator struct { Event *BondingManagerProposedAgentRootCancelled // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerProposedAgentRootCancelledIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerProposedAgentRootCancelled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerProposedAgentRootCancelled) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerProposedAgentRootCancelledIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerProposedAgentRootCancelledIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerProposedAgentRootCancelled represents a ProposedAgentRootCancelled event raised by the BondingManager contract. type BondingManagerProposedAgentRootCancelled struct { ProposedRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterProposedAgentRootCancelled is a free log retrieval operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_BondingManager *BondingManagerFilterer) FilterProposedAgentRootCancelled(opts *bind.FilterOpts) (*BondingManagerProposedAgentRootCancelledIterator, error) { logs, sub, err := _BondingManager.contract.FilterLogs(opts, "ProposedAgentRootCancelled") if err != nil { return nil, err } return &BondingManagerProposedAgentRootCancelledIterator{contract: _BondingManager.contract, event: "ProposedAgentRootCancelled", logs: logs, sub: sub}, nil } // WatchProposedAgentRootCancelled is a free log subscription operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_BondingManager *BondingManagerFilterer) WatchProposedAgentRootCancelled(opts *bind.WatchOpts, sink chan<- *BondingManagerProposedAgentRootCancelled) (event.Subscription, error) { logs, sub, err := _BondingManager.contract.WatchLogs(opts, "ProposedAgentRootCancelled") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerProposedAgentRootCancelled) if err := _BondingManager.contract.UnpackLog(event, "ProposedAgentRootCancelled", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseProposedAgentRootCancelled is a log parse operation binding the contract event 0xc9b788a7a7ebe95a0a3f82c9850959f0cc1657d1fb19a05ad1cf60877651725f. // // Solidity: event ProposedAgentRootCancelled(bytes32 proposedRoot) func (_BondingManager *BondingManagerFilterer) ParseProposedAgentRootCancelled(log types.Log) (*BondingManagerProposedAgentRootCancelled, error) { event := new(BondingManagerProposedAgentRootCancelled) if err := _BondingManager.contract.UnpackLog(event, "ProposedAgentRootCancelled", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerProposedAgentRootResolvedIterator is returned from FilterProposedAgentRootResolved and is used to iterate over the raw logs and unpacked data for ProposedAgentRootResolved events raised by the BondingManager contract. type BondingManagerProposedAgentRootResolvedIterator struct { Event *BondingManagerProposedAgentRootResolved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerProposedAgentRootResolvedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerProposedAgentRootResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerProposedAgentRootResolved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerProposedAgentRootResolvedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerProposedAgentRootResolvedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerProposedAgentRootResolved represents a ProposedAgentRootResolved event raised by the BondingManager contract. type BondingManagerProposedAgentRootResolved struct { ProposedRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterProposedAgentRootResolved is a free log retrieval operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_BondingManager *BondingManagerFilterer) FilterProposedAgentRootResolved(opts *bind.FilterOpts) (*BondingManagerProposedAgentRootResolvedIterator, error) { logs, sub, err := _BondingManager.contract.FilterLogs(opts, "ProposedAgentRootResolved") if err != nil { return nil, err } return &BondingManagerProposedAgentRootResolvedIterator{contract: _BondingManager.contract, event: "ProposedAgentRootResolved", logs: logs, sub: sub}, nil } // WatchProposedAgentRootResolved is a free log subscription operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_BondingManager *BondingManagerFilterer) WatchProposedAgentRootResolved(opts *bind.WatchOpts, sink chan<- *BondingManagerProposedAgentRootResolved) (event.Subscription, error) { logs, sub, err := _BondingManager.contract.WatchLogs(opts, "ProposedAgentRootResolved") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerProposedAgentRootResolved) if err := _BondingManager.contract.UnpackLog(event, "ProposedAgentRootResolved", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseProposedAgentRootResolved is a log parse operation binding the contract event 0xa2ec8d9db1d036a8700a09e8e0e537805f87edd54181a1fc08a71db281744b4e. // // Solidity: event ProposedAgentRootResolved(bytes32 proposedRoot) func (_BondingManager *BondingManagerFilterer) ParseProposedAgentRootResolved(log types.Log) (*BondingManagerProposedAgentRootResolved, error) { event := new(BondingManagerProposedAgentRootResolved) if err := _BondingManager.contract.UnpackLog(event, "ProposedAgentRootResolved", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerRootUpdatedIterator is returned from FilterRootUpdated and is used to iterate over the raw logs and unpacked data for RootUpdated events raised by the BondingManager contract. type BondingManagerRootUpdatedIterator struct { Event *BondingManagerRootUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerRootUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerRootUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerRootUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerRootUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerRootUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerRootUpdated represents a RootUpdated event raised by the BondingManager contract. type BondingManagerRootUpdated struct { NewRoot [32]byte Raw types.Log // Blockchain specific contextual infos } // FilterRootUpdated is a free log retrieval operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_BondingManager *BondingManagerFilterer) FilterRootUpdated(opts *bind.FilterOpts) (*BondingManagerRootUpdatedIterator, error) { logs, sub, err := _BondingManager.contract.FilterLogs(opts, "RootUpdated") if err != nil { return nil, err } return &BondingManagerRootUpdatedIterator{contract: _BondingManager.contract, event: "RootUpdated", logs: logs, sub: sub}, nil } // WatchRootUpdated is a free log subscription operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_BondingManager *BondingManagerFilterer) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *BondingManagerRootUpdated) (event.Subscription, error) { logs, sub, err := _BondingManager.contract.WatchLogs(opts, "RootUpdated") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerRootUpdated) if err := _BondingManager.contract.UnpackLog(event, "RootUpdated", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseRootUpdated is a log parse operation binding the contract event 0x2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa4. // // Solidity: event RootUpdated(bytes32 newRoot) func (_BondingManager *BondingManagerFilterer) ParseRootUpdated(log types.Log) (*BondingManagerRootUpdated, error) { event := new(BondingManagerRootUpdated) if err := _BondingManager.contract.UnpackLog(event, "RootUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } // BondingManagerStatusUpdatedIterator is returned from FilterStatusUpdated and is used to iterate over the raw logs and unpacked data for StatusUpdated events raised by the BondingManager contract. type BondingManagerStatusUpdatedIterator struct { Event *BondingManagerStatusUpdated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *BondingManagerStatusUpdatedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(BondingManagerStatusUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(BondingManagerStatusUpdated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *BondingManagerStatusUpdatedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *BondingManagerStatusUpdatedIterator) Close() error { it.sub.Unsubscribe() return nil } // BondingManagerStatusUpdated represents a StatusUpdated event raised by the BondingManager contract. type BondingManagerStatusUpdated struct { Flag uint8 Domain uint32 Agent common.Address Raw types.Log // Blockchain specific contextual infos } // FilterStatusUpdated is a free log retrieval operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_BondingManager *BondingManagerFilterer) FilterStatusUpdated(opts *bind.FilterOpts, domain []uint32, agent []common.Address) (*BondingManagerStatusUpdatedIterator, error) { var domainRule []interface{} for _, domainItem := range domain { domainRule = append(domainRule, domainItem) } var agentRule []interface{} for _, agentItem := range agent { agentRule = append(agentRule, agentItem) } logs, sub, err := _BondingManager.contract.FilterLogs(opts, "StatusUpdated", domainRule, agentRule) if err != nil { return nil, err } return &BondingManagerStatusUpdatedIterator{contract: _BondingManager.contract, event: "StatusUpdated", logs: logs, sub: sub}, nil } // WatchStatusUpdated is a free log subscription operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_BondingManager *BondingManagerFilterer) WatchStatusUpdated(opts *bind.WatchOpts, sink chan<- *BondingManagerStatusUpdated, domain []uint32, agent []common.Address) (event.Subscription, error) { var domainRule []interface{} for _, domainItem := range domain { domainRule = append(domainRule, domainItem) } var agentRule []interface{} for _, agentItem := range agent { agentRule = append(agentRule, agentItem) } logs, sub, err := _BondingManager.contract.WatchLogs(opts, "StatusUpdated", domainRule, agentRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(BondingManagerStatusUpdated) if err := _BondingManager.contract.UnpackLog(event, "StatusUpdated", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseStatusUpdated is a log parse operation binding the contract event 0x8f9b8b0f4f062833bec85ea9a8465e4a1207b4be6eb565bbd0ae8b913588d04e. // // Solidity: event StatusUpdated(uint8 flag, uint32 indexed domain, address indexed agent) func (_BondingManager *BondingManagerFilterer) ParseStatusUpdated(log types.Log) (*BondingManagerStatusUpdated, error) { event := new(BondingManagerStatusUpdated) if err := _BondingManager.contract.UnpackLog(event, "StatusUpdated", log); err != nil { return nil, err } event.Raw = log return event, nil } // ChainContextMetaData contains all meta data concerning the ChainContext contract. var ChainContextMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220bc96b20e7c7c4b035de138be647f270fc4436909d5e6072776fd873cb6bc472764736f6c63430008110033", } // ChainContextABI is the input ABI used to generate the binding from. // Deprecated: Use ChainContextMetaData.ABI instead. var ChainContextABI = ChainContextMetaData.ABI // ChainContextBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use ChainContextMetaData.Bin instead. var ChainContextBin = ChainContextMetaData.Bin // DeployChainContext deploys a new Ethereum contract, binding an instance of ChainContext to it. func DeployChainContext(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ChainContext, error) { parsed, err := ChainContextMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ChainContextBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &ChainContext{ChainContextCaller: ChainContextCaller{contract: contract}, ChainContextTransactor: ChainContextTransactor{contract: contract}, ChainContextFilterer: ChainContextFilterer{contract: contract}}, nil } // ChainContext is an auto generated Go binding around an Ethereum contract. type ChainContext struct { ChainContextCaller // Read-only binding to the contract ChainContextTransactor // Write-only binding to the contract ChainContextFilterer // Log filterer for contract events } // ChainContextCaller is an auto generated read-only Go binding around an Ethereum contract. type ChainContextCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ChainContextTransactor is an auto generated write-only Go binding around an Ethereum contract. type ChainContextTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ChainContextFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ChainContextFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ChainContextSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ChainContextSession struct { Contract *ChainContext // 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 } // ChainContextCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type ChainContextCallerSession struct { Contract *ChainContextCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // ChainContextTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type ChainContextTransactorSession struct { Contract *ChainContextTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // ChainContextRaw is an auto generated low-level Go binding around an Ethereum contract. type ChainContextRaw struct { Contract *ChainContext // Generic contract binding to access the raw methods on } // ChainContextCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type ChainContextCallerRaw struct { Contract *ChainContextCaller // Generic read-only contract binding to access the raw methods on } // ChainContextTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type ChainContextTransactorRaw struct { Contract *ChainContextTransactor // Generic write-only contract binding to access the raw methods on } // NewChainContext creates a new instance of ChainContext, bound to a specific deployed contract. func NewChainContext(address common.Address, backend bind.ContractBackend) (*ChainContext, error) { contract, err := bindChainContext(address, backend, backend, backend) if err != nil { return nil, err } return &ChainContext{ChainContextCaller: ChainContextCaller{contract: contract}, ChainContextTransactor: ChainContextTransactor{contract: contract}, ChainContextFilterer: ChainContextFilterer{contract: contract}}, nil } // NewChainContextCaller creates a new read-only instance of ChainContext, bound to a specific deployed contract. func NewChainContextCaller(address common.Address, caller bind.ContractCaller) (*ChainContextCaller, error) { contract, err := bindChainContext(address, caller, nil, nil) if err != nil { return nil, err } return &ChainContextCaller{contract: contract}, nil } // NewChainContextTransactor creates a new write-only instance of ChainContext, bound to a specific deployed contract. func NewChainContextTransactor(address common.Address, transactor bind.ContractTransactor) (*ChainContextTransactor, error) { contract, err := bindChainContext(address, nil, transactor, nil) if err != nil { return nil, err } return &ChainContextTransactor{contract: contract}, nil } // NewChainContextFilterer creates a new log filterer instance of ChainContext, bound to a specific deployed contract. func NewChainContextFilterer(address common.Address, filterer bind.ContractFilterer) (*ChainContextFilterer, error) { contract, err := bindChainContext(address, nil, nil, filterer) if err != nil { return nil, err } return &ChainContextFilterer{contract: contract}, nil } // bindChainContext binds a generic wrapper to an already deployed contract. func bindChainContext(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := ChainContextMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_ChainContext *ChainContextRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _ChainContext.Contract.ChainContextCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_ChainContext *ChainContextRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _ChainContext.Contract.ChainContextTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_ChainContext *ChainContextRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _ChainContext.Contract.ChainContextTransactor.contract.Transact(opts, method, params...) } // 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 (_ChainContext *ChainContextCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _ChainContext.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_ChainContext *ChainContextTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _ChainContext.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_ChainContext *ChainContextTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _ChainContext.Contract.contract.Transact(opts, method, params...) } // ContextUpgradeableMetaData contains all meta data concerning the ContextUpgradeable contract. var ContextUpgradeableMetaData = &bind.MetaData{ ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"}]", } // ContextUpgradeableABI is the input ABI used to generate the binding from. // Deprecated: Use ContextUpgradeableMetaData.ABI instead. var ContextUpgradeableABI = ContextUpgradeableMetaData.ABI // ContextUpgradeable is an auto generated Go binding around an Ethereum contract. type ContextUpgradeable struct { ContextUpgradeableCaller // Read-only binding to the contract ContextUpgradeableTransactor // Write-only binding to the contract ContextUpgradeableFilterer // Log filterer for contract events } // ContextUpgradeableCaller is an auto generated read-only Go binding around an Ethereum contract. type ContextUpgradeableCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ContextUpgradeableTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContextUpgradeableTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ContextUpgradeableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContextUpgradeableFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ContextUpgradeableSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContextUpgradeableSession struct { Contract *ContextUpgradeable // 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 } // ContextUpgradeableCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type ContextUpgradeableCallerSession struct { Contract *ContextUpgradeableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // ContextUpgradeableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type ContextUpgradeableTransactorSession struct { Contract *ContextUpgradeableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // ContextUpgradeableRaw is an auto generated low-level Go binding around an Ethereum contract. type ContextUpgradeableRaw struct { Contract *ContextUpgradeable // Generic contract binding to access the raw methods on } // ContextUpgradeableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type ContextUpgradeableCallerRaw struct { Contract *ContextUpgradeableCaller // Generic read-only contract binding to access the raw methods on } // ContextUpgradeableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type ContextUpgradeableTransactorRaw struct { Contract *ContextUpgradeableTransactor // Generic write-only contract binding to access the raw methods on } // NewContextUpgradeable creates a new instance of ContextUpgradeable, bound to a specific deployed contract. func NewContextUpgradeable(address common.Address, backend bind.ContractBackend) (*ContextUpgradeable, error) { contract, err := bindContextUpgradeable(address, backend, backend, backend) if err != nil { return nil, err } return &ContextUpgradeable{ContextUpgradeableCaller: ContextUpgradeableCaller{contract: contract}, ContextUpgradeableTransactor: ContextUpgradeableTransactor{contract: contract}, ContextUpgradeableFilterer: ContextUpgradeableFilterer{contract: contract}}, nil } // NewContextUpgradeableCaller creates a new read-only instance of ContextUpgradeable, bound to a specific deployed contract. func NewContextUpgradeableCaller(address common.Address, caller bind.ContractCaller) (*ContextUpgradeableCaller, error) { contract, err := bindContextUpgradeable(address, caller, nil, nil) if err != nil { return nil, err } return &ContextUpgradeableCaller{contract: contract}, nil } // NewContextUpgradeableTransactor creates a new write-only instance of ContextUpgradeable, bound to a specific deployed contract. func NewContextUpgradeableTransactor(address common.Address, transactor bind.ContractTransactor) (*ContextUpgradeableTransactor, error) { contract, err := bindContextUpgradeable(address, nil, transactor, nil) if err != nil { return nil, err } return &ContextUpgradeableTransactor{contract: contract}, nil } // NewContextUpgradeableFilterer creates a new log filterer instance of ContextUpgradeable, bound to a specific deployed contract. func NewContextUpgradeableFilterer(address common.Address, filterer bind.ContractFilterer) (*ContextUpgradeableFilterer, error) { contract, err := bindContextUpgradeable(address, nil, nil, filterer) if err != nil { return nil, err } return &ContextUpgradeableFilterer{contract: contract}, nil } // bindContextUpgradeable binds a generic wrapper to an already deployed contract. func bindContextUpgradeable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := ContextUpgradeableMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_ContextUpgradeable *ContextUpgradeableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _ContextUpgradeable.Contract.ContextUpgradeableCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_ContextUpgradeable *ContextUpgradeableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _ContextUpgradeable.Contract.ContextUpgradeableTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_ContextUpgradeable *ContextUpgradeableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _ContextUpgradeable.Contract.ContextUpgradeableTransactor.contract.Transact(opts, method, params...) } // 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 (_ContextUpgradeable *ContextUpgradeableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _ContextUpgradeable.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_ContextUpgradeable *ContextUpgradeableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _ContextUpgradeable.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_ContextUpgradeable *ContextUpgradeableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _ContextUpgradeable.Contract.contract.Transact(opts, method, params...) } // ContextUpgradeableInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the ContextUpgradeable contract. type ContextUpgradeableInitializedIterator struct { Event *ContextUpgradeableInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *ContextUpgradeableInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContextUpgradeableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContextUpgradeableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContextUpgradeableInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContextUpgradeableInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } // ContextUpgradeableInitialized represents a Initialized event raised by the ContextUpgradeable contract. type ContextUpgradeableInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_ContextUpgradeable *ContextUpgradeableFilterer) FilterInitialized(opts *bind.FilterOpts) (*ContextUpgradeableInitializedIterator, error) { logs, sub, err := _ContextUpgradeable.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } return &ContextUpgradeableInitializedIterator{contract: _ContextUpgradeable.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_ContextUpgradeable *ContextUpgradeableFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContextUpgradeableInitialized) (event.Subscription, error) { logs, sub, err := _ContextUpgradeable.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContextUpgradeableInitialized) if err := _ContextUpgradeable.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_ContextUpgradeable *ContextUpgradeableFilterer) ParseInitialized(log types.Log) (*ContextUpgradeableInitialized, error) { event := new(ContextUpgradeableInitialized) if err := _ContextUpgradeable.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } // GasDataLibMetaData contains all meta data concerning the GasDataLib contract. var GasDataLibMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122045410ab0c89ccb6d3c3e679f425f53c10f1b0af1193c6ec033df55d40073c1d664736f6c63430008110033", } // GasDataLibABI is the input ABI used to generate the binding from. // Deprecated: Use GasDataLibMetaData.ABI instead. var GasDataLibABI = GasDataLibMetaData.ABI // GasDataLibBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use GasDataLibMetaData.Bin instead. var GasDataLibBin = GasDataLibMetaData.Bin // DeployGasDataLib deploys a new Ethereum contract, binding an instance of GasDataLib to it. func DeployGasDataLib(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *GasDataLib, error) { parsed, err := GasDataLibMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(GasDataLibBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &GasDataLib{GasDataLibCaller: GasDataLibCaller{contract: contract}, GasDataLibTransactor: GasDataLibTransactor{contract: contract}, GasDataLibFilterer: GasDataLibFilterer{contract: contract}}, nil } // GasDataLib is an auto generated Go binding around an Ethereum contract. type GasDataLib struct { GasDataLibCaller // Read-only binding to the contract GasDataLibTransactor // Write-only binding to the contract GasDataLibFilterer // Log filterer for contract events } // GasDataLibCaller is an auto generated read-only Go binding around an Ethereum contract. type GasDataLibCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // GasDataLibTransactor is an auto generated write-only Go binding around an Ethereum contract. type GasDataLibTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // GasDataLibFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type GasDataLibFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // GasDataLibSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type GasDataLibSession struct { Contract *GasDataLib // 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 } // GasDataLibCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type GasDataLibCallerSession struct { Contract *GasDataLibCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // GasDataLibTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type GasDataLibTransactorSession struct { Contract *GasDataLibTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // GasDataLibRaw is an auto generated low-level Go binding around an Ethereum contract. type GasDataLibRaw struct { Contract *GasDataLib // Generic contract binding to access the raw methods on } // GasDataLibCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type GasDataLibCallerRaw struct { Contract *GasDataLibCaller // Generic read-only contract binding to access the raw methods on } // GasDataLibTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type GasDataLibTransactorRaw struct { Contract *GasDataLibTransactor // Generic write-only contract binding to access the raw methods on } // NewGasDataLib creates a new instance of GasDataLib, bound to a specific deployed contract. func NewGasDataLib(address common.Address, backend bind.ContractBackend) (*GasDataLib, error) { contract, err := bindGasDataLib(address, backend, backend, backend) if err != nil { return nil, err } return &GasDataLib{GasDataLibCaller: GasDataLibCaller{contract: contract}, GasDataLibTransactor: GasDataLibTransactor{contract: contract}, GasDataLibFilterer: GasDataLibFilterer{contract: contract}}, nil } // NewGasDataLibCaller creates a new read-only instance of GasDataLib, bound to a specific deployed contract. func NewGasDataLibCaller(address common.Address, caller bind.ContractCaller) (*GasDataLibCaller, error) { contract, err := bindGasDataLib(address, caller, nil, nil) if err != nil { return nil, err } return &GasDataLibCaller{contract: contract}, nil } // NewGasDataLibTransactor creates a new write-only instance of GasDataLib, bound to a specific deployed contract. func NewGasDataLibTransactor(address common.Address, transactor bind.ContractTransactor) (*GasDataLibTransactor, error) { contract, err := bindGasDataLib(address, nil, transactor, nil) if err != nil { return nil, err } return &GasDataLibTransactor{contract: contract}, nil } // NewGasDataLibFilterer creates a new log filterer instance of GasDataLib, bound to a specific deployed contract. func NewGasDataLibFilterer(address common.Address, filterer bind.ContractFilterer) (*GasDataLibFilterer, error) { contract, err := bindGasDataLib(address, nil, nil, filterer) if err != nil { return nil, err } return &GasDataLibFilterer{contract: contract}, nil } // bindGasDataLib binds a generic wrapper to an already deployed contract. func bindGasDataLib(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := GasDataLibMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_GasDataLib *GasDataLibRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _GasDataLib.Contract.GasDataLibCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_GasDataLib *GasDataLibRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _GasDataLib.Contract.GasDataLibTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_GasDataLib *GasDataLibRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _GasDataLib.Contract.GasDataLibTransactor.contract.Transact(opts, method, params...) } // 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 (_GasDataLib *GasDataLibCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _GasDataLib.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_GasDataLib *GasDataLibTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _GasDataLib.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_GasDataLib *GasDataLibTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _GasDataLib.Contract.contract.Transact(opts, method, params...) } // IAgentManagerMetaData contains all meta data concerning the IAgentManager contract. var IAgentManagerMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[],\"name\":\"agentRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"agentStatus\",\"outputs\":[{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"disputeStatus\",\"outputs\":[{\"internalType\":\"enumDisputeFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"rival\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"disputePtr\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getAgent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getDispute\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"notary\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"slashedAgent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"fraudProver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"reportPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"reportSignature\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDisputesAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"guardIndex\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"openDispute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"prover\",\"type\":\"address\"}],\"name\":\"slashAgent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "36cba43c": "agentRoot()", "28f3fac9": "agentStatus(address)", "3463d1b1": "disputeStatus(address)", "2de5aaf7": "getAgent(uint256)", "e3a96cbd": "getDispute(uint256)", "3aaeccc6": "getDisputesAmount()", "a2155c34": "openDispute(uint32,uint32)", "2853a0e6": "slashAgent(uint32,address,address)", }, } // IAgentManagerABI is the input ABI used to generate the binding from. // Deprecated: Use IAgentManagerMetaData.ABI instead. var IAgentManagerABI = IAgentManagerMetaData.ABI // Deprecated: Use IAgentManagerMetaData.Sigs instead. // IAgentManagerFuncSigs maps the 4-byte function signature to its string representation. var IAgentManagerFuncSigs = IAgentManagerMetaData.Sigs // IAgentManager is an auto generated Go binding around an Ethereum contract. type IAgentManager struct { IAgentManagerCaller // Read-only binding to the contract IAgentManagerTransactor // Write-only binding to the contract IAgentManagerFilterer // Log filterer for contract events } // IAgentManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type IAgentManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IAgentManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type IAgentManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IAgentManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type IAgentManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IAgentManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type IAgentManagerSession struct { Contract *IAgentManager // 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 } // IAgentManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type IAgentManagerCallerSession struct { Contract *IAgentManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // IAgentManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type IAgentManagerTransactorSession struct { Contract *IAgentManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // IAgentManagerRaw is an auto generated low-level Go binding around an Ethereum contract. type IAgentManagerRaw struct { Contract *IAgentManager // Generic contract binding to access the raw methods on } // IAgentManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type IAgentManagerCallerRaw struct { Contract *IAgentManagerCaller // Generic read-only contract binding to access the raw methods on } // IAgentManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type IAgentManagerTransactorRaw struct { Contract *IAgentManagerTransactor // Generic write-only contract binding to access the raw methods on } // NewIAgentManager creates a new instance of IAgentManager, bound to a specific deployed contract. func NewIAgentManager(address common.Address, backend bind.ContractBackend) (*IAgentManager, error) { contract, err := bindIAgentManager(address, backend, backend, backend) if err != nil { return nil, err } return &IAgentManager{IAgentManagerCaller: IAgentManagerCaller{contract: contract}, IAgentManagerTransactor: IAgentManagerTransactor{contract: contract}, IAgentManagerFilterer: IAgentManagerFilterer{contract: contract}}, nil } // NewIAgentManagerCaller creates a new read-only instance of IAgentManager, bound to a specific deployed contract. func NewIAgentManagerCaller(address common.Address, caller bind.ContractCaller) (*IAgentManagerCaller, error) { contract, err := bindIAgentManager(address, caller, nil, nil) if err != nil { return nil, err } return &IAgentManagerCaller{contract: contract}, nil } // NewIAgentManagerTransactor creates a new write-only instance of IAgentManager, bound to a specific deployed contract. func NewIAgentManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*IAgentManagerTransactor, error) { contract, err := bindIAgentManager(address, nil, transactor, nil) if err != nil { return nil, err } return &IAgentManagerTransactor{contract: contract}, nil } // NewIAgentManagerFilterer creates a new log filterer instance of IAgentManager, bound to a specific deployed contract. func NewIAgentManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*IAgentManagerFilterer, error) { contract, err := bindIAgentManager(address, nil, nil, filterer) if err != nil { return nil, err } return &IAgentManagerFilterer{contract: contract}, nil } // bindIAgentManager binds a generic wrapper to an already deployed contract. func bindIAgentManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := IAgentManagerMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_IAgentManager *IAgentManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _IAgentManager.Contract.IAgentManagerCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_IAgentManager *IAgentManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IAgentManager.Contract.IAgentManagerTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_IAgentManager *IAgentManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IAgentManager.Contract.IAgentManagerTransactor.contract.Transact(opts, method, params...) } // 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 (_IAgentManager *IAgentManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _IAgentManager.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_IAgentManager *IAgentManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IAgentManager.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_IAgentManager *IAgentManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IAgentManager.Contract.contract.Transact(opts, method, params...) } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_IAgentManager *IAgentManagerCaller) AgentRoot(opts *bind.CallOpts) ([32]byte, error) { var out []interface{} err := _IAgentManager.contract.Call(opts, &out, "agentRoot") if err != nil { return *new([32]byte), err } out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) return out0, err } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_IAgentManager *IAgentManagerSession) AgentRoot() ([32]byte, error) { return _IAgentManager.Contract.AgentRoot(&_IAgentManager.CallOpts) } // AgentRoot is a free data retrieval call binding the contract method 0x36cba43c. // // Solidity: function agentRoot() view returns(bytes32) func (_IAgentManager *IAgentManagerCallerSession) AgentRoot() ([32]byte, error) { return _IAgentManager.Contract.AgentRoot(&_IAgentManager.CallOpts) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32)) func (_IAgentManager *IAgentManagerCaller) AgentStatus(opts *bind.CallOpts, agent common.Address) (AgentStatus, error) { var out []interface{} err := _IAgentManager.contract.Call(opts, &out, "agentStatus", agent) if err != nil { return *new(AgentStatus), err } out0 := *abi.ConvertType(out[0], new(AgentStatus)).(*AgentStatus) return out0, err } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32)) func (_IAgentManager *IAgentManagerSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _IAgentManager.Contract.AgentStatus(&_IAgentManager.CallOpts, agent) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32)) func (_IAgentManager *IAgentManagerCallerSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _IAgentManager.Contract.AgentStatus(&_IAgentManager.CallOpts, agent) } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_IAgentManager *IAgentManagerCaller) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { var out []interface{} err := _IAgentManager.contract.Call(opts, &out, "disputeStatus", agent) outstruct := new(struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }) if err != nil { return *outstruct, err } outstruct.Flag = *abi.ConvertType(out[0], new(uint8)).(*uint8) outstruct.Rival = *abi.ConvertType(out[1], new(common.Address)).(*common.Address) outstruct.FraudProver = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) outstruct.DisputePtr = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) return *outstruct, err } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_IAgentManager *IAgentManagerSession) DisputeStatus(agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { return _IAgentManager.Contract.DisputeStatus(&_IAgentManager.CallOpts, agent) } // DisputeStatus is a free data retrieval call binding the contract method 0x3463d1b1. // // Solidity: function disputeStatus(address agent) view returns(uint8 flag, address rival, address fraudProver, uint256 disputePtr) func (_IAgentManager *IAgentManagerCallerSession) DisputeStatus(agent common.Address) (struct { Flag uint8 Rival common.Address FraudProver common.Address DisputePtr *big.Int }, error) { return _IAgentManager.Contract.DisputeStatus(&_IAgentManager.CallOpts, agent) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_IAgentManager *IAgentManagerCaller) GetAgent(opts *bind.CallOpts, index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { var out []interface{} err := _IAgentManager.contract.Call(opts, &out, "getAgent", index) outstruct := new(struct { Agent common.Address Status AgentStatus }) if err != nil { return *outstruct, err } outstruct.Agent = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) outstruct.Status = *abi.ConvertType(out[1], new(AgentStatus)).(*AgentStatus) return *outstruct, err } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_IAgentManager *IAgentManagerSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _IAgentManager.Contract.GetAgent(&_IAgentManager.CallOpts, index) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_IAgentManager *IAgentManagerCallerSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _IAgentManager.Contract.GetAgent(&_IAgentManager.CallOpts, index) } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_IAgentManager *IAgentManagerCaller) GetDispute(opts *bind.CallOpts, index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { var out []interface{} err := _IAgentManager.contract.Call(opts, &out, "getDispute", index) outstruct := new(struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }) if err != nil { return *outstruct, err } outstruct.Guard = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) outstruct.Notary = *abi.ConvertType(out[1], new(common.Address)).(*common.Address) outstruct.SlashedAgent = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) outstruct.FraudProver = *abi.ConvertType(out[3], new(common.Address)).(*common.Address) outstruct.ReportPayload = *abi.ConvertType(out[4], new([]byte)).(*[]byte) outstruct.ReportSignature = *abi.ConvertType(out[5], new([]byte)).(*[]byte) return *outstruct, err } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_IAgentManager *IAgentManagerSession) GetDispute(index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { return _IAgentManager.Contract.GetDispute(&_IAgentManager.CallOpts, index) } // GetDispute is a free data retrieval call binding the contract method 0xe3a96cbd. // // Solidity: function getDispute(uint256 index) view returns(address guard, address notary, address slashedAgent, address fraudProver, bytes reportPayload, bytes reportSignature) func (_IAgentManager *IAgentManagerCallerSession) GetDispute(index *big.Int) (struct { Guard common.Address Notary common.Address SlashedAgent common.Address FraudProver common.Address ReportPayload []byte ReportSignature []byte }, error) { return _IAgentManager.Contract.GetDispute(&_IAgentManager.CallOpts, index) } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_IAgentManager *IAgentManagerCaller) GetDisputesAmount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _IAgentManager.contract.Call(opts, &out, "getDisputesAmount") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_IAgentManager *IAgentManagerSession) GetDisputesAmount() (*big.Int, error) { return _IAgentManager.Contract.GetDisputesAmount(&_IAgentManager.CallOpts) } // GetDisputesAmount is a free data retrieval call binding the contract method 0x3aaeccc6. // // Solidity: function getDisputesAmount() view returns(uint256) func (_IAgentManager *IAgentManagerCallerSession) GetDisputesAmount() (*big.Int, error) { return _IAgentManager.Contract.GetDisputesAmount(&_IAgentManager.CallOpts) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_IAgentManager *IAgentManagerTransactor) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _IAgentManager.contract.Transact(opts, "openDispute", guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_IAgentManager *IAgentManagerSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _IAgentManager.Contract.OpenDispute(&_IAgentManager.TransactOpts, guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_IAgentManager *IAgentManagerTransactorSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _IAgentManager.Contract.OpenDispute(&_IAgentManager.TransactOpts, guardIndex, notaryIndex) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_IAgentManager *IAgentManagerTransactor) SlashAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _IAgentManager.contract.Transact(opts, "slashAgent", domain, agent, prover) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_IAgentManager *IAgentManagerSession) SlashAgent(domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _IAgentManager.Contract.SlashAgent(&_IAgentManager.TransactOpts, domain, agent, prover) } // SlashAgent is a paid mutator transaction binding the contract method 0x2853a0e6. // // Solidity: function slashAgent(uint32 domain, address agent, address prover) returns() func (_IAgentManager *IAgentManagerTransactorSession) SlashAgent(domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _IAgentManager.Contract.SlashAgent(&_IAgentManager.TransactOpts, domain, agent, prover) } // IAgentSecuredMetaData contains all meta data concerning the IAgentSecured contract. var IAgentSecuredMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[],\"name\":\"agentManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"agentStatus\",\"outputs\":[{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getAgent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"status\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inbox\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"agentIndex\",\"type\":\"uint32\"}],\"name\":\"latestDisputeStatus\",\"outputs\":[{\"components\":[{\"internalType\":\"enumDisputeFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint40\",\"name\":\"openedAt\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"resolvedAt\",\"type\":\"uint40\"}],\"internalType\":\"structDisputeStatus\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"guardIndex\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"openDispute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"slashedIndex\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"rivalIndex\",\"type\":\"uint32\"}],\"name\":\"resolveDispute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "7622f78d": "agentManager()", "28f3fac9": "agentStatus(address)", "2de5aaf7": "getAgent(uint256)", "fb0e722b": "inbox()", "dfadd81a": "latestDisputeStatus(uint32)", "a2155c34": "openDispute(uint32,uint32)", "61169218": "resolveDispute(uint32,uint32)", }, } // IAgentSecuredABI is the input ABI used to generate the binding from. // Deprecated: Use IAgentSecuredMetaData.ABI instead. var IAgentSecuredABI = IAgentSecuredMetaData.ABI // Deprecated: Use IAgentSecuredMetaData.Sigs instead. // IAgentSecuredFuncSigs maps the 4-byte function signature to its string representation. var IAgentSecuredFuncSigs = IAgentSecuredMetaData.Sigs // IAgentSecured is an auto generated Go binding around an Ethereum contract. type IAgentSecured struct { IAgentSecuredCaller // Read-only binding to the contract IAgentSecuredTransactor // Write-only binding to the contract IAgentSecuredFilterer // Log filterer for contract events } // IAgentSecuredCaller is an auto generated read-only Go binding around an Ethereum contract. type IAgentSecuredCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IAgentSecuredTransactor is an auto generated write-only Go binding around an Ethereum contract. type IAgentSecuredTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IAgentSecuredFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type IAgentSecuredFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IAgentSecuredSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type IAgentSecuredSession struct { Contract *IAgentSecured // 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 } // IAgentSecuredCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type IAgentSecuredCallerSession struct { Contract *IAgentSecuredCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // IAgentSecuredTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type IAgentSecuredTransactorSession struct { Contract *IAgentSecuredTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // IAgentSecuredRaw is an auto generated low-level Go binding around an Ethereum contract. type IAgentSecuredRaw struct { Contract *IAgentSecured // Generic contract binding to access the raw methods on } // IAgentSecuredCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type IAgentSecuredCallerRaw struct { Contract *IAgentSecuredCaller // Generic read-only contract binding to access the raw methods on } // IAgentSecuredTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type IAgentSecuredTransactorRaw struct { Contract *IAgentSecuredTransactor // Generic write-only contract binding to access the raw methods on } // NewIAgentSecured creates a new instance of IAgentSecured, bound to a specific deployed contract. func NewIAgentSecured(address common.Address, backend bind.ContractBackend) (*IAgentSecured, error) { contract, err := bindIAgentSecured(address, backend, backend, backend) if err != nil { return nil, err } return &IAgentSecured{IAgentSecuredCaller: IAgentSecuredCaller{contract: contract}, IAgentSecuredTransactor: IAgentSecuredTransactor{contract: contract}, IAgentSecuredFilterer: IAgentSecuredFilterer{contract: contract}}, nil } // NewIAgentSecuredCaller creates a new read-only instance of IAgentSecured, bound to a specific deployed contract. func NewIAgentSecuredCaller(address common.Address, caller bind.ContractCaller) (*IAgentSecuredCaller, error) { contract, err := bindIAgentSecured(address, caller, nil, nil) if err != nil { return nil, err } return &IAgentSecuredCaller{contract: contract}, nil } // NewIAgentSecuredTransactor creates a new write-only instance of IAgentSecured, bound to a specific deployed contract. func NewIAgentSecuredTransactor(address common.Address, transactor bind.ContractTransactor) (*IAgentSecuredTransactor, error) { contract, err := bindIAgentSecured(address, nil, transactor, nil) if err != nil { return nil, err } return &IAgentSecuredTransactor{contract: contract}, nil } // NewIAgentSecuredFilterer creates a new log filterer instance of IAgentSecured, bound to a specific deployed contract. func NewIAgentSecuredFilterer(address common.Address, filterer bind.ContractFilterer) (*IAgentSecuredFilterer, error) { contract, err := bindIAgentSecured(address, nil, nil, filterer) if err != nil { return nil, err } return &IAgentSecuredFilterer{contract: contract}, nil } // bindIAgentSecured binds a generic wrapper to an already deployed contract. func bindIAgentSecured(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := IAgentSecuredMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_IAgentSecured *IAgentSecuredRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _IAgentSecured.Contract.IAgentSecuredCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_IAgentSecured *IAgentSecuredRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IAgentSecured.Contract.IAgentSecuredTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_IAgentSecured *IAgentSecuredRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IAgentSecured.Contract.IAgentSecuredTransactor.contract.Transact(opts, method, params...) } // 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 (_IAgentSecured *IAgentSecuredCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _IAgentSecured.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_IAgentSecured *IAgentSecuredTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IAgentSecured.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_IAgentSecured *IAgentSecuredTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IAgentSecured.Contract.contract.Transact(opts, method, params...) } // AgentManager is a free data retrieval call binding the contract method 0x7622f78d. // // Solidity: function agentManager() view returns(address) func (_IAgentSecured *IAgentSecuredCaller) AgentManager(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _IAgentSecured.contract.Call(opts, &out, "agentManager") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // AgentManager is a free data retrieval call binding the contract method 0x7622f78d. // // Solidity: function agentManager() view returns(address) func (_IAgentSecured *IAgentSecuredSession) AgentManager() (common.Address, error) { return _IAgentSecured.Contract.AgentManager(&_IAgentSecured.CallOpts) } // AgentManager is a free data retrieval call binding the contract method 0x7622f78d. // // Solidity: function agentManager() view returns(address) func (_IAgentSecured *IAgentSecuredCallerSession) AgentManager() (common.Address, error) { return _IAgentSecured.Contract.AgentManager(&_IAgentSecured.CallOpts) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32)) func (_IAgentSecured *IAgentSecuredCaller) AgentStatus(opts *bind.CallOpts, agent common.Address) (AgentStatus, error) { var out []interface{} err := _IAgentSecured.contract.Call(opts, &out, "agentStatus", agent) if err != nil { return *new(AgentStatus), err } out0 := *abi.ConvertType(out[0], new(AgentStatus)).(*AgentStatus) return out0, err } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32)) func (_IAgentSecured *IAgentSecuredSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _IAgentSecured.Contract.AgentStatus(&_IAgentSecured.CallOpts, agent) } // AgentStatus is a free data retrieval call binding the contract method 0x28f3fac9. // // Solidity: function agentStatus(address agent) view returns((uint8,uint32,uint32)) func (_IAgentSecured *IAgentSecuredCallerSession) AgentStatus(agent common.Address) (AgentStatus, error) { return _IAgentSecured.Contract.AgentStatus(&_IAgentSecured.CallOpts, agent) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_IAgentSecured *IAgentSecuredCaller) GetAgent(opts *bind.CallOpts, index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { var out []interface{} err := _IAgentSecured.contract.Call(opts, &out, "getAgent", index) outstruct := new(struct { Agent common.Address Status AgentStatus }) if err != nil { return *outstruct, err } outstruct.Agent = *abi.ConvertType(out[0], new(common.Address)).(*common.Address) outstruct.Status = *abi.ConvertType(out[1], new(AgentStatus)).(*AgentStatus) return *outstruct, err } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_IAgentSecured *IAgentSecuredSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _IAgentSecured.Contract.GetAgent(&_IAgentSecured.CallOpts, index) } // GetAgent is a free data retrieval call binding the contract method 0x2de5aaf7. // // Solidity: function getAgent(uint256 index) view returns(address agent, (uint8,uint32,uint32) status) func (_IAgentSecured *IAgentSecuredCallerSession) GetAgent(index *big.Int) (struct { Agent common.Address Status AgentStatus }, error) { return _IAgentSecured.Contract.GetAgent(&_IAgentSecured.CallOpts, index) } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_IAgentSecured *IAgentSecuredCaller) Inbox(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _IAgentSecured.contract.Call(opts, &out, "inbox") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_IAgentSecured *IAgentSecuredSession) Inbox() (common.Address, error) { return _IAgentSecured.Contract.Inbox(&_IAgentSecured.CallOpts) } // Inbox is a free data retrieval call binding the contract method 0xfb0e722b. // // Solidity: function inbox() view returns(address) func (_IAgentSecured *IAgentSecuredCallerSession) Inbox() (common.Address, error) { return _IAgentSecured.Contract.Inbox(&_IAgentSecured.CallOpts) } // LatestDisputeStatus is a free data retrieval call binding the contract method 0xdfadd81a. // // Solidity: function latestDisputeStatus(uint32 agentIndex) view returns((uint8,uint40,uint40)) func (_IAgentSecured *IAgentSecuredCaller) LatestDisputeStatus(opts *bind.CallOpts, agentIndex uint32) (DisputeStatus, error) { var out []interface{} err := _IAgentSecured.contract.Call(opts, &out, "latestDisputeStatus", agentIndex) if err != nil { return *new(DisputeStatus), err } out0 := *abi.ConvertType(out[0], new(DisputeStatus)).(*DisputeStatus) return out0, err } // LatestDisputeStatus is a free data retrieval call binding the contract method 0xdfadd81a. // // Solidity: function latestDisputeStatus(uint32 agentIndex) view returns((uint8,uint40,uint40)) func (_IAgentSecured *IAgentSecuredSession) LatestDisputeStatus(agentIndex uint32) (DisputeStatus, error) { return _IAgentSecured.Contract.LatestDisputeStatus(&_IAgentSecured.CallOpts, agentIndex) } // LatestDisputeStatus is a free data retrieval call binding the contract method 0xdfadd81a. // // Solidity: function latestDisputeStatus(uint32 agentIndex) view returns((uint8,uint40,uint40)) func (_IAgentSecured *IAgentSecuredCallerSession) LatestDisputeStatus(agentIndex uint32) (DisputeStatus, error) { return _IAgentSecured.Contract.LatestDisputeStatus(&_IAgentSecured.CallOpts, agentIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_IAgentSecured *IAgentSecuredTransactor) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _IAgentSecured.contract.Transact(opts, "openDispute", guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_IAgentSecured *IAgentSecuredSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _IAgentSecured.Contract.OpenDispute(&_IAgentSecured.TransactOpts, guardIndex, notaryIndex) } // OpenDispute is a paid mutator transaction binding the contract method 0xa2155c34. // // Solidity: function openDispute(uint32 guardIndex, uint32 notaryIndex) returns() func (_IAgentSecured *IAgentSecuredTransactorSession) OpenDispute(guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) { return _IAgentSecured.Contract.OpenDispute(&_IAgentSecured.TransactOpts, guardIndex, notaryIndex) } // ResolveDispute is a paid mutator transaction binding the contract method 0x61169218. // // Solidity: function resolveDispute(uint32 slashedIndex, uint32 rivalIndex) returns() func (_IAgentSecured *IAgentSecuredTransactor) ResolveDispute(opts *bind.TransactOpts, slashedIndex uint32, rivalIndex uint32) (*types.Transaction, error) { return _IAgentSecured.contract.Transact(opts, "resolveDispute", slashedIndex, rivalIndex) } // ResolveDispute is a paid mutator transaction binding the contract method 0x61169218. // // Solidity: function resolveDispute(uint32 slashedIndex, uint32 rivalIndex) returns() func (_IAgentSecured *IAgentSecuredSession) ResolveDispute(slashedIndex uint32, rivalIndex uint32) (*types.Transaction, error) { return _IAgentSecured.Contract.ResolveDispute(&_IAgentSecured.TransactOpts, slashedIndex, rivalIndex) } // ResolveDispute is a paid mutator transaction binding the contract method 0x61169218. // // Solidity: function resolveDispute(uint32 slashedIndex, uint32 rivalIndex) returns() func (_IAgentSecured *IAgentSecuredTransactorSession) ResolveDispute(slashedIndex uint32, rivalIndex uint32) (*types.Transaction, error) { return _IAgentSecured.Contract.ResolveDispute(&_IAgentSecured.TransactOpts, slashedIndex, rivalIndex) } // IStatementInboxMetaData contains all meta data concerning the IStatementInbox contract. var IStatementInboxMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getGuardReport\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"statementPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"reportSignature\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReportsAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getStoredSignature\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"stateIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"srSignature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"snapPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"attPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"attSignature\",\"type\":\"bytes\"}],\"name\":\"submitStateReportWithAttestation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"wasAccepted\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"stateIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"srSignature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"snapPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"snapSignature\",\"type\":\"bytes\"}],\"name\":\"submitStateReportWithSnapshot\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"wasAccepted\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"stateIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"statePayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"srSignature\",\"type\":\"bytes\"},{\"internalType\":\"bytes32[]\",\"name\":\"snapProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"attPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"attSignature\",\"type\":\"bytes\"}],\"name\":\"submitStateReportWithSnapshotProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"wasAccepted\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"rcptPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"rcptSignature\",\"type\":\"bytes\"}],\"name\":\"verifyReceipt\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isValidReceipt\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"rcptPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"rrSignature\",\"type\":\"bytes\"}],\"name\":\"verifyReceiptReport\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isValidReport\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"statePayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"srSignature\",\"type\":\"bytes\"}],\"name\":\"verifyStateReport\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isValidReport\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"stateIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"snapPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"attPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"attSignature\",\"type\":\"bytes\"}],\"name\":\"verifyStateWithAttestation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isValidState\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"stateIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"snapPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"snapSignature\",\"type\":\"bytes\"}],\"name\":\"verifyStateWithSnapshot\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isValidState\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"stateIndex\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"statePayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes32[]\",\"name\":\"snapProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes\",\"name\":\"attPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"attSignature\",\"type\":\"bytes\"}],\"name\":\"verifyStateWithSnapshotProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isValidState\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "c495912b": "getGuardReport(uint256)", "756ed01d": "getReportsAmount()", "ddeffa66": "getStoredSignature(uint256)", "243b9224": "submitStateReportWithAttestation(uint8,bytes,bytes,bytes,bytes)", "333138e2": "submitStateReportWithSnapshot(uint8,bytes,bytes,bytes)", "be7e63da": "submitStateReportWithSnapshotProof(uint8,bytes,bytes,bytes32[],bytes,bytes)", "c25aa585": "verifyReceipt(bytes,bytes)", "91af2e5d": "verifyReceiptReport(bytes,bytes)", "dfe39675": "verifyStateReport(bytes,bytes)", "7d9978ae": "verifyStateWithAttestation(uint8,bytes,bytes,bytes)", "8671012e": "verifyStateWithSnapshot(uint8,bytes,bytes)", "e3097af8": "verifyStateWithSnapshotProof(uint8,bytes,bytes32[],bytes,bytes)", }, } // IStatementInboxABI is the input ABI used to generate the binding from. // Deprecated: Use IStatementInboxMetaData.ABI instead. var IStatementInboxABI = IStatementInboxMetaData.ABI // Deprecated: Use IStatementInboxMetaData.Sigs instead. // IStatementInboxFuncSigs maps the 4-byte function signature to its string representation. var IStatementInboxFuncSigs = IStatementInboxMetaData.Sigs // IStatementInbox is an auto generated Go binding around an Ethereum contract. type IStatementInbox struct { IStatementInboxCaller // Read-only binding to the contract IStatementInboxTransactor // Write-only binding to the contract IStatementInboxFilterer // Log filterer for contract events } // IStatementInboxCaller is an auto generated read-only Go binding around an Ethereum contract. type IStatementInboxCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IStatementInboxTransactor is an auto generated write-only Go binding around an Ethereum contract. type IStatementInboxTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IStatementInboxFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type IStatementInboxFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // IStatementInboxSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type IStatementInboxSession struct { Contract *IStatementInbox // 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 } // IStatementInboxCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type IStatementInboxCallerSession struct { Contract *IStatementInboxCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // IStatementInboxTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type IStatementInboxTransactorSession struct { Contract *IStatementInboxTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // IStatementInboxRaw is an auto generated low-level Go binding around an Ethereum contract. type IStatementInboxRaw struct { Contract *IStatementInbox // Generic contract binding to access the raw methods on } // IStatementInboxCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type IStatementInboxCallerRaw struct { Contract *IStatementInboxCaller // Generic read-only contract binding to access the raw methods on } // IStatementInboxTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type IStatementInboxTransactorRaw struct { Contract *IStatementInboxTransactor // Generic write-only contract binding to access the raw methods on } // NewIStatementInbox creates a new instance of IStatementInbox, bound to a specific deployed contract. func NewIStatementInbox(address common.Address, backend bind.ContractBackend) (*IStatementInbox, error) { contract, err := bindIStatementInbox(address, backend, backend, backend) if err != nil { return nil, err } return &IStatementInbox{IStatementInboxCaller: IStatementInboxCaller{contract: contract}, IStatementInboxTransactor: IStatementInboxTransactor{contract: contract}, IStatementInboxFilterer: IStatementInboxFilterer{contract: contract}}, nil } // NewIStatementInboxCaller creates a new read-only instance of IStatementInbox, bound to a specific deployed contract. func NewIStatementInboxCaller(address common.Address, caller bind.ContractCaller) (*IStatementInboxCaller, error) { contract, err := bindIStatementInbox(address, caller, nil, nil) if err != nil { return nil, err } return &IStatementInboxCaller{contract: contract}, nil } // NewIStatementInboxTransactor creates a new write-only instance of IStatementInbox, bound to a specific deployed contract. func NewIStatementInboxTransactor(address common.Address, transactor bind.ContractTransactor) (*IStatementInboxTransactor, error) { contract, err := bindIStatementInbox(address, nil, transactor, nil) if err != nil { return nil, err } return &IStatementInboxTransactor{contract: contract}, nil } // NewIStatementInboxFilterer creates a new log filterer instance of IStatementInbox, bound to a specific deployed contract. func NewIStatementInboxFilterer(address common.Address, filterer bind.ContractFilterer) (*IStatementInboxFilterer, error) { contract, err := bindIStatementInbox(address, nil, nil, filterer) if err != nil { return nil, err } return &IStatementInboxFilterer{contract: contract}, nil } // bindIStatementInbox binds a generic wrapper to an already deployed contract. func bindIStatementInbox(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := IStatementInboxMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_IStatementInbox *IStatementInboxRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _IStatementInbox.Contract.IStatementInboxCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_IStatementInbox *IStatementInboxRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IStatementInbox.Contract.IStatementInboxTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_IStatementInbox *IStatementInboxRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IStatementInbox.Contract.IStatementInboxTransactor.contract.Transact(opts, method, params...) } // 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 (_IStatementInbox *IStatementInboxCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _IStatementInbox.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_IStatementInbox *IStatementInboxTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _IStatementInbox.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_IStatementInbox *IStatementInboxTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _IStatementInbox.Contract.contract.Transact(opts, method, params...) } // GetGuardReport is a free data retrieval call binding the contract method 0xc495912b. // // Solidity: function getGuardReport(uint256 index) view returns(bytes statementPayload, bytes reportSignature) func (_IStatementInbox *IStatementInboxCaller) GetGuardReport(opts *bind.CallOpts, index *big.Int) (struct { StatementPayload []byte ReportSignature []byte }, error) { var out []interface{} err := _IStatementInbox.contract.Call(opts, &out, "getGuardReport", index) outstruct := new(struct { StatementPayload []byte ReportSignature []byte }) if err != nil { return *outstruct, err } outstruct.StatementPayload = *abi.ConvertType(out[0], new([]byte)).(*[]byte) outstruct.ReportSignature = *abi.ConvertType(out[1], new([]byte)).(*[]byte) return *outstruct, err } // GetGuardReport is a free data retrieval call binding the contract method 0xc495912b. // // Solidity: function getGuardReport(uint256 index) view returns(bytes statementPayload, bytes reportSignature) func (_IStatementInbox *IStatementInboxSession) GetGuardReport(index *big.Int) (struct { StatementPayload []byte ReportSignature []byte }, error) { return _IStatementInbox.Contract.GetGuardReport(&_IStatementInbox.CallOpts, index) } // GetGuardReport is a free data retrieval call binding the contract method 0xc495912b. // // Solidity: function getGuardReport(uint256 index) view returns(bytes statementPayload, bytes reportSignature) func (_IStatementInbox *IStatementInboxCallerSession) GetGuardReport(index *big.Int) (struct { StatementPayload []byte ReportSignature []byte }, error) { return _IStatementInbox.Contract.GetGuardReport(&_IStatementInbox.CallOpts, index) } // GetReportsAmount is a free data retrieval call binding the contract method 0x756ed01d. // // Solidity: function getReportsAmount() view returns(uint256) func (_IStatementInbox *IStatementInboxCaller) GetReportsAmount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _IStatementInbox.contract.Call(opts, &out, "getReportsAmount") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // GetReportsAmount is a free data retrieval call binding the contract method 0x756ed01d. // // Solidity: function getReportsAmount() view returns(uint256) func (_IStatementInbox *IStatementInboxSession) GetReportsAmount() (*big.Int, error) { return _IStatementInbox.Contract.GetReportsAmount(&_IStatementInbox.CallOpts) } // GetReportsAmount is a free data retrieval call binding the contract method 0x756ed01d. // // Solidity: function getReportsAmount() view returns(uint256) func (_IStatementInbox *IStatementInboxCallerSession) GetReportsAmount() (*big.Int, error) { return _IStatementInbox.Contract.GetReportsAmount(&_IStatementInbox.CallOpts) } // GetStoredSignature is a free data retrieval call binding the contract method 0xddeffa66. // // Solidity: function getStoredSignature(uint256 index) view returns(bytes) func (_IStatementInbox *IStatementInboxCaller) GetStoredSignature(opts *bind.CallOpts, index *big.Int) ([]byte, error) { var out []interface{} err := _IStatementInbox.contract.Call(opts, &out, "getStoredSignature", index) if err != nil { return *new([]byte), err } out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte) return out0, err } // GetStoredSignature is a free data retrieval call binding the contract method 0xddeffa66. // // Solidity: function getStoredSignature(uint256 index) view returns(bytes) func (_IStatementInbox *IStatementInboxSession) GetStoredSignature(index *big.Int) ([]byte, error) { return _IStatementInbox.Contract.GetStoredSignature(&_IStatementInbox.CallOpts, index) } // GetStoredSignature is a free data retrieval call binding the contract method 0xddeffa66. // // Solidity: function getStoredSignature(uint256 index) view returns(bytes) func (_IStatementInbox *IStatementInboxCallerSession) GetStoredSignature(index *big.Int) ([]byte, error) { return _IStatementInbox.Contract.GetStoredSignature(&_IStatementInbox.CallOpts, index) } // SubmitStateReportWithAttestation is a paid mutator transaction binding the contract method 0x243b9224. // // Solidity: function submitStateReportWithAttestation(uint8 stateIndex, bytes srSignature, bytes snapPayload, bytes attPayload, bytes attSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxTransactor) SubmitStateReportWithAttestation(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "submitStateReportWithAttestation", stateIndex, srSignature, snapPayload, attPayload, attSignature) } // SubmitStateReportWithAttestation is a paid mutator transaction binding the contract method 0x243b9224. // // Solidity: function submitStateReportWithAttestation(uint8 stateIndex, bytes srSignature, bytes snapPayload, bytes attPayload, bytes attSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxSession) SubmitStateReportWithAttestation(stateIndex uint8, srSignature []byte, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.SubmitStateReportWithAttestation(&_IStatementInbox.TransactOpts, stateIndex, srSignature, snapPayload, attPayload, attSignature) } // SubmitStateReportWithAttestation is a paid mutator transaction binding the contract method 0x243b9224. // // Solidity: function submitStateReportWithAttestation(uint8 stateIndex, bytes srSignature, bytes snapPayload, bytes attPayload, bytes attSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxTransactorSession) SubmitStateReportWithAttestation(stateIndex uint8, srSignature []byte, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.SubmitStateReportWithAttestation(&_IStatementInbox.TransactOpts, stateIndex, srSignature, snapPayload, attPayload, attSignature) } // SubmitStateReportWithSnapshot is a paid mutator transaction binding the contract method 0x333138e2. // // Solidity: function submitStateReportWithSnapshot(uint8 stateIndex, bytes srSignature, bytes snapPayload, bytes snapSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxTransactor) SubmitStateReportWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "submitStateReportWithSnapshot", stateIndex, srSignature, snapPayload, snapSignature) } // SubmitStateReportWithSnapshot is a paid mutator transaction binding the contract method 0x333138e2. // // Solidity: function submitStateReportWithSnapshot(uint8 stateIndex, bytes srSignature, bytes snapPayload, bytes snapSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxSession) SubmitStateReportWithSnapshot(stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.SubmitStateReportWithSnapshot(&_IStatementInbox.TransactOpts, stateIndex, srSignature, snapPayload, snapSignature) } // SubmitStateReportWithSnapshot is a paid mutator transaction binding the contract method 0x333138e2. // // Solidity: function submitStateReportWithSnapshot(uint8 stateIndex, bytes srSignature, bytes snapPayload, bytes snapSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxTransactorSession) SubmitStateReportWithSnapshot(stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.SubmitStateReportWithSnapshot(&_IStatementInbox.TransactOpts, stateIndex, srSignature, snapPayload, snapSignature) } // SubmitStateReportWithSnapshotProof is a paid mutator transaction binding the contract method 0xbe7e63da. // // Solidity: function submitStateReportWithSnapshotProof(uint8 stateIndex, bytes statePayload, bytes srSignature, bytes32[] snapProof, bytes attPayload, bytes attSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxTransactor) SubmitStateReportWithSnapshotProof(opts *bind.TransactOpts, stateIndex uint8, statePayload []byte, srSignature []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "submitStateReportWithSnapshotProof", stateIndex, statePayload, srSignature, snapProof, attPayload, attSignature) } // SubmitStateReportWithSnapshotProof is a paid mutator transaction binding the contract method 0xbe7e63da. // // Solidity: function submitStateReportWithSnapshotProof(uint8 stateIndex, bytes statePayload, bytes srSignature, bytes32[] snapProof, bytes attPayload, bytes attSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxSession) SubmitStateReportWithSnapshotProof(stateIndex uint8, statePayload []byte, srSignature []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.SubmitStateReportWithSnapshotProof(&_IStatementInbox.TransactOpts, stateIndex, statePayload, srSignature, snapProof, attPayload, attSignature) } // SubmitStateReportWithSnapshotProof is a paid mutator transaction binding the contract method 0xbe7e63da. // // Solidity: function submitStateReportWithSnapshotProof(uint8 stateIndex, bytes statePayload, bytes srSignature, bytes32[] snapProof, bytes attPayload, bytes attSignature) returns(bool wasAccepted) func (_IStatementInbox *IStatementInboxTransactorSession) SubmitStateReportWithSnapshotProof(stateIndex uint8, statePayload []byte, srSignature []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.SubmitStateReportWithSnapshotProof(&_IStatementInbox.TransactOpts, stateIndex, statePayload, srSignature, snapProof, attPayload, attSignature) } // VerifyReceipt is a paid mutator transaction binding the contract method 0xc25aa585. // // Solidity: function verifyReceipt(bytes rcptPayload, bytes rcptSignature) returns(bool isValidReceipt) func (_IStatementInbox *IStatementInboxTransactor) VerifyReceipt(opts *bind.TransactOpts, rcptPayload []byte, rcptSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "verifyReceipt", rcptPayload, rcptSignature) } // VerifyReceipt is a paid mutator transaction binding the contract method 0xc25aa585. // // Solidity: function verifyReceipt(bytes rcptPayload, bytes rcptSignature) returns(bool isValidReceipt) func (_IStatementInbox *IStatementInboxSession) VerifyReceipt(rcptPayload []byte, rcptSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyReceipt(&_IStatementInbox.TransactOpts, rcptPayload, rcptSignature) } // VerifyReceipt is a paid mutator transaction binding the contract method 0xc25aa585. // // Solidity: function verifyReceipt(bytes rcptPayload, bytes rcptSignature) returns(bool isValidReceipt) func (_IStatementInbox *IStatementInboxTransactorSession) VerifyReceipt(rcptPayload []byte, rcptSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyReceipt(&_IStatementInbox.TransactOpts, rcptPayload, rcptSignature) } // VerifyReceiptReport is a paid mutator transaction binding the contract method 0x91af2e5d. // // Solidity: function verifyReceiptReport(bytes rcptPayload, bytes rrSignature) returns(bool isValidReport) func (_IStatementInbox *IStatementInboxTransactor) VerifyReceiptReport(opts *bind.TransactOpts, rcptPayload []byte, rrSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "verifyReceiptReport", rcptPayload, rrSignature) } // VerifyReceiptReport is a paid mutator transaction binding the contract method 0x91af2e5d. // // Solidity: function verifyReceiptReport(bytes rcptPayload, bytes rrSignature) returns(bool isValidReport) func (_IStatementInbox *IStatementInboxSession) VerifyReceiptReport(rcptPayload []byte, rrSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyReceiptReport(&_IStatementInbox.TransactOpts, rcptPayload, rrSignature) } // VerifyReceiptReport is a paid mutator transaction binding the contract method 0x91af2e5d. // // Solidity: function verifyReceiptReport(bytes rcptPayload, bytes rrSignature) returns(bool isValidReport) func (_IStatementInbox *IStatementInboxTransactorSession) VerifyReceiptReport(rcptPayload []byte, rrSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyReceiptReport(&_IStatementInbox.TransactOpts, rcptPayload, rrSignature) } // VerifyStateReport is a paid mutator transaction binding the contract method 0xdfe39675. // // Solidity: function verifyStateReport(bytes statePayload, bytes srSignature) returns(bool isValidReport) func (_IStatementInbox *IStatementInboxTransactor) VerifyStateReport(opts *bind.TransactOpts, statePayload []byte, srSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "verifyStateReport", statePayload, srSignature) } // VerifyStateReport is a paid mutator transaction binding the contract method 0xdfe39675. // // Solidity: function verifyStateReport(bytes statePayload, bytes srSignature) returns(bool isValidReport) func (_IStatementInbox *IStatementInboxSession) VerifyStateReport(statePayload []byte, srSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateReport(&_IStatementInbox.TransactOpts, statePayload, srSignature) } // VerifyStateReport is a paid mutator transaction binding the contract method 0xdfe39675. // // Solidity: function verifyStateReport(bytes statePayload, bytes srSignature) returns(bool isValidReport) func (_IStatementInbox *IStatementInboxTransactorSession) VerifyStateReport(statePayload []byte, srSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateReport(&_IStatementInbox.TransactOpts, statePayload, srSignature) } // VerifyStateWithAttestation is a paid mutator transaction binding the contract method 0x7d9978ae. // // Solidity: function verifyStateWithAttestation(uint8 stateIndex, bytes snapPayload, bytes attPayload, bytes attSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxTransactor) VerifyStateWithAttestation(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "verifyStateWithAttestation", stateIndex, snapPayload, attPayload, attSignature) } // VerifyStateWithAttestation is a paid mutator transaction binding the contract method 0x7d9978ae. // // Solidity: function verifyStateWithAttestation(uint8 stateIndex, bytes snapPayload, bytes attPayload, bytes attSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxSession) VerifyStateWithAttestation(stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateWithAttestation(&_IStatementInbox.TransactOpts, stateIndex, snapPayload, attPayload, attSignature) } // VerifyStateWithAttestation is a paid mutator transaction binding the contract method 0x7d9978ae. // // Solidity: function verifyStateWithAttestation(uint8 stateIndex, bytes snapPayload, bytes attPayload, bytes attSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxTransactorSession) VerifyStateWithAttestation(stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateWithAttestation(&_IStatementInbox.TransactOpts, stateIndex, snapPayload, attPayload, attSignature) } // VerifyStateWithSnapshot is a paid mutator transaction binding the contract method 0x8671012e. // // Solidity: function verifyStateWithSnapshot(uint8 stateIndex, bytes snapPayload, bytes snapSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxTransactor) VerifyStateWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "verifyStateWithSnapshot", stateIndex, snapPayload, snapSignature) } // VerifyStateWithSnapshot is a paid mutator transaction binding the contract method 0x8671012e. // // Solidity: function verifyStateWithSnapshot(uint8 stateIndex, bytes snapPayload, bytes snapSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxSession) VerifyStateWithSnapshot(stateIndex uint8, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateWithSnapshot(&_IStatementInbox.TransactOpts, stateIndex, snapPayload, snapSignature) } // VerifyStateWithSnapshot is a paid mutator transaction binding the contract method 0x8671012e. // // Solidity: function verifyStateWithSnapshot(uint8 stateIndex, bytes snapPayload, bytes snapSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxTransactorSession) VerifyStateWithSnapshot(stateIndex uint8, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateWithSnapshot(&_IStatementInbox.TransactOpts, stateIndex, snapPayload, snapSignature) } // VerifyStateWithSnapshotProof is a paid mutator transaction binding the contract method 0xe3097af8. // // Solidity: function verifyStateWithSnapshotProof(uint8 stateIndex, bytes statePayload, bytes32[] snapProof, bytes attPayload, bytes attSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxTransactor) VerifyStateWithSnapshotProof(opts *bind.TransactOpts, stateIndex uint8, statePayload []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.contract.Transact(opts, "verifyStateWithSnapshotProof", stateIndex, statePayload, snapProof, attPayload, attSignature) } // VerifyStateWithSnapshotProof is a paid mutator transaction binding the contract method 0xe3097af8. // // Solidity: function verifyStateWithSnapshotProof(uint8 stateIndex, bytes statePayload, bytes32[] snapProof, bytes attPayload, bytes attSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxSession) VerifyStateWithSnapshotProof(stateIndex uint8, statePayload []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateWithSnapshotProof(&_IStatementInbox.TransactOpts, stateIndex, statePayload, snapProof, attPayload, attSignature) } // VerifyStateWithSnapshotProof is a paid mutator transaction binding the contract method 0xe3097af8. // // Solidity: function verifyStateWithSnapshotProof(uint8 stateIndex, bytes statePayload, bytes32[] snapProof, bytes attPayload, bytes attSignature) returns(bool isValidState) func (_IStatementInbox *IStatementInboxTransactorSession) VerifyStateWithSnapshotProof(stateIndex uint8, statePayload []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) { return _IStatementInbox.Contract.VerifyStateWithSnapshotProof(&_IStatementInbox.TransactOpts, stateIndex, statePayload, snapProof, attPayload, attSignature) } // InitializableMetaData contains all meta data concerning the Initializable contract. var InitializableMetaData = &bind.MetaData{ ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"}]", } // InitializableABI is the input ABI used to generate the binding from. // Deprecated: Use InitializableMetaData.ABI instead. var InitializableABI = InitializableMetaData.ABI // Initializable is an auto generated Go binding around an Ethereum contract. type Initializable struct { InitializableCaller // Read-only binding to the contract InitializableTransactor // Write-only binding to the contract InitializableFilterer // Log filterer for contract events } // InitializableCaller is an auto generated read-only Go binding around an Ethereum contract. type InitializableCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InitializableTransactor is an auto generated write-only Go binding around an Ethereum contract. type InitializableTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InitializableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type InitializableFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InitializableSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type InitializableSession struct { Contract *Initializable // 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 } // InitializableCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type InitializableCallerSession struct { Contract *InitializableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // InitializableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type InitializableTransactorSession struct { Contract *InitializableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // InitializableRaw is an auto generated low-level Go binding around an Ethereum contract. type InitializableRaw struct { Contract *Initializable // Generic contract binding to access the raw methods on } // InitializableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type InitializableCallerRaw struct { Contract *InitializableCaller // Generic read-only contract binding to access the raw methods on } // InitializableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type InitializableTransactorRaw struct { Contract *InitializableTransactor // Generic write-only contract binding to access the raw methods on } // NewInitializable creates a new instance of Initializable, bound to a specific deployed contract. func NewInitializable(address common.Address, backend bind.ContractBackend) (*Initializable, error) { contract, err := bindInitializable(address, backend, backend, backend) if err != nil { return nil, err } return &Initializable{InitializableCaller: InitializableCaller{contract: contract}, InitializableTransactor: InitializableTransactor{contract: contract}, InitializableFilterer: InitializableFilterer{contract: contract}}, nil } // NewInitializableCaller creates a new read-only instance of Initializable, bound to a specific deployed contract. func NewInitializableCaller(address common.Address, caller bind.ContractCaller) (*InitializableCaller, error) { contract, err := bindInitializable(address, caller, nil, nil) if err != nil { return nil, err } return &InitializableCaller{contract: contract}, nil } // NewInitializableTransactor creates a new write-only instance of Initializable, bound to a specific deployed contract. func NewInitializableTransactor(address common.Address, transactor bind.ContractTransactor) (*InitializableTransactor, error) { contract, err := bindInitializable(address, nil, transactor, nil) if err != nil { return nil, err } return &InitializableTransactor{contract: contract}, nil } // NewInitializableFilterer creates a new log filterer instance of Initializable, bound to a specific deployed contract. func NewInitializableFilterer(address common.Address, filterer bind.ContractFilterer) (*InitializableFilterer, error) { contract, err := bindInitializable(address, nil, nil, filterer) if err != nil { return nil, err } return &InitializableFilterer{contract: contract}, nil } // bindInitializable binds a generic wrapper to an already deployed contract. func bindInitializable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := InitializableMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_Initializable *InitializableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Initializable.Contract.InitializableCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Initializable *InitializableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Initializable.Contract.InitializableTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Initializable *InitializableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Initializable.Contract.InitializableTransactor.contract.Transact(opts, method, params...) } // 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 (_Initializable *InitializableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Initializable.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Initializable *InitializableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Initializable.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Initializable *InitializableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Initializable.Contract.contract.Transact(opts, method, params...) } // InitializableInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Initializable contract. type InitializableInitializedIterator struct { Event *InitializableInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *InitializableInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(InitializableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(InitializableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *InitializableInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *InitializableInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } // InitializableInitialized represents a Initialized event raised by the Initializable contract. type InitializableInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_Initializable *InitializableFilterer) FilterInitialized(opts *bind.FilterOpts) (*InitializableInitializedIterator, error) { logs, sub, err := _Initializable.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } return &InitializableInitializedIterator{contract: _Initializable.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_Initializable *InitializableFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *InitializableInitialized) (event.Subscription, error) { logs, sub, err := _Initializable.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(InitializableInitialized) if err := _Initializable.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_Initializable *InitializableFilterer) ParseInitialized(log types.Log) (*InitializableInitialized, error) { event := new(InitializableInitialized) if err := _Initializable.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } // InterfaceBondingManagerMetaData contains all meta data concerning the InterfaceBondingManager contract. var InterfaceBondingManagerMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"addAgent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"agentLeaf\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"leaf\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"allLeafs\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"leafs\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"completeSlashing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"completeUnstaking\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"}],\"name\":\"getActiveAgents\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"agents\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"indexFrom\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getLeafs\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"leafs\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"}],\"name\":\"getProof\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"initiateUnstaking\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"leafsAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"msgOrigin\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"proofMaturity\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"prover\",\"type\":\"address\"}],\"name\":\"remoteSlashAgent\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"magicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"slashedAgent\",\"type\":\"address\"}],\"name\":\"resolveDisputeWhenStuck\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"origin\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTips\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "237a85a5": "addAgent(uint32,address,bytes32[])", "c99dcb9e": "agentLeaf(address)", "12db2ef6": "allLeafs()", "fbc5265e": "completeSlashing(uint32,address,bytes32[])", "4c3e1c1f": "completeUnstaking(uint32,address,bytes32[])", "c1c0f4f6": "getActiveAgents(uint32)", "33d1b2e8": "getLeafs(uint256,uint256)", "3eea79d1": "getProof(address)", "130c5673": "initiateUnstaking(uint32,address,bytes32[])", "33c3a8f3": "leafsAmount()", "9d228a51": "remoteSlashAgent(uint32,uint256,uint32,address,address)", "b15a707d": "resolveDisputeWhenStuck(uint32,address)", "cc875501": "withdrawTips(address,uint32,uint256)", }, } // InterfaceBondingManagerABI is the input ABI used to generate the binding from. // Deprecated: Use InterfaceBondingManagerMetaData.ABI instead. var InterfaceBondingManagerABI = InterfaceBondingManagerMetaData.ABI // Deprecated: Use InterfaceBondingManagerMetaData.Sigs instead. // InterfaceBondingManagerFuncSigs maps the 4-byte function signature to its string representation. var InterfaceBondingManagerFuncSigs = InterfaceBondingManagerMetaData.Sigs // InterfaceBondingManager is an auto generated Go binding around an Ethereum contract. type InterfaceBondingManager struct { InterfaceBondingManagerCaller // Read-only binding to the contract InterfaceBondingManagerTransactor // Write-only binding to the contract InterfaceBondingManagerFilterer // Log filterer for contract events } // InterfaceBondingManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type InterfaceBondingManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceBondingManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type InterfaceBondingManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceBondingManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type InterfaceBondingManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceBondingManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type InterfaceBondingManagerSession struct { Contract *InterfaceBondingManager // 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 } // InterfaceBondingManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type InterfaceBondingManagerCallerSession struct { Contract *InterfaceBondingManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // InterfaceBondingManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type InterfaceBondingManagerTransactorSession struct { Contract *InterfaceBondingManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // InterfaceBondingManagerRaw is an auto generated low-level Go binding around an Ethereum contract. type InterfaceBondingManagerRaw struct { Contract *InterfaceBondingManager // Generic contract binding to access the raw methods on } // InterfaceBondingManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type InterfaceBondingManagerCallerRaw struct { Contract *InterfaceBondingManagerCaller // Generic read-only contract binding to access the raw methods on } // InterfaceBondingManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type InterfaceBondingManagerTransactorRaw struct { Contract *InterfaceBondingManagerTransactor // Generic write-only contract binding to access the raw methods on } // NewInterfaceBondingManager creates a new instance of InterfaceBondingManager, bound to a specific deployed contract. func NewInterfaceBondingManager(address common.Address, backend bind.ContractBackend) (*InterfaceBondingManager, error) { contract, err := bindInterfaceBondingManager(address, backend, backend, backend) if err != nil { return nil, err } return &InterfaceBondingManager{InterfaceBondingManagerCaller: InterfaceBondingManagerCaller{contract: contract}, InterfaceBondingManagerTransactor: InterfaceBondingManagerTransactor{contract: contract}, InterfaceBondingManagerFilterer: InterfaceBondingManagerFilterer{contract: contract}}, nil } // NewInterfaceBondingManagerCaller creates a new read-only instance of InterfaceBondingManager, bound to a specific deployed contract. func NewInterfaceBondingManagerCaller(address common.Address, caller bind.ContractCaller) (*InterfaceBondingManagerCaller, error) { contract, err := bindInterfaceBondingManager(address, caller, nil, nil) if err != nil { return nil, err } return &InterfaceBondingManagerCaller{contract: contract}, nil } // NewInterfaceBondingManagerTransactor creates a new write-only instance of InterfaceBondingManager, bound to a specific deployed contract. func NewInterfaceBondingManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*InterfaceBondingManagerTransactor, error) { contract, err := bindInterfaceBondingManager(address, nil, transactor, nil) if err != nil { return nil, err } return &InterfaceBondingManagerTransactor{contract: contract}, nil } // NewInterfaceBondingManagerFilterer creates a new log filterer instance of InterfaceBondingManager, bound to a specific deployed contract. func NewInterfaceBondingManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*InterfaceBondingManagerFilterer, error) { contract, err := bindInterfaceBondingManager(address, nil, nil, filterer) if err != nil { return nil, err } return &InterfaceBondingManagerFilterer{contract: contract}, nil } // bindInterfaceBondingManager binds a generic wrapper to an already deployed contract. func bindInterfaceBondingManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := InterfaceBondingManagerMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_InterfaceBondingManager *InterfaceBondingManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceBondingManager.Contract.InterfaceBondingManagerCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceBondingManager *InterfaceBondingManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.InterfaceBondingManagerTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceBondingManager *InterfaceBondingManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.InterfaceBondingManagerTransactor.contract.Transact(opts, method, params...) } // 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 (_InterfaceBondingManager *InterfaceBondingManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceBondingManager.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceBondingManager *InterfaceBondingManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceBondingManager *InterfaceBondingManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.contract.Transact(opts, method, params...) } // AgentLeaf is a free data retrieval call binding the contract method 0xc99dcb9e. // // Solidity: function agentLeaf(address agent) view returns(bytes32 leaf) func (_InterfaceBondingManager *InterfaceBondingManagerCaller) AgentLeaf(opts *bind.CallOpts, agent common.Address) ([32]byte, error) { var out []interface{} err := _InterfaceBondingManager.contract.Call(opts, &out, "agentLeaf", agent) if err != nil { return *new([32]byte), err } out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) return out0, err } // AgentLeaf is a free data retrieval call binding the contract method 0xc99dcb9e. // // Solidity: function agentLeaf(address agent) view returns(bytes32 leaf) func (_InterfaceBondingManager *InterfaceBondingManagerSession) AgentLeaf(agent common.Address) ([32]byte, error) { return _InterfaceBondingManager.Contract.AgentLeaf(&_InterfaceBondingManager.CallOpts, agent) } // AgentLeaf is a free data retrieval call binding the contract method 0xc99dcb9e. // // Solidity: function agentLeaf(address agent) view returns(bytes32 leaf) func (_InterfaceBondingManager *InterfaceBondingManagerCallerSession) AgentLeaf(agent common.Address) ([32]byte, error) { return _InterfaceBondingManager.Contract.AgentLeaf(&_InterfaceBondingManager.CallOpts, agent) } // AllLeafs is a free data retrieval call binding the contract method 0x12db2ef6. // // Solidity: function allLeafs() view returns(bytes32[] leafs) func (_InterfaceBondingManager *InterfaceBondingManagerCaller) AllLeafs(opts *bind.CallOpts) ([][32]byte, error) { var out []interface{} err := _InterfaceBondingManager.contract.Call(opts, &out, "allLeafs") if err != nil { return *new([][32]byte), err } out0 := *abi.ConvertType(out[0], new([][32]byte)).(*[][32]byte) return out0, err } // AllLeafs is a free data retrieval call binding the contract method 0x12db2ef6. // // Solidity: function allLeafs() view returns(bytes32[] leafs) func (_InterfaceBondingManager *InterfaceBondingManagerSession) AllLeafs() ([][32]byte, error) { return _InterfaceBondingManager.Contract.AllLeafs(&_InterfaceBondingManager.CallOpts) } // AllLeafs is a free data retrieval call binding the contract method 0x12db2ef6. // // Solidity: function allLeafs() view returns(bytes32[] leafs) func (_InterfaceBondingManager *InterfaceBondingManagerCallerSession) AllLeafs() ([][32]byte, error) { return _InterfaceBondingManager.Contract.AllLeafs(&_InterfaceBondingManager.CallOpts) } // GetActiveAgents is a free data retrieval call binding the contract method 0xc1c0f4f6. // // Solidity: function getActiveAgents(uint32 domain) view returns(address[] agents) func (_InterfaceBondingManager *InterfaceBondingManagerCaller) GetActiveAgents(opts *bind.CallOpts, domain uint32) ([]common.Address, error) { var out []interface{} err := _InterfaceBondingManager.contract.Call(opts, &out, "getActiveAgents", domain) if err != nil { return *new([]common.Address), err } out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) return out0, err } // GetActiveAgents is a free data retrieval call binding the contract method 0xc1c0f4f6. // // Solidity: function getActiveAgents(uint32 domain) view returns(address[] agents) func (_InterfaceBondingManager *InterfaceBondingManagerSession) GetActiveAgents(domain uint32) ([]common.Address, error) { return _InterfaceBondingManager.Contract.GetActiveAgents(&_InterfaceBondingManager.CallOpts, domain) } // GetActiveAgents is a free data retrieval call binding the contract method 0xc1c0f4f6. // // Solidity: function getActiveAgents(uint32 domain) view returns(address[] agents) func (_InterfaceBondingManager *InterfaceBondingManagerCallerSession) GetActiveAgents(domain uint32) ([]common.Address, error) { return _InterfaceBondingManager.Contract.GetActiveAgents(&_InterfaceBondingManager.CallOpts, domain) } // GetLeafs is a free data retrieval call binding the contract method 0x33d1b2e8. // // Solidity: function getLeafs(uint256 indexFrom, uint256 amount) view returns(bytes32[] leafs) func (_InterfaceBondingManager *InterfaceBondingManagerCaller) GetLeafs(opts *bind.CallOpts, indexFrom *big.Int, amount *big.Int) ([][32]byte, error) { var out []interface{} err := _InterfaceBondingManager.contract.Call(opts, &out, "getLeafs", indexFrom, amount) if err != nil { return *new([][32]byte), err } out0 := *abi.ConvertType(out[0], new([][32]byte)).(*[][32]byte) return out0, err } // GetLeafs is a free data retrieval call binding the contract method 0x33d1b2e8. // // Solidity: function getLeafs(uint256 indexFrom, uint256 amount) view returns(bytes32[] leafs) func (_InterfaceBondingManager *InterfaceBondingManagerSession) GetLeafs(indexFrom *big.Int, amount *big.Int) ([][32]byte, error) { return _InterfaceBondingManager.Contract.GetLeafs(&_InterfaceBondingManager.CallOpts, indexFrom, amount) } // GetLeafs is a free data retrieval call binding the contract method 0x33d1b2e8. // // Solidity: function getLeafs(uint256 indexFrom, uint256 amount) view returns(bytes32[] leafs) func (_InterfaceBondingManager *InterfaceBondingManagerCallerSession) GetLeafs(indexFrom *big.Int, amount *big.Int) ([][32]byte, error) { return _InterfaceBondingManager.Contract.GetLeafs(&_InterfaceBondingManager.CallOpts, indexFrom, amount) } // GetProof is a free data retrieval call binding the contract method 0x3eea79d1. // // Solidity: function getProof(address agent) view returns(bytes32[] proof) func (_InterfaceBondingManager *InterfaceBondingManagerCaller) GetProof(opts *bind.CallOpts, agent common.Address) ([][32]byte, error) { var out []interface{} err := _InterfaceBondingManager.contract.Call(opts, &out, "getProof", agent) if err != nil { return *new([][32]byte), err } out0 := *abi.ConvertType(out[0], new([][32]byte)).(*[][32]byte) return out0, err } // GetProof is a free data retrieval call binding the contract method 0x3eea79d1. // // Solidity: function getProof(address agent) view returns(bytes32[] proof) func (_InterfaceBondingManager *InterfaceBondingManagerSession) GetProof(agent common.Address) ([][32]byte, error) { return _InterfaceBondingManager.Contract.GetProof(&_InterfaceBondingManager.CallOpts, agent) } // GetProof is a free data retrieval call binding the contract method 0x3eea79d1. // // Solidity: function getProof(address agent) view returns(bytes32[] proof) func (_InterfaceBondingManager *InterfaceBondingManagerCallerSession) GetProof(agent common.Address) ([][32]byte, error) { return _InterfaceBondingManager.Contract.GetProof(&_InterfaceBondingManager.CallOpts, agent) } // LeafsAmount is a free data retrieval call binding the contract method 0x33c3a8f3. // // Solidity: function leafsAmount() view returns(uint256 amount) func (_InterfaceBondingManager *InterfaceBondingManagerCaller) LeafsAmount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _InterfaceBondingManager.contract.Call(opts, &out, "leafsAmount") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // LeafsAmount is a free data retrieval call binding the contract method 0x33c3a8f3. // // Solidity: function leafsAmount() view returns(uint256 amount) func (_InterfaceBondingManager *InterfaceBondingManagerSession) LeafsAmount() (*big.Int, error) { return _InterfaceBondingManager.Contract.LeafsAmount(&_InterfaceBondingManager.CallOpts) } // LeafsAmount is a free data retrieval call binding the contract method 0x33c3a8f3. // // Solidity: function leafsAmount() view returns(uint256 amount) func (_InterfaceBondingManager *InterfaceBondingManagerCallerSession) LeafsAmount() (*big.Int, error) { return _InterfaceBondingManager.Contract.LeafsAmount(&_InterfaceBondingManager.CallOpts) } // AddAgent is a paid mutator transaction binding the contract method 0x237a85a5. // // Solidity: function addAgent(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactor) AddAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.contract.Transact(opts, "addAgent", domain, agent, proof) } // AddAgent is a paid mutator transaction binding the contract method 0x237a85a5. // // Solidity: function addAgent(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerSession) AddAgent(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.AddAgent(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // AddAgent is a paid mutator transaction binding the contract method 0x237a85a5. // // Solidity: function addAgent(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactorSession) AddAgent(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.AddAgent(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // CompleteSlashing is a paid mutator transaction binding the contract method 0xfbc5265e. // // Solidity: function completeSlashing(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactor) CompleteSlashing(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.contract.Transact(opts, "completeSlashing", domain, agent, proof) } // CompleteSlashing is a paid mutator transaction binding the contract method 0xfbc5265e. // // Solidity: function completeSlashing(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerSession) CompleteSlashing(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.CompleteSlashing(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // CompleteSlashing is a paid mutator transaction binding the contract method 0xfbc5265e. // // Solidity: function completeSlashing(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactorSession) CompleteSlashing(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.CompleteSlashing(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // CompleteUnstaking is a paid mutator transaction binding the contract method 0x4c3e1c1f. // // Solidity: function completeUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactor) CompleteUnstaking(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.contract.Transact(opts, "completeUnstaking", domain, agent, proof) } // CompleteUnstaking is a paid mutator transaction binding the contract method 0x4c3e1c1f. // // Solidity: function completeUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerSession) CompleteUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.CompleteUnstaking(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // CompleteUnstaking is a paid mutator transaction binding the contract method 0x4c3e1c1f. // // Solidity: function completeUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactorSession) CompleteUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.CompleteUnstaking(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // InitiateUnstaking is a paid mutator transaction binding the contract method 0x130c5673. // // Solidity: function initiateUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactor) InitiateUnstaking(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.contract.Transact(opts, "initiateUnstaking", domain, agent, proof) } // InitiateUnstaking is a paid mutator transaction binding the contract method 0x130c5673. // // Solidity: function initiateUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerSession) InitiateUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.InitiateUnstaking(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // InitiateUnstaking is a paid mutator transaction binding the contract method 0x130c5673. // // Solidity: function initiateUnstaking(uint32 domain, address agent, bytes32[] proof) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactorSession) InitiateUnstaking(domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.InitiateUnstaking(&_InterfaceBondingManager.TransactOpts, domain, agent, proof) } // RemoteSlashAgent is a paid mutator transaction binding the contract method 0x9d228a51. // // Solidity: function remoteSlashAgent(uint32 msgOrigin, uint256 proofMaturity, uint32 domain, address agent, address prover) returns(bytes4 magicValue) func (_InterfaceBondingManager *InterfaceBondingManagerTransactor) RemoteSlashAgent(opts *bind.TransactOpts, msgOrigin uint32, proofMaturity *big.Int, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _InterfaceBondingManager.contract.Transact(opts, "remoteSlashAgent", msgOrigin, proofMaturity, domain, agent, prover) } // RemoteSlashAgent is a paid mutator transaction binding the contract method 0x9d228a51. // // Solidity: function remoteSlashAgent(uint32 msgOrigin, uint256 proofMaturity, uint32 domain, address agent, address prover) returns(bytes4 magicValue) func (_InterfaceBondingManager *InterfaceBondingManagerSession) RemoteSlashAgent(msgOrigin uint32, proofMaturity *big.Int, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.RemoteSlashAgent(&_InterfaceBondingManager.TransactOpts, msgOrigin, proofMaturity, domain, agent, prover) } // RemoteSlashAgent is a paid mutator transaction binding the contract method 0x9d228a51. // // Solidity: function remoteSlashAgent(uint32 msgOrigin, uint256 proofMaturity, uint32 domain, address agent, address prover) returns(bytes4 magicValue) func (_InterfaceBondingManager *InterfaceBondingManagerTransactorSession) RemoteSlashAgent(msgOrigin uint32, proofMaturity *big.Int, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.RemoteSlashAgent(&_InterfaceBondingManager.TransactOpts, msgOrigin, proofMaturity, domain, agent, prover) } // ResolveDisputeWhenStuck is a paid mutator transaction binding the contract method 0xb15a707d. // // Solidity: function resolveDisputeWhenStuck(uint32 domain, address slashedAgent) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactor) ResolveDisputeWhenStuck(opts *bind.TransactOpts, domain uint32, slashedAgent common.Address) (*types.Transaction, error) { return _InterfaceBondingManager.contract.Transact(opts, "resolveDisputeWhenStuck", domain, slashedAgent) } // ResolveDisputeWhenStuck is a paid mutator transaction binding the contract method 0xb15a707d. // // Solidity: function resolveDisputeWhenStuck(uint32 domain, address slashedAgent) returns() func (_InterfaceBondingManager *InterfaceBondingManagerSession) ResolveDisputeWhenStuck(domain uint32, slashedAgent common.Address) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.ResolveDisputeWhenStuck(&_InterfaceBondingManager.TransactOpts, domain, slashedAgent) } // ResolveDisputeWhenStuck is a paid mutator transaction binding the contract method 0xb15a707d. // // Solidity: function resolveDisputeWhenStuck(uint32 domain, address slashedAgent) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactorSession) ResolveDisputeWhenStuck(domain uint32, slashedAgent common.Address) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.ResolveDisputeWhenStuck(&_InterfaceBondingManager.TransactOpts, domain, slashedAgent) } // WithdrawTips is a paid mutator transaction binding the contract method 0xcc875501. // // Solidity: function withdrawTips(address recipient, uint32 origin, uint256 amount) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactor) WithdrawTips(opts *bind.TransactOpts, recipient common.Address, origin uint32, amount *big.Int) (*types.Transaction, error) { return _InterfaceBondingManager.contract.Transact(opts, "withdrawTips", recipient, origin, amount) } // WithdrawTips is a paid mutator transaction binding the contract method 0xcc875501. // // Solidity: function withdrawTips(address recipient, uint32 origin, uint256 amount) returns() func (_InterfaceBondingManager *InterfaceBondingManagerSession) WithdrawTips(recipient common.Address, origin uint32, amount *big.Int) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.WithdrawTips(&_InterfaceBondingManager.TransactOpts, recipient, origin, amount) } // WithdrawTips is a paid mutator transaction binding the contract method 0xcc875501. // // Solidity: function withdrawTips(address recipient, uint32 origin, uint256 amount) returns() func (_InterfaceBondingManager *InterfaceBondingManagerTransactorSession) WithdrawTips(recipient common.Address, origin uint32, amount *big.Int) (*types.Transaction, error) { return _InterfaceBondingManager.Contract.WithdrawTips(&_InterfaceBondingManager.TransactOpts, recipient, origin, amount) } // InterfaceDestinationMetaData contains all meta data concerning the InterfaceDestination contract. var InterfaceDestinationMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"sigIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"attPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"agentRoot\",\"type\":\"bytes32\"},{\"internalType\":\"ChainGas[]\",\"name\":\"snapGas\",\"type\":\"uint128[]\"}],\"name\":\"acceptAttestation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"wasAccepted\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"attestationsAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"destStatus\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"snapRootTime\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"agentRootTime\",\"type\":\"uint40\"},{\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getAttestation\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"attPayload\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"attSignature\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"}],\"name\":\"getGasData\",\"outputs\":[{\"internalType\":\"GasData\",\"name\":\"gasData\",\"type\":\"uint96\"},{\"internalType\":\"uint256\",\"name\":\"dataMaturity\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"notaryIndex\",\"type\":\"uint32\"}],\"name\":\"lastAttestationNonce\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextAgentRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"passAgentRoot\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"rootPending\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "39fe2736": "acceptAttestation(uint32,uint256,bytes,bytes32,uint128[])", "3cf7b120": "attestationsAmount()", "40989152": "destStatus()", "29be4db2": "getAttestation(uint256)", "d0dd0675": "getGasData(uint32)", "305b29ee": "lastAttestationNonce(uint32)", "55252dd1": "nextAgentRoot()", "a554d1e3": "passAgentRoot()", }, } // InterfaceDestinationABI is the input ABI used to generate the binding from. // Deprecated: Use InterfaceDestinationMetaData.ABI instead. var InterfaceDestinationABI = InterfaceDestinationMetaData.ABI // Deprecated: Use InterfaceDestinationMetaData.Sigs instead. // InterfaceDestinationFuncSigs maps the 4-byte function signature to its string representation. var InterfaceDestinationFuncSigs = InterfaceDestinationMetaData.Sigs // InterfaceDestination is an auto generated Go binding around an Ethereum contract. type InterfaceDestination struct { InterfaceDestinationCaller // Read-only binding to the contract InterfaceDestinationTransactor // Write-only binding to the contract InterfaceDestinationFilterer // Log filterer for contract events } // InterfaceDestinationCaller is an auto generated read-only Go binding around an Ethereum contract. type InterfaceDestinationCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceDestinationTransactor is an auto generated write-only Go binding around an Ethereum contract. type InterfaceDestinationTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceDestinationFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type InterfaceDestinationFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceDestinationSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type InterfaceDestinationSession struct { Contract *InterfaceDestination // 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 } // InterfaceDestinationCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type InterfaceDestinationCallerSession struct { Contract *InterfaceDestinationCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // InterfaceDestinationTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type InterfaceDestinationTransactorSession struct { Contract *InterfaceDestinationTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // InterfaceDestinationRaw is an auto generated low-level Go binding around an Ethereum contract. type InterfaceDestinationRaw struct { Contract *InterfaceDestination // Generic contract binding to access the raw methods on } // InterfaceDestinationCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type InterfaceDestinationCallerRaw struct { Contract *InterfaceDestinationCaller // Generic read-only contract binding to access the raw methods on } // InterfaceDestinationTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type InterfaceDestinationTransactorRaw struct { Contract *InterfaceDestinationTransactor // Generic write-only contract binding to access the raw methods on } // NewInterfaceDestination creates a new instance of InterfaceDestination, bound to a specific deployed contract. func NewInterfaceDestination(address common.Address, backend bind.ContractBackend) (*InterfaceDestination, error) { contract, err := bindInterfaceDestination(address, backend, backend, backend) if err != nil { return nil, err } return &InterfaceDestination{InterfaceDestinationCaller: InterfaceDestinationCaller{contract: contract}, InterfaceDestinationTransactor: InterfaceDestinationTransactor{contract: contract}, InterfaceDestinationFilterer: InterfaceDestinationFilterer{contract: contract}}, nil } // NewInterfaceDestinationCaller creates a new read-only instance of InterfaceDestination, bound to a specific deployed contract. func NewInterfaceDestinationCaller(address common.Address, caller bind.ContractCaller) (*InterfaceDestinationCaller, error) { contract, err := bindInterfaceDestination(address, caller, nil, nil) if err != nil { return nil, err } return &InterfaceDestinationCaller{contract: contract}, nil } // NewInterfaceDestinationTransactor creates a new write-only instance of InterfaceDestination, bound to a specific deployed contract. func NewInterfaceDestinationTransactor(address common.Address, transactor bind.ContractTransactor) (*InterfaceDestinationTransactor, error) { contract, err := bindInterfaceDestination(address, nil, transactor, nil) if err != nil { return nil, err } return &InterfaceDestinationTransactor{contract: contract}, nil } // NewInterfaceDestinationFilterer creates a new log filterer instance of InterfaceDestination, bound to a specific deployed contract. func NewInterfaceDestinationFilterer(address common.Address, filterer bind.ContractFilterer) (*InterfaceDestinationFilterer, error) { contract, err := bindInterfaceDestination(address, nil, nil, filterer) if err != nil { return nil, err } return &InterfaceDestinationFilterer{contract: contract}, nil } // bindInterfaceDestination binds a generic wrapper to an already deployed contract. func bindInterfaceDestination(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := InterfaceDestinationMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_InterfaceDestination *InterfaceDestinationRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceDestination.Contract.InterfaceDestinationCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceDestination *InterfaceDestinationRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceDestination.Contract.InterfaceDestinationTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceDestination *InterfaceDestinationRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceDestination.Contract.InterfaceDestinationTransactor.contract.Transact(opts, method, params...) } // 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 (_InterfaceDestination *InterfaceDestinationCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceDestination.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceDestination *InterfaceDestinationTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceDestination.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceDestination *InterfaceDestinationTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceDestination.Contract.contract.Transact(opts, method, params...) } // AttestationsAmount is a free data retrieval call binding the contract method 0x3cf7b120. // // Solidity: function attestationsAmount() view returns(uint256) func (_InterfaceDestination *InterfaceDestinationCaller) AttestationsAmount(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _InterfaceDestination.contract.Call(opts, &out, "attestationsAmount") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // AttestationsAmount is a free data retrieval call binding the contract method 0x3cf7b120. // // Solidity: function attestationsAmount() view returns(uint256) func (_InterfaceDestination *InterfaceDestinationSession) AttestationsAmount() (*big.Int, error) { return _InterfaceDestination.Contract.AttestationsAmount(&_InterfaceDestination.CallOpts) } // AttestationsAmount is a free data retrieval call binding the contract method 0x3cf7b120. // // Solidity: function attestationsAmount() view returns(uint256) func (_InterfaceDestination *InterfaceDestinationCallerSession) AttestationsAmount() (*big.Int, error) { return _InterfaceDestination.Contract.AttestationsAmount(&_InterfaceDestination.CallOpts) } // DestStatus is a free data retrieval call binding the contract method 0x40989152. // // Solidity: function destStatus() view returns(uint40 snapRootTime, uint40 agentRootTime, uint32 notaryIndex) func (_InterfaceDestination *InterfaceDestinationCaller) DestStatus(opts *bind.CallOpts) (struct { SnapRootTime *big.Int AgentRootTime *big.Int NotaryIndex uint32 }, error) { var out []interface{} err := _InterfaceDestination.contract.Call(opts, &out, "destStatus") outstruct := new(struct { SnapRootTime *big.Int AgentRootTime *big.Int NotaryIndex uint32 }) if err != nil { return *outstruct, err } outstruct.SnapRootTime = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) outstruct.AgentRootTime = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) outstruct.NotaryIndex = *abi.ConvertType(out[2], new(uint32)).(*uint32) return *outstruct, err } // DestStatus is a free data retrieval call binding the contract method 0x40989152. // // Solidity: function destStatus() view returns(uint40 snapRootTime, uint40 agentRootTime, uint32 notaryIndex) func (_InterfaceDestination *InterfaceDestinationSession) DestStatus() (struct { SnapRootTime *big.Int AgentRootTime *big.Int NotaryIndex uint32 }, error) { return _InterfaceDestination.Contract.DestStatus(&_InterfaceDestination.CallOpts) } // DestStatus is a free data retrieval call binding the contract method 0x40989152. // // Solidity: function destStatus() view returns(uint40 snapRootTime, uint40 agentRootTime, uint32 notaryIndex) func (_InterfaceDestination *InterfaceDestinationCallerSession) DestStatus() (struct { SnapRootTime *big.Int AgentRootTime *big.Int NotaryIndex uint32 }, error) { return _InterfaceDestination.Contract.DestStatus(&_InterfaceDestination.CallOpts) } // GetAttestation is a free data retrieval call binding the contract method 0x29be4db2. // // Solidity: function getAttestation(uint256 index) view returns(bytes attPayload, bytes attSignature) func (_InterfaceDestination *InterfaceDestinationCaller) GetAttestation(opts *bind.CallOpts, index *big.Int) (struct { AttPayload []byte AttSignature []byte }, error) { var out []interface{} err := _InterfaceDestination.contract.Call(opts, &out, "getAttestation", index) outstruct := new(struct { AttPayload []byte AttSignature []byte }) if err != nil { return *outstruct, err } outstruct.AttPayload = *abi.ConvertType(out[0], new([]byte)).(*[]byte) outstruct.AttSignature = *abi.ConvertType(out[1], new([]byte)).(*[]byte) return *outstruct, err } // GetAttestation is a free data retrieval call binding the contract method 0x29be4db2. // // Solidity: function getAttestation(uint256 index) view returns(bytes attPayload, bytes attSignature) func (_InterfaceDestination *InterfaceDestinationSession) GetAttestation(index *big.Int) (struct { AttPayload []byte AttSignature []byte }, error) { return _InterfaceDestination.Contract.GetAttestation(&_InterfaceDestination.CallOpts, index) } // GetAttestation is a free data retrieval call binding the contract method 0x29be4db2. // // Solidity: function getAttestation(uint256 index) view returns(bytes attPayload, bytes attSignature) func (_InterfaceDestination *InterfaceDestinationCallerSession) GetAttestation(index *big.Int) (struct { AttPayload []byte AttSignature []byte }, error) { return _InterfaceDestination.Contract.GetAttestation(&_InterfaceDestination.CallOpts, index) } // GetGasData is a free data retrieval call binding the contract method 0xd0dd0675. // // Solidity: function getGasData(uint32 domain) view returns(uint96 gasData, uint256 dataMaturity) func (_InterfaceDestination *InterfaceDestinationCaller) GetGasData(opts *bind.CallOpts, domain uint32) (struct { GasData *big.Int DataMaturity *big.Int }, error) { var out []interface{} err := _InterfaceDestination.contract.Call(opts, &out, "getGasData", domain) outstruct := new(struct { GasData *big.Int DataMaturity *big.Int }) if err != nil { return *outstruct, err } outstruct.GasData = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) outstruct.DataMaturity = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) return *outstruct, err } // GetGasData is a free data retrieval call binding the contract method 0xd0dd0675. // // Solidity: function getGasData(uint32 domain) view returns(uint96 gasData, uint256 dataMaturity) func (_InterfaceDestination *InterfaceDestinationSession) GetGasData(domain uint32) (struct { GasData *big.Int DataMaturity *big.Int }, error) { return _InterfaceDestination.Contract.GetGasData(&_InterfaceDestination.CallOpts, domain) } // GetGasData is a free data retrieval call binding the contract method 0xd0dd0675. // // Solidity: function getGasData(uint32 domain) view returns(uint96 gasData, uint256 dataMaturity) func (_InterfaceDestination *InterfaceDestinationCallerSession) GetGasData(domain uint32) (struct { GasData *big.Int DataMaturity *big.Int }, error) { return _InterfaceDestination.Contract.GetGasData(&_InterfaceDestination.CallOpts, domain) } // LastAttestationNonce is a free data retrieval call binding the contract method 0x305b29ee. // // Solidity: function lastAttestationNonce(uint32 notaryIndex) view returns(uint32) func (_InterfaceDestination *InterfaceDestinationCaller) LastAttestationNonce(opts *bind.CallOpts, notaryIndex uint32) (uint32, error) { var out []interface{} err := _InterfaceDestination.contract.Call(opts, &out, "lastAttestationNonce", notaryIndex) if err != nil { return *new(uint32), err } out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) return out0, err } // LastAttestationNonce is a free data retrieval call binding the contract method 0x305b29ee. // // Solidity: function lastAttestationNonce(uint32 notaryIndex) view returns(uint32) func (_InterfaceDestination *InterfaceDestinationSession) LastAttestationNonce(notaryIndex uint32) (uint32, error) { return _InterfaceDestination.Contract.LastAttestationNonce(&_InterfaceDestination.CallOpts, notaryIndex) } // LastAttestationNonce is a free data retrieval call binding the contract method 0x305b29ee. // // Solidity: function lastAttestationNonce(uint32 notaryIndex) view returns(uint32) func (_InterfaceDestination *InterfaceDestinationCallerSession) LastAttestationNonce(notaryIndex uint32) (uint32, error) { return _InterfaceDestination.Contract.LastAttestationNonce(&_InterfaceDestination.CallOpts, notaryIndex) } // NextAgentRoot is a free data retrieval call binding the contract method 0x55252dd1. // // Solidity: function nextAgentRoot() view returns(bytes32) func (_InterfaceDestination *InterfaceDestinationCaller) NextAgentRoot(opts *bind.CallOpts) ([32]byte, error) { var out []interface{} err := _InterfaceDestination.contract.Call(opts, &out, "nextAgentRoot") if err != nil { return *new([32]byte), err } out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) return out0, err } // NextAgentRoot is a free data retrieval call binding the contract method 0x55252dd1. // // Solidity: function nextAgentRoot() view returns(bytes32) func (_InterfaceDestination *InterfaceDestinationSession) NextAgentRoot() ([32]byte, error) { return _InterfaceDestination.Contract.NextAgentRoot(&_InterfaceDestination.CallOpts) } // NextAgentRoot is a free data retrieval call binding the contract method 0x55252dd1. // // Solidity: function nextAgentRoot() view returns(bytes32) func (_InterfaceDestination *InterfaceDestinationCallerSession) NextAgentRoot() ([32]byte, error) { return _InterfaceDestination.Contract.NextAgentRoot(&_InterfaceDestination.CallOpts) } // AcceptAttestation is a paid mutator transaction binding the contract method 0x39fe2736. // // Solidity: function acceptAttestation(uint32 notaryIndex, uint256 sigIndex, bytes attPayload, bytes32 agentRoot, uint128[] snapGas) returns(bool wasAccepted) func (_InterfaceDestination *InterfaceDestinationTransactor) AcceptAttestation(opts *bind.TransactOpts, notaryIndex uint32, sigIndex *big.Int, attPayload []byte, agentRoot [32]byte, snapGas []*big.Int) (*types.Transaction, error) { return _InterfaceDestination.contract.Transact(opts, "acceptAttestation", notaryIndex, sigIndex, attPayload, agentRoot, snapGas) } // AcceptAttestation is a paid mutator transaction binding the contract method 0x39fe2736. // // Solidity: function acceptAttestation(uint32 notaryIndex, uint256 sigIndex, bytes attPayload, bytes32 agentRoot, uint128[] snapGas) returns(bool wasAccepted) func (_InterfaceDestination *InterfaceDestinationSession) AcceptAttestation(notaryIndex uint32, sigIndex *big.Int, attPayload []byte, agentRoot [32]byte, snapGas []*big.Int) (*types.Transaction, error) { return _InterfaceDestination.Contract.AcceptAttestation(&_InterfaceDestination.TransactOpts, notaryIndex, sigIndex, attPayload, agentRoot, snapGas) } // AcceptAttestation is a paid mutator transaction binding the contract method 0x39fe2736. // // Solidity: function acceptAttestation(uint32 notaryIndex, uint256 sigIndex, bytes attPayload, bytes32 agentRoot, uint128[] snapGas) returns(bool wasAccepted) func (_InterfaceDestination *InterfaceDestinationTransactorSession) AcceptAttestation(notaryIndex uint32, sigIndex *big.Int, attPayload []byte, agentRoot [32]byte, snapGas []*big.Int) (*types.Transaction, error) { return _InterfaceDestination.Contract.AcceptAttestation(&_InterfaceDestination.TransactOpts, notaryIndex, sigIndex, attPayload, agentRoot, snapGas) } // PassAgentRoot is a paid mutator transaction binding the contract method 0xa554d1e3. // // Solidity: function passAgentRoot() returns(bool rootPending) func (_InterfaceDestination *InterfaceDestinationTransactor) PassAgentRoot(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceDestination.contract.Transact(opts, "passAgentRoot") } // PassAgentRoot is a paid mutator transaction binding the contract method 0xa554d1e3. // // Solidity: function passAgentRoot() returns(bool rootPending) func (_InterfaceDestination *InterfaceDestinationSession) PassAgentRoot() (*types.Transaction, error) { return _InterfaceDestination.Contract.PassAgentRoot(&_InterfaceDestination.TransactOpts) } // PassAgentRoot is a paid mutator transaction binding the contract method 0xa554d1e3. // // Solidity: function passAgentRoot() returns(bool rootPending) func (_InterfaceDestination *InterfaceDestinationTransactorSession) PassAgentRoot() (*types.Transaction, error) { return _InterfaceDestination.Contract.PassAgentRoot(&_InterfaceDestination.TransactOpts) } // InterfaceLightManagerMetaData contains all meta data concerning the InterfaceLightManager contract. var InterfaceLightManagerMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[],\"name\":\"cancelProposedAgentRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"agentRoot_\",\"type\":\"bytes32\"}],\"name\":\"proposeAgentRootWhenStuck\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proposedAgentRootData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"agentRoot_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"proposedAt_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"msgOrigin\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"proofMaturity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"remoteWithdrawTips\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"magicValue\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resolveProposedAgentRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"agentRoot_\",\"type\":\"bytes32\"}],\"name\":\"setAgentRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enumAgentFlag\",\"name\":\"flag\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"domain\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"internalType\":\"structAgentStatus\",\"name\":\"status\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"proof\",\"type\":\"bytes32[]\"}],\"name\":\"updateAgentStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "91ea3c34": "cancelProposedAgentRoot()", "dbad9562": "proposeAgentRootWhenStuck(bytes32)", "5396feef": "proposedAgentRootData()", "1fa07138": "remoteWithdrawTips(uint32,uint256,address,uint256)", "38416281": "resolveProposedAgentRoot()", "58668176": "setAgentRoot(bytes32)", "cbd05965": "updateAgentStatus(address,(uint8,uint32,uint32),bytes32[])", }, } // InterfaceLightManagerABI is the input ABI used to generate the binding from. // Deprecated: Use InterfaceLightManagerMetaData.ABI instead. var InterfaceLightManagerABI = InterfaceLightManagerMetaData.ABI // Deprecated: Use InterfaceLightManagerMetaData.Sigs instead. // InterfaceLightManagerFuncSigs maps the 4-byte function signature to its string representation. var InterfaceLightManagerFuncSigs = InterfaceLightManagerMetaData.Sigs // InterfaceLightManager is an auto generated Go binding around an Ethereum contract. type InterfaceLightManager struct { InterfaceLightManagerCaller // Read-only binding to the contract InterfaceLightManagerTransactor // Write-only binding to the contract InterfaceLightManagerFilterer // Log filterer for contract events } // InterfaceLightManagerCaller is an auto generated read-only Go binding around an Ethereum contract. type InterfaceLightManagerCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceLightManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. type InterfaceLightManagerTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceLightManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type InterfaceLightManagerFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceLightManagerSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type InterfaceLightManagerSession struct { Contract *InterfaceLightManager // 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 } // InterfaceLightManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type InterfaceLightManagerCallerSession struct { Contract *InterfaceLightManagerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // InterfaceLightManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type InterfaceLightManagerTransactorSession struct { Contract *InterfaceLightManagerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // InterfaceLightManagerRaw is an auto generated low-level Go binding around an Ethereum contract. type InterfaceLightManagerRaw struct { Contract *InterfaceLightManager // Generic contract binding to access the raw methods on } // InterfaceLightManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type InterfaceLightManagerCallerRaw struct { Contract *InterfaceLightManagerCaller // Generic read-only contract binding to access the raw methods on } // InterfaceLightManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type InterfaceLightManagerTransactorRaw struct { Contract *InterfaceLightManagerTransactor // Generic write-only contract binding to access the raw methods on } // NewInterfaceLightManager creates a new instance of InterfaceLightManager, bound to a specific deployed contract. func NewInterfaceLightManager(address common.Address, backend bind.ContractBackend) (*InterfaceLightManager, error) { contract, err := bindInterfaceLightManager(address, backend, backend, backend) if err != nil { return nil, err } return &InterfaceLightManager{InterfaceLightManagerCaller: InterfaceLightManagerCaller{contract: contract}, InterfaceLightManagerTransactor: InterfaceLightManagerTransactor{contract: contract}, InterfaceLightManagerFilterer: InterfaceLightManagerFilterer{contract: contract}}, nil } // NewInterfaceLightManagerCaller creates a new read-only instance of InterfaceLightManager, bound to a specific deployed contract. func NewInterfaceLightManagerCaller(address common.Address, caller bind.ContractCaller) (*InterfaceLightManagerCaller, error) { contract, err := bindInterfaceLightManager(address, caller, nil, nil) if err != nil { return nil, err } return &InterfaceLightManagerCaller{contract: contract}, nil } // NewInterfaceLightManagerTransactor creates a new write-only instance of InterfaceLightManager, bound to a specific deployed contract. func NewInterfaceLightManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*InterfaceLightManagerTransactor, error) { contract, err := bindInterfaceLightManager(address, nil, transactor, nil) if err != nil { return nil, err } return &InterfaceLightManagerTransactor{contract: contract}, nil } // NewInterfaceLightManagerFilterer creates a new log filterer instance of InterfaceLightManager, bound to a specific deployed contract. func NewInterfaceLightManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*InterfaceLightManagerFilterer, error) { contract, err := bindInterfaceLightManager(address, nil, nil, filterer) if err != nil { return nil, err } return &InterfaceLightManagerFilterer{contract: contract}, nil } // bindInterfaceLightManager binds a generic wrapper to an already deployed contract. func bindInterfaceLightManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := InterfaceLightManagerMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_InterfaceLightManager *InterfaceLightManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceLightManager.Contract.InterfaceLightManagerCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceLightManager *InterfaceLightManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceLightManager.Contract.InterfaceLightManagerTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceLightManager *InterfaceLightManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceLightManager.Contract.InterfaceLightManagerTransactor.contract.Transact(opts, method, params...) } // 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 (_InterfaceLightManager *InterfaceLightManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceLightManager.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceLightManager *InterfaceLightManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceLightManager.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceLightManager *InterfaceLightManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceLightManager.Contract.contract.Transact(opts, method, params...) } // ProposedAgentRootData is a free data retrieval call binding the contract method 0x5396feef. // // Solidity: function proposedAgentRootData() view returns(bytes32 agentRoot_, uint256 proposedAt_) func (_InterfaceLightManager *InterfaceLightManagerCaller) ProposedAgentRootData(opts *bind.CallOpts) (struct { AgentRoot [32]byte ProposedAt *big.Int }, error) { var out []interface{} err := _InterfaceLightManager.contract.Call(opts, &out, "proposedAgentRootData") outstruct := new(struct { AgentRoot [32]byte ProposedAt *big.Int }) if err != nil { return *outstruct, err } outstruct.AgentRoot = *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) outstruct.ProposedAt = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) return *outstruct, err } // ProposedAgentRootData is a free data retrieval call binding the contract method 0x5396feef. // // Solidity: function proposedAgentRootData() view returns(bytes32 agentRoot_, uint256 proposedAt_) func (_InterfaceLightManager *InterfaceLightManagerSession) ProposedAgentRootData() (struct { AgentRoot [32]byte ProposedAt *big.Int }, error) { return _InterfaceLightManager.Contract.ProposedAgentRootData(&_InterfaceLightManager.CallOpts) } // ProposedAgentRootData is a free data retrieval call binding the contract method 0x5396feef. // // Solidity: function proposedAgentRootData() view returns(bytes32 agentRoot_, uint256 proposedAt_) func (_InterfaceLightManager *InterfaceLightManagerCallerSession) ProposedAgentRootData() (struct { AgentRoot [32]byte ProposedAt *big.Int }, error) { return _InterfaceLightManager.Contract.ProposedAgentRootData(&_InterfaceLightManager.CallOpts) } // CancelProposedAgentRoot is a paid mutator transaction binding the contract method 0x91ea3c34. // // Solidity: function cancelProposedAgentRoot() returns() func (_InterfaceLightManager *InterfaceLightManagerTransactor) CancelProposedAgentRoot(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceLightManager.contract.Transact(opts, "cancelProposedAgentRoot") } // CancelProposedAgentRoot is a paid mutator transaction binding the contract method 0x91ea3c34. // // Solidity: function cancelProposedAgentRoot() returns() func (_InterfaceLightManager *InterfaceLightManagerSession) CancelProposedAgentRoot() (*types.Transaction, error) { return _InterfaceLightManager.Contract.CancelProposedAgentRoot(&_InterfaceLightManager.TransactOpts) } // CancelProposedAgentRoot is a paid mutator transaction binding the contract method 0x91ea3c34. // // Solidity: function cancelProposedAgentRoot() returns() func (_InterfaceLightManager *InterfaceLightManagerTransactorSession) CancelProposedAgentRoot() (*types.Transaction, error) { return _InterfaceLightManager.Contract.CancelProposedAgentRoot(&_InterfaceLightManager.TransactOpts) } // ProposeAgentRootWhenStuck is a paid mutator transaction binding the contract method 0xdbad9562. // // Solidity: function proposeAgentRootWhenStuck(bytes32 agentRoot_) returns() func (_InterfaceLightManager *InterfaceLightManagerTransactor) ProposeAgentRootWhenStuck(opts *bind.TransactOpts, agentRoot_ [32]byte) (*types.Transaction, error) { return _InterfaceLightManager.contract.Transact(opts, "proposeAgentRootWhenStuck", agentRoot_) } // ProposeAgentRootWhenStuck is a paid mutator transaction binding the contract method 0xdbad9562. // // Solidity: function proposeAgentRootWhenStuck(bytes32 agentRoot_) returns() func (_InterfaceLightManager *InterfaceLightManagerSession) ProposeAgentRootWhenStuck(agentRoot_ [32]byte) (*types.Transaction, error) { return _InterfaceLightManager.Contract.ProposeAgentRootWhenStuck(&_InterfaceLightManager.TransactOpts, agentRoot_) } // ProposeAgentRootWhenStuck is a paid mutator transaction binding the contract method 0xdbad9562. // // Solidity: function proposeAgentRootWhenStuck(bytes32 agentRoot_) returns() func (_InterfaceLightManager *InterfaceLightManagerTransactorSession) ProposeAgentRootWhenStuck(agentRoot_ [32]byte) (*types.Transaction, error) { return _InterfaceLightManager.Contract.ProposeAgentRootWhenStuck(&_InterfaceLightManager.TransactOpts, agentRoot_) } // RemoteWithdrawTips is a paid mutator transaction binding the contract method 0x1fa07138. // // Solidity: function remoteWithdrawTips(uint32 msgOrigin, uint256 proofMaturity, address recipient, uint256 amount) returns(bytes4 magicValue) func (_InterfaceLightManager *InterfaceLightManagerTransactor) RemoteWithdrawTips(opts *bind.TransactOpts, msgOrigin uint32, proofMaturity *big.Int, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _InterfaceLightManager.contract.Transact(opts, "remoteWithdrawTips", msgOrigin, proofMaturity, recipient, amount) } // RemoteWithdrawTips is a paid mutator transaction binding the contract method 0x1fa07138. // // Solidity: function remoteWithdrawTips(uint32 msgOrigin, uint256 proofMaturity, address recipient, uint256 amount) returns(bytes4 magicValue) func (_InterfaceLightManager *InterfaceLightManagerSession) RemoteWithdrawTips(msgOrigin uint32, proofMaturity *big.Int, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _InterfaceLightManager.Contract.RemoteWithdrawTips(&_InterfaceLightManager.TransactOpts, msgOrigin, proofMaturity, recipient, amount) } // RemoteWithdrawTips is a paid mutator transaction binding the contract method 0x1fa07138. // // Solidity: function remoteWithdrawTips(uint32 msgOrigin, uint256 proofMaturity, address recipient, uint256 amount) returns(bytes4 magicValue) func (_InterfaceLightManager *InterfaceLightManagerTransactorSession) RemoteWithdrawTips(msgOrigin uint32, proofMaturity *big.Int, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _InterfaceLightManager.Contract.RemoteWithdrawTips(&_InterfaceLightManager.TransactOpts, msgOrigin, proofMaturity, recipient, amount) } // ResolveProposedAgentRoot is a paid mutator transaction binding the contract method 0x38416281. // // Solidity: function resolveProposedAgentRoot() returns() func (_InterfaceLightManager *InterfaceLightManagerTransactor) ResolveProposedAgentRoot(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceLightManager.contract.Transact(opts, "resolveProposedAgentRoot") } // ResolveProposedAgentRoot is a paid mutator transaction binding the contract method 0x38416281. // // Solidity: function resolveProposedAgentRoot() returns() func (_InterfaceLightManager *InterfaceLightManagerSession) ResolveProposedAgentRoot() (*types.Transaction, error) { return _InterfaceLightManager.Contract.ResolveProposedAgentRoot(&_InterfaceLightManager.TransactOpts) } // ResolveProposedAgentRoot is a paid mutator transaction binding the contract method 0x38416281. // // Solidity: function resolveProposedAgentRoot() returns() func (_InterfaceLightManager *InterfaceLightManagerTransactorSession) ResolveProposedAgentRoot() (*types.Transaction, error) { return _InterfaceLightManager.Contract.ResolveProposedAgentRoot(&_InterfaceLightManager.TransactOpts) } // SetAgentRoot is a paid mutator transaction binding the contract method 0x58668176. // // Solidity: function setAgentRoot(bytes32 agentRoot_) returns() func (_InterfaceLightManager *InterfaceLightManagerTransactor) SetAgentRoot(opts *bind.TransactOpts, agentRoot_ [32]byte) (*types.Transaction, error) { return _InterfaceLightManager.contract.Transact(opts, "setAgentRoot", agentRoot_) } // SetAgentRoot is a paid mutator transaction binding the contract method 0x58668176. // // Solidity: function setAgentRoot(bytes32 agentRoot_) returns() func (_InterfaceLightManager *InterfaceLightManagerSession) SetAgentRoot(agentRoot_ [32]byte) (*types.Transaction, error) { return _InterfaceLightManager.Contract.SetAgentRoot(&_InterfaceLightManager.TransactOpts, agentRoot_) } // SetAgentRoot is a paid mutator transaction binding the contract method 0x58668176. // // Solidity: function setAgentRoot(bytes32 agentRoot_) returns() func (_InterfaceLightManager *InterfaceLightManagerTransactorSession) SetAgentRoot(agentRoot_ [32]byte) (*types.Transaction, error) { return _InterfaceLightManager.Contract.SetAgentRoot(&_InterfaceLightManager.TransactOpts, agentRoot_) } // UpdateAgentStatus is a paid mutator transaction binding the contract method 0xcbd05965. // // Solidity: function updateAgentStatus(address agent, (uint8,uint32,uint32) status, bytes32[] proof) returns() func (_InterfaceLightManager *InterfaceLightManagerTransactor) UpdateAgentStatus(opts *bind.TransactOpts, agent common.Address, status AgentStatus, proof [][32]byte) (*types.Transaction, error) { return _InterfaceLightManager.contract.Transact(opts, "updateAgentStatus", agent, status, proof) } // UpdateAgentStatus is a paid mutator transaction binding the contract method 0xcbd05965. // // Solidity: function updateAgentStatus(address agent, (uint8,uint32,uint32) status, bytes32[] proof) returns() func (_InterfaceLightManager *InterfaceLightManagerSession) UpdateAgentStatus(agent common.Address, status AgentStatus, proof [][32]byte) (*types.Transaction, error) { return _InterfaceLightManager.Contract.UpdateAgentStatus(&_InterfaceLightManager.TransactOpts, agent, status, proof) } // UpdateAgentStatus is a paid mutator transaction binding the contract method 0xcbd05965. // // Solidity: function updateAgentStatus(address agent, (uint8,uint32,uint32) status, bytes32[] proof) returns() func (_InterfaceLightManager *InterfaceLightManagerTransactorSession) UpdateAgentStatus(agent common.Address, status AgentStatus, proof [][32]byte) (*types.Transaction, error) { return _InterfaceLightManager.Contract.UpdateAgentStatus(&_InterfaceLightManager.TransactOpts, agent, status, proof) } // InterfaceOriginMetaData contains all meta data concerning the InterfaceOrigin contract. var InterfaceOriginMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destination\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"paddedRequest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"contentLength\",\"type\":\"uint256\"}],\"name\":\"getMinimumTipsValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tipsValue\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destination\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"optimisticPeriod\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"paddedRequest\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"content\",\"type\":\"bytes\"}],\"name\":\"sendBaseMessage\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"messageNonce\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"messageHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destination\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"optimisticPeriod\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"}],\"name\":\"sendManagerMessage\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"messageNonce\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"messageHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTips\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "4fc6ad85": "getMinimumTipsValue(uint32,uint256,uint256)", "873661bd": "sendBaseMessage(uint32,bytes32,uint32,uint256,bytes)", "a1c702a7": "sendManagerMessage(uint32,uint32,bytes)", "4e04e7a7": "withdrawTips(address,uint256)", }, } // InterfaceOriginABI is the input ABI used to generate the binding from. // Deprecated: Use InterfaceOriginMetaData.ABI instead. var InterfaceOriginABI = InterfaceOriginMetaData.ABI // Deprecated: Use InterfaceOriginMetaData.Sigs instead. // InterfaceOriginFuncSigs maps the 4-byte function signature to its string representation. var InterfaceOriginFuncSigs = InterfaceOriginMetaData.Sigs // InterfaceOrigin is an auto generated Go binding around an Ethereum contract. type InterfaceOrigin struct { InterfaceOriginCaller // Read-only binding to the contract InterfaceOriginTransactor // Write-only binding to the contract InterfaceOriginFilterer // Log filterer for contract events } // InterfaceOriginCaller is an auto generated read-only Go binding around an Ethereum contract. type InterfaceOriginCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceOriginTransactor is an auto generated write-only Go binding around an Ethereum contract. type InterfaceOriginTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceOriginFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type InterfaceOriginFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // InterfaceOriginSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type InterfaceOriginSession struct { Contract *InterfaceOrigin // 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 } // InterfaceOriginCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type InterfaceOriginCallerSession struct { Contract *InterfaceOriginCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // InterfaceOriginTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type InterfaceOriginTransactorSession struct { Contract *InterfaceOriginTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // InterfaceOriginRaw is an auto generated low-level Go binding around an Ethereum contract. type InterfaceOriginRaw struct { Contract *InterfaceOrigin // Generic contract binding to access the raw methods on } // InterfaceOriginCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type InterfaceOriginCallerRaw struct { Contract *InterfaceOriginCaller // Generic read-only contract binding to access the raw methods on } // InterfaceOriginTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type InterfaceOriginTransactorRaw struct { Contract *InterfaceOriginTransactor // Generic write-only contract binding to access the raw methods on } // NewInterfaceOrigin creates a new instance of InterfaceOrigin, bound to a specific deployed contract. func NewInterfaceOrigin(address common.Address, backend bind.ContractBackend) (*InterfaceOrigin, error) { contract, err := bindInterfaceOrigin(address, backend, backend, backend) if err != nil { return nil, err } return &InterfaceOrigin{InterfaceOriginCaller: InterfaceOriginCaller{contract: contract}, InterfaceOriginTransactor: InterfaceOriginTransactor{contract: contract}, InterfaceOriginFilterer: InterfaceOriginFilterer{contract: contract}}, nil } // NewInterfaceOriginCaller creates a new read-only instance of InterfaceOrigin, bound to a specific deployed contract. func NewInterfaceOriginCaller(address common.Address, caller bind.ContractCaller) (*InterfaceOriginCaller, error) { contract, err := bindInterfaceOrigin(address, caller, nil, nil) if err != nil { return nil, err } return &InterfaceOriginCaller{contract: contract}, nil } // NewInterfaceOriginTransactor creates a new write-only instance of InterfaceOrigin, bound to a specific deployed contract. func NewInterfaceOriginTransactor(address common.Address, transactor bind.ContractTransactor) (*InterfaceOriginTransactor, error) { contract, err := bindInterfaceOrigin(address, nil, transactor, nil) if err != nil { return nil, err } return &InterfaceOriginTransactor{contract: contract}, nil } // NewInterfaceOriginFilterer creates a new log filterer instance of InterfaceOrigin, bound to a specific deployed contract. func NewInterfaceOriginFilterer(address common.Address, filterer bind.ContractFilterer) (*InterfaceOriginFilterer, error) { contract, err := bindInterfaceOrigin(address, nil, nil, filterer) if err != nil { return nil, err } return &InterfaceOriginFilterer{contract: contract}, nil } // bindInterfaceOrigin binds a generic wrapper to an already deployed contract. func bindInterfaceOrigin(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := InterfaceOriginMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_InterfaceOrigin *InterfaceOriginRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceOrigin.Contract.InterfaceOriginCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceOrigin *InterfaceOriginRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceOrigin.Contract.InterfaceOriginTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceOrigin *InterfaceOriginRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceOrigin.Contract.InterfaceOriginTransactor.contract.Transact(opts, method, params...) } // 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 (_InterfaceOrigin *InterfaceOriginCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _InterfaceOrigin.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_InterfaceOrigin *InterfaceOriginTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _InterfaceOrigin.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_InterfaceOrigin *InterfaceOriginTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _InterfaceOrigin.Contract.contract.Transact(opts, method, params...) } // GetMinimumTipsValue is a free data retrieval call binding the contract method 0x4fc6ad85. // // Solidity: function getMinimumTipsValue(uint32 destination, uint256 paddedRequest, uint256 contentLength) view returns(uint256 tipsValue) func (_InterfaceOrigin *InterfaceOriginCaller) GetMinimumTipsValue(opts *bind.CallOpts, destination uint32, paddedRequest *big.Int, contentLength *big.Int) (*big.Int, error) { var out []interface{} err := _InterfaceOrigin.contract.Call(opts, &out, "getMinimumTipsValue", destination, paddedRequest, contentLength) if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // GetMinimumTipsValue is a free data retrieval call binding the contract method 0x4fc6ad85. // // Solidity: function getMinimumTipsValue(uint32 destination, uint256 paddedRequest, uint256 contentLength) view returns(uint256 tipsValue) func (_InterfaceOrigin *InterfaceOriginSession) GetMinimumTipsValue(destination uint32, paddedRequest *big.Int, contentLength *big.Int) (*big.Int, error) { return _InterfaceOrigin.Contract.GetMinimumTipsValue(&_InterfaceOrigin.CallOpts, destination, paddedRequest, contentLength) } // GetMinimumTipsValue is a free data retrieval call binding the contract method 0x4fc6ad85. // // Solidity: function getMinimumTipsValue(uint32 destination, uint256 paddedRequest, uint256 contentLength) view returns(uint256 tipsValue) func (_InterfaceOrigin *InterfaceOriginCallerSession) GetMinimumTipsValue(destination uint32, paddedRequest *big.Int, contentLength *big.Int) (*big.Int, error) { return _InterfaceOrigin.Contract.GetMinimumTipsValue(&_InterfaceOrigin.CallOpts, destination, paddedRequest, contentLength) } // SendBaseMessage is a paid mutator transaction binding the contract method 0x873661bd. // // Solidity: function sendBaseMessage(uint32 destination, bytes32 recipient, uint32 optimisticPeriod, uint256 paddedRequest, bytes content) payable returns(uint32 messageNonce, bytes32 messageHash) func (_InterfaceOrigin *InterfaceOriginTransactor) SendBaseMessage(opts *bind.TransactOpts, destination uint32, recipient [32]byte, optimisticPeriod uint32, paddedRequest *big.Int, content []byte) (*types.Transaction, error) { return _InterfaceOrigin.contract.Transact(opts, "sendBaseMessage", destination, recipient, optimisticPeriod, paddedRequest, content) } // SendBaseMessage is a paid mutator transaction binding the contract method 0x873661bd. // // Solidity: function sendBaseMessage(uint32 destination, bytes32 recipient, uint32 optimisticPeriod, uint256 paddedRequest, bytes content) payable returns(uint32 messageNonce, bytes32 messageHash) func (_InterfaceOrigin *InterfaceOriginSession) SendBaseMessage(destination uint32, recipient [32]byte, optimisticPeriod uint32, paddedRequest *big.Int, content []byte) (*types.Transaction, error) { return _InterfaceOrigin.Contract.SendBaseMessage(&_InterfaceOrigin.TransactOpts, destination, recipient, optimisticPeriod, paddedRequest, content) } // SendBaseMessage is a paid mutator transaction binding the contract method 0x873661bd. // // Solidity: function sendBaseMessage(uint32 destination, bytes32 recipient, uint32 optimisticPeriod, uint256 paddedRequest, bytes content) payable returns(uint32 messageNonce, bytes32 messageHash) func (_InterfaceOrigin *InterfaceOriginTransactorSession) SendBaseMessage(destination uint32, recipient [32]byte, optimisticPeriod uint32, paddedRequest *big.Int, content []byte) (*types.Transaction, error) { return _InterfaceOrigin.Contract.SendBaseMessage(&_InterfaceOrigin.TransactOpts, destination, recipient, optimisticPeriod, paddedRequest, content) } // SendManagerMessage is a paid mutator transaction binding the contract method 0xa1c702a7. // // Solidity: function sendManagerMessage(uint32 destination, uint32 optimisticPeriod, bytes payload) returns(uint32 messageNonce, bytes32 messageHash) func (_InterfaceOrigin *InterfaceOriginTransactor) SendManagerMessage(opts *bind.TransactOpts, destination uint32, optimisticPeriod uint32, payload []byte) (*types.Transaction, error) { return _InterfaceOrigin.contract.Transact(opts, "sendManagerMessage", destination, optimisticPeriod, payload) } // SendManagerMessage is a paid mutator transaction binding the contract method 0xa1c702a7. // // Solidity: function sendManagerMessage(uint32 destination, uint32 optimisticPeriod, bytes payload) returns(uint32 messageNonce, bytes32 messageHash) func (_InterfaceOrigin *InterfaceOriginSession) SendManagerMessage(destination uint32, optimisticPeriod uint32, payload []byte) (*types.Transaction, error) { return _InterfaceOrigin.Contract.SendManagerMessage(&_InterfaceOrigin.TransactOpts, destination, optimisticPeriod, payload) } // SendManagerMessage is a paid mutator transaction binding the contract method 0xa1c702a7. // // Solidity: function sendManagerMessage(uint32 destination, uint32 optimisticPeriod, bytes payload) returns(uint32 messageNonce, bytes32 messageHash) func (_InterfaceOrigin *InterfaceOriginTransactorSession) SendManagerMessage(destination uint32, optimisticPeriod uint32, payload []byte) (*types.Transaction, error) { return _InterfaceOrigin.Contract.SendManagerMessage(&_InterfaceOrigin.TransactOpts, destination, optimisticPeriod, payload) } // WithdrawTips is a paid mutator transaction binding the contract method 0x4e04e7a7. // // Solidity: function withdrawTips(address recipient, uint256 amount) returns() func (_InterfaceOrigin *InterfaceOriginTransactor) WithdrawTips(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _InterfaceOrigin.contract.Transact(opts, "withdrawTips", recipient, amount) } // WithdrawTips is a paid mutator transaction binding the contract method 0x4e04e7a7. // // Solidity: function withdrawTips(address recipient, uint256 amount) returns() func (_InterfaceOrigin *InterfaceOriginSession) WithdrawTips(recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _InterfaceOrigin.Contract.WithdrawTips(&_InterfaceOrigin.TransactOpts, recipient, amount) } // WithdrawTips is a paid mutator transaction binding the contract method 0x4e04e7a7. // // Solidity: function withdrawTips(address recipient, uint256 amount) returns() func (_InterfaceOrigin *InterfaceOriginTransactorSession) WithdrawTips(recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _InterfaceOrigin.Contract.WithdrawTips(&_InterfaceOrigin.TransactOpts, recipient, amount) } // MerkleMathMetaData contains all meta data concerning the MerkleMath contract. var MerkleMathMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122061ba8b3c76c98b21e21b78ca5cd2fdf84d5c17c3dc845389a38a8567f24c371f64736f6c63430008110033", } // MerkleMathABI is the input ABI used to generate the binding from. // Deprecated: Use MerkleMathMetaData.ABI instead. var MerkleMathABI = MerkleMathMetaData.ABI // MerkleMathBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use MerkleMathMetaData.Bin instead. var MerkleMathBin = MerkleMathMetaData.Bin // DeployMerkleMath deploys a new Ethereum contract, binding an instance of MerkleMath to it. func DeployMerkleMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *MerkleMath, error) { parsed, err := MerkleMathMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(MerkleMathBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &MerkleMath{MerkleMathCaller: MerkleMathCaller{contract: contract}, MerkleMathTransactor: MerkleMathTransactor{contract: contract}, MerkleMathFilterer: MerkleMathFilterer{contract: contract}}, nil } // MerkleMath is an auto generated Go binding around an Ethereum contract. type MerkleMath struct { MerkleMathCaller // Read-only binding to the contract MerkleMathTransactor // Write-only binding to the contract MerkleMathFilterer // Log filterer for contract events } // MerkleMathCaller is an auto generated read-only Go binding around an Ethereum contract. type MerkleMathCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MerkleMathTransactor is an auto generated write-only Go binding around an Ethereum contract. type MerkleMathTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MerkleMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type MerkleMathFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MerkleMathSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type MerkleMathSession struct { Contract *MerkleMath // 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 } // MerkleMathCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type MerkleMathCallerSession struct { Contract *MerkleMathCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // MerkleMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type MerkleMathTransactorSession struct { Contract *MerkleMathTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // MerkleMathRaw is an auto generated low-level Go binding around an Ethereum contract. type MerkleMathRaw struct { Contract *MerkleMath // Generic contract binding to access the raw methods on } // MerkleMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type MerkleMathCallerRaw struct { Contract *MerkleMathCaller // Generic read-only contract binding to access the raw methods on } // MerkleMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type MerkleMathTransactorRaw struct { Contract *MerkleMathTransactor // Generic write-only contract binding to access the raw methods on } // NewMerkleMath creates a new instance of MerkleMath, bound to a specific deployed contract. func NewMerkleMath(address common.Address, backend bind.ContractBackend) (*MerkleMath, error) { contract, err := bindMerkleMath(address, backend, backend, backend) if err != nil { return nil, err } return &MerkleMath{MerkleMathCaller: MerkleMathCaller{contract: contract}, MerkleMathTransactor: MerkleMathTransactor{contract: contract}, MerkleMathFilterer: MerkleMathFilterer{contract: contract}}, nil } // NewMerkleMathCaller creates a new read-only instance of MerkleMath, bound to a specific deployed contract. func NewMerkleMathCaller(address common.Address, caller bind.ContractCaller) (*MerkleMathCaller, error) { contract, err := bindMerkleMath(address, caller, nil, nil) if err != nil { return nil, err } return &MerkleMathCaller{contract: contract}, nil } // NewMerkleMathTransactor creates a new write-only instance of MerkleMath, bound to a specific deployed contract. func NewMerkleMathTransactor(address common.Address, transactor bind.ContractTransactor) (*MerkleMathTransactor, error) { contract, err := bindMerkleMath(address, nil, transactor, nil) if err != nil { return nil, err } return &MerkleMathTransactor{contract: contract}, nil } // NewMerkleMathFilterer creates a new log filterer instance of MerkleMath, bound to a specific deployed contract. func NewMerkleMathFilterer(address common.Address, filterer bind.ContractFilterer) (*MerkleMathFilterer, error) { contract, err := bindMerkleMath(address, nil, nil, filterer) if err != nil { return nil, err } return &MerkleMathFilterer{contract: contract}, nil } // bindMerkleMath binds a generic wrapper to an already deployed contract. func bindMerkleMath(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := MerkleMathMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_MerkleMath *MerkleMathRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MerkleMath.Contract.MerkleMathCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MerkleMath *MerkleMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MerkleMath.Contract.MerkleMathTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MerkleMath *MerkleMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MerkleMath.Contract.MerkleMathTransactor.contract.Transact(opts, method, params...) } // 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 (_MerkleMath *MerkleMathCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MerkleMath.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MerkleMath *MerkleMathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MerkleMath.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MerkleMath *MerkleMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MerkleMath.Contract.contract.Transact(opts, method, params...) } // MerkleTreeMetaData contains all meta data concerning the MerkleTree contract. var MerkleTreeMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212208475008028fc5876c42ab628db53a3c7d5025007aca5e80400c6afd75078586664736f6c63430008110033", } // MerkleTreeABI is the input ABI used to generate the binding from. // Deprecated: Use MerkleTreeMetaData.ABI instead. var MerkleTreeABI = MerkleTreeMetaData.ABI // MerkleTreeBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use MerkleTreeMetaData.Bin instead. var MerkleTreeBin = MerkleTreeMetaData.Bin // DeployMerkleTree deploys a new Ethereum contract, binding an instance of MerkleTree to it. func DeployMerkleTree(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *MerkleTree, error) { parsed, err := MerkleTreeMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(MerkleTreeBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &MerkleTree{MerkleTreeCaller: MerkleTreeCaller{contract: contract}, MerkleTreeTransactor: MerkleTreeTransactor{contract: contract}, MerkleTreeFilterer: MerkleTreeFilterer{contract: contract}}, nil } // MerkleTree is an auto generated Go binding around an Ethereum contract. type MerkleTree struct { MerkleTreeCaller // Read-only binding to the contract MerkleTreeTransactor // Write-only binding to the contract MerkleTreeFilterer // Log filterer for contract events } // MerkleTreeCaller is an auto generated read-only Go binding around an Ethereum contract. type MerkleTreeCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MerkleTreeTransactor is an auto generated write-only Go binding around an Ethereum contract. type MerkleTreeTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MerkleTreeFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type MerkleTreeFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MerkleTreeSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type MerkleTreeSession struct { Contract *MerkleTree // 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 } // MerkleTreeCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type MerkleTreeCallerSession struct { Contract *MerkleTreeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // MerkleTreeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type MerkleTreeTransactorSession struct { Contract *MerkleTreeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // MerkleTreeRaw is an auto generated low-level Go binding around an Ethereum contract. type MerkleTreeRaw struct { Contract *MerkleTree // Generic contract binding to access the raw methods on } // MerkleTreeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type MerkleTreeCallerRaw struct { Contract *MerkleTreeCaller // Generic read-only contract binding to access the raw methods on } // MerkleTreeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type MerkleTreeTransactorRaw struct { Contract *MerkleTreeTransactor // Generic write-only contract binding to access the raw methods on } // NewMerkleTree creates a new instance of MerkleTree, bound to a specific deployed contract. func NewMerkleTree(address common.Address, backend bind.ContractBackend) (*MerkleTree, error) { contract, err := bindMerkleTree(address, backend, backend, backend) if err != nil { return nil, err } return &MerkleTree{MerkleTreeCaller: MerkleTreeCaller{contract: contract}, MerkleTreeTransactor: MerkleTreeTransactor{contract: contract}, MerkleTreeFilterer: MerkleTreeFilterer{contract: contract}}, nil } // NewMerkleTreeCaller creates a new read-only instance of MerkleTree, bound to a specific deployed contract. func NewMerkleTreeCaller(address common.Address, caller bind.ContractCaller) (*MerkleTreeCaller, error) { contract, err := bindMerkleTree(address, caller, nil, nil) if err != nil { return nil, err } return &MerkleTreeCaller{contract: contract}, nil } // NewMerkleTreeTransactor creates a new write-only instance of MerkleTree, bound to a specific deployed contract. func NewMerkleTreeTransactor(address common.Address, transactor bind.ContractTransactor) (*MerkleTreeTransactor, error) { contract, err := bindMerkleTree(address, nil, transactor, nil) if err != nil { return nil, err } return &MerkleTreeTransactor{contract: contract}, nil } // NewMerkleTreeFilterer creates a new log filterer instance of MerkleTree, bound to a specific deployed contract. func NewMerkleTreeFilterer(address common.Address, filterer bind.ContractFilterer) (*MerkleTreeFilterer, error) { contract, err := bindMerkleTree(address, nil, nil, filterer) if err != nil { return nil, err } return &MerkleTreeFilterer{contract: contract}, nil } // bindMerkleTree binds a generic wrapper to an already deployed contract. func bindMerkleTree(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := MerkleTreeMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_MerkleTree *MerkleTreeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MerkleTree.Contract.MerkleTreeCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MerkleTree *MerkleTreeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MerkleTree.Contract.MerkleTreeTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MerkleTree *MerkleTreeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MerkleTree.Contract.MerkleTreeTransactor.contract.Transact(opts, method, params...) } // 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 (_MerkleTree *MerkleTreeCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MerkleTree.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MerkleTree *MerkleTreeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MerkleTree.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MerkleTree *MerkleTreeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MerkleTree.Contract.contract.Transact(opts, method, params...) } // MessagingBaseMetaData contains all meta data concerning the MessagingBase contract. var MessagingBaseMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[],\"name\":\"IncorrectVersionLength\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"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\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"localDomain\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"multicall\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Result[]\",\"name\":\"callResults\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"synapseDomain\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"versionString\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", Sigs: map[string]string{ "79ba5097": "acceptOwnership()", "8d3638f4": "localDomain()", "60fc8466": "multicall((bool,bytes)[])", "8da5cb5b": "owner()", "e30c3978": "pendingOwner()", "715018a6": "renounceOwnership()", "717b8638": "synapseDomain()", "f2fde38b": "transferOwnership(address)", "54fd4d50": "version()", }, } // MessagingBaseABI is the input ABI used to generate the binding from. // Deprecated: Use MessagingBaseMetaData.ABI instead. var MessagingBaseABI = MessagingBaseMetaData.ABI // Deprecated: Use MessagingBaseMetaData.Sigs instead. // MessagingBaseFuncSigs maps the 4-byte function signature to its string representation. var MessagingBaseFuncSigs = MessagingBaseMetaData.Sigs // MessagingBase is an auto generated Go binding around an Ethereum contract. type MessagingBase struct { MessagingBaseCaller // Read-only binding to the contract MessagingBaseTransactor // Write-only binding to the contract MessagingBaseFilterer // Log filterer for contract events } // MessagingBaseCaller is an auto generated read-only Go binding around an Ethereum contract. type MessagingBaseCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MessagingBaseTransactor is an auto generated write-only Go binding around an Ethereum contract. type MessagingBaseTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MessagingBaseFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type MessagingBaseFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MessagingBaseSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type MessagingBaseSession struct { Contract *MessagingBase // 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 } // MessagingBaseCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type MessagingBaseCallerSession struct { Contract *MessagingBaseCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // MessagingBaseTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type MessagingBaseTransactorSession struct { Contract *MessagingBaseTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // MessagingBaseRaw is an auto generated low-level Go binding around an Ethereum contract. type MessagingBaseRaw struct { Contract *MessagingBase // Generic contract binding to access the raw methods on } // MessagingBaseCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type MessagingBaseCallerRaw struct { Contract *MessagingBaseCaller // Generic read-only contract binding to access the raw methods on } // MessagingBaseTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type MessagingBaseTransactorRaw struct { Contract *MessagingBaseTransactor // Generic write-only contract binding to access the raw methods on } // NewMessagingBase creates a new instance of MessagingBase, bound to a specific deployed contract. func NewMessagingBase(address common.Address, backend bind.ContractBackend) (*MessagingBase, error) { contract, err := bindMessagingBase(address, backend, backend, backend) if err != nil { return nil, err } return &MessagingBase{MessagingBaseCaller: MessagingBaseCaller{contract: contract}, MessagingBaseTransactor: MessagingBaseTransactor{contract: contract}, MessagingBaseFilterer: MessagingBaseFilterer{contract: contract}}, nil } // NewMessagingBaseCaller creates a new read-only instance of MessagingBase, bound to a specific deployed contract. func NewMessagingBaseCaller(address common.Address, caller bind.ContractCaller) (*MessagingBaseCaller, error) { contract, err := bindMessagingBase(address, caller, nil, nil) if err != nil { return nil, err } return &MessagingBaseCaller{contract: contract}, nil } // NewMessagingBaseTransactor creates a new write-only instance of MessagingBase, bound to a specific deployed contract. func NewMessagingBaseTransactor(address common.Address, transactor bind.ContractTransactor) (*MessagingBaseTransactor, error) { contract, err := bindMessagingBase(address, nil, transactor, nil) if err != nil { return nil, err } return &MessagingBaseTransactor{contract: contract}, nil } // NewMessagingBaseFilterer creates a new log filterer instance of MessagingBase, bound to a specific deployed contract. func NewMessagingBaseFilterer(address common.Address, filterer bind.ContractFilterer) (*MessagingBaseFilterer, error) { contract, err := bindMessagingBase(address, nil, nil, filterer) if err != nil { return nil, err } return &MessagingBaseFilterer{contract: contract}, nil } // bindMessagingBase binds a generic wrapper to an already deployed contract. func bindMessagingBase(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := MessagingBaseMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_MessagingBase *MessagingBaseRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MessagingBase.Contract.MessagingBaseCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MessagingBase *MessagingBaseRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MessagingBase.Contract.MessagingBaseTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MessagingBase *MessagingBaseRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MessagingBase.Contract.MessagingBaseTransactor.contract.Transact(opts, method, params...) } // 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 (_MessagingBase *MessagingBaseCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MessagingBase.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MessagingBase *MessagingBaseTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MessagingBase.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MessagingBase *MessagingBaseTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MessagingBase.Contract.contract.Transact(opts, method, params...) } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_MessagingBase *MessagingBaseCaller) LocalDomain(opts *bind.CallOpts) (uint32, error) { var out []interface{} err := _MessagingBase.contract.Call(opts, &out, "localDomain") if err != nil { return *new(uint32), err } out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) return out0, err } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_MessagingBase *MessagingBaseSession) LocalDomain() (uint32, error) { return _MessagingBase.Contract.LocalDomain(&_MessagingBase.CallOpts) } // LocalDomain is a free data retrieval call binding the contract method 0x8d3638f4. // // Solidity: function localDomain() view returns(uint32) func (_MessagingBase *MessagingBaseCallerSession) LocalDomain() (uint32, error) { return _MessagingBase.Contract.LocalDomain(&_MessagingBase.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_MessagingBase *MessagingBaseCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _MessagingBase.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_MessagingBase *MessagingBaseSession) Owner() (common.Address, error) { return _MessagingBase.Contract.Owner(&_MessagingBase.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_MessagingBase *MessagingBaseCallerSession) Owner() (common.Address, error) { return _MessagingBase.Contract.Owner(&_MessagingBase.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_MessagingBase *MessagingBaseCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _MessagingBase.contract.Call(opts, &out, "pendingOwner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_MessagingBase *MessagingBaseSession) PendingOwner() (common.Address, error) { return _MessagingBase.Contract.PendingOwner(&_MessagingBase.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_MessagingBase *MessagingBaseCallerSession) PendingOwner() (common.Address, error) { return _MessagingBase.Contract.PendingOwner(&_MessagingBase.CallOpts) } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_MessagingBase *MessagingBaseCaller) SynapseDomain(opts *bind.CallOpts) (uint32, error) { var out []interface{} err := _MessagingBase.contract.Call(opts, &out, "synapseDomain") if err != nil { return *new(uint32), err } out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32) return out0, err } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_MessagingBase *MessagingBaseSession) SynapseDomain() (uint32, error) { return _MessagingBase.Contract.SynapseDomain(&_MessagingBase.CallOpts) } // SynapseDomain is a free data retrieval call binding the contract method 0x717b8638. // // Solidity: function synapseDomain() view returns(uint32) func (_MessagingBase *MessagingBaseCallerSession) SynapseDomain() (uint32, error) { return _MessagingBase.Contract.SynapseDomain(&_MessagingBase.CallOpts) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_MessagingBase *MessagingBaseCaller) Version(opts *bind.CallOpts) (string, error) { var out []interface{} err := _MessagingBase.contract.Call(opts, &out, "version") if err != nil { return *new(string), err } out0 := *abi.ConvertType(out[0], new(string)).(*string) return out0, err } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_MessagingBase *MessagingBaseSession) Version() (string, error) { return _MessagingBase.Contract.Version(&_MessagingBase.CallOpts) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_MessagingBase *MessagingBaseCallerSession) Version() (string, error) { return _MessagingBase.Contract.Version(&_MessagingBase.CallOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_MessagingBase *MessagingBaseTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _MessagingBase.contract.Transact(opts, "acceptOwnership") } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_MessagingBase *MessagingBaseSession) AcceptOwnership() (*types.Transaction, error) { return _MessagingBase.Contract.AcceptOwnership(&_MessagingBase.TransactOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_MessagingBase *MessagingBaseTransactorSession) AcceptOwnership() (*types.Transaction, error) { return _MessagingBase.Contract.AcceptOwnership(&_MessagingBase.TransactOpts) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_MessagingBase *MessagingBaseTransactor) Multicall(opts *bind.TransactOpts, calls []MultiCallableCall) (*types.Transaction, error) { return _MessagingBase.contract.Transact(opts, "multicall", calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_MessagingBase *MessagingBaseSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _MessagingBase.Contract.Multicall(&_MessagingBase.TransactOpts, calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_MessagingBase *MessagingBaseTransactorSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _MessagingBase.Contract.Multicall(&_MessagingBase.TransactOpts, calls) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_MessagingBase *MessagingBaseTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _MessagingBase.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_MessagingBase *MessagingBaseSession) RenounceOwnership() (*types.Transaction, error) { return _MessagingBase.Contract.RenounceOwnership(&_MessagingBase.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_MessagingBase *MessagingBaseTransactorSession) RenounceOwnership() (*types.Transaction, error) { return _MessagingBase.Contract.RenounceOwnership(&_MessagingBase.TransactOpts) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_MessagingBase *MessagingBaseTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { return _MessagingBase.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_MessagingBase *MessagingBaseSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _MessagingBase.Contract.TransferOwnership(&_MessagingBase.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_MessagingBase *MessagingBaseTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _MessagingBase.Contract.TransferOwnership(&_MessagingBase.TransactOpts, newOwner) } // MessagingBaseInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the MessagingBase contract. type MessagingBaseInitializedIterator struct { Event *MessagingBaseInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *MessagingBaseInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(MessagingBaseInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(MessagingBaseInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *MessagingBaseInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *MessagingBaseInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } // MessagingBaseInitialized represents a Initialized event raised by the MessagingBase contract. type MessagingBaseInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_MessagingBase *MessagingBaseFilterer) FilterInitialized(opts *bind.FilterOpts) (*MessagingBaseInitializedIterator, error) { logs, sub, err := _MessagingBase.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } return &MessagingBaseInitializedIterator{contract: _MessagingBase.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_MessagingBase *MessagingBaseFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *MessagingBaseInitialized) (event.Subscription, error) { logs, sub, err := _MessagingBase.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(MessagingBaseInitialized) if err := _MessagingBase.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_MessagingBase *MessagingBaseFilterer) ParseInitialized(log types.Log) (*MessagingBaseInitialized, error) { event := new(MessagingBaseInitialized) if err := _MessagingBase.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } // MessagingBaseOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the MessagingBase contract. type MessagingBaseOwnershipTransferStartedIterator struct { Event *MessagingBaseOwnershipTransferStarted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *MessagingBaseOwnershipTransferStartedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(MessagingBaseOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(MessagingBaseOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *MessagingBaseOwnershipTransferStartedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *MessagingBaseOwnershipTransferStartedIterator) Close() error { it.sub.Unsubscribe() return nil } // MessagingBaseOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the MessagingBase contract. type MessagingBaseOwnershipTransferStarted struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_MessagingBase *MessagingBaseFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MessagingBaseOwnershipTransferStartedIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _MessagingBase.contract.FilterLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &MessagingBaseOwnershipTransferStartedIterator{contract: _MessagingBase.contract, event: "OwnershipTransferStarted", logs: logs, sub: sub}, nil } // WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_MessagingBase *MessagingBaseFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *MessagingBaseOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _MessagingBase.contract.WatchLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(MessagingBaseOwnershipTransferStarted) if err := _MessagingBase.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_MessagingBase *MessagingBaseFilterer) ParseOwnershipTransferStarted(log types.Log) (*MessagingBaseOwnershipTransferStarted, error) { event := new(MessagingBaseOwnershipTransferStarted) if err := _MessagingBase.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return nil, err } event.Raw = log return event, nil } // MessagingBaseOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the MessagingBase contract. type MessagingBaseOwnershipTransferredIterator struct { Event *MessagingBaseOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *MessagingBaseOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(MessagingBaseOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(MessagingBaseOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *MessagingBaseOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *MessagingBaseOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } // MessagingBaseOwnershipTransferred represents a OwnershipTransferred event raised by the MessagingBase contract. type MessagingBaseOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_MessagingBase *MessagingBaseFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MessagingBaseOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _MessagingBase.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &MessagingBaseOwnershipTransferredIterator{contract: _MessagingBase.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_MessagingBase *MessagingBaseFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MessagingBaseOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _MessagingBase.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(MessagingBaseOwnershipTransferred) if err := _MessagingBase.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_MessagingBase *MessagingBaseFilterer) ParseOwnershipTransferred(log types.Log) (*MessagingBaseOwnershipTransferred, error) { event := new(MessagingBaseOwnershipTransferred) if err := _MessagingBase.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } // MultiCallableMetaData contains all meta data concerning the MultiCallable contract. var MultiCallableMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"multicall\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMultiCallable.Result[]\",\"name\":\"callResults\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "60fc8466": "multicall((bool,bytes)[])", }, } // MultiCallableABI is the input ABI used to generate the binding from. // Deprecated: Use MultiCallableMetaData.ABI instead. var MultiCallableABI = MultiCallableMetaData.ABI // Deprecated: Use MultiCallableMetaData.Sigs instead. // MultiCallableFuncSigs maps the 4-byte function signature to its string representation. var MultiCallableFuncSigs = MultiCallableMetaData.Sigs // MultiCallable is an auto generated Go binding around an Ethereum contract. type MultiCallable struct { MultiCallableCaller // Read-only binding to the contract MultiCallableTransactor // Write-only binding to the contract MultiCallableFilterer // Log filterer for contract events } // MultiCallableCaller is an auto generated read-only Go binding around an Ethereum contract. type MultiCallableCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MultiCallableTransactor is an auto generated write-only Go binding around an Ethereum contract. type MultiCallableTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MultiCallableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type MultiCallableFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // MultiCallableSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type MultiCallableSession struct { Contract *MultiCallable // 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 } // MultiCallableCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type MultiCallableCallerSession struct { Contract *MultiCallableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // MultiCallableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type MultiCallableTransactorSession struct { Contract *MultiCallableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // MultiCallableRaw is an auto generated low-level Go binding around an Ethereum contract. type MultiCallableRaw struct { Contract *MultiCallable // Generic contract binding to access the raw methods on } // MultiCallableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type MultiCallableCallerRaw struct { Contract *MultiCallableCaller // Generic read-only contract binding to access the raw methods on } // MultiCallableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type MultiCallableTransactorRaw struct { Contract *MultiCallableTransactor // Generic write-only contract binding to access the raw methods on } // NewMultiCallable creates a new instance of MultiCallable, bound to a specific deployed contract. func NewMultiCallable(address common.Address, backend bind.ContractBackend) (*MultiCallable, error) { contract, err := bindMultiCallable(address, backend, backend, backend) if err != nil { return nil, err } return &MultiCallable{MultiCallableCaller: MultiCallableCaller{contract: contract}, MultiCallableTransactor: MultiCallableTransactor{contract: contract}, MultiCallableFilterer: MultiCallableFilterer{contract: contract}}, nil } // NewMultiCallableCaller creates a new read-only instance of MultiCallable, bound to a specific deployed contract. func NewMultiCallableCaller(address common.Address, caller bind.ContractCaller) (*MultiCallableCaller, error) { contract, err := bindMultiCallable(address, caller, nil, nil) if err != nil { return nil, err } return &MultiCallableCaller{contract: contract}, nil } // NewMultiCallableTransactor creates a new write-only instance of MultiCallable, bound to a specific deployed contract. func NewMultiCallableTransactor(address common.Address, transactor bind.ContractTransactor) (*MultiCallableTransactor, error) { contract, err := bindMultiCallable(address, nil, transactor, nil) if err != nil { return nil, err } return &MultiCallableTransactor{contract: contract}, nil } // NewMultiCallableFilterer creates a new log filterer instance of MultiCallable, bound to a specific deployed contract. func NewMultiCallableFilterer(address common.Address, filterer bind.ContractFilterer) (*MultiCallableFilterer, error) { contract, err := bindMultiCallable(address, nil, nil, filterer) if err != nil { return nil, err } return &MultiCallableFilterer{contract: contract}, nil } // bindMultiCallable binds a generic wrapper to an already deployed contract. func bindMultiCallable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := MultiCallableMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_MultiCallable *MultiCallableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MultiCallable.Contract.MultiCallableCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MultiCallable *MultiCallableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MultiCallable.Contract.MultiCallableTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MultiCallable *MultiCallableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MultiCallable.Contract.MultiCallableTransactor.contract.Transact(opts, method, params...) } // 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 (_MultiCallable *MultiCallableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _MultiCallable.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_MultiCallable *MultiCallableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _MultiCallable.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_MultiCallable *MultiCallableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _MultiCallable.Contract.contract.Transact(opts, method, params...) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_MultiCallable *MultiCallableTransactor) Multicall(opts *bind.TransactOpts, calls []MultiCallableCall) (*types.Transaction, error) { return _MultiCallable.contract.Transact(opts, "multicall", calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_MultiCallable *MultiCallableSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _MultiCallable.Contract.Multicall(&_MultiCallable.TransactOpts, calls) } // Multicall is a paid mutator transaction binding the contract method 0x60fc8466. // // Solidity: function multicall((bool,bytes)[] calls) returns((bool,bytes)[] callResults) func (_MultiCallable *MultiCallableTransactorSession) Multicall(calls []MultiCallableCall) (*types.Transaction, error) { return _MultiCallable.Contract.Multicall(&_MultiCallable.TransactOpts, calls) } // NumberLibMetaData contains all meta data concerning the NumberLib contract. var NumberLibMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200b38127b9d46dbd5ae8ee98e0ff6f5791481b38c3094caa4fb8dfed3944646a164736f6c63430008110033", } // NumberLibABI is the input ABI used to generate the binding from. // Deprecated: Use NumberLibMetaData.ABI instead. var NumberLibABI = NumberLibMetaData.ABI // NumberLibBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use NumberLibMetaData.Bin instead. var NumberLibBin = NumberLibMetaData.Bin // DeployNumberLib deploys a new Ethereum contract, binding an instance of NumberLib to it. func DeployNumberLib(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *NumberLib, error) { parsed, err := NumberLibMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(NumberLibBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &NumberLib{NumberLibCaller: NumberLibCaller{contract: contract}, NumberLibTransactor: NumberLibTransactor{contract: contract}, NumberLibFilterer: NumberLibFilterer{contract: contract}}, nil } // NumberLib is an auto generated Go binding around an Ethereum contract. type NumberLib struct { NumberLibCaller // Read-only binding to the contract NumberLibTransactor // Write-only binding to the contract NumberLibFilterer // Log filterer for contract events } // NumberLibCaller is an auto generated read-only Go binding around an Ethereum contract. type NumberLibCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // NumberLibTransactor is an auto generated write-only Go binding around an Ethereum contract. type NumberLibTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // NumberLibFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type NumberLibFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // NumberLibSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type NumberLibSession struct { Contract *NumberLib // 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 } // NumberLibCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type NumberLibCallerSession struct { Contract *NumberLibCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // NumberLibTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type NumberLibTransactorSession struct { Contract *NumberLibTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // NumberLibRaw is an auto generated low-level Go binding around an Ethereum contract. type NumberLibRaw struct { Contract *NumberLib // Generic contract binding to access the raw methods on } // NumberLibCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type NumberLibCallerRaw struct { Contract *NumberLibCaller // Generic read-only contract binding to access the raw methods on } // NumberLibTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type NumberLibTransactorRaw struct { Contract *NumberLibTransactor // Generic write-only contract binding to access the raw methods on } // NewNumberLib creates a new instance of NumberLib, bound to a specific deployed contract. func NewNumberLib(address common.Address, backend bind.ContractBackend) (*NumberLib, error) { contract, err := bindNumberLib(address, backend, backend, backend) if err != nil { return nil, err } return &NumberLib{NumberLibCaller: NumberLibCaller{contract: contract}, NumberLibTransactor: NumberLibTransactor{contract: contract}, NumberLibFilterer: NumberLibFilterer{contract: contract}}, nil } // NewNumberLibCaller creates a new read-only instance of NumberLib, bound to a specific deployed contract. func NewNumberLibCaller(address common.Address, caller bind.ContractCaller) (*NumberLibCaller, error) { contract, err := bindNumberLib(address, caller, nil, nil) if err != nil { return nil, err } return &NumberLibCaller{contract: contract}, nil } // NewNumberLibTransactor creates a new write-only instance of NumberLib, bound to a specific deployed contract. func NewNumberLibTransactor(address common.Address, transactor bind.ContractTransactor) (*NumberLibTransactor, error) { contract, err := bindNumberLib(address, nil, transactor, nil) if err != nil { return nil, err } return &NumberLibTransactor{contract: contract}, nil } // NewNumberLibFilterer creates a new log filterer instance of NumberLib, bound to a specific deployed contract. func NewNumberLibFilterer(address common.Address, filterer bind.ContractFilterer) (*NumberLibFilterer, error) { contract, err := bindNumberLib(address, nil, nil, filterer) if err != nil { return nil, err } return &NumberLibFilterer{contract: contract}, nil } // bindNumberLib binds a generic wrapper to an already deployed contract. func bindNumberLib(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := NumberLibMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_NumberLib *NumberLibRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _NumberLib.Contract.NumberLibCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_NumberLib *NumberLibRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _NumberLib.Contract.NumberLibTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_NumberLib *NumberLibRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _NumberLib.Contract.NumberLibTransactor.contract.Transact(opts, method, params...) } // 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 (_NumberLib *NumberLibCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _NumberLib.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_NumberLib *NumberLibTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _NumberLib.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_NumberLib *NumberLibTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _NumberLib.Contract.contract.Transact(opts, method, params...) } // Ownable2StepUpgradeableMetaData contains all meta data concerning the Ownable2StepUpgradeable contract. var Ownable2StepUpgradeableMetaData = &bind.MetaData{ ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"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\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "79ba5097": "acceptOwnership()", "8da5cb5b": "owner()", "e30c3978": "pendingOwner()", "715018a6": "renounceOwnership()", "f2fde38b": "transferOwnership(address)", }, } // Ownable2StepUpgradeableABI is the input ABI used to generate the binding from. // Deprecated: Use Ownable2StepUpgradeableMetaData.ABI instead. var Ownable2StepUpgradeableABI = Ownable2StepUpgradeableMetaData.ABI // Deprecated: Use Ownable2StepUpgradeableMetaData.Sigs instead. // Ownable2StepUpgradeableFuncSigs maps the 4-byte function signature to its string representation. var Ownable2StepUpgradeableFuncSigs = Ownable2StepUpgradeableMetaData.Sigs // Ownable2StepUpgradeable is an auto generated Go binding around an Ethereum contract. type Ownable2StepUpgradeable struct { Ownable2StepUpgradeableCaller // Read-only binding to the contract Ownable2StepUpgradeableTransactor // Write-only binding to the contract Ownable2StepUpgradeableFilterer // Log filterer for contract events } // Ownable2StepUpgradeableCaller is an auto generated read-only Go binding around an Ethereum contract. type Ownable2StepUpgradeableCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // Ownable2StepUpgradeableTransactor is an auto generated write-only Go binding around an Ethereum contract. type Ownable2StepUpgradeableTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // Ownable2StepUpgradeableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type Ownable2StepUpgradeableFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // Ownable2StepUpgradeableSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type Ownable2StepUpgradeableSession struct { Contract *Ownable2StepUpgradeable // 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 } // Ownable2StepUpgradeableCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type Ownable2StepUpgradeableCallerSession struct { Contract *Ownable2StepUpgradeableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // Ownable2StepUpgradeableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type Ownable2StepUpgradeableTransactorSession struct { Contract *Ownable2StepUpgradeableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // Ownable2StepUpgradeableRaw is an auto generated low-level Go binding around an Ethereum contract. type Ownable2StepUpgradeableRaw struct { Contract *Ownable2StepUpgradeable // Generic contract binding to access the raw methods on } // Ownable2StepUpgradeableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type Ownable2StepUpgradeableCallerRaw struct { Contract *Ownable2StepUpgradeableCaller // Generic read-only contract binding to access the raw methods on } // Ownable2StepUpgradeableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type Ownable2StepUpgradeableTransactorRaw struct { Contract *Ownable2StepUpgradeableTransactor // Generic write-only contract binding to access the raw methods on } // NewOwnable2StepUpgradeable creates a new instance of Ownable2StepUpgradeable, bound to a specific deployed contract. func NewOwnable2StepUpgradeable(address common.Address, backend bind.ContractBackend) (*Ownable2StepUpgradeable, error) { contract, err := bindOwnable2StepUpgradeable(address, backend, backend, backend) if err != nil { return nil, err } return &Ownable2StepUpgradeable{Ownable2StepUpgradeableCaller: Ownable2StepUpgradeableCaller{contract: contract}, Ownable2StepUpgradeableTransactor: Ownable2StepUpgradeableTransactor{contract: contract}, Ownable2StepUpgradeableFilterer: Ownable2StepUpgradeableFilterer{contract: contract}}, nil } // NewOwnable2StepUpgradeableCaller creates a new read-only instance of Ownable2StepUpgradeable, bound to a specific deployed contract. func NewOwnable2StepUpgradeableCaller(address common.Address, caller bind.ContractCaller) (*Ownable2StepUpgradeableCaller, error) { contract, err := bindOwnable2StepUpgradeable(address, caller, nil, nil) if err != nil { return nil, err } return &Ownable2StepUpgradeableCaller{contract: contract}, nil } // NewOwnable2StepUpgradeableTransactor creates a new write-only instance of Ownable2StepUpgradeable, bound to a specific deployed contract. func NewOwnable2StepUpgradeableTransactor(address common.Address, transactor bind.ContractTransactor) (*Ownable2StepUpgradeableTransactor, error) { contract, err := bindOwnable2StepUpgradeable(address, nil, transactor, nil) if err != nil { return nil, err } return &Ownable2StepUpgradeableTransactor{contract: contract}, nil } // NewOwnable2StepUpgradeableFilterer creates a new log filterer instance of Ownable2StepUpgradeable, bound to a specific deployed contract. func NewOwnable2StepUpgradeableFilterer(address common.Address, filterer bind.ContractFilterer) (*Ownable2StepUpgradeableFilterer, error) { contract, err := bindOwnable2StepUpgradeable(address, nil, nil, filterer) if err != nil { return nil, err } return &Ownable2StepUpgradeableFilterer{contract: contract}, nil } // bindOwnable2StepUpgradeable binds a generic wrapper to an already deployed contract. func bindOwnable2StepUpgradeable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := Ownable2StepUpgradeableMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_Ownable2StepUpgradeable *Ownable2StepUpgradeableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Ownable2StepUpgradeable.Contract.Ownable2StepUpgradeableCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.Ownable2StepUpgradeableTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.Ownable2StepUpgradeableTransactor.contract.Transact(opts, method, params...) } // 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 (_Ownable2StepUpgradeable *Ownable2StepUpgradeableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Ownable2StepUpgradeable.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.contract.Transact(opts, method, params...) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _Ownable2StepUpgradeable.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableSession) Owner() (common.Address, error) { return _Ownable2StepUpgradeable.Contract.Owner(&_Ownable2StepUpgradeable.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableCallerSession) Owner() (common.Address, error) { return _Ownable2StepUpgradeable.Contract.Owner(&_Ownable2StepUpgradeable.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _Ownable2StepUpgradeable.contract.Call(opts, &out, "pendingOwner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableSession) PendingOwner() (common.Address, error) { return _Ownable2StepUpgradeable.Contract.PendingOwner(&_Ownable2StepUpgradeable.CallOpts) } // PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. // // Solidity: function pendingOwner() view returns(address) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableCallerSession) PendingOwner() (common.Address, error) { return _Ownable2StepUpgradeable.Contract.PendingOwner(&_Ownable2StepUpgradeable.CallOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _Ownable2StepUpgradeable.contract.Transact(opts, "acceptOwnership") } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableSession) AcceptOwnership() (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.AcceptOwnership(&_Ownable2StepUpgradeable.TransactOpts) } // AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. // // Solidity: function acceptOwnership() returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactorSession) AcceptOwnership() (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.AcceptOwnership(&_Ownable2StepUpgradeable.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _Ownable2StepUpgradeable.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableSession) RenounceOwnership() (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.RenounceOwnership(&_Ownable2StepUpgradeable.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactorSession) RenounceOwnership() (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.RenounceOwnership(&_Ownable2StepUpgradeable.TransactOpts) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { return _Ownable2StepUpgradeable.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.TransferOwnership(&_Ownable2StepUpgradeable.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _Ownable2StepUpgradeable.Contract.TransferOwnership(&_Ownable2StepUpgradeable.TransactOpts, newOwner) } // Ownable2StepUpgradeableInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Ownable2StepUpgradeable contract. type Ownable2StepUpgradeableInitializedIterator struct { Event *Ownable2StepUpgradeableInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *Ownable2StepUpgradeableInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(Ownable2StepUpgradeableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(Ownable2StepUpgradeableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *Ownable2StepUpgradeableInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *Ownable2StepUpgradeableInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } // Ownable2StepUpgradeableInitialized represents a Initialized event raised by the Ownable2StepUpgradeable contract. type Ownable2StepUpgradeableInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) FilterInitialized(opts *bind.FilterOpts) (*Ownable2StepUpgradeableInitializedIterator, error) { logs, sub, err := _Ownable2StepUpgradeable.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } return &Ownable2StepUpgradeableInitializedIterator{contract: _Ownable2StepUpgradeable.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *Ownable2StepUpgradeableInitialized) (event.Subscription, error) { logs, sub, err := _Ownable2StepUpgradeable.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(Ownable2StepUpgradeableInitialized) if err := _Ownable2StepUpgradeable.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) ParseInitialized(log types.Log) (*Ownable2StepUpgradeableInitialized, error) { event := new(Ownable2StepUpgradeableInitialized) if err := _Ownable2StepUpgradeable.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } // Ownable2StepUpgradeableOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the Ownable2StepUpgradeable contract. type Ownable2StepUpgradeableOwnershipTransferStartedIterator struct { Event *Ownable2StepUpgradeableOwnershipTransferStarted // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *Ownable2StepUpgradeableOwnershipTransferStartedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(Ownable2StepUpgradeableOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(Ownable2StepUpgradeableOwnershipTransferStarted) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *Ownable2StepUpgradeableOwnershipTransferStartedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *Ownable2StepUpgradeableOwnershipTransferStartedIterator) Close() error { it.sub.Unsubscribe() return nil } // Ownable2StepUpgradeableOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the Ownable2StepUpgradeable contract. type Ownable2StepUpgradeableOwnershipTransferStarted struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Ownable2StepUpgradeableOwnershipTransferStartedIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _Ownable2StepUpgradeable.contract.FilterLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &Ownable2StepUpgradeableOwnershipTransferStartedIterator{contract: _Ownable2StepUpgradeable.contract, event: "OwnershipTransferStarted", logs: logs, sub: sub}, nil } // WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *Ownable2StepUpgradeableOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _Ownable2StepUpgradeable.contract.WatchLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(Ownable2StepUpgradeableOwnershipTransferStarted) if err := _Ownable2StepUpgradeable.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. // // Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) ParseOwnershipTransferStarted(log types.Log) (*Ownable2StepUpgradeableOwnershipTransferStarted, error) { event := new(Ownable2StepUpgradeableOwnershipTransferStarted) if err := _Ownable2StepUpgradeable.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { return nil, err } event.Raw = log return event, nil } // Ownable2StepUpgradeableOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Ownable2StepUpgradeable contract. type Ownable2StepUpgradeableOwnershipTransferredIterator struct { Event *Ownable2StepUpgradeableOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *Ownable2StepUpgradeableOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(Ownable2StepUpgradeableOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(Ownable2StepUpgradeableOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *Ownable2StepUpgradeableOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *Ownable2StepUpgradeableOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } // Ownable2StepUpgradeableOwnershipTransferred represents a OwnershipTransferred event raised by the Ownable2StepUpgradeable contract. type Ownable2StepUpgradeableOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Ownable2StepUpgradeableOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _Ownable2StepUpgradeable.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &Ownable2StepUpgradeableOwnershipTransferredIterator{contract: _Ownable2StepUpgradeable.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Ownable2StepUpgradeableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _Ownable2StepUpgradeable.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(Ownable2StepUpgradeableOwnershipTransferred) if err := _Ownable2StepUpgradeable.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_Ownable2StepUpgradeable *Ownable2StepUpgradeableFilterer) ParseOwnershipTransferred(log types.Log) (*Ownable2StepUpgradeableOwnershipTransferred, error) { event := new(Ownable2StepUpgradeableOwnershipTransferred) if err := _Ownable2StepUpgradeable.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } // OwnableUpgradeableMetaData contains all meta data concerning the OwnableUpgradeable contract. var OwnableUpgradeableMetaData = &bind.MetaData{ ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"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\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "8da5cb5b": "owner()", "715018a6": "renounceOwnership()", "f2fde38b": "transferOwnership(address)", }, } // OwnableUpgradeableABI is the input ABI used to generate the binding from. // Deprecated: Use OwnableUpgradeableMetaData.ABI instead. var OwnableUpgradeableABI = OwnableUpgradeableMetaData.ABI // Deprecated: Use OwnableUpgradeableMetaData.Sigs instead. // OwnableUpgradeableFuncSigs maps the 4-byte function signature to its string representation. var OwnableUpgradeableFuncSigs = OwnableUpgradeableMetaData.Sigs // OwnableUpgradeable is an auto generated Go binding around an Ethereum contract. type OwnableUpgradeable struct { OwnableUpgradeableCaller // Read-only binding to the contract OwnableUpgradeableTransactor // Write-only binding to the contract OwnableUpgradeableFilterer // Log filterer for contract events } // OwnableUpgradeableCaller is an auto generated read-only Go binding around an Ethereum contract. type OwnableUpgradeableCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // OwnableUpgradeableTransactor is an auto generated write-only Go binding around an Ethereum contract. type OwnableUpgradeableTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // OwnableUpgradeableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type OwnableUpgradeableFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // OwnableUpgradeableSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type OwnableUpgradeableSession struct { Contract *OwnableUpgradeable // 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 } // OwnableUpgradeableCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type OwnableUpgradeableCallerSession struct { Contract *OwnableUpgradeableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // OwnableUpgradeableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type OwnableUpgradeableTransactorSession struct { Contract *OwnableUpgradeableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // OwnableUpgradeableRaw is an auto generated low-level Go binding around an Ethereum contract. type OwnableUpgradeableRaw struct { Contract *OwnableUpgradeable // Generic contract binding to access the raw methods on } // OwnableUpgradeableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type OwnableUpgradeableCallerRaw struct { Contract *OwnableUpgradeableCaller // Generic read-only contract binding to access the raw methods on } // OwnableUpgradeableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type OwnableUpgradeableTransactorRaw struct { Contract *OwnableUpgradeableTransactor // Generic write-only contract binding to access the raw methods on } // NewOwnableUpgradeable creates a new instance of OwnableUpgradeable, bound to a specific deployed contract. func NewOwnableUpgradeable(address common.Address, backend bind.ContractBackend) (*OwnableUpgradeable, error) { contract, err := bindOwnableUpgradeable(address, backend, backend, backend) if err != nil { return nil, err } return &OwnableUpgradeable{OwnableUpgradeableCaller: OwnableUpgradeableCaller{contract: contract}, OwnableUpgradeableTransactor: OwnableUpgradeableTransactor{contract: contract}, OwnableUpgradeableFilterer: OwnableUpgradeableFilterer{contract: contract}}, nil } // NewOwnableUpgradeableCaller creates a new read-only instance of OwnableUpgradeable, bound to a specific deployed contract. func NewOwnableUpgradeableCaller(address common.Address, caller bind.ContractCaller) (*OwnableUpgradeableCaller, error) { contract, err := bindOwnableUpgradeable(address, caller, nil, nil) if err != nil { return nil, err } return &OwnableUpgradeableCaller{contract: contract}, nil } // NewOwnableUpgradeableTransactor creates a new write-only instance of OwnableUpgradeable, bound to a specific deployed contract. func NewOwnableUpgradeableTransactor(address common.Address, transactor bind.ContractTransactor) (*OwnableUpgradeableTransactor, error) { contract, err := bindOwnableUpgradeable(address, nil, transactor, nil) if err != nil { return nil, err } return &OwnableUpgradeableTransactor{contract: contract}, nil } // NewOwnableUpgradeableFilterer creates a new log filterer instance of OwnableUpgradeable, bound to a specific deployed contract. func NewOwnableUpgradeableFilterer(address common.Address, filterer bind.ContractFilterer) (*OwnableUpgradeableFilterer, error) { contract, err := bindOwnableUpgradeable(address, nil, nil, filterer) if err != nil { return nil, err } return &OwnableUpgradeableFilterer{contract: contract}, nil } // bindOwnableUpgradeable binds a generic wrapper to an already deployed contract. func bindOwnableUpgradeable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := OwnableUpgradeableMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_OwnableUpgradeable *OwnableUpgradeableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _OwnableUpgradeable.Contract.OwnableUpgradeableCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_OwnableUpgradeable *OwnableUpgradeableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _OwnableUpgradeable.Contract.OwnableUpgradeableTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_OwnableUpgradeable *OwnableUpgradeableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _OwnableUpgradeable.Contract.OwnableUpgradeableTransactor.contract.Transact(opts, method, params...) } // 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 (_OwnableUpgradeable *OwnableUpgradeableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _OwnableUpgradeable.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_OwnableUpgradeable *OwnableUpgradeableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _OwnableUpgradeable.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_OwnableUpgradeable *OwnableUpgradeableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _OwnableUpgradeable.Contract.contract.Transact(opts, method, params...) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_OwnableUpgradeable *OwnableUpgradeableCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _OwnableUpgradeable.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_OwnableUpgradeable *OwnableUpgradeableSession) Owner() (common.Address, error) { return _OwnableUpgradeable.Contract.Owner(&_OwnableUpgradeable.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_OwnableUpgradeable *OwnableUpgradeableCallerSession) Owner() (common.Address, error) { return _OwnableUpgradeable.Contract.Owner(&_OwnableUpgradeable.CallOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_OwnableUpgradeable *OwnableUpgradeableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _OwnableUpgradeable.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_OwnableUpgradeable *OwnableUpgradeableSession) RenounceOwnership() (*types.Transaction, error) { return _OwnableUpgradeable.Contract.RenounceOwnership(&_OwnableUpgradeable.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_OwnableUpgradeable *OwnableUpgradeableTransactorSession) RenounceOwnership() (*types.Transaction, error) { return _OwnableUpgradeable.Contract.RenounceOwnership(&_OwnableUpgradeable.TransactOpts) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_OwnableUpgradeable *OwnableUpgradeableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { return _OwnableUpgradeable.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_OwnableUpgradeable *OwnableUpgradeableSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _OwnableUpgradeable.Contract.TransferOwnership(&_OwnableUpgradeable.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_OwnableUpgradeable *OwnableUpgradeableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _OwnableUpgradeable.Contract.TransferOwnership(&_OwnableUpgradeable.TransactOpts, newOwner) } // OwnableUpgradeableInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the OwnableUpgradeable contract. type OwnableUpgradeableInitializedIterator struct { Event *OwnableUpgradeableInitialized // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *OwnableUpgradeableInitializedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(OwnableUpgradeableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(OwnableUpgradeableInitialized) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *OwnableUpgradeableInitializedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *OwnableUpgradeableInitializedIterator) Close() error { it.sub.Unsubscribe() return nil } // OwnableUpgradeableInitialized represents a Initialized event raised by the OwnableUpgradeable contract. type OwnableUpgradeableInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos } // FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_OwnableUpgradeable *OwnableUpgradeableFilterer) FilterInitialized(opts *bind.FilterOpts) (*OwnableUpgradeableInitializedIterator, error) { logs, sub, err := _OwnableUpgradeable.contract.FilterLogs(opts, "Initialized") if err != nil { return nil, err } return &OwnableUpgradeableInitializedIterator{contract: _OwnableUpgradeable.contract, event: "Initialized", logs: logs, sub: sub}, nil } // WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_OwnableUpgradeable *OwnableUpgradeableFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *OwnableUpgradeableInitialized) (event.Subscription, error) { logs, sub, err := _OwnableUpgradeable.contract.WatchLogs(opts, "Initialized") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(OwnableUpgradeableInitialized) if err := _OwnableUpgradeable.contract.UnpackLog(event, "Initialized", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498. // // Solidity: event Initialized(uint8 version) func (_OwnableUpgradeable *OwnableUpgradeableFilterer) ParseInitialized(log types.Log) (*OwnableUpgradeableInitialized, error) { event := new(OwnableUpgradeableInitialized) if err := _OwnableUpgradeable.contract.UnpackLog(event, "Initialized", log); err != nil { return nil, err } event.Raw = log return event, nil } // OwnableUpgradeableOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the OwnableUpgradeable contract. type OwnableUpgradeableOwnershipTransferredIterator struct { Event *OwnableUpgradeableOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // 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. func (it *OwnableUpgradeableOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(OwnableUpgradeableOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(OwnableUpgradeableOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *OwnableUpgradeableOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *OwnableUpgradeableOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } // OwnableUpgradeableOwnershipTransferred represents a OwnershipTransferred event raised by the OwnableUpgradeable contract. type OwnableUpgradeableOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_OwnableUpgradeable *OwnableUpgradeableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableUpgradeableOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _OwnableUpgradeable.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &OwnableUpgradeableOwnershipTransferredIterator{contract: _OwnableUpgradeable.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_OwnableUpgradeable *OwnableUpgradeableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableUpgradeableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _OwnableUpgradeable.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(OwnableUpgradeableOwnershipTransferred) if err := _OwnableUpgradeable.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_OwnableUpgradeable *OwnableUpgradeableFilterer) ParseOwnershipTransferred(log types.Log) (*OwnableUpgradeableOwnershipTransferred, error) { event := new(OwnableUpgradeableOwnershipTransferred) if err := _OwnableUpgradeable.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } event.Raw = log return event, nil } // SafeCastMetaData contains all meta data concerning the SafeCast contract. var SafeCastMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122092c96fce31e1767cb1d04ff19320897d6382542f5ac6baabcbf5dc9da74f284464736f6c63430008110033", } // SafeCastABI is the input ABI used to generate the binding from. // Deprecated: Use SafeCastMetaData.ABI instead. var SafeCastABI = SafeCastMetaData.ABI // SafeCastBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use SafeCastMetaData.Bin instead. var SafeCastBin = SafeCastMetaData.Bin // DeploySafeCast deploys a new Ethereum contract, binding an instance of SafeCast to it. func DeploySafeCast(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeCast, error) { parsed, err := SafeCastMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SafeCastBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &SafeCast{SafeCastCaller: SafeCastCaller{contract: contract}, SafeCastTransactor: SafeCastTransactor{contract: contract}, SafeCastFilterer: SafeCastFilterer{contract: contract}}, nil } // SafeCast is an auto generated Go binding around an Ethereum contract. type SafeCast struct { SafeCastCaller // Read-only binding to the contract SafeCastTransactor // Write-only binding to the contract SafeCastFilterer // Log filterer for contract events } // SafeCastCaller is an auto generated read-only Go binding around an Ethereum contract. type SafeCastCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // SafeCastTransactor is an auto generated write-only Go binding around an Ethereum contract. type SafeCastTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // SafeCastFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type SafeCastFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // SafeCastSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type SafeCastSession struct { Contract *SafeCast // 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 } // SafeCastCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type SafeCastCallerSession struct { Contract *SafeCastCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // SafeCastTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type SafeCastTransactorSession struct { Contract *SafeCastTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // SafeCastRaw is an auto generated low-level Go binding around an Ethereum contract. type SafeCastRaw struct { Contract *SafeCast // Generic contract binding to access the raw methods on } // SafeCastCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type SafeCastCallerRaw struct { Contract *SafeCastCaller // Generic read-only contract binding to access the raw methods on } // SafeCastTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type SafeCastTransactorRaw struct { Contract *SafeCastTransactor // Generic write-only contract binding to access the raw methods on } // NewSafeCast creates a new instance of SafeCast, bound to a specific deployed contract. func NewSafeCast(address common.Address, backend bind.ContractBackend) (*SafeCast, error) { contract, err := bindSafeCast(address, backend, backend, backend) if err != nil { return nil, err } return &SafeCast{SafeCastCaller: SafeCastCaller{contract: contract}, SafeCastTransactor: SafeCastTransactor{contract: contract}, SafeCastFilterer: SafeCastFilterer{contract: contract}}, nil } // NewSafeCastCaller creates a new read-only instance of SafeCast, bound to a specific deployed contract. func NewSafeCastCaller(address common.Address, caller bind.ContractCaller) (*SafeCastCaller, error) { contract, err := bindSafeCast(address, caller, nil, nil) if err != nil { return nil, err } return &SafeCastCaller{contract: contract}, nil } // NewSafeCastTransactor creates a new write-only instance of SafeCast, bound to a specific deployed contract. func NewSafeCastTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeCastTransactor, error) { contract, err := bindSafeCast(address, nil, transactor, nil) if err != nil { return nil, err } return &SafeCastTransactor{contract: contract}, nil } // NewSafeCastFilterer creates a new log filterer instance of SafeCast, bound to a specific deployed contract. func NewSafeCastFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeCastFilterer, error) { contract, err := bindSafeCast(address, nil, nil, filterer) if err != nil { return nil, err } return &SafeCastFilterer{contract: contract}, nil } // bindSafeCast binds a generic wrapper to an already deployed contract. func bindSafeCast(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := SafeCastMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_SafeCast *SafeCastRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _SafeCast.Contract.SafeCastCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_SafeCast *SafeCastRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _SafeCast.Contract.SafeCastTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_SafeCast *SafeCastRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _SafeCast.Contract.SafeCastTransactor.contract.Transact(opts, method, params...) } // 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 (_SafeCast *SafeCastCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _SafeCast.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_SafeCast *SafeCastTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _SafeCast.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_SafeCast *SafeCastTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _SafeCast.Contract.contract.Transact(opts, method, params...) } // StructureUtilsMetaData contains all meta data concerning the StructureUtils contract. var StructureUtilsMetaData = &bind.MetaData{ ABI: "[]", Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a891718e2be91fa46e4cd554f4d559ff475e69229638ca9229dcd1bc35c75a7764736f6c63430008110033", } // StructureUtilsABI is the input ABI used to generate the binding from. // Deprecated: Use StructureUtilsMetaData.ABI instead. var StructureUtilsABI = StructureUtilsMetaData.ABI // StructureUtilsBin is the compiled bytecode used for deploying new contracts. // Deprecated: Use StructureUtilsMetaData.Bin instead. var StructureUtilsBin = StructureUtilsMetaData.Bin // DeployStructureUtils deploys a new Ethereum contract, binding an instance of StructureUtils to it. func DeployStructureUtils(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *StructureUtils, error) { parsed, err := StructureUtilsMetaData.GetAbi() if err != nil { return common.Address{}, nil, nil, err } if parsed == nil { return common.Address{}, nil, nil, errors.New("GetABI returned nil") } address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(StructureUtilsBin), backend) if err != nil { return common.Address{}, nil, nil, err } return address, tx, &StructureUtils{StructureUtilsCaller: StructureUtilsCaller{contract: contract}, StructureUtilsTransactor: StructureUtilsTransactor{contract: contract}, StructureUtilsFilterer: StructureUtilsFilterer{contract: contract}}, nil } // StructureUtils is an auto generated Go binding around an Ethereum contract. type StructureUtils struct { StructureUtilsCaller // Read-only binding to the contract StructureUtilsTransactor // Write-only binding to the contract StructureUtilsFilterer // Log filterer for contract events } // StructureUtilsCaller is an auto generated read-only Go binding around an Ethereum contract. type StructureUtilsCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // StructureUtilsTransactor is an auto generated write-only Go binding around an Ethereum contract. type StructureUtilsTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // StructureUtilsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type StructureUtilsFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // StructureUtilsSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type StructureUtilsSession struct { Contract *StructureUtils // 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 } // StructureUtilsCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type StructureUtilsCallerSession struct { Contract *StructureUtilsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // StructureUtilsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type StructureUtilsTransactorSession struct { Contract *StructureUtilsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // StructureUtilsRaw is an auto generated low-level Go binding around an Ethereum contract. type StructureUtilsRaw struct { Contract *StructureUtils // Generic contract binding to access the raw methods on } // StructureUtilsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type StructureUtilsCallerRaw struct { Contract *StructureUtilsCaller // Generic read-only contract binding to access the raw methods on } // StructureUtilsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type StructureUtilsTransactorRaw struct { Contract *StructureUtilsTransactor // Generic write-only contract binding to access the raw methods on } // NewStructureUtils creates a new instance of StructureUtils, bound to a specific deployed contract. func NewStructureUtils(address common.Address, backend bind.ContractBackend) (*StructureUtils, error) { contract, err := bindStructureUtils(address, backend, backend, backend) if err != nil { return nil, err } return &StructureUtils{StructureUtilsCaller: StructureUtilsCaller{contract: contract}, StructureUtilsTransactor: StructureUtilsTransactor{contract: contract}, StructureUtilsFilterer: StructureUtilsFilterer{contract: contract}}, nil } // NewStructureUtilsCaller creates a new read-only instance of StructureUtils, bound to a specific deployed contract. func NewStructureUtilsCaller(address common.Address, caller bind.ContractCaller) (*StructureUtilsCaller, error) { contract, err := bindStructureUtils(address, caller, nil, nil) if err != nil { return nil, err } return &StructureUtilsCaller{contract: contract}, nil } // NewStructureUtilsTransactor creates a new write-only instance of StructureUtils, bound to a specific deployed contract. func NewStructureUtilsTransactor(address common.Address, transactor bind.ContractTransactor) (*StructureUtilsTransactor, error) { contract, err := bindStructureUtils(address, nil, transactor, nil) if err != nil { return nil, err } return &StructureUtilsTransactor{contract: contract}, nil } // NewStructureUtilsFilterer creates a new log filterer instance of StructureUtils, bound to a specific deployed contract. func NewStructureUtilsFilterer(address common.Address, filterer bind.ContractFilterer) (*StructureUtilsFilterer, error) { contract, err := bindStructureUtils(address, nil, nil, filterer) if err != nil { return nil, err } return &StructureUtilsFilterer{contract: contract}, nil } // bindStructureUtils binds a generic wrapper to an already deployed contract. func bindStructureUtils(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := StructureUtilsMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_StructureUtils *StructureUtilsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _StructureUtils.Contract.StructureUtilsCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_StructureUtils *StructureUtilsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _StructureUtils.Contract.StructureUtilsTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_StructureUtils *StructureUtilsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _StructureUtils.Contract.StructureUtilsTransactor.contract.Transact(opts, method, params...) } // 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 (_StructureUtils *StructureUtilsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _StructureUtils.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_StructureUtils *StructureUtilsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _StructureUtils.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_StructureUtils *StructureUtilsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _StructureUtils.Contract.contract.Transact(opts, method, params...) } // VersionedMetaData contains all meta data concerning the Versioned contract. var VersionedMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[],\"name\":\"IncorrectVersionLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"versionString\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", Sigs: map[string]string{ "54fd4d50": "version()", }, } // VersionedABI is the input ABI used to generate the binding from. // Deprecated: Use VersionedMetaData.ABI instead. var VersionedABI = VersionedMetaData.ABI // Deprecated: Use VersionedMetaData.Sigs instead. // VersionedFuncSigs maps the 4-byte function signature to its string representation. var VersionedFuncSigs = VersionedMetaData.Sigs // Versioned is an auto generated Go binding around an Ethereum contract. type Versioned struct { VersionedCaller // Read-only binding to the contract VersionedTransactor // Write-only binding to the contract VersionedFilterer // Log filterer for contract events } // VersionedCaller is an auto generated read-only Go binding around an Ethereum contract. type VersionedCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // VersionedTransactor is an auto generated write-only Go binding around an Ethereum contract. type VersionedTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // VersionedFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type VersionedFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // VersionedSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type VersionedSession struct { Contract *Versioned // 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 } // VersionedCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type VersionedCallerSession struct { Contract *VersionedCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // VersionedTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type VersionedTransactorSession struct { Contract *VersionedTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // VersionedRaw is an auto generated low-level Go binding around an Ethereum contract. type VersionedRaw struct { Contract *Versioned // Generic contract binding to access the raw methods on } // VersionedCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type VersionedCallerRaw struct { Contract *VersionedCaller // Generic read-only contract binding to access the raw methods on } // VersionedTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type VersionedTransactorRaw struct { Contract *VersionedTransactor // Generic write-only contract binding to access the raw methods on } // NewVersioned creates a new instance of Versioned, bound to a specific deployed contract. func NewVersioned(address common.Address, backend bind.ContractBackend) (*Versioned, error) { contract, err := bindVersioned(address, backend, backend, backend) if err != nil { return nil, err } return &Versioned{VersionedCaller: VersionedCaller{contract: contract}, VersionedTransactor: VersionedTransactor{contract: contract}, VersionedFilterer: VersionedFilterer{contract: contract}}, nil } // NewVersionedCaller creates a new read-only instance of Versioned, bound to a specific deployed contract. func NewVersionedCaller(address common.Address, caller bind.ContractCaller) (*VersionedCaller, error) { contract, err := bindVersioned(address, caller, nil, nil) if err != nil { return nil, err } return &VersionedCaller{contract: contract}, nil } // NewVersionedTransactor creates a new write-only instance of Versioned, bound to a specific deployed contract. func NewVersionedTransactor(address common.Address, transactor bind.ContractTransactor) (*VersionedTransactor, error) { contract, err := bindVersioned(address, nil, transactor, nil) if err != nil { return nil, err } return &VersionedTransactor{contract: contract}, nil } // NewVersionedFilterer creates a new log filterer instance of Versioned, bound to a specific deployed contract. func NewVersionedFilterer(address common.Address, filterer bind.ContractFilterer) (*VersionedFilterer, error) { contract, err := bindVersioned(address, nil, nil, filterer) if err != nil { return nil, err } return &VersionedFilterer{contract: contract}, nil } // bindVersioned binds a generic wrapper to an already deployed contract. func bindVersioned(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := VersionedMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_Versioned *VersionedRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Versioned.Contract.VersionedCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Versioned *VersionedRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Versioned.Contract.VersionedTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Versioned *VersionedRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Versioned.Contract.VersionedTransactor.contract.Transact(opts, method, params...) } // 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 (_Versioned *VersionedCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Versioned.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Versioned *VersionedTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Versioned.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Versioned *VersionedTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Versioned.Contract.contract.Transact(opts, method, params...) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_Versioned *VersionedCaller) Version(opts *bind.CallOpts) (string, error) { var out []interface{} err := _Versioned.contract.Call(opts, &out, "version") if err != nil { return *new(string), err } out0 := *abi.ConvertType(out[0], new(string)).(*string) return out0, err } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_Versioned *VersionedSession) Version() (string, error) { return _Versioned.Contract.Version(&_Versioned.CallOpts) } // Version is a free data retrieval call binding the contract method 0x54fd4d50. // // Solidity: function version() view returns(string versionString) func (_Versioned *VersionedCallerSession) Version() (string, error) { return _Versioned.Contract.Version(&_Versioned.CallOpts) }