Documentation ¶
Index ¶
- Variables
- type IQuoter
- type IQuoterCaller
- type IQuoterCallerRaw
- type IQuoterCallerSession
- type IQuoterFilterer
- type IQuoterRaw
- func (_IQuoter *IQuoterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IQuoter *IQuoterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IQuoter *IQuoterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IQuoterSession
- func (_IQuoter *IQuoterSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_IQuoter *IQuoterSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*types.Transaction, error)
- func (_IQuoter *IQuoterSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_IQuoter *IQuoterSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*types.Transaction, error)
- type IQuoterTransactor
- func (_IQuoter *IQuoterTransactor) QuoteExactInput(opts *bind.TransactOpts, path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_IQuoter *IQuoterTransactor) QuoteExactInputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, ...) (*types.Transaction, error)
- func (_IQuoter *IQuoterTransactor) QuoteExactOutput(opts *bind.TransactOpts, path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_IQuoter *IQuoterTransactor) QuoteExactOutputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, ...) (*types.Transaction, error)
- type IQuoterTransactorRaw
- type IQuoterTransactorSession
- func (_IQuoter *IQuoterTransactorSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error)
- func (_IQuoter *IQuoterTransactorSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*types.Transaction, error)
- func (_IQuoter *IQuoterTransactorSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error)
- func (_IQuoter *IQuoterTransactorSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, ...) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var IQuoterABI = IQuoterMetaData.ABI
IQuoterABI is the input ABI used to generate the binding from. Deprecated: Use IQuoterMetaData.ABI instead.
var IQuoterMetaData = &bind.MetaData{
ABI: "[{\"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\"}]",
}
IQuoterMetaData contains all meta data concerning the IQuoter contract.
Functions ¶
This section is empty.
Types ¶
type IQuoter ¶
type IQuoter struct { IQuoterCaller // Read-only binding to the contract IQuoterTransactor // Write-only binding to the contract IQuoterFilterer // Log filterer for contract events }
IQuoter is an auto generated Go binding around an Ethereum contract.
func NewIQuoter ¶
NewIQuoter creates a new instance of IQuoter, bound to a specific deployed contract.
type IQuoterCaller ¶
type IQuoterCaller struct {
// contains filtered or unexported fields
}
IQuoterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIQuoterCaller ¶
func NewIQuoterCaller(address common.Address, caller bind.ContractCaller) (*IQuoterCaller, error)
NewIQuoterCaller creates a new read-only instance of IQuoter, bound to a specific deployed contract.
type IQuoterCallerRaw ¶
type IQuoterCallerRaw struct {
Contract *IQuoterCaller // Generic read-only contract binding to access the raw methods on
}
IQuoterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IQuoterCallerRaw) Call ¶
func (_IQuoter *IQuoterCallerRaw) 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 IQuoterCallerSession ¶
type IQuoterCallerSession struct { Contract *IQuoterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IQuoterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type IQuoterFilterer ¶
type IQuoterFilterer struct {
// contains filtered or unexported fields
}
IQuoterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIQuoterFilterer ¶
func NewIQuoterFilterer(address common.Address, filterer bind.ContractFilterer) (*IQuoterFilterer, error)
NewIQuoterFilterer creates a new log filterer instance of IQuoter, bound to a specific deployed contract.
type IQuoterRaw ¶
type IQuoterRaw struct {
Contract *IQuoter // Generic contract binding to access the raw methods on
}
IQuoterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IQuoterRaw) Call ¶
func (_IQuoter *IQuoterRaw) 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 (*IQuoterRaw) Transact ¶
func (_IQuoter *IQuoterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IQuoterRaw) Transfer ¶
func (_IQuoter *IQuoterRaw) 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 IQuoterSession ¶
type IQuoterSession struct { Contract *IQuoter // 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 }
IQuoterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IQuoterSession) QuoteExactInput ¶
func (_IQuoter *IQuoterSession) 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 (*IQuoterSession) QuoteExactInputSingle ¶
func (_IQuoter *IQuoterSession) 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 (*IQuoterSession) QuoteExactOutput ¶
func (_IQuoter *IQuoterSession) 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 (*IQuoterSession) QuoteExactOutputSingle ¶
func (_IQuoter *IQuoterSession) 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)
type IQuoterTransactor ¶
type IQuoterTransactor struct {
// contains filtered or unexported fields
}
IQuoterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIQuoterTransactor ¶
func NewIQuoterTransactor(address common.Address, transactor bind.ContractTransactor) (*IQuoterTransactor, error)
NewIQuoterTransactor creates a new write-only instance of IQuoter, bound to a specific deployed contract.
func (*IQuoterTransactor) QuoteExactInput ¶
func (_IQuoter *IQuoterTransactor) 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 (*IQuoterTransactor) QuoteExactInputSingle ¶
func (_IQuoter *IQuoterTransactor) 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 (*IQuoterTransactor) QuoteExactOutput ¶
func (_IQuoter *IQuoterTransactor) 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 (*IQuoterTransactor) QuoteExactOutputSingle ¶
func (_IQuoter *IQuoterTransactor) 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 IQuoterTransactorRaw ¶
type IQuoterTransactorRaw struct {
Contract *IQuoterTransactor // Generic write-only contract binding to access the raw methods on
}
IQuoterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IQuoterTransactorRaw) Transact ¶
func (_IQuoter *IQuoterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IQuoterTransactorRaw) Transfer ¶
func (_IQuoter *IQuoterTransactorRaw) 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 IQuoterTransactorSession ¶
type IQuoterTransactorSession struct { Contract *IQuoterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IQuoterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*IQuoterTransactorSession) QuoteExactInput ¶
func (_IQuoter *IQuoterTransactorSession) 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 (*IQuoterTransactorSession) QuoteExactInputSingle ¶
func (_IQuoter *IQuoterTransactorSession) 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 (*IQuoterTransactorSession) QuoteExactOutput ¶
func (_IQuoter *IQuoterTransactorSession) 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 (*IQuoterTransactorSession) QuoteExactOutputSingle ¶
func (_IQuoter *IQuoterTransactorSession) 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)