[
  {
    "type": "function",
    "name": "calculatePositions",
    "inputs": [
      {
        "name": "isCoinToken0",
        "type": "bool",
        "internalType": "bool"
      },
      {
        "name": "poolConfiguration",
        "type": "tuple",
        "internalType": "struct PoolConfiguration",
        "components": [
          {
            "name": "version",
            "type": "uint8",
            "internalType": "uint8"
          },
          {
            "name": "numPositions",
            "type": "uint16",
            "internalType": "uint16"
          },
          {
            "name": "fee",
            "type": "uint24",
            "internalType": "uint24"
          },
          {
            "name": "tickSpacing",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "numDiscoveryPositions",
            "type": "uint16[]",
            "internalType": "uint16[]"
          },
          {
            "name": "tickLower",
            "type": "int24[]",
            "internalType": "int24[]"
          },
          {
            "name": "tickUpper",
            "type": "int24[]",
            "internalType": "int24[]"
          },
          {
            "name": "maxDiscoverySupplyShare",
            "type": "uint256[]",
            "internalType": "uint256[]"
          }
        ]
      },
      {
        "name": "totalSupply",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "positions",
        "type": "tuple[]",
        "internalType": "struct LpPosition[]",
        "components": [
          {
            "name": "tickLower",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "tickUpper",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "liquidity",
            "type": "uint128",
            "internalType": "uint128"
          }
        ]
      }
    ],
    "stateMutability": "pure"
  },
  {
    "type": "error",
    "name": "ArrayLengthMismatch",
    "inputs": []
  },
  {
    "type": "error",
    "name": "CannotMintZeroLiquidity",
    "inputs": []
  },
  {
    "type": "error",
    "name": "ConfigTickLowerMustBeLessThanTickUpper",
    "inputs": []
  },
  {
    "type": "error",
    "name": "InvalidTickRangeMisordered",
    "inputs": [
      {
        "name": "tickLower",
        "type": "int24",
        "internalType": "int24"
      },
      {
        "name": "tickUpper",
        "type": "int24",
        "internalType": "int24"
      }
    ]
  },
  {
    "type": "error",
    "name": "InvalidTickRangeMisordered",
    "inputs": [
      {
        "name": "tickLower",
        "type": "int24",
        "internalType": "int24"
      },
      {
        "name": "tickUpper",
        "type": "int24",
        "internalType": "int24"
      }
    ]
  },
  {
    "type": "error",
    "name": "ZeroDiscoveryPositions",
    "inputs": []
  },
  {
    "type": "error",
    "name": "ZeroDiscoverySupplyShare",
    "inputs": []
  }
]