2022-09-13 07:10:59 +00:00
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
2024-05-23 12:38:39 +00:00
package hopL1HopBridge
2022-09-13 07:10:59 +00:00
import (
2024-05-23 12:38:39 +00:00
"errors"
2022-09-13 07:10:59 +00:00
"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 (
2024-05-23 12:38:39 +00:00
_ = errors . New
2022-09-13 07:10:59 +00:00
_ = big . NewInt
_ = strings . NewReader
_ = ethereum . NotFound
_ = bind . Bind
_ = common . Big1
_ = types . BloomLookup
_ = event . NewSubscription
2024-05-23 12:38:39 +00:00
_ = abi . ConvertType
2022-09-13 07:10:59 +00:00
)
// 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
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeMetaData contains all meta data concerning the HopL1HopBridge contract.
var HopL1HopBridgeMetaData = & bind . MetaData {
ABI : "[{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"_l1CanonicalToken\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"bonders\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"_governance\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_migrator\",\"type\":\"address\"}],\"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\":\"bytes32\",\"name\":\"transferRootId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"originalAmount\",\"type\":\"uint256\"}],\"name\":\"ChallengeResolved\",\"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\":\"bytes32\",\"name\":\"transferRootId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"originalAmount\",\"type\":\"uint256\"}],\"name\":\"TransferBondChallenged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TransferRootBonded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"originChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"}],\"name\":\"TransferRootConfirmed\",\"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\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"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\":\"TransferSentToL2\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Unstake\",\"
}
// HopL1HopBridgeABI is the input ABI used to generate the binding from.
// Deprecated: Use HopL1HopBridgeMetaData.ABI instead.
var HopL1HopBridgeABI = HopL1HopBridgeMetaData . ABI
2022-09-13 07:10:59 +00:00
2024-05-23 12:38:39 +00:00
// HopL1HopBridge is an auto generated Go binding around an Ethereum contract.
type HopL1HopBridge struct {
HopL1HopBridgeCaller // Read-only binding to the contract
HopL1HopBridgeTransactor // Write-only binding to the contract
HopL1HopBridgeFilterer // Log filterer for contract events
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeCaller is an auto generated read-only Go binding around an Ethereum contract.
type HopL1HopBridgeCaller struct {
2022-09-13 07:10:59 +00:00
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransactor is an auto generated write-only Go binding around an Ethereum contract.
type HopL1HopBridgeTransactor struct {
2022-09-13 07:10:59 +00:00
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type HopL1HopBridgeFilterer struct {
2022-09-13 07:10:59 +00:00
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeSession is an auto generated Go binding around an Ethereum contract,
2022-09-13 07:10:59 +00:00
// with pre-set call and transact options.
2024-05-23 12:38:39 +00:00
type HopL1HopBridgeSession struct {
Contract * HopL1HopBridge // Generic contract binding to set the session for
2022-09-13 07:10:59 +00:00
CallOpts bind . CallOpts // Call options to use throughout this session
TransactOpts bind . TransactOpts // Transaction auth options to use throughout this session
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeCallerSession is an auto generated read-only Go binding around an Ethereum contract,
2022-09-13 07:10:59 +00:00
// with pre-set call options.
2024-05-23 12:38:39 +00:00
type HopL1HopBridgeCallerSession struct {
Contract * HopL1HopBridgeCaller // Generic contract caller binding to set the session for
CallOpts bind . CallOpts // Call options to use throughout this session
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
2022-09-13 07:10:59 +00:00
// with pre-set transact options.
2024-05-23 12:38:39 +00:00
type HopL1HopBridgeTransactorSession struct {
Contract * HopL1HopBridgeTransactor // Generic contract transactor binding to set the session for
TransactOpts bind . TransactOpts // Transaction auth options to use throughout this session
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeRaw is an auto generated low-level Go binding around an Ethereum contract.
type HopL1HopBridgeRaw struct {
Contract * HopL1HopBridge // Generic contract binding to access the raw methods on
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type HopL1HopBridgeCallerRaw struct {
Contract * HopL1HopBridgeCaller // Generic read-only contract binding to access the raw methods on
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type HopL1HopBridgeTransactorRaw struct {
Contract * HopL1HopBridgeTransactor // Generic write-only contract binding to access the raw methods on
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// NewHopL1HopBridge creates a new instance of HopL1HopBridge, bound to a specific deployed contract.
func NewHopL1HopBridge ( address common . Address , backend bind . ContractBackend ) ( * HopL1HopBridge , error ) {
contract , err := bindHopL1HopBridge ( address , backend , backend , backend )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridge { HopL1HopBridgeCaller : HopL1HopBridgeCaller { contract : contract } , HopL1HopBridgeTransactor : HopL1HopBridgeTransactor { contract : contract } , HopL1HopBridgeFilterer : HopL1HopBridgeFilterer { contract : contract } } , nil
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// NewHopL1HopBridgeCaller creates a new read-only instance of HopL1HopBridge, bound to a specific deployed contract.
func NewHopL1HopBridgeCaller ( address common . Address , caller bind . ContractCaller ) ( * HopL1HopBridgeCaller , error ) {
contract , err := bindHopL1HopBridge ( address , caller , nil , nil )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeCaller { contract : contract } , nil
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// NewHopL1HopBridgeTransactor creates a new write-only instance of HopL1HopBridge, bound to a specific deployed contract.
func NewHopL1HopBridgeTransactor ( address common . Address , transactor bind . ContractTransactor ) ( * HopL1HopBridgeTransactor , error ) {
contract , err := bindHopL1HopBridge ( address , nil , transactor , nil )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeTransactor { contract : contract } , nil
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// NewHopL1HopBridgeFilterer creates a new log filterer instance of HopL1HopBridge, bound to a specific deployed contract.
func NewHopL1HopBridgeFilterer ( address common . Address , filterer bind . ContractFilterer ) ( * HopL1HopBridgeFilterer , error ) {
contract , err := bindHopL1HopBridge ( address , nil , nil , filterer )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeFilterer { contract : contract } , nil
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// bindHopL1HopBridge binds a generic wrapper to an already deployed contract.
func bindHopL1HopBridge ( address common . Address , caller bind . ContractCaller , transactor bind . ContractTransactor , filterer bind . ContractFilterer ) ( * bind . BoundContract , error ) {
parsed , err := HopL1HopBridgeMetaData . GetAbi ( )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return bind . NewBoundContract ( address , * parsed , caller , transactor , filterer ) , nil
2022-09-13 07:10:59 +00:00
}
// 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.
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeRaw ) Call ( opts * bind . CallOpts , result * [ ] interface { } , method string , params ... interface { } ) error {
return _HopL1HopBridge . Contract . HopL1HopBridgeCaller . contract . Call ( opts , result , method , params ... )
2022-09-13 07:10:59 +00:00
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeRaw ) Transfer ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . HopL1HopBridgeTransactor . contract . Transfer ( opts )
2022-09-13 07:10:59 +00:00
}
// Transact invokes the (paid) contract method with params as input values.
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeRaw ) Transact ( opts * bind . TransactOpts , method string , params ... interface { } ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . HopL1HopBridgeTransactor . contract . Transact ( opts , method , params ... )
2022-09-13 07:10:59 +00:00
}
// 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.
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerRaw ) Call ( opts * bind . CallOpts , result * [ ] interface { } , method string , params ... interface { } ) error {
return _HopL1HopBridge . Contract . contract . Call ( opts , result , method , params ... )
2022-09-13 07:10:59 +00:00
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorRaw ) Transfer ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . contract . Transfer ( opts )
2022-09-13 07:10:59 +00:00
}
// Transact invokes the (paid) contract method with params as input values.
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorRaw ) Transact ( opts * bind . TransactOpts , method string , params ... interface { } ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . contract . Transact ( opts , method , params ... )
2022-09-13 07:10:59 +00:00
}
// CHALLENGEAMOUNTDIVISOR is a free data retrieval call binding the contract method 0x98c4f76d.
//
// Solidity: function CHALLENGE_AMOUNT_DIVISOR() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) CHALLENGEAMOUNTDIVISOR ( opts * bind . CallOpts ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "CHALLENGE_AMOUNT_DIVISOR" )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// CHALLENGEAMOUNTDIVISOR is a free data retrieval call binding the contract method 0x98c4f76d.
//
// Solidity: function CHALLENGE_AMOUNT_DIVISOR() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) CHALLENGEAMOUNTDIVISOR ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . CHALLENGEAMOUNTDIVISOR ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// CHALLENGEAMOUNTDIVISOR is a free data retrieval call binding the contract method 0x98c4f76d.
//
// Solidity: function CHALLENGE_AMOUNT_DIVISOR() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) CHALLENGEAMOUNTDIVISOR ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . CHALLENGEAMOUNTDIVISOR ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// TIMESLOTSIZE is a free data retrieval call binding the contract method 0x4de8c6e6.
//
// Solidity: function TIME_SLOT_SIZE() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) TIMESLOTSIZE ( opts * bind . CallOpts ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "TIME_SLOT_SIZE" )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// TIMESLOTSIZE is a free data retrieval call binding the contract method 0x4de8c6e6.
//
// Solidity: function TIME_SLOT_SIZE() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) TIMESLOTSIZE ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . TIMESLOTSIZE ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// TIMESLOTSIZE is a free data retrieval call binding the contract method 0x4de8c6e6.
//
// Solidity: function TIME_SLOT_SIZE() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) TIMESLOTSIZE ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . TIMESLOTSIZE ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// ChainBalance is a free data retrieval call binding the contract method 0xfc110b67.
//
// Solidity: function chainBalance(uint256 ) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) ChainBalance ( opts * bind . CallOpts , arg0 * big . Int ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "chainBalance" , arg0 )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// ChainBalance is a free data retrieval call binding the contract method 0xfc110b67.
//
// Solidity: function chainBalance(uint256 ) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) ChainBalance ( arg0 * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . ChainBalance ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
// ChainBalance is a free data retrieval call binding the contract method 0xfc110b67.
//
// Solidity: function chainBalance(uint256 ) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) ChainBalance ( arg0 * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . ChainBalance ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
// ChallengePeriod is a free data retrieval call binding the contract method 0xf3f480d9.
//
// Solidity: function challengePeriod() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) ChallengePeriod ( opts * bind . CallOpts ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "challengePeriod" )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// ChallengePeriod is a free data retrieval call binding the contract method 0xf3f480d9.
//
// Solidity: function challengePeriod() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) ChallengePeriod ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . ChallengePeriod ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// ChallengePeriod is a free data retrieval call binding the contract method 0xf3f480d9.
//
// Solidity: function challengePeriod() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) ChallengePeriod ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . ChallengePeriod ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// ChallengeResolutionPeriod is a free data retrieval call binding the contract method 0x767631d5.
//
// Solidity: function challengeResolutionPeriod() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) ChallengeResolutionPeriod ( opts * bind . CallOpts ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "challengeResolutionPeriod" )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// ChallengeResolutionPeriod is a free data retrieval call binding the contract method 0x767631d5.
//
// Solidity: function challengeResolutionPeriod() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) ChallengeResolutionPeriod ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . ChallengeResolutionPeriod ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// ChallengeResolutionPeriod is a free data retrieval call binding the contract method 0x767631d5.
//
// Solidity: function challengeResolutionPeriod() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) ChallengeResolutionPeriod ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . ChallengeResolutionPeriod ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// CrossDomainMessengerWrappers is a free data retrieval call binding the contract method 0xa35962f3.
//
// Solidity: function crossDomainMessengerWrappers(uint256 ) view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) CrossDomainMessengerWrappers ( opts * bind . CallOpts , arg0 * big . Int ) ( common . Address , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "crossDomainMessengerWrappers" , arg0 )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( common . Address ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
return out0 , err
}
// CrossDomainMessengerWrappers is a free data retrieval call binding the contract method 0xa35962f3.
//
// Solidity: function crossDomainMessengerWrappers(uint256 ) view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) CrossDomainMessengerWrappers ( arg0 * big . Int ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . CrossDomainMessengerWrappers ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
// CrossDomainMessengerWrappers is a free data retrieval call binding the contract method 0xa35962f3.
//
// Solidity: function crossDomainMessengerWrappers(uint256 ) view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) CrossDomainMessengerWrappers ( arg0 * big . Int ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . CrossDomainMessengerWrappers ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
// GetBondForTransferAmount is a free data retrieval call binding the contract method 0xe19be150.
//
// Solidity: function getBondForTransferAmount(uint256 amount) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetBondForTransferAmount ( opts * bind . CallOpts , amount * big . Int ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getBondForTransferAmount" , amount )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// GetBondForTransferAmount is a free data retrieval call binding the contract method 0xe19be150.
//
// Solidity: function getBondForTransferAmount(uint256 amount) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetBondForTransferAmount ( amount * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetBondForTransferAmount ( & _HopL1HopBridge . CallOpts , amount )
2022-09-13 07:10:59 +00:00
}
// GetBondForTransferAmount is a free data retrieval call binding the contract method 0xe19be150.
//
// Solidity: function getBondForTransferAmount(uint256 amount) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetBondForTransferAmount ( amount * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetBondForTransferAmount ( & _HopL1HopBridge . CallOpts , amount )
2022-09-13 07:10:59 +00:00
}
// GetBondedWithdrawalAmount is a free data retrieval call binding the contract method 0x302830ab.
//
// Solidity: function getBondedWithdrawalAmount(address bonder, bytes32 transferId) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetBondedWithdrawalAmount ( opts * bind . CallOpts , bonder common . Address , transferId [ 32 ] byte ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getBondedWithdrawalAmount" , bonder , transferId )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetBondedWithdrawalAmount ( bonder common . Address , transferId [ 32 ] byte ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetBondedWithdrawalAmount ( & _HopL1HopBridge . CallOpts , bonder , transferId )
2022-09-13 07:10:59 +00:00
}
// GetBondedWithdrawalAmount is a free data retrieval call binding the contract method 0x302830ab.
//
// Solidity: function getBondedWithdrawalAmount(address bonder, bytes32 transferId) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetBondedWithdrawalAmount ( bonder common . Address , transferId [ 32 ] byte ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetBondedWithdrawalAmount ( & _HopL1HopBridge . CallOpts , bonder , transferId )
2022-09-13 07:10:59 +00:00
}
// GetChainId is a free data retrieval call binding the contract method 0x3408e470.
//
// Solidity: function getChainId() view returns(uint256 chainId)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetChainId ( opts * bind . CallOpts ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getChainId" )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetChainId ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetChainId ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// GetChainId is a free data retrieval call binding the contract method 0x3408e470.
//
// Solidity: function getChainId() view returns(uint256 chainId)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetChainId ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetChainId ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// GetChallengeAmountForTransferAmount is a free data retrieval call binding the contract method 0xa239f5ee.
//
// Solidity: function getChallengeAmountForTransferAmount(uint256 amount) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetChallengeAmountForTransferAmount ( opts * bind . CallOpts , amount * big . Int ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getChallengeAmountForTransferAmount" , amount )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// GetChallengeAmountForTransferAmount is a free data retrieval call binding the contract method 0xa239f5ee.
//
// Solidity: function getChallengeAmountForTransferAmount(uint256 amount) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetChallengeAmountForTransferAmount ( amount * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetChallengeAmountForTransferAmount ( & _HopL1HopBridge . CallOpts , amount )
2022-09-13 07:10:59 +00:00
}
// GetChallengeAmountForTransferAmount is a free data retrieval call binding the contract method 0xa239f5ee.
//
// Solidity: function getChallengeAmountForTransferAmount(uint256 amount) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetChallengeAmountForTransferAmount ( amount * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetChallengeAmountForTransferAmount ( & _HopL1HopBridge . CallOpts , amount )
2022-09-13 07:10:59 +00:00
}
// GetCredit is a free data retrieval call binding the contract method 0x57344e6f.
//
// Solidity: function getCredit(address bonder) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetCredit ( opts * bind . CallOpts , bonder common . Address ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getCredit" , bonder )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetCredit ( bonder common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetCredit ( & _HopL1HopBridge . CallOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// GetCredit is a free data retrieval call binding the contract method 0x57344e6f.
//
// Solidity: function getCredit(address bonder) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetCredit ( bonder common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetCredit ( & _HopL1HopBridge . CallOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// GetDebitAndAdditionalDebit is a free data retrieval call binding the contract method 0xffa9286c.
//
// Solidity: function getDebitAndAdditionalDebit(address bonder) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetDebitAndAdditionalDebit ( opts * bind . CallOpts , bonder common . Address ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getDebitAndAdditionalDebit" , bonder )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetDebitAndAdditionalDebit ( bonder common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetDebitAndAdditionalDebit ( & _HopL1HopBridge . CallOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// GetDebitAndAdditionalDebit is a free data retrieval call binding the contract method 0xffa9286c.
//
// Solidity: function getDebitAndAdditionalDebit(address bonder) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetDebitAndAdditionalDebit ( bonder common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetDebitAndAdditionalDebit ( & _HopL1HopBridge . CallOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// GetIsBonder is a free data retrieval call binding the contract method 0xd5ef7551.
//
// Solidity: function getIsBonder(address maybeBonder) view returns(bool)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetIsBonder ( opts * bind . CallOpts , maybeBonder common . Address ) ( bool , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getIsBonder" , maybeBonder )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetIsBonder ( maybeBonder common . Address ) ( bool , error ) {
return _HopL1HopBridge . Contract . GetIsBonder ( & _HopL1HopBridge . CallOpts , maybeBonder )
2022-09-13 07:10:59 +00:00
}
// GetIsBonder is a free data retrieval call binding the contract method 0xd5ef7551.
//
// Solidity: function getIsBonder(address maybeBonder) view returns(bool)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetIsBonder ( maybeBonder common . Address ) ( bool , error ) {
return _HopL1HopBridge . Contract . GetIsBonder ( & _HopL1HopBridge . CallOpts , maybeBonder )
2022-09-13 07:10:59 +00:00
}
// GetRawDebit is a free data retrieval call binding the contract method 0x13948c76.
//
// Solidity: function getRawDebit(address bonder) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetRawDebit ( opts * bind . CallOpts , bonder common . Address ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getRawDebit" , bonder )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetRawDebit ( bonder common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetRawDebit ( & _HopL1HopBridge . CallOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// GetRawDebit is a free data retrieval call binding the contract method 0x13948c76.
//
// Solidity: function getRawDebit(address bonder) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetRawDebit ( bonder common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetRawDebit ( & _HopL1HopBridge . CallOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// GetTimeSlot is a free data retrieval call binding the contract method 0x2b85dcc9.
//
// Solidity: function getTimeSlot(uint256 time) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetTimeSlot ( opts * bind . CallOpts , time * big . Int ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getTimeSlot" , time )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// GetTimeSlot is a free data retrieval call binding the contract method 0x2b85dcc9.
//
// Solidity: function getTimeSlot(uint256 time) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetTimeSlot ( time * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetTimeSlot ( & _HopL1HopBridge . CallOpts , time )
2022-09-13 07:10:59 +00:00
}
// GetTimeSlot is a free data retrieval call binding the contract method 0x2b85dcc9.
//
// Solidity: function getTimeSlot(uint256 time) pure returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetTimeSlot ( time * big . Int ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . GetTimeSlot ( & _HopL1HopBridge . CallOpts , time )
2022-09-13 07:10:59 +00:00
}
// 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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) 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 ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getTransferId" , chainId , recipient , amount , transferNonce , bonderFee , amountOutMin , deadline )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) 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 _HopL1HopBridge . Contract . GetTransferId ( & _HopL1HopBridge . CallOpts , chainId , recipient , amount , transferNonce , bonderFee , amountOutMin , deadline )
2022-09-13 07:10:59 +00:00
}
// 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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) 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 _HopL1HopBridge . Contract . GetTransferId ( & _HopL1HopBridge . CallOpts , chainId , recipient , amount , transferNonce , bonderFee , amountOutMin , deadline )
2022-09-13 07:10:59 +00:00
}
// GetTransferRoot is a free data retrieval call binding the contract method 0xce803b4f.
//
// Solidity: function getTransferRoot(bytes32 rootHash, uint256 totalAmount) view returns((uint256,uint256,uint256))
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetTransferRoot ( opts * bind . CallOpts , rootHash [ 32 ] byte , totalAmount * big . Int ) ( BridgeTransferRoot , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getTransferRoot" , rootHash , totalAmount )
2022-09-13 07:10:59 +00:00
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))
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetTransferRoot ( rootHash [ 32 ] byte , totalAmount * big . Int ) ( BridgeTransferRoot , error ) {
return _HopL1HopBridge . Contract . GetTransferRoot ( & _HopL1HopBridge . CallOpts , rootHash , totalAmount )
2022-09-13 07:10:59 +00:00
}
// GetTransferRoot is a free data retrieval call binding the contract method 0xce803b4f.
//
// Solidity: function getTransferRoot(bytes32 rootHash, uint256 totalAmount) view returns((uint256,uint256,uint256))
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetTransferRoot ( rootHash [ 32 ] byte , totalAmount * big . Int ) ( BridgeTransferRoot , error ) {
return _HopL1HopBridge . Contract . GetTransferRoot ( & _HopL1HopBridge . CallOpts , rootHash , totalAmount )
2022-09-13 07:10:59 +00:00
}
// GetTransferRootId is a free data retrieval call binding the contract method 0x960a7afa.
//
// Solidity: function getTransferRootId(bytes32 rootHash, uint256 totalAmount) pure returns(bytes32)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) GetTransferRootId ( opts * bind . CallOpts , rootHash [ 32 ] byte , totalAmount * big . Int ) ( [ 32 ] byte , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "getTransferRootId" , rootHash , totalAmount )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) GetTransferRootId ( rootHash [ 32 ] byte , totalAmount * big . Int ) ( [ 32 ] byte , error ) {
return _HopL1HopBridge . Contract . GetTransferRootId ( & _HopL1HopBridge . CallOpts , rootHash , totalAmount )
2022-09-13 07:10:59 +00:00
}
// GetTransferRootId is a free data retrieval call binding the contract method 0x960a7afa.
//
// Solidity: function getTransferRootId(bytes32 rootHash, uint256 totalAmount) pure returns(bytes32)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) GetTransferRootId ( rootHash [ 32 ] byte , totalAmount * big . Int ) ( [ 32 ] byte , error ) {
return _HopL1HopBridge . Contract . GetTransferRootId ( & _HopL1HopBridge . CallOpts , rootHash , totalAmount )
2022-09-13 07:10:59 +00:00
}
// Governance is a free data retrieval call binding the contract method 0x5aa6e675.
//
// Solidity: function governance() view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) Governance ( opts * bind . CallOpts ) ( common . Address , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "governance" )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( common . Address ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
return out0 , err
}
// Governance is a free data retrieval call binding the contract method 0x5aa6e675.
//
// Solidity: function governance() view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) Governance ( ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . Governance ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// Governance is a free data retrieval call binding the contract method 0x5aa6e675.
//
// Solidity: function governance() view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) Governance ( ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . Governance ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// IsChainIdPaused is a free data retrieval call binding the contract method 0xfa2a69a3.
//
// Solidity: function isChainIdPaused(uint256 ) view returns(bool)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) IsChainIdPaused ( opts * bind . CallOpts , arg0 * big . Int ) ( bool , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "isChainIdPaused" , arg0 )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( bool ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( bool ) ) . ( * bool )
return out0 , err
}
// IsChainIdPaused is a free data retrieval call binding the contract method 0xfa2a69a3.
//
// Solidity: function isChainIdPaused(uint256 ) view returns(bool)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) IsChainIdPaused ( arg0 * big . Int ) ( bool , error ) {
return _HopL1HopBridge . Contract . IsChainIdPaused ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
// IsChainIdPaused is a free data retrieval call binding the contract method 0xfa2a69a3.
//
// Solidity: function isChainIdPaused(uint256 ) view returns(bool)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) IsChainIdPaused ( arg0 * big . Int ) ( bool , error ) {
return _HopL1HopBridge . Contract . IsChainIdPaused ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
// IsTransferIdSpent is a free data retrieval call binding the contract method 0x3a7af631.
//
// Solidity: function isTransferIdSpent(bytes32 transferId) view returns(bool)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) IsTransferIdSpent ( opts * bind . CallOpts , transferId [ 32 ] byte ) ( bool , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "isTransferIdSpent" , transferId )
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) IsTransferIdSpent ( transferId [ 32 ] byte ) ( bool , error ) {
return _HopL1HopBridge . Contract . IsTransferIdSpent ( & _HopL1HopBridge . CallOpts , transferId )
2022-09-13 07:10:59 +00:00
}
// IsTransferIdSpent is a free data retrieval call binding the contract method 0x3a7af631.
//
// Solidity: function isTransferIdSpent(bytes32 transferId) view returns(bool)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) IsTransferIdSpent ( transferId [ 32 ] byte ) ( bool , error ) {
return _HopL1HopBridge . Contract . IsTransferIdSpent ( & _HopL1HopBridge . CallOpts , transferId )
2022-09-13 07:10:59 +00:00
}
// L1CanonicalToken is a free data retrieval call binding the contract method 0xb7a0bda6.
//
// Solidity: function l1CanonicalToken() view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) L1CanonicalToken ( opts * bind . CallOpts ) ( common . Address , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "l1CanonicalToken" )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( common . Address ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
return out0 , err
}
// L1CanonicalToken is a free data retrieval call binding the contract method 0xb7a0bda6.
//
// Solidity: function l1CanonicalToken() view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) L1CanonicalToken ( ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . L1CanonicalToken ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// L1CanonicalToken is a free data retrieval call binding the contract method 0xb7a0bda6.
//
// Solidity: function l1CanonicalToken() view returns(address)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) L1CanonicalToken ( ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . L1CanonicalToken ( & _HopL1HopBridge . CallOpts )
}
// Migrator is a free data retrieval call binding the contract method 0x7cd07e47.
//
// Solidity: function migrator() view returns(address)
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) Migrator ( opts * bind . CallOpts ) ( common . Address , error ) {
var out [ ] interface { }
err := _HopL1HopBridge . contract . Call ( opts , & out , "migrator" )
if err != nil {
return * new ( common . Address ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
return out0 , err
}
// Migrator is a free data retrieval call binding the contract method 0x7cd07e47.
//
// Solidity: function migrator() view returns(address)
func ( _HopL1HopBridge * HopL1HopBridgeSession ) Migrator ( ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . Migrator ( & _HopL1HopBridge . CallOpts )
}
// Migrator is a free data retrieval call binding the contract method 0x7cd07e47.
//
// Solidity: function migrator() view returns(address)
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) Migrator ( ) ( common . Address , error ) {
return _HopL1HopBridge . Contract . Migrator ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// MinTransferRootBondDelay is a free data retrieval call binding the contract method 0x6cff06a7.
//
// Solidity: function minTransferRootBondDelay() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) MinTransferRootBondDelay ( opts * bind . CallOpts ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "minTransferRootBondDelay" )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// MinTransferRootBondDelay is a free data retrieval call binding the contract method 0x6cff06a7.
//
// Solidity: function minTransferRootBondDelay() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) MinTransferRootBondDelay ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . MinTransferRootBondDelay ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// MinTransferRootBondDelay is a free data retrieval call binding the contract method 0x6cff06a7.
//
// Solidity: function minTransferRootBondDelay() view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) MinTransferRootBondDelay ( ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . MinTransferRootBondDelay ( & _HopL1HopBridge . CallOpts )
2022-09-13 07:10:59 +00:00
}
// TimeSlotToAmountBonded is a free data retrieval call binding the contract method 0x7398d282.
//
// Solidity: function timeSlotToAmountBonded(uint256 , address ) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) TimeSlotToAmountBonded ( opts * bind . CallOpts , arg0 * big . Int , arg1 common . Address ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "timeSlotToAmountBonded" , arg0 , arg1 )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
// TimeSlotToAmountBonded is a free data retrieval call binding the contract method 0x7398d282.
//
// Solidity: function timeSlotToAmountBonded(uint256 , address ) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) TimeSlotToAmountBonded ( arg0 * big . Int , arg1 common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . TimeSlotToAmountBonded ( & _HopL1HopBridge . CallOpts , arg0 , arg1 )
2022-09-13 07:10:59 +00:00
}
// TimeSlotToAmountBonded is a free data retrieval call binding the contract method 0x7398d282.
//
// Solidity: function timeSlotToAmountBonded(uint256 , address ) view returns(uint256)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) TimeSlotToAmountBonded ( arg0 * big . Int , arg1 common . Address ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . TimeSlotToAmountBonded ( & _HopL1HopBridge . CallOpts , arg0 , arg1 )
2022-09-13 07:10:59 +00:00
}
// TransferBonds is a free data retrieval call binding the contract method 0x5a7e1083.
//
// Solidity: function transferBonds(bytes32 ) view returns(address bonder, uint256 createdAt, uint256 totalAmount, uint256 challengeStartTime, address challenger, bool challengeResolved)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) TransferBonds ( opts * bind . CallOpts , arg0 [ 32 ] byte ) ( struct {
2022-09-13 07:10:59 +00:00
Bonder common . Address
CreatedAt * big . Int
TotalAmount * big . Int
ChallengeStartTime * big . Int
Challenger common . Address
ChallengeResolved bool
} , error ) {
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "transferBonds" , arg0 )
2022-09-13 07:10:59 +00:00
outstruct := new ( struct {
Bonder common . Address
CreatedAt * big . Int
TotalAmount * big . Int
ChallengeStartTime * big . Int
Challenger common . Address
ChallengeResolved bool
} )
if err != nil {
return * outstruct , err
}
outstruct . Bonder = * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
outstruct . CreatedAt = * abi . ConvertType ( out [ 1 ] , new ( * big . Int ) ) . ( * * big . Int )
outstruct . TotalAmount = * abi . ConvertType ( out [ 2 ] , new ( * big . Int ) ) . ( * * big . Int )
outstruct . ChallengeStartTime = * abi . ConvertType ( out [ 3 ] , new ( * big . Int ) ) . ( * * big . Int )
outstruct . Challenger = * abi . ConvertType ( out [ 4 ] , new ( common . Address ) ) . ( * common . Address )
outstruct . ChallengeResolved = * abi . ConvertType ( out [ 5 ] , new ( bool ) ) . ( * bool )
return * outstruct , err
}
// TransferBonds is a free data retrieval call binding the contract method 0x5a7e1083.
//
// Solidity: function transferBonds(bytes32 ) view returns(address bonder, uint256 createdAt, uint256 totalAmount, uint256 challengeStartTime, address challenger, bool challengeResolved)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) TransferBonds ( arg0 [ 32 ] byte ) ( struct {
2022-09-13 07:10:59 +00:00
Bonder common . Address
CreatedAt * big . Int
TotalAmount * big . Int
ChallengeStartTime * big . Int
Challenger common . Address
ChallengeResolved bool
} , error ) {
2024-05-23 12:38:39 +00:00
return _HopL1HopBridge . Contract . TransferBonds ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
// TransferBonds is a free data retrieval call binding the contract method 0x5a7e1083.
//
// Solidity: function transferBonds(bytes32 ) view returns(address bonder, uint256 createdAt, uint256 totalAmount, uint256 challengeStartTime, address challenger, bool challengeResolved)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) TransferBonds ( arg0 [ 32 ] byte ) ( struct {
2022-09-13 07:10:59 +00:00
Bonder common . Address
CreatedAt * big . Int
TotalAmount * big . Int
ChallengeStartTime * big . Int
Challenger common . Address
ChallengeResolved bool
} , error ) {
2024-05-23 12:38:39 +00:00
return _HopL1HopBridge . Contract . TransferBonds ( & _HopL1HopBridge . CallOpts , arg0 )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// TransferRootCommittedAt is a free data retrieval call binding the contract method 0x3b8fea28.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function transferRootCommittedAt(uint256 , bytes32 ) view returns(uint256)
func ( _HopL1HopBridge * HopL1HopBridgeCaller ) TransferRootCommittedAt ( opts * bind . CallOpts , arg0 * big . Int , arg1 [ 32 ] byte ) ( * big . Int , error ) {
2022-09-13 07:10:59 +00:00
var out [ ] interface { }
2024-05-23 12:38:39 +00:00
err := _HopL1HopBridge . contract . Call ( opts , & out , "transferRootCommittedAt" , arg0 , arg1 )
2022-09-13 07:10:59 +00:00
if err != nil {
return * new ( * big . Int ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( * big . Int ) ) . ( * * big . Int )
return out0 , err
}
2024-05-23 12:38:39 +00:00
// TransferRootCommittedAt is a free data retrieval call binding the contract method 0x3b8fea28.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function transferRootCommittedAt(uint256 , bytes32 ) view returns(uint256)
func ( _HopL1HopBridge * HopL1HopBridgeSession ) TransferRootCommittedAt ( arg0 * big . Int , arg1 [ 32 ] byte ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . TransferRootCommittedAt ( & _HopL1HopBridge . CallOpts , arg0 , arg1 )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// TransferRootCommittedAt is a free data retrieval call binding the contract method 0x3b8fea28.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function transferRootCommittedAt(uint256 , bytes32 ) view returns(uint256)
func ( _HopL1HopBridge * HopL1HopBridgeCallerSession ) TransferRootCommittedAt ( arg0 * big . Int , arg1 [ 32 ] byte ) ( * big . Int , error ) {
return _HopL1HopBridge . Contract . TransferRootCommittedAt ( & _HopL1HopBridge . CallOpts , arg0 , arg1 )
2022-09-13 07:10:59 +00:00
}
// AddBonder is a paid mutator transaction binding the contract method 0x5325937f.
//
// Solidity: function addBonder(address bonder) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) AddBonder ( opts * bind . TransactOpts , bonder common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "addBonder" , bonder )
2022-09-13 07:10:59 +00:00
}
// AddBonder is a paid mutator transaction binding the contract method 0x5325937f.
//
// Solidity: function addBonder(address bonder) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) AddBonder ( bonder common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . AddBonder ( & _HopL1HopBridge . TransactOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// AddBonder is a paid mutator transaction binding the contract method 0x5325937f.
//
// Solidity: function addBonder(address bonder) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) AddBonder ( bonder common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . AddBonder ( & _HopL1HopBridge . TransactOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// BondTransferRoot is a paid mutator transaction binding the contract method 0x8d8798bf.
//
// Solidity: function bondTransferRoot(bytes32 rootHash, uint256 destinationChainId, uint256 totalAmount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) BondTransferRoot ( opts * bind . TransactOpts , rootHash [ 32 ] byte , destinationChainId * big . Int , totalAmount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "bondTransferRoot" , rootHash , destinationChainId , totalAmount )
2022-09-13 07:10:59 +00:00
}
// BondTransferRoot is a paid mutator transaction binding the contract method 0x8d8798bf.
//
// Solidity: function bondTransferRoot(bytes32 rootHash, uint256 destinationChainId, uint256 totalAmount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) BondTransferRoot ( rootHash [ 32 ] byte , destinationChainId * big . Int , totalAmount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . BondTransferRoot ( & _HopL1HopBridge . TransactOpts , rootHash , destinationChainId , totalAmount )
2022-09-13 07:10:59 +00:00
}
// BondTransferRoot is a paid mutator transaction binding the contract method 0x8d8798bf.
//
// Solidity: function bondTransferRoot(bytes32 rootHash, uint256 destinationChainId, uint256 totalAmount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) BondTransferRoot ( rootHash [ 32 ] byte , destinationChainId * big . Int , totalAmount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . BondTransferRoot ( & _HopL1HopBridge . TransactOpts , rootHash , destinationChainId , totalAmount )
2022-09-13 07:10:59 +00:00
}
// BondWithdrawal is a paid mutator transaction binding the contract method 0x23c452cd.
//
// Solidity: function bondWithdrawal(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) BondWithdrawal ( opts * bind . TransactOpts , recipient common . Address , amount * big . Int , transferNonce [ 32 ] byte , bonderFee * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "bondWithdrawal" , recipient , amount , transferNonce , bonderFee )
2022-09-13 07:10:59 +00:00
}
// BondWithdrawal is a paid mutator transaction binding the contract method 0x23c452cd.
//
// Solidity: function bondWithdrawal(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) BondWithdrawal ( recipient common . Address , amount * big . Int , transferNonce [ 32 ] byte , bonderFee * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . BondWithdrawal ( & _HopL1HopBridge . TransactOpts , recipient , amount , transferNonce , bonderFee )
2022-09-13 07:10:59 +00:00
}
// BondWithdrawal is a paid mutator transaction binding the contract method 0x23c452cd.
//
// Solidity: function bondWithdrawal(address recipient, uint256 amount, bytes32 transferNonce, uint256 bonderFee) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) BondWithdrawal ( recipient common . Address , amount * big . Int , transferNonce [ 32 ] byte , bonderFee * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . BondWithdrawal ( & _HopL1HopBridge . TransactOpts , recipient , amount , transferNonce , bonderFee )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// ChallengeTransferBond is a paid mutator transaction binding the contract method 0x1bbe15ea.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function challengeTransferBond(bytes32 rootHash, uint256 originalAmount, uint256 destinationChainId) payable returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) ChallengeTransferBond ( opts * bind . TransactOpts , rootHash [ 32 ] byte , originalAmount * big . Int , destinationChainId * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "challengeTransferBond" , rootHash , originalAmount , destinationChainId )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// ChallengeTransferBond is a paid mutator transaction binding the contract method 0x1bbe15ea.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function challengeTransferBond(bytes32 rootHash, uint256 originalAmount, uint256 destinationChainId) payable returns()
func ( _HopL1HopBridge * HopL1HopBridgeSession ) ChallengeTransferBond ( rootHash [ 32 ] byte , originalAmount * big . Int , destinationChainId * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . ChallengeTransferBond ( & _HopL1HopBridge . TransactOpts , rootHash , originalAmount , destinationChainId )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// ChallengeTransferBond is a paid mutator transaction binding the contract method 0x1bbe15ea.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function challengeTransferBond(bytes32 rootHash, uint256 originalAmount, uint256 destinationChainId) payable returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) ChallengeTransferBond ( rootHash [ 32 ] byte , originalAmount * big . Int , destinationChainId * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . ChallengeTransferBond ( & _HopL1HopBridge . TransactOpts , rootHash , originalAmount , destinationChainId )
2022-09-13 07:10:59 +00:00
}
// ConfirmTransferRoot is a paid mutator transaction binding the contract method 0xef6ebe5e.
//
// Solidity: function confirmTransferRoot(uint256 originChainId, bytes32 rootHash, uint256 destinationChainId, uint256 totalAmount, uint256 rootCommittedAt) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) ConfirmTransferRoot ( opts * bind . TransactOpts , originChainId * big . Int , rootHash [ 32 ] byte , destinationChainId * big . Int , totalAmount * big . Int , rootCommittedAt * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "confirmTransferRoot" , originChainId , rootHash , destinationChainId , totalAmount , rootCommittedAt )
2022-09-13 07:10:59 +00:00
}
// ConfirmTransferRoot is a paid mutator transaction binding the contract method 0xef6ebe5e.
//
// Solidity: function confirmTransferRoot(uint256 originChainId, bytes32 rootHash, uint256 destinationChainId, uint256 totalAmount, uint256 rootCommittedAt) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) ConfirmTransferRoot ( originChainId * big . Int , rootHash [ 32 ] byte , destinationChainId * big . Int , totalAmount * big . Int , rootCommittedAt * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . ConfirmTransferRoot ( & _HopL1HopBridge . TransactOpts , originChainId , rootHash , destinationChainId , totalAmount , rootCommittedAt )
2022-09-13 07:10:59 +00:00
}
// ConfirmTransferRoot is a paid mutator transaction binding the contract method 0xef6ebe5e.
//
// Solidity: function confirmTransferRoot(uint256 originChainId, bytes32 rootHash, uint256 destinationChainId, uint256 totalAmount, uint256 rootCommittedAt) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) ConfirmTransferRoot ( originChainId * big . Int , rootHash [ 32 ] byte , destinationChainId * big . Int , totalAmount * big . Int , rootCommittedAt * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . ConfirmTransferRoot ( & _HopL1HopBridge . TransactOpts , originChainId , rootHash , destinationChainId , totalAmount , rootCommittedAt )
}
// MigrateTokens is a paid mutator transaction binding the contract method 0xc1684711.
//
// Solidity: function migrateTokens(address recipient) returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) MigrateTokens ( opts * bind . TransactOpts , recipient common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "migrateTokens" , recipient )
}
// MigrateTokens is a paid mutator transaction binding the contract method 0xc1684711.
//
// Solidity: function migrateTokens(address recipient) returns()
func ( _HopL1HopBridge * HopL1HopBridgeSession ) MigrateTokens ( recipient common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . MigrateTokens ( & _HopL1HopBridge . TransactOpts , recipient )
}
// MigrateTokens is a paid mutator transaction binding the contract method 0xc1684711.
//
// Solidity: function migrateTokens(address recipient) returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) MigrateTokens ( recipient common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . MigrateTokens ( & _HopL1HopBridge . TransactOpts , recipient )
2022-09-13 07:10:59 +00:00
}
// RemoveBonder is a paid mutator transaction binding the contract method 0x04e6c2c0.
//
// Solidity: function removeBonder(address bonder) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) RemoveBonder ( opts * bind . TransactOpts , bonder common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "removeBonder" , bonder )
2022-09-13 07:10:59 +00:00
}
// RemoveBonder is a paid mutator transaction binding the contract method 0x04e6c2c0.
//
// Solidity: function removeBonder(address bonder) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) RemoveBonder ( bonder common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . RemoveBonder ( & _HopL1HopBridge . TransactOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// RemoveBonder is a paid mutator transaction binding the contract method 0x04e6c2c0.
//
// Solidity: function removeBonder(address bonder) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) RemoveBonder ( bonder common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . RemoveBonder ( & _HopL1HopBridge . TransactOpts , bonder )
2022-09-13 07:10:59 +00:00
}
// RescueTransferRoot is a paid mutator transaction binding the contract method 0xcbd1642e.
//
// Solidity: function rescueTransferRoot(bytes32 rootHash, uint256 originalAmount, address recipient) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) RescueTransferRoot ( opts * bind . TransactOpts , rootHash [ 32 ] byte , originalAmount * big . Int , recipient common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "rescueTransferRoot" , rootHash , originalAmount , recipient )
2022-09-13 07:10:59 +00:00
}
// RescueTransferRoot is a paid mutator transaction binding the contract method 0xcbd1642e.
//
// Solidity: function rescueTransferRoot(bytes32 rootHash, uint256 originalAmount, address recipient) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) RescueTransferRoot ( rootHash [ 32 ] byte , originalAmount * big . Int , recipient common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . RescueTransferRoot ( & _HopL1HopBridge . TransactOpts , rootHash , originalAmount , recipient )
2022-09-13 07:10:59 +00:00
}
// RescueTransferRoot is a paid mutator transaction binding the contract method 0xcbd1642e.
//
// Solidity: function rescueTransferRoot(bytes32 rootHash, uint256 originalAmount, address recipient) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) RescueTransferRoot ( rootHash [ 32 ] byte , originalAmount * big . Int , recipient common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . RescueTransferRoot ( & _HopL1HopBridge . TransactOpts , rootHash , originalAmount , recipient )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// ResolveChallenge is a paid mutator transaction binding the contract method 0x81707b80.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function resolveChallenge(bytes32 rootHash, uint256 originalAmount, uint256 destinationChainId) returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) ResolveChallenge ( opts * bind . TransactOpts , rootHash [ 32 ] byte , originalAmount * big . Int , destinationChainId * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "resolveChallenge" , rootHash , originalAmount , destinationChainId )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// ResolveChallenge is a paid mutator transaction binding the contract method 0x81707b80.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function resolveChallenge(bytes32 rootHash, uint256 originalAmount, uint256 destinationChainId) returns()
func ( _HopL1HopBridge * HopL1HopBridgeSession ) ResolveChallenge ( rootHash [ 32 ] byte , originalAmount * big . Int , destinationChainId * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . ResolveChallenge ( & _HopL1HopBridge . TransactOpts , rootHash , originalAmount , destinationChainId )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// ResolveChallenge is a paid mutator transaction binding the contract method 0x81707b80.
2022-09-13 07:10:59 +00:00
//
2024-05-23 12:38:39 +00:00
// Solidity: function resolveChallenge(bytes32 rootHash, uint256 originalAmount, uint256 destinationChainId) returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) ResolveChallenge ( rootHash [ 32 ] byte , originalAmount * big . Int , destinationChainId * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . ResolveChallenge ( & _HopL1HopBridge . TransactOpts , rootHash , originalAmount , destinationChainId )
2022-09-13 07:10:59 +00:00
}
// SendToL2 is a paid mutator transaction binding the contract method 0xdeace8f5.
//
// Solidity: function sendToL2(uint256 chainId, address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee) payable returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SendToL2 ( opts * bind . TransactOpts , chainId * big . Int , recipient common . Address , amount * big . Int , amountOutMin * big . Int , deadline * big . Int , relayer common . Address , relayerFee * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "sendToL2" , chainId , recipient , amount , amountOutMin , deadline , relayer , relayerFee )
2022-09-13 07:10:59 +00:00
}
// SendToL2 is a paid mutator transaction binding the contract method 0xdeace8f5.
//
// Solidity: function sendToL2(uint256 chainId, address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee) payable returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SendToL2 ( chainId * big . Int , recipient common . Address , amount * big . Int , amountOutMin * big . Int , deadline * big . Int , relayer common . Address , relayerFee * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SendToL2 ( & _HopL1HopBridge . TransactOpts , chainId , recipient , amount , amountOutMin , deadline , relayer , relayerFee )
2022-09-13 07:10:59 +00:00
}
// SendToL2 is a paid mutator transaction binding the contract method 0xdeace8f5.
//
// Solidity: function sendToL2(uint256 chainId, address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee) payable returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SendToL2 ( chainId * big . Int , recipient common . Address , amount * big . Int , amountOutMin * big . Int , deadline * big . Int , relayer common . Address , relayerFee * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SendToL2 ( & _HopL1HopBridge . TransactOpts , chainId , recipient , amount , amountOutMin , deadline , relayer , relayerFee )
2022-09-13 07:10:59 +00:00
}
// SetChainIdDepositsPaused is a paid mutator transaction binding the contract method 0x14942024.
//
// Solidity: function setChainIdDepositsPaused(uint256 chainId, bool isPaused) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SetChainIdDepositsPaused ( opts * bind . TransactOpts , chainId * big . Int , isPaused bool ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "setChainIdDepositsPaused" , chainId , isPaused )
2022-09-13 07:10:59 +00:00
}
// SetChainIdDepositsPaused is a paid mutator transaction binding the contract method 0x14942024.
//
// Solidity: function setChainIdDepositsPaused(uint256 chainId, bool isPaused) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SetChainIdDepositsPaused ( chainId * big . Int , isPaused bool ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetChainIdDepositsPaused ( & _HopL1HopBridge . TransactOpts , chainId , isPaused )
2022-09-13 07:10:59 +00:00
}
// SetChainIdDepositsPaused is a paid mutator transaction binding the contract method 0x14942024.
//
// Solidity: function setChainIdDepositsPaused(uint256 chainId, bool isPaused) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SetChainIdDepositsPaused ( chainId * big . Int , isPaused bool ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetChainIdDepositsPaused ( & _HopL1HopBridge . TransactOpts , chainId , isPaused )
2022-09-13 07:10:59 +00:00
}
// SetChallengePeriod is a paid mutator transaction binding the contract method 0x5d475fdd.
//
// Solidity: function setChallengePeriod(uint256 _challengePeriod) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SetChallengePeriod ( opts * bind . TransactOpts , _challengePeriod * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "setChallengePeriod" , _challengePeriod )
2022-09-13 07:10:59 +00:00
}
// SetChallengePeriod is a paid mutator transaction binding the contract method 0x5d475fdd.
//
// Solidity: function setChallengePeriod(uint256 _challengePeriod) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SetChallengePeriod ( _challengePeriod * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetChallengePeriod ( & _HopL1HopBridge . TransactOpts , _challengePeriod )
2022-09-13 07:10:59 +00:00
}
// SetChallengePeriod is a paid mutator transaction binding the contract method 0x5d475fdd.
//
// Solidity: function setChallengePeriod(uint256 _challengePeriod) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SetChallengePeriod ( _challengePeriod * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetChallengePeriod ( & _HopL1HopBridge . TransactOpts , _challengePeriod )
2022-09-13 07:10:59 +00:00
}
// SetChallengeResolutionPeriod is a paid mutator transaction binding the contract method 0xeecd57e6.
//
// Solidity: function setChallengeResolutionPeriod(uint256 _challengeResolutionPeriod) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SetChallengeResolutionPeriod ( opts * bind . TransactOpts , _challengeResolutionPeriod * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "setChallengeResolutionPeriod" , _challengeResolutionPeriod )
2022-09-13 07:10:59 +00:00
}
// SetChallengeResolutionPeriod is a paid mutator transaction binding the contract method 0xeecd57e6.
//
// Solidity: function setChallengeResolutionPeriod(uint256 _challengeResolutionPeriod) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SetChallengeResolutionPeriod ( _challengeResolutionPeriod * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetChallengeResolutionPeriod ( & _HopL1HopBridge . TransactOpts , _challengeResolutionPeriod )
2022-09-13 07:10:59 +00:00
}
// SetChallengeResolutionPeriod is a paid mutator transaction binding the contract method 0xeecd57e6.
//
// Solidity: function setChallengeResolutionPeriod(uint256 _challengeResolutionPeriod) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SetChallengeResolutionPeriod ( _challengeResolutionPeriod * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetChallengeResolutionPeriod ( & _HopL1HopBridge . TransactOpts , _challengeResolutionPeriod )
2022-09-13 07:10:59 +00:00
}
// SetCrossDomainMessengerWrapper is a paid mutator transaction binding the contract method 0xd4448163.
//
// Solidity: function setCrossDomainMessengerWrapper(uint256 chainId, address _crossDomainMessengerWrapper) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SetCrossDomainMessengerWrapper ( opts * bind . TransactOpts , chainId * big . Int , _crossDomainMessengerWrapper common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "setCrossDomainMessengerWrapper" , chainId , _crossDomainMessengerWrapper )
2022-09-13 07:10:59 +00:00
}
// SetCrossDomainMessengerWrapper is a paid mutator transaction binding the contract method 0xd4448163.
//
// Solidity: function setCrossDomainMessengerWrapper(uint256 chainId, address _crossDomainMessengerWrapper) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SetCrossDomainMessengerWrapper ( chainId * big . Int , _crossDomainMessengerWrapper common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetCrossDomainMessengerWrapper ( & _HopL1HopBridge . TransactOpts , chainId , _crossDomainMessengerWrapper )
2022-09-13 07:10:59 +00:00
}
// SetCrossDomainMessengerWrapper is a paid mutator transaction binding the contract method 0xd4448163.
//
// Solidity: function setCrossDomainMessengerWrapper(uint256 chainId, address _crossDomainMessengerWrapper) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SetCrossDomainMessengerWrapper ( chainId * big . Int , _crossDomainMessengerWrapper common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetCrossDomainMessengerWrapper ( & _HopL1HopBridge . TransactOpts , chainId , _crossDomainMessengerWrapper )
2022-09-13 07:10:59 +00:00
}
// SetGovernance is a paid mutator transaction binding the contract method 0xab033ea9.
//
// Solidity: function setGovernance(address _newGovernance) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SetGovernance ( opts * bind . TransactOpts , _newGovernance common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "setGovernance" , _newGovernance )
2022-09-13 07:10:59 +00:00
}
// SetGovernance is a paid mutator transaction binding the contract method 0xab033ea9.
//
// Solidity: function setGovernance(address _newGovernance) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SetGovernance ( _newGovernance common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetGovernance ( & _HopL1HopBridge . TransactOpts , _newGovernance )
2022-09-13 07:10:59 +00:00
}
// SetGovernance is a paid mutator transaction binding the contract method 0xab033ea9.
//
// Solidity: function setGovernance(address _newGovernance) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SetGovernance ( _newGovernance common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetGovernance ( & _HopL1HopBridge . TransactOpts , _newGovernance )
}
// SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.
//
// Solidity: function setMigrator(address _newMigrator) returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SetMigrator ( opts * bind . TransactOpts , _newMigrator common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "setMigrator" , _newMigrator )
}
// SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.
//
// Solidity: function setMigrator(address _newMigrator) returns()
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SetMigrator ( _newMigrator common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetMigrator ( & _HopL1HopBridge . TransactOpts , _newMigrator )
}
// SetMigrator is a paid mutator transaction binding the contract method 0x23cf3118.
//
// Solidity: function setMigrator(address _newMigrator) returns()
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SetMigrator ( _newMigrator common . Address ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetMigrator ( & _HopL1HopBridge . TransactOpts , _newMigrator )
2022-09-13 07:10:59 +00:00
}
// SetMinTransferRootBondDelay is a paid mutator transaction binding the contract method 0x39ada669.
//
// Solidity: function setMinTransferRootBondDelay(uint256 _minTransferRootBondDelay) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SetMinTransferRootBondDelay ( opts * bind . TransactOpts , _minTransferRootBondDelay * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "setMinTransferRootBondDelay" , _minTransferRootBondDelay )
2022-09-13 07:10:59 +00:00
}
// SetMinTransferRootBondDelay is a paid mutator transaction binding the contract method 0x39ada669.
//
// Solidity: function setMinTransferRootBondDelay(uint256 _minTransferRootBondDelay) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SetMinTransferRootBondDelay ( _minTransferRootBondDelay * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetMinTransferRootBondDelay ( & _HopL1HopBridge . TransactOpts , _minTransferRootBondDelay )
2022-09-13 07:10:59 +00:00
}
// SetMinTransferRootBondDelay is a paid mutator transaction binding the contract method 0x39ada669.
//
// Solidity: function setMinTransferRootBondDelay(uint256 _minTransferRootBondDelay) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SetMinTransferRootBondDelay ( _minTransferRootBondDelay * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SetMinTransferRootBondDelay ( & _HopL1HopBridge . TransactOpts , _minTransferRootBondDelay )
2022-09-13 07:10:59 +00:00
}
// 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()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) 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 _HopL1HopBridge . contract . Transact ( opts , "settleBondedWithdrawal" , bonder , transferId , rootHash , transferRootTotalAmount , transferIdTreeIndex , siblings , totalLeaves )
2022-09-13 07:10:59 +00:00
}
// 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()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) 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 _HopL1HopBridge . Contract . SettleBondedWithdrawal ( & _HopL1HopBridge . TransactOpts , bonder , transferId , rootHash , transferRootTotalAmount , transferIdTreeIndex , siblings , totalLeaves )
2022-09-13 07:10:59 +00:00
}
// 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()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) 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 _HopL1HopBridge . Contract . SettleBondedWithdrawal ( & _HopL1HopBridge . TransactOpts , bonder , transferId , rootHash , transferRootTotalAmount , transferIdTreeIndex , siblings , totalLeaves )
2022-09-13 07:10:59 +00:00
}
// SettleBondedWithdrawals is a paid mutator transaction binding the contract method 0xb162717e.
//
// Solidity: function settleBondedWithdrawals(address bonder, bytes32[] transferIds, uint256 totalAmount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) SettleBondedWithdrawals ( opts * bind . TransactOpts , bonder common . Address , transferIds [ ] [ 32 ] byte , totalAmount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "settleBondedWithdrawals" , bonder , transferIds , totalAmount )
2022-09-13 07:10:59 +00:00
}
// SettleBondedWithdrawals is a paid mutator transaction binding the contract method 0xb162717e.
//
// Solidity: function settleBondedWithdrawals(address bonder, bytes32[] transferIds, uint256 totalAmount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) SettleBondedWithdrawals ( bonder common . Address , transferIds [ ] [ 32 ] byte , totalAmount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SettleBondedWithdrawals ( & _HopL1HopBridge . TransactOpts , bonder , transferIds , totalAmount )
2022-09-13 07:10:59 +00:00
}
// SettleBondedWithdrawals is a paid mutator transaction binding the contract method 0xb162717e.
//
// Solidity: function settleBondedWithdrawals(address bonder, bytes32[] transferIds, uint256 totalAmount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) SettleBondedWithdrawals ( bonder common . Address , transferIds [ ] [ 32 ] byte , totalAmount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . SettleBondedWithdrawals ( & _HopL1HopBridge . TransactOpts , bonder , transferIds , totalAmount )
2022-09-13 07:10:59 +00:00
}
// Stake is a paid mutator transaction binding the contract method 0xadc9772e.
//
// Solidity: function stake(address bonder, uint256 amount) payable returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) Stake ( opts * bind . TransactOpts , bonder common . Address , amount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "stake" , bonder , amount )
2022-09-13 07:10:59 +00:00
}
// Stake is a paid mutator transaction binding the contract method 0xadc9772e.
//
// Solidity: function stake(address bonder, uint256 amount) payable returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) Stake ( bonder common . Address , amount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . Stake ( & _HopL1HopBridge . TransactOpts , bonder , amount )
2022-09-13 07:10:59 +00:00
}
// Stake is a paid mutator transaction binding the contract method 0xadc9772e.
//
// Solidity: function stake(address bonder, uint256 amount) payable returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) Stake ( bonder common . Address , amount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . Stake ( & _HopL1HopBridge . TransactOpts , bonder , amount )
2022-09-13 07:10:59 +00:00
}
// Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
//
// Solidity: function unstake(uint256 amount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) Unstake ( opts * bind . TransactOpts , amount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . contract . Transact ( opts , "unstake" , amount )
2022-09-13 07:10:59 +00:00
}
// Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
//
// Solidity: function unstake(uint256 amount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) Unstake ( amount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . Unstake ( & _HopL1HopBridge . TransactOpts , amount )
2022-09-13 07:10:59 +00:00
}
// Unstake is a paid mutator transaction binding the contract method 0x2e17de78.
//
// Solidity: function unstake(uint256 amount) returns()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) Unstake ( amount * big . Int ) ( * types . Transaction , error ) {
return _HopL1HopBridge . Contract . Unstake ( & _HopL1HopBridge . TransactOpts , amount )
2022-09-13 07:10:59 +00:00
}
// 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()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactor ) 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 _HopL1HopBridge . contract . Transact ( opts , "withdraw" , recipient , amount , transferNonce , bonderFee , amountOutMin , deadline , rootHash , transferRootTotalAmount , transferIdTreeIndex , siblings , totalLeaves )
2022-09-13 07:10:59 +00:00
}
// 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()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeSession ) 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 _HopL1HopBridge . Contract . Withdraw ( & _HopL1HopBridge . TransactOpts , recipient , amount , transferNonce , bonderFee , amountOutMin , deadline , rootHash , transferRootTotalAmount , transferIdTreeIndex , siblings , totalLeaves )
2022-09-13 07:10:59 +00:00
}
// 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()
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeTransactorSession ) 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 _HopL1HopBridge . Contract . Withdraw ( & _HopL1HopBridge . TransactOpts , recipient , amount , transferNonce , bonderFee , amountOutMin , deadline , rootHash , transferRootTotalAmount , transferIdTreeIndex , siblings , totalLeaves )
2022-09-13 07:10:59 +00:00
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeBonderAddedIterator is returned from FilterBonderAdded and is used to iterate over the raw logs and unpacked data for BonderAdded events raised by the HopL1HopBridge contract.
type HopL1HopBridgeBonderAddedIterator struct {
Event * HopL1HopBridgeBonderAdded // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeBonderAddedIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeBonderAdded )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeBonderAdded )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeBonderAddedIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeBonderAddedIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeBonderAdded represents a BonderAdded event raised by the HopL1HopBridge contract.
type HopL1HopBridgeBonderAdded struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterBonderAdded ( opts * bind . FilterOpts , newBonder [ ] common . Address ) ( * HopL1HopBridgeBonderAddedIterator , error ) {
2022-09-13 07:10:59 +00:00
var newBonderRule [ ] interface { }
for _ , newBonderItem := range newBonder {
newBonderRule = append ( newBonderRule , newBonderItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "BonderAdded" , newBonderRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeBonderAddedIterator { contract : _HopL1HopBridge . contract , event : "BonderAdded" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchBonderAdded is a free log subscription operation binding the contract event 0x2cec73b7434d3b91198ad1a618f63e6a0761ce281af5ec9ec76606d948d03e23.
//
// Solidity: event BonderAdded(address indexed newBonder)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchBonderAdded ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeBonderAdded , newBonder [ ] common . Address ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var newBonderRule [ ] interface { }
for _ , newBonderItem := range newBonder {
newBonderRule = append ( newBonderRule , newBonderItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "BonderAdded" , newBonderRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeBonderAdded )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "BonderAdded" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseBonderAdded ( log types . Log ) ( * HopL1HopBridgeBonderAdded , error ) {
event := new ( HopL1HopBridgeBonderAdded )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "BonderAdded" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeBonderRemovedIterator is returned from FilterBonderRemoved and is used to iterate over the raw logs and unpacked data for BonderRemoved events raised by the HopL1HopBridge contract.
type HopL1HopBridgeBonderRemovedIterator struct {
Event * HopL1HopBridgeBonderRemoved // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeBonderRemovedIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeBonderRemoved )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeBonderRemoved )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeBonderRemovedIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeBonderRemovedIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeBonderRemoved represents a BonderRemoved event raised by the HopL1HopBridge contract.
type HopL1HopBridgeBonderRemoved struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterBonderRemoved ( opts * bind . FilterOpts , previousBonder [ ] common . Address ) ( * HopL1HopBridgeBonderRemovedIterator , error ) {
2022-09-13 07:10:59 +00:00
var previousBonderRule [ ] interface { }
for _ , previousBonderItem := range previousBonder {
previousBonderRule = append ( previousBonderRule , previousBonderItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "BonderRemoved" , previousBonderRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeBonderRemovedIterator { contract : _HopL1HopBridge . contract , event : "BonderRemoved" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchBonderRemoved is a free log subscription operation binding the contract event 0x4234ba611d325b3ba434c4e1b037967b955b1274d4185ee9847b7491111a48ff.
//
// Solidity: event BonderRemoved(address indexed previousBonder)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchBonderRemoved ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeBonderRemoved , previousBonder [ ] common . Address ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var previousBonderRule [ ] interface { }
for _ , previousBonderItem := range previousBonder {
previousBonderRule = append ( previousBonderRule , previousBonderItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "BonderRemoved" , previousBonderRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeBonderRemoved )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "BonderRemoved" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseBonderRemoved ( log types . Log ) ( * HopL1HopBridgeBonderRemoved , error ) {
event := new ( HopL1HopBridgeBonderRemoved )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "BonderRemoved" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeChallengeResolvedIterator is returned from FilterChallengeResolved and is used to iterate over the raw logs and unpacked data for ChallengeResolved events raised by the HopL1HopBridge contract.
type HopL1HopBridgeChallengeResolvedIterator struct {
Event * HopL1HopBridgeChallengeResolved // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeChallengeResolvedIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeChallengeResolved )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeChallengeResolved )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeChallengeResolvedIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeChallengeResolvedIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeChallengeResolved represents a ChallengeResolved event raised by the HopL1HopBridge contract.
type HopL1HopBridgeChallengeResolved struct {
2022-09-13 07:10:59 +00:00
TransferRootId [ 32 ] byte
RootHash [ 32 ] byte
OriginalAmount * big . Int
Raw types . Log // Blockchain specific contextual infos
}
// FilterChallengeResolved is a free log retrieval operation binding the contract event 0x4a99228a8a6d774d261be57ab0ed833bb1bae1f22bbbd3d4767b75ad03fdddf7.
//
// Solidity: event ChallengeResolved(bytes32 indexed transferRootId, bytes32 indexed rootHash, uint256 originalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterChallengeResolved ( opts * bind . FilterOpts , transferRootId [ ] [ 32 ] byte , rootHash [ ] [ 32 ] byte ) ( * HopL1HopBridgeChallengeResolvedIterator , error ) {
2022-09-13 07:10:59 +00:00
var transferRootIdRule [ ] interface { }
for _ , transferRootIdItem := range transferRootId {
transferRootIdRule = append ( transferRootIdRule , transferRootIdItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "ChallengeResolved" , transferRootIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeChallengeResolvedIterator { contract : _HopL1HopBridge . contract , event : "ChallengeResolved" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchChallengeResolved is a free log subscription operation binding the contract event 0x4a99228a8a6d774d261be57ab0ed833bb1bae1f22bbbd3d4767b75ad03fdddf7.
//
// Solidity: event ChallengeResolved(bytes32 indexed transferRootId, bytes32 indexed rootHash, uint256 originalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchChallengeResolved ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeChallengeResolved , transferRootId [ ] [ 32 ] byte , rootHash [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var transferRootIdRule [ ] interface { }
for _ , transferRootIdItem := range transferRootId {
transferRootIdRule = append ( transferRootIdRule , transferRootIdItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "ChallengeResolved" , transferRootIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeChallengeResolved )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "ChallengeResolved" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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
}
// ParseChallengeResolved is a log parse operation binding the contract event 0x4a99228a8a6d774d261be57ab0ed833bb1bae1f22bbbd3d4767b75ad03fdddf7.
//
// Solidity: event ChallengeResolved(bytes32 indexed transferRootId, bytes32 indexed rootHash, uint256 originalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseChallengeResolved ( log types . Log ) ( * HopL1HopBridgeChallengeResolved , error ) {
event := new ( HopL1HopBridgeChallengeResolved )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "ChallengeResolved" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeMultipleWithdrawalsSettledIterator is returned from FilterMultipleWithdrawalsSettled and is used to iterate over the raw logs and unpacked data for MultipleWithdrawalsSettled events raised by the HopL1HopBridge contract.
type HopL1HopBridgeMultipleWithdrawalsSettledIterator struct {
Event * HopL1HopBridgeMultipleWithdrawalsSettled // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeMultipleWithdrawalsSettledIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeMultipleWithdrawalsSettled )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeMultipleWithdrawalsSettled )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeMultipleWithdrawalsSettledIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeMultipleWithdrawalsSettledIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeMultipleWithdrawalsSettled represents a MultipleWithdrawalsSettled event raised by the HopL1HopBridge contract.
type HopL1HopBridgeMultipleWithdrawalsSettled struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterMultipleWithdrawalsSettled ( opts * bind . FilterOpts , bonder [ ] common . Address , rootHash [ ] [ 32 ] byte ) ( * HopL1HopBridgeMultipleWithdrawalsSettledIterator , error ) {
2022-09-13 07:10:59 +00:00
var bonderRule [ ] interface { }
for _ , bonderItem := range bonder {
bonderRule = append ( bonderRule , bonderItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "MultipleWithdrawalsSettled" , bonderRule , rootHashRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeMultipleWithdrawalsSettledIterator { contract : _HopL1HopBridge . contract , event : "MultipleWithdrawalsSettled" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchMultipleWithdrawalsSettled is a free log subscription operation binding the contract event 0x78e830d08be9d5f957414c84d685c061ecbd8467be98b42ebb64f0118b57d2ff.
//
// Solidity: event MultipleWithdrawalsSettled(address indexed bonder, bytes32 indexed rootHash, uint256 totalBondsSettled)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchMultipleWithdrawalsSettled ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeMultipleWithdrawalsSettled , bonder [ ] common . Address , rootHash [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var bonderRule [ ] interface { }
for _ , bonderItem := range bonder {
bonderRule = append ( bonderRule , bonderItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "MultipleWithdrawalsSettled" , bonderRule , rootHashRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeMultipleWithdrawalsSettled )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "MultipleWithdrawalsSettled" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseMultipleWithdrawalsSettled ( log types . Log ) ( * HopL1HopBridgeMultipleWithdrawalsSettled , error ) {
event := new ( HopL1HopBridgeMultipleWithdrawalsSettled )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "MultipleWithdrawalsSettled" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeStakeIterator is returned from FilterStake and is used to iterate over the raw logs and unpacked data for Stake events raised by the HopL1HopBridge contract.
type HopL1HopBridgeStakeIterator struct {
Event * HopL1HopBridgeStake // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeStakeIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeStake )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeStake )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeStakeIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeStakeIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeStake represents a Stake event raised by the HopL1HopBridge contract.
type HopL1HopBridgeStake struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterStake ( opts * bind . FilterOpts , account [ ] common . Address ) ( * HopL1HopBridgeStakeIterator , error ) {
2022-09-13 07:10:59 +00:00
var accountRule [ ] interface { }
for _ , accountItem := range account {
accountRule = append ( accountRule , accountItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "Stake" , accountRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeStakeIterator { contract : _HopL1HopBridge . contract , event : "Stake" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchStake is a free log subscription operation binding the contract event 0xebedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a.
//
// Solidity: event Stake(address indexed account, uint256 amount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchStake ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeStake , account [ ] common . Address ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var accountRule [ ] interface { }
for _ , accountItem := range account {
accountRule = append ( accountRule , accountItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "Stake" , accountRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeStake )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "Stake" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseStake ( log types . Log ) ( * HopL1HopBridgeStake , error ) {
event := new ( HopL1HopBridgeStake )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "Stake" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferBondChallengedIterator is returned from FilterTransferBondChallenged and is used to iterate over the raw logs and unpacked data for TransferBondChallenged events raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferBondChallengedIterator struct {
Event * HopL1HopBridgeTransferBondChallenged // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferBondChallengedIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferBondChallenged )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferBondChallenged )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferBondChallengedIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferBondChallengedIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferBondChallenged represents a TransferBondChallenged event raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferBondChallenged struct {
2022-09-13 07:10:59 +00:00
TransferRootId [ 32 ] byte
RootHash [ 32 ] byte
OriginalAmount * big . Int
Raw types . Log // Blockchain specific contextual infos
}
// FilterTransferBondChallenged is a free log retrieval operation binding the contract event 0xec2697dcba539a0ac947cdf1f6d0b6314c065429eca8be2435859b10209d4c27.
//
// Solidity: event TransferBondChallenged(bytes32 indexed transferRootId, bytes32 indexed rootHash, uint256 originalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterTransferBondChallenged ( opts * bind . FilterOpts , transferRootId [ ] [ 32 ] byte , rootHash [ ] [ 32 ] byte ) ( * HopL1HopBridgeTransferBondChallengedIterator , error ) {
2022-09-13 07:10:59 +00:00
var transferRootIdRule [ ] interface { }
for _ , transferRootIdItem := range transferRootId {
transferRootIdRule = append ( transferRootIdRule , transferRootIdItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "TransferBondChallenged" , transferRootIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeTransferBondChallengedIterator { contract : _HopL1HopBridge . contract , event : "TransferBondChallenged" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchTransferBondChallenged is a free log subscription operation binding the contract event 0xec2697dcba539a0ac947cdf1f6d0b6314c065429eca8be2435859b10209d4c27.
//
// Solidity: event TransferBondChallenged(bytes32 indexed transferRootId, bytes32 indexed rootHash, uint256 originalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchTransferBondChallenged ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeTransferBondChallenged , transferRootId [ ] [ 32 ] byte , rootHash [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var transferRootIdRule [ ] interface { }
for _ , transferRootIdItem := range transferRootId {
transferRootIdRule = append ( transferRootIdRule , transferRootIdItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "TransferBondChallenged" , transferRootIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeTransferBondChallenged )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferBondChallenged" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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
}
// ParseTransferBondChallenged is a log parse operation binding the contract event 0xec2697dcba539a0ac947cdf1f6d0b6314c065429eca8be2435859b10209d4c27.
//
// Solidity: event TransferBondChallenged(bytes32 indexed transferRootId, bytes32 indexed rootHash, uint256 originalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseTransferBondChallenged ( log types . Log ) ( * HopL1HopBridgeTransferBondChallenged , error ) {
event := new ( HopL1HopBridgeTransferBondChallenged )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferBondChallenged" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferRootBondedIterator is returned from FilterTransferRootBonded and is used to iterate over the raw logs and unpacked data for TransferRootBonded events raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferRootBondedIterator struct {
Event * HopL1HopBridgeTransferRootBonded // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootBondedIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferRootBonded )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferRootBonded )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootBondedIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootBondedIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferRootBonded represents a TransferRootBonded event raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferRootBonded struct {
2022-09-13 07:10:59 +00:00
Root [ 32 ] byte
Amount * big . Int
Raw types . Log // Blockchain specific contextual infos
}
// FilterTransferRootBonded is a free log retrieval operation binding the contract event 0xa57b3e1f3af9eca02201028629700658608222c365064584cfe65d9630ef4f7b.
//
// Solidity: event TransferRootBonded(bytes32 indexed root, uint256 amount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterTransferRootBonded ( opts * bind . FilterOpts , root [ ] [ 32 ] byte ) ( * HopL1HopBridgeTransferRootBondedIterator , error ) {
2022-09-13 07:10:59 +00:00
var rootRule [ ] interface { }
for _ , rootItem := range root {
rootRule = append ( rootRule , rootItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "TransferRootBonded" , rootRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeTransferRootBondedIterator { contract : _HopL1HopBridge . contract , event : "TransferRootBonded" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchTransferRootBonded is a free log subscription operation binding the contract event 0xa57b3e1f3af9eca02201028629700658608222c365064584cfe65d9630ef4f7b.
//
// Solidity: event TransferRootBonded(bytes32 indexed root, uint256 amount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchTransferRootBonded ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeTransferRootBonded , root [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var rootRule [ ] interface { }
for _ , rootItem := range root {
rootRule = append ( rootRule , rootItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "TransferRootBonded" , rootRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeTransferRootBonded )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferRootBonded" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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
}
// ParseTransferRootBonded is a log parse operation binding the contract event 0xa57b3e1f3af9eca02201028629700658608222c365064584cfe65d9630ef4f7b.
//
// Solidity: event TransferRootBonded(bytes32 indexed root, uint256 amount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseTransferRootBonded ( log types . Log ) ( * HopL1HopBridgeTransferRootBonded , error ) {
event := new ( HopL1HopBridgeTransferRootBonded )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferRootBonded" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferRootConfirmedIterator is returned from FilterTransferRootConfirmed and is used to iterate over the raw logs and unpacked data for TransferRootConfirmed events raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferRootConfirmedIterator struct {
Event * HopL1HopBridgeTransferRootConfirmed // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootConfirmedIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferRootConfirmed )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferRootConfirmed )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootConfirmedIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootConfirmedIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferRootConfirmed represents a TransferRootConfirmed event raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferRootConfirmed struct {
2022-09-13 07:10:59 +00:00
OriginChainId * big . Int
DestinationChainId * big . Int
RootHash [ 32 ] byte
TotalAmount * big . Int
Raw types . Log // Blockchain specific contextual infos
}
// FilterTransferRootConfirmed is a free log retrieval operation binding the contract event 0xfdfb0eefa96935b8a8c0edf528e125dc6f3934fdbbfce31b38967e8ff413dccd.
//
// Solidity: event TransferRootConfirmed(uint256 indexed originChainId, uint256 indexed destinationChainId, bytes32 indexed rootHash, uint256 totalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterTransferRootConfirmed ( opts * bind . FilterOpts , originChainId [ ] * big . Int , destinationChainId [ ] * big . Int , rootHash [ ] [ 32 ] byte ) ( * HopL1HopBridgeTransferRootConfirmedIterator , error ) {
2022-09-13 07:10:59 +00:00
var originChainIdRule [ ] interface { }
for _ , originChainIdItem := range originChainId {
originChainIdRule = append ( originChainIdRule , originChainIdItem )
}
var destinationChainIdRule [ ] interface { }
for _ , destinationChainIdItem := range destinationChainId {
destinationChainIdRule = append ( destinationChainIdRule , destinationChainIdItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "TransferRootConfirmed" , originChainIdRule , destinationChainIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeTransferRootConfirmedIterator { contract : _HopL1HopBridge . contract , event : "TransferRootConfirmed" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchTransferRootConfirmed is a free log subscription operation binding the contract event 0xfdfb0eefa96935b8a8c0edf528e125dc6f3934fdbbfce31b38967e8ff413dccd.
//
// Solidity: event TransferRootConfirmed(uint256 indexed originChainId, uint256 indexed destinationChainId, bytes32 indexed rootHash, uint256 totalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchTransferRootConfirmed ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeTransferRootConfirmed , originChainId [ ] * big . Int , destinationChainId [ ] * big . Int , rootHash [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var originChainIdRule [ ] interface { }
for _ , originChainIdItem := range originChainId {
originChainIdRule = append ( originChainIdRule , originChainIdItem )
}
var destinationChainIdRule [ ] interface { }
for _ , destinationChainIdItem := range destinationChainId {
destinationChainIdRule = append ( destinationChainIdRule , destinationChainIdItem )
}
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "TransferRootConfirmed" , originChainIdRule , destinationChainIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeTransferRootConfirmed )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferRootConfirmed" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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
}
// ParseTransferRootConfirmed is a log parse operation binding the contract event 0xfdfb0eefa96935b8a8c0edf528e125dc6f3934fdbbfce31b38967e8ff413dccd.
//
// Solidity: event TransferRootConfirmed(uint256 indexed originChainId, uint256 indexed destinationChainId, bytes32 indexed rootHash, uint256 totalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseTransferRootConfirmed ( log types . Log ) ( * HopL1HopBridgeTransferRootConfirmed , error ) {
event := new ( HopL1HopBridgeTransferRootConfirmed )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferRootConfirmed" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferRootSetIterator is returned from FilterTransferRootSet and is used to iterate over the raw logs and unpacked data for TransferRootSet events raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferRootSetIterator struct {
Event * HopL1HopBridgeTransferRootSet // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootSetIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferRootSet )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferRootSet )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootSetIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferRootSetIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferRootSet represents a TransferRootSet event raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferRootSet struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterTransferRootSet ( opts * bind . FilterOpts , rootHash [ ] [ 32 ] byte ) ( * HopL1HopBridgeTransferRootSetIterator , error ) {
2022-09-13 07:10:59 +00:00
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "TransferRootSet" , rootHashRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeTransferRootSetIterator { contract : _HopL1HopBridge . contract , event : "TransferRootSet" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchTransferRootSet is a free log subscription operation binding the contract event 0xb33d2162aead99dab59e77a7a67ea025b776bf8ca8079e132afdf9b23e03bd42.
//
// Solidity: event TransferRootSet(bytes32 indexed rootHash, uint256 totalAmount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchTransferRootSet ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeTransferRootSet , rootHash [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var rootHashRule [ ] interface { }
for _ , rootHashItem := range rootHash {
rootHashRule = append ( rootHashRule , rootHashItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "TransferRootSet" , rootHashRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeTransferRootSet )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferRootSet" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseTransferRootSet ( log types . Log ) ( * HopL1HopBridgeTransferRootSet , error ) {
event := new ( HopL1HopBridgeTransferRootSet )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferRootSet" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferSentToL2Iterator is returned from FilterTransferSentToL2 and is used to iterate over the raw logs and unpacked data for TransferSentToL2 events raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferSentToL2Iterator struct {
Event * HopL1HopBridgeTransferSentToL2 // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferSentToL2Iterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferSentToL2 )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeTransferSentToL2 )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferSentToL2Iterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeTransferSentToL2Iterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeTransferSentToL2 represents a TransferSentToL2 event raised by the HopL1HopBridge contract.
type HopL1HopBridgeTransferSentToL2 struct {
2022-09-13 07:10:59 +00:00
ChainId * big . Int
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
}
// FilterTransferSentToL2 is a free log retrieval operation binding the contract event 0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b.
//
// Solidity: event TransferSentToL2(uint256 indexed chainId, address indexed recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address indexed relayer, uint256 relayerFee)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterTransferSentToL2 ( opts * bind . FilterOpts , chainId [ ] * big . Int , recipient [ ] common . Address , relayer [ ] common . Address ) ( * HopL1HopBridgeTransferSentToL2Iterator , error ) {
2022-09-13 07:10:59 +00:00
var chainIdRule [ ] interface { }
for _ , chainIdItem := range chainId {
chainIdRule = append ( chainIdRule , chainIdItem )
}
var recipientRule [ ] interface { }
for _ , recipientItem := range recipient {
recipientRule = append ( recipientRule , recipientItem )
}
var relayerRule [ ] interface { }
for _ , relayerItem := range relayer {
relayerRule = append ( relayerRule , relayerItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "TransferSentToL2" , chainIdRule , recipientRule , relayerRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeTransferSentToL2Iterator { contract : _HopL1HopBridge . contract , event : "TransferSentToL2" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchTransferSentToL2 is a free log subscription operation binding the contract event 0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b.
//
// Solidity: event TransferSentToL2(uint256 indexed chainId, address indexed recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address indexed relayer, uint256 relayerFee)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchTransferSentToL2 ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeTransferSentToL2 , chainId [ ] * big . Int , recipient [ ] common . Address , relayer [ ] common . Address ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var chainIdRule [ ] interface { }
for _ , chainIdItem := range chainId {
chainIdRule = append ( chainIdRule , chainIdItem )
}
var recipientRule [ ] interface { }
for _ , recipientItem := range recipient {
recipientRule = append ( recipientRule , recipientItem )
}
var relayerRule [ ] interface { }
for _ , relayerItem := range relayer {
relayerRule = append ( relayerRule , relayerItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "TransferSentToL2" , chainIdRule , recipientRule , relayerRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeTransferSentToL2 )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferSentToL2" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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
}
// ParseTransferSentToL2 is a log parse operation binding the contract event 0x0a0607688c86ec1775abcdbab7b33a3a35a6c9cde677c9be880150c231cc6b0b.
//
// Solidity: event TransferSentToL2(uint256 indexed chainId, address indexed recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address indexed relayer, uint256 relayerFee)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseTransferSentToL2 ( log types . Log ) ( * HopL1HopBridgeTransferSentToL2 , error ) {
event := new ( HopL1HopBridgeTransferSentToL2 )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "TransferSentToL2" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeUnstakeIterator is returned from FilterUnstake and is used to iterate over the raw logs and unpacked data for Unstake events raised by the HopL1HopBridge contract.
type HopL1HopBridgeUnstakeIterator struct {
Event * HopL1HopBridgeUnstake // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeUnstakeIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeUnstake )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeUnstake )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeUnstakeIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeUnstakeIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeUnstake represents a Unstake event raised by the HopL1HopBridge contract.
type HopL1HopBridgeUnstake struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterUnstake ( opts * bind . FilterOpts , account [ ] common . Address ) ( * HopL1HopBridgeUnstakeIterator , error ) {
2022-09-13 07:10:59 +00:00
var accountRule [ ] interface { }
for _ , accountItem := range account {
accountRule = append ( accountRule , accountItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "Unstake" , accountRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeUnstakeIterator { contract : _HopL1HopBridge . contract , event : "Unstake" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchUnstake is a free log subscription operation binding the contract event 0x85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd.
//
// Solidity: event Unstake(address indexed account, uint256 amount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchUnstake ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeUnstake , account [ ] common . Address ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var accountRule [ ] interface { }
for _ , accountItem := range account {
accountRule = append ( accountRule , accountItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "Unstake" , accountRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeUnstake )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "Unstake" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseUnstake ( log types . Log ) ( * HopL1HopBridgeUnstake , error ) {
event := new ( HopL1HopBridgeUnstake )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "Unstake" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeWithdrawalBondSettledIterator is returned from FilterWithdrawalBondSettled and is used to iterate over the raw logs and unpacked data for WithdrawalBondSettled events raised by the HopL1HopBridge contract.
type HopL1HopBridgeWithdrawalBondSettledIterator struct {
Event * HopL1HopBridgeWithdrawalBondSettled // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrawalBondSettledIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeWithdrawalBondSettled )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeWithdrawalBondSettled )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrawalBondSettledIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrawalBondSettledIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeWithdrawalBondSettled represents a WithdrawalBondSettled event raised by the HopL1HopBridge contract.
type HopL1HopBridgeWithdrawalBondSettled struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterWithdrawalBondSettled ( opts * bind . FilterOpts , bonder [ ] common . Address , transferId [ ] [ 32 ] byte , rootHash [ ] [ 32 ] byte ) ( * HopL1HopBridgeWithdrawalBondSettledIterator , error ) {
2022-09-13 07:10:59 +00:00
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 )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "WithdrawalBondSettled" , bonderRule , transferIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeWithdrawalBondSettledIterator { contract : _HopL1HopBridge . contract , event : "WithdrawalBondSettled" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchWithdrawalBondSettled is a free log subscription operation binding the contract event 0x84eb21b24c31b27a3bc67dde4a598aad06db6e9415cd66544492b9616996143c.
//
// Solidity: event WithdrawalBondSettled(address indexed bonder, bytes32 indexed transferId, bytes32 indexed rootHash)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchWithdrawalBondSettled ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeWithdrawalBondSettled , bonder [ ] common . Address , transferId [ ] [ 32 ] byte , rootHash [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
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 )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "WithdrawalBondSettled" , bonderRule , transferIdRule , rootHashRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeWithdrawalBondSettled )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "WithdrawalBondSettled" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseWithdrawalBondSettled ( log types . Log ) ( * HopL1HopBridgeWithdrawalBondSettled , error ) {
event := new ( HopL1HopBridgeWithdrawalBondSettled )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "WithdrawalBondSettled" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeWithdrawalBondedIterator is returned from FilterWithdrawalBonded and is used to iterate over the raw logs and unpacked data for WithdrawalBonded events raised by the HopL1HopBridge contract.
type HopL1HopBridgeWithdrawalBondedIterator struct {
Event * HopL1HopBridgeWithdrawalBonded // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrawalBondedIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeWithdrawalBonded )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeWithdrawalBonded )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrawalBondedIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrawalBondedIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeWithdrawalBonded represents a WithdrawalBonded event raised by the HopL1HopBridge contract.
type HopL1HopBridgeWithdrawalBonded struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterWithdrawalBonded ( opts * bind . FilterOpts , transferId [ ] [ 32 ] byte ) ( * HopL1HopBridgeWithdrawalBondedIterator , error ) {
2022-09-13 07:10:59 +00:00
var transferIdRule [ ] interface { }
for _ , transferIdItem := range transferId {
transferIdRule = append ( transferIdRule , transferIdItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "WithdrawalBonded" , transferIdRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeWithdrawalBondedIterator { contract : _HopL1HopBridge . contract , event : "WithdrawalBonded" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// WatchWithdrawalBonded is a free log subscription operation binding the contract event 0x0c3d250c7831051e78aa6a56679e590374c7c424415ffe4aa474491def2fe705.
//
// Solidity: event WithdrawalBonded(bytes32 indexed transferId, uint256 amount)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchWithdrawalBonded ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeWithdrawalBonded , transferId [ ] [ 32 ] byte ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var transferIdRule [ ] interface { }
for _ , transferIdItem := range transferId {
transferIdRule = append ( transferIdRule , transferIdItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "WithdrawalBonded" , transferIdRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeWithdrawalBonded )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "WithdrawalBonded" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseWithdrawalBonded ( log types . Log ) ( * HopL1HopBridgeWithdrawalBonded , error ) {
event := new ( HopL1HopBridgeWithdrawalBonded )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "WithdrawalBonded" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeWithdrewIterator is returned from FilterWithdrew and is used to iterate over the raw logs and unpacked data for Withdrew events raised by the HopL1HopBridge contract.
type HopL1HopBridgeWithdrewIterator struct {
Event * HopL1HopBridgeWithdrew // Event containing the contract specifics and raw log
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrewIterator ) Next ( ) bool {
2022-09-13 07:10:59 +00:00
// 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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeWithdrew )
2022-09-13 07:10:59 +00:00
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 :
2024-05-23 12:38:39 +00:00
it . Event = new ( HopL1HopBridgeWithdrew )
2022-09-13 07:10:59 +00:00
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.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrewIterator ) Error ( ) error {
2022-09-13 07:10:59 +00:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2024-05-23 12:38:39 +00:00
func ( it * HopL1HopBridgeWithdrewIterator ) Close ( ) error {
2022-09-13 07:10:59 +00:00
it . sub . Unsubscribe ( )
return nil
}
2024-05-23 12:38:39 +00:00
// HopL1HopBridgeWithdrew represents a Withdrew event raised by the HopL1HopBridge contract.
type HopL1HopBridgeWithdrew struct {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) FilterWithdrew ( opts * bind . FilterOpts , transferId [ ] [ 32 ] byte , recipient [ ] common . Address ) ( * HopL1HopBridgeWithdrewIterator , error ) {
2022-09-13 07:10:59 +00:00
var transferIdRule [ ] interface { }
for _ , transferIdItem := range transferId {
transferIdRule = append ( transferIdRule , transferIdItem )
}
var recipientRule [ ] interface { }
for _ , recipientItem := range recipient {
recipientRule = append ( recipientRule , recipientItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . FilterLogs ( opts , "Withdrew" , transferIdRule , recipientRule )
2022-09-13 07:10:59 +00:00
if err != nil {
return nil , err
}
2024-05-23 12:38:39 +00:00
return & HopL1HopBridgeWithdrewIterator { contract : _HopL1HopBridge . contract , event : "Withdrew" , logs : logs , sub : sub } , nil
2022-09-13 07:10:59 +00:00
}
// 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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) WatchWithdrew ( opts * bind . WatchOpts , sink chan <- * HopL1HopBridgeWithdrew , transferId [ ] [ 32 ] byte , recipient [ ] common . Address ) ( event . Subscription , error ) {
2022-09-13 07:10:59 +00:00
var transferIdRule [ ] interface { }
for _ , transferIdItem := range transferId {
transferIdRule = append ( transferIdRule , transferIdItem )
}
var recipientRule [ ] interface { }
for _ , recipientItem := range recipient {
recipientRule = append ( recipientRule , recipientItem )
}
2024-05-23 12:38:39 +00:00
logs , sub , err := _HopL1HopBridge . contract . WatchLogs ( opts , "Withdrew" , transferIdRule , recipientRule )
2022-09-13 07:10:59 +00:00
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
2024-05-23 12:38:39 +00:00
event := new ( HopL1HopBridgeWithdrew )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "Withdrew" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
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)
2024-05-23 12:38:39 +00:00
func ( _HopL1HopBridge * HopL1HopBridgeFilterer ) ParseWithdrew ( log types . Log ) ( * HopL1HopBridgeWithdrew , error ) {
event := new ( HopL1HopBridgeWithdrew )
if err := _HopL1HopBridge . contract . UnpackLog ( event , "Withdrew" , log ) ; err != nil {
2022-09-13 07:10:59 +00:00
return nil , err
}
event . Raw = log
return event , nil
}