// Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. package uniswapv3 import ( "errors" "math/big" "strings" ethereum "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/event" ) // Reference imports to suppress errors if they are not otherwise used. var ( _ = errors.New _ = big.NewInt _ = strings.NewReader _ = ethereum.NotFound _ = bind.Bind _ = common.Big1 _ = types.BloomLookup _ = event.NewSubscription _ = abi.ConvertType ) // UniswapV3PoolMetaData contains all meta data concerning the UniswapV3Pool contract. var UniswapV3PoolMetaData = &bind.MetaData{ ABI: "[{\"constant\":true,\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint24\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"name\":\"\",\"type\":\"int24\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"name\":\"\",\"type\":\"uint128\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"slot0\",\"outputs\":[{\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"name\":\"tick\",\"type\":\"int24\"},{\"name\":\"observationIndex\",\"type\":\"uint16\"},{\"name\":\"observationCardinality\",\"type\":\"uint16\"},{\"name\":\"observationCardinalityNext\",\"type\":\"uint16\"},{\"name\":\"feeProtocol\",\"type\":\"uint8\"},{\"name\":\"unlocked\",\"type\":\"bool\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeGrowthGlobal0X128\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeGrowthGlobal1X128\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"name\":\"\",\"type\":\"uint128\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"name\":\"liquidityGross\",\"type\":\"uint128\"},{\"name\":\"liquidityNet\",\"type\":\"int128\"},{\"name\":\"feeGrowthOutside0X128\",\"type\":\"uint256\"},{\"name\":\"feeGrowthOutside1X128\",\"type\":\"uint256\"},{\"name\":\"tickCumulativeOutside\",\"type\":\"int56\"},{\"name\":\"secondsPerLiquidityOutsideX128\",\"type\":\"uint160\"},{\"name\":\"secondsOutside\",\"type\":\"uint32\"},{\"name\":\"initialized\",\"type\":\"bool\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"observations\",\"outputs\":[{\"name\":\"blockTimestamp\",\"type\":\"uint32\"},{\"name\":\"tickCumulative\",\"type\":\"int56\"},{\"name\":\"secondsPerLiquidityCumulativeX128\",\"type\":\"uint160\"},{\"name\":\"initialized\",\"type\":\"bool\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"name\":\"amountSpecified\",\"type\":\"int256\"},{\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"name\":\"amount0\",\"type\":\"int256\"},{\"name\":\"amount1\",\"type\":\"int256\"}],\"type\":\"function\"}]", } // UniswapV3PoolABI is the input ABI used to generate the binding from. // Deprecated: Use UniswapV3PoolMetaData.ABI instead. var UniswapV3PoolABI = UniswapV3PoolMetaData.ABI // UniswapV3Pool is an auto generated Go binding around an Ethereum contract. type UniswapV3Pool struct { UniswapV3PoolCaller // Read-only binding to the contract UniswapV3PoolTransactor // Write-only binding to the contract UniswapV3PoolFilterer // Log filterer for contract events } // UniswapV3PoolCaller is an auto generated read-only Go binding around an Ethereum contract. type UniswapV3PoolCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // UniswapV3PoolTransactor is an auto generated write-only Go binding around an Ethereum contract. type UniswapV3PoolTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // UniswapV3PoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type UniswapV3PoolFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // UniswapV3PoolSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type UniswapV3PoolSession struct { Contract *UniswapV3Pool // 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 } // UniswapV3PoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type UniswapV3PoolCallerSession struct { Contract *UniswapV3PoolCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // UniswapV3PoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type UniswapV3PoolTransactorSession struct { Contract *UniswapV3PoolTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // UniswapV3PoolRaw is an auto generated low-level Go binding around an Ethereum contract. type UniswapV3PoolRaw struct { Contract *UniswapV3Pool // Generic contract binding to access the raw methods on } // UniswapV3PoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type UniswapV3PoolCallerRaw struct { Contract *UniswapV3PoolCaller // Generic read-only contract binding to access the raw methods on } // UniswapV3PoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type UniswapV3PoolTransactorRaw struct { Contract *UniswapV3PoolTransactor // Generic write-only contract binding to access the raw methods on } // NewUniswapV3Pool creates a new instance of UniswapV3Pool, bound to a specific deployed contract. func NewUniswapV3Pool(address common.Address, backend bind.ContractBackend) (*UniswapV3Pool, error) { contract, err := bindUniswapV3Pool(address, backend, backend, backend) if err != nil { return nil, err } return &UniswapV3Pool{UniswapV3PoolCaller: UniswapV3PoolCaller{contract: contract}, UniswapV3PoolTransactor: UniswapV3PoolTransactor{contract: contract}, UniswapV3PoolFilterer: UniswapV3PoolFilterer{contract: contract}}, nil } // NewUniswapV3PoolCaller creates a new read-only instance of UniswapV3Pool, bound to a specific deployed contract. func NewUniswapV3PoolCaller(address common.Address, caller bind.ContractCaller) (*UniswapV3PoolCaller, error) { contract, err := bindUniswapV3Pool(address, caller, nil, nil) if err != nil { return nil, err } return &UniswapV3PoolCaller{contract: contract}, nil } // NewUniswapV3PoolTransactor creates a new write-only instance of UniswapV3Pool, bound to a specific deployed contract. func NewUniswapV3PoolTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV3PoolTransactor, error) { contract, err := bindUniswapV3Pool(address, nil, transactor, nil) if err != nil { return nil, err } return &UniswapV3PoolTransactor{contract: contract}, nil } // NewUniswapV3PoolFilterer creates a new log filterer instance of UniswapV3Pool, bound to a specific deployed contract. func NewUniswapV3PoolFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV3PoolFilterer, error) { contract, err := bindUniswapV3Pool(address, nil, nil, filterer) if err != nil { return nil, err } return &UniswapV3PoolFilterer{contract: contract}, nil } // bindUniswapV3Pool binds a generic wrapper to an already deployed contract. func bindUniswapV3Pool(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := UniswapV3PoolMetaData.GetAbi() if err != nil { return nil, err } return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil } // 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 (_UniswapV3Pool *UniswapV3PoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _UniswapV3Pool.Contract.UniswapV3PoolCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_UniswapV3Pool *UniswapV3PoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _UniswapV3Pool.Contract.UniswapV3PoolTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_UniswapV3Pool *UniswapV3PoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _UniswapV3Pool.Contract.UniswapV3PoolTransactor.contract.Transact(opts, method, params...) } // 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 (_UniswapV3Pool *UniswapV3PoolCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _UniswapV3Pool.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_UniswapV3Pool *UniswapV3PoolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _UniswapV3Pool.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_UniswapV3Pool *UniswapV3PoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _UniswapV3Pool.Contract.contract.Transact(opts, method, params...) } // Factory is a free data retrieval call binding the contract method 0xc45a0155. // // Solidity: function factory() returns(address) func (_UniswapV3Pool *UniswapV3PoolCaller) Factory(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "factory") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Factory is a free data retrieval call binding the contract method 0xc45a0155. // // Solidity: function factory() returns(address) func (_UniswapV3Pool *UniswapV3PoolSession) Factory() (common.Address, error) { return _UniswapV3Pool.Contract.Factory(&_UniswapV3Pool.CallOpts) } // Factory is a free data retrieval call binding the contract method 0xc45a0155. // // Solidity: function factory() returns(address) func (_UniswapV3Pool *UniswapV3PoolCallerSession) Factory() (common.Address, error) { return _UniswapV3Pool.Contract.Factory(&_UniswapV3Pool.CallOpts) } // Fee is a free data retrieval call binding the contract method 0xddca3f43. // // Solidity: function fee() returns(uint24) func (_UniswapV3Pool *UniswapV3PoolCaller) Fee(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "fee") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // Fee is a free data retrieval call binding the contract method 0xddca3f43. // // Solidity: function fee() returns(uint24) func (_UniswapV3Pool *UniswapV3PoolSession) Fee() (*big.Int, error) { return _UniswapV3Pool.Contract.Fee(&_UniswapV3Pool.CallOpts) } // Fee is a free data retrieval call binding the contract method 0xddca3f43. // // Solidity: function fee() returns(uint24) func (_UniswapV3Pool *UniswapV3PoolCallerSession) Fee() (*big.Int, error) { return _UniswapV3Pool.Contract.Fee(&_UniswapV3Pool.CallOpts) } // FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. // // Solidity: function feeGrowthGlobal0X128() returns(uint256) func (_UniswapV3Pool *UniswapV3PoolCaller) FeeGrowthGlobal0X128(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "feeGrowthGlobal0X128") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. // // Solidity: function feeGrowthGlobal0X128() returns(uint256) func (_UniswapV3Pool *UniswapV3PoolSession) FeeGrowthGlobal0X128() (*big.Int, error) { return _UniswapV3Pool.Contract.FeeGrowthGlobal0X128(&_UniswapV3Pool.CallOpts) } // FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. // // Solidity: function feeGrowthGlobal0X128() returns(uint256) func (_UniswapV3Pool *UniswapV3PoolCallerSession) FeeGrowthGlobal0X128() (*big.Int, error) { return _UniswapV3Pool.Contract.FeeGrowthGlobal0X128(&_UniswapV3Pool.CallOpts) } // FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. // // Solidity: function feeGrowthGlobal1X128() returns(uint256) func (_UniswapV3Pool *UniswapV3PoolCaller) FeeGrowthGlobal1X128(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "feeGrowthGlobal1X128") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. // // Solidity: function feeGrowthGlobal1X128() returns(uint256) func (_UniswapV3Pool *UniswapV3PoolSession) FeeGrowthGlobal1X128() (*big.Int, error) { return _UniswapV3Pool.Contract.FeeGrowthGlobal1X128(&_UniswapV3Pool.CallOpts) } // FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. // // Solidity: function feeGrowthGlobal1X128() returns(uint256) func (_UniswapV3Pool *UniswapV3PoolCallerSession) FeeGrowthGlobal1X128() (*big.Int, error) { return _UniswapV3Pool.Contract.FeeGrowthGlobal1X128(&_UniswapV3Pool.CallOpts) } // Liquidity is a free data retrieval call binding the contract method 0x1a686502. // // Solidity: function liquidity() returns(uint128) func (_UniswapV3Pool *UniswapV3PoolCaller) Liquidity(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "liquidity") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // Liquidity is a free data retrieval call binding the contract method 0x1a686502. // // Solidity: function liquidity() returns(uint128) func (_UniswapV3Pool *UniswapV3PoolSession) Liquidity() (*big.Int, error) { return _UniswapV3Pool.Contract.Liquidity(&_UniswapV3Pool.CallOpts) } // Liquidity is a free data retrieval call binding the contract method 0x1a686502. // // Solidity: function liquidity() returns(uint128) func (_UniswapV3Pool *UniswapV3PoolCallerSession) Liquidity() (*big.Int, error) { return _UniswapV3Pool.Contract.Liquidity(&_UniswapV3Pool.CallOpts) } // MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. // // Solidity: function maxLiquidityPerTick() returns(uint128) func (_UniswapV3Pool *UniswapV3PoolCaller) MaxLiquidityPerTick(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "maxLiquidityPerTick") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. // // Solidity: function maxLiquidityPerTick() returns(uint128) func (_UniswapV3Pool *UniswapV3PoolSession) MaxLiquidityPerTick() (*big.Int, error) { return _UniswapV3Pool.Contract.MaxLiquidityPerTick(&_UniswapV3Pool.CallOpts) } // MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. // // Solidity: function maxLiquidityPerTick() returns(uint128) func (_UniswapV3Pool *UniswapV3PoolCallerSession) MaxLiquidityPerTick() (*big.Int, error) { return _UniswapV3Pool.Contract.MaxLiquidityPerTick(&_UniswapV3Pool.CallOpts) } // Observations is a free data retrieval call binding the contract method 0x252c09d7. // // Solidity: function observations(uint256 ) returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) func (_UniswapV3Pool *UniswapV3PoolCaller) Observations(opts *bind.CallOpts, arg0 *big.Int) (struct { BlockTimestamp uint32 TickCumulative *big.Int SecondsPerLiquidityCumulativeX128 *big.Int Initialized bool }, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "observations", arg0) outstruct := new(struct { BlockTimestamp uint32 TickCumulative *big.Int SecondsPerLiquidityCumulativeX128 *big.Int Initialized bool }) if err != nil { return *outstruct, err } outstruct.BlockTimestamp = *abi.ConvertType(out[0], new(uint32)).(*uint32) outstruct.TickCumulative = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) outstruct.SecondsPerLiquidityCumulativeX128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) outstruct.Initialized = *abi.ConvertType(out[3], new(bool)).(*bool) return *outstruct, err } // Observations is a free data retrieval call binding the contract method 0x252c09d7. // // Solidity: function observations(uint256 ) returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) func (_UniswapV3Pool *UniswapV3PoolSession) Observations(arg0 *big.Int) (struct { BlockTimestamp uint32 TickCumulative *big.Int SecondsPerLiquidityCumulativeX128 *big.Int Initialized bool }, error) { return _UniswapV3Pool.Contract.Observations(&_UniswapV3Pool.CallOpts, arg0) } // Observations is a free data retrieval call binding the contract method 0x252c09d7. // // Solidity: function observations(uint256 ) returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) func (_UniswapV3Pool *UniswapV3PoolCallerSession) Observations(arg0 *big.Int) (struct { BlockTimestamp uint32 TickCumulative *big.Int SecondsPerLiquidityCumulativeX128 *big.Int Initialized bool }, error) { return _UniswapV3Pool.Contract.Observations(&_UniswapV3Pool.CallOpts, arg0) } // Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. // // Solidity: function slot0() returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) func (_UniswapV3Pool *UniswapV3PoolCaller) Slot0(opts *bind.CallOpts) (struct { SqrtPriceX96 *big.Int Tick *big.Int ObservationIndex uint16 ObservationCardinality uint16 ObservationCardinalityNext uint16 FeeProtocol uint8 Unlocked bool }, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "slot0") outstruct := new(struct { SqrtPriceX96 *big.Int Tick *big.Int ObservationIndex uint16 ObservationCardinality uint16 ObservationCardinalityNext uint16 FeeProtocol uint8 Unlocked bool }) if err != nil { return *outstruct, err } outstruct.SqrtPriceX96 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) outstruct.Tick = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) outstruct.ObservationIndex = *abi.ConvertType(out[2], new(uint16)).(*uint16) outstruct.ObservationCardinality = *abi.ConvertType(out[3], new(uint16)).(*uint16) outstruct.ObservationCardinalityNext = *abi.ConvertType(out[4], new(uint16)).(*uint16) outstruct.FeeProtocol = *abi.ConvertType(out[5], new(uint8)).(*uint8) outstruct.Unlocked = *abi.ConvertType(out[6], new(bool)).(*bool) return *outstruct, err } // Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. // // Solidity: function slot0() returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) func (_UniswapV3Pool *UniswapV3PoolSession) Slot0() (struct { SqrtPriceX96 *big.Int Tick *big.Int ObservationIndex uint16 ObservationCardinality uint16 ObservationCardinalityNext uint16 FeeProtocol uint8 Unlocked bool }, error) { return _UniswapV3Pool.Contract.Slot0(&_UniswapV3Pool.CallOpts) } // Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. // // Solidity: function slot0() returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) func (_UniswapV3Pool *UniswapV3PoolCallerSession) Slot0() (struct { SqrtPriceX96 *big.Int Tick *big.Int ObservationIndex uint16 ObservationCardinality uint16 ObservationCardinalityNext uint16 FeeProtocol uint8 Unlocked bool }, error) { return _UniswapV3Pool.Contract.Slot0(&_UniswapV3Pool.CallOpts) } // TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. // // Solidity: function tickSpacing() returns(int24) func (_UniswapV3Pool *UniswapV3PoolCaller) TickSpacing(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "tickSpacing") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. // // Solidity: function tickSpacing() returns(int24) func (_UniswapV3Pool *UniswapV3PoolSession) TickSpacing() (*big.Int, error) { return _UniswapV3Pool.Contract.TickSpacing(&_UniswapV3Pool.CallOpts) } // TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. // // Solidity: function tickSpacing() returns(int24) func (_UniswapV3Pool *UniswapV3PoolCallerSession) TickSpacing() (*big.Int, error) { return _UniswapV3Pool.Contract.TickSpacing(&_UniswapV3Pool.CallOpts) } // Ticks is a free data retrieval call binding the contract method 0xf30dba93. // // Solidity: function ticks(int24 ) returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) func (_UniswapV3Pool *UniswapV3PoolCaller) 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) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "ticks", arg0) outstruct := new(struct { LiquidityGross *big.Int LiquidityNet *big.Int FeeGrowthOutside0X128 *big.Int FeeGrowthOutside1X128 *big.Int TickCumulativeOutside *big.Int SecondsPerLiquidityOutsideX128 *big.Int SecondsOutside uint32 Initialized bool }) if err != nil { return *outstruct, err } outstruct.LiquidityGross = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) outstruct.LiquidityNet = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) outstruct.FeeGrowthOutside0X128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) outstruct.FeeGrowthOutside1X128 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) outstruct.TickCumulativeOutside = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int) outstruct.SecondsPerLiquidityOutsideX128 = *abi.ConvertType(out[5], new(*big.Int)).(**big.Int) outstruct.SecondsOutside = *abi.ConvertType(out[6], new(uint32)).(*uint32) outstruct.Initialized = *abi.ConvertType(out[7], new(bool)).(*bool) return *outstruct, err } // Ticks is a free data retrieval call binding the contract method 0xf30dba93. // // Solidity: function ticks(int24 ) returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) func (_UniswapV3Pool *UniswapV3PoolSession) 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) { return _UniswapV3Pool.Contract.Ticks(&_UniswapV3Pool.CallOpts, arg0) } // Ticks is a free data retrieval call binding the contract method 0xf30dba93. // // Solidity: function ticks(int24 ) returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) func (_UniswapV3Pool *UniswapV3PoolCallerSession) 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) { return _UniswapV3Pool.Contract.Ticks(&_UniswapV3Pool.CallOpts, arg0) } // Token0 is a free data retrieval call binding the contract method 0x0dfe1681. // // Solidity: function token0() returns(address) func (_UniswapV3Pool *UniswapV3PoolCaller) Token0(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "token0") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Token0 is a free data retrieval call binding the contract method 0x0dfe1681. // // Solidity: function token0() returns(address) func (_UniswapV3Pool *UniswapV3PoolSession) Token0() (common.Address, error) { return _UniswapV3Pool.Contract.Token0(&_UniswapV3Pool.CallOpts) } // Token0 is a free data retrieval call binding the contract method 0x0dfe1681. // // Solidity: function token0() returns(address) func (_UniswapV3Pool *UniswapV3PoolCallerSession) Token0() (common.Address, error) { return _UniswapV3Pool.Contract.Token0(&_UniswapV3Pool.CallOpts) } // Token1 is a free data retrieval call binding the contract method 0xd21220a7. // // Solidity: function token1() returns(address) func (_UniswapV3Pool *UniswapV3PoolCaller) Token1(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _UniswapV3Pool.contract.Call(opts, &out, "token1") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Token1 is a free data retrieval call binding the contract method 0xd21220a7. // // Solidity: function token1() returns(address) func (_UniswapV3Pool *UniswapV3PoolSession) Token1() (common.Address, error) { return _UniswapV3Pool.Contract.Token1(&_UniswapV3Pool.CallOpts) } // Token1 is a free data retrieval call binding the contract method 0xd21220a7. // // Solidity: function token1() returns(address) func (_UniswapV3Pool *UniswapV3PoolCallerSession) Token1() (common.Address, error) { return _UniswapV3Pool.Contract.Token1(&_UniswapV3Pool.CallOpts) } // 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 (_UniswapV3Pool *UniswapV3PoolTransactor) Swap(opts *bind.TransactOpts, recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { return _UniswapV3Pool.contract.Transact(opts, "swap", recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) } // 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 (_UniswapV3Pool *UniswapV3PoolSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { return _UniswapV3Pool.Contract.Swap(&_UniswapV3Pool.TransactOpts, recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) } // 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 (_UniswapV3Pool *UniswapV3PoolTransactorSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { return _UniswapV3Pool.Contract.Swap(&_UniswapV3Pool.TransactOpts, recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) }