hopL2AmmWrapper

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HopL2AmmWrapperABI = HopL2AmmWrapperMetaData.ABI

HopL2AmmWrapperABI is the input ABI used to generate the binding from. Deprecated: Use HopL2AmmWrapperMetaData.ABI instead.

View Source
var HopL2AmmWrapperMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"contractL2_Bridge\",\"name\":\"_bridge\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"_l2CanonicalToken\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_l2CanonicalTokenIsEth\",\"type\":\"bool\"},{\"internalType\":\"contractIERC20\",\"name\":\"_hToken\",\"type\":\"address\"},{\"internalType\":\"contractSwap\",\"name\":\"_exchangeAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"attemptSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridge\",\"outputs\":[{\"internalType\":\"contractL2_Bridge\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"exchangeAddress\",\"outputs\":[{\"internalType\":\"contractSwap\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2CanonicalToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2CanonicalTokenIsEth\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destinationAmountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destinationDeadline\",\"type\":\"uint256\"}],\"name\":\"swapAndSend\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

HopL2AmmWrapperMetaData contains all meta data concerning the HopL2AmmWrapper contract.

Functions

This section is empty.

Types

type HopL2AmmWrapper

type HopL2AmmWrapper struct {
	HopL2AmmWrapperCaller     // Read-only binding to the contract
	HopL2AmmWrapperTransactor // Write-only binding to the contract
	HopL2AmmWrapperFilterer   // Log filterer for contract events
}

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

func NewHopL2AmmWrapper

func NewHopL2AmmWrapper(address common.Address, backend bind.ContractBackend) (*HopL2AmmWrapper, error)

NewHopL2AmmWrapper creates a new instance of HopL2AmmWrapper, bound to a specific deployed contract.

type HopL2AmmWrapperCaller

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

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

func NewHopL2AmmWrapperCaller

func NewHopL2AmmWrapperCaller(address common.Address, caller bind.ContractCaller) (*HopL2AmmWrapperCaller, error)

NewHopL2AmmWrapperCaller creates a new read-only instance of HopL2AmmWrapper, bound to a specific deployed contract.

func (*HopL2AmmWrapperCaller) Bridge

func (_HopL2AmmWrapper *HopL2AmmWrapperCaller) Bridge(opts *bind.CallOpts) (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*HopL2AmmWrapperCaller) ExchangeAddress

func (_HopL2AmmWrapper *HopL2AmmWrapperCaller) ExchangeAddress(opts *bind.CallOpts) (common.Address, error)

ExchangeAddress is a free data retrieval call binding the contract method 0x9cd01605.

Solidity: function exchangeAddress() view returns(address)

func (*HopL2AmmWrapperCaller) HToken

func (_HopL2AmmWrapper *HopL2AmmWrapperCaller) HToken(opts *bind.CallOpts) (common.Address, error)

HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.

Solidity: function hToken() view returns(address)

func (*HopL2AmmWrapperCaller) L2CanonicalToken

func (_HopL2AmmWrapper *HopL2AmmWrapperCaller) L2CanonicalToken(opts *bind.CallOpts) (common.Address, error)

L2CanonicalToken is a free data retrieval call binding the contract method 0x1ee1bf67.

Solidity: function l2CanonicalToken() view returns(address)

func (*HopL2AmmWrapperCaller) L2CanonicalTokenIsEth

func (_HopL2AmmWrapper *HopL2AmmWrapperCaller) L2CanonicalTokenIsEth(opts *bind.CallOpts) (bool, error)

L2CanonicalTokenIsEth is a free data retrieval call binding the contract method 0x28555125.

Solidity: function l2CanonicalTokenIsEth() view returns(bool)

type HopL2AmmWrapperCallerRaw

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

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

func (*HopL2AmmWrapperCallerRaw) Call

func (_HopL2AmmWrapper *HopL2AmmWrapperCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type HopL2AmmWrapperCallerSession

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

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

func (*HopL2AmmWrapperCallerSession) Bridge

func (_HopL2AmmWrapper *HopL2AmmWrapperCallerSession) Bridge() (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*HopL2AmmWrapperCallerSession) ExchangeAddress

func (_HopL2AmmWrapper *HopL2AmmWrapperCallerSession) ExchangeAddress() (common.Address, error)

ExchangeAddress is a free data retrieval call binding the contract method 0x9cd01605.

Solidity: function exchangeAddress() view returns(address)

func (*HopL2AmmWrapperCallerSession) HToken

func (_HopL2AmmWrapper *HopL2AmmWrapperCallerSession) HToken() (common.Address, error)

HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.

Solidity: function hToken() view returns(address)

func (*HopL2AmmWrapperCallerSession) L2CanonicalToken

func (_HopL2AmmWrapper *HopL2AmmWrapperCallerSession) L2CanonicalToken() (common.Address, error)

L2CanonicalToken is a free data retrieval call binding the contract method 0x1ee1bf67.

Solidity: function l2CanonicalToken() view returns(address)

func (*HopL2AmmWrapperCallerSession) L2CanonicalTokenIsEth

func (_HopL2AmmWrapper *HopL2AmmWrapperCallerSession) L2CanonicalTokenIsEth() (bool, error)

L2CanonicalTokenIsEth is a free data retrieval call binding the contract method 0x28555125.

Solidity: function l2CanonicalTokenIsEth() view returns(bool)

type HopL2AmmWrapperFilterer

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

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

func NewHopL2AmmWrapperFilterer

func NewHopL2AmmWrapperFilterer(address common.Address, filterer bind.ContractFilterer) (*HopL2AmmWrapperFilterer, error)

NewHopL2AmmWrapperFilterer creates a new log filterer instance of HopL2AmmWrapper, bound to a specific deployed contract.

type HopL2AmmWrapperRaw

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

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

func (*HopL2AmmWrapperRaw) Call

func (_HopL2AmmWrapper *HopL2AmmWrapperRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*HopL2AmmWrapperRaw) Transact

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

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

func (*HopL2AmmWrapperRaw) Transfer

func (_HopL2AmmWrapper *HopL2AmmWrapperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type HopL2AmmWrapperSession

type HopL2AmmWrapperSession struct {
	Contract     *HopL2AmmWrapper  // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

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

func (*HopL2AmmWrapperSession) AttemptSwap

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) AttemptSwap(recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)

AttemptSwap is a paid mutator transaction binding the contract method 0x676c5ef6.

Solidity: function attemptSwap(address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline) returns()

func (*HopL2AmmWrapperSession) Bridge

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) Bridge() (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*HopL2AmmWrapperSession) ExchangeAddress

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) ExchangeAddress() (common.Address, error)

ExchangeAddress is a free data retrieval call binding the contract method 0x9cd01605.

Solidity: function exchangeAddress() view returns(address)

func (*HopL2AmmWrapperSession) HToken

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) HToken() (common.Address, error)

HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.

Solidity: function hToken() view returns(address)

func (*HopL2AmmWrapperSession) L2CanonicalToken

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) L2CanonicalToken() (common.Address, error)

L2CanonicalToken is a free data retrieval call binding the contract method 0x1ee1bf67.

Solidity: function l2CanonicalToken() view returns(address)

func (*HopL2AmmWrapperSession) L2CanonicalTokenIsEth

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) L2CanonicalTokenIsEth() (bool, error)

L2CanonicalTokenIsEth is a free data retrieval call binding the contract method 0x28555125.

Solidity: function l2CanonicalTokenIsEth() view returns(bool)

func (*HopL2AmmWrapperSession) Receive

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*HopL2AmmWrapperSession) SwapAndSend

func (_HopL2AmmWrapper *HopL2AmmWrapperSession) SwapAndSend(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, destinationAmountOutMin *big.Int, destinationDeadline *big.Int) (*types.Transaction, error)

SwapAndSend is a paid mutator transaction binding the contract method 0xeea0d7b2.

Solidity: function swapAndSend(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, uint256 amountOutMin, uint256 deadline, uint256 destinationAmountOutMin, uint256 destinationDeadline) payable returns()

type HopL2AmmWrapperTransactor

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

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

func NewHopL2AmmWrapperTransactor

func NewHopL2AmmWrapperTransactor(address common.Address, transactor bind.ContractTransactor) (*HopL2AmmWrapperTransactor, error)

NewHopL2AmmWrapperTransactor creates a new write-only instance of HopL2AmmWrapper, bound to a specific deployed contract.

func (*HopL2AmmWrapperTransactor) AttemptSwap

func (_HopL2AmmWrapper *HopL2AmmWrapperTransactor) AttemptSwap(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)

AttemptSwap is a paid mutator transaction binding the contract method 0x676c5ef6.

Solidity: function attemptSwap(address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline) returns()

func (*HopL2AmmWrapperTransactor) Receive

func (_HopL2AmmWrapper *HopL2AmmWrapperTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*HopL2AmmWrapperTransactor) SwapAndSend

func (_HopL2AmmWrapper *HopL2AmmWrapperTransactor) SwapAndSend(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, destinationAmountOutMin *big.Int, destinationDeadline *big.Int) (*types.Transaction, error)

SwapAndSend is a paid mutator transaction binding the contract method 0xeea0d7b2.

Solidity: function swapAndSend(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, uint256 amountOutMin, uint256 deadline, uint256 destinationAmountOutMin, uint256 destinationDeadline) payable returns()

type HopL2AmmWrapperTransactorRaw

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

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

func (*HopL2AmmWrapperTransactorRaw) Transact

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

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

func (*HopL2AmmWrapperTransactorRaw) Transfer

func (_HopL2AmmWrapper *HopL2AmmWrapperTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type HopL2AmmWrapperTransactorSession

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

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

func (*HopL2AmmWrapperTransactorSession) AttemptSwap

func (_HopL2AmmWrapper *HopL2AmmWrapperTransactorSession) AttemptSwap(recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)

AttemptSwap is a paid mutator transaction binding the contract method 0x676c5ef6.

Solidity: function attemptSwap(address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline) returns()

func (*HopL2AmmWrapperTransactorSession) Receive

func (_HopL2AmmWrapper *HopL2AmmWrapperTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*HopL2AmmWrapperTransactorSession) SwapAndSend

func (_HopL2AmmWrapper *HopL2AmmWrapperTransactorSession) SwapAndSend(chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, destinationAmountOutMin *big.Int, destinationDeadline *big.Int) (*types.Transaction, error)

SwapAndSend is a paid mutator transaction binding the contract method 0xeea0d7b2.

Solidity: function swapAndSend(uint256 chainId, address recipient, uint256 amount, uint256 bonderFee, uint256 amountOutMin, uint256 deadline, uint256 destinationAmountOutMin, uint256 destinationDeadline) payable returns()

Jump to

Keyboard shortcuts

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