Documentation ¶
Index ¶
- Variables
- type UniswapQuoterV3
- type UniswapQuoterV3Caller
- func (_UniswapQuoterV3 *UniswapQuoterV3Caller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactInput(opts *bind.CallOpts, path []byte, amountIn *big.Int) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactInputSingle(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, ...) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactOutput(opts *bind.CallOpts, path []byte, amountOut *big.Int) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactOutputSingle(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, ...) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Caller) UniswapV3SwapCallback(opts *bind.CallOpts, amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
- func (_UniswapQuoterV3 *UniswapQuoterV3Caller) WETH9(opts *bind.CallOpts) (common.Address, error)
- type UniswapQuoterV3CallerRaw
- type UniswapQuoterV3CallerSession
- func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) Factory() (common.Address, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactInput(path []byte, amountIn *big.Int) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
- func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) WETH9() (common.Address, error)
- type UniswapQuoterV3Filterer
- type UniswapQuoterV3Raw
- func (_UniswapQuoterV3 *UniswapQuoterV3Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_UniswapQuoterV3 *UniswapQuoterV3Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type UniswapQuoterV3Session
- func (_UniswapQuoterV3 *UniswapQuoterV3Session) Factory() (common.Address, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactInput(path []byte, amountIn *big.Int) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactOutput(path []byte, amountOut *big.Int) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*big.Int, error)
- func (_UniswapQuoterV3 *UniswapQuoterV3Session) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
- func (_UniswapQuoterV3 *UniswapQuoterV3Session) WETH9() (common.Address, error)
- type UniswapQuoterV3Transactor
- type UniswapQuoterV3TransactorRaw
- type UniswapQuoterV3TransactorSession
Constants ¶
This section is empty.
Variables ¶
var UniswapQuoterV3ABI = UniswapQuoterV3MetaData.ABI
UniswapQuoterV3ABI is the input ABI used to generate the binding from. Deprecated: Use UniswapQuoterV3MetaData.ABI instead.
var UniswapQuoterV3MetaData = &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\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"name\":\"quoteExactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"quoteExactOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"name\":\"quoteExactOutputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\"}]",
}
UniswapQuoterV3MetaData contains all meta data concerning the UniswapQuoterV3 contract.
Functions ¶
This section is empty.
Types ¶
type UniswapQuoterV3 ¶
type UniswapQuoterV3 struct { UniswapQuoterV3Caller // Read-only binding to the contract UniswapQuoterV3Transactor // Write-only binding to the contract UniswapQuoterV3Filterer // Log filterer for contract events }
UniswapQuoterV3 is an auto generated Go binding around an Ethereum contract.
func NewUniswapQuoterV3 ¶
func NewUniswapQuoterV3(address common.Address, backend bind.ContractBackend) (*UniswapQuoterV3, error)
NewUniswapQuoterV3 creates a new instance of UniswapQuoterV3, bound to a specific deployed contract.
type UniswapQuoterV3Caller ¶
type UniswapQuoterV3Caller struct {
// contains filtered or unexported fields
}
UniswapQuoterV3Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewUniswapQuoterV3Caller ¶
func NewUniswapQuoterV3Caller(address common.Address, caller bind.ContractCaller) (*UniswapQuoterV3Caller, error)
NewUniswapQuoterV3Caller creates a new read-only instance of UniswapQuoterV3, bound to a specific deployed contract.
func (*UniswapQuoterV3Caller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UniswapQuoterV3Caller) QuoteExactInput ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactInput(opts *bind.CallOpts, path []byte, amountIn *big.Int) (*big.Int, error)
QuoteExactInput is a free data retrieval call binding the contract method 0xcdca1753.
Solidity: function quoteExactInput(bytes path, uint256 amountIn) view returns(uint256 amountOut)
func (*UniswapQuoterV3Caller) QuoteExactInputSingle ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactInputSingle(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*big.Int, error)
QuoteExactInputSingle is a free data retrieval call binding the contract method 0xf7729d43.
Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) view returns(uint256 amountOut)
func (*UniswapQuoterV3Caller) QuoteExactOutput ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactOutput(opts *bind.CallOpts, path []byte, amountOut *big.Int) (*big.Int, error)
QuoteExactOutput is a free data retrieval call binding the contract method 0x2f80bb1d.
Solidity: function quoteExactOutput(bytes path, uint256 amountOut) view returns(uint256 amountIn)
func (*UniswapQuoterV3Caller) QuoteExactOutputSingle ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Caller) QuoteExactOutputSingle(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*big.Int, error)
QuoteExactOutputSingle is a free data retrieval call binding the contract method 0x30d07f21.
Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) view returns(uint256 amountIn)
func (*UniswapQuoterV3Caller) UniswapV3SwapCallback ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Caller) 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 UniswapQuoterV3CallerRaw ¶
type UniswapQuoterV3CallerRaw struct {
Contract *UniswapQuoterV3Caller // Generic read-only contract binding to access the raw methods on
}
UniswapQuoterV3CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*UniswapQuoterV3CallerRaw) Call ¶
func (_UniswapQuoterV3 *UniswapQuoterV3CallerRaw) 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 UniswapQuoterV3CallerSession ¶
type UniswapQuoterV3CallerSession struct { Contract *UniswapQuoterV3Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
UniswapQuoterV3CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*UniswapQuoterV3CallerSession) Factory ¶
func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UniswapQuoterV3CallerSession) QuoteExactInput ¶
func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactInput(path []byte, amountIn *big.Int) (*big.Int, error)
QuoteExactInput is a free data retrieval call binding the contract method 0xcdca1753.
Solidity: function quoteExactInput(bytes path, uint256 amountIn) view returns(uint256 amountOut)
func (*UniswapQuoterV3CallerSession) QuoteExactInputSingle ¶
func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*big.Int, error)
QuoteExactInputSingle is a free data retrieval call binding the contract method 0xf7729d43.
Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) view returns(uint256 amountOut)
func (*UniswapQuoterV3CallerSession) QuoteExactOutput ¶
func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*big.Int, error)
QuoteExactOutput is a free data retrieval call binding the contract method 0x2f80bb1d.
Solidity: function quoteExactOutput(bytes path, uint256 amountOut) view returns(uint256 amountIn)
func (*UniswapQuoterV3CallerSession) QuoteExactOutputSingle ¶
func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*big.Int, error)
QuoteExactOutputSingle is a free data retrieval call binding the contract method 0x30d07f21.
Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) view returns(uint256 amountIn)
func (*UniswapQuoterV3CallerSession) UniswapV3SwapCallback ¶
func (_UniswapQuoterV3 *UniswapQuoterV3CallerSession) 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 UniswapQuoterV3Filterer ¶
type UniswapQuoterV3Filterer struct {
// contains filtered or unexported fields
}
UniswapQuoterV3Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUniswapQuoterV3Filterer ¶
func NewUniswapQuoterV3Filterer(address common.Address, filterer bind.ContractFilterer) (*UniswapQuoterV3Filterer, error)
NewUniswapQuoterV3Filterer creates a new log filterer instance of UniswapQuoterV3, bound to a specific deployed contract.
type UniswapQuoterV3Raw ¶
type UniswapQuoterV3Raw struct {
Contract *UniswapQuoterV3 // Generic contract binding to access the raw methods on
}
UniswapQuoterV3Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*UniswapQuoterV3Raw) Call ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Raw) 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 (*UniswapQuoterV3Raw) Transact ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniswapQuoterV3Raw) Transfer ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Raw) 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 UniswapQuoterV3Session ¶
type UniswapQuoterV3Session struct { Contract *UniswapQuoterV3 // 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 }
UniswapQuoterV3Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*UniswapQuoterV3Session) Factory ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Session) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UniswapQuoterV3Session) QuoteExactInput ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactInput(path []byte, amountIn *big.Int) (*big.Int, error)
QuoteExactInput is a free data retrieval call binding the contract method 0xcdca1753.
Solidity: function quoteExactInput(bytes path, uint256 amountIn) view returns(uint256 amountOut)
func (*UniswapQuoterV3Session) QuoteExactInputSingle ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*big.Int, error)
QuoteExactInputSingle is a free data retrieval call binding the contract method 0xf7729d43.
Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) view returns(uint256 amountOut)
func (*UniswapQuoterV3Session) QuoteExactOutput ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactOutput(path []byte, amountOut *big.Int) (*big.Int, error)
QuoteExactOutput is a free data retrieval call binding the contract method 0x2f80bb1d.
Solidity: function quoteExactOutput(bytes path, uint256 amountOut) view returns(uint256 amountIn)
func (*UniswapQuoterV3Session) QuoteExactOutputSingle ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Session) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*big.Int, error)
QuoteExactOutputSingle is a free data retrieval call binding the contract method 0x30d07f21.
Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) view returns(uint256 amountIn)
func (*UniswapQuoterV3Session) UniswapV3SwapCallback ¶
func (_UniswapQuoterV3 *UniswapQuoterV3Session) 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 UniswapQuoterV3Transactor ¶
type UniswapQuoterV3Transactor struct {
// contains filtered or unexported fields
}
UniswapQuoterV3Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUniswapQuoterV3Transactor ¶
func NewUniswapQuoterV3Transactor(address common.Address, transactor bind.ContractTransactor) (*UniswapQuoterV3Transactor, error)
NewUniswapQuoterV3Transactor creates a new write-only instance of UniswapQuoterV3, bound to a specific deployed contract.
type UniswapQuoterV3TransactorRaw ¶
type UniswapQuoterV3TransactorRaw struct {
Contract *UniswapQuoterV3Transactor // Generic write-only contract binding to access the raw methods on
}
UniswapQuoterV3TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*UniswapQuoterV3TransactorRaw) Transact ¶
func (_UniswapQuoterV3 *UniswapQuoterV3TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniswapQuoterV3TransactorRaw) Transfer ¶
func (_UniswapQuoterV3 *UniswapQuoterV3TransactorRaw) 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 UniswapQuoterV3TransactorSession ¶
type UniswapQuoterV3TransactorSession struct { Contract *UniswapQuoterV3Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UniswapQuoterV3TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.