github.com/status-im/status-go@v1.1.0/contracts/hop/l2Contracts/l2CctpImplementation/l2CctpImplementation.go (about)

     1  // Code generated - DO NOT EDIT.
     2  // This file is a generated binding and any manual changes will be lost.
     3  
     4  package hopL2CctpImplementation
     5  
     6  import (
     7  	"errors"
     8  	"math/big"
     9  	"strings"
    10  
    11  	ethereum "github.com/ethereum/go-ethereum"
    12  	"github.com/ethereum/go-ethereum/accounts/abi"
    13  	"github.com/ethereum/go-ethereum/accounts/abi/bind"
    14  	"github.com/ethereum/go-ethereum/common"
    15  	"github.com/ethereum/go-ethereum/core/types"
    16  	"github.com/ethereum/go-ethereum/event"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var (
    21  	_ = errors.New
    22  	_ = big.NewInt
    23  	_ = strings.NewReader
    24  	_ = ethereum.NotFound
    25  	_ = bind.Bind
    26  	_ = common.Big1
    27  	_ = types.BloomLookup
    28  	_ = event.NewSubscription
    29  	_ = abi.ConvertType
    30  )
    31  
    32  // IAMMExactInputParams is an auto generated low-level Go binding around an user-defined struct.
    33  type IAMMExactInputParams struct {
    34  	Path             []byte
    35  	Recipient        common.Address
    36  	AmountIn         *big.Int
    37  	AmountOutMinimum *big.Int
    38  }
    39  
    40  // HopL2CctpImplementationMetaData contains all meta data concerning the HopL2CctpImplementation contract.
    41  var HopL2CctpImplementationMetaData = &bind.MetaData{
    42  	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nativeTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"cctpAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"feeCollectorAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minBonderFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"chainIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint32[]\",\"name\":\"domains\",\"type\":\"uint32[]\"},{\"internalType\":\"address\",\"name\":\"bridgedTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ammAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"cctpNonce\",\"type\":\"uint64\"},{\"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\":\"bonderFee\",\"type\":\"uint256\"}],\"name\":\"CCTPTransferSent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"activeChainIds\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"amm\",\"outputs\":[{\"internalType\":\"contractIAMM\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgedToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cctp\",\"outputs\":[{\"internalType\":\"contractICCTP\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"destinationDomains\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeCollectorAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minBonderFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nativeToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bonderFee\",\"type\":\"uint256\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bonderFee\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"}],\"internalType\":\"structIAMM.ExactInputParams\",\"name\":\"swapParams\",\"type\":\"tuple\"}],\"name\":\"swapAndSend\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
    43  }
    44  
    45  // HopL2CctpImplementationABI is the input ABI used to generate the binding from.
    46  // Deprecated: Use HopL2CctpImplementationMetaData.ABI instead.
    47  var HopL2CctpImplementationABI = HopL2CctpImplementationMetaData.ABI
    48  
    49  // HopL2CctpImplementation is an auto generated Go binding around an Ethereum contract.
    50  type HopL2CctpImplementation struct {
    51  	HopL2CctpImplementationCaller     // Read-only binding to the contract
    52  	HopL2CctpImplementationTransactor // Write-only binding to the contract
    53  	HopL2CctpImplementationFilterer   // Log filterer for contract events
    54  }
    55  
    56  // HopL2CctpImplementationCaller is an auto generated read-only Go binding around an Ethereum contract.
    57  type HopL2CctpImplementationCaller struct {
    58  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    59  }
    60  
    61  // HopL2CctpImplementationTransactor is an auto generated write-only Go binding around an Ethereum contract.
    62  type HopL2CctpImplementationTransactor struct {
    63  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    64  }
    65  
    66  // HopL2CctpImplementationFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    67  type HopL2CctpImplementationFilterer struct {
    68  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    69  }
    70  
    71  // HopL2CctpImplementationSession is an auto generated Go binding around an Ethereum contract,
    72  // with pre-set call and transact options.
    73  type HopL2CctpImplementationSession struct {
    74  	Contract     *HopL2CctpImplementation // Generic contract binding to set the session for
    75  	CallOpts     bind.CallOpts            // Call options to use throughout this session
    76  	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
    77  }
    78  
    79  // HopL2CctpImplementationCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    80  // with pre-set call options.
    81  type HopL2CctpImplementationCallerSession struct {
    82  	Contract *HopL2CctpImplementationCaller // Generic contract caller binding to set the session for
    83  	CallOpts bind.CallOpts                  // Call options to use throughout this session
    84  }
    85  
    86  // HopL2CctpImplementationTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    87  // with pre-set transact options.
    88  type HopL2CctpImplementationTransactorSession struct {
    89  	Contract     *HopL2CctpImplementationTransactor // Generic contract transactor binding to set the session for
    90  	TransactOpts bind.TransactOpts                  // Transaction auth options to use throughout this session
    91  }
    92  
    93  // HopL2CctpImplementationRaw is an auto generated low-level Go binding around an Ethereum contract.
    94  type HopL2CctpImplementationRaw struct {
    95  	Contract *HopL2CctpImplementation // Generic contract binding to access the raw methods on
    96  }
    97  
    98  // HopL2CctpImplementationCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
    99  type HopL2CctpImplementationCallerRaw struct {
   100  	Contract *HopL2CctpImplementationCaller // Generic read-only contract binding to access the raw methods on
   101  }
   102  
   103  // HopL2CctpImplementationTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   104  type HopL2CctpImplementationTransactorRaw struct {
   105  	Contract *HopL2CctpImplementationTransactor // Generic write-only contract binding to access the raw methods on
   106  }
   107  
   108  // NewHopL2CctpImplementation creates a new instance of HopL2CctpImplementation, bound to a specific deployed contract.
   109  func NewHopL2CctpImplementation(address common.Address, backend bind.ContractBackend) (*HopL2CctpImplementation, error) {
   110  	contract, err := bindHopL2CctpImplementation(address, backend, backend, backend)
   111  	if err != nil {
   112  		return nil, err
   113  	}
   114  	return &HopL2CctpImplementation{HopL2CctpImplementationCaller: HopL2CctpImplementationCaller{contract: contract}, HopL2CctpImplementationTransactor: HopL2CctpImplementationTransactor{contract: contract}, HopL2CctpImplementationFilterer: HopL2CctpImplementationFilterer{contract: contract}}, nil
   115  }
   116  
   117  // NewHopL2CctpImplementationCaller creates a new read-only instance of HopL2CctpImplementation, bound to a specific deployed contract.
   118  func NewHopL2CctpImplementationCaller(address common.Address, caller bind.ContractCaller) (*HopL2CctpImplementationCaller, error) {
   119  	contract, err := bindHopL2CctpImplementation(address, caller, nil, nil)
   120  	if err != nil {
   121  		return nil, err
   122  	}
   123  	return &HopL2CctpImplementationCaller{contract: contract}, nil
   124  }
   125  
   126  // NewHopL2CctpImplementationTransactor creates a new write-only instance of HopL2CctpImplementation, bound to a specific deployed contract.
   127  func NewHopL2CctpImplementationTransactor(address common.Address, transactor bind.ContractTransactor) (*HopL2CctpImplementationTransactor, error) {
   128  	contract, err := bindHopL2CctpImplementation(address, nil, transactor, nil)
   129  	if err != nil {
   130  		return nil, err
   131  	}
   132  	return &HopL2CctpImplementationTransactor{contract: contract}, nil
   133  }
   134  
   135  // NewHopL2CctpImplementationFilterer creates a new log filterer instance of HopL2CctpImplementation, bound to a specific deployed contract.
   136  func NewHopL2CctpImplementationFilterer(address common.Address, filterer bind.ContractFilterer) (*HopL2CctpImplementationFilterer, error) {
   137  	contract, err := bindHopL2CctpImplementation(address, nil, nil, filterer)
   138  	if err != nil {
   139  		return nil, err
   140  	}
   141  	return &HopL2CctpImplementationFilterer{contract: contract}, nil
   142  }
   143  
   144  // bindHopL2CctpImplementation binds a generic wrapper to an already deployed contract.
   145  func bindHopL2CctpImplementation(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   146  	parsed, err := HopL2CctpImplementationMetaData.GetAbi()
   147  	if err != nil {
   148  		return nil, err
   149  	}
   150  	return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
   151  }
   152  
   153  // Call invokes the (constant) contract method with params as input values and
   154  // sets the output to result. The result type might be a single field for simple
   155  // returns, a slice of interfaces for anonymous returns and a struct for named
   156  // returns.
   157  func (_HopL2CctpImplementation *HopL2CctpImplementationRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   158  	return _HopL2CctpImplementation.Contract.HopL2CctpImplementationCaller.contract.Call(opts, result, method, params...)
   159  }
   160  
   161  // Transfer initiates a plain transaction to move funds to the contract, calling
   162  // its default method if one is available.
   163  func (_HopL2CctpImplementation *HopL2CctpImplementationRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   164  	return _HopL2CctpImplementation.Contract.HopL2CctpImplementationTransactor.contract.Transfer(opts)
   165  }
   166  
   167  // Transact invokes the (paid) contract method with params as input values.
   168  func (_HopL2CctpImplementation *HopL2CctpImplementationRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   169  	return _HopL2CctpImplementation.Contract.HopL2CctpImplementationTransactor.contract.Transact(opts, method, params...)
   170  }
   171  
   172  // Call invokes the (constant) contract method with params as input values and
   173  // sets the output to result. The result type might be a single field for simple
   174  // returns, a slice of interfaces for anonymous returns and a struct for named
   175  // returns.
   176  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   177  	return _HopL2CctpImplementation.Contract.contract.Call(opts, result, method, params...)
   178  }
   179  
   180  // Transfer initiates a plain transaction to move funds to the contract, calling
   181  // its default method if one is available.
   182  func (_HopL2CctpImplementation *HopL2CctpImplementationTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   183  	return _HopL2CctpImplementation.Contract.contract.Transfer(opts)
   184  }
   185  
   186  // Transact invokes the (paid) contract method with params as input values.
   187  func (_HopL2CctpImplementation *HopL2CctpImplementationTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   188  	return _HopL2CctpImplementation.Contract.contract.Transact(opts, method, params...)
   189  }
   190  
   191  // ActiveChainIds is a free data retrieval call binding the contract method 0xc97d172e.
   192  //
   193  // Solidity: function activeChainIds(uint256 ) view returns(bool)
   194  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) ActiveChainIds(opts *bind.CallOpts, arg0 *big.Int) (bool, error) {
   195  	var out []interface{}
   196  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "activeChainIds", arg0)
   197  
   198  	if err != nil {
   199  		return *new(bool), err
   200  	}
   201  
   202  	out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
   203  
   204  	return out0, err
   205  
   206  }
   207  
   208  // ActiveChainIds is a free data retrieval call binding the contract method 0xc97d172e.
   209  //
   210  // Solidity: function activeChainIds(uint256 ) view returns(bool)
   211  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) ActiveChainIds(arg0 *big.Int) (bool, error) {
   212  	return _HopL2CctpImplementation.Contract.ActiveChainIds(&_HopL2CctpImplementation.CallOpts, arg0)
   213  }
   214  
   215  // ActiveChainIds is a free data retrieval call binding the contract method 0xc97d172e.
   216  //
   217  // Solidity: function activeChainIds(uint256 ) view returns(bool)
   218  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) ActiveChainIds(arg0 *big.Int) (bool, error) {
   219  	return _HopL2CctpImplementation.Contract.ActiveChainIds(&_HopL2CctpImplementation.CallOpts, arg0)
   220  }
   221  
   222  // Amm is a free data retrieval call binding the contract method 0x2a943945.
   223  //
   224  // Solidity: function amm() view returns(address)
   225  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) Amm(opts *bind.CallOpts) (common.Address, error) {
   226  	var out []interface{}
   227  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "amm")
   228  
   229  	if err != nil {
   230  		return *new(common.Address), err
   231  	}
   232  
   233  	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
   234  
   235  	return out0, err
   236  
   237  }
   238  
   239  // Amm is a free data retrieval call binding the contract method 0x2a943945.
   240  //
   241  // Solidity: function amm() view returns(address)
   242  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) Amm() (common.Address, error) {
   243  	return _HopL2CctpImplementation.Contract.Amm(&_HopL2CctpImplementation.CallOpts)
   244  }
   245  
   246  // Amm is a free data retrieval call binding the contract method 0x2a943945.
   247  //
   248  // Solidity: function amm() view returns(address)
   249  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) Amm() (common.Address, error) {
   250  	return _HopL2CctpImplementation.Contract.Amm(&_HopL2CctpImplementation.CallOpts)
   251  }
   252  
   253  // BridgedToken is a free data retrieval call binding the contract method 0xee383937.
   254  //
   255  // Solidity: function bridgedToken() view returns(address)
   256  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) BridgedToken(opts *bind.CallOpts) (common.Address, error) {
   257  	var out []interface{}
   258  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "bridgedToken")
   259  
   260  	if err != nil {
   261  		return *new(common.Address), err
   262  	}
   263  
   264  	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
   265  
   266  	return out0, err
   267  
   268  }
   269  
   270  // BridgedToken is a free data retrieval call binding the contract method 0xee383937.
   271  //
   272  // Solidity: function bridgedToken() view returns(address)
   273  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) BridgedToken() (common.Address, error) {
   274  	return _HopL2CctpImplementation.Contract.BridgedToken(&_HopL2CctpImplementation.CallOpts)
   275  }
   276  
   277  // BridgedToken is a free data retrieval call binding the contract method 0xee383937.
   278  //
   279  // Solidity: function bridgedToken() view returns(address)
   280  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) BridgedToken() (common.Address, error) {
   281  	return _HopL2CctpImplementation.Contract.BridgedToken(&_HopL2CctpImplementation.CallOpts)
   282  }
   283  
   284  // Cctp is a free data retrieval call binding the contract method 0xe3329e32.
   285  //
   286  // Solidity: function cctp() view returns(address)
   287  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) Cctp(opts *bind.CallOpts) (common.Address, error) {
   288  	var out []interface{}
   289  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "cctp")
   290  
   291  	if err != nil {
   292  		return *new(common.Address), err
   293  	}
   294  
   295  	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
   296  
   297  	return out0, err
   298  
   299  }
   300  
   301  // Cctp is a free data retrieval call binding the contract method 0xe3329e32.
   302  //
   303  // Solidity: function cctp() view returns(address)
   304  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) Cctp() (common.Address, error) {
   305  	return _HopL2CctpImplementation.Contract.Cctp(&_HopL2CctpImplementation.CallOpts)
   306  }
   307  
   308  // Cctp is a free data retrieval call binding the contract method 0xe3329e32.
   309  //
   310  // Solidity: function cctp() view returns(address)
   311  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) Cctp() (common.Address, error) {
   312  	return _HopL2CctpImplementation.Contract.Cctp(&_HopL2CctpImplementation.CallOpts)
   313  }
   314  
   315  // DestinationDomains is a free data retrieval call binding the contract method 0x89aad5dc.
   316  //
   317  // Solidity: function destinationDomains(uint256 ) view returns(uint32)
   318  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) DestinationDomains(opts *bind.CallOpts, arg0 *big.Int) (uint32, error) {
   319  	var out []interface{}
   320  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "destinationDomains", arg0)
   321  
   322  	if err != nil {
   323  		return *new(uint32), err
   324  	}
   325  
   326  	out0 := *abi.ConvertType(out[0], new(uint32)).(*uint32)
   327  
   328  	return out0, err
   329  
   330  }
   331  
   332  // DestinationDomains is a free data retrieval call binding the contract method 0x89aad5dc.
   333  //
   334  // Solidity: function destinationDomains(uint256 ) view returns(uint32)
   335  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) DestinationDomains(arg0 *big.Int) (uint32, error) {
   336  	return _HopL2CctpImplementation.Contract.DestinationDomains(&_HopL2CctpImplementation.CallOpts, arg0)
   337  }
   338  
   339  // DestinationDomains is a free data retrieval call binding the contract method 0x89aad5dc.
   340  //
   341  // Solidity: function destinationDomains(uint256 ) view returns(uint32)
   342  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) DestinationDomains(arg0 *big.Int) (uint32, error) {
   343  	return _HopL2CctpImplementation.Contract.DestinationDomains(&_HopL2CctpImplementation.CallOpts, arg0)
   344  }
   345  
   346  // FeeCollectorAddress is a free data retrieval call binding the contract method 0xf108e225.
   347  //
   348  // Solidity: function feeCollectorAddress() view returns(address)
   349  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) FeeCollectorAddress(opts *bind.CallOpts) (common.Address, error) {
   350  	var out []interface{}
   351  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "feeCollectorAddress")
   352  
   353  	if err != nil {
   354  		return *new(common.Address), err
   355  	}
   356  
   357  	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
   358  
   359  	return out0, err
   360  
   361  }
   362  
   363  // FeeCollectorAddress is a free data retrieval call binding the contract method 0xf108e225.
   364  //
   365  // Solidity: function feeCollectorAddress() view returns(address)
   366  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) FeeCollectorAddress() (common.Address, error) {
   367  	return _HopL2CctpImplementation.Contract.FeeCollectorAddress(&_HopL2CctpImplementation.CallOpts)
   368  }
   369  
   370  // FeeCollectorAddress is a free data retrieval call binding the contract method 0xf108e225.
   371  //
   372  // Solidity: function feeCollectorAddress() view returns(address)
   373  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) FeeCollectorAddress() (common.Address, error) {
   374  	return _HopL2CctpImplementation.Contract.FeeCollectorAddress(&_HopL2CctpImplementation.CallOpts)
   375  }
   376  
   377  // MinBonderFee is a free data retrieval call binding the contract method 0x50fc2401.
   378  //
   379  // Solidity: function minBonderFee() view returns(uint256)
   380  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) MinBonderFee(opts *bind.CallOpts) (*big.Int, error) {
   381  	var out []interface{}
   382  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "minBonderFee")
   383  
   384  	if err != nil {
   385  		return *new(*big.Int), err
   386  	}
   387  
   388  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   389  
   390  	return out0, err
   391  
   392  }
   393  
   394  // MinBonderFee is a free data retrieval call binding the contract method 0x50fc2401.
   395  //
   396  // Solidity: function minBonderFee() view returns(uint256)
   397  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) MinBonderFee() (*big.Int, error) {
   398  	return _HopL2CctpImplementation.Contract.MinBonderFee(&_HopL2CctpImplementation.CallOpts)
   399  }
   400  
   401  // MinBonderFee is a free data retrieval call binding the contract method 0x50fc2401.
   402  //
   403  // Solidity: function minBonderFee() view returns(uint256)
   404  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) MinBonderFee() (*big.Int, error) {
   405  	return _HopL2CctpImplementation.Contract.MinBonderFee(&_HopL2CctpImplementation.CallOpts)
   406  }
   407  
   408  // NativeToken is a free data retrieval call binding the contract method 0xe1758bd8.
   409  //
   410  // Solidity: function nativeToken() view returns(address)
   411  func (_HopL2CctpImplementation *HopL2CctpImplementationCaller) NativeToken(opts *bind.CallOpts) (common.Address, error) {
   412  	var out []interface{}
   413  	err := _HopL2CctpImplementation.contract.Call(opts, &out, "nativeToken")
   414  
   415  	if err != nil {
   416  		return *new(common.Address), err
   417  	}
   418  
   419  	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
   420  
   421  	return out0, err
   422  
   423  }
   424  
   425  // NativeToken is a free data retrieval call binding the contract method 0xe1758bd8.
   426  //
   427  // Solidity: function nativeToken() view returns(address)
   428  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) NativeToken() (common.Address, error) {
   429  	return _HopL2CctpImplementation.Contract.NativeToken(&_HopL2CctpImplementation.CallOpts)
   430  }
   431  
   432  // NativeToken is a free data retrieval call binding the contract method 0xe1758bd8.
   433  //
   434  // Solidity: function nativeToken() view returns(address)
   435  func (_HopL2CctpImplementation *HopL2CctpImplementationCallerSession) NativeToken() (common.Address, error) {
   436  	return _HopL2CctpImplementation.Contract.NativeToken(&_HopL2CctpImplementation.CallOpts)
   437  }
   438  
   439  // Send is a paid mutator transaction binding the contract method 0xa134ce5b.
   440  //
   441  // Solidity: function send(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee) returns()
   442  func (_HopL2CctpImplementation *HopL2CctpImplementationTransactor) Send(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int) (*types.Transaction, error) {
   443  	return _HopL2CctpImplementation.contract.Transact(opts, "send", chainId, recipient, amount, bonderFee)
   444  }
   445  
   446  // Send is a paid mutator transaction binding the contract method 0xa134ce5b.
   447  //
   448  // Solidity: function send(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee) returns()
   449  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) Send(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int) (*types.Transaction, error) {
   450  	return _HopL2CctpImplementation.Contract.Send(&_HopL2CctpImplementation.TransactOpts, chainId, recipient, amount, bonderFee)
   451  }
   452  
   453  // Send is a paid mutator transaction binding the contract method 0xa134ce5b.
   454  //
   455  // Solidity: function send(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee) returns()
   456  func (_HopL2CctpImplementation *HopL2CctpImplementationTransactorSession) Send(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int) (*types.Transaction, error) {
   457  	return _HopL2CctpImplementation.Contract.Send(&_HopL2CctpImplementation.TransactOpts, chainId, recipient, amount, bonderFee)
   458  }
   459  
   460  // SwapAndSend is a paid mutator transaction binding the contract method 0x070d46e4.
   461  //
   462  // Solidity: function swapAndSend(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, (bytes,address,uint256,uint256) swapParams) returns()
   463  func (_HopL2CctpImplementation *HopL2CctpImplementationTransactor) SwapAndSend(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, swapParams IAMMExactInputParams) (*types.Transaction, error) {
   464  	return _HopL2CctpImplementation.contract.Transact(opts, "swapAndSend", chainId, recipient, amount, bonderFee, swapParams)
   465  }
   466  
   467  // SwapAndSend is a paid mutator transaction binding the contract method 0x070d46e4.
   468  //
   469  // Solidity: function swapAndSend(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, (bytes,address,uint256,uint256) swapParams) returns()
   470  func (_HopL2CctpImplementation *HopL2CctpImplementationSession) SwapAndSend(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, swapParams IAMMExactInputParams) (*types.Transaction, error) {
   471  	return _HopL2CctpImplementation.Contract.SwapAndSend(&_HopL2CctpImplementation.TransactOpts, chainId, recipient, amount, bonderFee, swapParams)
   472  }
   473  
   474  // SwapAndSend is a paid mutator transaction binding the contract method 0x070d46e4.
   475  //
   476  // Solidity: function swapAndSend(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, (bytes,address,uint256,uint256) swapParams) returns()
   477  func (_HopL2CctpImplementation *HopL2CctpImplementationTransactorSession) SwapAndSend(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, swapParams IAMMExactInputParams) (*types.Transaction, error) {
   478  	return _HopL2CctpImplementation.Contract.SwapAndSend(&_HopL2CctpImplementation.TransactOpts, chainId, recipient, amount, bonderFee, swapParams)
   479  }
   480  
   481  // HopL2CctpImplementationCCTPTransferSentIterator is returned from FilterCCTPTransferSent and is used to iterate over the raw logs and unpacked data for CCTPTransferSent events raised by the HopL2CctpImplementation contract.
   482  type HopL2CctpImplementationCCTPTransferSentIterator struct {
   483  	Event *HopL2CctpImplementationCCTPTransferSent // Event containing the contract specifics and raw log
   484  
   485  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   486  	event    string              // Event name to use for unpacking event data
   487  
   488  	logs chan types.Log        // Log channel receiving the found contract events
   489  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   490  	done bool                  // Whether the subscription completed delivering logs
   491  	fail error                 // Occurred error to stop iteration
   492  }
   493  
   494  // Next advances the iterator to the subsequent event, returning whether there
   495  // are any more events found. In case of a retrieval or parsing error, false is
   496  // returned and Error() can be queried for the exact failure.
   497  func (it *HopL2CctpImplementationCCTPTransferSentIterator) Next() bool {
   498  	// If the iterator failed, stop iterating
   499  	if it.fail != nil {
   500  		return false
   501  	}
   502  	// If the iterator completed, deliver directly whatever's available
   503  	if it.done {
   504  		select {
   505  		case log := <-it.logs:
   506  			it.Event = new(HopL2CctpImplementationCCTPTransferSent)
   507  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   508  				it.fail = err
   509  				return false
   510  			}
   511  			it.Event.Raw = log
   512  			return true
   513  
   514  		default:
   515  			return false
   516  		}
   517  	}
   518  	// Iterator still in progress, wait for either a data or an error event
   519  	select {
   520  	case log := <-it.logs:
   521  		it.Event = new(HopL2CctpImplementationCCTPTransferSent)
   522  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   523  			it.fail = err
   524  			return false
   525  		}
   526  		it.Event.Raw = log
   527  		return true
   528  
   529  	case err := <-it.sub.Err():
   530  		it.done = true
   531  		it.fail = err
   532  		return it.Next()
   533  	}
   534  }
   535  
   536  // Error returns any retrieval or parsing error occurred during filtering.
   537  func (it *HopL2CctpImplementationCCTPTransferSentIterator) Error() error {
   538  	return it.fail
   539  }
   540  
   541  // Close terminates the iteration process, releasing any pending underlying
   542  // resources.
   543  func (it *HopL2CctpImplementationCCTPTransferSentIterator) Close() error {
   544  	it.sub.Unsubscribe()
   545  	return nil
   546  }
   547  
   548  // HopL2CctpImplementationCCTPTransferSent represents a CCTPTransferSent event raised by the HopL2CctpImplementation contract.
   549  type HopL2CctpImplementationCCTPTransferSent struct {
   550  	CctpNonce uint64
   551  	ChainId   *big.Int
   552  	Recipient common.Address
   553  	Amount    *big.Int
   554  	BonderFee *big.Int
   555  	Raw       types.Log // Blockchain specific contextual infos
   556  }
   557  
   558  // FilterCCTPTransferSent is a free log retrieval operation binding the contract event 0x10bf4019e09db5876a05d237bfcc676cd84eee2c23f820284906dd7cfa70d2c4.
   559  //
   560  // Solidity: event CCTPTransferSent(uint64 indexed cctpNonce, uint256 indexed chainId, address indexed recipient, uint256 amount, uint256 bonderFee)
   561  func (_HopL2CctpImplementation *HopL2CctpImplementationFilterer) FilterCCTPTransferSent(opts *bind.FilterOpts, cctpNonce []uint64, chainId []*big.Int, recipient []common.Address) (*HopL2CctpImplementationCCTPTransferSentIterator, error) {
   562  
   563  	var cctpNonceRule []interface{}
   564  	for _, cctpNonceItem := range cctpNonce {
   565  		cctpNonceRule = append(cctpNonceRule, cctpNonceItem)
   566  	}
   567  	var chainIdRule []interface{}
   568  	for _, chainIdItem := range chainId {
   569  		chainIdRule = append(chainIdRule, chainIdItem)
   570  	}
   571  	var recipientRule []interface{}
   572  	for _, recipientItem := range recipient {
   573  		recipientRule = append(recipientRule, recipientItem)
   574  	}
   575  
   576  	logs, sub, err := _HopL2CctpImplementation.contract.FilterLogs(opts, "CCTPTransferSent", cctpNonceRule, chainIdRule, recipientRule)
   577  	if err != nil {
   578  		return nil, err
   579  	}
   580  	return &HopL2CctpImplementationCCTPTransferSentIterator{contract: _HopL2CctpImplementation.contract, event: "CCTPTransferSent", logs: logs, sub: sub}, nil
   581  }
   582  
   583  // WatchCCTPTransferSent is a free log subscription operation binding the contract event 0x10bf4019e09db5876a05d237bfcc676cd84eee2c23f820284906dd7cfa70d2c4.
   584  //
   585  // Solidity: event CCTPTransferSent(uint64 indexed cctpNonce, uint256 indexed chainId, address indexed recipient, uint256 amount, uint256 bonderFee)
   586  func (_HopL2CctpImplementation *HopL2CctpImplementationFilterer) WatchCCTPTransferSent(opts *bind.WatchOpts, sink chan<- *HopL2CctpImplementationCCTPTransferSent, cctpNonce []uint64, chainId []*big.Int, recipient []common.Address) (event.Subscription, error) {
   587  
   588  	var cctpNonceRule []interface{}
   589  	for _, cctpNonceItem := range cctpNonce {
   590  		cctpNonceRule = append(cctpNonceRule, cctpNonceItem)
   591  	}
   592  	var chainIdRule []interface{}
   593  	for _, chainIdItem := range chainId {
   594  		chainIdRule = append(chainIdRule, chainIdItem)
   595  	}
   596  	var recipientRule []interface{}
   597  	for _, recipientItem := range recipient {
   598  		recipientRule = append(recipientRule, recipientItem)
   599  	}
   600  
   601  	logs, sub, err := _HopL2CctpImplementation.contract.WatchLogs(opts, "CCTPTransferSent", cctpNonceRule, chainIdRule, recipientRule)
   602  	if err != nil {
   603  		return nil, err
   604  	}
   605  	return event.NewSubscription(func(quit <-chan struct{}) error {
   606  		defer sub.Unsubscribe()
   607  		for {
   608  			select {
   609  			case log := <-logs:
   610  				// New log arrived, parse the event and forward to the user
   611  				event := new(HopL2CctpImplementationCCTPTransferSent)
   612  				if err := _HopL2CctpImplementation.contract.UnpackLog(event, "CCTPTransferSent", log); err != nil {
   613  					return err
   614  				}
   615  				event.Raw = log
   616  
   617  				select {
   618  				case sink <- event:
   619  				case err := <-sub.Err():
   620  					return err
   621  				case <-quit:
   622  					return nil
   623  				}
   624  			case err := <-sub.Err():
   625  				return err
   626  			case <-quit:
   627  				return nil
   628  			}
   629  		}
   630  	}), nil
   631  }
   632  
   633  // ParseCCTPTransferSent is a log parse operation binding the contract event 0x10bf4019e09db5876a05d237bfcc676cd84eee2c23f820284906dd7cfa70d2c4.
   634  //
   635  // Solidity: event CCTPTransferSent(uint64 indexed cctpNonce, uint256 indexed chainId, address indexed recipient, uint256 amount, uint256 bonderFee)
   636  func (_HopL2CctpImplementation *HopL2CctpImplementationFilterer) ParseCCTPTransferSent(log types.Log) (*HopL2CctpImplementationCCTPTransferSent, error) {
   637  	event := new(HopL2CctpImplementationCCTPTransferSent)
   638  	if err := _HopL2CctpImplementation.contract.UnpackLog(event, "CCTPTransferSent", log); err != nil {
   639  		return nil, err
   640  	}
   641  	event.Raw = log
   642  	return event, nil
   643  }