Documentation ¶
Index ¶
- Variables
- type IPoolRouter
- type IPoolRouterCaller
- type IPoolRouterCallerRaw
- type IPoolRouterCallerSession
- type IPoolRouterExactInputParams
- type IPoolRouterExactInputSingleParams
- type IPoolRouterExactOutputParams
- type IPoolRouterExactOutputSingleParams
- type IPoolRouterFilterer
- type IPoolRouterRaw
- func (_IPoolRouter *IPoolRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IPoolRouter *IPoolRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IPoolRouterSession
- func (_IPoolRouter *IPoolRouterSession) ExactInput(params IPoolRouterExactInputParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterSession) ExactInputSingle(params IPoolRouterExactInputSingleParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterSession) ExactOutput(params IPoolRouterExactOutputParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterSession) ExactOutputSingle(params IPoolRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterSession) Sweep(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error)
- type IPoolRouterTransactor
- func (_IPoolRouter *IPoolRouterTransactor) ExactInput(opts *bind.TransactOpts, params IPoolRouterExactInputParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params IPoolRouterExactInputSingleParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactor) ExactOutput(opts *bind.TransactOpts, params IPoolRouterExactOutputParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactor) ExactOutputSingle(opts *bind.TransactOpts, params IPoolRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactor) Sweep(opts *bind.TransactOpts, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- type IPoolRouterTransactorRaw
- type IPoolRouterTransactorSession
- func (_IPoolRouter *IPoolRouterTransactorSession) ExactInput(params IPoolRouterExactInputParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactorSession) ExactInputSingle(params IPoolRouterExactInputSingleParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactorSession) ExactOutput(params IPoolRouterExactOutputParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactorSession) ExactOutputSingle(params IPoolRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_IPoolRouter *IPoolRouterTransactorSession) Sweep(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var IPoolRouterABI = IPoolRouterMetaData.ABI
IPoolRouterABI is the input ABI used to generate the binding from. Deprecated: Use IPoolRouterMetaData.ABI instead.
var IPoolRouterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactInputParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactOutputParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactOutputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactOutputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"sweep\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}
IPoolRouterMetaData contains all meta data concerning the IPoolRouter contract.
Functions ¶
This section is empty.
Types ¶
type IPoolRouter ¶
type IPoolRouter struct { IPoolRouterCaller // Read-only binding to the contract IPoolRouterTransactor // Write-only binding to the contract IPoolRouterFilterer // Log filterer for contract events }
IPoolRouter is an auto generated Go binding around an Ethereum contract.
func NewIPoolRouter ¶
func NewIPoolRouter(address common.Address, backend bind.ContractBackend) (*IPoolRouter, error)
NewIPoolRouter creates a new instance of IPoolRouter, bound to a specific deployed contract.
type IPoolRouterCaller ¶
type IPoolRouterCaller struct {
// contains filtered or unexported fields
}
IPoolRouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIPoolRouterCaller ¶
func NewIPoolRouterCaller(address common.Address, caller bind.ContractCaller) (*IPoolRouterCaller, error)
NewIPoolRouterCaller creates a new read-only instance of IPoolRouter, bound to a specific deployed contract.
type IPoolRouterCallerRaw ¶
type IPoolRouterCallerRaw struct {
Contract *IPoolRouterCaller // Generic read-only contract binding to access the raw methods on
}
IPoolRouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IPoolRouterCallerRaw) Call ¶
func (_IPoolRouter *IPoolRouterCallerRaw) 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 IPoolRouterCallerSession ¶
type IPoolRouterCallerSession struct { Contract *IPoolRouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IPoolRouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type IPoolRouterExactInputParams ¶
type IPoolRouterExactInputParams struct { TokenIn common.Address AmountIn *big.Int AmountOutMinimum *big.Int Path []common.Address To common.Address Unwrap bool }
IPoolRouterExactInputParams is an auto generated low-level Go binding around an user-defined struct.
type IPoolRouterExactInputSingleParams ¶
type IPoolRouterExactInputSingleParams struct { TokenIn common.Address AmountIn *big.Int AmountOutMinimum *big.Int Pool common.Address To common.Address Unwrap bool }
IPoolRouterExactInputSingleParams is an auto generated low-level Go binding around an user-defined struct.
type IPoolRouterExactOutputParams ¶
type IPoolRouterExactOutputParams struct { TokenIn common.Address AmountOut *big.Int AmountInMaximum *big.Int Path []common.Address To common.Address Unwrap bool }
IPoolRouterExactOutputParams is an auto generated low-level Go binding around an user-defined struct.
type IPoolRouterExactOutputSingleParams ¶
type IPoolRouterExactOutputSingleParams struct { TokenIn common.Address AmountOut *big.Int AmountInMaximum *big.Int Pool common.Address To common.Address Unwrap bool }
IPoolRouterExactOutputSingleParams is an auto generated low-level Go binding around an user-defined struct.
type IPoolRouterFilterer ¶
type IPoolRouterFilterer struct {
// contains filtered or unexported fields
}
IPoolRouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIPoolRouterFilterer ¶
func NewIPoolRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*IPoolRouterFilterer, error)
NewIPoolRouterFilterer creates a new log filterer instance of IPoolRouter, bound to a specific deployed contract.
type IPoolRouterRaw ¶
type IPoolRouterRaw struct {
Contract *IPoolRouter // Generic contract binding to access the raw methods on
}
IPoolRouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IPoolRouterRaw) Call ¶
func (_IPoolRouter *IPoolRouterRaw) 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 (*IPoolRouterRaw) Transact ¶
func (_IPoolRouter *IPoolRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IPoolRouterRaw) Transfer ¶
func (_IPoolRouter *IPoolRouterRaw) 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 IPoolRouterSession ¶
type IPoolRouterSession struct { Contract *IPoolRouter // 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 }
IPoolRouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IPoolRouterSession) ExactInput ¶
func (_IPoolRouter *IPoolRouterSession) ExactInput(params IPoolRouterExactInputParams) (*types.Transaction, error)
ExactInput is a paid mutator transaction binding the contract method 0x363a9dba.
Solidity: function exactInput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountOut)
func (*IPoolRouterSession) ExactInputSingle ¶
func (_IPoolRouter *IPoolRouterSession) ExactInputSingle(params IPoolRouterExactInputSingleParams) (*types.Transaction, error)
ExactInputSingle is a paid mutator transaction binding the contract method 0xc07f5c32.
Solidity: function exactInputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountOut)
func (*IPoolRouterSession) ExactOutput ¶
func (_IPoolRouter *IPoolRouterSession) ExactOutput(params IPoolRouterExactOutputParams) (*types.Transaction, error)
ExactOutput is a paid mutator transaction binding the contract method 0xbee20e05.
Solidity: function exactOutput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountIn)
func (*IPoolRouterSession) ExactOutputSingle ¶
func (_IPoolRouter *IPoolRouterSession) ExactOutputSingle(params IPoolRouterExactOutputSingleParams) (*types.Transaction, error)
ExactOutputSingle is a paid mutator transaction binding the contract method 0x54c1b650.
Solidity: function exactOutputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountIn)
func (*IPoolRouterSession) Sweep ¶
func (_IPoolRouter *IPoolRouterSession) Sweep(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error)
Sweep is a paid mutator transaction binding the contract method 0xdc2c256f.
Solidity: function sweep(address token, uint256 amount, address recipient) payable returns()
type IPoolRouterTransactor ¶
type IPoolRouterTransactor struct {
// contains filtered or unexported fields
}
IPoolRouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIPoolRouterTransactor ¶
func NewIPoolRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*IPoolRouterTransactor, error)
NewIPoolRouterTransactor creates a new write-only instance of IPoolRouter, bound to a specific deployed contract.
func (*IPoolRouterTransactor) ExactInput ¶
func (_IPoolRouter *IPoolRouterTransactor) ExactInput(opts *bind.TransactOpts, params IPoolRouterExactInputParams) (*types.Transaction, error)
ExactInput is a paid mutator transaction binding the contract method 0x363a9dba.
Solidity: function exactInput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountOut)
func (*IPoolRouterTransactor) ExactInputSingle ¶
func (_IPoolRouter *IPoolRouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params IPoolRouterExactInputSingleParams) (*types.Transaction, error)
ExactInputSingle is a paid mutator transaction binding the contract method 0xc07f5c32.
Solidity: function exactInputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountOut)
func (*IPoolRouterTransactor) ExactOutput ¶
func (_IPoolRouter *IPoolRouterTransactor) ExactOutput(opts *bind.TransactOpts, params IPoolRouterExactOutputParams) (*types.Transaction, error)
ExactOutput is a paid mutator transaction binding the contract method 0xbee20e05.
Solidity: function exactOutput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountIn)
func (*IPoolRouterTransactor) ExactOutputSingle ¶
func (_IPoolRouter *IPoolRouterTransactor) ExactOutputSingle(opts *bind.TransactOpts, params IPoolRouterExactOutputSingleParams) (*types.Transaction, error)
ExactOutputSingle is a paid mutator transaction binding the contract method 0x54c1b650.
Solidity: function exactOutputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountIn)
func (*IPoolRouterTransactor) Sweep ¶
func (_IPoolRouter *IPoolRouterTransactor) Sweep(opts *bind.TransactOpts, token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error)
Sweep is a paid mutator transaction binding the contract method 0xdc2c256f.
Solidity: function sweep(address token, uint256 amount, address recipient) payable returns()
type IPoolRouterTransactorRaw ¶
type IPoolRouterTransactorRaw struct {
Contract *IPoolRouterTransactor // Generic write-only contract binding to access the raw methods on
}
IPoolRouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IPoolRouterTransactorRaw) Transact ¶
func (_IPoolRouter *IPoolRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IPoolRouterTransactorRaw) Transfer ¶
func (_IPoolRouter *IPoolRouterTransactorRaw) 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 IPoolRouterTransactorSession ¶
type IPoolRouterTransactorSession struct { Contract *IPoolRouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IPoolRouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IPoolRouterTransactorSession) ExactInput ¶
func (_IPoolRouter *IPoolRouterTransactorSession) ExactInput(params IPoolRouterExactInputParams) (*types.Transaction, error)
ExactInput is a paid mutator transaction binding the contract method 0x363a9dba.
Solidity: function exactInput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountOut)
func (*IPoolRouterTransactorSession) ExactInputSingle ¶
func (_IPoolRouter *IPoolRouterTransactorSession) ExactInputSingle(params IPoolRouterExactInputSingleParams) (*types.Transaction, error)
ExactInputSingle is a paid mutator transaction binding the contract method 0xc07f5c32.
Solidity: function exactInputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountOut)
func (*IPoolRouterTransactorSession) ExactOutput ¶
func (_IPoolRouter *IPoolRouterTransactorSession) ExactOutput(params IPoolRouterExactOutputParams) (*types.Transaction, error)
ExactOutput is a paid mutator transaction binding the contract method 0xbee20e05.
Solidity: function exactOutput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountIn)
func (*IPoolRouterTransactorSession) ExactOutputSingle ¶
func (_IPoolRouter *IPoolRouterTransactorSession) ExactOutputSingle(params IPoolRouterExactOutputSingleParams) (*types.Transaction, error)
ExactOutputSingle is a paid mutator transaction binding the contract method 0x54c1b650.
Solidity: function exactOutputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountIn)
func (*IPoolRouterTransactorSession) Sweep ¶
func (_IPoolRouter *IPoolRouterTransactorSession) Sweep(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error)
Sweep is a paid mutator transaction binding the contract method 0xdc2c256f.
Solidity: function sweep(address token, uint256 amount, address recipient) payable returns()