Documentation ¶
Index ¶
- Variables
- type Quoter
- type QuoterCaller
- func (_Quoter *QuoterCaller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_Quoter *QuoterCaller) QuoteExactInputSingle(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, ...) (*big.Int, error)
- func (_Quoter *QuoterCaller) UniswapV3SwapCallback(opts *bind.CallOpts, amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
- func (_Quoter *QuoterCaller) WETH9(opts *bind.CallOpts) (common.Address, error)
- type QuoterCallerRaw
- type QuoterCallerSession
- type QuoterFilterer
- type QuoterRaw
- func (_Quoter *QuoterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Quoter *QuoterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Quoter *QuoterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type QuoterSession
- func (_Quoter *QuoterSession) Factory() (common.Address, error)
- func (_Quoter *QuoterSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_Quoter *QuoterSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_Quoter *QuoterSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*types.Transaction, error)
- func (_Quoter *QuoterSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, path []byte) error
- func (_Quoter *QuoterSession) WETH9() (common.Address, error)
- type QuoterTransactor
- func (_Quoter *QuoterTransactor) QuoteExactInput(opts *bind.TransactOpts, path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_Quoter *QuoterTransactor) QuoteExactInputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, ...) (*types.Transaction, error)
- func (_Quoter *QuoterTransactor) QuoteExactOutput(opts *bind.TransactOpts, path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_Quoter *QuoterTransactor) QuoteExactOutputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, ...) (*types.Transaction, error)
- type QuoterTransactorRaw
- type QuoterTransactorSession
- func (_Quoter *QuoterTransactorSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_Quoter *QuoterTransactorSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*types.Transaction, error)
- func (_Quoter *QuoterTransactorSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_Quoter *QuoterTransactorSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var QuoterABI = QuoterMetaData.ABI
QuoterABI is the input ABI used to generate the binding from. Deprecated: Use QuoterMetaData.ABI instead.
var QuoterMetaData = &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\":\"nonpayable\",\"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\":\"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\"}],\"stateMutability\":\"nonpayable\",\"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\":\"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\"}]",
}
QuoterMetaData contains all meta data concerning the Quoter contract.
Functions ¶
This section is empty.
Types ¶
type Quoter ¶
type Quoter struct { QuoterCaller // Read-only binding to the contract QuoterTransactor // Write-only binding to the contract QuoterFilterer // Log filterer for contract events }
Quoter is an auto generated Go binding around an Ethereum contract.
type QuoterCaller ¶
type QuoterCaller struct {
// contains filtered or unexported fields
}
QuoterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewQuoterCaller ¶
func NewQuoterCaller(address common.Address, caller bind.ContractCaller) (*QuoterCaller, error)
NewQuoterCaller creates a new read-only instance of Quoter, bound to a specific deployed contract.
func (*QuoterCaller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*QuoterCaller) QuoteExactInputSingle ¶
func (_Quoter *QuoterCaller) QuoteExactInputSingle(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*big.Int, error)
--- custom contract methods --- QuoteExactInputSingle is a custom callee binding the contract method 0xf7729d43.
Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) returns(uint256 amountOut)
func (*QuoterCaller) UniswapV3SwapCallback ¶
func (_Quoter *QuoterCaller) 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 QuoterCallerRaw ¶
type QuoterCallerRaw struct {
Contract *QuoterCaller // Generic read-only contract binding to access the raw methods on
}
QuoterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*QuoterCallerRaw) Call ¶
func (_Quoter *QuoterCallerRaw) 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 QuoterCallerSession ¶
type QuoterCallerSession struct { Contract *QuoterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
QuoterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*QuoterCallerSession) Factory ¶
func (_Quoter *QuoterCallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*QuoterCallerSession) UniswapV3SwapCallback ¶
func (_Quoter *QuoterCallerSession) 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 QuoterFilterer ¶
type QuoterFilterer struct {
// contains filtered or unexported fields
}
QuoterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewQuoterFilterer ¶
func NewQuoterFilterer(address common.Address, filterer bind.ContractFilterer) (*QuoterFilterer, error)
NewQuoterFilterer creates a new log filterer instance of Quoter, bound to a specific deployed contract.
type QuoterRaw ¶
type QuoterRaw struct {
Contract *Quoter // Generic contract binding to access the raw methods on
}
QuoterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*QuoterRaw) Call ¶
func (_Quoter *QuoterRaw) 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 (*QuoterRaw) Transact ¶
func (_Quoter *QuoterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*QuoterRaw) Transfer ¶
func (_Quoter *QuoterRaw) 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 QuoterSession ¶
type QuoterSession struct { Contract *Quoter // 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 }
QuoterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*QuoterSession) Factory ¶
func (_Quoter *QuoterSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*QuoterSession) QuoteExactInput ¶
func (_Quoter *QuoterSession) 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)
func (*QuoterSession) QuoteExactOutput ¶
func (_Quoter *QuoterSession) 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)
func (*QuoterSession) QuoteExactOutputSingle ¶
func (_Quoter *QuoterSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error)
QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0x30d07f21.
Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) returns(uint256 amountIn)
func (*QuoterSession) UniswapV3SwapCallback ¶
func (_Quoter *QuoterSession) 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 QuoterTransactor ¶
type QuoterTransactor struct {
// contains filtered or unexported fields
}
QuoterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewQuoterTransactor ¶
func NewQuoterTransactor(address common.Address, transactor bind.ContractTransactor) (*QuoterTransactor, error)
NewQuoterTransactor creates a new write-only instance of Quoter, bound to a specific deployed contract.
func (*QuoterTransactor) QuoteExactInput ¶
func (_Quoter *QuoterTransactor) 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)
func (*QuoterTransactor) QuoteExactInputSingle ¶
func (_Quoter *QuoterTransactor) QuoteExactInputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error)
QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xf7729d43.
Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) returns(uint256 amountOut)
func (*QuoterTransactor) QuoteExactOutput ¶
func (_Quoter *QuoterTransactor) 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)
func (*QuoterTransactor) QuoteExactOutputSingle ¶
func (_Quoter *QuoterTransactor) QuoteExactOutputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error)
QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0x30d07f21.
Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) returns(uint256 amountIn)
type QuoterTransactorRaw ¶
type QuoterTransactorRaw struct {
Contract *QuoterTransactor // Generic write-only contract binding to access the raw methods on
}
QuoterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*QuoterTransactorRaw) Transact ¶
func (_Quoter *QuoterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*QuoterTransactorRaw) Transfer ¶
func (_Quoter *QuoterTransactorRaw) 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 QuoterTransactorSession ¶
type QuoterTransactorSession struct { Contract *QuoterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
QuoterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*QuoterTransactorSession) QuoteExactInput ¶
func (_Quoter *QuoterTransactorSession) 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)
func (*QuoterTransactorSession) QuoteExactInputSingle ¶
func (_Quoter *QuoterTransactorSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error)
QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xf7729d43.
Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) returns(uint256 amountOut)
func (*QuoterTransactorSession) QuoteExactOutput ¶
func (_Quoter *QuoterTransactorSession) 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)
func (*QuoterTransactorSession) QuoteExactOutputSingle ¶
func (_Quoter *QuoterTransactorSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error)
QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0x30d07f21.
Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) returns(uint256 amountIn)