Documentation ¶
Index ¶
- Variables
- type ISwapRouterExactInputParams
- type ISwapRouterExactInputSingleParams
- type ISwapRouterExactOutputParams
- type ISwapRouterExactOutputSingleParams
- type IUniswapV3Router
- type IUniswapV3RouterCaller
- type IUniswapV3RouterCallerRaw
- type IUniswapV3RouterCallerSession
- type IUniswapV3RouterFilterer
- type IUniswapV3RouterRaw
- func (_IUniswapV3Router *IUniswapV3RouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IUniswapV3Router *IUniswapV3RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IUniswapV3RouterSession
- func (_IUniswapV3Router *IUniswapV3RouterSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error)
- type IUniswapV3RouterTransactor
- func (_IUniswapV3Router *IUniswapV3RouterTransactor) ExactInput(opts *bind.TransactOpts, params ISwapRouterExactInputParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactor) ExactOutput(opts *bind.TransactOpts, params ISwapRouterExactOutputParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactor) ExactOutputSingle(opts *bind.TransactOpts, params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactor) UniswapV3SwapCallback(opts *bind.TransactOpts, amount0Delta *big.Int, amount1Delta *big.Int, ...) (*types.Transaction, error)
- type IUniswapV3RouterTransactorRaw
- type IUniswapV3RouterTransactorSession
- func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error)
- func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var IUniswapV3RouterABI = IUniswapV3RouterMetaData.ABI
IUniswapV3RouterABI is the input ABI used to generate the binding from. Deprecated: Use IUniswapV3RouterMetaData.ABI instead.
var IUniswapV3RouterMetaData = &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\"}]",
}
IUniswapV3RouterMetaData contains all meta data concerning the IUniswapV3Router contract.
Functions ¶
This section is empty.
Types ¶
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 IUniswapV3Router ¶
type IUniswapV3Router struct { IUniswapV3RouterCaller // Read-only binding to the contract IUniswapV3RouterTransactor // Write-only binding to the contract IUniswapV3RouterFilterer // Log filterer for contract events }
IUniswapV3Router is an auto generated Go binding around an Ethereum contract.
func NewIUniswapV3Router ¶
func NewIUniswapV3Router(address common.Address, backend bind.ContractBackend) (*IUniswapV3Router, error)
NewIUniswapV3Router creates a new instance of IUniswapV3Router, bound to a specific deployed contract.
type IUniswapV3RouterCaller ¶
type IUniswapV3RouterCaller struct {
// contains filtered or unexported fields
}
IUniswapV3RouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIUniswapV3RouterCaller ¶
func NewIUniswapV3RouterCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3RouterCaller, error)
NewIUniswapV3RouterCaller creates a new read-only instance of IUniswapV3Router, bound to a specific deployed contract.
type IUniswapV3RouterCallerRaw ¶
type IUniswapV3RouterCallerRaw struct {
Contract *IUniswapV3RouterCaller // Generic read-only contract binding to access the raw methods on
}
IUniswapV3RouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IUniswapV3RouterCallerRaw) Call ¶
func (_IUniswapV3Router *IUniswapV3RouterCallerRaw) 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 IUniswapV3RouterCallerSession ¶
type IUniswapV3RouterCallerSession struct { Contract *IUniswapV3RouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IUniswapV3RouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type IUniswapV3RouterFilterer ¶
type IUniswapV3RouterFilterer struct {
// contains filtered or unexported fields
}
IUniswapV3RouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIUniswapV3RouterFilterer ¶
func NewIUniswapV3RouterFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3RouterFilterer, error)
NewIUniswapV3RouterFilterer creates a new log filterer instance of IUniswapV3Router, bound to a specific deployed contract.
type IUniswapV3RouterRaw ¶
type IUniswapV3RouterRaw struct {
Contract *IUniswapV3Router // Generic contract binding to access the raw methods on
}
IUniswapV3RouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IUniswapV3RouterRaw) Call ¶
func (_IUniswapV3Router *IUniswapV3RouterRaw) 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 (*IUniswapV3RouterRaw) Transact ¶
func (_IUniswapV3Router *IUniswapV3RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IUniswapV3RouterRaw) Transfer ¶
func (_IUniswapV3Router *IUniswapV3RouterRaw) 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 IUniswapV3RouterSession ¶
type IUniswapV3RouterSession struct { Contract *IUniswapV3Router // 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 }
IUniswapV3RouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IUniswapV3RouterSession) ExactInput ¶
func (_IUniswapV3Router *IUniswapV3RouterSession) 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 (*IUniswapV3RouterSession) ExactInputSingle ¶
func (_IUniswapV3Router *IUniswapV3RouterSession) 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 (*IUniswapV3RouterSession) ExactOutput ¶
func (_IUniswapV3Router *IUniswapV3RouterSession) 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 (*IUniswapV3RouterSession) ExactOutputSingle ¶
func (_IUniswapV3Router *IUniswapV3RouterSession) 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 (*IUniswapV3RouterSession) UniswapV3SwapCallback ¶
func (_IUniswapV3Router *IUniswapV3RouterSession) 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 IUniswapV3RouterTransactor ¶
type IUniswapV3RouterTransactor struct {
// contains filtered or unexported fields
}
IUniswapV3RouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIUniswapV3RouterTransactor ¶
func NewIUniswapV3RouterTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3RouterTransactor, error)
NewIUniswapV3RouterTransactor creates a new write-only instance of IUniswapV3Router, bound to a specific deployed contract.
func (*IUniswapV3RouterTransactor) ExactInput ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactor) 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 (*IUniswapV3RouterTransactor) ExactInputSingle ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactor) 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 (*IUniswapV3RouterTransactor) ExactOutput ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactor) 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 (*IUniswapV3RouterTransactor) ExactOutputSingle ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactor) 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 (*IUniswapV3RouterTransactor) UniswapV3SwapCallback ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactor) 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 IUniswapV3RouterTransactorRaw ¶
type IUniswapV3RouterTransactorRaw struct {
Contract *IUniswapV3RouterTransactor // Generic write-only contract binding to access the raw methods on
}
IUniswapV3RouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IUniswapV3RouterTransactorRaw) Transact ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IUniswapV3RouterTransactorRaw) Transfer ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactorRaw) 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 IUniswapV3RouterTransactorSession ¶
type IUniswapV3RouterTransactorSession struct { Contract *IUniswapV3RouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IUniswapV3RouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IUniswapV3RouterTransactorSession) ExactInput ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) 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 (*IUniswapV3RouterTransactorSession) ExactInputSingle ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) 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 (*IUniswapV3RouterTransactorSession) ExactOutput ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) 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 (*IUniswapV3RouterTransactorSession) ExactOutputSingle ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) 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 (*IUniswapV3RouterTransactorSession) UniswapV3SwapCallback ¶
func (_IUniswapV3Router *IUniswapV3RouterTransactorSession) 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()