3393 lines
168 KiB
Go
3393 lines
168 KiB
Go
|
// Code generated - DO NOT EDIT.
|
||
|
// This file is a generated binding and any manual changes will be lost.
|
||
|
|
||
|
package hopL2OptimismBridge
|
||
|
|
||
|
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
|
||
|
)
|
||
|
|
||
|
// BridgeTransferRoot is an auto generated low-level Go binding around an user-defined struct.
|
||
|
type BridgeTransferRoot struct {
|
||
|
Total *big.Int
|
||
|
AmountWithdrawn *big.Int
|
||
|
CreatedAt *big.Int
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeMetaData contains all meta data concerning the HopL2OptimismBridge contract.
|
||
|
var HopL2OptimismBridgeMetaData = &bind.MetaData{
|
||
|
ABI: "[{\"inputs\":[{\"internalType\":\"contractiOVM_L2CrossDomainMessenger\",\"name\":\"_messenger\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l1Governance\",\"type\":\"address\"},{\"internalType\":\"contractHopBridgeToken\",\"name\":\"hToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"l1BridgeAddress\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"activeChainIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"bonders\",\"type\":\"address[]\"},{\"internalType\":\"uint32\",\"name\":\"_defaultGasLimit\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newBonder\",\"type\":\"address\"}],\"name\":\"BonderAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousBonder\",\"type\":\"address\"}],\"name\":\"BonderRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"bonder\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalBondsSettled\",\"type\":\"uint256\"}],\"name\":\"MultipleWithdrawalsSettled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Stake\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"relayerFee\",\"type\":\"uint256\"}],\"name\":\"TransferFromL1Completed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"}],\"name\":\"TransferRootSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"transferId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transferNonce\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bonderFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"TransferSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rootCommittedAt\",\"type\":\"uint256\"}],\"name\":\"TransfersCommitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"in
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeABI is the input ABI used to generate the binding from.
|
||
|
// Deprecated: Use HopL2OptimismBridgeMetaData.ABI instead.
|
||
|
var HopL2OptimismBridgeABI = HopL2OptimismBridgeMetaData.ABI
|
||
|
|
||
|
// HopL2OptimismBridge is an auto generated Go binding around an Ethereum contract.
|
||
|
type HopL2OptimismBridge struct {
|
||
|
HopL2OptimismBridgeCaller // Read-only binding to the contract
|
||
|
HopL2OptimismBridgeTransactor // Write-only binding to the contract
|
||
|
HopL2OptimismBridgeFilterer // Log filterer for contract events
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeCaller is an auto generated read-only Go binding around an Ethereum contract.
|
||
|
type HopL2OptimismBridgeCaller struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransactor is an auto generated write-only Go binding around an Ethereum contract.
|
||
|
type HopL2OptimismBridgeTransactor struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
|
||
|
type HopL2OptimismBridgeFilterer struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeSession is an auto generated Go binding around an Ethereum contract,
|
||
|
// with pre-set call and transact options.
|
||
|
type HopL2OptimismBridgeSession struct {
|
||
|
Contract *HopL2OptimismBridge // 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
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeCallerSession is an auto generated read-only Go binding around an Ethereum contract,
|
||
|
// with pre-set call options.
|
||
|
type HopL2OptimismBridgeCallerSession struct {
|
||
|
Contract *HopL2OptimismBridgeCaller // Generic contract caller binding to set the session for
|
||
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
|
||
|
// with pre-set transact options.
|
||
|
type HopL2OptimismBridgeTransactorSession struct {
|
||
|
Contract *HopL2OptimismBridgeTransactor // Generic contract transactor binding to set the session for
|
||
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeRaw is an auto generated low-level Go binding around an Ethereum contract.
|
||
|
type HopL2OptimismBridgeRaw struct {
|
||
|
Contract *HopL2OptimismBridge // Generic contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
|
||
|
type HopL2OptimismBridgeCallerRaw struct {
|
||
|
Contract *HopL2OptimismBridgeCaller // Generic read-only contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
|
||
|
type HopL2OptimismBridgeTransactorRaw struct {
|
||
|
Contract *HopL2OptimismBridgeTransactor // Generic write-only contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// NewHopL2OptimismBridge creates a new instance of HopL2OptimismBridge, bound to a specific deployed contract.
|
||
|
func NewHopL2OptimismBridge(address common.Address, backend bind.ContractBackend) (*HopL2OptimismBridge, error) {
|
||
|
contract, err := bindHopL2OptimismBridge(address, backend, backend, backend)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridge{HopL2OptimismBridgeCaller: HopL2OptimismBridgeCaller{contract: contract}, HopL2OptimismBridgeTransactor: HopL2OptimismBridgeTransactor{contract: contract}, HopL2OptimismBridgeFilterer: HopL2OptimismBridgeFilterer{contract: contract}}, nil
|
||
|
}
|
||
|
|
||
|
// NewHopL2OptimismBridgeCaller creates a new read-only instance of HopL2OptimismBridge, bound to a specific deployed contract.
|
||
|
func NewHopL2OptimismBridgeCaller(address common.Address, caller bind.ContractCaller) (*HopL2OptimismBridgeCaller, error) {
|
||
|
contract, err := bindHopL2OptimismBridge(address, caller, nil, nil)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeCaller{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// NewHopL2OptimismBridgeTransactor creates a new write-only instance of HopL2OptimismBridge, bound to a specific deployed contract.
|
||
|
func NewHopL2OptimismBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*HopL2OptimismBridgeTransactor, error) {
|
||
|
contract, err := bindHopL2OptimismBridge(address, nil, transactor, nil)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeTransactor{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// NewHopL2OptimismBridgeFilterer creates a new log filterer instance of HopL2OptimismBridge, bound to a specific deployed contract.
|
||
|
func NewHopL2OptimismBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*HopL2OptimismBridgeFilterer, error) {
|
||
|
contract, err := bindHopL2OptimismBridge(address, nil, nil, filterer)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeFilterer{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// bindHopL2OptimismBridge binds a generic wrapper to an already deployed contract.
|
||
|
func bindHopL2OptimismBridge(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
|
||
|
parsed, err := HopL2OptimismBridgeMetaData.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 (_HopL2OptimismBridge *HopL2OptimismBridgeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
|
||
|
return _HopL2OptimismBridge.Contract.HopL2OptimismBridgeCaller.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 (_HopL2OptimismBridge *HopL2OptimismBridgeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.HopL2OptimismBridgeTransactor.contract.Transfer(opts)
|
||
|
}
|
||
|
|
||
|
// Transact invokes the (paid) contract method with params as input values.
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.HopL2OptimismBridgeTransactor.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 (_HopL2OptimismBridge *HopL2OptimismBridgeCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
|
||
|
return _HopL2OptimismBridge.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 (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.contract.Transfer(opts)
|
||
|
}
|
||
|
|
||
|
// Transact invokes the (paid) contract method with params as input values.
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.contract.Transact(opts, method, params...)
|
||
|
}
|
||
|
|
||
|
// ActiveChainIds is a free data retrieval call binding the contract method 0xc97d172e.
|
||
|
//
|
||
|
// Solidity: function activeChainIds(uint256 ) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) ActiveChainIds(opts *bind.CallOpts, arg0 *big.Int) (bool, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "activeChainIds", arg0)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(bool), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// ActiveChainIds is a free data retrieval call binding the contract method 0xc97d172e.
|
||
|
//
|
||
|
// Solidity: function activeChainIds(uint256 ) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) ActiveChainIds(arg0 *big.Int) (bool, error) {
|
||
|
return _HopL2OptimismBridge.Contract.ActiveChainIds(&_HopL2OptimismBridge.CallOpts, arg0)
|
||
|
}
|
||
|
|
||
|
// ActiveChainIds is a free data retrieval call binding the contract method 0xc97d172e.
|
||
|
//
|
||
|
// Solidity: function activeChainIds(uint256 ) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) ActiveChainIds(arg0 *big.Int) (bool, error) {
|
||
|
return _HopL2OptimismBridge.Contract.ActiveChainIds(&_HopL2OptimismBridge.CallOpts, arg0)
|
||
|
}
|
||
|
|
||
|
// AmmWrapper is a free data retrieval call binding the contract method 0xe9cdfe51.
|
||
|
//
|
||
|
// Solidity: function ammWrapper() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) AmmWrapper(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "ammWrapper")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// AmmWrapper is a free data retrieval call binding the contract method 0xe9cdfe51.
|
||
|
//
|
||
|
// Solidity: function ammWrapper() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) AmmWrapper() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.AmmWrapper(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// AmmWrapper is a free data retrieval call binding the contract method 0xe9cdfe51.
|
||
|
//
|
||
|
// Solidity: function ammWrapper() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) AmmWrapper() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.AmmWrapper(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// DefaultGasLimit is a free data retrieval call binding the contract method 0x95368d2e.
|
||
|
//
|
||
|
// Solidity: function defaultGasLimit() view returns(uint32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) DefaultGasLimit(opts *bind.CallOpts) (uint32, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "defaultGasLimit")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(uint32), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// DefaultGasLimit is a free data retrieval call binding the contract method 0x95368d2e.
|
||
|
//
|
||
|
// Solidity: function defaultGasLimit() view returns(uint32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) DefaultGasLimit() (uint32, error) {
|
||
|
return _HopL2OptimismBridge.Contract.DefaultGasLimit(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// DefaultGasLimit is a free data retrieval call binding the contract method 0x95368d2e.
|
||
|
//
|
||
|
// Solidity: function defaultGasLimit() view returns(uint32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) DefaultGasLimit() (uint32, error) {
|
||
|
return _HopL2OptimismBridge.Contract.DefaultGasLimit(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// GetBondedWithdrawalAmount is a free data retrieval call binding the contract method 0x302830ab.
|
||
|
//
|
||
|
// Solidity: function getBondedWithdrawalAmount(address bonder, bytes32 transferId) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetBondedWithdrawalAmount(opts *bind.CallOpts, bonder common.Address, transferId [32]byte) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getBondedWithdrawalAmount", bonder, transferId)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetBondedWithdrawalAmount is a free data retrieval call binding the contract method 0x302830ab.
|
||
|
//
|
||
|
// Solidity: function getBondedWithdrawalAmount(address bonder, bytes32 transferId) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetBondedWithdrawalAmount(bonder common.Address, transferId [32]byte) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetBondedWithdrawalAmount(&_HopL2OptimismBridge.CallOpts, bonder, transferId)
|
||
|
}
|
||
|
|
||
|
// GetBondedWithdrawalAmount is a free data retrieval call binding the contract method 0x302830ab.
|
||
|
//
|
||
|
// Solidity: function getBondedWithdrawalAmount(address bonder, bytes32 transferId) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetBondedWithdrawalAmount(bonder common.Address, transferId [32]byte) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetBondedWithdrawalAmount(&_HopL2OptimismBridge.CallOpts, bonder, transferId)
|
||
|
}
|
||
|
|
||
|
// GetChainId is a free data retrieval call binding the contract method 0x3408e470.
|
||
|
//
|
||
|
// Solidity: function getChainId() view returns(uint256 chainId)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetChainId(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getChainId")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetChainId is a free data retrieval call binding the contract method 0x3408e470.
|
||
|
//
|
||
|
// Solidity: function getChainId() view returns(uint256 chainId)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetChainId() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetChainId(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// GetChainId is a free data retrieval call binding the contract method 0x3408e470.
|
||
|
//
|
||
|
// Solidity: function getChainId() view returns(uint256 chainId)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetChainId() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetChainId(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// GetCredit is a free data retrieval call binding the contract method 0x57344e6f.
|
||
|
//
|
||
|
// Solidity: function getCredit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetCredit(opts *bind.CallOpts, bonder common.Address) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getCredit", bonder)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetCredit is a free data retrieval call binding the contract method 0x57344e6f.
|
||
|
//
|
||
|
// Solidity: function getCredit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetCredit(bonder common.Address) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetCredit(&_HopL2OptimismBridge.CallOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// GetCredit is a free data retrieval call binding the contract method 0x57344e6f.
|
||
|
//
|
||
|
// Solidity: function getCredit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetCredit(bonder common.Address) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetCredit(&_HopL2OptimismBridge.CallOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// GetDebitAndAdditionalDebit is a free data retrieval call binding the contract method 0xffa9286c.
|
||
|
//
|
||
|
// Solidity: function getDebitAndAdditionalDebit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetDebitAndAdditionalDebit(opts *bind.CallOpts, bonder common.Address) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getDebitAndAdditionalDebit", bonder)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetDebitAndAdditionalDebit is a free data retrieval call binding the contract method 0xffa9286c.
|
||
|
//
|
||
|
// Solidity: function getDebitAndAdditionalDebit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetDebitAndAdditionalDebit(bonder common.Address) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetDebitAndAdditionalDebit(&_HopL2OptimismBridge.CallOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// GetDebitAndAdditionalDebit is a free data retrieval call binding the contract method 0xffa9286c.
|
||
|
//
|
||
|
// Solidity: function getDebitAndAdditionalDebit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetDebitAndAdditionalDebit(bonder common.Address) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetDebitAndAdditionalDebit(&_HopL2OptimismBridge.CallOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// GetIsBonder is a free data retrieval call binding the contract method 0xd5ef7551.
|
||
|
//
|
||
|
// Solidity: function getIsBonder(address maybeBonder) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetIsBonder(opts *bind.CallOpts, maybeBonder common.Address) (bool, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getIsBonder", maybeBonder)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(bool), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetIsBonder is a free data retrieval call binding the contract method 0xd5ef7551.
|
||
|
//
|
||
|
// Solidity: function getIsBonder(address maybeBonder) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetIsBonder(maybeBonder common.Address) (bool, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetIsBonder(&_HopL2OptimismBridge.CallOpts, maybeBonder)
|
||
|
}
|
||
|
|
||
|
// GetIsBonder is a free data retrieval call binding the contract method 0xd5ef7551.
|
||
|
//
|
||
|
// Solidity: function getIsBonder(address maybeBonder) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetIsBonder(maybeBonder common.Address) (bool, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetIsBonder(&_HopL2OptimismBridge.CallOpts, maybeBonder)
|
||
|
}
|
||
|
|
||
|
// GetNextTransferNonce is a free data retrieval call binding the contract method 0x051e7216.
|
||
|
//
|
||
|
// Solidity: function getNextTransferNonce() view returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetNextTransferNonce(opts *bind.CallOpts) ([32]byte, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getNextTransferNonce")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new([32]byte), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetNextTransferNonce is a free data retrieval call binding the contract method 0x051e7216.
|
||
|
//
|
||
|
// Solidity: function getNextTransferNonce() view returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetNextTransferNonce() ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetNextTransferNonce(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// GetNextTransferNonce is a free data retrieval call binding the contract method 0x051e7216.
|
||
|
//
|
||
|
// Solidity: function getNextTransferNonce() view returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetNextTransferNonce() ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetNextTransferNonce(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// GetRawDebit is a free data retrieval call binding the contract method 0x13948c76.
|
||
|
//
|
||
|
// Solidity: function getRawDebit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetRawDebit(opts *bind.CallOpts, bonder common.Address) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getRawDebit", bonder)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetRawDebit is a free data retrieval call binding the contract method 0x13948c76.
|
||
|
//
|
||
|
// Solidity: function getRawDebit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetRawDebit(bonder common.Address) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetRawDebit(&_HopL2OptimismBridge.CallOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// GetRawDebit is a free data retrieval call binding the contract method 0x13948c76.
|
||
|
//
|
||
|
// Solidity: function getRawDebit(address bonder) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetRawDebit(bonder common.Address) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetRawDebit(&_HopL2OptimismBridge.CallOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// GetTransferId is a free data retrieval call binding the contract method 0xaf215f94.
|
||
|
//
|
||
|
// Solidity: function getTransferId(uint256 chainId, address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) pure returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetTransferId(opts *bind.CallOpts, chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getTransferId", chainId, recipient, amount, transferNonce, bonderFee, amountOutMin, deadline)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new([32]byte), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetTransferId is a free data retrieval call binding the contract method 0xaf215f94.
|
||
|
//
|
||
|
// Solidity: function getTransferId(uint256 chainId, address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) pure returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetTransferId(chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetTransferId(&_HopL2OptimismBridge.CallOpts, chainId, recipient, amount, transferNonce, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// GetTransferId is a free data retrieval call binding the contract method 0xaf215f94.
|
||
|
//
|
||
|
// Solidity: function getTransferId(uint256 chainId, address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) pure returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetTransferId(chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetTransferId(&_HopL2OptimismBridge.CallOpts, chainId, recipient, amount, transferNonce, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// GetTransferRoot is a free data retrieval call binding the contract method 0xce803b4f.
|
||
|
//
|
||
|
// Solidity: function getTransferRoot(bytes32 rootHash, uint256 totalAmount) view returns((uint256,uint256,uint256))
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetTransferRoot(opts *bind.CallOpts, rootHash [32]byte, totalAmount *big.Int) (BridgeTransferRoot, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getTransferRoot", rootHash, totalAmount)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(BridgeTransferRoot), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(BridgeTransferRoot)).(*BridgeTransferRoot)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetTransferRoot is a free data retrieval call binding the contract method 0xce803b4f.
|
||
|
//
|
||
|
// Solidity: function getTransferRoot(bytes32 rootHash, uint256 totalAmount) view returns((uint256,uint256,uint256))
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetTransferRoot(rootHash [32]byte, totalAmount *big.Int) (BridgeTransferRoot, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetTransferRoot(&_HopL2OptimismBridge.CallOpts, rootHash, totalAmount)
|
||
|
}
|
||
|
|
||
|
// GetTransferRoot is a free data retrieval call binding the contract method 0xce803b4f.
|
||
|
//
|
||
|
// Solidity: function getTransferRoot(bytes32 rootHash, uint256 totalAmount) view returns((uint256,uint256,uint256))
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetTransferRoot(rootHash [32]byte, totalAmount *big.Int) (BridgeTransferRoot, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetTransferRoot(&_HopL2OptimismBridge.CallOpts, rootHash, totalAmount)
|
||
|
}
|
||
|
|
||
|
// GetTransferRootId is a free data retrieval call binding the contract method 0x960a7afa.
|
||
|
//
|
||
|
// Solidity: function getTransferRootId(bytes32 rootHash, uint256 totalAmount) pure returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) GetTransferRootId(opts *bind.CallOpts, rootHash [32]byte, totalAmount *big.Int) ([32]byte, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "getTransferRootId", rootHash, totalAmount)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new([32]byte), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetTransferRootId is a free data retrieval call binding the contract method 0x960a7afa.
|
||
|
//
|
||
|
// Solidity: function getTransferRootId(bytes32 rootHash, uint256 totalAmount) pure returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) GetTransferRootId(rootHash [32]byte, totalAmount *big.Int) ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetTransferRootId(&_HopL2OptimismBridge.CallOpts, rootHash, totalAmount)
|
||
|
}
|
||
|
|
||
|
// GetTransferRootId is a free data retrieval call binding the contract method 0x960a7afa.
|
||
|
//
|
||
|
// Solidity: function getTransferRootId(bytes32 rootHash, uint256 totalAmount) pure returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) GetTransferRootId(rootHash [32]byte, totalAmount *big.Int) ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.GetTransferRootId(&_HopL2OptimismBridge.CallOpts, rootHash, totalAmount)
|
||
|
}
|
||
|
|
||
|
// HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.
|
||
|
//
|
||
|
// Solidity: function hToken() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) HToken(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "hToken")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.
|
||
|
//
|
||
|
// Solidity: function hToken() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) HToken() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.HToken(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.
|
||
|
//
|
||
|
// Solidity: function hToken() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) HToken() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.HToken(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// IsTransferIdSpent is a free data retrieval call binding the contract method 0x3a7af631.
|
||
|
//
|
||
|
// Solidity: function isTransferIdSpent(bytes32 transferId) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) IsTransferIdSpent(opts *bind.CallOpts, transferId [32]byte) (bool, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "isTransferIdSpent", transferId)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(bool), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// IsTransferIdSpent is a free data retrieval call binding the contract method 0x3a7af631.
|
||
|
//
|
||
|
// Solidity: function isTransferIdSpent(bytes32 transferId) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) IsTransferIdSpent(transferId [32]byte) (bool, error) {
|
||
|
return _HopL2OptimismBridge.Contract.IsTransferIdSpent(&_HopL2OptimismBridge.CallOpts, transferId)
|
||
|
}
|
||
|
|
||
|
// IsTransferIdSpent is a free data retrieval call binding the contract method 0x3a7af631.
|
||
|
//
|
||
|
// Solidity: function isTransferIdSpent(bytes32 transferId) view returns(bool)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) IsTransferIdSpent(transferId [32]byte) (bool, error) {
|
||
|
return _HopL2OptimismBridge.Contract.IsTransferIdSpent(&_HopL2OptimismBridge.CallOpts, transferId)
|
||
|
}
|
||
|
|
||
|
// L1BridgeAddress is a free data retrieval call binding the contract method 0x5ab2a558.
|
||
|
//
|
||
|
// Solidity: function l1BridgeAddress() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) L1BridgeAddress(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "l1BridgeAddress")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// L1BridgeAddress is a free data retrieval call binding the contract method 0x5ab2a558.
|
||
|
//
|
||
|
// Solidity: function l1BridgeAddress() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) L1BridgeAddress() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.L1BridgeAddress(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// L1BridgeAddress is a free data retrieval call binding the contract method 0x5ab2a558.
|
||
|
//
|
||
|
// Solidity: function l1BridgeAddress() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) L1BridgeAddress() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.L1BridgeAddress(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// L1BridgeCaller is a free data retrieval call binding the contract method 0xd2442783.
|
||
|
//
|
||
|
// Solidity: function l1BridgeCaller() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) L1BridgeCaller(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "l1BridgeCaller")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// L1BridgeCaller is a free data retrieval call binding the contract method 0xd2442783.
|
||
|
//
|
||
|
// Solidity: function l1BridgeCaller() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) L1BridgeCaller() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.L1BridgeCaller(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// L1BridgeCaller is a free data retrieval call binding the contract method 0xd2442783.
|
||
|
//
|
||
|
// Solidity: function l1BridgeCaller() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) L1BridgeCaller() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.L1BridgeCaller(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// L1Governance is a free data retrieval call binding the contract method 0x3ef23f7f.
|
||
|
//
|
||
|
// Solidity: function l1Governance() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) L1Governance(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "l1Governance")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// L1Governance is a free data retrieval call binding the contract method 0x3ef23f7f.
|
||
|
//
|
||
|
// Solidity: function l1Governance() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) L1Governance() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.L1Governance(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// L1Governance is a free data retrieval call binding the contract method 0x3ef23f7f.
|
||
|
//
|
||
|
// Solidity: function l1Governance() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) L1Governance() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.L1Governance(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// LastCommitTimeForChainId is a free data retrieval call binding the contract method 0xd4e54c47.
|
||
|
//
|
||
|
// Solidity: function lastCommitTimeForChainId(uint256 ) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) LastCommitTimeForChainId(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "lastCommitTimeForChainId", arg0)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// LastCommitTimeForChainId is a free data retrieval call binding the contract method 0xd4e54c47.
|
||
|
//
|
||
|
// Solidity: function lastCommitTimeForChainId(uint256 ) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) LastCommitTimeForChainId(arg0 *big.Int) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.LastCommitTimeForChainId(&_HopL2OptimismBridge.CallOpts, arg0)
|
||
|
}
|
||
|
|
||
|
// LastCommitTimeForChainId is a free data retrieval call binding the contract method 0xd4e54c47.
|
||
|
//
|
||
|
// Solidity: function lastCommitTimeForChainId(uint256 ) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) LastCommitTimeForChainId(arg0 *big.Int) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.LastCommitTimeForChainId(&_HopL2OptimismBridge.CallOpts, arg0)
|
||
|
}
|
||
|
|
||
|
// MaxPendingTransfers is a free data retrieval call binding the contract method 0xbed93c84.
|
||
|
//
|
||
|
// Solidity: function maxPendingTransfers() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) MaxPendingTransfers(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "maxPendingTransfers")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// MaxPendingTransfers is a free data retrieval call binding the contract method 0xbed93c84.
|
||
|
//
|
||
|
// Solidity: function maxPendingTransfers() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) MaxPendingTransfers() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MaxPendingTransfers(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MaxPendingTransfers is a free data retrieval call binding the contract method 0xbed93c84.
|
||
|
//
|
||
|
// Solidity: function maxPendingTransfers() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) MaxPendingTransfers() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MaxPendingTransfers(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Messenger is a free data retrieval call binding the contract method 0x3cb747bf.
|
||
|
//
|
||
|
// Solidity: function messenger() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) Messenger(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "messenger")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Messenger is a free data retrieval call binding the contract method 0x3cb747bf.
|
||
|
//
|
||
|
// Solidity: function messenger() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) Messenger() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Messenger(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Messenger is a free data retrieval call binding the contract method 0x3cb747bf.
|
||
|
//
|
||
|
// Solidity: function messenger() view returns(address)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) Messenger() (common.Address, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Messenger(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MinBonderBps is a free data retrieval call binding the contract method 0x35e2c4af.
|
||
|
//
|
||
|
// Solidity: function minBonderBps() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) MinBonderBps(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "minBonderBps")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// MinBonderBps is a free data retrieval call binding the contract method 0x35e2c4af.
|
||
|
//
|
||
|
// Solidity: function minBonderBps() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) MinBonderBps() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MinBonderBps(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MinBonderBps is a free data retrieval call binding the contract method 0x35e2c4af.
|
||
|
//
|
||
|
// Solidity: function minBonderBps() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) MinBonderBps() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MinBonderBps(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MinBonderFeeAbsolute is a free data retrieval call binding the contract method 0xc3035261.
|
||
|
//
|
||
|
// Solidity: function minBonderFeeAbsolute() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) MinBonderFeeAbsolute(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "minBonderFeeAbsolute")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// MinBonderFeeAbsolute is a free data retrieval call binding the contract method 0xc3035261.
|
||
|
//
|
||
|
// Solidity: function minBonderFeeAbsolute() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) MinBonderFeeAbsolute() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MinBonderFeeAbsolute(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MinBonderFeeAbsolute is a free data retrieval call binding the contract method 0xc3035261.
|
||
|
//
|
||
|
// Solidity: function minBonderFeeAbsolute() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) MinBonderFeeAbsolute() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MinBonderFeeAbsolute(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MinimumForceCommitDelay is a free data retrieval call binding the contract method 0x8f658198.
|
||
|
//
|
||
|
// Solidity: function minimumForceCommitDelay() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) MinimumForceCommitDelay(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "minimumForceCommitDelay")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// MinimumForceCommitDelay is a free data retrieval call binding the contract method 0x8f658198.
|
||
|
//
|
||
|
// Solidity: function minimumForceCommitDelay() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) MinimumForceCommitDelay() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MinimumForceCommitDelay(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MinimumForceCommitDelay is a free data retrieval call binding the contract method 0x8f658198.
|
||
|
//
|
||
|
// Solidity: function minimumForceCommitDelay() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) MinimumForceCommitDelay() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.MinimumForceCommitDelay(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// PendingAmountForChainId is a free data retrieval call binding the contract method 0x0f5e09e7.
|
||
|
//
|
||
|
// Solidity: function pendingAmountForChainId(uint256 ) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) PendingAmountForChainId(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "pendingAmountForChainId", arg0)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// PendingAmountForChainId is a free data retrieval call binding the contract method 0x0f5e09e7.
|
||
|
//
|
||
|
// Solidity: function pendingAmountForChainId(uint256 ) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) PendingAmountForChainId(arg0 *big.Int) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.PendingAmountForChainId(&_HopL2OptimismBridge.CallOpts, arg0)
|
||
|
}
|
||
|
|
||
|
// PendingAmountForChainId is a free data retrieval call binding the contract method 0x0f5e09e7.
|
||
|
//
|
||
|
// Solidity: function pendingAmountForChainId(uint256 ) view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) PendingAmountForChainId(arg0 *big.Int) (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.PendingAmountForChainId(&_HopL2OptimismBridge.CallOpts, arg0)
|
||
|
}
|
||
|
|
||
|
// PendingTransferIdsForChainId is a free data retrieval call binding the contract method 0x98445caf.
|
||
|
//
|
||
|
// Solidity: function pendingTransferIdsForChainId(uint256 , uint256 ) view returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) PendingTransferIdsForChainId(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) ([32]byte, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "pendingTransferIdsForChainId", arg0, arg1)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new([32]byte), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// PendingTransferIdsForChainId is a free data retrieval call binding the contract method 0x98445caf.
|
||
|
//
|
||
|
// Solidity: function pendingTransferIdsForChainId(uint256 , uint256 ) view returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) PendingTransferIdsForChainId(arg0 *big.Int, arg1 *big.Int) ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.PendingTransferIdsForChainId(&_HopL2OptimismBridge.CallOpts, arg0, arg1)
|
||
|
}
|
||
|
|
||
|
// PendingTransferIdsForChainId is a free data retrieval call binding the contract method 0x98445caf.
|
||
|
//
|
||
|
// Solidity: function pendingTransferIdsForChainId(uint256 , uint256 ) view returns(bytes32)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) PendingTransferIdsForChainId(arg0 *big.Int, arg1 *big.Int) ([32]byte, error) {
|
||
|
return _HopL2OptimismBridge.Contract.PendingTransferIdsForChainId(&_HopL2OptimismBridge.CallOpts, arg0, arg1)
|
||
|
}
|
||
|
|
||
|
// TransferNonceIncrementer is a free data retrieval call binding the contract method 0x82c69f9d.
|
||
|
//
|
||
|
// Solidity: function transferNonceIncrementer() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCaller) TransferNonceIncrementer(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _HopL2OptimismBridge.contract.Call(opts, &out, "transferNonceIncrementer")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// TransferNonceIncrementer is a free data retrieval call binding the contract method 0x82c69f9d.
|
||
|
//
|
||
|
// Solidity: function transferNonceIncrementer() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) TransferNonceIncrementer() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.TransferNonceIncrementer(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// TransferNonceIncrementer is a free data retrieval call binding the contract method 0x82c69f9d.
|
||
|
//
|
||
|
// Solidity: function transferNonceIncrementer() view returns(uint256)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeCallerSession) TransferNonceIncrementer() (*big.Int, error) {
|
||
|
return _HopL2OptimismBridge.Contract.TransferNonceIncrementer(&_HopL2OptimismBridge.CallOpts)
|
||
|
}
|
||
|
|
||
|
// AddActiveChainIds is a paid mutator transaction binding the contract method 0xf8398fa4.
|
||
|
//
|
||
|
// Solidity: function addActiveChainIds(uint256[] chainIds) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) AddActiveChainIds(opts *bind.TransactOpts, chainIds []*big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "addActiveChainIds", chainIds)
|
||
|
}
|
||
|
|
||
|
// AddActiveChainIds is a paid mutator transaction binding the contract method 0xf8398fa4.
|
||
|
//
|
||
|
// Solidity: function addActiveChainIds(uint256[] chainIds) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) AddActiveChainIds(chainIds []*big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.AddActiveChainIds(&_HopL2OptimismBridge.TransactOpts, chainIds)
|
||
|
}
|
||
|
|
||
|
// AddActiveChainIds is a paid mutator transaction binding the contract method 0xf8398fa4.
|
||
|
//
|
||
|
// Solidity: function addActiveChainIds(uint256[] chainIds) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) AddActiveChainIds(chainIds []*big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.AddActiveChainIds(&_HopL2OptimismBridge.TransactOpts, chainIds)
|
||
|
}
|
||
|
|
||
|
// AddBonder is a paid mutator transaction binding the contract method 0x5325937f.
|
||
|
//
|
||
|
// Solidity: function addBonder(address bonder) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) AddBonder(opts *bind.TransactOpts, bonder common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "addBonder", bonder)
|
||
|
}
|
||
|
|
||
|
// AddBonder is a paid mutator transaction binding the contract method 0x5325937f.
|
||
|
//
|
||
|
// Solidity: function addBonder(address bonder) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) AddBonder(bonder common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.AddBonder(&_HopL2OptimismBridge.TransactOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// AddBonder is a paid mutator transaction binding the contract method 0x5325937f.
|
||
|
//
|
||
|
// Solidity: function addBonder(address bonder) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) AddBonder(bonder common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.AddBonder(&_HopL2OptimismBridge.TransactOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// BondWithdrawal is a paid mutator transaction binding the contract method 0x23c452cd.
|
||
|
//
|
||
|
// Solidity: function bondWithdrawal(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) BondWithdrawal(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "bondWithdrawal", recipient, amount, transferNonce, bonderFee)
|
||
|
}
|
||
|
|
||
|
// BondWithdrawal is a paid mutator transaction binding the contract method 0x23c452cd.
|
||
|
//
|
||
|
// Solidity: function bondWithdrawal(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) BondWithdrawal(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.BondWithdrawal(&_HopL2OptimismBridge.TransactOpts, recipient, amount, transferNonce, bonderFee)
|
||
|
}
|
||
|
|
||
|
// BondWithdrawal is a paid mutator transaction binding the contract method 0x23c452cd.
|
||
|
//
|
||
|
// Solidity: function bondWithdrawal(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) BondWithdrawal(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.BondWithdrawal(&_HopL2OptimismBridge.TransactOpts, recipient, amount, transferNonce, bonderFee)
|
||
|
}
|
||
|
|
||
|
// BondWithdrawalAndDistribute is a paid mutator transaction binding the contract method 0x3d12a85a.
|
||
|
//
|
||
|
// Solidity: function bondWithdrawalAndDistribute(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) BondWithdrawalAndDistribute(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "bondWithdrawalAndDistribute", recipient, amount, transferNonce, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// BondWithdrawalAndDistribute is a paid mutator transaction binding the contract method 0x3d12a85a.
|
||
|
//
|
||
|
// Solidity: function bondWithdrawalAndDistribute(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) BondWithdrawalAndDistribute(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.BondWithdrawalAndDistribute(&_HopL2OptimismBridge.TransactOpts, recipient, amount, transferNonce, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// BondWithdrawalAndDistribute is a paid mutator transaction binding the contract method 0x3d12a85a.
|
||
|
//
|
||
|
// Solidity: function bondWithdrawalAndDistribute(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) BondWithdrawalAndDistribute(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.BondWithdrawalAndDistribute(&_HopL2OptimismBridge.TransactOpts, recipient, amount, transferNonce, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// CommitTransfers is a paid mutator transaction binding the contract method 0x32b949a2.
|
||
|
//
|
||
|
// Solidity: function commitTransfers(uint256 destinationChainId) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) CommitTransfers(opts *bind.TransactOpts, destinationChainId *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "commitTransfers", destinationChainId)
|
||
|
}
|
||
|
|
||
|
// CommitTransfers is a paid mutator transaction binding the contract method 0x32b949a2.
|
||
|
//
|
||
|
// Solidity: function commitTransfers(uint256 destinationChainId) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) CommitTransfers(destinationChainId *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.CommitTransfers(&_HopL2OptimismBridge.TransactOpts, destinationChainId)
|
||
|
}
|
||
|
|
||
|
// CommitTransfers is a paid mutator transaction binding the contract method 0x32b949a2.
|
||
|
//
|
||
|
// Solidity: function commitTransfers(uint256 destinationChainId) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) CommitTransfers(destinationChainId *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.CommitTransfers(&_HopL2OptimismBridge.TransactOpts, destinationChainId)
|
||
|
}
|
||
|
|
||
|
// Distribute is a paid mutator transaction binding the contract method 0xcc29a306.
|
||
|
//
|
||
|
// Solidity: function distribute(address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) Distribute(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "distribute", recipient, amount, amountOutMin, deadline, relayer, relayerFee)
|
||
|
}
|
||
|
|
||
|
// Distribute is a paid mutator transaction binding the contract method 0xcc29a306.
|
||
|
//
|
||
|
// Solidity: function distribute(address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) Distribute(recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Distribute(&_HopL2OptimismBridge.TransactOpts, recipient, amount, amountOutMin, deadline, relayer, relayerFee)
|
||
|
}
|
||
|
|
||
|
// Distribute is a paid mutator transaction binding the contract method 0xcc29a306.
|
||
|
//
|
||
|
// Solidity: function distribute(address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) Distribute(recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Distribute(&_HopL2OptimismBridge.TransactOpts, recipient, amount, amountOutMin, deadline, relayer, relayerFee)
|
||
|
}
|
||
|
|
||
|
// RemoveActiveChainIds is a paid mutator transaction binding the contract method 0x9f600a0b.
|
||
|
//
|
||
|
// Solidity: function removeActiveChainIds(uint256[] chainIds) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) RemoveActiveChainIds(opts *bind.TransactOpts, chainIds []*big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "removeActiveChainIds", chainIds)
|
||
|
}
|
||
|
|
||
|
// RemoveActiveChainIds is a paid mutator transaction binding the contract method 0x9f600a0b.
|
||
|
//
|
||
|
// Solidity: function removeActiveChainIds(uint256[] chainIds) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) RemoveActiveChainIds(chainIds []*big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.RemoveActiveChainIds(&_HopL2OptimismBridge.TransactOpts, chainIds)
|
||
|
}
|
||
|
|
||
|
// RemoveActiveChainIds is a paid mutator transaction binding the contract method 0x9f600a0b.
|
||
|
//
|
||
|
// Solidity: function removeActiveChainIds(uint256[] chainIds) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) RemoveActiveChainIds(chainIds []*big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.RemoveActiveChainIds(&_HopL2OptimismBridge.TransactOpts, chainIds)
|
||
|
}
|
||
|
|
||
|
// RemoveBonder is a paid mutator transaction binding the contract method 0x04e6c2c0.
|
||
|
//
|
||
|
// Solidity: function removeBonder(address bonder) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) RemoveBonder(opts *bind.TransactOpts, bonder common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "removeBonder", bonder)
|
||
|
}
|
||
|
|
||
|
// RemoveBonder is a paid mutator transaction binding the contract method 0x04e6c2c0.
|
||
|
//
|
||
|
// Solidity: function removeBonder(address bonder) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) RemoveBonder(bonder common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.RemoveBonder(&_HopL2OptimismBridge.TransactOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// RemoveBonder is a paid mutator transaction binding the contract method 0x04e6c2c0.
|
||
|
//
|
||
|
// Solidity: function removeBonder(address bonder) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) RemoveBonder(bonder common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.RemoveBonder(&_HopL2OptimismBridge.TransactOpts, bonder)
|
||
|
}
|
||
|
|
||
|
// RescueTransferRoot is a paid mutator transaction binding the contract method 0xcbd1642e.
|
||
|
//
|
||
|
// Solidity: function rescueTransferRoot(bytes32 rootHash, uint256 originalAmount, address recipient) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) RescueTransferRoot(opts *bind.TransactOpts, rootHash [32]byte, originalAmount *big.Int, recipient common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "rescueTransferRoot", rootHash, originalAmount, recipient)
|
||
|
}
|
||
|
|
||
|
// RescueTransferRoot is a paid mutator transaction binding the contract method 0xcbd1642e.
|
||
|
//
|
||
|
// Solidity: function rescueTransferRoot(bytes32 rootHash, uint256 originalAmount, address recipient) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) RescueTransferRoot(rootHash [32]byte, originalAmount *big.Int, recipient common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.RescueTransferRoot(&_HopL2OptimismBridge.TransactOpts, rootHash, originalAmount, recipient)
|
||
|
}
|
||
|
|
||
|
// RescueTransferRoot is a paid mutator transaction binding the contract method 0xcbd1642e.
|
||
|
//
|
||
|
// Solidity: function rescueTransferRoot(bytes32 rootHash, uint256 originalAmount, address recipient) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) RescueTransferRoot(rootHash [32]byte, originalAmount *big.Int, recipient common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.RescueTransferRoot(&_HopL2OptimismBridge.TransactOpts, rootHash, originalAmount, recipient)
|
||
|
}
|
||
|
|
||
|
// Send is a paid mutator transaction binding the contract method 0xa6bd1b33.
|
||
|
//
|
||
|
// Solidity: function send(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) Send(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "send", chainId, recipient, amount, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// Send is a paid mutator transaction binding the contract method 0xa6bd1b33.
|
||
|
//
|
||
|
// Solidity: function send(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) Send(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Send(&_HopL2OptimismBridge.TransactOpts, chainId, recipient, amount, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// Send is a paid mutator transaction binding the contract method 0xa6bd1b33.
|
||
|
//
|
||
|
// Solidity: function send(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, uint256 amountOutMin, uint256 deadline) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) Send(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Send(&_HopL2OptimismBridge.TransactOpts, chainId, recipient, amount, bonderFee, amountOutMin, deadline)
|
||
|
}
|
||
|
|
||
|
// SetAmmWrapper is a paid mutator transaction binding the contract method 0x64c6fdb4.
|
||
|
//
|
||
|
// Solidity: function setAmmWrapper(address _ammWrapper) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetAmmWrapper(opts *bind.TransactOpts, _ammWrapper common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setAmmWrapper", _ammWrapper)
|
||
|
}
|
||
|
|
||
|
// SetAmmWrapper is a paid mutator transaction binding the contract method 0x64c6fdb4.
|
||
|
//
|
||
|
// Solidity: function setAmmWrapper(address _ammWrapper) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetAmmWrapper(_ammWrapper common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetAmmWrapper(&_HopL2OptimismBridge.TransactOpts, _ammWrapper)
|
||
|
}
|
||
|
|
||
|
// SetAmmWrapper is a paid mutator transaction binding the contract method 0x64c6fdb4.
|
||
|
//
|
||
|
// Solidity: function setAmmWrapper(address _ammWrapper) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetAmmWrapper(_ammWrapper common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetAmmWrapper(&_HopL2OptimismBridge.TransactOpts, _ammWrapper)
|
||
|
}
|
||
|
|
||
|
// SetDefaultGasLimit is a paid mutator transaction binding the contract method 0x524b6f70.
|
||
|
//
|
||
|
// Solidity: function setDefaultGasLimit(uint32 _defaultGasLimit) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetDefaultGasLimit(opts *bind.TransactOpts, _defaultGasLimit uint32) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setDefaultGasLimit", _defaultGasLimit)
|
||
|
}
|
||
|
|
||
|
// SetDefaultGasLimit is a paid mutator transaction binding the contract method 0x524b6f70.
|
||
|
//
|
||
|
// Solidity: function setDefaultGasLimit(uint32 _defaultGasLimit) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetDefaultGasLimit(_defaultGasLimit uint32) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetDefaultGasLimit(&_HopL2OptimismBridge.TransactOpts, _defaultGasLimit)
|
||
|
}
|
||
|
|
||
|
// SetDefaultGasLimit is a paid mutator transaction binding the contract method 0x524b6f70.
|
||
|
//
|
||
|
// Solidity: function setDefaultGasLimit(uint32 _defaultGasLimit) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetDefaultGasLimit(_defaultGasLimit uint32) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetDefaultGasLimit(&_HopL2OptimismBridge.TransactOpts, _defaultGasLimit)
|
||
|
}
|
||
|
|
||
|
// SetHopBridgeTokenOwner is a paid mutator transaction binding the contract method 0x8295f258.
|
||
|
//
|
||
|
// Solidity: function setHopBridgeTokenOwner(address newOwner) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetHopBridgeTokenOwner(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setHopBridgeTokenOwner", newOwner)
|
||
|
}
|
||
|
|
||
|
// SetHopBridgeTokenOwner is a paid mutator transaction binding the contract method 0x8295f258.
|
||
|
//
|
||
|
// Solidity: function setHopBridgeTokenOwner(address newOwner) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetHopBridgeTokenOwner(newOwner common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetHopBridgeTokenOwner(&_HopL2OptimismBridge.TransactOpts, newOwner)
|
||
|
}
|
||
|
|
||
|
// SetHopBridgeTokenOwner is a paid mutator transaction binding the contract method 0x8295f258.
|
||
|
//
|
||
|
// Solidity: function setHopBridgeTokenOwner(address newOwner) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetHopBridgeTokenOwner(newOwner common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetHopBridgeTokenOwner(&_HopL2OptimismBridge.TransactOpts, newOwner)
|
||
|
}
|
||
|
|
||
|
// SetL1BridgeAddress is a paid mutator transaction binding the contract method 0xe1825d06.
|
||
|
//
|
||
|
// Solidity: function setL1BridgeAddress(address _l1BridgeAddress) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetL1BridgeAddress(opts *bind.TransactOpts, _l1BridgeAddress common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setL1BridgeAddress", _l1BridgeAddress)
|
||
|
}
|
||
|
|
||
|
// SetL1BridgeAddress is a paid mutator transaction binding the contract method 0xe1825d06.
|
||
|
//
|
||
|
// Solidity: function setL1BridgeAddress(address _l1BridgeAddress) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetL1BridgeAddress(_l1BridgeAddress common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetL1BridgeAddress(&_HopL2OptimismBridge.TransactOpts, _l1BridgeAddress)
|
||
|
}
|
||
|
|
||
|
// SetL1BridgeAddress is a paid mutator transaction binding the contract method 0xe1825d06.
|
||
|
//
|
||
|
// Solidity: function setL1BridgeAddress(address _l1BridgeAddress) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetL1BridgeAddress(_l1BridgeAddress common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetL1BridgeAddress(&_HopL2OptimismBridge.TransactOpts, _l1BridgeAddress)
|
||
|
}
|
||
|
|
||
|
// SetL1BridgeCaller is a paid mutator transaction binding the contract method 0xaf33ae69.
|
||
|
//
|
||
|
// Solidity: function setL1BridgeCaller(address _l1BridgeCaller) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetL1BridgeCaller(opts *bind.TransactOpts, _l1BridgeCaller common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setL1BridgeCaller", _l1BridgeCaller)
|
||
|
}
|
||
|
|
||
|
// SetL1BridgeCaller is a paid mutator transaction binding the contract method 0xaf33ae69.
|
||
|
//
|
||
|
// Solidity: function setL1BridgeCaller(address _l1BridgeCaller) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetL1BridgeCaller(_l1BridgeCaller common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetL1BridgeCaller(&_HopL2OptimismBridge.TransactOpts, _l1BridgeCaller)
|
||
|
}
|
||
|
|
||
|
// SetL1BridgeCaller is a paid mutator transaction binding the contract method 0xaf33ae69.
|
||
|
//
|
||
|
// Solidity: function setL1BridgeCaller(address _l1BridgeCaller) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetL1BridgeCaller(_l1BridgeCaller common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetL1BridgeCaller(&_HopL2OptimismBridge.TransactOpts, _l1BridgeCaller)
|
||
|
}
|
||
|
|
||
|
// SetL1Governance is a paid mutator transaction binding the contract method 0xe40272d7.
|
||
|
//
|
||
|
// Solidity: function setL1Governance(address _l1Governance) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetL1Governance(opts *bind.TransactOpts, _l1Governance common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setL1Governance", _l1Governance)
|
||
|
}
|
||
|
|
||
|
// SetL1Governance is a paid mutator transaction binding the contract method 0xe40272d7.
|
||
|
//
|
||
|
// Solidity: function setL1Governance(address _l1Governance) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetL1Governance(_l1Governance common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetL1Governance(&_HopL2OptimismBridge.TransactOpts, _l1Governance)
|
||
|
}
|
||
|
|
||
|
// SetL1Governance is a paid mutator transaction binding the contract method 0xe40272d7.
|
||
|
//
|
||
|
// Solidity: function setL1Governance(address _l1Governance) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetL1Governance(_l1Governance common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetL1Governance(&_HopL2OptimismBridge.TransactOpts, _l1Governance)
|
||
|
}
|
||
|
|
||
|
// SetMaxPendingTransfers is a paid mutator transaction binding the contract method 0x4742bbfb.
|
||
|
//
|
||
|
// Solidity: function setMaxPendingTransfers(uint256 _maxPendingTransfers) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetMaxPendingTransfers(opts *bind.TransactOpts, _maxPendingTransfers *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setMaxPendingTransfers", _maxPendingTransfers)
|
||
|
}
|
||
|
|
||
|
// SetMaxPendingTransfers is a paid mutator transaction binding the contract method 0x4742bbfb.
|
||
|
//
|
||
|
// Solidity: function setMaxPendingTransfers(uint256 _maxPendingTransfers) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetMaxPendingTransfers(_maxPendingTransfers *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMaxPendingTransfers(&_HopL2OptimismBridge.TransactOpts, _maxPendingTransfers)
|
||
|
}
|
||
|
|
||
|
// SetMaxPendingTransfers is a paid mutator transaction binding the contract method 0x4742bbfb.
|
||
|
//
|
||
|
// Solidity: function setMaxPendingTransfers(uint256 _maxPendingTransfers) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetMaxPendingTransfers(_maxPendingTransfers *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMaxPendingTransfers(&_HopL2OptimismBridge.TransactOpts, _maxPendingTransfers)
|
||
|
}
|
||
|
|
||
|
// SetMessenger is a paid mutator transaction binding the contract method 0x66285967.
|
||
|
//
|
||
|
// Solidity: function setMessenger(address _messenger) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetMessenger(opts *bind.TransactOpts, _messenger common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setMessenger", _messenger)
|
||
|
}
|
||
|
|
||
|
// SetMessenger is a paid mutator transaction binding the contract method 0x66285967.
|
||
|
//
|
||
|
// Solidity: function setMessenger(address _messenger) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetMessenger(_messenger common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMessenger(&_HopL2OptimismBridge.TransactOpts, _messenger)
|
||
|
}
|
||
|
|
||
|
// SetMessenger is a paid mutator transaction binding the contract method 0x66285967.
|
||
|
//
|
||
|
// Solidity: function setMessenger(address _messenger) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetMessenger(_messenger common.Address) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMessenger(&_HopL2OptimismBridge.TransactOpts, _messenger)
|
||
|
}
|
||
|
|
||
|
// SetMinimumBonderFeeRequirements is a paid mutator transaction binding the contract method 0xa9fa4ed5.
|
||
|
//
|
||
|
// Solidity: function setMinimumBonderFeeRequirements(uint256 _minBonderBps, uint256 _minBonderFeeAbsolute) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetMinimumBonderFeeRequirements(opts *bind.TransactOpts, _minBonderBps *big.Int, _minBonderFeeAbsolute *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setMinimumBonderFeeRequirements", _minBonderBps, _minBonderFeeAbsolute)
|
||
|
}
|
||
|
|
||
|
// SetMinimumBonderFeeRequirements is a paid mutator transaction binding the contract method 0xa9fa4ed5.
|
||
|
//
|
||
|
// Solidity: function setMinimumBonderFeeRequirements(uint256 _minBonderBps, uint256 _minBonderFeeAbsolute) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetMinimumBonderFeeRequirements(_minBonderBps *big.Int, _minBonderFeeAbsolute *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMinimumBonderFeeRequirements(&_HopL2OptimismBridge.TransactOpts, _minBonderBps, _minBonderFeeAbsolute)
|
||
|
}
|
||
|
|
||
|
// SetMinimumBonderFeeRequirements is a paid mutator transaction binding the contract method 0xa9fa4ed5.
|
||
|
//
|
||
|
// Solidity: function setMinimumBonderFeeRequirements(uint256 _minBonderBps, uint256 _minBonderFeeAbsolute) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetMinimumBonderFeeRequirements(_minBonderBps *big.Int, _minBonderFeeAbsolute *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMinimumBonderFeeRequirements(&_HopL2OptimismBridge.TransactOpts, _minBonderBps, _minBonderFeeAbsolute)
|
||
|
}
|
||
|
|
||
|
// SetMinimumForceCommitDelay is a paid mutator transaction binding the contract method 0x9bf43028.
|
||
|
//
|
||
|
// Solidity: function setMinimumForceCommitDelay(uint256 _minimumForceCommitDelay) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetMinimumForceCommitDelay(opts *bind.TransactOpts, _minimumForceCommitDelay *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setMinimumForceCommitDelay", _minimumForceCommitDelay)
|
||
|
}
|
||
|
|
||
|
// SetMinimumForceCommitDelay is a paid mutator transaction binding the contract method 0x9bf43028.
|
||
|
//
|
||
|
// Solidity: function setMinimumForceCommitDelay(uint256 _minimumForceCommitDelay) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetMinimumForceCommitDelay(_minimumForceCommitDelay *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMinimumForceCommitDelay(&_HopL2OptimismBridge.TransactOpts, _minimumForceCommitDelay)
|
||
|
}
|
||
|
|
||
|
// SetMinimumForceCommitDelay is a paid mutator transaction binding the contract method 0x9bf43028.
|
||
|
//
|
||
|
// Solidity: function setMinimumForceCommitDelay(uint256 _minimumForceCommitDelay) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetMinimumForceCommitDelay(_minimumForceCommitDelay *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetMinimumForceCommitDelay(&_HopL2OptimismBridge.TransactOpts, _minimumForceCommitDelay)
|
||
|
}
|
||
|
|
||
|
// SetTransferRoot is a paid mutator transaction binding the contract method 0xfd31c5ba.
|
||
|
//
|
||
|
// Solidity: function setTransferRoot(bytes32 rootHash, uint256 totalAmount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SetTransferRoot(opts *bind.TransactOpts, rootHash [32]byte, totalAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "setTransferRoot", rootHash, totalAmount)
|
||
|
}
|
||
|
|
||
|
// SetTransferRoot is a paid mutator transaction binding the contract method 0xfd31c5ba.
|
||
|
//
|
||
|
// Solidity: function setTransferRoot(bytes32 rootHash, uint256 totalAmount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SetTransferRoot(rootHash [32]byte, totalAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetTransferRoot(&_HopL2OptimismBridge.TransactOpts, rootHash, totalAmount)
|
||
|
}
|
||
|
|
||
|
// SetTransferRoot is a paid mutator transaction binding the contract method 0xfd31c5ba.
|
||
|
//
|
||
|
// Solidity: function setTransferRoot(bytes32 rootHash, uint256 totalAmount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SetTransferRoot(rootHash [32]byte, totalAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SetTransferRoot(&_HopL2OptimismBridge.TransactOpts, rootHash, totalAmount)
|
||
|
}
|
||
|
|
||
|
// SettleBondedWithdrawal is a paid mutator transaction binding the contract method 0xc7525dd3.
|
||
|
//
|
||
|
// Solidity: function settleBondedWithdrawal(address bonder, bytes32 transferId, bytes32 rootHash, uint256 transferRootTotalAmount, uint256 transferIdTreeIndex, bytes32[] siblings, uint256 totalLeaves) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SettleBondedWithdrawal(opts *bind.TransactOpts, bonder common.Address, transferId [32]byte, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "settleBondedWithdrawal", bonder, transferId, rootHash, transferRootTotalAmount, transferIdTreeIndex, siblings, totalLeaves)
|
||
|
}
|
||
|
|
||
|
// SettleBondedWithdrawal is a paid mutator transaction binding the contract method 0xc7525dd3.
|
||
|
//
|
||
|
// Solidity: function settleBondedWithdrawal(address bonder, bytes32 transferId, bytes32 rootHash, uint256 transferRootTotalAmount, uint256 transferIdTreeIndex, bytes32[] siblings, uint256 totalLeaves) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SettleBondedWithdrawal(bonder common.Address, transferId [32]byte, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SettleBondedWithdrawal(&_HopL2OptimismBridge.TransactOpts, bonder, transferId, rootHash, transferRootTotalAmount, transferIdTreeIndex, siblings, totalLeaves)
|
||
|
}
|
||
|
|
||
|
// SettleBondedWithdrawal is a paid mutator transaction binding the contract method 0xc7525dd3.
|
||
|
//
|
||
|
// Solidity: function settleBondedWithdrawal(address bonder, bytes32 transferId, bytes32 rootHash, uint256 transferRootTotalAmount, uint256 transferIdTreeIndex, bytes32[] siblings, uint256 totalLeaves) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SettleBondedWithdrawal(bonder common.Address, transferId [32]byte, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SettleBondedWithdrawal(&_HopL2OptimismBridge.TransactOpts, bonder, transferId, rootHash, transferRootTotalAmount, transferIdTreeIndex, siblings, totalLeaves)
|
||
|
}
|
||
|
|
||
|
// SettleBondedWithdrawals is a paid mutator transaction binding the contract method 0xb162717e.
|
||
|
//
|
||
|
// Solidity: function settleBondedWithdrawals(address bonder, bytes32[] transferIds, uint256 totalAmount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) SettleBondedWithdrawals(opts *bind.TransactOpts, bonder common.Address, transferIds [][32]byte, totalAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "settleBondedWithdrawals", bonder, transferIds, totalAmount)
|
||
|
}
|
||
|
|
||
|
// SettleBondedWithdrawals is a paid mutator transaction binding the contract method 0xb162717e.
|
||
|
//
|
||
|
// Solidity: function settleBondedWithdrawals(address bonder, bytes32[] transferIds, uint256 totalAmount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) SettleBondedWithdrawals(bonder common.Address, transferIds [][32]byte, totalAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SettleBondedWithdrawals(&_HopL2OptimismBridge.TransactOpts, bonder, transferIds, totalAmount)
|
||
|
}
|
||
|
|
||
|
// SettleBondedWithdrawals is a paid mutator transaction binding the contract method 0xb162717e.
|
||
|
//
|
||
|
// Solidity: function settleBondedWithdrawals(address bonder, bytes32[] transferIds, uint256 totalAmount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) SettleBondedWithdrawals(bonder common.Address, transferIds [][32]byte, totalAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.SettleBondedWithdrawals(&_HopL2OptimismBridge.TransactOpts, bonder, transferIds, totalAmount)
|
||
|
}
|
||
|
|
||
|
// Stake is a paid mutator transaction binding the contract method 0xadc9772e.
|
||
|
//
|
||
|
// Solidity: function stake(address bonder, uint256 amount) payable returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) Stake(opts *bind.TransactOpts, bonder common.Address, amount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "stake", bonder, amount)
|
||
|
}
|
||
|
|
||
|
// Stake is a paid mutator transaction binding the contract method 0xadc9772e.
|
||
|
//
|
||
|
// Solidity: function stake(address bonder, uint256 amount) payable returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) Stake(bonder common.Address, amount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Stake(&_HopL2OptimismBridge.TransactOpts, bonder, amount)
|
||
|
}
|
||
|
|
||
|
// Stake is a paid mutator transaction binding the contract method 0xadc9772e.
|
||
|
//
|
||
|
// Solidity: function stake(address bonder, uint256 amount) payable returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) Stake(bonder common.Address, amount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Stake(&_HopL2OptimismBridge.TransactOpts, bonder, amount)
|
||
|
}
|
||
|
|
||
|
// Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
|
||
|
//
|
||
|
// Solidity: function unstake(uint256 amount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) Unstake(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "unstake", amount)
|
||
|
}
|
||
|
|
||
|
// Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
|
||
|
//
|
||
|
// Solidity: function unstake(uint256 amount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) Unstake(amount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Unstake(&_HopL2OptimismBridge.TransactOpts, amount)
|
||
|
}
|
||
|
|
||
|
// Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
|
||
|
//
|
||
|
// Solidity: function unstake(uint256 amount) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) Unstake(amount *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Unstake(&_HopL2OptimismBridge.TransactOpts, amount)
|
||
|
}
|
||
|
|
||
|
// Withdraw is a paid mutator transaction binding the contract method 0x0f7aadb7.
|
||
|
//
|
||
|
// Solidity: function withdraw(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline, bytes32 rootHash, uint256 transferRootTotalAmount, uint256 transferIdTreeIndex, bytes32[] siblings, uint256 totalLeaves) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactor) Withdraw(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.contract.Transact(opts, "withdraw", recipient, amount, transferNonce, bonderFee, amountOutMin, deadline, rootHash, transferRootTotalAmount, transferIdTreeIndex, siblings, totalLeaves)
|
||
|
}
|
||
|
|
||
|
// Withdraw is a paid mutator transaction binding the contract method 0x0f7aadb7.
|
||
|
//
|
||
|
// Solidity: function withdraw(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline, bytes32 rootHash, uint256 transferRootTotalAmount, uint256 transferIdTreeIndex, bytes32[] siblings, uint256 totalLeaves) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeSession) Withdraw(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Withdraw(&_HopL2OptimismBridge.TransactOpts, recipient, amount, transferNonce, bonderFee, amountOutMin, deadline, rootHash, transferRootTotalAmount, transferIdTreeIndex, siblings, totalLeaves)
|
||
|
}
|
||
|
|
||
|
// Withdraw is a paid mutator transaction binding the contract method 0x0f7aadb7.
|
||
|
//
|
||
|
// Solidity: function withdraw(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 amountOutMin, uint256 deadline, bytes32 rootHash, uint256 transferRootTotalAmount, uint256 transferIdTreeIndex, bytes32[] siblings, uint256 totalLeaves) returns()
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeTransactorSession) Withdraw(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
|
||
|
return _HopL2OptimismBridge.Contract.Withdraw(&_HopL2OptimismBridge.TransactOpts, recipient, amount, transferNonce, bonderFee, amountOutMin, deadline, rootHash, transferRootTotalAmount, transferIdTreeIndex, siblings, totalLeaves)
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeBonderAddedIterator is returned from FilterBonderAdded and is used to iterate over the raw logs and unpacked data for BonderAdded events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeBonderAddedIterator struct {
|
||
|
Event *HopL2OptimismBridgeBonderAdded // 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 *HopL2OptimismBridgeBonderAddedIterator) 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(HopL2OptimismBridgeBonderAdded)
|
||
|
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(HopL2OptimismBridgeBonderAdded)
|
||
|
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 *HopL2OptimismBridgeBonderAddedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeBonderAddedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeBonderAdded represents a BonderAdded event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeBonderAdded struct {
|
||
|
NewBonder common.Address
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterBonderAdded is a free log retrieval operation binding the contract event 0x2cec73b7434d3b91198ad1a618f63e6a0761ce281af5ec9ec76606d948d03e23.
|
||
|
//
|
||
|
// Solidity: event BonderAdded(address indexed newBonder)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterBonderAdded(opts *bind.FilterOpts, newBonder []common.Address) (*HopL2OptimismBridgeBonderAddedIterator, error) {
|
||
|
|
||
|
var newBonderRule []interface{}
|
||
|
for _, newBonderItem := range newBonder {
|
||
|
newBonderRule = append(newBonderRule, newBonderItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "BonderAdded", newBonderRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeBonderAddedIterator{contract: _HopL2OptimismBridge.contract, event: "BonderAdded", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchBonderAdded is a free log subscription operation binding the contract event 0x2cec73b7434d3b91198ad1a618f63e6a0761ce281af5ec9ec76606d948d03e23.
|
||
|
//
|
||
|
// Solidity: event BonderAdded(address indexed newBonder)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchBonderAdded(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeBonderAdded, newBonder []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var newBonderRule []interface{}
|
||
|
for _, newBonderItem := range newBonder {
|
||
|
newBonderRule = append(newBonderRule, newBonderItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "BonderAdded", newBonderRule)
|
||
|
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(HopL2OptimismBridgeBonderAdded)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "BonderAdded", 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
|
||
|
}
|
||
|
|
||
|
// ParseBonderAdded is a log parse operation binding the contract event 0x2cec73b7434d3b91198ad1a618f63e6a0761ce281af5ec9ec76606d948d03e23.
|
||
|
//
|
||
|
// Solidity: event BonderAdded(address indexed newBonder)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseBonderAdded(log types.Log) (*HopL2OptimismBridgeBonderAdded, error) {
|
||
|
event := new(HopL2OptimismBridgeBonderAdded)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "BonderAdded", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeBonderRemovedIterator is returned from FilterBonderRemoved and is used to iterate over the raw logs and unpacked data for BonderRemoved events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeBonderRemovedIterator struct {
|
||
|
Event *HopL2OptimismBridgeBonderRemoved // 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 *HopL2OptimismBridgeBonderRemovedIterator) 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(HopL2OptimismBridgeBonderRemoved)
|
||
|
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(HopL2OptimismBridgeBonderRemoved)
|
||
|
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 *HopL2OptimismBridgeBonderRemovedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeBonderRemovedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeBonderRemoved represents a BonderRemoved event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeBonderRemoved struct {
|
||
|
PreviousBonder common.Address
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterBonderRemoved is a free log retrieval operation binding the contract event 0x4234ba611d325b3ba434c4e1b037967b955b1274d4185ee9847b7491111a48ff.
|
||
|
//
|
||
|
// Solidity: event BonderRemoved(address indexed previousBonder)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterBonderRemoved(opts *bind.FilterOpts, previousBonder []common.Address) (*HopL2OptimismBridgeBonderRemovedIterator, error) {
|
||
|
|
||
|
var previousBonderRule []interface{}
|
||
|
for _, previousBonderItem := range previousBonder {
|
||
|
previousBonderRule = append(previousBonderRule, previousBonderItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "BonderRemoved", previousBonderRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeBonderRemovedIterator{contract: _HopL2OptimismBridge.contract, event: "BonderRemoved", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchBonderRemoved is a free log subscription operation binding the contract event 0x4234ba611d325b3ba434c4e1b037967b955b1274d4185ee9847b7491111a48ff.
|
||
|
//
|
||
|
// Solidity: event BonderRemoved(address indexed previousBonder)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchBonderRemoved(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeBonderRemoved, previousBonder []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var previousBonderRule []interface{}
|
||
|
for _, previousBonderItem := range previousBonder {
|
||
|
previousBonderRule = append(previousBonderRule, previousBonderItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "BonderRemoved", previousBonderRule)
|
||
|
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(HopL2OptimismBridgeBonderRemoved)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "BonderRemoved", 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
|
||
|
}
|
||
|
|
||
|
// ParseBonderRemoved is a log parse operation binding the contract event 0x4234ba611d325b3ba434c4e1b037967b955b1274d4185ee9847b7491111a48ff.
|
||
|
//
|
||
|
// Solidity: event BonderRemoved(address indexed previousBonder)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseBonderRemoved(log types.Log) (*HopL2OptimismBridgeBonderRemoved, error) {
|
||
|
event := new(HopL2OptimismBridgeBonderRemoved)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "BonderRemoved", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeMultipleWithdrawalsSettledIterator is returned from FilterMultipleWithdrawalsSettled and is used to iterate over the raw logs and unpacked data for MultipleWithdrawalsSettled events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeMultipleWithdrawalsSettledIterator struct {
|
||
|
Event *HopL2OptimismBridgeMultipleWithdrawalsSettled // 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 *HopL2OptimismBridgeMultipleWithdrawalsSettledIterator) 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(HopL2OptimismBridgeMultipleWithdrawalsSettled)
|
||
|
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(HopL2OptimismBridgeMultipleWithdrawalsSettled)
|
||
|
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 *HopL2OptimismBridgeMultipleWithdrawalsSettledIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeMultipleWithdrawalsSettledIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeMultipleWithdrawalsSettled represents a MultipleWithdrawalsSettled event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeMultipleWithdrawalsSettled struct {
|
||
|
Bonder common.Address
|
||
|
RootHash [32]byte
|
||
|
TotalBondsSettled *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterMultipleWithdrawalsSettled is a free log retrieval operation binding the contract event 0x78e830d08be9d5f957414c84d685c061ecbd8467be98b42ebb64f0118b57d2ff.
|
||
|
//
|
||
|
// Solidity: event MultipleWithdrawalsSettled(address indexed bonder, bytes32 indexed rootHash, uint256 totalBondsSettled)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterMultipleWithdrawalsSettled(opts *bind.FilterOpts, bonder []common.Address, rootHash [][32]byte) (*HopL2OptimismBridgeMultipleWithdrawalsSettledIterator, error) {
|
||
|
|
||
|
var bonderRule []interface{}
|
||
|
for _, bonderItem := range bonder {
|
||
|
bonderRule = append(bonderRule, bonderItem)
|
||
|
}
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "MultipleWithdrawalsSettled", bonderRule, rootHashRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeMultipleWithdrawalsSettledIterator{contract: _HopL2OptimismBridge.contract, event: "MultipleWithdrawalsSettled", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchMultipleWithdrawalsSettled is a free log subscription operation binding the contract event 0x78e830d08be9d5f957414c84d685c061ecbd8467be98b42ebb64f0118b57d2ff.
|
||
|
//
|
||
|
// Solidity: event MultipleWithdrawalsSettled(address indexed bonder, bytes32 indexed rootHash, uint256 totalBondsSettled)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchMultipleWithdrawalsSettled(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeMultipleWithdrawalsSettled, bonder []common.Address, rootHash [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var bonderRule []interface{}
|
||
|
for _, bonderItem := range bonder {
|
||
|
bonderRule = append(bonderRule, bonderItem)
|
||
|
}
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "MultipleWithdrawalsSettled", bonderRule, rootHashRule)
|
||
|
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(HopL2OptimismBridgeMultipleWithdrawalsSettled)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "MultipleWithdrawalsSettled", 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
|
||
|
}
|
||
|
|
||
|
// ParseMultipleWithdrawalsSettled is a log parse operation binding the contract event 0x78e830d08be9d5f957414c84d685c061ecbd8467be98b42ebb64f0118b57d2ff.
|
||
|
//
|
||
|
// Solidity: event MultipleWithdrawalsSettled(address indexed bonder, bytes32 indexed rootHash, uint256 totalBondsSettled)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseMultipleWithdrawalsSettled(log types.Log) (*HopL2OptimismBridgeMultipleWithdrawalsSettled, error) {
|
||
|
event := new(HopL2OptimismBridgeMultipleWithdrawalsSettled)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "MultipleWithdrawalsSettled", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeStakeIterator is returned from FilterStake and is used to iterate over the raw logs and unpacked data for Stake events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeStakeIterator struct {
|
||
|
Event *HopL2OptimismBridgeStake // 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 *HopL2OptimismBridgeStakeIterator) 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(HopL2OptimismBridgeStake)
|
||
|
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(HopL2OptimismBridgeStake)
|
||
|
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 *HopL2OptimismBridgeStakeIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeStakeIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeStake represents a Stake event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeStake struct {
|
||
|
Account common.Address
|
||
|
Amount *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterStake is a free log retrieval operation binding the contract event 0xebedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a.
|
||
|
//
|
||
|
// Solidity: event Stake(address indexed account, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterStake(opts *bind.FilterOpts, account []common.Address) (*HopL2OptimismBridgeStakeIterator, error) {
|
||
|
|
||
|
var accountRule []interface{}
|
||
|
for _, accountItem := range account {
|
||
|
accountRule = append(accountRule, accountItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "Stake", accountRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeStakeIterator{contract: _HopL2OptimismBridge.contract, event: "Stake", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchStake is a free log subscription operation binding the contract event 0xebedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a.
|
||
|
//
|
||
|
// Solidity: event Stake(address indexed account, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchStake(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeStake, account []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var accountRule []interface{}
|
||
|
for _, accountItem := range account {
|
||
|
accountRule = append(accountRule, accountItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "Stake", accountRule)
|
||
|
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(HopL2OptimismBridgeStake)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "Stake", 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
|
||
|
}
|
||
|
|
||
|
// ParseStake is a log parse operation binding the contract event 0xebedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a.
|
||
|
//
|
||
|
// Solidity: event Stake(address indexed account, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseStake(log types.Log) (*HopL2OptimismBridgeStake, error) {
|
||
|
event := new(HopL2OptimismBridgeStake)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "Stake", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransferFromL1CompletedIterator is returned from FilterTransferFromL1Completed and is used to iterate over the raw logs and unpacked data for TransferFromL1Completed events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransferFromL1CompletedIterator struct {
|
||
|
Event *HopL2OptimismBridgeTransferFromL1Completed // 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 *HopL2OptimismBridgeTransferFromL1CompletedIterator) 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(HopL2OptimismBridgeTransferFromL1Completed)
|
||
|
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(HopL2OptimismBridgeTransferFromL1Completed)
|
||
|
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 *HopL2OptimismBridgeTransferFromL1CompletedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeTransferFromL1CompletedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransferFromL1Completed represents a TransferFromL1Completed event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransferFromL1Completed struct {
|
||
|
Recipient common.Address
|
||
|
Amount *big.Int
|
||
|
AmountOutMin *big.Int
|
||
|
Deadline *big.Int
|
||
|
Relayer common.Address
|
||
|
RelayerFee *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterTransferFromL1Completed is a free log retrieval operation binding the contract event 0x320958176930804eb66c2343c7343fc0367dc16249590c0f195783bee199d094.
|
||
|
//
|
||
|
// Solidity: event TransferFromL1Completed(address indexed recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address indexed relayer, uint256 relayerFee)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterTransferFromL1Completed(opts *bind.FilterOpts, recipient []common.Address, relayer []common.Address) (*HopL2OptimismBridgeTransferFromL1CompletedIterator, error) {
|
||
|
|
||
|
var recipientRule []interface{}
|
||
|
for _, recipientItem := range recipient {
|
||
|
recipientRule = append(recipientRule, recipientItem)
|
||
|
}
|
||
|
|
||
|
var relayerRule []interface{}
|
||
|
for _, relayerItem := range relayer {
|
||
|
relayerRule = append(relayerRule, relayerItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "TransferFromL1Completed", recipientRule, relayerRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeTransferFromL1CompletedIterator{contract: _HopL2OptimismBridge.contract, event: "TransferFromL1Completed", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchTransferFromL1Completed is a free log subscription operation binding the contract event 0x320958176930804eb66c2343c7343fc0367dc16249590c0f195783bee199d094.
|
||
|
//
|
||
|
// Solidity: event TransferFromL1Completed(address indexed recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address indexed relayer, uint256 relayerFee)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchTransferFromL1Completed(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeTransferFromL1Completed, recipient []common.Address, relayer []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var recipientRule []interface{}
|
||
|
for _, recipientItem := range recipient {
|
||
|
recipientRule = append(recipientRule, recipientItem)
|
||
|
}
|
||
|
|
||
|
var relayerRule []interface{}
|
||
|
for _, relayerItem := range relayer {
|
||
|
relayerRule = append(relayerRule, relayerItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "TransferFromL1Completed", recipientRule, relayerRule)
|
||
|
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(HopL2OptimismBridgeTransferFromL1Completed)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransferFromL1Completed", 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
|
||
|
}
|
||
|
|
||
|
// ParseTransferFromL1Completed is a log parse operation binding the contract event 0x320958176930804eb66c2343c7343fc0367dc16249590c0f195783bee199d094.
|
||
|
//
|
||
|
// Solidity: event TransferFromL1Completed(address indexed recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address indexed relayer, uint256 relayerFee)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseTransferFromL1Completed(log types.Log) (*HopL2OptimismBridgeTransferFromL1Completed, error) {
|
||
|
event := new(HopL2OptimismBridgeTransferFromL1Completed)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransferFromL1Completed", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransferRootSetIterator is returned from FilterTransferRootSet and is used to iterate over the raw logs and unpacked data for TransferRootSet events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransferRootSetIterator struct {
|
||
|
Event *HopL2OptimismBridgeTransferRootSet // 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 *HopL2OptimismBridgeTransferRootSetIterator) 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(HopL2OptimismBridgeTransferRootSet)
|
||
|
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(HopL2OptimismBridgeTransferRootSet)
|
||
|
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 *HopL2OptimismBridgeTransferRootSetIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeTransferRootSetIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransferRootSet represents a TransferRootSet event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransferRootSet struct {
|
||
|
RootHash [32]byte
|
||
|
TotalAmount *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterTransferRootSet is a free log retrieval operation binding the contract event 0xb33d2162aead99dab59e77a7a67ea025b776bf8ca8079e132afdf9b23e03bd42.
|
||
|
//
|
||
|
// Solidity: event TransferRootSet(bytes32 indexed rootHash, uint256 totalAmount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterTransferRootSet(opts *bind.FilterOpts, rootHash [][32]byte) (*HopL2OptimismBridgeTransferRootSetIterator, error) {
|
||
|
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "TransferRootSet", rootHashRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeTransferRootSetIterator{contract: _HopL2OptimismBridge.contract, event: "TransferRootSet", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchTransferRootSet is a free log subscription operation binding the contract event 0xb33d2162aead99dab59e77a7a67ea025b776bf8ca8079e132afdf9b23e03bd42.
|
||
|
//
|
||
|
// Solidity: event TransferRootSet(bytes32 indexed rootHash, uint256 totalAmount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchTransferRootSet(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeTransferRootSet, rootHash [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "TransferRootSet", rootHashRule)
|
||
|
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(HopL2OptimismBridgeTransferRootSet)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransferRootSet", 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
|
||
|
}
|
||
|
|
||
|
// ParseTransferRootSet is a log parse operation binding the contract event 0xb33d2162aead99dab59e77a7a67ea025b776bf8ca8079e132afdf9b23e03bd42.
|
||
|
//
|
||
|
// Solidity: event TransferRootSet(bytes32 indexed rootHash, uint256 totalAmount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseTransferRootSet(log types.Log) (*HopL2OptimismBridgeTransferRootSet, error) {
|
||
|
event := new(HopL2OptimismBridgeTransferRootSet)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransferRootSet", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransferSentIterator is returned from FilterTransferSent and is used to iterate over the raw logs and unpacked data for TransferSent events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransferSentIterator struct {
|
||
|
Event *HopL2OptimismBridgeTransferSent // 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 *HopL2OptimismBridgeTransferSentIterator) 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(HopL2OptimismBridgeTransferSent)
|
||
|
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(HopL2OptimismBridgeTransferSent)
|
||
|
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 *HopL2OptimismBridgeTransferSentIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeTransferSentIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransferSent represents a TransferSent event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransferSent struct {
|
||
|
TransferId [32]byte
|
||
|
ChainId *big.Int
|
||
|
Recipient common.Address
|
||
|
Amount *big.Int
|
||
|
TransferNonce [32]byte
|
||
|
BonderFee *big.Int
|
||
|
Index *big.Int
|
||
|
AmountOutMin *big.Int
|
||
|
Deadline *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterTransferSent is a free log retrieval operation binding the contract event 0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb.
|
||
|
//
|
||
|
// Solidity: event TransferSent(bytes32 indexed transferId, uint256 indexed chainId, address indexed recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 index, uint256 amountOutMin, uint256 deadline)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterTransferSent(opts *bind.FilterOpts, transferId [][32]byte, chainId []*big.Int, recipient []common.Address) (*HopL2OptimismBridgeTransferSentIterator, error) {
|
||
|
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
var chainIdRule []interface{}
|
||
|
for _, chainIdItem := range chainId {
|
||
|
chainIdRule = append(chainIdRule, chainIdItem)
|
||
|
}
|
||
|
var recipientRule []interface{}
|
||
|
for _, recipientItem := range recipient {
|
||
|
recipientRule = append(recipientRule, recipientItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "TransferSent", transferIdRule, chainIdRule, recipientRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeTransferSentIterator{contract: _HopL2OptimismBridge.contract, event: "TransferSent", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchTransferSent is a free log subscription operation binding the contract event 0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb.
|
||
|
//
|
||
|
// Solidity: event TransferSent(bytes32 indexed transferId, uint256 indexed chainId, address indexed recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 index, uint256 amountOutMin, uint256 deadline)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchTransferSent(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeTransferSent, transferId [][32]byte, chainId []*big.Int, recipient []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
var chainIdRule []interface{}
|
||
|
for _, chainIdItem := range chainId {
|
||
|
chainIdRule = append(chainIdRule, chainIdItem)
|
||
|
}
|
||
|
var recipientRule []interface{}
|
||
|
for _, recipientItem := range recipient {
|
||
|
recipientRule = append(recipientRule, recipientItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "TransferSent", transferIdRule, chainIdRule, recipientRule)
|
||
|
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(HopL2OptimismBridgeTransferSent)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransferSent", 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
|
||
|
}
|
||
|
|
||
|
// ParseTransferSent is a log parse operation binding the contract event 0xe35dddd4ea75d7e9b3fe93af4f4e40e778c3da4074c9d93e7c6536f1e803c1eb.
|
||
|
//
|
||
|
// Solidity: event TransferSent(bytes32 indexed transferId, uint256 indexed chainId, address indexed recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee, uint256 index, uint256 amountOutMin, uint256 deadline)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseTransferSent(log types.Log) (*HopL2OptimismBridgeTransferSent, error) {
|
||
|
event := new(HopL2OptimismBridgeTransferSent)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransferSent", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransfersCommittedIterator is returned from FilterTransfersCommitted and is used to iterate over the raw logs and unpacked data for TransfersCommitted events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransfersCommittedIterator struct {
|
||
|
Event *HopL2OptimismBridgeTransfersCommitted // 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 *HopL2OptimismBridgeTransfersCommittedIterator) 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(HopL2OptimismBridgeTransfersCommitted)
|
||
|
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(HopL2OptimismBridgeTransfersCommitted)
|
||
|
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 *HopL2OptimismBridgeTransfersCommittedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeTransfersCommittedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeTransfersCommitted represents a TransfersCommitted event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeTransfersCommitted struct {
|
||
|
DestinationChainId *big.Int
|
||
|
RootHash [32]byte
|
||
|
TotalAmount *big.Int
|
||
|
RootCommittedAt *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterTransfersCommitted is a free log retrieval operation binding the contract event 0xf52ad20d3b4f50d1c40901dfb95a9ce5270b2fc32694e5c668354721cd87aa74.
|
||
|
//
|
||
|
// Solidity: event TransfersCommitted(uint256 indexed destinationChainId, bytes32 indexed rootHash, uint256 totalAmount, uint256 rootCommittedAt)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterTransfersCommitted(opts *bind.FilterOpts, destinationChainId []*big.Int, rootHash [][32]byte) (*HopL2OptimismBridgeTransfersCommittedIterator, error) {
|
||
|
|
||
|
var destinationChainIdRule []interface{}
|
||
|
for _, destinationChainIdItem := range destinationChainId {
|
||
|
destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem)
|
||
|
}
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "TransfersCommitted", destinationChainIdRule, rootHashRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeTransfersCommittedIterator{contract: _HopL2OptimismBridge.contract, event: "TransfersCommitted", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchTransfersCommitted is a free log subscription operation binding the contract event 0xf52ad20d3b4f50d1c40901dfb95a9ce5270b2fc32694e5c668354721cd87aa74.
|
||
|
//
|
||
|
// Solidity: event TransfersCommitted(uint256 indexed destinationChainId, bytes32 indexed rootHash, uint256 totalAmount, uint256 rootCommittedAt)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchTransfersCommitted(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeTransfersCommitted, destinationChainId []*big.Int, rootHash [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var destinationChainIdRule []interface{}
|
||
|
for _, destinationChainIdItem := range destinationChainId {
|
||
|
destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem)
|
||
|
}
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "TransfersCommitted", destinationChainIdRule, rootHashRule)
|
||
|
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(HopL2OptimismBridgeTransfersCommitted)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransfersCommitted", 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
|
||
|
}
|
||
|
|
||
|
// ParseTransfersCommitted is a log parse operation binding the contract event 0xf52ad20d3b4f50d1c40901dfb95a9ce5270b2fc32694e5c668354721cd87aa74.
|
||
|
//
|
||
|
// Solidity: event TransfersCommitted(uint256 indexed destinationChainId, bytes32 indexed rootHash, uint256 totalAmount, uint256 rootCommittedAt)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseTransfersCommitted(log types.Log) (*HopL2OptimismBridgeTransfersCommitted, error) {
|
||
|
event := new(HopL2OptimismBridgeTransfersCommitted)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "TransfersCommitted", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeUnstakeIterator is returned from FilterUnstake and is used to iterate over the raw logs and unpacked data for Unstake events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeUnstakeIterator struct {
|
||
|
Event *HopL2OptimismBridgeUnstake // 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 *HopL2OptimismBridgeUnstakeIterator) 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(HopL2OptimismBridgeUnstake)
|
||
|
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(HopL2OptimismBridgeUnstake)
|
||
|
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 *HopL2OptimismBridgeUnstakeIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeUnstakeIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeUnstake represents a Unstake event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeUnstake struct {
|
||
|
Account common.Address
|
||
|
Amount *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterUnstake is a free log retrieval operation binding the contract event 0x85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd.
|
||
|
//
|
||
|
// Solidity: event Unstake(address indexed account, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterUnstake(opts *bind.FilterOpts, account []common.Address) (*HopL2OptimismBridgeUnstakeIterator, error) {
|
||
|
|
||
|
var accountRule []interface{}
|
||
|
for _, accountItem := range account {
|
||
|
accountRule = append(accountRule, accountItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "Unstake", accountRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeUnstakeIterator{contract: _HopL2OptimismBridge.contract, event: "Unstake", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchUnstake is a free log subscription operation binding the contract event 0x85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd.
|
||
|
//
|
||
|
// Solidity: event Unstake(address indexed account, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchUnstake(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeUnstake, account []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var accountRule []interface{}
|
||
|
for _, accountItem := range account {
|
||
|
accountRule = append(accountRule, accountItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "Unstake", accountRule)
|
||
|
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(HopL2OptimismBridgeUnstake)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "Unstake", 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
|
||
|
}
|
||
|
|
||
|
// ParseUnstake is a log parse operation binding the contract event 0x85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd.
|
||
|
//
|
||
|
// Solidity: event Unstake(address indexed account, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseUnstake(log types.Log) (*HopL2OptimismBridgeUnstake, error) {
|
||
|
event := new(HopL2OptimismBridgeUnstake)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "Unstake", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeWithdrawalBondSettledIterator is returned from FilterWithdrawalBondSettled and is used to iterate over the raw logs and unpacked data for WithdrawalBondSettled events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeWithdrawalBondSettledIterator struct {
|
||
|
Event *HopL2OptimismBridgeWithdrawalBondSettled // 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 *HopL2OptimismBridgeWithdrawalBondSettledIterator) 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(HopL2OptimismBridgeWithdrawalBondSettled)
|
||
|
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(HopL2OptimismBridgeWithdrawalBondSettled)
|
||
|
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 *HopL2OptimismBridgeWithdrawalBondSettledIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeWithdrawalBondSettledIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeWithdrawalBondSettled represents a WithdrawalBondSettled event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeWithdrawalBondSettled struct {
|
||
|
Bonder common.Address
|
||
|
TransferId [32]byte
|
||
|
RootHash [32]byte
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterWithdrawalBondSettled is a free log retrieval operation binding the contract event 0x84eb21b24c31b27a3bc67dde4a598aad06db6e9415cd66544492b9616996143c.
|
||
|
//
|
||
|
// Solidity: event WithdrawalBondSettled(address indexed bonder, bytes32 indexed transferId, bytes32 indexed rootHash)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterWithdrawalBondSettled(opts *bind.FilterOpts, bonder []common.Address, transferId [][32]byte, rootHash [][32]byte) (*HopL2OptimismBridgeWithdrawalBondSettledIterator, error) {
|
||
|
|
||
|
var bonderRule []interface{}
|
||
|
for _, bonderItem := range bonder {
|
||
|
bonderRule = append(bonderRule, bonderItem)
|
||
|
}
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "WithdrawalBondSettled", bonderRule, transferIdRule, rootHashRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeWithdrawalBondSettledIterator{contract: _HopL2OptimismBridge.contract, event: "WithdrawalBondSettled", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchWithdrawalBondSettled is a free log subscription operation binding the contract event 0x84eb21b24c31b27a3bc67dde4a598aad06db6e9415cd66544492b9616996143c.
|
||
|
//
|
||
|
// Solidity: event WithdrawalBondSettled(address indexed bonder, bytes32 indexed transferId, bytes32 indexed rootHash)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchWithdrawalBondSettled(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeWithdrawalBondSettled, bonder []common.Address, transferId [][32]byte, rootHash [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var bonderRule []interface{}
|
||
|
for _, bonderItem := range bonder {
|
||
|
bonderRule = append(bonderRule, bonderItem)
|
||
|
}
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
var rootHashRule []interface{}
|
||
|
for _, rootHashItem := range rootHash {
|
||
|
rootHashRule = append(rootHashRule, rootHashItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "WithdrawalBondSettled", bonderRule, transferIdRule, rootHashRule)
|
||
|
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(HopL2OptimismBridgeWithdrawalBondSettled)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "WithdrawalBondSettled", 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
|
||
|
}
|
||
|
|
||
|
// ParseWithdrawalBondSettled is a log parse operation binding the contract event 0x84eb21b24c31b27a3bc67dde4a598aad06db6e9415cd66544492b9616996143c.
|
||
|
//
|
||
|
// Solidity: event WithdrawalBondSettled(address indexed bonder, bytes32 indexed transferId, bytes32 indexed rootHash)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseWithdrawalBondSettled(log types.Log) (*HopL2OptimismBridgeWithdrawalBondSettled, error) {
|
||
|
event := new(HopL2OptimismBridgeWithdrawalBondSettled)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "WithdrawalBondSettled", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeWithdrawalBondedIterator is returned from FilterWithdrawalBonded and is used to iterate over the raw logs and unpacked data for WithdrawalBonded events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeWithdrawalBondedIterator struct {
|
||
|
Event *HopL2OptimismBridgeWithdrawalBonded // 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 *HopL2OptimismBridgeWithdrawalBondedIterator) 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(HopL2OptimismBridgeWithdrawalBonded)
|
||
|
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(HopL2OptimismBridgeWithdrawalBonded)
|
||
|
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 *HopL2OptimismBridgeWithdrawalBondedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeWithdrawalBondedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeWithdrawalBonded represents a WithdrawalBonded event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeWithdrawalBonded struct {
|
||
|
TransferId [32]byte
|
||
|
Amount *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterWithdrawalBonded is a free log retrieval operation binding the contract event 0x0c3d250c7831051e78aa6a56679e590374c7c424415ffe4aa474491def2fe705.
|
||
|
//
|
||
|
// Solidity: event WithdrawalBonded(bytes32 indexed transferId, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterWithdrawalBonded(opts *bind.FilterOpts, transferId [][32]byte) (*HopL2OptimismBridgeWithdrawalBondedIterator, error) {
|
||
|
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "WithdrawalBonded", transferIdRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeWithdrawalBondedIterator{contract: _HopL2OptimismBridge.contract, event: "WithdrawalBonded", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchWithdrawalBonded is a free log subscription operation binding the contract event 0x0c3d250c7831051e78aa6a56679e590374c7c424415ffe4aa474491def2fe705.
|
||
|
//
|
||
|
// Solidity: event WithdrawalBonded(bytes32 indexed transferId, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchWithdrawalBonded(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeWithdrawalBonded, transferId [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "WithdrawalBonded", transferIdRule)
|
||
|
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(HopL2OptimismBridgeWithdrawalBonded)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "WithdrawalBonded", 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
|
||
|
}
|
||
|
|
||
|
// ParseWithdrawalBonded is a log parse operation binding the contract event 0x0c3d250c7831051e78aa6a56679e590374c7c424415ffe4aa474491def2fe705.
|
||
|
//
|
||
|
// Solidity: event WithdrawalBonded(bytes32 indexed transferId, uint256 amount)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseWithdrawalBonded(log types.Log) (*HopL2OptimismBridgeWithdrawalBonded, error) {
|
||
|
event := new(HopL2OptimismBridgeWithdrawalBonded)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "WithdrawalBonded", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeWithdrewIterator is returned from FilterWithdrew and is used to iterate over the raw logs and unpacked data for Withdrew events raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeWithdrewIterator struct {
|
||
|
Event *HopL2OptimismBridgeWithdrew // 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 *HopL2OptimismBridgeWithdrewIterator) 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(HopL2OptimismBridgeWithdrew)
|
||
|
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(HopL2OptimismBridgeWithdrew)
|
||
|
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 *HopL2OptimismBridgeWithdrewIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *HopL2OptimismBridgeWithdrewIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// HopL2OptimismBridgeWithdrew represents a Withdrew event raised by the HopL2OptimismBridge contract.
|
||
|
type HopL2OptimismBridgeWithdrew struct {
|
||
|
TransferId [32]byte
|
||
|
Recipient common.Address
|
||
|
Amount *big.Int
|
||
|
TransferNonce [32]byte
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterWithdrew is a free log retrieval operation binding the contract event 0x9475cdbde5fc71fe2ccd413c82878ee54d061b9f74f9e2e1a03ff1178821502c.
|
||
|
//
|
||
|
// Solidity: event Withdrew(bytes32 indexed transferId, address indexed recipient, uint256 amount, bytes32 transferNonce)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) FilterWithdrew(opts *bind.FilterOpts, transferId [][32]byte, recipient []common.Address) (*HopL2OptimismBridgeWithdrewIterator, error) {
|
||
|
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
var recipientRule []interface{}
|
||
|
for _, recipientItem := range recipient {
|
||
|
recipientRule = append(recipientRule, recipientItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.FilterLogs(opts, "Withdrew", transferIdRule, recipientRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &HopL2OptimismBridgeWithdrewIterator{contract: _HopL2OptimismBridge.contract, event: "Withdrew", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchWithdrew is a free log subscription operation binding the contract event 0x9475cdbde5fc71fe2ccd413c82878ee54d061b9f74f9e2e1a03ff1178821502c.
|
||
|
//
|
||
|
// Solidity: event Withdrew(bytes32 indexed transferId, address indexed recipient, uint256 amount, bytes32 transferNonce)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) WatchWithdrew(opts *bind.WatchOpts, sink chan<- *HopL2OptimismBridgeWithdrew, transferId [][32]byte, recipient []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var transferIdRule []interface{}
|
||
|
for _, transferIdItem := range transferId {
|
||
|
transferIdRule = append(transferIdRule, transferIdItem)
|
||
|
}
|
||
|
var recipientRule []interface{}
|
||
|
for _, recipientItem := range recipient {
|
||
|
recipientRule = append(recipientRule, recipientItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _HopL2OptimismBridge.contract.WatchLogs(opts, "Withdrew", transferIdRule, recipientRule)
|
||
|
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(HopL2OptimismBridgeWithdrew)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "Withdrew", 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
|
||
|
}
|
||
|
|
||
|
// ParseWithdrew is a log parse operation binding the contract event 0x9475cdbde5fc71fe2ccd413c82878ee54d061b9f74f9e2e1a03ff1178821502c.
|
||
|
//
|
||
|
// Solidity: event Withdrew(bytes32 indexed transferId, address indexed recipient, uint256 amount, bytes32 transferNonce)
|
||
|
func (_HopL2OptimismBridge *HopL2OptimismBridgeFilterer) ParseWithdrew(log types.Log) (*HopL2OptimismBridgeWithdrew, error) {
|
||
|
event := new(HopL2OptimismBridgeWithdrew)
|
||
|
if err := _HopL2OptimismBridge.contract.UnpackLog(event, "Withdrew", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|