UniswapV3Pair

package
v1.4.77 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const UniswapV3PairABI = "" /* 14138-byte string literal not displayed */

UniswapV3PairABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type UniswapV3Pair

type UniswapV3Pair struct {
	UniswapV3PairCaller     // Read-only binding to the contract
	UniswapV3PairTransactor // Write-only binding to the contract
	UniswapV3PairFilterer   // Log filterer for contract events
}

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

func NewUniswapV3Pair

func NewUniswapV3Pair(address common.Address, backend bind.ContractBackend) (*UniswapV3Pair, error)

NewUniswapV3Pair creates a new instance of UniswapV3Pair, bound to a specific deployed contract.

type UniswapV3PairBurn

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

UniswapV3PairBurn represents a Burn event raised by the UniswapV3Pair contract.

type UniswapV3PairBurnIterator

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

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

func (*UniswapV3PairBurnIterator) Close

func (it *UniswapV3PairBurnIterator) Close() error

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

func (*UniswapV3PairBurnIterator) Error

func (it *UniswapV3PairBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairBurnIterator) Next

func (it *UniswapV3PairBurnIterator) 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 UniswapV3PairCaller

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

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

func NewUniswapV3PairCaller

func NewUniswapV3PairCaller(address common.Address, caller bind.ContractCaller) (*UniswapV3PairCaller, error)

NewUniswapV3PairCaller creates a new read-only instance of UniswapV3Pair, bound to a specific deployed contract.

func (*UniswapV3PairCaller) Factory

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) Fee

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) FeeGrowthGlobal0X128

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) FeeGrowthGlobal1X128

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) Liquidity

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) MaxLiquidityPerTick

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) Observations

func (_UniswapV3Pair *UniswapV3PairCaller) Observations(opts *bind.CallOpts, arg0 *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 ) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized)

func (*UniswapV3PairCaller) Observe

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) Positions

func (_UniswapV3Pair *UniswapV3PairCaller) Positions(opts *bind.CallOpts, arg0 [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 ) view returns(uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)

func (*UniswapV3PairCaller) ProtocolFees

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) Slot0

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) SnapshotCumulativesInside

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) TickBitmap

func (_UniswapV3Pair *UniswapV3PairCaller) TickBitmap(opts *bind.CallOpts, arg0 int16) (*big.Int, error)

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

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

func (*UniswapV3PairCaller) TickSpacing

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) Ticks

func (_UniswapV3Pair *UniswapV3PairCaller) Ticks(opts *bind.CallOpts, arg0 *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 ) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)

func (*UniswapV3PairCaller) Token0

func (_UniswapV3Pair *UniswapV3PairCaller) 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 (*UniswapV3PairCaller) Token1

func (_UniswapV3Pair *UniswapV3PairCaller) 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 UniswapV3PairCallerRaw

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

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

func (*UniswapV3PairCallerRaw) Call

func (_UniswapV3Pair *UniswapV3PairCallerRaw) 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 UniswapV3PairCallerSession

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

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

func (*UniswapV3PairCallerSession) Factory

func (_UniswapV3Pair *UniswapV3PairCallerSession) Factory() (common.Address, error)

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

Solidity: function factory() view returns(address)

func (*UniswapV3PairCallerSession) Fee

func (_UniswapV3Pair *UniswapV3PairCallerSession) Fee() (*big.Int, error)

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

Solidity: function fee() view returns(uint24)

func (*UniswapV3PairCallerSession) FeeGrowthGlobal0X128

func (_UniswapV3Pair *UniswapV3PairCallerSession) FeeGrowthGlobal0X128() (*big.Int, error)

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

Solidity: function feeGrowthGlobal0X128() view returns(uint256)

func (*UniswapV3PairCallerSession) FeeGrowthGlobal1X128

func (_UniswapV3Pair *UniswapV3PairCallerSession) FeeGrowthGlobal1X128() (*big.Int, error)

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

Solidity: function feeGrowthGlobal1X128() view returns(uint256)

func (*UniswapV3PairCallerSession) Liquidity

func (_UniswapV3Pair *UniswapV3PairCallerSession) Liquidity() (*big.Int, error)

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

Solidity: function liquidity() view returns(uint128)

func (*UniswapV3PairCallerSession) MaxLiquidityPerTick

func (_UniswapV3Pair *UniswapV3PairCallerSession) MaxLiquidityPerTick() (*big.Int, error)

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

Solidity: function maxLiquidityPerTick() view returns(uint128)

func (*UniswapV3PairCallerSession) Observations

func (_UniswapV3Pair *UniswapV3PairCallerSession) Observations(arg0 *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 ) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized)

func (*UniswapV3PairCallerSession) Observe

func (_UniswapV3Pair *UniswapV3PairCallerSession) 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 (*UniswapV3PairCallerSession) Positions

func (_UniswapV3Pair *UniswapV3PairCallerSession) Positions(arg0 [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 ) view returns(uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)

func (*UniswapV3PairCallerSession) ProtocolFees

func (_UniswapV3Pair *UniswapV3PairCallerSession) 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 (*UniswapV3PairCallerSession) Slot0

func (_UniswapV3Pair *UniswapV3PairCallerSession) 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 (*UniswapV3PairCallerSession) SnapshotCumulativesInside

func (_UniswapV3Pair *UniswapV3PairCallerSession) 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 (*UniswapV3PairCallerSession) TickBitmap

func (_UniswapV3Pair *UniswapV3PairCallerSession) TickBitmap(arg0 int16) (*big.Int, error)

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

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

func (*UniswapV3PairCallerSession) TickSpacing

func (_UniswapV3Pair *UniswapV3PairCallerSession) TickSpacing() (*big.Int, error)

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

Solidity: function tickSpacing() view returns(int24)

func (*UniswapV3PairCallerSession) Ticks

func (_UniswapV3Pair *UniswapV3PairCallerSession) Ticks(arg0 *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 ) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)

func (*UniswapV3PairCallerSession) Token0

func (_UniswapV3Pair *UniswapV3PairCallerSession) Token0() (common.Address, error)

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

Solidity: function token0() view returns(address)

func (*UniswapV3PairCallerSession) Token1

func (_UniswapV3Pair *UniswapV3PairCallerSession) Token1() (common.Address, error)

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

Solidity: function token1() view returns(address)

type UniswapV3PairCollect

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

UniswapV3PairCollect represents a Collect event raised by the UniswapV3Pair contract.

type UniswapV3PairCollectIterator

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

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

func (*UniswapV3PairCollectIterator) Close

func (it *UniswapV3PairCollectIterator) Close() error

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

func (*UniswapV3PairCollectIterator) Error

func (it *UniswapV3PairCollectIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairCollectIterator) 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 UniswapV3PairCollectProtocol

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

UniswapV3PairCollectProtocol represents a CollectProtocol event raised by the UniswapV3Pair contract.

type UniswapV3PairCollectProtocolIterator

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

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

func (*UniswapV3PairCollectProtocolIterator) Close

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

func (*UniswapV3PairCollectProtocolIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairCollectProtocolIterator) 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 UniswapV3PairFilterer

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

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

func NewUniswapV3PairFilterer

func NewUniswapV3PairFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV3PairFilterer, error)

NewUniswapV3PairFilterer creates a new log filterer instance of UniswapV3Pair, bound to a specific deployed contract.

func (*UniswapV3PairFilterer) FilterBurn

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterBurn(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*UniswapV3PairBurnIterator, 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 (*UniswapV3PairFilterer) FilterCollect

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterCollect(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*UniswapV3PairCollectIterator, 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 (*UniswapV3PairFilterer) FilterCollectProtocol

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterCollectProtocol(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*UniswapV3PairCollectProtocolIterator, 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 (*UniswapV3PairFilterer) FilterFlash

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterFlash(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*UniswapV3PairFlashIterator, 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 (*UniswapV3PairFilterer) FilterIncreaseObservationCardinalityNext

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterIncreaseObservationCardinalityNext(opts *bind.FilterOpts) (*UniswapV3PairIncreaseObservationCardinalityNextIterator, error)

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

Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew)

func (*UniswapV3PairFilterer) FilterInitialize

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterInitialize(opts *bind.FilterOpts) (*UniswapV3PairInitializeIterator, error)

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

Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick)

func (*UniswapV3PairFilterer) FilterMint

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterMint(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*UniswapV3PairMintIterator, 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 (*UniswapV3PairFilterer) FilterSetFeeProtocol

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterSetFeeProtocol(opts *bind.FilterOpts) (*UniswapV3PairSetFeeProtocolIterator, 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 (*UniswapV3PairFilterer) FilterSwap

func (_UniswapV3Pair *UniswapV3PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*UniswapV3PairSwapIterator, 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 (*UniswapV3PairFilterer) ParseBurn

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseBurn(log types.Log) (*UniswapV3PairBurn, 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 (*UniswapV3PairFilterer) ParseCollect

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseCollect(log types.Log) (*UniswapV3PairCollect, 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 (*UniswapV3PairFilterer) ParseCollectProtocol

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseCollectProtocol(log types.Log) (*UniswapV3PairCollectProtocol, 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 (*UniswapV3PairFilterer) ParseFlash

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseFlash(log types.Log) (*UniswapV3PairFlash, 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 (*UniswapV3PairFilterer) ParseIncreaseObservationCardinalityNext

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseIncreaseObservationCardinalityNext(log types.Log) (*UniswapV3PairIncreaseObservationCardinalityNext, error)

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

Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew)

func (*UniswapV3PairFilterer) ParseInitialize

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseInitialize(log types.Log) (*UniswapV3PairInitialize, error)

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

Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick)

func (*UniswapV3PairFilterer) ParseMint

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseMint(log types.Log) (*UniswapV3PairMint, 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 (*UniswapV3PairFilterer) ParseSetFeeProtocol

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseSetFeeProtocol(log types.Log) (*UniswapV3PairSetFeeProtocol, error)

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

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

func (*UniswapV3PairFilterer) ParseSwap

func (_UniswapV3Pair *UniswapV3PairFilterer) ParseSwap(log types.Log) (*UniswapV3PairSwap, 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 (*UniswapV3PairFilterer) WatchBurn

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *UniswapV3PairBurn, 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 (*UniswapV3PairFilterer) WatchCollect

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchCollect(opts *bind.WatchOpts, sink chan<- *UniswapV3PairCollect, 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 (*UniswapV3PairFilterer) WatchCollectProtocol

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchCollectProtocol(opts *bind.WatchOpts, sink chan<- *UniswapV3PairCollectProtocol, 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 (*UniswapV3PairFilterer) WatchFlash

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchFlash(opts *bind.WatchOpts, sink chan<- *UniswapV3PairFlash, 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 (*UniswapV3PairFilterer) WatchIncreaseObservationCardinalityNext

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchIncreaseObservationCardinalityNext(opts *bind.WatchOpts, sink chan<- *UniswapV3PairIncreaseObservationCardinalityNext) (event.Subscription, error)

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

Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew)

func (*UniswapV3PairFilterer) WatchInitialize

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchInitialize(opts *bind.WatchOpts, sink chan<- *UniswapV3PairInitialize) (event.Subscription, error)

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

Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick)

func (*UniswapV3PairFilterer) WatchMint

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *UniswapV3PairMint, 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 (*UniswapV3PairFilterer) WatchSetFeeProtocol

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchSetFeeProtocol(opts *bind.WatchOpts, sink chan<- *UniswapV3PairSetFeeProtocol) (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 (*UniswapV3PairFilterer) WatchSwap

func (_UniswapV3Pair *UniswapV3PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *UniswapV3PairSwap, 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 UniswapV3PairFlash

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

UniswapV3PairFlash represents a Flash event raised by the UniswapV3Pair contract.

type UniswapV3PairFlashIterator

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

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

func (*UniswapV3PairFlashIterator) Close

func (it *UniswapV3PairFlashIterator) Close() error

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

func (*UniswapV3PairFlashIterator) Error

func (it *UniswapV3PairFlashIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairFlashIterator) Next

func (it *UniswapV3PairFlashIterator) 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 UniswapV3PairIncreaseObservationCardinalityNext

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

UniswapV3PairIncreaseObservationCardinalityNext represents a IncreaseObservationCardinalityNext event raised by the UniswapV3Pair contract.

type UniswapV3PairIncreaseObservationCardinalityNextIterator

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

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

func (*UniswapV3PairIncreaseObservationCardinalityNextIterator) Close

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

func (*UniswapV3PairIncreaseObservationCardinalityNextIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairIncreaseObservationCardinalityNextIterator) 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 UniswapV3PairInitialize

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

UniswapV3PairInitialize represents a Initialize event raised by the UniswapV3Pair contract.

type UniswapV3PairInitializeIterator

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

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

func (*UniswapV3PairInitializeIterator) Close

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

func (*UniswapV3PairInitializeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairInitializeIterator) 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 UniswapV3PairMint

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

UniswapV3PairMint represents a Mint event raised by the UniswapV3Pair contract.

type UniswapV3PairMintIterator

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

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

func (*UniswapV3PairMintIterator) Close

func (it *UniswapV3PairMintIterator) Close() error

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

func (*UniswapV3PairMintIterator) Error

func (it *UniswapV3PairMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairMintIterator) Next

func (it *UniswapV3PairMintIterator) 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 UniswapV3PairRaw

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

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

func (*UniswapV3PairRaw) Call

func (_UniswapV3Pair *UniswapV3PairRaw) 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 (*UniswapV3PairRaw) Transact

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

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

func (*UniswapV3PairRaw) Transfer

func (_UniswapV3Pair *UniswapV3PairRaw) 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 UniswapV3PairSession

type UniswapV3PairSession struct {
	Contract     *UniswapV3Pair    // 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
}

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

func (*UniswapV3PairSession) Burn

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) Collect

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) CollectProtocol

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) Factory

func (_UniswapV3Pair *UniswapV3PairSession) Factory() (common.Address, error)

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

Solidity: function factory() view returns(address)

func (*UniswapV3PairSession) Fee

func (_UniswapV3Pair *UniswapV3PairSession) Fee() (*big.Int, error)

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

Solidity: function fee() view returns(uint24)

func (*UniswapV3PairSession) FeeGrowthGlobal0X128

func (_UniswapV3Pair *UniswapV3PairSession) FeeGrowthGlobal0X128() (*big.Int, error)

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

Solidity: function feeGrowthGlobal0X128() view returns(uint256)

func (*UniswapV3PairSession) FeeGrowthGlobal1X128

func (_UniswapV3Pair *UniswapV3PairSession) FeeGrowthGlobal1X128() (*big.Int, error)

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

Solidity: function feeGrowthGlobal1X128() view returns(uint256)

func (*UniswapV3PairSession) Flash

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) IncreaseObservationCardinalityNext

func (_UniswapV3Pair *UniswapV3PairSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error)

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

Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns()

func (*UniswapV3PairSession) Initialize

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) Liquidity

func (_UniswapV3Pair *UniswapV3PairSession) Liquidity() (*big.Int, error)

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

Solidity: function liquidity() view returns(uint128)

func (*UniswapV3PairSession) MaxLiquidityPerTick

func (_UniswapV3Pair *UniswapV3PairSession) MaxLiquidityPerTick() (*big.Int, error)

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

Solidity: function maxLiquidityPerTick() view returns(uint128)

func (*UniswapV3PairSession) Mint

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) Observations

func (_UniswapV3Pair *UniswapV3PairSession) Observations(arg0 *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 ) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized)

func (*UniswapV3PairSession) Observe

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) Positions

func (_UniswapV3Pair *UniswapV3PairSession) Positions(arg0 [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 ) view returns(uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)

func (*UniswapV3PairSession) ProtocolFees

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) SetFeeProtocol

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) Slot0

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) SnapshotCumulativesInside

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) Swap

func (_UniswapV3Pair *UniswapV3PairSession) 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 (*UniswapV3PairSession) TickBitmap

func (_UniswapV3Pair *UniswapV3PairSession) TickBitmap(arg0 int16) (*big.Int, error)

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

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

func (*UniswapV3PairSession) TickSpacing

func (_UniswapV3Pair *UniswapV3PairSession) TickSpacing() (*big.Int, error)

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

Solidity: function tickSpacing() view returns(int24)

func (*UniswapV3PairSession) Ticks

func (_UniswapV3Pair *UniswapV3PairSession) Ticks(arg0 *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 ) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)

func (*UniswapV3PairSession) Token0

func (_UniswapV3Pair *UniswapV3PairSession) Token0() (common.Address, error)

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

Solidity: function token0() view returns(address)

func (*UniswapV3PairSession) Token1

func (_UniswapV3Pair *UniswapV3PairSession) Token1() (common.Address, error)

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

Solidity: function token1() view returns(address)

type UniswapV3PairSetFeeProtocol

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

UniswapV3PairSetFeeProtocol represents a SetFeeProtocol event raised by the UniswapV3Pair contract.

type UniswapV3PairSetFeeProtocolIterator

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

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

func (*UniswapV3PairSetFeeProtocolIterator) Close

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

func (*UniswapV3PairSetFeeProtocolIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairSetFeeProtocolIterator) 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 UniswapV3PairSwap

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

UniswapV3PairSwap represents a Swap event raised by the UniswapV3Pair contract.

type UniswapV3PairSwapIterator

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

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

func (*UniswapV3PairSwapIterator) Close

func (it *UniswapV3PairSwapIterator) Close() error

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

func (*UniswapV3PairSwapIterator) Error

func (it *UniswapV3PairSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniswapV3PairSwapIterator) Next

func (it *UniswapV3PairSwapIterator) 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 UniswapV3PairTransactor

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

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

func NewUniswapV3PairTransactor

func NewUniswapV3PairTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV3PairTransactor, error)

NewUniswapV3PairTransactor creates a new write-only instance of UniswapV3Pair, bound to a specific deployed contract.

func (*UniswapV3PairTransactor) Burn

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) Collect

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) CollectProtocol

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) Flash

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) IncreaseObservationCardinalityNext

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) Initialize

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) Mint

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) SetFeeProtocol

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 (*UniswapV3PairTransactor) Swap

func (_UniswapV3Pair *UniswapV3PairTransactor) 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 UniswapV3PairTransactorRaw

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

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

func (*UniswapV3PairTransactorRaw) Transact

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

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

func (*UniswapV3PairTransactorRaw) Transfer

func (_UniswapV3Pair *UniswapV3PairTransactorRaw) 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 UniswapV3PairTransactorSession

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

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

func (*UniswapV3PairTransactorSession) Burn

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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 (*UniswapV3PairTransactorSession) Collect

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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 (*UniswapV3PairTransactorSession) CollectProtocol

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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 (*UniswapV3PairTransactorSession) Flash

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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 (*UniswapV3PairTransactorSession) IncreaseObservationCardinalityNext

func (_UniswapV3Pair *UniswapV3PairTransactorSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error)

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

Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns()

func (*UniswapV3PairTransactorSession) Initialize

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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 (*UniswapV3PairTransactorSession) Mint

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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 (*UniswapV3PairTransactorSession) SetFeeProtocol

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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 (*UniswapV3PairTransactorSession) Swap

func (_UniswapV3Pair *UniswapV3PairTransactorSession) 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