Documentation ¶
Index ¶
- Variables
- type ISwapRouter
- type ISwapRouterCaller
- type ISwapRouterCallerRaw
- type ISwapRouterCallerSession
- type ISwapRouterExactInputParams
- type ISwapRouterExactInputSingleParams
- type ISwapRouterExactOutputParams
- type ISwapRouterExactOutputSingleParams
- type ISwapRouterFilterer
- type ISwapRouterRaw
- func (_ISwapRouter *ISwapRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ISwapRouter *ISwapRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ISwapRouterSession
- func (_ISwapRouter *ISwapRouterSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error)
- type ISwapRouterTransactor
- func (_ISwapRouter *ISwapRouterTransactor) ExactInput(opts *bind.TransactOpts, params ISwapRouterExactInputParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactor) ExactOutput(opts *bind.TransactOpts, params ISwapRouterExactOutputParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactor) ExactOutputSingle(opts *bind.TransactOpts, params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactor) UniswapV3SwapCallback(opts *bind.TransactOpts, amount0Delta *big.Int, amount1Delta *big.Int, ...) (*types.Transaction, error)
- type ISwapRouterTransactorRaw
- type ISwapRouterTransactorSession
- func (_ISwapRouter *ISwapRouterTransactorSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactorSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactorSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactorSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_ISwapRouter *ISwapRouterTransactorSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var ISwapRouterABI = ISwapRouterMetaData.ABI
ISwapRouterABI is the input ABI used to generate the binding from. Deprecated: Use ISwapRouterMetaData.ABI instead.
var ISwapRouterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"}],\"internalType\":\"structISwapRouter.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\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structISwapRouter.ExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"}],\"internalType\":\"structISwapRouter.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\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structISwapRouter.ExactOutputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactOutputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
ISwapRouterMetaData contains all meta data concerning the ISwapRouter contract.
Functions ¶
This section is empty.
Types ¶
type ISwapRouter ¶
type ISwapRouter struct { ISwapRouterCaller // Read-only binding to the contract ISwapRouterTransactor // Write-only binding to the contract ISwapRouterFilterer // Log filterer for contract events }
ISwapRouter is an auto generated Go binding around an Ethereum contract.
func NewISwapRouter ¶
func NewISwapRouter(address common.Address, backend bind.ContractBackend) (*ISwapRouter, error)
NewISwapRouter creates a new instance of ISwapRouter, bound to a specific deployed contract.
type ISwapRouterCaller ¶
type ISwapRouterCaller struct {
// contains filtered or unexported fields
}
ISwapRouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewISwapRouterCaller ¶
func NewISwapRouterCaller(address common.Address, caller bind.ContractCaller) (*ISwapRouterCaller, error)
NewISwapRouterCaller creates a new read-only instance of ISwapRouter, bound to a specific deployed contract.
type ISwapRouterCallerRaw ¶
type ISwapRouterCallerRaw struct {
Contract *ISwapRouterCaller // Generic read-only contract binding to access the raw methods on
}
ISwapRouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ISwapRouterCallerRaw) Call ¶
func (_ISwapRouter *ISwapRouterCallerRaw) 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 ISwapRouterCallerSession ¶
type ISwapRouterCallerSession struct { Contract *ISwapRouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ISwapRouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type ISwapRouterExactInputParams ¶
type ISwapRouterExactInputParams struct { Path []byte Recipient common.Address Deadline *big.Int AmountIn *big.Int AmountOutMinimum *big.Int }
ISwapRouterExactInputParams is an auto generated low-level Go binding around an user-defined struct.
type ISwapRouterExactInputSingleParams ¶
type ISwapRouterExactInputSingleParams struct { TokenIn common.Address TokenOut common.Address Fee *big.Int Recipient common.Address Deadline *big.Int AmountIn *big.Int AmountOutMinimum *big.Int SqrtPriceLimitX96 *big.Int }
ISwapRouterExactInputSingleParams is an auto generated low-level Go binding around an user-defined struct.
type ISwapRouterExactOutputParams ¶
type ISwapRouterExactOutputParams struct { Path []byte Recipient common.Address Deadline *big.Int AmountOut *big.Int AmountInMaximum *big.Int }
ISwapRouterExactOutputParams is an auto generated low-level Go binding around an user-defined struct.
type ISwapRouterExactOutputSingleParams ¶
type ISwapRouterExactOutputSingleParams struct { TokenIn common.Address TokenOut common.Address Fee *big.Int Recipient common.Address Deadline *big.Int AmountOut *big.Int AmountInMaximum *big.Int SqrtPriceLimitX96 *big.Int }
ISwapRouterExactOutputSingleParams is an auto generated low-level Go binding around an user-defined struct.
type ISwapRouterFilterer ¶
type ISwapRouterFilterer struct {
// contains filtered or unexported fields
}
ISwapRouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewISwapRouterFilterer ¶
func NewISwapRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*ISwapRouterFilterer, error)
NewISwapRouterFilterer creates a new log filterer instance of ISwapRouter, bound to a specific deployed contract.
type ISwapRouterRaw ¶
type ISwapRouterRaw struct {
Contract *ISwapRouter // Generic contract binding to access the raw methods on
}
ISwapRouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ISwapRouterRaw) Call ¶
func (_ISwapRouter *ISwapRouterRaw) 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 (*ISwapRouterRaw) Transact ¶
func (_ISwapRouter *ISwapRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISwapRouterRaw) Transfer ¶
func (_ISwapRouter *ISwapRouterRaw) 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 ISwapRouterSession ¶
type ISwapRouterSession struct { Contract *ISwapRouter // 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 }
ISwapRouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ISwapRouterSession) ExactInput ¶
func (_ISwapRouter *ISwapRouterSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error)
ExactInput is a paid mutator transaction binding the contract method 0xc04b8d59.
Solidity: function exactInput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountOut)
func (*ISwapRouterSession) ExactInputSingle ¶
func (_ISwapRouter *ISwapRouterSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
ExactInputSingle is a paid mutator transaction binding the contract method 0x414bf389.
Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountOut)
func (*ISwapRouterSession) ExactOutput ¶
func (_ISwapRouter *ISwapRouterSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error)
ExactOutput is a paid mutator transaction binding the contract method 0xf28c0498.
Solidity: function exactOutput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountIn)
func (*ISwapRouterSession) ExactOutputSingle ¶
func (_ISwapRouter *ISwapRouterSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
ExactOutputSingle is a paid mutator transaction binding the contract method 0xdb3e2198.
Solidity: function exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountIn)
func (*ISwapRouterSession) UniswapV3SwapCallback ¶
func (_ISwapRouter *ISwapRouterSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error)
UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33.
Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns()
type ISwapRouterTransactor ¶
type ISwapRouterTransactor struct {
// contains filtered or unexported fields
}
ISwapRouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewISwapRouterTransactor ¶
func NewISwapRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*ISwapRouterTransactor, error)
NewISwapRouterTransactor creates a new write-only instance of ISwapRouter, bound to a specific deployed contract.
func (*ISwapRouterTransactor) ExactInput ¶
func (_ISwapRouter *ISwapRouterTransactor) ExactInput(opts *bind.TransactOpts, params ISwapRouterExactInputParams) (*types.Transaction, error)
ExactInput is a paid mutator transaction binding the contract method 0xc04b8d59.
Solidity: function exactInput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountOut)
func (*ISwapRouterTransactor) ExactInputSingle ¶
func (_ISwapRouter *ISwapRouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
ExactInputSingle is a paid mutator transaction binding the contract method 0x414bf389.
Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountOut)
func (*ISwapRouterTransactor) ExactOutput ¶
func (_ISwapRouter *ISwapRouterTransactor) ExactOutput(opts *bind.TransactOpts, params ISwapRouterExactOutputParams) (*types.Transaction, error)
ExactOutput is a paid mutator transaction binding the contract method 0xf28c0498.
Solidity: function exactOutput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountIn)
func (*ISwapRouterTransactor) ExactOutputSingle ¶
func (_ISwapRouter *ISwapRouterTransactor) ExactOutputSingle(opts *bind.TransactOpts, params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
ExactOutputSingle is a paid mutator transaction binding the contract method 0xdb3e2198.
Solidity: function exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountIn)
func (*ISwapRouterTransactor) UniswapV3SwapCallback ¶
func (_ISwapRouter *ISwapRouterTransactor) UniswapV3SwapCallback(opts *bind.TransactOpts, amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error)
UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33.
Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns()
type ISwapRouterTransactorRaw ¶
type ISwapRouterTransactorRaw struct {
Contract *ISwapRouterTransactor // Generic write-only contract binding to access the raw methods on
}
ISwapRouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ISwapRouterTransactorRaw) Transact ¶
func (_ISwapRouter *ISwapRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISwapRouterTransactorRaw) Transfer ¶
func (_ISwapRouter *ISwapRouterTransactorRaw) 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 ISwapRouterTransactorSession ¶
type ISwapRouterTransactorSession struct { Contract *ISwapRouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ISwapRouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ISwapRouterTransactorSession) ExactInput ¶
func (_ISwapRouter *ISwapRouterTransactorSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error)
ExactInput is a paid mutator transaction binding the contract method 0xc04b8d59.
Solidity: function exactInput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountOut)
func (*ISwapRouterTransactorSession) ExactInputSingle ¶
func (_ISwapRouter *ISwapRouterTransactorSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
ExactInputSingle is a paid mutator transaction binding the contract method 0x414bf389.
Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountOut)
func (*ISwapRouterTransactorSession) ExactOutput ¶
func (_ISwapRouter *ISwapRouterTransactorSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error)
ExactOutput is a paid mutator transaction binding the contract method 0xf28c0498.
Solidity: function exactOutput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountIn)
func (*ISwapRouterTransactorSession) ExactOutputSingle ¶
func (_ISwapRouter *ISwapRouterTransactorSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
ExactOutputSingle is a paid mutator transaction binding the contract method 0xdb3e2198.
Solidity: function exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountIn)
func (*ISwapRouterTransactorSession) UniswapV3SwapCallback ¶
func (_ISwapRouter *ISwapRouterTransactorSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error)
UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33.
Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns()