// Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. package algebra 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 ) // AlgebraPoolMetaData contains all meta data concerning the AlgebraPool contract. var AlgebraPoolMetaData = &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\":\"globalState\",\"outputs\":[{\"name\":\"price\",\"type\":\"uint160\"},{\"name\":\"tick\",\"type\":\"int24\"},{\"name\":\"fee\",\"type\":\"uint16\"},{\"name\":\"timepointIndex\",\"type\":\"uint16\"},{\"name\":\"communityFeeToken0\",\"type\":\"uint16\"},{\"name\":\"communityFeeToken1\",\"type\":\"uint16\"},{\"name\":\"unlocked\",\"type\":\"bool\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"name\":\"\",\"type\":\"uint128\"}],\"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\":\"dataStorageOperator\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalFeeGrowth0Token\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalFeeGrowth1Token\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"type\":\"function\"},{\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"name\":\"amountSpecified\",\"type\":\"int256\"},{\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"name\":\"amount0\",\"type\":\"int256\"},{\"name\":\"amount1\",\"type\":\"int256\"}],\"type\":\"function\"}]", } // AlgebraPoolABI is the input ABI used to generate the binding from. // Deprecated: Use AlgebraPoolMetaData.ABI instead. var AlgebraPoolABI = AlgebraPoolMetaData.ABI // AlgebraPool is an auto generated Go binding around an Ethereum contract. type AlgebraPool struct { AlgebraPoolCaller // Read-only binding to the contract AlgebraPoolTransactor // Write-only binding to the contract AlgebraPoolFilterer // Log filterer for contract events } // AlgebraPoolCaller is an auto generated read-only Go binding around an Ethereum contract. type AlgebraPoolCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AlgebraPoolTransactor is an auto generated write-only Go binding around an Ethereum contract. type AlgebraPoolTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AlgebraPoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type AlgebraPoolFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // AlgebraPoolSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type AlgebraPoolSession struct { Contract *AlgebraPool // 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 } // AlgebraPoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type AlgebraPoolCallerSession struct { Contract *AlgebraPoolCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // AlgebraPoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type AlgebraPoolTransactorSession struct { Contract *AlgebraPoolTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // AlgebraPoolRaw is an auto generated low-level Go binding around an Ethereum contract. type AlgebraPoolRaw struct { Contract *AlgebraPool // Generic contract binding to access the raw methods on } // AlgebraPoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type AlgebraPoolCallerRaw struct { Contract *AlgebraPoolCaller // Generic read-only contract binding to access the raw methods on } // AlgebraPoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type AlgebraPoolTransactorRaw struct { Contract *AlgebraPoolTransactor // Generic write-only contract binding to access the raw methods on } // NewAlgebraPool creates a new instance of AlgebraPool, bound to a specific deployed contract. func NewAlgebraPool(address common.Address, backend bind.ContractBackend) (*AlgebraPool, error) { contract, err := bindAlgebraPool(address, backend, backend, backend) if err != nil { return nil, err } return &AlgebraPool{AlgebraPoolCaller: AlgebraPoolCaller{contract: contract}, AlgebraPoolTransactor: AlgebraPoolTransactor{contract: contract}, AlgebraPoolFilterer: AlgebraPoolFilterer{contract: contract}}, nil } // NewAlgebraPoolCaller creates a new read-only instance of AlgebraPool, bound to a specific deployed contract. func NewAlgebraPoolCaller(address common.Address, caller bind.ContractCaller) (*AlgebraPoolCaller, error) { contract, err := bindAlgebraPool(address, caller, nil, nil) if err != nil { return nil, err } return &AlgebraPoolCaller{contract: contract}, nil } // NewAlgebraPoolTransactor creates a new write-only instance of AlgebraPool, bound to a specific deployed contract. func NewAlgebraPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*AlgebraPoolTransactor, error) { contract, err := bindAlgebraPool(address, nil, transactor, nil) if err != nil { return nil, err } return &AlgebraPoolTransactor{contract: contract}, nil } // NewAlgebraPoolFilterer creates a new log filterer instance of AlgebraPool, bound to a specific deployed contract. func NewAlgebraPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*AlgebraPoolFilterer, error) { contract, err := bindAlgebraPool(address, nil, nil, filterer) if err != nil { return nil, err } return &AlgebraPoolFilterer{contract: contract}, nil } // bindAlgebraPool binds a generic wrapper to an already deployed contract. func bindAlgebraPool(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := AlgebraPoolMetaData.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 (_AlgebraPool *AlgebraPoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AlgebraPool.Contract.AlgebraPoolCaller.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 (_AlgebraPool *AlgebraPoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AlgebraPool.Contract.AlgebraPoolTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AlgebraPool *AlgebraPoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AlgebraPool.Contract.AlgebraPoolTransactor.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 (_AlgebraPool *AlgebraPoolCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _AlgebraPool.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 (_AlgebraPool *AlgebraPoolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _AlgebraPool.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_AlgebraPool *AlgebraPoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _AlgebraPool.Contract.contract.Transact(opts, method, params...) } // DataStorageOperator is a free data retrieval call binding the contract method 0x29047dfa. // // Solidity: function dataStorageOperator() returns(address) func (_AlgebraPool *AlgebraPoolCaller) DataStorageOperator(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AlgebraPool.contract.Call(opts, &out, "dataStorageOperator") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // DataStorageOperator is a free data retrieval call binding the contract method 0x29047dfa. // // Solidity: function dataStorageOperator() returns(address) func (_AlgebraPool *AlgebraPoolSession) DataStorageOperator() (common.Address, error) { return _AlgebraPool.Contract.DataStorageOperator(&_AlgebraPool.CallOpts) } // DataStorageOperator is a free data retrieval call binding the contract method 0x29047dfa. // // Solidity: function dataStorageOperator() returns(address) func (_AlgebraPool *AlgebraPoolCallerSession) DataStorageOperator() (common.Address, error) { return _AlgebraPool.Contract.DataStorageOperator(&_AlgebraPool.CallOpts) } // Factory is a free data retrieval call binding the contract method 0xc45a0155. // // Solidity: function factory() returns(address) func (_AlgebraPool *AlgebraPoolCaller) Factory(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AlgebraPool.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 (_AlgebraPool *AlgebraPoolSession) Factory() (common.Address, error) { return _AlgebraPool.Contract.Factory(&_AlgebraPool.CallOpts) } // Factory is a free data retrieval call binding the contract method 0xc45a0155. // // Solidity: function factory() returns(address) func (_AlgebraPool *AlgebraPoolCallerSession) Factory() (common.Address, error) { return _AlgebraPool.Contract.Factory(&_AlgebraPool.CallOpts) } // GlobalState is a free data retrieval call binding the contract method 0xe76c01e4. // // Solidity: function globalState() returns(uint160 price, int24 tick, uint16 fee, uint16 timepointIndex, uint16 communityFeeToken0, uint16 communityFeeToken1, bool unlocked) func (_AlgebraPool *AlgebraPoolCaller) GlobalState(opts *bind.CallOpts) (struct { Price *big.Int Tick *big.Int Fee uint16 TimepointIndex uint16 CommunityFeeToken0 uint16 CommunityFeeToken1 uint16 Unlocked bool }, error) { var out []interface{} err := _AlgebraPool.contract.Call(opts, &out, "globalState") outstruct := new(struct { Price *big.Int Tick *big.Int Fee uint16 TimepointIndex uint16 CommunityFeeToken0 uint16 CommunityFeeToken1 uint16 Unlocked bool }) if err != nil { return *outstruct, err } outstruct.Price = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) outstruct.Tick = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) outstruct.Fee = *abi.ConvertType(out[2], new(uint16)).(*uint16) outstruct.TimepointIndex = *abi.ConvertType(out[3], new(uint16)).(*uint16) outstruct.CommunityFeeToken0 = *abi.ConvertType(out[4], new(uint16)).(*uint16) outstruct.CommunityFeeToken1 = *abi.ConvertType(out[5], new(uint16)).(*uint16) outstruct.Unlocked = *abi.ConvertType(out[6], new(bool)).(*bool) return *outstruct, err } // GlobalState is a free data retrieval call binding the contract method 0xe76c01e4. // // Solidity: function globalState() returns(uint160 price, int24 tick, uint16 fee, uint16 timepointIndex, uint16 communityFeeToken0, uint16 communityFeeToken1, bool unlocked) func (_AlgebraPool *AlgebraPoolSession) GlobalState() (struct { Price *big.Int Tick *big.Int Fee uint16 TimepointIndex uint16 CommunityFeeToken0 uint16 CommunityFeeToken1 uint16 Unlocked bool }, error) { return _AlgebraPool.Contract.GlobalState(&_AlgebraPool.CallOpts) } // GlobalState is a free data retrieval call binding the contract method 0xe76c01e4. // // Solidity: function globalState() returns(uint160 price, int24 tick, uint16 fee, uint16 timepointIndex, uint16 communityFeeToken0, uint16 communityFeeToken1, bool unlocked) func (_AlgebraPool *AlgebraPoolCallerSession) GlobalState() (struct { Price *big.Int Tick *big.Int Fee uint16 TimepointIndex uint16 CommunityFeeToken0 uint16 CommunityFeeToken1 uint16 Unlocked bool }, error) { return _AlgebraPool.Contract.GlobalState(&_AlgebraPool.CallOpts) } // Liquidity is a free data retrieval call binding the contract method 0x1a686502. // // Solidity: function liquidity() returns(uint128) func (_AlgebraPool *AlgebraPoolCaller) Liquidity(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _AlgebraPool.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 (_AlgebraPool *AlgebraPoolSession) Liquidity() (*big.Int, error) { return _AlgebraPool.Contract.Liquidity(&_AlgebraPool.CallOpts) } // Liquidity is a free data retrieval call binding the contract method 0x1a686502. // // Solidity: function liquidity() returns(uint128) func (_AlgebraPool *AlgebraPoolCallerSession) Liquidity() (*big.Int, error) { return _AlgebraPool.Contract.Liquidity(&_AlgebraPool.CallOpts) } // MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. // // Solidity: function maxLiquidityPerTick() returns(uint128) func (_AlgebraPool *AlgebraPoolCaller) MaxLiquidityPerTick(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _AlgebraPool.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 (_AlgebraPool *AlgebraPoolSession) MaxLiquidityPerTick() (*big.Int, error) { return _AlgebraPool.Contract.MaxLiquidityPerTick(&_AlgebraPool.CallOpts) } // MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. // // Solidity: function maxLiquidityPerTick() returns(uint128) func (_AlgebraPool *AlgebraPoolCallerSession) MaxLiquidityPerTick() (*big.Int, error) { return _AlgebraPool.Contract.MaxLiquidityPerTick(&_AlgebraPool.CallOpts) } // TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. // // Solidity: function tickSpacing() returns(int24) func (_AlgebraPool *AlgebraPoolCaller) TickSpacing(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _AlgebraPool.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 (_AlgebraPool *AlgebraPoolSession) TickSpacing() (*big.Int, error) { return _AlgebraPool.Contract.TickSpacing(&_AlgebraPool.CallOpts) } // TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. // // Solidity: function tickSpacing() returns(int24) func (_AlgebraPool *AlgebraPoolCallerSession) TickSpacing() (*big.Int, error) { return _AlgebraPool.Contract.TickSpacing(&_AlgebraPool.CallOpts) } // Token0 is a free data retrieval call binding the contract method 0x0dfe1681. // // Solidity: function token0() returns(address) func (_AlgebraPool *AlgebraPoolCaller) Token0(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AlgebraPool.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 (_AlgebraPool *AlgebraPoolSession) Token0() (common.Address, error) { return _AlgebraPool.Contract.Token0(&_AlgebraPool.CallOpts) } // Token0 is a free data retrieval call binding the contract method 0x0dfe1681. // // Solidity: function token0() returns(address) func (_AlgebraPool *AlgebraPoolCallerSession) Token0() (common.Address, error) { return _AlgebraPool.Contract.Token0(&_AlgebraPool.CallOpts) } // Token1 is a free data retrieval call binding the contract method 0xd21220a7. // // Solidity: function token1() returns(address) func (_AlgebraPool *AlgebraPoolCaller) Token1(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _AlgebraPool.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 (_AlgebraPool *AlgebraPoolSession) Token1() (common.Address, error) { return _AlgebraPool.Contract.Token1(&_AlgebraPool.CallOpts) } // Token1 is a free data retrieval call binding the contract method 0xd21220a7. // // Solidity: function token1() returns(address) func (_AlgebraPool *AlgebraPoolCallerSession) Token1() (common.Address, error) { return _AlgebraPool.Contract.Token1(&_AlgebraPool.CallOpts) } // TotalFeeGrowth0Token is a free data retrieval call binding the contract method 0x6378ae44. // // Solidity: function totalFeeGrowth0Token() returns(uint256) func (_AlgebraPool *AlgebraPoolCaller) TotalFeeGrowth0Token(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _AlgebraPool.contract.Call(opts, &out, "totalFeeGrowth0Token") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // TotalFeeGrowth0Token is a free data retrieval call binding the contract method 0x6378ae44. // // Solidity: function totalFeeGrowth0Token() returns(uint256) func (_AlgebraPool *AlgebraPoolSession) TotalFeeGrowth0Token() (*big.Int, error) { return _AlgebraPool.Contract.TotalFeeGrowth0Token(&_AlgebraPool.CallOpts) } // TotalFeeGrowth0Token is a free data retrieval call binding the contract method 0x6378ae44. // // Solidity: function totalFeeGrowth0Token() returns(uint256) func (_AlgebraPool *AlgebraPoolCallerSession) TotalFeeGrowth0Token() (*big.Int, error) { return _AlgebraPool.Contract.TotalFeeGrowth0Token(&_AlgebraPool.CallOpts) } // TotalFeeGrowth1Token is a free data retrieval call binding the contract method 0xecdecf42. // // Solidity: function totalFeeGrowth1Token() returns(uint256) func (_AlgebraPool *AlgebraPoolCaller) TotalFeeGrowth1Token(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _AlgebraPool.contract.Call(opts, &out, "totalFeeGrowth1Token") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // TotalFeeGrowth1Token is a free data retrieval call binding the contract method 0xecdecf42. // // Solidity: function totalFeeGrowth1Token() returns(uint256) func (_AlgebraPool *AlgebraPoolSession) TotalFeeGrowth1Token() (*big.Int, error) { return _AlgebraPool.Contract.TotalFeeGrowth1Token(&_AlgebraPool.CallOpts) } // TotalFeeGrowth1Token is a free data retrieval call binding the contract method 0xecdecf42. // // Solidity: function totalFeeGrowth1Token() returns(uint256) func (_AlgebraPool *AlgebraPoolCallerSession) TotalFeeGrowth1Token() (*big.Int, error) { return _AlgebraPool.Contract.TotalFeeGrowth1Token(&_AlgebraPool.CallOpts) } // Swap is a paid mutator transaction binding the contract method 0x128acb08. // // Solidity: function swap(address recipient, bool zeroToOne, int256 amountSpecified, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1) func (_AlgebraPool *AlgebraPoolTransactor) Swap(opts *bind.TransactOpts, recipient common.Address, zeroToOne bool, amountSpecified *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error) { return _AlgebraPool.contract.Transact(opts, "swap", recipient, zeroToOne, amountSpecified, limitSqrtPrice, data) } // Swap is a paid mutator transaction binding the contract method 0x128acb08. // // Solidity: function swap(address recipient, bool zeroToOne, int256 amountSpecified, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1) func (_AlgebraPool *AlgebraPoolSession) Swap(recipient common.Address, zeroToOne bool, amountSpecified *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error) { return _AlgebraPool.Contract.Swap(&_AlgebraPool.TransactOpts, recipient, zeroToOne, amountSpecified, limitSqrtPrice, data) } // Swap is a paid mutator transaction binding the contract method 0x128acb08. // // Solidity: function swap(address recipient, bool zeroToOne, int256 amountSpecified, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1) func (_AlgebraPool *AlgebraPoolTransactorSession) Swap(recipient common.Address, zeroToOne bool, amountSpecified *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error) { return _AlgebraPool.Contract.Swap(&_AlgebraPool.TransactOpts, recipient, zeroToOne, amountSpecified, limitSqrtPrice, data) }