Documentation ¶
Index ¶
- Variables
- type UniPool
- type UniPoolCaller
- type UniPoolCallerRaw
- type UniPoolCallerSession
- type UniPoolFilterer
- type UniPoolRaw
- func (_UniPool *UniPoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_UniPool *UniPoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_UniPool *UniPoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type UniPoolSession
- type UniPoolTransactor
- type UniPoolTransactorRaw
- type UniPoolTransactorSession
Constants ¶
This section is empty.
Variables ¶
var UniPoolABI = UniPoolMetaData.ABI
UniPoolABI is the input ABI used to generate the binding from. Deprecated: Use UniPoolMetaData.ABI instead.
var UniPoolMetaData = &bind.MetaData{
ABI: "[{\"type\":\"function\",\"name\":\"observe\",\"inputs\":[{\"name\":\"\",\"type\":\"uint32[]\",\"internalType\":\"uint32[]\"}],\"outputs\":[{\"name\":\"tickCumulatives\",\"type\":\"int56[]\",\"internalType\":\"int56[]\"},{\"name\":\"secondsPerLiquidityCumulativeX128s\",\"type\":\"uint160[]\",\"internalType\":\"uint160[]\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"slot0\",\"inputs\":[],\"outputs\":[{\"name\":\"sqrtPriceX96\",\"type\":\"uint160\",\"internalType\":\"uint160\"},{\"name\":\"tick\",\"type\":\"int24\",\"internalType\":\"int24\"},{\"name\":\"observationIndex\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"observationCardinality\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"observationCardinalityNext\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"feeProtocol\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"unlocked\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tickSpacing\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"int24\",\"internalType\":\"int24\"}],\"stateMutability\":\"pure\"}]",
}
UniPoolMetaData contains all meta data concerning the UniPool contract.
Functions ¶
This section is empty.
Types ¶
type UniPool ¶
type UniPool struct { UniPoolCaller // Read-only binding to the contract UniPoolTransactor // Write-only binding to the contract UniPoolFilterer // Log filterer for contract events }
UniPool is an auto generated Go binding around an Ethereum contract.
func NewUniPool ¶
NewUniPool creates a new instance of UniPool, bound to a specific deployed contract.
type UniPoolCaller ¶
type UniPoolCaller struct {
// contains filtered or unexported fields
}
UniPoolCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewUniPoolCaller ¶
func NewUniPoolCaller(address common.Address, caller bind.ContractCaller) (*UniPoolCaller, error)
NewUniPoolCaller creates a new read-only instance of UniPool, bound to a specific deployed contract.
func (*UniPoolCaller) Observe ¶
func (_UniPool *UniPoolCaller) Observe(opts *bind.CallOpts, arg0 []uint32) (struct { TickCumulatives []*big.Int SecondsPerLiquidityCumulativeX128s []*big.Int }, error)
Observe is a free data retrieval call binding the contract method 0x883bdbfd.
Solidity: function observe(uint32[] ) pure returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)
func (*UniPoolCaller) Slot0 ¶
func (_UniPool *UniPoolCaller) Slot0(opts *bind.CallOpts) (struct { SqrtPriceX96 *big.Int Tick *big.Int ObservationIndex uint16 ObservationCardinality uint16 ObservationCardinalityNext uint16 FeeProtocol uint8 Unlocked bool }, error)
Slot0 is a free data retrieval call binding the contract method 0x3850c7bd.
Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked)
func (*UniPoolCaller) TickSpacing ¶
TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.
Solidity: function tickSpacing() pure returns(int24)
type UniPoolCallerRaw ¶
type UniPoolCallerRaw struct {
Contract *UniPoolCaller // Generic read-only contract binding to access the raw methods on
}
UniPoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*UniPoolCallerRaw) Call ¶
func (_UniPool *UniPoolCallerRaw) 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 UniPoolCallerSession ¶
type UniPoolCallerSession struct { Contract *UniPoolCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
UniPoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*UniPoolCallerSession) Observe ¶
func (_UniPool *UniPoolCallerSession) Observe(arg0 []uint32) (struct { TickCumulatives []*big.Int SecondsPerLiquidityCumulativeX128s []*big.Int }, error)
Observe is a free data retrieval call binding the contract method 0x883bdbfd.
Solidity: function observe(uint32[] ) pure returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)
func (*UniPoolCallerSession) Slot0 ¶
func (_UniPool *UniPoolCallerSession) Slot0() (struct { SqrtPriceX96 *big.Int Tick *big.Int ObservationIndex uint16 ObservationCardinality uint16 ObservationCardinalityNext uint16 FeeProtocol uint8 Unlocked bool }, error)
Slot0 is a free data retrieval call binding the contract method 0x3850c7bd.
Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked)
func (*UniPoolCallerSession) TickSpacing ¶
func (_UniPool *UniPoolCallerSession) TickSpacing() (*big.Int, error)
TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.
Solidity: function tickSpacing() pure returns(int24)
type UniPoolFilterer ¶
type UniPoolFilterer struct {
// contains filtered or unexported fields
}
UniPoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUniPoolFilterer ¶
func NewUniPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*UniPoolFilterer, error)
NewUniPoolFilterer creates a new log filterer instance of UniPool, bound to a specific deployed contract.
type UniPoolRaw ¶
type UniPoolRaw struct {
Contract *UniPool // Generic contract binding to access the raw methods on
}
UniPoolRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*UniPoolRaw) Call ¶
func (_UniPool *UniPoolRaw) 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 (*UniPoolRaw) Transact ¶
func (_UniPool *UniPoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniPoolRaw) Transfer ¶
func (_UniPool *UniPoolRaw) 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 UniPoolSession ¶
type UniPoolSession struct { Contract *UniPool // 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 }
UniPoolSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*UniPoolSession) Observe ¶
func (_UniPool *UniPoolSession) Observe(arg0 []uint32) (struct { TickCumulatives []*big.Int SecondsPerLiquidityCumulativeX128s []*big.Int }, error)
Observe is a free data retrieval call binding the contract method 0x883bdbfd.
Solidity: function observe(uint32[] ) pure returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)
func (*UniPoolSession) Slot0 ¶
func (_UniPool *UniPoolSession) Slot0() (struct { SqrtPriceX96 *big.Int Tick *big.Int ObservationIndex uint16 ObservationCardinality uint16 ObservationCardinalityNext uint16 FeeProtocol uint8 Unlocked bool }, error)
Slot0 is a free data retrieval call binding the contract method 0x3850c7bd.
Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked)
func (*UniPoolSession) TickSpacing ¶
func (_UniPool *UniPoolSession) TickSpacing() (*big.Int, error)
TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.
Solidity: function tickSpacing() pure returns(int24)
type UniPoolTransactor ¶
type UniPoolTransactor struct {
// contains filtered or unexported fields
}
UniPoolTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUniPoolTransactor ¶
func NewUniPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*UniPoolTransactor, error)
NewUniPoolTransactor creates a new write-only instance of UniPool, bound to a specific deployed contract.
type UniPoolTransactorRaw ¶
type UniPoolTransactorRaw struct {
Contract *UniPoolTransactor // Generic write-only contract binding to access the raw methods on
}
UniPoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*UniPoolTransactorRaw) Transact ¶
func (_UniPool *UniPoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniPoolTransactorRaw) Transfer ¶
func (_UniPool *UniPoolTransactorRaw) 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 UniPoolTransactorSession ¶
type UniPoolTransactorSession struct { Contract *UniPoolTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UniPoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.