Documentation ¶
Index ¶
- Constants
- type HopWrapper
- type HopWrapperCaller
- func (_HopWrapper *HopWrapperCaller) Bridge(opts *bind.CallOpts) (common.Address, error)
- func (_HopWrapper *HopWrapperCaller) ExchangeAddress(opts *bind.CallOpts) (common.Address, error)
- func (_HopWrapper *HopWrapperCaller) HToken(opts *bind.CallOpts) (common.Address, error)
- func (_HopWrapper *HopWrapperCaller) L2CanonicalToken(opts *bind.CallOpts) (common.Address, error)
- func (_HopWrapper *HopWrapperCaller) L2CanonicalTokenIsEth(opts *bind.CallOpts) (bool, error)
- type HopWrapperCallerRaw
- type HopWrapperCallerSession
- func (_HopWrapper *HopWrapperCallerSession) Bridge() (common.Address, error)
- func (_HopWrapper *HopWrapperCallerSession) ExchangeAddress() (common.Address, error)
- func (_HopWrapper *HopWrapperCallerSession) HToken() (common.Address, error)
- func (_HopWrapper *HopWrapperCallerSession) L2CanonicalToken() (common.Address, error)
- func (_HopWrapper *HopWrapperCallerSession) L2CanonicalTokenIsEth() (bool, error)
- type HopWrapperFilterer
- type HopWrapperRaw
- func (_HopWrapper *HopWrapperRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_HopWrapper *HopWrapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_HopWrapper *HopWrapperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type HopWrapperSession
- func (_HopWrapper *HopWrapperSession) AttemptSwap(recipient common.Address, amount *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_HopWrapper *HopWrapperSession) Bridge() (common.Address, error)
- func (_HopWrapper *HopWrapperSession) ExchangeAddress() (common.Address, error)
- func (_HopWrapper *HopWrapperSession) HToken() (common.Address, error)
- func (_HopWrapper *HopWrapperSession) L2CanonicalToken() (common.Address, error)
- func (_HopWrapper *HopWrapperSession) L2CanonicalTokenIsEth() (bool, error)
- func (_HopWrapper *HopWrapperSession) Receive() (*types.Transaction, error)
- func (_HopWrapper *HopWrapperSession) SwapAndSend(chainId *big.Int, recipient common.Address, amount *big.Int, ...) (*types.Transaction, error)
- type HopWrapperTransactor
- func (_HopWrapper *HopWrapperTransactor) AttemptSwap(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_HopWrapper *HopWrapperTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_HopWrapper *HopWrapperTransactor) SwapAndSend(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, ...) (*types.Transaction, error)
- type HopWrapperTransactorRaw
- type HopWrapperTransactorSession
- func (_HopWrapper *HopWrapperTransactorSession) AttemptSwap(recipient common.Address, amount *big.Int, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_HopWrapper *HopWrapperTransactorSession) Receive() (*types.Transaction, error)
- func (_HopWrapper *HopWrapperTransactorSession) SwapAndSend(chainId *big.Int, recipient common.Address, amount *big.Int, ...) (*types.Transaction, error)
Constants ¶
const HopWrapperABI = "" /* 2586-byte string literal not displayed */
HopWrapperABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HopWrapper ¶
type HopWrapper struct { HopWrapperCaller // Read-only binding to the contract HopWrapperTransactor // Write-only binding to the contract HopWrapperFilterer // Log filterer for contract events }
HopWrapper is an auto generated Go binding around an Ethereum contract.
func NewHopWrapper ¶
func NewHopWrapper(address common.Address, backend bind.ContractBackend) (*HopWrapper, error)
NewHopWrapper creates a new instance of HopWrapper, bound to a specific deployed contract.
type HopWrapperCaller ¶
type HopWrapperCaller struct {
// contains filtered or unexported fields
}
HopWrapperCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewHopWrapperCaller ¶
func NewHopWrapperCaller(address common.Address, caller bind.ContractCaller) (*HopWrapperCaller, error)
NewHopWrapperCaller creates a new read-only instance of HopWrapper, bound to a specific deployed contract.
func (*HopWrapperCaller) Bridge ¶
Bridge is a free data retrieval call binding the contract method 0xe78cea92.
Solidity: function bridge() view returns(address)
func (*HopWrapperCaller) ExchangeAddress ¶
ExchangeAddress is a free data retrieval call binding the contract method 0x9cd01605.
Solidity: function exchangeAddress() view returns(address)
func (*HopWrapperCaller) HToken ¶
HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.
Solidity: function hToken() view returns(address)
func (*HopWrapperCaller) L2CanonicalToken ¶
L2CanonicalToken is a free data retrieval call binding the contract method 0x1ee1bf67.
Solidity: function l2CanonicalToken() view returns(address)
func (*HopWrapperCaller) L2CanonicalTokenIsEth ¶
func (_HopWrapper *HopWrapperCaller) 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 HopWrapperCallerRaw ¶
type HopWrapperCallerRaw struct {
Contract *HopWrapperCaller // Generic read-only contract binding to access the raw methods on
}
HopWrapperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*HopWrapperCallerRaw) Call ¶
func (_HopWrapper *HopWrapperCallerRaw) 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 HopWrapperCallerSession ¶
type HopWrapperCallerSession struct { Contract *HopWrapperCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
HopWrapperCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*HopWrapperCallerSession) Bridge ¶
func (_HopWrapper *HopWrapperCallerSession) Bridge() (common.Address, error)
Bridge is a free data retrieval call binding the contract method 0xe78cea92.
Solidity: function bridge() view returns(address)
func (*HopWrapperCallerSession) ExchangeAddress ¶
func (_HopWrapper *HopWrapperCallerSession) ExchangeAddress() (common.Address, error)
ExchangeAddress is a free data retrieval call binding the contract method 0x9cd01605.
Solidity: function exchangeAddress() view returns(address)
func (*HopWrapperCallerSession) HToken ¶
func (_HopWrapper *HopWrapperCallerSession) HToken() (common.Address, error)
HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.
Solidity: function hToken() view returns(address)
func (*HopWrapperCallerSession) L2CanonicalToken ¶
func (_HopWrapper *HopWrapperCallerSession) L2CanonicalToken() (common.Address, error)
L2CanonicalToken is a free data retrieval call binding the contract method 0x1ee1bf67.
Solidity: function l2CanonicalToken() view returns(address)
func (*HopWrapperCallerSession) L2CanonicalTokenIsEth ¶
func (_HopWrapper *HopWrapperCallerSession) L2CanonicalTokenIsEth() (bool, error)
L2CanonicalTokenIsEth is a free data retrieval call binding the contract method 0x28555125.
Solidity: function l2CanonicalTokenIsEth() view returns(bool)
type HopWrapperFilterer ¶
type HopWrapperFilterer struct {
// contains filtered or unexported fields
}
HopWrapperFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewHopWrapperFilterer ¶
func NewHopWrapperFilterer(address common.Address, filterer bind.ContractFilterer) (*HopWrapperFilterer, error)
NewHopWrapperFilterer creates a new log filterer instance of HopWrapper, bound to a specific deployed contract.
type HopWrapperRaw ¶
type HopWrapperRaw struct {
Contract *HopWrapper // Generic contract binding to access the raw methods on
}
HopWrapperRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*HopWrapperRaw) Call ¶
func (_HopWrapper *HopWrapperRaw) 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 (*HopWrapperRaw) Transact ¶
func (_HopWrapper *HopWrapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HopWrapperRaw) Transfer ¶
func (_HopWrapper *HopWrapperRaw) 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 HopWrapperSession ¶
type HopWrapperSession struct { Contract *HopWrapper // 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 }
HopWrapperSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*HopWrapperSession) AttemptSwap ¶
func (_HopWrapper *HopWrapperSession) 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 (*HopWrapperSession) Bridge ¶
func (_HopWrapper *HopWrapperSession) Bridge() (common.Address, error)
Bridge is a free data retrieval call binding the contract method 0xe78cea92.
Solidity: function bridge() view returns(address)
func (*HopWrapperSession) ExchangeAddress ¶
func (_HopWrapper *HopWrapperSession) ExchangeAddress() (common.Address, error)
ExchangeAddress is a free data retrieval call binding the contract method 0x9cd01605.
Solidity: function exchangeAddress() view returns(address)
func (*HopWrapperSession) HToken ¶
func (_HopWrapper *HopWrapperSession) HToken() (common.Address, error)
HToken is a free data retrieval call binding the contract method 0xfc6e3b3b.
Solidity: function hToken() view returns(address)
func (*HopWrapperSession) L2CanonicalToken ¶
func (_HopWrapper *HopWrapperSession) L2CanonicalToken() (common.Address, error)
L2CanonicalToken is a free data retrieval call binding the contract method 0x1ee1bf67.
Solidity: function l2CanonicalToken() view returns(address)
func (*HopWrapperSession) L2CanonicalTokenIsEth ¶
func (_HopWrapper *HopWrapperSession) L2CanonicalTokenIsEth() (bool, error)
L2CanonicalTokenIsEth is a free data retrieval call binding the contract method 0x28555125.
Solidity: function l2CanonicalTokenIsEth() view returns(bool)
func (*HopWrapperSession) Receive ¶
func (_HopWrapper *HopWrapperSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*HopWrapperSession) SwapAndSend ¶
func (_HopWrapper *HopWrapperSession) 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 HopWrapperTransactor ¶
type HopWrapperTransactor struct {
// contains filtered or unexported fields
}
HopWrapperTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewHopWrapperTransactor ¶
func NewHopWrapperTransactor(address common.Address, transactor bind.ContractTransactor) (*HopWrapperTransactor, error)
NewHopWrapperTransactor creates a new write-only instance of HopWrapper, bound to a specific deployed contract.
func (*HopWrapperTransactor) AttemptSwap ¶
func (_HopWrapper *HopWrapperTransactor) 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 (*HopWrapperTransactor) Receive ¶
func (_HopWrapper *HopWrapperTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*HopWrapperTransactor) SwapAndSend ¶
func (_HopWrapper *HopWrapperTransactor) 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 HopWrapperTransactorRaw ¶
type HopWrapperTransactorRaw struct {
Contract *HopWrapperTransactor // Generic write-only contract binding to access the raw methods on
}
HopWrapperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*HopWrapperTransactorRaw) Transact ¶
func (_HopWrapper *HopWrapperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HopWrapperTransactorRaw) Transfer ¶
func (_HopWrapper *HopWrapperTransactorRaw) 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 HopWrapperTransactorSession ¶
type HopWrapperTransactorSession struct { Contract *HopWrapperTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
HopWrapperTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*HopWrapperTransactorSession) AttemptSwap ¶
func (_HopWrapper *HopWrapperTransactorSession) 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 (*HopWrapperTransactorSession) Receive ¶
func (_HopWrapper *HopWrapperTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*HopWrapperTransactorSession) SwapAndSend ¶
func (_HopWrapper *HopWrapperTransactorSession) 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()