feat: create v2-prep branch with comprehensive planning

Restructured project for V2 refactor:

**Structure Changes:**
- Moved all V1 code to orig/ folder (preserved with git mv)
- Created docs/planning/ directory
- Added orig/README_V1.md explaining V1 preservation

**Planning Documents:**
- 00_V2_MASTER_PLAN.md: Complete architecture overview
  - Executive summary of critical V1 issues
  - High-level component architecture diagrams
  - 5-phase implementation roadmap
  - Success metrics and risk mitigation

- 07_TASK_BREAKDOWN.md: Atomic task breakdown
  - 99+ hours of detailed tasks
  - Every task < 2 hours (atomic)
  - Clear dependencies and success criteria
  - Organized by implementation phase

**V2 Key Improvements:**
- Per-exchange parsers (factory pattern)
- Multi-layer strict validation
- Multi-index pool cache
- Background validation pipeline
- Comprehensive observability

**Critical Issues Addressed:**
- Zero address tokens (strict validation + cache enrichment)
- Parsing accuracy (protocol-specific parsers)
- No audit trail (background validation channel)
- Inefficient lookups (multi-index cache)
- Stats disconnection (event-driven metrics)

Next Steps:
1. Review planning documents
2. Begin Phase 1: Foundation (P1-001 through P1-010)
3. Implement parsers in Phase 2
4. Build cache system in Phase 3
5. Add validation pipeline in Phase 4
6. Migrate and test in Phase 5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Administrator
2025-11-10 10:14:26 +01:00
parent 1773daffe7
commit 803de231ba
411 changed files with 20390 additions and 8680 deletions

View File

@@ -0,0 +1,577 @@
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package algebraintegral
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
)
// AlgebraIntegralPoolMetaData contains all meta data concerning the AlgebraIntegralPool contract.
var AlgebraIntegralPoolMetaData = &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\":\"lastFee\",\"type\":\"uint16\"},{\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"name\":\"communityFee\",\"type\":\"uint16\"},{\"name\":\"unlocked\",\"type\":\"bool\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"name\":\"currentFee\",\"type\":\"uint16\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeZto0\",\"outputs\":[{\"name\":\"\",\"type\":\"uint16\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"fee0to1\",\"outputs\":[{\"name\":\"\",\"type\":\"uint16\"}],\"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\":\"plugin\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\"},{\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"name\":\"amountRequired\",\"type\":\"int256\"},{\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"name\":\"amount0\",\"type\":\"int256\"},{\"name\":\"amount1\",\"type\":\"int256\"}],\"type\":\"function\"}]",
}
// AlgebraIntegralPoolABI is the input ABI used to generate the binding from.
// Deprecated: Use AlgebraIntegralPoolMetaData.ABI instead.
var AlgebraIntegralPoolABI = AlgebraIntegralPoolMetaData.ABI
// AlgebraIntegralPool is an auto generated Go binding around an Ethereum contract.
type AlgebraIntegralPool struct {
AlgebraIntegralPoolCaller // Read-only binding to the contract
AlgebraIntegralPoolTransactor // Write-only binding to the contract
AlgebraIntegralPoolFilterer // Log filterer for contract events
}
// AlgebraIntegralPoolCaller is an auto generated read-only Go binding around an Ethereum contract.
type AlgebraIntegralPoolCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AlgebraIntegralPoolTransactor is an auto generated write-only Go binding around an Ethereum contract.
type AlgebraIntegralPoolTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AlgebraIntegralPoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type AlgebraIntegralPoolFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// AlgebraIntegralPoolSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type AlgebraIntegralPoolSession struct {
Contract *AlgebraIntegralPool // 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
}
// AlgebraIntegralPoolCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type AlgebraIntegralPoolCallerSession struct {
Contract *AlgebraIntegralPoolCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// AlgebraIntegralPoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type AlgebraIntegralPoolTransactorSession struct {
Contract *AlgebraIntegralPoolTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// AlgebraIntegralPoolRaw is an auto generated low-level Go binding around an Ethereum contract.
type AlgebraIntegralPoolRaw struct {
Contract *AlgebraIntegralPool // Generic contract binding to access the raw methods on
}
// AlgebraIntegralPoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type AlgebraIntegralPoolCallerRaw struct {
Contract *AlgebraIntegralPoolCaller // Generic read-only contract binding to access the raw methods on
}
// AlgebraIntegralPoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type AlgebraIntegralPoolTransactorRaw struct {
Contract *AlgebraIntegralPoolTransactor // Generic write-only contract binding to access the raw methods on
}
// NewAlgebraIntegralPool creates a new instance of AlgebraIntegralPool, bound to a specific deployed contract.
func NewAlgebraIntegralPool(address common.Address, backend bind.ContractBackend) (*AlgebraIntegralPool, error) {
contract, err := bindAlgebraIntegralPool(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &AlgebraIntegralPool{AlgebraIntegralPoolCaller: AlgebraIntegralPoolCaller{contract: contract}, AlgebraIntegralPoolTransactor: AlgebraIntegralPoolTransactor{contract: contract}, AlgebraIntegralPoolFilterer: AlgebraIntegralPoolFilterer{contract: contract}}, nil
}
// NewAlgebraIntegralPoolCaller creates a new read-only instance of AlgebraIntegralPool, bound to a specific deployed contract.
func NewAlgebraIntegralPoolCaller(address common.Address, caller bind.ContractCaller) (*AlgebraIntegralPoolCaller, error) {
contract, err := bindAlgebraIntegralPool(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &AlgebraIntegralPoolCaller{contract: contract}, nil
}
// NewAlgebraIntegralPoolTransactor creates a new write-only instance of AlgebraIntegralPool, bound to a specific deployed contract.
func NewAlgebraIntegralPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*AlgebraIntegralPoolTransactor, error) {
contract, err := bindAlgebraIntegralPool(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &AlgebraIntegralPoolTransactor{contract: contract}, nil
}
// NewAlgebraIntegralPoolFilterer creates a new log filterer instance of AlgebraIntegralPool, bound to a specific deployed contract.
func NewAlgebraIntegralPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*AlgebraIntegralPoolFilterer, error) {
contract, err := bindAlgebraIntegralPool(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &AlgebraIntegralPoolFilterer{contract: contract}, nil
}
// bindAlgebraIntegralPool binds a generic wrapper to an already deployed contract.
func bindAlgebraIntegralPool(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := AlgebraIntegralPoolMetaData.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 (_AlgebraIntegralPool *AlgebraIntegralPoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _AlgebraIntegralPool.Contract.AlgebraIntegralPoolCaller.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 (_AlgebraIntegralPool *AlgebraIntegralPoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _AlgebraIntegralPool.Contract.AlgebraIntegralPoolTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_AlgebraIntegralPool *AlgebraIntegralPoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _AlgebraIntegralPool.Contract.AlgebraIntegralPoolTransactor.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 (_AlgebraIntegralPool *AlgebraIntegralPoolCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _AlgebraIntegralPool.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 (_AlgebraIntegralPool *AlgebraIntegralPoolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _AlgebraIntegralPool.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_AlgebraIntegralPool *AlgebraIntegralPoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _AlgebraIntegralPool.Contract.contract.Transact(opts, method, params...)
}
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
//
// Solidity: function factory() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) Factory(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _AlgebraIntegralPool.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 (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Factory() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Factory(&_AlgebraIntegralPool.CallOpts)
}
// Factory is a free data retrieval call binding the contract method 0xc45a0155.
//
// Solidity: function factory() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) Factory() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Factory(&_AlgebraIntegralPool.CallOpts)
}
// Fee is a free data retrieval call binding the contract method 0xddca3f43.
//
// Solidity: function fee() returns(uint16 currentFee)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) Fee(opts *bind.CallOpts) (uint16, error) {
var out []interface{}
err := _AlgebraIntegralPool.contract.Call(opts, &out, "fee")
if err != nil {
return *new(uint16), err
}
out0 := *abi.ConvertType(out[0], new(uint16)).(*uint16)
return out0, err
}
// Fee is a free data retrieval call binding the contract method 0xddca3f43.
//
// Solidity: function fee() returns(uint16 currentFee)
func (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Fee() (uint16, error) {
return _AlgebraIntegralPool.Contract.Fee(&_AlgebraIntegralPool.CallOpts)
}
// Fee is a free data retrieval call binding the contract method 0xddca3f43.
//
// Solidity: function fee() returns(uint16 currentFee)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) Fee() (uint16, error) {
return _AlgebraIntegralPool.Contract.Fee(&_AlgebraIntegralPool.CallOpts)
}
// Fee0to1 is a free data retrieval call binding the contract method 0x3cc2817a.
//
// Solidity: function fee0to1() returns(uint16)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) Fee0to1(opts *bind.CallOpts) (uint16, error) {
var out []interface{}
err := _AlgebraIntegralPool.contract.Call(opts, &out, "fee0to1")
if err != nil {
return *new(uint16), err
}
out0 := *abi.ConvertType(out[0], new(uint16)).(*uint16)
return out0, err
}
// Fee0to1 is a free data retrieval call binding the contract method 0x3cc2817a.
//
// Solidity: function fee0to1() returns(uint16)
func (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Fee0to1() (uint16, error) {
return _AlgebraIntegralPool.Contract.Fee0to1(&_AlgebraIntegralPool.CallOpts)
}
// Fee0to1 is a free data retrieval call binding the contract method 0x3cc2817a.
//
// Solidity: function fee0to1() returns(uint16)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) Fee0to1() (uint16, error) {
return _AlgebraIntegralPool.Contract.Fee0to1(&_AlgebraIntegralPool.CallOpts)
}
// FeeZto0 is a free data retrieval call binding the contract method 0xd893f475.
//
// Solidity: function feeZto0() returns(uint16)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) FeeZto0(opts *bind.CallOpts) (uint16, error) {
var out []interface{}
err := _AlgebraIntegralPool.contract.Call(opts, &out, "feeZto0")
if err != nil {
return *new(uint16), err
}
out0 := *abi.ConvertType(out[0], new(uint16)).(*uint16)
return out0, err
}
// FeeZto0 is a free data retrieval call binding the contract method 0xd893f475.
//
// Solidity: function feeZto0() returns(uint16)
func (_AlgebraIntegralPool *AlgebraIntegralPoolSession) FeeZto0() (uint16, error) {
return _AlgebraIntegralPool.Contract.FeeZto0(&_AlgebraIntegralPool.CallOpts)
}
// FeeZto0 is a free data retrieval call binding the contract method 0xd893f475.
//
// Solidity: function feeZto0() returns(uint16)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) FeeZto0() (uint16, error) {
return _AlgebraIntegralPool.Contract.FeeZto0(&_AlgebraIntegralPool.CallOpts)
}
// GlobalState is a free data retrieval call binding the contract method 0xe76c01e4.
//
// Solidity: function globalState() returns(uint160 price, int24 tick, uint16 lastFee, uint8 pluginConfig, uint16 communityFee, bool unlocked)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) GlobalState(opts *bind.CallOpts) (struct {
Price *big.Int
Tick *big.Int
LastFee uint16
PluginConfig uint8
CommunityFee uint16
Unlocked bool
}, error) {
var out []interface{}
err := _AlgebraIntegralPool.contract.Call(opts, &out, "globalState")
outstruct := new(struct {
Price *big.Int
Tick *big.Int
LastFee uint16
PluginConfig uint8
CommunityFee 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.LastFee = *abi.ConvertType(out[2], new(uint16)).(*uint16)
outstruct.PluginConfig = *abi.ConvertType(out[3], new(uint8)).(*uint8)
outstruct.CommunityFee = *abi.ConvertType(out[4], new(uint16)).(*uint16)
outstruct.Unlocked = *abi.ConvertType(out[5], 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 lastFee, uint8 pluginConfig, uint16 communityFee, bool unlocked)
func (_AlgebraIntegralPool *AlgebraIntegralPoolSession) GlobalState() (struct {
Price *big.Int
Tick *big.Int
LastFee uint16
PluginConfig uint8
CommunityFee uint16
Unlocked bool
}, error) {
return _AlgebraIntegralPool.Contract.GlobalState(&_AlgebraIntegralPool.CallOpts)
}
// GlobalState is a free data retrieval call binding the contract method 0xe76c01e4.
//
// Solidity: function globalState() returns(uint160 price, int24 tick, uint16 lastFee, uint8 pluginConfig, uint16 communityFee, bool unlocked)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) GlobalState() (struct {
Price *big.Int
Tick *big.Int
LastFee uint16
PluginConfig uint8
CommunityFee uint16
Unlocked bool
}, error) {
return _AlgebraIntegralPool.Contract.GlobalState(&_AlgebraIntegralPool.CallOpts)
}
// Liquidity is a free data retrieval call binding the contract method 0x1a686502.
//
// Solidity: function liquidity() returns(uint128)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) Liquidity(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _AlgebraIntegralPool.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 (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Liquidity() (*big.Int, error) {
return _AlgebraIntegralPool.Contract.Liquidity(&_AlgebraIntegralPool.CallOpts)
}
// Liquidity is a free data retrieval call binding the contract method 0x1a686502.
//
// Solidity: function liquidity() returns(uint128)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) Liquidity() (*big.Int, error) {
return _AlgebraIntegralPool.Contract.Liquidity(&_AlgebraIntegralPool.CallOpts)
}
// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a.
//
// Solidity: function maxLiquidityPerTick() returns(uint128)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) MaxLiquidityPerTick(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _AlgebraIntegralPool.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 (_AlgebraIntegralPool *AlgebraIntegralPoolSession) MaxLiquidityPerTick() (*big.Int, error) {
return _AlgebraIntegralPool.Contract.MaxLiquidityPerTick(&_AlgebraIntegralPool.CallOpts)
}
// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a.
//
// Solidity: function maxLiquidityPerTick() returns(uint128)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) MaxLiquidityPerTick() (*big.Int, error) {
return _AlgebraIntegralPool.Contract.MaxLiquidityPerTick(&_AlgebraIntegralPool.CallOpts)
}
// Plugin is a free data retrieval call binding the contract method 0xef01df4f.
//
// Solidity: function plugin() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) Plugin(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _AlgebraIntegralPool.contract.Call(opts, &out, "plugin")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Plugin is a free data retrieval call binding the contract method 0xef01df4f.
//
// Solidity: function plugin() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Plugin() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Plugin(&_AlgebraIntegralPool.CallOpts)
}
// Plugin is a free data retrieval call binding the contract method 0xef01df4f.
//
// Solidity: function plugin() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) Plugin() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Plugin(&_AlgebraIntegralPool.CallOpts)
}
// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.
//
// Solidity: function tickSpacing() returns(int24)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) TickSpacing(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _AlgebraIntegralPool.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 (_AlgebraIntegralPool *AlgebraIntegralPoolSession) TickSpacing() (*big.Int, error) {
return _AlgebraIntegralPool.Contract.TickSpacing(&_AlgebraIntegralPool.CallOpts)
}
// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c.
//
// Solidity: function tickSpacing() returns(int24)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) TickSpacing() (*big.Int, error) {
return _AlgebraIntegralPool.Contract.TickSpacing(&_AlgebraIntegralPool.CallOpts)
}
// Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
//
// Solidity: function token0() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) Token0(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _AlgebraIntegralPool.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 (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Token0() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Token0(&_AlgebraIntegralPool.CallOpts)
}
// Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
//
// Solidity: function token0() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) Token0() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Token0(&_AlgebraIntegralPool.CallOpts)
}
// Token1 is a free data retrieval call binding the contract method 0xd21220a7.
//
// Solidity: function token1() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCaller) Token1(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _AlgebraIntegralPool.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 (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Token1() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Token1(&_AlgebraIntegralPool.CallOpts)
}
// Token1 is a free data retrieval call binding the contract method 0xd21220a7.
//
// Solidity: function token1() returns(address)
func (_AlgebraIntegralPool *AlgebraIntegralPoolCallerSession) Token1() (common.Address, error) {
return _AlgebraIntegralPool.Contract.Token1(&_AlgebraIntegralPool.CallOpts)
}
// Swap is a paid mutator transaction binding the contract method 0x128acb08.
//
// Solidity: function swap(address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)
func (_AlgebraIntegralPool *AlgebraIntegralPoolTransactor) Swap(opts *bind.TransactOpts, recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error) {
return _AlgebraIntegralPool.contract.Transact(opts, "swap", recipient, zeroToOne, amountRequired, limitSqrtPrice, data)
}
// Swap is a paid mutator transaction binding the contract method 0x128acb08.
//
// Solidity: function swap(address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)
func (_AlgebraIntegralPool *AlgebraIntegralPoolSession) Swap(recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error) {
return _AlgebraIntegralPool.Contract.Swap(&_AlgebraIntegralPool.TransactOpts, recipient, zeroToOne, amountRequired, limitSqrtPrice, data)
}
// Swap is a paid mutator transaction binding the contract method 0x128acb08.
//
// Solidity: function swap(address recipient, bool zeroToOne, int256 amountRequired, uint160 limitSqrtPrice, bytes data) returns(int256 amount0, int256 amount1)
func (_AlgebraIntegralPool *AlgebraIntegralPoolTransactorSession) Swap(recipient common.Address, zeroToOne bool, amountRequired *big.Int, limitSqrtPrice *big.Int, data []byte) (*types.Transaction, error) {
return _AlgebraIntegralPool.Contract.Swap(&_AlgebraIntegralPool.TransactOpts, recipient, zeroToOne, amountRequired, limitSqrtPrice, data)
}