Documentation
¶
Index ¶
- Variables
- type IQuoterV2QuoteExactInputSingleParams
- type IQuoterV2QuoteExactOutputSingleParams
- type QuoterV2
- type QuoterV2Caller
- func (_QuoterV2 *QuoterV2Caller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_QuoterV2 *QuoterV2Caller) UniswapV3SwapCallback(opts *bind.CallOpts, amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
- func (_QuoterV2 *QuoterV2Caller) WETH9(opts *bind.CallOpts) (common.Address, error)
- type QuoterV2CallerRaw
- type QuoterV2CallerSession
- type QuoterV2Filterer
- type QuoterV2Raw
- func (_QuoterV2 *QuoterV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_QuoterV2 *QuoterV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type QuoterV2Session
- func (_QuoterV2 *QuoterV2Session) Factory() (common.Address, error)
- func (_QuoterV2 *QuoterV2Session) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Session) QuoteExactInputSingle(params IQuoterV2QuoteExactInputSingleParams) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Session) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Session) QuoteExactOutputSingle(params IQuoterV2QuoteExactOutputSingleParams) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Session) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
- func (_QuoterV2 *QuoterV2Session) WETH9() (common.Address, error)
- type QuoterV2Transactor
- func (_QuoterV2 *QuoterV2Transactor) QuoteExactInput(opts *bind.TransactOpts, path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Transactor) QuoteExactInputSingle(opts *bind.TransactOpts, params IQuoterV2QuoteExactInputSingleParams) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Transactor) QuoteExactInputSingleCall(opts *bind.CallOpts, params IQuoterV2QuoteExactInputSingleParams) (*big.Int, *big.Int, uint32, uint32, error)
- func (_QuoterV2 *QuoterV2Transactor) QuoteExactOutput(opts *bind.TransactOpts, path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Transactor) QuoteExactOutputSingle(opts *bind.TransactOpts, params IQuoterV2QuoteExactOutputSingleParams) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2Transactor) QuoteExactOutputSingleCall(opts *bind.CallOpts, params IQuoterV2QuoteExactOutputSingleParams) (*big.Int, *big.Int, uint32, uint32, error)
- type QuoterV2TransactorRaw
- type QuoterV2TransactorSession
- func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactInputSingle(params IQuoterV2QuoteExactInputSingleParams) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactOutputSingle(params IQuoterV2QuoteExactOutputSingleParams) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var QuoterV2ABI = QuoterV2MetaData.ABI
QuoterV2ABI is the input ABI used to generate the binding from. Deprecated: Use QuoterV2MetaData.ABI instead.
var QuoterV2MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_WETH9\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"WETH9\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"name\":\"quoteExactInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint160[]\",\"name\":\"sqrtPriceX96AfterList\",\"type\":\"uint160[]\"},{\"internalType\":\"uint32[]\",\"name\":\"initializedTicksCrossedList\",\"type\":\"uint32[]\"},{\"internalType\":\"uint256\",\"name\":\"gasEstimate\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structIQuoterV2.QuoteExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"quoteExactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96After\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"initializedTicksCrossed\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"gasEstimate\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"quoteExactOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint160[]\",\"name\":\"sqrtPriceX96AfterList\",\"type\":\"uint160[]\"},{\"internalType\":\"uint32[]\",\"name\":\"initializedTicksCrossedList\",\"type\":\"uint32[]\"},{\"internalType\":\"uint256\",\"name\":\"gasEstimate\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structIQuoterV2.QuoteExactOutputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"quoteExactOutputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96After\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"initializedTicksCrossed\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"gasEstimate\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
QuoterV2MetaData contains all meta data concerning the QuoterV2 contract.
Functions ¶
This section is empty.
Types ¶
type IQuoterV2QuoteExactInputSingleParams ¶
type IQuoterV2QuoteExactInputSingleParams struct { TokenIn common.Address TokenOut common.Address AmountIn *big.Int Fee *big.Int SqrtPriceLimitX96 *big.Int }
IQuoterV2QuoteExactInputSingleParams is an auto generated low-level Go binding around an user-defined struct.
type IQuoterV2QuoteExactOutputSingleParams ¶
type IQuoterV2QuoteExactOutputSingleParams struct { TokenIn common.Address TokenOut common.Address Amount *big.Int Fee *big.Int SqrtPriceLimitX96 *big.Int }
IQuoterV2QuoteExactOutputSingleParams is an auto generated low-level Go binding around an user-defined struct.
type QuoterV2 ¶
type QuoterV2 struct { QuoterV2Caller // Read-only binding to the contract QuoterV2Transactor // Write-only binding to the contract QuoterV2Filterer // Log filterer for contract events }
QuoterV2 is an auto generated Go binding around an Ethereum contract.
func NewQuoterV2 ¶
NewQuoterV2 creates a new instance of QuoterV2, bound to a specific deployed contract.
type QuoterV2Caller ¶
type QuoterV2Caller struct {
// contains filtered or unexported fields
}
QuoterV2Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewQuoterV2Caller ¶
func NewQuoterV2Caller(address common.Address, caller bind.ContractCaller) (*QuoterV2Caller, error)
NewQuoterV2Caller creates a new read-only instance of QuoterV2, bound to a specific deployed contract.
func (*QuoterV2Caller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*QuoterV2Caller) UniswapV3SwapCallback ¶
func (_QuoterV2 *QuoterV2Caller) UniswapV3SwapCallback(opts *bind.CallOpts, amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
UniswapV3SwapCallback is a free data retrieval call binding the contract method 0xfa461e33.
Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes path) view returns()
type QuoterV2CallerRaw ¶
type QuoterV2CallerRaw struct {
Contract *QuoterV2Caller // Generic read-only contract binding to access the raw methods on
}
QuoterV2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*QuoterV2CallerRaw) Call ¶
func (_QuoterV2 *QuoterV2CallerRaw) 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 QuoterV2CallerSession ¶
type QuoterV2CallerSession struct { Contract *QuoterV2Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
QuoterV2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*QuoterV2CallerSession) Factory ¶
func (_QuoterV2 *QuoterV2CallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*QuoterV2CallerSession) UniswapV3SwapCallback ¶
func (_QuoterV2 *QuoterV2CallerSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
UniswapV3SwapCallback is a free data retrieval call binding the contract method 0xfa461e33.
Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes path) view returns()
type QuoterV2Filterer ¶
type QuoterV2Filterer struct {
// contains filtered or unexported fields
}
QuoterV2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewQuoterV2Filterer ¶
func NewQuoterV2Filterer(address common.Address, filterer bind.ContractFilterer) (*QuoterV2Filterer, error)
NewQuoterV2Filterer creates a new log filterer instance of QuoterV2, bound to a specific deployed contract.
type QuoterV2Raw ¶
type QuoterV2Raw struct {
Contract *QuoterV2 // Generic contract binding to access the raw methods on
}
QuoterV2Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*QuoterV2Raw) Call ¶
func (_QuoterV2 *QuoterV2Raw) 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 (*QuoterV2Raw) Transact ¶
func (_QuoterV2 *QuoterV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*QuoterV2Raw) Transfer ¶
func (_QuoterV2 *QuoterV2Raw) 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 QuoterV2Session ¶
type QuoterV2Session struct { Contract *QuoterV2 // 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 }
QuoterV2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*QuoterV2Session) Factory ¶
func (_QuoterV2 *QuoterV2Session) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*QuoterV2Session) QuoteExactInput ¶
func (_QuoterV2 *QuoterV2Session) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
QuoteExactInput is a paid mutator transaction binding the contract method 0xcdca1753.
Solidity: function quoteExactInput(bytes path, uint256 amountIn) returns(uint256 amountOut, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)
func (*QuoterV2Session) QuoteExactInputSingle ¶
func (_QuoterV2 *QuoterV2Session) QuoteExactInputSingle(params IQuoterV2QuoteExactInputSingleParams) (*types.Transaction, error)
QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xc6a5026a.
Solidity: function quoteExactInputSingle((address,address,uint256,uint24,uint160) params) returns(uint256 amountOut, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)
func (*QuoterV2Session) QuoteExactOutput ¶
func (_QuoterV2 *QuoterV2Session) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
QuoteExactOutput is a paid mutator transaction binding the contract method 0x2f80bb1d.
Solidity: function quoteExactOutput(bytes path, uint256 amountOut) returns(uint256 amountIn, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)
func (*QuoterV2Session) QuoteExactOutputSingle ¶
func (_QuoterV2 *QuoterV2Session) QuoteExactOutputSingle(params IQuoterV2QuoteExactOutputSingleParams) (*types.Transaction, error)
QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0xbd21704a.
Solidity: function quoteExactOutputSingle((address,address,uint256,uint24,uint160) params) returns(uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)
func (*QuoterV2Session) UniswapV3SwapCallback ¶
func (_QuoterV2 *QuoterV2Session) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
UniswapV3SwapCallback is a free data retrieval call binding the contract method 0xfa461e33.
Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes path) view returns()
type QuoterV2Transactor ¶
type QuoterV2Transactor struct {
// contains filtered or unexported fields
}
QuoterV2Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewQuoterV2Transactor ¶
func NewQuoterV2Transactor(address common.Address, transactor bind.ContractTransactor) (*QuoterV2Transactor, error)
NewQuoterV2Transactor creates a new write-only instance of QuoterV2, bound to a specific deployed contract.
func (*QuoterV2Transactor) QuoteExactInput ¶
func (_QuoterV2 *QuoterV2Transactor) QuoteExactInput(opts *bind.TransactOpts, path []byte, amountIn *big.Int) (*types.Transaction, error)
QuoteExactInput is a paid mutator transaction binding the contract method 0xcdca1753.
Solidity: function quoteExactInput(bytes path, uint256 amountIn) returns(uint256 amountOut, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)
func (*QuoterV2Transactor) QuoteExactInputSingle ¶
func (_QuoterV2 *QuoterV2Transactor) QuoteExactInputSingle(opts *bind.TransactOpts, params IQuoterV2QuoteExactInputSingleParams) (*types.Transaction, error)
QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xc6a5026a.
Solidity: function quoteExactInputSingle((address,address,uint256,uint24,uint160) params) returns(uint256 amountOut, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)
func (*QuoterV2Transactor) QuoteExactInputSingleCall ¶
func (*QuoterV2Transactor) QuoteExactOutput ¶
func (_QuoterV2 *QuoterV2Transactor) QuoteExactOutput(opts *bind.TransactOpts, path []byte, amountOut *big.Int) (*types.Transaction, error)
QuoteExactOutput is a paid mutator transaction binding the contract method 0x2f80bb1d.
Solidity: function quoteExactOutput(bytes path, uint256 amountOut) returns(uint256 amountIn, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)
func (*QuoterV2Transactor) QuoteExactOutputSingle ¶
func (_QuoterV2 *QuoterV2Transactor) QuoteExactOutputSingle(opts *bind.TransactOpts, params IQuoterV2QuoteExactOutputSingleParams) (*types.Transaction, error)
QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0xbd21704a.
Solidity: function quoteExactOutputSingle((address,address,uint256,uint24,uint160) params) returns(uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)
func (*QuoterV2Transactor) QuoteExactOutputSingleCall ¶
type QuoterV2TransactorRaw ¶
type QuoterV2TransactorRaw struct {
Contract *QuoterV2Transactor // Generic write-only contract binding to access the raw methods on
}
QuoterV2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*QuoterV2TransactorRaw) Transact ¶
func (_QuoterV2 *QuoterV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*QuoterV2TransactorRaw) Transfer ¶
func (_QuoterV2 *QuoterV2TransactorRaw) 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 QuoterV2TransactorSession ¶
type QuoterV2TransactorSession struct { Contract *QuoterV2Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
QuoterV2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*QuoterV2TransactorSession) QuoteExactInput ¶
func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
QuoteExactInput is a paid mutator transaction binding the contract method 0xcdca1753.
Solidity: function quoteExactInput(bytes path, uint256 amountIn) returns(uint256 amountOut, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)
func (*QuoterV2TransactorSession) QuoteExactInputSingle ¶
func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactInputSingle(params IQuoterV2QuoteExactInputSingleParams) (*types.Transaction, error)
QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xc6a5026a.
Solidity: function quoteExactInputSingle((address,address,uint256,uint24,uint160) params) returns(uint256 amountOut, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)
func (*QuoterV2TransactorSession) QuoteExactOutput ¶
func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
QuoteExactOutput is a paid mutator transaction binding the contract method 0x2f80bb1d.
Solidity: function quoteExactOutput(bytes path, uint256 amountOut) returns(uint256 amountIn, uint160[] sqrtPriceX96AfterList, uint32[] initializedTicksCrossedList, uint256 gasEstimate)
func (*QuoterV2TransactorSession) QuoteExactOutputSingle ¶
func (_QuoterV2 *QuoterV2TransactorSession) QuoteExactOutputSingle(params IQuoterV2QuoteExactOutputSingleParams) (*types.Transaction, error)
QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0xbd21704a.
Solidity: function quoteExactOutputSingle((address,address,uint256,uint24,uint160) params) returns(uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)