univ3pool

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Univ3poolABI = Univ3poolMetaData.ABI

Univ3poolABI is the input ABI used to generate the binding from. Deprecated: Use Univ3poolMetaData.ABI instead.

View Source
var Univ3poolMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"CollectProtocol\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"}],\"name\":\"Flash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"observationCardinalityNextOld\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"observationCardinalityNextNew\",\"type\":\"uint16\"}],\"name\":\"IncreaseObservationCardinalityNext\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol0Old\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol1Old\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol0New\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol1New\",\"type\":\"uint8\"}],\"name\":\"SetFeeProtocol\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collectProtocol\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeGrowthGlobal0X128\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeGrowthGlobal1X128\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"observationCardinalityNext\",\"type\":\"uint16\"}],\"name\":\"increaseObservationCardinalityNext\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"observations\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"blockTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int56\",\"name\":\"tickCumulative\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityCumulativeX128\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32[]\",\"name\":\"secondsAgos\",\"type\":\"uint32[]\"}],\"name\":\"observe\",\"outputs\":[{\"internalType\":\"int56[]\",\"name\":\"tickCumulatives\",\"type\":\"int56[]\"},{\"internalType\":\"uint160[]\",\"name\":\"secondsPerLiquidityCumulativeX128s\",\"type\":\"uint160[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"_liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside0LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside1LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolFees\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"token0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"token1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"feeProtocol0\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol1\",\"type\":\"uint8\"}],\"name\":\"setFeeProtocol\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"slot0\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"observationIndex\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"observationCardinality\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"observationCardinalityNext\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"}],\"name\":\"snapshotCumulativesInside\",\"outputs\":[{\"internalType\":\"int56\",\"name\":\"tickCumulativeInside\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityInsideX128\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"secondsInside\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountSpecified\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"wordPosition\",\"type\":\"int16\"}],\"name\":\"tickBitmap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"liquidityGross\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"liquidityNet\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthOutside0X128\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthOutside1X128\",\"type\":\"uint256\"},{\"internalType\":\"int56\",\"name\":\"tickCumulativeOutside\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityOutsideX128\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"secondsOutside\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

Univ3poolMetaData contains all meta data concerning the Univ3pool contract.

Functions

This section is empty.

Types

type Univ3pool

type Univ3pool struct {
	Univ3poolCaller     // Read-only binding to the contract
	Univ3poolTransactor // Write-only binding to the contract
	Univ3poolFilterer   // Log filterer for contract events
}

Univ3pool is an auto generated Go binding around an Ethereum contract.

func NewUniv3pool

func NewUniv3pool(address common.Address, backend bind.ContractBackend) (*Univ3pool, error)

NewUniv3pool creates a new instance of Univ3pool, bound to a specific deployed contract.

type Univ3poolBurn

type Univ3poolBurn struct {
	Owner     common.Address
	TickLower *big.Int
	TickUpper *big.Int
	Amount    *big.Int
	Amount0   *big.Int
	Amount1   *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

Univ3poolBurn represents a Burn event raised by the Univ3pool contract.

type Univ3poolBurnIterator

type Univ3poolBurnIterator struct {
	Event *Univ3poolBurn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Univ3pool contract.

func (*Univ3poolBurnIterator) Close

func (it *Univ3poolBurnIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolBurnIterator) Error

func (it *Univ3poolBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolBurnIterator) Next

func (it *Univ3poolBurnIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolCaller

type Univ3poolCaller struct {
	// contains filtered or unexported fields
}

Univ3poolCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewUniv3poolCaller

func NewUniv3poolCaller(address common.Address, caller bind.ContractCaller) (*Univ3poolCaller, error)

NewUniv3poolCaller creates a new read-only instance of Univ3pool, bound to a specific deployed contract.

func (*Univ3poolCaller) Factory

func (_Univ3pool *Univ3poolCaller) Factory(opts *bind.CallOpts) (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*Univ3poolCaller) Fee

func (_Univ3pool *Univ3poolCaller) Fee(opts *bind.CallOpts) (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() view returns(uint24)

func (*Univ3poolCaller) FeeGrowthGlobal0X128

func (_Univ3pool *Univ3poolCaller) FeeGrowthGlobal0X128(opts *bind.CallOpts) (*big.Int, error)

FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399.

Solidity: function feeGrowthGlobal0X128() view returns(uint256)

func (*Univ3poolCaller) FeeGrowthGlobal1X128

func (_Univ3pool *Univ3poolCaller) FeeGrowthGlobal1X128(opts *bind.CallOpts) (*big.Int, error)

FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319.

Solidity: function feeGrowthGlobal1X128() view returns(uint256)

func (*Univ3poolCaller) Liquidity

func (_Univ3pool *Univ3poolCaller) Liquidity(opts *bind.CallOpts) (*big.Int, error)

Liquidity is a free data retrieval call binding the contract method 0x1a686502.

Solidity: function liquidity() view returns(uint128)

func (*Univ3poolCaller) MaxLiquidityPerTick

func (_Univ3pool *Univ3poolCaller) MaxLiquidityPerTick(opts *bind.CallOpts) (*big.Int, error)

MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a.

Solidity: function maxLiquidityPerTick() view returns(uint128)

func (*Univ3poolCaller) Observations

func (_Univ3pool *Univ3poolCaller) Observations(opts *bind.CallOpts, index *big.Int) (struct {
	BlockTimestamp                    uint32
	TickCumulative                    *big.Int
	SecondsPerLiquidityCumulativeX128 *big.Int
	Initialized                       bool
}, error)

Observations is a free data retrieval call binding the contract method 0x252c09d7.

Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized)

func (*Univ3poolCaller) Observe

func (_Univ3pool *Univ3poolCaller) Observe(opts *bind.CallOpts, secondsAgos []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[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)

func (*Univ3poolCaller) Positions

func (_Univ3pool *Univ3poolCaller) Positions(opts *bind.CallOpts, key [32]byte) (struct {
	Liquidity                *big.Int
	FeeGrowthInside0LastX128 *big.Int
	FeeGrowthInside1LastX128 *big.Int
	TokensOwed0              *big.Int
	TokensOwed1              *big.Int
}, error)

Positions is a free data retrieval call binding the contract method 0x514ea4bf.

Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)

func (*Univ3poolCaller) ProtocolFees

func (_Univ3pool *Univ3poolCaller) ProtocolFees(opts *bind.CallOpts) (struct {
	Token0 *big.Int
	Token1 *big.Int
}, error)

ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b.

Solidity: function protocolFees() view returns(uint128 token0, uint128 token1)

func (*Univ3poolCaller) Slot0

func (_Univ3pool *Univ3poolCaller) 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 (*Univ3poolCaller) SnapshotCumulativesInside

func (_Univ3pool *Univ3poolCaller) SnapshotCumulativesInside(opts *bind.CallOpts, tickLower *big.Int, tickUpper *big.Int) (struct {
	TickCumulativeInside          *big.Int
	SecondsPerLiquidityInsideX128 *big.Int
	SecondsInside                 uint32
}, error)

SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2.

Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside)

func (*Univ3poolCaller) TickBitmap

func (_Univ3pool *Univ3poolCaller) TickBitmap(opts *bind.CallOpts, wordPosition int16) (*big.Int, error)

TickBitmap is a free data retrieval call binding the contract method 0x5339c296.

Solidity: function tickBitmap(int16 wordPosition) view returns(uint256)

func (*Univ3poolCaller) TickSpacing

func (_Univ3pool *Univ3poolCaller) TickSpacing(opts *bind.CallOpts) (*big.Int, error)

TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.

Solidity: function tickSpacing() view returns(int24)

func (*Univ3poolCaller) Ticks

func (_Univ3pool *Univ3poolCaller) Ticks(opts *bind.CallOpts, tick *big.Int) (struct {
	LiquidityGross                 *big.Int
	LiquidityNet                   *big.Int
	FeeGrowthOutside0X128          *big.Int
	FeeGrowthOutside1X128          *big.Int
	TickCumulativeOutside          *big.Int
	SecondsPerLiquidityOutsideX128 *big.Int
	SecondsOutside                 uint32
	Initialized                    bool
}, error)

Ticks is a free data retrieval call binding the contract method 0xf30dba93.

Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)

func (*Univ3poolCaller) Token0

func (_Univ3pool *Univ3poolCaller) Token0(opts *bind.CallOpts) (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*Univ3poolCaller) Token1

func (_Univ3pool *Univ3poolCaller) Token1(opts *bind.CallOpts) (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

type Univ3poolCallerRaw

type Univ3poolCallerRaw struct {
	Contract *Univ3poolCaller // Generic read-only contract binding to access the raw methods on
}

Univ3poolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*Univ3poolCallerRaw) Call

func (_Univ3pool *Univ3poolCallerRaw) 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 Univ3poolCallerSession

type Univ3poolCallerSession struct {
	Contract *Univ3poolCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts    // Call options to use throughout this session
}

Univ3poolCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*Univ3poolCallerSession) Factory

func (_Univ3pool *Univ3poolCallerSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*Univ3poolCallerSession) Fee

func (_Univ3pool *Univ3poolCallerSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() view returns(uint24)

func (*Univ3poolCallerSession) FeeGrowthGlobal0X128

func (_Univ3pool *Univ3poolCallerSession) FeeGrowthGlobal0X128() (*big.Int, error)

FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399.

Solidity: function feeGrowthGlobal0X128() view returns(uint256)

func (*Univ3poolCallerSession) FeeGrowthGlobal1X128

func (_Univ3pool *Univ3poolCallerSession) FeeGrowthGlobal1X128() (*big.Int, error)

FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319.

Solidity: function feeGrowthGlobal1X128() view returns(uint256)

func (*Univ3poolCallerSession) Liquidity

func (_Univ3pool *Univ3poolCallerSession) Liquidity() (*big.Int, error)

Liquidity is a free data retrieval call binding the contract method 0x1a686502.

Solidity: function liquidity() view returns(uint128)

func (*Univ3poolCallerSession) MaxLiquidityPerTick

func (_Univ3pool *Univ3poolCallerSession) MaxLiquidityPerTick() (*big.Int, error)

MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a.

Solidity: function maxLiquidityPerTick() view returns(uint128)

func (*Univ3poolCallerSession) Observations

func (_Univ3pool *Univ3poolCallerSession) Observations(index *big.Int) (struct {
	BlockTimestamp                    uint32
	TickCumulative                    *big.Int
	SecondsPerLiquidityCumulativeX128 *big.Int
	Initialized                       bool
}, error)

Observations is a free data retrieval call binding the contract method 0x252c09d7.

Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized)

func (*Univ3poolCallerSession) Observe

func (_Univ3pool *Univ3poolCallerSession) Observe(secondsAgos []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[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)

func (*Univ3poolCallerSession) Positions

func (_Univ3pool *Univ3poolCallerSession) Positions(key [32]byte) (struct {
	Liquidity                *big.Int
	FeeGrowthInside0LastX128 *big.Int
	FeeGrowthInside1LastX128 *big.Int
	TokensOwed0              *big.Int
	TokensOwed1              *big.Int
}, error)

Positions is a free data retrieval call binding the contract method 0x514ea4bf.

Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)

func (*Univ3poolCallerSession) ProtocolFees

func (_Univ3pool *Univ3poolCallerSession) ProtocolFees() (struct {
	Token0 *big.Int
	Token1 *big.Int
}, error)

ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b.

Solidity: function protocolFees() view returns(uint128 token0, uint128 token1)

func (*Univ3poolCallerSession) Slot0

func (_Univ3pool *Univ3poolCallerSession) 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 (*Univ3poolCallerSession) SnapshotCumulativesInside

func (_Univ3pool *Univ3poolCallerSession) SnapshotCumulativesInside(tickLower *big.Int, tickUpper *big.Int) (struct {
	TickCumulativeInside          *big.Int
	SecondsPerLiquidityInsideX128 *big.Int
	SecondsInside                 uint32
}, error)

SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2.

Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside)

func (*Univ3poolCallerSession) TickBitmap

func (_Univ3pool *Univ3poolCallerSession) TickBitmap(wordPosition int16) (*big.Int, error)

TickBitmap is a free data retrieval call binding the contract method 0x5339c296.

Solidity: function tickBitmap(int16 wordPosition) view returns(uint256)

func (*Univ3poolCallerSession) TickSpacing

func (_Univ3pool *Univ3poolCallerSession) TickSpacing() (*big.Int, error)

TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.

Solidity: function tickSpacing() view returns(int24)

func (*Univ3poolCallerSession) Ticks

func (_Univ3pool *Univ3poolCallerSession) Ticks(tick *big.Int) (struct {
	LiquidityGross                 *big.Int
	LiquidityNet                   *big.Int
	FeeGrowthOutside0X128          *big.Int
	FeeGrowthOutside1X128          *big.Int
	TickCumulativeOutside          *big.Int
	SecondsPerLiquidityOutsideX128 *big.Int
	SecondsOutside                 uint32
	Initialized                    bool
}, error)

Ticks is a free data retrieval call binding the contract method 0xf30dba93.

Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)

func (*Univ3poolCallerSession) Token0

func (_Univ3pool *Univ3poolCallerSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*Univ3poolCallerSession) Token1

func (_Univ3pool *Univ3poolCallerSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

type Univ3poolCollect

type Univ3poolCollect struct {
	Owner     common.Address
	Recipient common.Address
	TickLower *big.Int
	TickUpper *big.Int
	Amount0   *big.Int
	Amount1   *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

Univ3poolCollect represents a Collect event raised by the Univ3pool contract.

type Univ3poolCollectIterator

type Univ3poolCollectIterator struct {
	Event *Univ3poolCollect // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolCollectIterator is returned from FilterCollect and is used to iterate over the raw logs and unpacked data for Collect events raised by the Univ3pool contract.

func (*Univ3poolCollectIterator) Close

func (it *Univ3poolCollectIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolCollectIterator) Error

func (it *Univ3poolCollectIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolCollectIterator) Next

func (it *Univ3poolCollectIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolCollectProtocol

type Univ3poolCollectProtocol struct {
	Sender    common.Address
	Recipient common.Address
	Amount0   *big.Int
	Amount1   *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

Univ3poolCollectProtocol represents a CollectProtocol event raised by the Univ3pool contract.

type Univ3poolCollectProtocolIterator

type Univ3poolCollectProtocolIterator struct {
	Event *Univ3poolCollectProtocol // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolCollectProtocolIterator is returned from FilterCollectProtocol and is used to iterate over the raw logs and unpacked data for CollectProtocol events raised by the Univ3pool contract.

func (*Univ3poolCollectProtocolIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolCollectProtocolIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolCollectProtocolIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolFilterer

type Univ3poolFilterer struct {
	// contains filtered or unexported fields
}

Univ3poolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewUniv3poolFilterer

func NewUniv3poolFilterer(address common.Address, filterer bind.ContractFilterer) (*Univ3poolFilterer, error)

NewUniv3poolFilterer creates a new log filterer instance of Univ3pool, bound to a specific deployed contract.

func (*Univ3poolFilterer) FilterBurn

func (_Univ3pool *Univ3poolFilterer) FilterBurn(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*Univ3poolBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c.

Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)

func (*Univ3poolFilterer) FilterCollect

func (_Univ3pool *Univ3poolFilterer) FilterCollect(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*Univ3poolCollectIterator, error)

FilterCollect is a free log retrieval operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0.

Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1)

func (*Univ3poolFilterer) FilterCollectProtocol

func (_Univ3pool *Univ3poolFilterer) FilterCollectProtocol(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*Univ3poolCollectProtocolIterator, error)

FilterCollectProtocol is a free log retrieval operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151.

Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1)

func (*Univ3poolFilterer) FilterFlash

func (_Univ3pool *Univ3poolFilterer) FilterFlash(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*Univ3poolFlashIterator, error)

FilterFlash is a free log retrieval operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633.

Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1)

func (*Univ3poolFilterer) FilterIncreaseObservationCardinalityNext

func (_Univ3pool *Univ3poolFilterer) FilterIncreaseObservationCardinalityNext(opts *bind.FilterOpts) (*Univ3poolIncreaseObservationCardinalityNextIterator, error)

FilterIncreaseObservationCardinalityNext is a free log retrieval operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a.

Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew)

func (*Univ3poolFilterer) FilterInitialize

func (_Univ3pool *Univ3poolFilterer) FilterInitialize(opts *bind.FilterOpts) (*Univ3poolInitializeIterator, error)

FilterInitialize is a free log retrieval operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95.

Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick)

func (*Univ3poolFilterer) FilterMint

func (_Univ3pool *Univ3poolFilterer) FilterMint(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*Univ3poolMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde.

Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)

func (*Univ3poolFilterer) FilterSetFeeProtocol

func (_Univ3pool *Univ3poolFilterer) FilterSetFeeProtocol(opts *bind.FilterOpts) (*Univ3poolSetFeeProtocolIterator, error)

FilterSetFeeProtocol is a free log retrieval operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133.

Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New)

func (*Univ3poolFilterer) FilterSwap

func (_Univ3pool *Univ3poolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*Univ3poolSwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67.

Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)

func (*Univ3poolFilterer) ParseBurn

func (_Univ3pool *Univ3poolFilterer) ParseBurn(log types.Log) (*Univ3poolBurn, error)

ParseBurn is a log parse operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c.

Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)

func (*Univ3poolFilterer) ParseCollect

func (_Univ3pool *Univ3poolFilterer) ParseCollect(log types.Log) (*Univ3poolCollect, error)

ParseCollect is a log parse operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0.

Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1)

func (*Univ3poolFilterer) ParseCollectProtocol

func (_Univ3pool *Univ3poolFilterer) ParseCollectProtocol(log types.Log) (*Univ3poolCollectProtocol, error)

ParseCollectProtocol is a log parse operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151.

Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1)

func (*Univ3poolFilterer) ParseFlash

func (_Univ3pool *Univ3poolFilterer) ParseFlash(log types.Log) (*Univ3poolFlash, error)

ParseFlash is a log parse operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633.

Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1)

func (*Univ3poolFilterer) ParseIncreaseObservationCardinalityNext

func (_Univ3pool *Univ3poolFilterer) ParseIncreaseObservationCardinalityNext(log types.Log) (*Univ3poolIncreaseObservationCardinalityNext, error)

ParseIncreaseObservationCardinalityNext is a log parse operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a.

Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew)

func (*Univ3poolFilterer) ParseInitialize

func (_Univ3pool *Univ3poolFilterer) ParseInitialize(log types.Log) (*Univ3poolInitialize, error)

ParseInitialize is a log parse operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95.

Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick)

func (*Univ3poolFilterer) ParseMint

func (_Univ3pool *Univ3poolFilterer) ParseMint(log types.Log) (*Univ3poolMint, error)

ParseMint is a log parse operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde.

Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)

func (*Univ3poolFilterer) ParseSetFeeProtocol

func (_Univ3pool *Univ3poolFilterer) ParseSetFeeProtocol(log types.Log) (*Univ3poolSetFeeProtocol, error)

ParseSetFeeProtocol is a log parse operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133.

Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New)

func (*Univ3poolFilterer) ParseSwap

func (_Univ3pool *Univ3poolFilterer) ParseSwap(log types.Log) (*Univ3poolSwap, error)

ParseSwap is a log parse operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67.

Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)

func (*Univ3poolFilterer) WatchBurn

func (_Univ3pool *Univ3poolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *Univ3poolBurn, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c.

Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)

func (*Univ3poolFilterer) WatchCollect

func (_Univ3pool *Univ3poolFilterer) WatchCollect(opts *bind.WatchOpts, sink chan<- *Univ3poolCollect, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error)

WatchCollect is a free log subscription operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0.

Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1)

func (*Univ3poolFilterer) WatchCollectProtocol

func (_Univ3pool *Univ3poolFilterer) WatchCollectProtocol(opts *bind.WatchOpts, sink chan<- *Univ3poolCollectProtocol, sender []common.Address, recipient []common.Address) (event.Subscription, error)

WatchCollectProtocol is a free log subscription operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151.

Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1)

func (*Univ3poolFilterer) WatchFlash

func (_Univ3pool *Univ3poolFilterer) WatchFlash(opts *bind.WatchOpts, sink chan<- *Univ3poolFlash, sender []common.Address, recipient []common.Address) (event.Subscription, error)

WatchFlash is a free log subscription operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633.

Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1)

func (*Univ3poolFilterer) WatchIncreaseObservationCardinalityNext

func (_Univ3pool *Univ3poolFilterer) WatchIncreaseObservationCardinalityNext(opts *bind.WatchOpts, sink chan<- *Univ3poolIncreaseObservationCardinalityNext) (event.Subscription, error)

WatchIncreaseObservationCardinalityNext is a free log subscription operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a.

Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew)

func (*Univ3poolFilterer) WatchInitialize

func (_Univ3pool *Univ3poolFilterer) WatchInitialize(opts *bind.WatchOpts, sink chan<- *Univ3poolInitialize) (event.Subscription, error)

WatchInitialize is a free log subscription operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95.

Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick)

func (*Univ3poolFilterer) WatchMint

func (_Univ3pool *Univ3poolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *Univ3poolMint, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde.

Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)

func (*Univ3poolFilterer) WatchSetFeeProtocol

func (_Univ3pool *Univ3poolFilterer) WatchSetFeeProtocol(opts *bind.WatchOpts, sink chan<- *Univ3poolSetFeeProtocol) (event.Subscription, error)

WatchSetFeeProtocol is a free log subscription operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133.

Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New)

func (*Univ3poolFilterer) WatchSwap

func (_Univ3pool *Univ3poolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *Univ3poolSwap, sender []common.Address, recipient []common.Address) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67.

Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)

type Univ3poolFlash

type Univ3poolFlash struct {
	Sender    common.Address
	Recipient common.Address
	Amount0   *big.Int
	Amount1   *big.Int
	Paid0     *big.Int
	Paid1     *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

Univ3poolFlash represents a Flash event raised by the Univ3pool contract.

type Univ3poolFlashIterator

type Univ3poolFlashIterator struct {
	Event *Univ3poolFlash // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolFlashIterator is returned from FilterFlash and is used to iterate over the raw logs and unpacked data for Flash events raised by the Univ3pool contract.

func (*Univ3poolFlashIterator) Close

func (it *Univ3poolFlashIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolFlashIterator) Error

func (it *Univ3poolFlashIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolFlashIterator) Next

func (it *Univ3poolFlashIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolIncreaseObservationCardinalityNext

type Univ3poolIncreaseObservationCardinalityNext struct {
	ObservationCardinalityNextOld uint16
	ObservationCardinalityNextNew uint16
	Raw                           types.Log // Blockchain specific contextual infos
}

Univ3poolIncreaseObservationCardinalityNext represents a IncreaseObservationCardinalityNext event raised by the Univ3pool contract.

type Univ3poolIncreaseObservationCardinalityNextIterator

type Univ3poolIncreaseObservationCardinalityNextIterator struct {
	Event *Univ3poolIncreaseObservationCardinalityNext // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolIncreaseObservationCardinalityNextIterator is returned from FilterIncreaseObservationCardinalityNext and is used to iterate over the raw logs and unpacked data for IncreaseObservationCardinalityNext events raised by the Univ3pool contract.

func (*Univ3poolIncreaseObservationCardinalityNextIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolIncreaseObservationCardinalityNextIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolIncreaseObservationCardinalityNextIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolInitialize

type Univ3poolInitialize struct {
	SqrtPriceX96 *big.Int
	Tick         *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

Univ3poolInitialize represents a Initialize event raised by the Univ3pool contract.

type Univ3poolInitializeIterator

type Univ3poolInitializeIterator struct {
	Event *Univ3poolInitialize // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolInitializeIterator is returned from FilterInitialize and is used to iterate over the raw logs and unpacked data for Initialize events raised by the Univ3pool contract.

func (*Univ3poolInitializeIterator) Close

func (it *Univ3poolInitializeIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolInitializeIterator) Error

func (it *Univ3poolInitializeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolInitializeIterator) Next

func (it *Univ3poolInitializeIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolMint

type Univ3poolMint struct {
	Sender    common.Address
	Owner     common.Address
	TickLower *big.Int
	TickUpper *big.Int
	Amount    *big.Int
	Amount0   *big.Int
	Amount1   *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

Univ3poolMint represents a Mint event raised by the Univ3pool contract.

type Univ3poolMintIterator

type Univ3poolMintIterator struct {
	Event *Univ3poolMint // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Univ3pool contract.

func (*Univ3poolMintIterator) Close

func (it *Univ3poolMintIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolMintIterator) Error

func (it *Univ3poolMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolMintIterator) Next

func (it *Univ3poolMintIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolRaw

type Univ3poolRaw struct {
	Contract *Univ3pool // Generic contract binding to access the raw methods on
}

Univ3poolRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*Univ3poolRaw) Call

func (_Univ3pool *Univ3poolRaw) 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 (*Univ3poolRaw) Transact

func (_Univ3pool *Univ3poolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Univ3poolRaw) Transfer

func (_Univ3pool *Univ3poolRaw) 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 Univ3poolSession

type Univ3poolSession struct {
	Contract     *Univ3pool        // 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
}

Univ3poolSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*Univ3poolSession) Burn

func (_Univ3pool *Univ3poolSession) Burn(tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xa34123a7.

Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1)

func (*Univ3poolSession) Collect

func (_Univ3pool *Univ3poolSession) Collect(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error)

Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8.

Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*Univ3poolSession) CollectProtocol

func (_Univ3pool *Univ3poolSession) CollectProtocol(recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error)

CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729.

Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*Univ3poolSession) Factory

func (_Univ3pool *Univ3poolSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*Univ3poolSession) Fee

func (_Univ3pool *Univ3poolSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() view returns(uint24)

func (*Univ3poolSession) FeeGrowthGlobal0X128

func (_Univ3pool *Univ3poolSession) FeeGrowthGlobal0X128() (*big.Int, error)

FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399.

Solidity: function feeGrowthGlobal0X128() view returns(uint256)

func (*Univ3poolSession) FeeGrowthGlobal1X128

func (_Univ3pool *Univ3poolSession) FeeGrowthGlobal1X128() (*big.Int, error)

FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319.

Solidity: function feeGrowthGlobal1X128() view returns(uint256)

func (*Univ3poolSession) Flash

func (_Univ3pool *Univ3poolSession) Flash(recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error)

Flash is a paid mutator transaction binding the contract method 0x490e6cbc.

Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns()

func (*Univ3poolSession) IncreaseObservationCardinalityNext

func (_Univ3pool *Univ3poolSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error)

IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67.

Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns()

func (*Univ3poolSession) Initialize

func (_Univ3pool *Univ3poolSession) Initialize(sqrtPriceX96 *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf637731d.

Solidity: function initialize(uint160 sqrtPriceX96) returns()

func (*Univ3poolSession) Liquidity

func (_Univ3pool *Univ3poolSession) Liquidity() (*big.Int, error)

Liquidity is a free data retrieval call binding the contract method 0x1a686502.

Solidity: function liquidity() view returns(uint128)

func (*Univ3poolSession) MaxLiquidityPerTick

func (_Univ3pool *Univ3poolSession) MaxLiquidityPerTick() (*big.Int, error)

MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a.

Solidity: function maxLiquidityPerTick() view returns(uint128)

func (*Univ3poolSession) Mint

func (_Univ3pool *Univ3poolSession) Mint(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d.

Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1)

func (*Univ3poolSession) Observations

func (_Univ3pool *Univ3poolSession) Observations(index *big.Int) (struct {
	BlockTimestamp                    uint32
	TickCumulative                    *big.Int
	SecondsPerLiquidityCumulativeX128 *big.Int
	Initialized                       bool
}, error)

Observations is a free data retrieval call binding the contract method 0x252c09d7.

Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized)

func (*Univ3poolSession) Observe

func (_Univ3pool *Univ3poolSession) Observe(secondsAgos []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[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s)

func (*Univ3poolSession) Positions

func (_Univ3pool *Univ3poolSession) Positions(key [32]byte) (struct {
	Liquidity                *big.Int
	FeeGrowthInside0LastX128 *big.Int
	FeeGrowthInside1LastX128 *big.Int
	TokensOwed0              *big.Int
	TokensOwed1              *big.Int
}, error)

Positions is a free data retrieval call binding the contract method 0x514ea4bf.

Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)

func (*Univ3poolSession) ProtocolFees

func (_Univ3pool *Univ3poolSession) ProtocolFees() (struct {
	Token0 *big.Int
	Token1 *big.Int
}, error)

ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b.

Solidity: function protocolFees() view returns(uint128 token0, uint128 token1)

func (*Univ3poolSession) SetFeeProtocol

func (_Univ3pool *Univ3poolSession) SetFeeProtocol(feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error)

SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1.

Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns()

func (*Univ3poolSession) Slot0

func (_Univ3pool *Univ3poolSession) 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 (*Univ3poolSession) SnapshotCumulativesInside

func (_Univ3pool *Univ3poolSession) SnapshotCumulativesInside(tickLower *big.Int, tickUpper *big.Int) (struct {
	TickCumulativeInside          *big.Int
	SecondsPerLiquidityInsideX128 *big.Int
	SecondsInside                 uint32
}, error)

SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2.

Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside)

func (*Univ3poolSession) Swap

func (_Univ3pool *Univ3poolSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x128acb08.

Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1)

func (*Univ3poolSession) TickBitmap

func (_Univ3pool *Univ3poolSession) TickBitmap(wordPosition int16) (*big.Int, error)

TickBitmap is a free data retrieval call binding the contract method 0x5339c296.

Solidity: function tickBitmap(int16 wordPosition) view returns(uint256)

func (*Univ3poolSession) TickSpacing

func (_Univ3pool *Univ3poolSession) TickSpacing() (*big.Int, error)

TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.

Solidity: function tickSpacing() view returns(int24)

func (*Univ3poolSession) Ticks

func (_Univ3pool *Univ3poolSession) Ticks(tick *big.Int) (struct {
	LiquidityGross                 *big.Int
	LiquidityNet                   *big.Int
	FeeGrowthOutside0X128          *big.Int
	FeeGrowthOutside1X128          *big.Int
	TickCumulativeOutside          *big.Int
	SecondsPerLiquidityOutsideX128 *big.Int
	SecondsOutside                 uint32
	Initialized                    bool
}, error)

Ticks is a free data retrieval call binding the contract method 0xf30dba93.

Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)

func (*Univ3poolSession) Token0

func (_Univ3pool *Univ3poolSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*Univ3poolSession) Token1

func (_Univ3pool *Univ3poolSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

type Univ3poolSetFeeProtocol

type Univ3poolSetFeeProtocol struct {
	FeeProtocol0Old uint8
	FeeProtocol1Old uint8
	FeeProtocol0New uint8
	FeeProtocol1New uint8
	Raw             types.Log // Blockchain specific contextual infos
}

Univ3poolSetFeeProtocol represents a SetFeeProtocol event raised by the Univ3pool contract.

type Univ3poolSetFeeProtocolIterator

type Univ3poolSetFeeProtocolIterator struct {
	Event *Univ3poolSetFeeProtocol // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolSetFeeProtocolIterator is returned from FilterSetFeeProtocol and is used to iterate over the raw logs and unpacked data for SetFeeProtocol events raised by the Univ3pool contract.

func (*Univ3poolSetFeeProtocolIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolSetFeeProtocolIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolSetFeeProtocolIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolSwap

type Univ3poolSwap struct {
	Sender       common.Address
	Recipient    common.Address
	Amount0      *big.Int
	Amount1      *big.Int
	SqrtPriceX96 *big.Int
	Liquidity    *big.Int
	Tick         *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

Univ3poolSwap represents a Swap event raised by the Univ3pool contract.

type Univ3poolSwapIterator

type Univ3poolSwapIterator struct {
	Event *Univ3poolSwap // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Univ3poolSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Univ3pool contract.

func (*Univ3poolSwapIterator) Close

func (it *Univ3poolSwapIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Univ3poolSwapIterator) Error

func (it *Univ3poolSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Univ3poolSwapIterator) Next

func (it *Univ3poolSwapIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Univ3poolTransactor

type Univ3poolTransactor struct {
	// contains filtered or unexported fields
}

Univ3poolTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewUniv3poolTransactor

func NewUniv3poolTransactor(address common.Address, transactor bind.ContractTransactor) (*Univ3poolTransactor, error)

NewUniv3poolTransactor creates a new write-only instance of Univ3pool, bound to a specific deployed contract.

func (*Univ3poolTransactor) Burn

func (_Univ3pool *Univ3poolTransactor) Burn(opts *bind.TransactOpts, tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xa34123a7.

Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1)

func (*Univ3poolTransactor) Collect

func (_Univ3pool *Univ3poolTransactor) Collect(opts *bind.TransactOpts, recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error)

Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8.

Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*Univ3poolTransactor) CollectProtocol

func (_Univ3pool *Univ3poolTransactor) CollectProtocol(opts *bind.TransactOpts, recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error)

CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729.

Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*Univ3poolTransactor) Flash

func (_Univ3pool *Univ3poolTransactor) Flash(opts *bind.TransactOpts, recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error)

Flash is a paid mutator transaction binding the contract method 0x490e6cbc.

Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns()

func (*Univ3poolTransactor) IncreaseObservationCardinalityNext

func (_Univ3pool *Univ3poolTransactor) IncreaseObservationCardinalityNext(opts *bind.TransactOpts, observationCardinalityNext uint16) (*types.Transaction, error)

IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67.

Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns()

func (*Univ3poolTransactor) Initialize

func (_Univ3pool *Univ3poolTransactor) Initialize(opts *bind.TransactOpts, sqrtPriceX96 *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf637731d.

Solidity: function initialize(uint160 sqrtPriceX96) returns()

func (*Univ3poolTransactor) Mint

func (_Univ3pool *Univ3poolTransactor) Mint(opts *bind.TransactOpts, recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d.

Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1)

func (*Univ3poolTransactor) SetFeeProtocol

func (_Univ3pool *Univ3poolTransactor) SetFeeProtocol(opts *bind.TransactOpts, feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error)

SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1.

Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns()

func (*Univ3poolTransactor) Swap

func (_Univ3pool *Univ3poolTransactor) Swap(opts *bind.TransactOpts, recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x128acb08.

Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1)

type Univ3poolTransactorRaw

type Univ3poolTransactorRaw struct {
	Contract *Univ3poolTransactor // Generic write-only contract binding to access the raw methods on
}

Univ3poolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*Univ3poolTransactorRaw) Transact

func (_Univ3pool *Univ3poolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*Univ3poolTransactorRaw) Transfer

func (_Univ3pool *Univ3poolTransactorRaw) 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 Univ3poolTransactorSession

type Univ3poolTransactorSession struct {
	Contract     *Univ3poolTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts    // Transaction auth options to use throughout this session
}

Univ3poolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*Univ3poolTransactorSession) Burn

func (_Univ3pool *Univ3poolTransactorSession) Burn(tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xa34123a7.

Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1)

func (*Univ3poolTransactorSession) Collect

func (_Univ3pool *Univ3poolTransactorSession) Collect(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error)

Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8.

Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*Univ3poolTransactorSession) CollectProtocol

func (_Univ3pool *Univ3poolTransactorSession) CollectProtocol(recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error)

CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729.

Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*Univ3poolTransactorSession) Flash

func (_Univ3pool *Univ3poolTransactorSession) Flash(recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error)

Flash is a paid mutator transaction binding the contract method 0x490e6cbc.

Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns()

func (*Univ3poolTransactorSession) IncreaseObservationCardinalityNext

func (_Univ3pool *Univ3poolTransactorSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error)

IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67.

Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns()

func (*Univ3poolTransactorSession) Initialize

func (_Univ3pool *Univ3poolTransactorSession) Initialize(sqrtPriceX96 *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf637731d.

Solidity: function initialize(uint160 sqrtPriceX96) returns()

func (*Univ3poolTransactorSession) Mint

func (_Univ3pool *Univ3poolTransactorSession) Mint(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d.

Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1)

func (*Univ3poolTransactorSession) SetFeeProtocol

func (_Univ3pool *Univ3poolTransactorSession) SetFeeProtocol(feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error)

SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1.

Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns()

func (*Univ3poolTransactorSession) Swap

func (_Univ3pool *Univ3poolTransactorSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x128acb08.

Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL