[
    {
        "inputs": [],
        "name": "BytesLibSliceOutOfBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "BytesLibSliceOverflow",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "BytesLibToAddressOutOfBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "BytesLibToBoolOutOfBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "MathOverflowedMulDiv",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "QuoterInvalidAddLiquidity",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "QuoterInvalidSwap",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint8",
                "name": "bits",
                "type": "uint8"
            },
            {
                "internalType": "uint256",
                "name": "value",
                "type": "uint256"
            }
        ],
        "name": "SafeCastOverflowedUintDowncast",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "int256",
                "name": "tick",
                "type": "int256"
            }
        ],
        "name": "TickMaxExceeded",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "components": [
                    {
                        "internalType": "uint8",
                        "name": "kind",
                        "type": "uint8"
                    },
                    {
                        "internalType": "int32[]",
                        "name": "ticks",
                        "type": "int32[]"
                    },
                    {
                        "internalType": "uint128[]",
                        "name": "amounts",
                        "type": "uint128[]"
                    }
                ],
                "internalType": "struct IMaverickV2Pool.AddLiquidityParams",
                "name": "params",
                "type": "tuple"
            }
        ],
        "name": "calculateAddLiquidity",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountA",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountB",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "gasEstimate",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes",
                "name": "path",
                "type": "bytes"
            },
            {
                "internalType": "uint256",
                "name": "amount",
                "type": "uint256"
            },
            {
                "internalType": "bool",
                "name": "exactOutput",
                "type": "bool"
            }
        ],
        "name": "calculateMultiHopSwap",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "returnAmount",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "gasEstimate",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "internalType": "uint128",
                "name": "amount",
                "type": "uint128"
            },
            {
                "internalType": "bool",
                "name": "tokenAIn",
                "type": "bool"
            },
            {
                "internalType": "bool",
                "name": "exactOutput",
                "type": "bool"
            },
            {
                "internalType": "int32",
                "name": "tickLimit",
                "type": "int32"
            }
        ],
        "name": "calculateSwap",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "gasEstimate",
                "type": "uint256"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "",
                "type": "address"
            },
            {
                "internalType": "contract IERC20",
                "name": "",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amountA",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountB",
                "type": "uint256"
            },
            {
                "internalType": "bytes",
                "name": "",
                "type": "bytes"
            }
        ],
        "name": "maverickV2AddLiquidityCallback",
        "outputs": [],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            },
            {
                "internalType": "bytes",
                "name": "",
                "type": "bytes"
            }
        ],
        "name": "maverickV2SwapCallback",
        "outputs": [],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            }
        ],
        "name": "poolSqrtPrice",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "sqrtPrice",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    }
]
