arbitrumpool

package
v0.0.0-...-5ae1e3a Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PoolABI = PoolMetaData.ABI

PoolABI is the input ABI used to generate the binding from. Deprecated: Use PoolMetaData.ABI instead.

View Source
var PoolMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"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\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"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\":false,\"internalType\":\"uint8\",\"name\":\"communityFee0New\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"communityFee1New\",\"type\":\"uint8\"}],\"name\":\"CommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"feeZto\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"feeOtz\",\"type\":\"uint16\"}],\"name\":\"Fee\",\"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\":true,\"internalType\":\"address\",\"name\":\"virtualPoolAddress\",\"type\":\"address\"}],\"name\":\"Incentive\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"liquidityCooldown\",\"type\":\"uint32\"}],\"name\":\"LiquidityCooldown\",\"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\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"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\":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\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"TickSpacing\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"activeIncentive\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"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\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"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\":[],\"name\":\"dataStorageOperator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"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\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"}],\"name\":\"getInnerCumulatives\",\"outputs\":[{\"internalType\":\"int56\",\"name\":\"innerTickCumulative\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"innerSecondsSpentPerLiquidity\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"innerSecondsSpent\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32[]\",\"name\":\"secondsAgos\",\"type\":\"uint32[]\"}],\"name\":\"getTimepoints\",\"outputs\":[{\"internalType\":\"int56[]\",\"name\":\"tickCumulatives\",\"type\":\"int56[]\"},{\"internalType\":\"uint160[]\",\"name\":\"secondsPerLiquidityCumulatives\",\"type\":\"uint160[]\"},{\"internalType\":\"uint112[]\",\"name\":\"volatilityCumulatives\",\"type\":\"uint112[]\"},{\"internalType\":\"uint256[]\",\"name\":\"volumePerAvgLiquiditys\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalState\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"feeZto\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"feeOtz\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"timepointIndex\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"communityFeeToken0\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"communityFeeToken1\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"initialPrice\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidityCooldown\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidityDesired\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityActual\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint32\",\"name\":\"lastLiquidityAddTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth1Token\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"fees0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fees1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"communityFee0\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"communityFee1\",\"type\":\"uint8\"}],\"name\":\"setCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"virtualPoolAddress\",\"type\":\"address\"}],\"name\":\"setIncentive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"newLiquidityCooldown\",\"type\":\"uint32\"}],\"name\":\"setLiquidityCooldown\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"setTickSpacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"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\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swapSupportingFeeOnInputTokens\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"\",\"type\":\"int16\"}],\"name\":\"tickTable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"liquidityTotal\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"liquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth1Token\",\"type\":\"uint256\"},{\"internalType\":\"int56\",\"name\":\"outerTickCumulative\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"outerSecondsPerLiquidity\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"outerSecondsSpent\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"timepoints\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"},{\"internalType\":\"uint32\",\"name\":\"blockTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int56\",\"name\":\"tickCumulative\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityCumulative\",\"type\":\"uint160\"},{\"internalType\":\"uint88\",\"name\":\"volatilityCumulative\",\"type\":\"uint88\"},{\"internalType\":\"int24\",\"name\":\"averageTick\",\"type\":\"int24\"},{\"internalType\":\"uint144\",\"name\":\"volumePerLiquidityCumulative\",\"type\":\"uint144\"}],\"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\"},{\"inputs\":[],\"name\":\"totalFeeGrowth0Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth1Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

PoolMetaData contains all meta data concerning the Pool contract.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	PoolCaller     // Read-only binding to the contract
	PoolTransactor // Write-only binding to the contract
	PoolFilterer   // Log filterer for contract events
}

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

func NewPool

func NewPool(address common.Address, backend bind.ContractBackend) (*Pool, error)

NewPool creates a new instance of Pool, bound to a specific deployed contract.

type PoolBurn

type PoolBurn struct {
	Owner           common.Address
	BottomTick      *big.Int
	TopTick         *big.Int
	LiquidityAmount *big.Int
	Amount0         *big.Int
	Amount1         *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

PoolBurn represents a Burn event raised by the Pool contract.

type PoolBurnIterator

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

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

func (*PoolBurnIterator) Close

func (it *PoolBurnIterator) Close() error

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

func (*PoolBurnIterator) Error

func (it *PoolBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolBurnIterator) Next

func (it *PoolBurnIterator) 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 PoolCaller

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

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

func NewPoolCaller

func NewPoolCaller(address common.Address, caller bind.ContractCaller) (*PoolCaller, error)

NewPoolCaller creates a new read-only instance of Pool, bound to a specific deployed contract.

func (*PoolCaller) ActiveIncentive

func (_Pool *PoolCaller) ActiveIncentive(opts *bind.CallOpts) (common.Address, error)

ActiveIncentive is a free data retrieval call binding the contract method 0xfacb0eb1.

Solidity: function activeIncentive() view returns(address)

func (*PoolCaller) DataStorageOperator

func (_Pool *PoolCaller) DataStorageOperator(opts *bind.CallOpts) (common.Address, error)

DataStorageOperator is a free data retrieval call binding the contract method 0x29047dfa.

Solidity: function dataStorageOperator() view returns(address)

func (*PoolCaller) Factory

func (_Pool *PoolCaller) 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 (*PoolCaller) GetInnerCumulatives

func (_Pool *PoolCaller) GetInnerCumulatives(opts *bind.CallOpts, bottomTick *big.Int, topTick *big.Int) (struct {
	InnerTickCumulative           *big.Int
	InnerSecondsSpentPerLiquidity *big.Int
	InnerSecondsSpent             uint32
}, error)

GetInnerCumulatives is a free data retrieval call binding the contract method 0x920c34e5.

Solidity: function getInnerCumulatives(int24 bottomTick, int24 topTick) view returns(int56 innerTickCumulative, uint160 innerSecondsSpentPerLiquidity, uint32 innerSecondsSpent)

func (*PoolCaller) GetTimepoints

func (_Pool *PoolCaller) GetTimepoints(opts *bind.CallOpts, secondsAgos []uint32) (struct {
	TickCumulatives                []*big.Int
	SecondsPerLiquidityCumulatives []*big.Int
	VolatilityCumulatives          []*big.Int
	VolumePerAvgLiquiditys         []*big.Int
}, error)

GetTimepoints is a free data retrieval call binding the contract method 0x9d3a5241.

Solidity: function getTimepoints(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulatives, uint112[] volatilityCumulatives, uint256[] volumePerAvgLiquiditys)

func (*PoolCaller) GlobalState

func (_Pool *PoolCaller) GlobalState(opts *bind.CallOpts) (struct {
	Price              *big.Int
	Tick               *big.Int
	FeeZto             uint16
	FeeOtz             uint16
	TimepointIndex     uint16
	CommunityFeeToken0 uint8
	CommunityFeeToken1 uint8
	Unlocked           bool
}, error)

GlobalState is a free data retrieval call binding the contract method 0xe76c01e4.

Solidity: function globalState() view returns(uint160 price, int24 tick, uint16 feeZto, uint16 feeOtz, uint16 timepointIndex, uint8 communityFeeToken0, uint8 communityFeeToken1, bool unlocked)

func (*PoolCaller) Liquidity

func (_Pool *PoolCaller) 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 (*PoolCaller) LiquidityCooldown

func (_Pool *PoolCaller) LiquidityCooldown(opts *bind.CallOpts) (uint32, error)

LiquidityCooldown is a free data retrieval call binding the contract method 0x17e25b3c.

Solidity: function liquidityCooldown() view returns(uint32)

func (*PoolCaller) MaxLiquidityPerTick

func (_Pool *PoolCaller) MaxLiquidityPerTick(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function maxLiquidityPerTick() pure returns(uint128)

func (*PoolCaller) Positions

func (_Pool *PoolCaller) Positions(opts *bind.CallOpts, arg0 [32]byte) (struct {
	Liquidity                 *big.Int
	LastLiquidityAddTimestamp uint32
	InnerFeeGrowth0Token      *big.Int
	InnerFeeGrowth1Token      *big.Int
	Fees0                     *big.Int
	Fees1                     *big.Int
}, error)

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

Solidity: function positions(bytes32 ) view returns(uint128 liquidity, uint32 lastLiquidityAddTimestamp, uint256 innerFeeGrowth0Token, uint256 innerFeeGrowth1Token, uint128 fees0, uint128 fees1)

func (*PoolCaller) TickSpacing

func (_Pool *PoolCaller) 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 (*PoolCaller) TickTable

func (_Pool *PoolCaller) TickTable(opts *bind.CallOpts, arg0 int16) (*big.Int, error)

TickTable is a free data retrieval call binding the contract method 0xc677e3e0.

Solidity: function tickTable(int16 ) view returns(uint256)

func (*PoolCaller) Ticks

func (_Pool *PoolCaller) Ticks(opts *bind.CallOpts, arg0 *big.Int) (struct {
	LiquidityTotal           *big.Int
	LiquidityDelta           *big.Int
	OuterFeeGrowth0Token     *big.Int
	OuterFeeGrowth1Token     *big.Int
	OuterTickCumulative      *big.Int
	OuterSecondsPerLiquidity *big.Int
	OuterSecondsSpent        uint32
	Initialized              bool
}, error)

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

Solidity: function ticks(int24 ) view returns(uint128 liquidityTotal, int128 liquidityDelta, uint256 outerFeeGrowth0Token, uint256 outerFeeGrowth1Token, int56 outerTickCumulative, uint160 outerSecondsPerLiquidity, uint32 outerSecondsSpent, bool initialized)

func (*PoolCaller) Timepoints

func (_Pool *PoolCaller) Timepoints(opts *bind.CallOpts, index *big.Int) (struct {
	Initialized                   bool
	BlockTimestamp                uint32
	TickCumulative                *big.Int
	SecondsPerLiquidityCumulative *big.Int
	VolatilityCumulative          *big.Int
	AverageTick                   *big.Int
	VolumePerLiquidityCumulative  *big.Int
}, error)

Timepoints is a free data retrieval call binding the contract method 0x74eceae6.

Solidity: function timepoints(uint256 index) view returns(bool initialized, uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulative, uint88 volatilityCumulative, int24 averageTick, uint144 volumePerLiquidityCumulative)

func (*PoolCaller) Token0

func (_Pool *PoolCaller) 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 (*PoolCaller) Token1

func (_Pool *PoolCaller) 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)

func (*PoolCaller) TotalFeeGrowth0Token

func (_Pool *PoolCaller) TotalFeeGrowth0Token(opts *bind.CallOpts) (*big.Int, error)

TotalFeeGrowth0Token is a free data retrieval call binding the contract method 0x6378ae44.

Solidity: function totalFeeGrowth0Token() view returns(uint256)

func (*PoolCaller) TotalFeeGrowth1Token

func (_Pool *PoolCaller) TotalFeeGrowth1Token(opts *bind.CallOpts) (*big.Int, error)

TotalFeeGrowth1Token is a free data retrieval call binding the contract method 0xecdecf42.

Solidity: function totalFeeGrowth1Token() view returns(uint256)

type PoolCallerRaw

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

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

func (*PoolCallerRaw) Call

func (_Pool *PoolCallerRaw) 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 PoolCallerSession

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

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

func (*PoolCallerSession) ActiveIncentive

func (_Pool *PoolCallerSession) ActiveIncentive() (common.Address, error)

ActiveIncentive is a free data retrieval call binding the contract method 0xfacb0eb1.

Solidity: function activeIncentive() view returns(address)

func (*PoolCallerSession) DataStorageOperator

func (_Pool *PoolCallerSession) DataStorageOperator() (common.Address, error)

DataStorageOperator is a free data retrieval call binding the contract method 0x29047dfa.

Solidity: function dataStorageOperator() view returns(address)

func (*PoolCallerSession) Factory

func (_Pool *PoolCallerSession) Factory() (common.Address, error)

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

Solidity: function factory() view returns(address)

func (*PoolCallerSession) GetInnerCumulatives

func (_Pool *PoolCallerSession) GetInnerCumulatives(bottomTick *big.Int, topTick *big.Int) (struct {
	InnerTickCumulative           *big.Int
	InnerSecondsSpentPerLiquidity *big.Int
	InnerSecondsSpent             uint32
}, error)

GetInnerCumulatives is a free data retrieval call binding the contract method 0x920c34e5.

Solidity: function getInnerCumulatives(int24 bottomTick, int24 topTick) view returns(int56 innerTickCumulative, uint160 innerSecondsSpentPerLiquidity, uint32 innerSecondsSpent)

func (*PoolCallerSession) GetTimepoints

func (_Pool *PoolCallerSession) GetTimepoints(secondsAgos []uint32) (struct {
	TickCumulatives                []*big.Int
	SecondsPerLiquidityCumulatives []*big.Int
	VolatilityCumulatives          []*big.Int
	VolumePerAvgLiquiditys         []*big.Int
}, error)

GetTimepoints is a free data retrieval call binding the contract method 0x9d3a5241.

Solidity: function getTimepoints(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulatives, uint112[] volatilityCumulatives, uint256[] volumePerAvgLiquiditys)

func (*PoolCallerSession) GlobalState

func (_Pool *PoolCallerSession) GlobalState() (struct {
	Price              *big.Int
	Tick               *big.Int
	FeeZto             uint16
	FeeOtz             uint16
	TimepointIndex     uint16
	CommunityFeeToken0 uint8
	CommunityFeeToken1 uint8
	Unlocked           bool
}, error)

GlobalState is a free data retrieval call binding the contract method 0xe76c01e4.

Solidity: function globalState() view returns(uint160 price, int24 tick, uint16 feeZto, uint16 feeOtz, uint16 timepointIndex, uint8 communityFeeToken0, uint8 communityFeeToken1, bool unlocked)

func (*PoolCallerSession) Liquidity

func (_Pool *PoolCallerSession) Liquidity() (*big.Int, error)

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

Solidity: function liquidity() view returns(uint128)

func (*PoolCallerSession) LiquidityCooldown

func (_Pool *PoolCallerSession) LiquidityCooldown() (uint32, error)

LiquidityCooldown is a free data retrieval call binding the contract method 0x17e25b3c.

Solidity: function liquidityCooldown() view returns(uint32)

func (*PoolCallerSession) MaxLiquidityPerTick

func (_Pool *PoolCallerSession) MaxLiquidityPerTick() (*big.Int, error)

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

Solidity: function maxLiquidityPerTick() pure returns(uint128)

func (*PoolCallerSession) Positions

func (_Pool *PoolCallerSession) Positions(arg0 [32]byte) (struct {
	Liquidity                 *big.Int
	LastLiquidityAddTimestamp uint32
	InnerFeeGrowth0Token      *big.Int
	InnerFeeGrowth1Token      *big.Int
	Fees0                     *big.Int
	Fees1                     *big.Int
}, error)

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

Solidity: function positions(bytes32 ) view returns(uint128 liquidity, uint32 lastLiquidityAddTimestamp, uint256 innerFeeGrowth0Token, uint256 innerFeeGrowth1Token, uint128 fees0, uint128 fees1)

func (*PoolCallerSession) TickSpacing

func (_Pool *PoolCallerSession) TickSpacing() (*big.Int, error)

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

Solidity: function tickSpacing() view returns(int24)

func (*PoolCallerSession) TickTable

func (_Pool *PoolCallerSession) TickTable(arg0 int16) (*big.Int, error)

TickTable is a free data retrieval call binding the contract method 0xc677e3e0.

Solidity: function tickTable(int16 ) view returns(uint256)

func (*PoolCallerSession) Ticks

func (_Pool *PoolCallerSession) Ticks(arg0 *big.Int) (struct {
	LiquidityTotal           *big.Int
	LiquidityDelta           *big.Int
	OuterFeeGrowth0Token     *big.Int
	OuterFeeGrowth1Token     *big.Int
	OuterTickCumulative      *big.Int
	OuterSecondsPerLiquidity *big.Int
	OuterSecondsSpent        uint32
	Initialized              bool
}, error)

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

Solidity: function ticks(int24 ) view returns(uint128 liquidityTotal, int128 liquidityDelta, uint256 outerFeeGrowth0Token, uint256 outerFeeGrowth1Token, int56 outerTickCumulative, uint160 outerSecondsPerLiquidity, uint32 outerSecondsSpent, bool initialized)

func (*PoolCallerSession) Timepoints

func (_Pool *PoolCallerSession) Timepoints(index *big.Int) (struct {
	Initialized                   bool
	BlockTimestamp                uint32
	TickCumulative                *big.Int
	SecondsPerLiquidityCumulative *big.Int
	VolatilityCumulative          *big.Int
	AverageTick                   *big.Int
	VolumePerLiquidityCumulative  *big.Int
}, error)

Timepoints is a free data retrieval call binding the contract method 0x74eceae6.

Solidity: function timepoints(uint256 index) view returns(bool initialized, uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulative, uint88 volatilityCumulative, int24 averageTick, uint144 volumePerLiquidityCumulative)

func (*PoolCallerSession) Token0

func (_Pool *PoolCallerSession) Token0() (common.Address, error)

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

Solidity: function token0() view returns(address)

func (*PoolCallerSession) Token1

func (_Pool *PoolCallerSession) Token1() (common.Address, error)

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

Solidity: function token1() view returns(address)

func (*PoolCallerSession) TotalFeeGrowth0Token

func (_Pool *PoolCallerSession) TotalFeeGrowth0Token() (*big.Int, error)

TotalFeeGrowth0Token is a free data retrieval call binding the contract method 0x6378ae44.

Solidity: function totalFeeGrowth0Token() view returns(uint256)

func (*PoolCallerSession) TotalFeeGrowth1Token

func (_Pool *PoolCallerSession) TotalFeeGrowth1Token() (*big.Int, error)

TotalFeeGrowth1Token is a free data retrieval call binding the contract method 0xecdecf42.

Solidity: function totalFeeGrowth1Token() view returns(uint256)

type PoolCollect

type PoolCollect struct {
	Owner      common.Address
	Recipient  common.Address
	BottomTick *big.Int
	TopTick    *big.Int
	Amount0    *big.Int
	Amount1    *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

PoolCollect represents a Collect event raised by the Pool contract.

type PoolCollectIterator

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

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

func (*PoolCollectIterator) Close

func (it *PoolCollectIterator) Close() error

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

func (*PoolCollectIterator) Error

func (it *PoolCollectIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolCollectIterator) Next

func (it *PoolCollectIterator) 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 PoolCommunityFee

type PoolCommunityFee struct {
	CommunityFee0New uint8
	CommunityFee1New uint8
	Raw              types.Log // Blockchain specific contextual infos
}

PoolCommunityFee represents a CommunityFee event raised by the Pool contract.

type PoolCommunityFeeIterator

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

PoolCommunityFeeIterator is returned from FilterCommunityFee and is used to iterate over the raw logs and unpacked data for CommunityFee events raised by the Pool contract.

func (*PoolCommunityFeeIterator) Close

func (it *PoolCommunityFeeIterator) Close() error

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

func (*PoolCommunityFeeIterator) Error

func (it *PoolCommunityFeeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolCommunityFeeIterator) Next

func (it *PoolCommunityFeeIterator) 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 PoolFee

type PoolFee struct {
	FeeZto uint16
	FeeOtz uint16
	Raw    types.Log // Blockchain specific contextual infos
}

PoolFee represents a Fee event raised by the Pool contract.

type PoolFeeIterator

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

PoolFeeIterator is returned from FilterFee and is used to iterate over the raw logs and unpacked data for Fee events raised by the Pool contract.

func (*PoolFeeIterator) Close

func (it *PoolFeeIterator) Close() error

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

func (*PoolFeeIterator) Error

func (it *PoolFeeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolFeeIterator) Next

func (it *PoolFeeIterator) 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 PoolFilterer

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

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

func NewPoolFilterer

func NewPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*PoolFilterer, error)

NewPoolFilterer creates a new log filterer instance of Pool, bound to a specific deployed contract.

func (*PoolFilterer) FilterBurn

func (_Pool *PoolFilterer) FilterBurn(opts *bind.FilterOpts, owner []common.Address, bottomTick []*big.Int, topTick []*big.Int) (*PoolBurnIterator, error)

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

Solidity: event Burn(address indexed owner, int24 indexed bottomTick, int24 indexed topTick, uint128 liquidityAmount, uint256 amount0, uint256 amount1)

func (*PoolFilterer) FilterCollect

func (_Pool *PoolFilterer) FilterCollect(opts *bind.FilterOpts, owner []common.Address, bottomTick []*big.Int, topTick []*big.Int) (*PoolCollectIterator, error)

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

Solidity: event Collect(address indexed owner, address recipient, int24 indexed bottomTick, int24 indexed topTick, uint128 amount0, uint128 amount1)

func (*PoolFilterer) FilterCommunityFee

func (_Pool *PoolFilterer) FilterCommunityFee(opts *bind.FilterOpts) (*PoolCommunityFeeIterator, error)

FilterCommunityFee is a free log retrieval operation binding the contract event 0x9e22b964b08e25c3aaa72102bb0071c089258fb82d51271a8ddf5c24921356ee.

Solidity: event CommunityFee(uint8 communityFee0New, uint8 communityFee1New)

func (*PoolFilterer) FilterFee

func (_Pool *PoolFilterer) FilterFee(opts *bind.FilterOpts) (*PoolFeeIterator, error)

FilterFee is a free log retrieval operation binding the contract event 0x8a89de70856bccec096661388f305b9a75f5f65cb0d8a0e1e803c39dabedb57f.

Solidity: event Fee(uint16 feeZto, uint16 feeOtz)

func (*PoolFilterer) FilterFlash

func (_Pool *PoolFilterer) FilterFlash(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*PoolFlashIterator, 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 (*PoolFilterer) FilterIncentive

func (_Pool *PoolFilterer) FilterIncentive(opts *bind.FilterOpts, virtualPoolAddress []common.Address) (*PoolIncentiveIterator, error)

FilterIncentive is a free log retrieval operation binding the contract event 0x915c5369e6580733735d1c2e30ca20dcaa395697a041033c9f35f80f53525e84.

Solidity: event Incentive(address indexed virtualPoolAddress)

func (*PoolFilterer) FilterInitialize

func (_Pool *PoolFilterer) FilterInitialize(opts *bind.FilterOpts) (*PoolInitializeIterator, error)

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

Solidity: event Initialize(uint160 price, int24 tick)

func (*PoolFilterer) FilterLiquidityCooldown

func (_Pool *PoolFilterer) FilterLiquidityCooldown(opts *bind.FilterOpts) (*PoolLiquidityCooldownIterator, error)

FilterLiquidityCooldown is a free log retrieval operation binding the contract event 0xb5e51602371b0e74f991b6e965cd7d32b4b14c7e6ede6d1298037650a0e1405f.

Solidity: event LiquidityCooldown(uint32 liquidityCooldown)

func (*PoolFilterer) FilterMint

func (_Pool *PoolFilterer) FilterMint(opts *bind.FilterOpts, owner []common.Address, bottomTick []*big.Int, topTick []*big.Int) (*PoolMintIterator, error)

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

Solidity: event Mint(address sender, address indexed owner, int24 indexed bottomTick, int24 indexed topTick, uint128 liquidityAmount, uint256 amount0, uint256 amount1)

func (*PoolFilterer) FilterSwap

func (_Pool *PoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*PoolSwapIterator, 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 price, uint128 liquidity, int24 tick)

func (*PoolFilterer) FilterTickSpacing

func (_Pool *PoolFilterer) FilterTickSpacing(opts *bind.FilterOpts) (*PoolTickSpacingIterator, error)

FilterTickSpacing is a free log retrieval operation binding the contract event 0x01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645.

Solidity: event TickSpacing(int24 newTickSpacing)

func (*PoolFilterer) ParseBurn

func (_Pool *PoolFilterer) ParseBurn(log types.Log) (*PoolBurn, error)

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

Solidity: event Burn(address indexed owner, int24 indexed bottomTick, int24 indexed topTick, uint128 liquidityAmount, uint256 amount0, uint256 amount1)

func (*PoolFilterer) ParseCollect

func (_Pool *PoolFilterer) ParseCollect(log types.Log) (*PoolCollect, error)

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

Solidity: event Collect(address indexed owner, address recipient, int24 indexed bottomTick, int24 indexed topTick, uint128 amount0, uint128 amount1)

func (*PoolFilterer) ParseCommunityFee

func (_Pool *PoolFilterer) ParseCommunityFee(log types.Log) (*PoolCommunityFee, error)

ParseCommunityFee is a log parse operation binding the contract event 0x9e22b964b08e25c3aaa72102bb0071c089258fb82d51271a8ddf5c24921356ee.

Solidity: event CommunityFee(uint8 communityFee0New, uint8 communityFee1New)

func (*PoolFilterer) ParseFee

func (_Pool *PoolFilterer) ParseFee(log types.Log) (*PoolFee, error)

ParseFee is a log parse operation binding the contract event 0x8a89de70856bccec096661388f305b9a75f5f65cb0d8a0e1e803c39dabedb57f.

Solidity: event Fee(uint16 feeZto, uint16 feeOtz)

func (*PoolFilterer) ParseFlash

func (_Pool *PoolFilterer) ParseFlash(log types.Log) (*PoolFlash, 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 (*PoolFilterer) ParseIncentive

func (_Pool *PoolFilterer) ParseIncentive(log types.Log) (*PoolIncentive, error)

ParseIncentive is a log parse operation binding the contract event 0x915c5369e6580733735d1c2e30ca20dcaa395697a041033c9f35f80f53525e84.

Solidity: event Incentive(address indexed virtualPoolAddress)

func (*PoolFilterer) ParseInitialize

func (_Pool *PoolFilterer) ParseInitialize(log types.Log) (*PoolInitialize, error)

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

Solidity: event Initialize(uint160 price, int24 tick)

func (*PoolFilterer) ParseLiquidityCooldown

func (_Pool *PoolFilterer) ParseLiquidityCooldown(log types.Log) (*PoolLiquidityCooldown, error)

ParseLiquidityCooldown is a log parse operation binding the contract event 0xb5e51602371b0e74f991b6e965cd7d32b4b14c7e6ede6d1298037650a0e1405f.

Solidity: event LiquidityCooldown(uint32 liquidityCooldown)

func (*PoolFilterer) ParseMint

func (_Pool *PoolFilterer) ParseMint(log types.Log) (*PoolMint, error)

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

Solidity: event Mint(address sender, address indexed owner, int24 indexed bottomTick, int24 indexed topTick, uint128 liquidityAmount, uint256 amount0, uint256 amount1)

func (*PoolFilterer) ParseSwap

func (_Pool *PoolFilterer) ParseSwap(log types.Log) (*PoolSwap, 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 price, uint128 liquidity, int24 tick)

func (*PoolFilterer) ParseTickSpacing

func (_Pool *PoolFilterer) ParseTickSpacing(log types.Log) (*PoolTickSpacing, error)

ParseTickSpacing is a log parse operation binding the contract event 0x01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645.

Solidity: event TickSpacing(int24 newTickSpacing)

func (*PoolFilterer) WatchBurn

func (_Pool *PoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *PoolBurn, owner []common.Address, bottomTick []*big.Int, topTick []*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 bottomTick, int24 indexed topTick, uint128 liquidityAmount, uint256 amount0, uint256 amount1)

func (*PoolFilterer) WatchCollect

func (_Pool *PoolFilterer) WatchCollect(opts *bind.WatchOpts, sink chan<- *PoolCollect, owner []common.Address, bottomTick []*big.Int, topTick []*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 bottomTick, int24 indexed topTick, uint128 amount0, uint128 amount1)

func (*PoolFilterer) WatchCommunityFee

func (_Pool *PoolFilterer) WatchCommunityFee(opts *bind.WatchOpts, sink chan<- *PoolCommunityFee) (event.Subscription, error)

WatchCommunityFee is a free log subscription operation binding the contract event 0x9e22b964b08e25c3aaa72102bb0071c089258fb82d51271a8ddf5c24921356ee.

Solidity: event CommunityFee(uint8 communityFee0New, uint8 communityFee1New)

func (*PoolFilterer) WatchFee

func (_Pool *PoolFilterer) WatchFee(opts *bind.WatchOpts, sink chan<- *PoolFee) (event.Subscription, error)

WatchFee is a free log subscription operation binding the contract event 0x8a89de70856bccec096661388f305b9a75f5f65cb0d8a0e1e803c39dabedb57f.

Solidity: event Fee(uint16 feeZto, uint16 feeOtz)

func (*PoolFilterer) WatchFlash

func (_Pool *PoolFilterer) WatchFlash(opts *bind.WatchOpts, sink chan<- *PoolFlash, 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 (*PoolFilterer) WatchIncentive

func (_Pool *PoolFilterer) WatchIncentive(opts *bind.WatchOpts, sink chan<- *PoolIncentive, virtualPoolAddress []common.Address) (event.Subscription, error)

WatchIncentive is a free log subscription operation binding the contract event 0x915c5369e6580733735d1c2e30ca20dcaa395697a041033c9f35f80f53525e84.

Solidity: event Incentive(address indexed virtualPoolAddress)

func (*PoolFilterer) WatchInitialize

func (_Pool *PoolFilterer) WatchInitialize(opts *bind.WatchOpts, sink chan<- *PoolInitialize) (event.Subscription, error)

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

Solidity: event Initialize(uint160 price, int24 tick)

func (*PoolFilterer) WatchLiquidityCooldown

func (_Pool *PoolFilterer) WatchLiquidityCooldown(opts *bind.WatchOpts, sink chan<- *PoolLiquidityCooldown) (event.Subscription, error)

WatchLiquidityCooldown is a free log subscription operation binding the contract event 0xb5e51602371b0e74f991b6e965cd7d32b4b14c7e6ede6d1298037650a0e1405f.

Solidity: event LiquidityCooldown(uint32 liquidityCooldown)

func (*PoolFilterer) WatchMint

func (_Pool *PoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *PoolMint, owner []common.Address, bottomTick []*big.Int, topTick []*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 bottomTick, int24 indexed topTick, uint128 liquidityAmount, uint256 amount0, uint256 amount1)

func (*PoolFilterer) WatchSwap

func (_Pool *PoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *PoolSwap, 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 price, uint128 liquidity, int24 tick)

func (*PoolFilterer) WatchTickSpacing

func (_Pool *PoolFilterer) WatchTickSpacing(opts *bind.WatchOpts, sink chan<- *PoolTickSpacing) (event.Subscription, error)

WatchTickSpacing is a free log subscription operation binding the contract event 0x01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645.

Solidity: event TickSpacing(int24 newTickSpacing)

type PoolFlash

type PoolFlash 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
}

PoolFlash represents a Flash event raised by the Pool contract.

type PoolFlashIterator

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

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

func (*PoolFlashIterator) Close

func (it *PoolFlashIterator) Close() error

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

func (*PoolFlashIterator) Error

func (it *PoolFlashIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolFlashIterator) Next

func (it *PoolFlashIterator) 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 PoolIncentive

type PoolIncentive struct {
	VirtualPoolAddress common.Address
	Raw                types.Log // Blockchain specific contextual infos
}

PoolIncentive represents a Incentive event raised by the Pool contract.

type PoolIncentiveIterator

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

PoolIncentiveIterator is returned from FilterIncentive and is used to iterate over the raw logs and unpacked data for Incentive events raised by the Pool contract.

func (*PoolIncentiveIterator) Close

func (it *PoolIncentiveIterator) Close() error

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

func (*PoolIncentiveIterator) Error

func (it *PoolIncentiveIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolIncentiveIterator) Next

func (it *PoolIncentiveIterator) 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 PoolInitialize

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

PoolInitialize represents a Initialize event raised by the Pool contract.

type PoolInitializeIterator

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

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

func (*PoolInitializeIterator) Close

func (it *PoolInitializeIterator) Close() error

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

func (*PoolInitializeIterator) Error

func (it *PoolInitializeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolInitializeIterator) Next

func (it *PoolInitializeIterator) 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 PoolLiquidityCooldown

type PoolLiquidityCooldown struct {
	LiquidityCooldown uint32
	Raw               types.Log // Blockchain specific contextual infos
}

PoolLiquidityCooldown represents a LiquidityCooldown event raised by the Pool contract.

type PoolLiquidityCooldownIterator

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

PoolLiquidityCooldownIterator is returned from FilterLiquidityCooldown and is used to iterate over the raw logs and unpacked data for LiquidityCooldown events raised by the Pool contract.

func (*PoolLiquidityCooldownIterator) Close

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

func (*PoolLiquidityCooldownIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolLiquidityCooldownIterator) 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 PoolMint

type PoolMint struct {
	Sender          common.Address
	Owner           common.Address
	BottomTick      *big.Int
	TopTick         *big.Int
	LiquidityAmount *big.Int
	Amount0         *big.Int
	Amount1         *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

PoolMint represents a Mint event raised by the Pool contract.

type PoolMintIterator

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

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

func (*PoolMintIterator) Close

func (it *PoolMintIterator) Close() error

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

func (*PoolMintIterator) Error

func (it *PoolMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolMintIterator) Next

func (it *PoolMintIterator) 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 PoolRaw

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

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

func (*PoolRaw) Call

func (_Pool *PoolRaw) 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 (*PoolRaw) Transact

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

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

func (*PoolRaw) Transfer

func (_Pool *PoolRaw) 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 PoolSession

type PoolSession struct {
	Contract     *Pool             // 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
}

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

func (*PoolSession) ActiveIncentive

func (_Pool *PoolSession) ActiveIncentive() (common.Address, error)

ActiveIncentive is a free data retrieval call binding the contract method 0xfacb0eb1.

Solidity: function activeIncentive() view returns(address)

func (*PoolSession) Burn

func (_Pool *PoolSession) Burn(bottomTick *big.Int, topTick *big.Int, amount *big.Int) (*types.Transaction, error)

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

Solidity: function burn(int24 bottomTick, int24 topTick, uint128 amount) returns(uint256 amount0, uint256 amount1)

func (*PoolSession) Collect

func (_Pool *PoolSession) Collect(recipient common.Address, bottomTick *big.Int, topTick *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 bottomTick, int24 topTick, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*PoolSession) DataStorageOperator

func (_Pool *PoolSession) DataStorageOperator() (common.Address, error)

DataStorageOperator is a free data retrieval call binding the contract method 0x29047dfa.

Solidity: function dataStorageOperator() view returns(address)

func (*PoolSession) Factory

func (_Pool *PoolSession) Factory() (common.Address, error)

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

Solidity: function factory() view returns(address)

func (*PoolSession) Flash

func (_Pool *PoolSession) 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 (*PoolSession) GetInnerCumulatives

func (_Pool *PoolSession) GetInnerCumulatives(bottomTick *big.Int, topTick *big.Int) (struct {
	InnerTickCumulative           *big.Int
	InnerSecondsSpentPerLiquidity *big.Int
	InnerSecondsSpent             uint32
}, error)

GetInnerCumulatives is a free data retrieval call binding the contract method 0x920c34e5.

Solidity: function getInnerCumulatives(int24 bottomTick, int24 topTick) view returns(int56 innerTickCumulative, uint160 innerSecondsSpentPerLiquidity, uint32 innerSecondsSpent)

func (*PoolSession) GetTimepoints

func (_Pool *PoolSession) GetTimepoints(secondsAgos []uint32) (struct {
	TickCumulatives                []*big.Int
	SecondsPerLiquidityCumulatives []*big.Int
	VolatilityCumulatives          []*big.Int
	VolumePerAvgLiquiditys         []*big.Int
}, error)

GetTimepoints is a free data retrieval call binding the contract method 0x9d3a5241.

Solidity: function getTimepoints(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulatives, uint112[] volatilityCumulatives, uint256[] volumePerAvgLiquiditys)

func (*PoolSession) GlobalState

func (_Pool *PoolSession) GlobalState() (struct {
	Price              *big.Int
	Tick               *big.Int
	FeeZto             uint16
	FeeOtz             uint16
	TimepointIndex     uint16
	CommunityFeeToken0 uint8
	CommunityFeeToken1 uint8
	Unlocked           bool
}, error)

GlobalState is a free data retrieval call binding the contract method 0xe76c01e4.

Solidity: function globalState() view returns(uint160 price, int24 tick, uint16 feeZto, uint16 feeOtz, uint16 timepointIndex, uint8 communityFeeToken0, uint8 communityFeeToken1, bool unlocked)

func (*PoolSession) Initialize

func (_Pool *PoolSession) Initialize(initialPrice *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(uint160 initialPrice) returns()

func (*PoolSession) Liquidity

func (_Pool *PoolSession) Liquidity() (*big.Int, error)

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

Solidity: function liquidity() view returns(uint128)

func (*PoolSession) LiquidityCooldown

func (_Pool *PoolSession) LiquidityCooldown() (uint32, error)

LiquidityCooldown is a free data retrieval call binding the contract method 0x17e25b3c.

Solidity: function liquidityCooldown() view returns(uint32)

func (*PoolSession) MaxLiquidityPerTick

func (_Pool *PoolSession) MaxLiquidityPerTick() (*big.Int, error)

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

Solidity: function maxLiquidityPerTick() pure returns(uint128)

func (*PoolSession) Mint

func (_Pool *PoolSession) Mint(sender common.Address, recipient common.Address, bottomTick *big.Int, topTick *big.Int, liquidityDesired *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function mint(address sender, address recipient, int24 bottomTick, int24 topTick, uint128 liquidityDesired, bytes data) returns(uint256 amount0, uint256 amount1, uint128 liquidityActual)

func (*PoolSession) Positions

func (_Pool *PoolSession) Positions(arg0 [32]byte) (struct {
	Liquidity                 *big.Int
	LastLiquidityAddTimestamp uint32
	InnerFeeGrowth0Token      *big.Int
	InnerFeeGrowth1Token      *big.Int
	Fees0                     *big.Int
	Fees1                     *big.Int
}, error)

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

Solidity: function positions(bytes32 ) view returns(uint128 liquidity, uint32 lastLiquidityAddTimestamp, uint256 innerFeeGrowth0Token, uint256 innerFeeGrowth1Token, uint128 fees0, uint128 fees1)

func (*PoolSession) SetCommunityFee

func (_Pool *PoolSession) SetCommunityFee(communityFee0 uint8, communityFee1 uint8) (*types.Transaction, error)

SetCommunityFee is a paid mutator transaction binding the contract method 0x7c0112b7.

Solidity: function setCommunityFee(uint8 communityFee0, uint8 communityFee1) returns()

func (*PoolSession) SetIncentive

func (_Pool *PoolSession) SetIncentive(virtualPoolAddress common.Address) (*types.Transaction, error)

SetIncentive is a paid mutator transaction binding the contract method 0x7c1fe0c8.

Solidity: function setIncentive(address virtualPoolAddress) returns()

func (*PoolSession) SetLiquidityCooldown

func (_Pool *PoolSession) SetLiquidityCooldown(newLiquidityCooldown uint32) (*types.Transaction, error)

SetLiquidityCooldown is a paid mutator transaction binding the contract method 0x289fe9b0.

Solidity: function setLiquidityCooldown(uint32 newLiquidityCooldown) returns()

func (*PoolSession) SetTickSpacing

func (_Pool *PoolSession) SetTickSpacing(newTickSpacing *big.Int) (*types.Transaction, error)

SetTickSpacing is a paid mutator transaction binding the contract method 0xf085a610.

Solidity: function setTickSpacing(int24 newTickSpacing) returns()

func (*PoolSession) Swap

func (_Pool *PoolSession) Swap(recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function swap(address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)

func (*PoolSession) SwapSupportingFeeOnInputTokens

func (_Pool *PoolSession) SwapSupportingFeeOnInputTokens(sender common.Address, recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error)

SwapSupportingFeeOnInputTokens is a paid mutator transaction binding the contract method 0x71334694.

Solidity: function swapSupportingFeeOnInputTokens(address sender, address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)

func (*PoolSession) TickSpacing

func (_Pool *PoolSession) TickSpacing() (*big.Int, error)

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

Solidity: function tickSpacing() view returns(int24)

func (*PoolSession) TickTable

func (_Pool *PoolSession) TickTable(arg0 int16) (*big.Int, error)

TickTable is a free data retrieval call binding the contract method 0xc677e3e0.

Solidity: function tickTable(int16 ) view returns(uint256)

func (*PoolSession) Ticks

func (_Pool *PoolSession) Ticks(arg0 *big.Int) (struct {
	LiquidityTotal           *big.Int
	LiquidityDelta           *big.Int
	OuterFeeGrowth0Token     *big.Int
	OuterFeeGrowth1Token     *big.Int
	OuterTickCumulative      *big.Int
	OuterSecondsPerLiquidity *big.Int
	OuterSecondsSpent        uint32
	Initialized              bool
}, error)

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

Solidity: function ticks(int24 ) view returns(uint128 liquidityTotal, int128 liquidityDelta, uint256 outerFeeGrowth0Token, uint256 outerFeeGrowth1Token, int56 outerTickCumulative, uint160 outerSecondsPerLiquidity, uint32 outerSecondsSpent, bool initialized)

func (*PoolSession) Timepoints

func (_Pool *PoolSession) Timepoints(index *big.Int) (struct {
	Initialized                   bool
	BlockTimestamp                uint32
	TickCumulative                *big.Int
	SecondsPerLiquidityCumulative *big.Int
	VolatilityCumulative          *big.Int
	AverageTick                   *big.Int
	VolumePerLiquidityCumulative  *big.Int
}, error)

Timepoints is a free data retrieval call binding the contract method 0x74eceae6.

Solidity: function timepoints(uint256 index) view returns(bool initialized, uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulative, uint88 volatilityCumulative, int24 averageTick, uint144 volumePerLiquidityCumulative)

func (*PoolSession) Token0

func (_Pool *PoolSession) Token0() (common.Address, error)

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

Solidity: function token0() view returns(address)

func (*PoolSession) Token1

func (_Pool *PoolSession) Token1() (common.Address, error)

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

Solidity: function token1() view returns(address)

func (*PoolSession) TotalFeeGrowth0Token

func (_Pool *PoolSession) TotalFeeGrowth0Token() (*big.Int, error)

TotalFeeGrowth0Token is a free data retrieval call binding the contract method 0x6378ae44.

Solidity: function totalFeeGrowth0Token() view returns(uint256)

func (*PoolSession) TotalFeeGrowth1Token

func (_Pool *PoolSession) TotalFeeGrowth1Token() (*big.Int, error)

TotalFeeGrowth1Token is a free data retrieval call binding the contract method 0xecdecf42.

Solidity: function totalFeeGrowth1Token() view returns(uint256)

type PoolSwap

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

PoolSwap represents a Swap event raised by the Pool contract.

type PoolSwapIterator

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

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

func (*PoolSwapIterator) Close

func (it *PoolSwapIterator) Close() error

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

func (*PoolSwapIterator) Error

func (it *PoolSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolSwapIterator) Next

func (it *PoolSwapIterator) 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 PoolTickSpacing

type PoolTickSpacing struct {
	NewTickSpacing *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

PoolTickSpacing represents a TickSpacing event raised by the Pool contract.

type PoolTickSpacingIterator

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

PoolTickSpacingIterator is returned from FilterTickSpacing and is used to iterate over the raw logs and unpacked data for TickSpacing events raised by the Pool contract.

func (*PoolTickSpacingIterator) Close

func (it *PoolTickSpacingIterator) Close() error

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

func (*PoolTickSpacingIterator) Error

func (it *PoolTickSpacingIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolTickSpacingIterator) Next

func (it *PoolTickSpacingIterator) 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 PoolTransactor

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

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

func NewPoolTransactor

func NewPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*PoolTransactor, error)

NewPoolTransactor creates a new write-only instance of Pool, bound to a specific deployed contract.

func (*PoolTransactor) Burn

func (_Pool *PoolTransactor) Burn(opts *bind.TransactOpts, bottomTick *big.Int, topTick *big.Int, amount *big.Int) (*types.Transaction, error)

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

Solidity: function burn(int24 bottomTick, int24 topTick, uint128 amount) returns(uint256 amount0, uint256 amount1)

func (*PoolTransactor) Collect

func (_Pool *PoolTransactor) Collect(opts *bind.TransactOpts, recipient common.Address, bottomTick *big.Int, topTick *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 bottomTick, int24 topTick, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*PoolTransactor) Flash

func (_Pool *PoolTransactor) 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 (*PoolTransactor) Initialize

func (_Pool *PoolTransactor) Initialize(opts *bind.TransactOpts, initialPrice *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(uint160 initialPrice) returns()

func (*PoolTransactor) Mint

func (_Pool *PoolTransactor) Mint(opts *bind.TransactOpts, sender common.Address, recipient common.Address, bottomTick *big.Int, topTick *big.Int, liquidityDesired *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function mint(address sender, address recipient, int24 bottomTick, int24 topTick, uint128 liquidityDesired, bytes data) returns(uint256 amount0, uint256 amount1, uint128 liquidityActual)

func (*PoolTransactor) SetCommunityFee

func (_Pool *PoolTransactor) SetCommunityFee(opts *bind.TransactOpts, communityFee0 uint8, communityFee1 uint8) (*types.Transaction, error)

SetCommunityFee is a paid mutator transaction binding the contract method 0x7c0112b7.

Solidity: function setCommunityFee(uint8 communityFee0, uint8 communityFee1) returns()

func (*PoolTransactor) SetIncentive

func (_Pool *PoolTransactor) SetIncentive(opts *bind.TransactOpts, virtualPoolAddress common.Address) (*types.Transaction, error)

SetIncentive is a paid mutator transaction binding the contract method 0x7c1fe0c8.

Solidity: function setIncentive(address virtualPoolAddress) returns()

func (*PoolTransactor) SetLiquidityCooldown

func (_Pool *PoolTransactor) SetLiquidityCooldown(opts *bind.TransactOpts, newLiquidityCooldown uint32) (*types.Transaction, error)

SetLiquidityCooldown is a paid mutator transaction binding the contract method 0x289fe9b0.

Solidity: function setLiquidityCooldown(uint32 newLiquidityCooldown) returns()

func (*PoolTransactor) SetTickSpacing

func (_Pool *PoolTransactor) SetTickSpacing(opts *bind.TransactOpts, newTickSpacing *big.Int) (*types.Transaction, error)

SetTickSpacing is a paid mutator transaction binding the contract method 0xf085a610.

Solidity: function setTickSpacing(int24 newTickSpacing) returns()

func (*PoolTransactor) Swap

func (_Pool *PoolTransactor) Swap(opts *bind.TransactOpts, recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function swap(address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)

func (*PoolTransactor) SwapSupportingFeeOnInputTokens

func (_Pool *PoolTransactor) SwapSupportingFeeOnInputTokens(opts *bind.TransactOpts, sender common.Address, recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error)

SwapSupportingFeeOnInputTokens is a paid mutator transaction binding the contract method 0x71334694.

Solidity: function swapSupportingFeeOnInputTokens(address sender, address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)

type PoolTransactorRaw

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

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

func (*PoolTransactorRaw) Transact

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

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

func (*PoolTransactorRaw) Transfer

func (_Pool *PoolTransactorRaw) 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 PoolTransactorSession

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

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

func (*PoolTransactorSession) Burn

func (_Pool *PoolTransactorSession) Burn(bottomTick *big.Int, topTick *big.Int, amount *big.Int) (*types.Transaction, error)

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

Solidity: function burn(int24 bottomTick, int24 topTick, uint128 amount) returns(uint256 amount0, uint256 amount1)

func (*PoolTransactorSession) Collect

func (_Pool *PoolTransactorSession) Collect(recipient common.Address, bottomTick *big.Int, topTick *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 bottomTick, int24 topTick, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1)

func (*PoolTransactorSession) Flash

func (_Pool *PoolTransactorSession) 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 (*PoolTransactorSession) Initialize

func (_Pool *PoolTransactorSession) Initialize(initialPrice *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(uint160 initialPrice) returns()

func (*PoolTransactorSession) Mint

func (_Pool *PoolTransactorSession) Mint(sender common.Address, recipient common.Address, bottomTick *big.Int, topTick *big.Int, liquidityDesired *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function mint(address sender, address recipient, int24 bottomTick, int24 topTick, uint128 liquidityDesired, bytes data) returns(uint256 amount0, uint256 amount1, uint128 liquidityActual)

func (*PoolTransactorSession) SetCommunityFee

func (_Pool *PoolTransactorSession) SetCommunityFee(communityFee0 uint8, communityFee1 uint8) (*types.Transaction, error)

SetCommunityFee is a paid mutator transaction binding the contract method 0x7c0112b7.

Solidity: function setCommunityFee(uint8 communityFee0, uint8 communityFee1) returns()

func (*PoolTransactorSession) SetIncentive

func (_Pool *PoolTransactorSession) SetIncentive(virtualPoolAddress common.Address) (*types.Transaction, error)

SetIncentive is a paid mutator transaction binding the contract method 0x7c1fe0c8.

Solidity: function setIncentive(address virtualPoolAddress) returns()

func (*PoolTransactorSession) SetLiquidityCooldown

func (_Pool *PoolTransactorSession) SetLiquidityCooldown(newLiquidityCooldown uint32) (*types.Transaction, error)

SetLiquidityCooldown is a paid mutator transaction binding the contract method 0x289fe9b0.

Solidity: function setLiquidityCooldown(uint32 newLiquidityCooldown) returns()

func (*PoolTransactorSession) SetTickSpacing

func (_Pool *PoolTransactorSession) SetTickSpacing(newTickSpacing *big.Int) (*types.Transaction, error)

SetTickSpacing is a paid mutator transaction binding the contract method 0xf085a610.

Solidity: function setTickSpacing(int24 newTickSpacing) returns()

func (*PoolTransactorSession) Swap

func (_Pool *PoolTransactorSession) Swap(recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function swap(address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)

func (*PoolTransactorSession) SwapSupportingFeeOnInputTokens

func (_Pool *PoolTransactorSession) SwapSupportingFeeOnInputTokens(sender common.Address, recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error)

SwapSupportingFeeOnInputTokens is a paid mutator transaction binding the contract method 0x71334694.

Solidity: function swapSupportingFeeOnInputTokens(address sender, address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, 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