[
    {
        "inputs": [
            {
                "internalType": "contract IMaverickV2Factory",
                "name": "_factory",
                "type": "address"
            },
            {
                "internalType": "contract IWETH9",
                "name": "_weth",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "constructor"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "target",
                "type": "address"
            }
        ],
        "name": "AddressEmptyCode",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            }
        ],
        "name": "AddressInsufficientBalance",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "inputLength",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "expectedLength",
                "type": "uint256"
            }
        ],
        "name": "BytesLibInvalidLength",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "BytesLibSliceOutOfBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "BytesLibSliceOverflow",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "BytesLibToAddressOutOfBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "BytesLibToBoolOutOfBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "FailedInnerCall",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "MathOverflowedMulDiv",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amountMinimum",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "contractBalance",
                "type": "uint256"
            }
        ],
        "name": "PaymentInsufficientBalance",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "PaymentSenderNotWETH9",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "deadline",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "blockTimestamp",
                "type": "uint256"
            }
        ],
        "name": "PositionDeadlinePassed",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "sqrtPrice",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "minSqrtPrice",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "maxSqrtPrice",
                "type": "uint256"
            }
        ],
        "name": "PositionExceededPriceBounds",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "RouterNotFactoryPool",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "amountOutMinimum",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            }
        ],
        "name": "RouterTooLittleReceived",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "amountInMaximum",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            }
        ],
        "name": "RouterTooMuchRequested",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "RouterZeroSwap",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "int256",
                "name": "tick",
                "type": "int256"
            }
        ],
        "name": "TickMaxExceeded",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "to",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amount",
                "type": "uint256"
            }
        ],
        "name": "TransferFailed",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "from",
                "type": "address"
            },
            {
                "internalType": "address",
                "name": "to",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amount",
                "type": "uint256"
            }
        ],
        "name": "TransferFromFailed",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "deadline",
                "type": "uint256"
            }
        ],
        "name": "checkDeadline",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "minSqrtPrice",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "maxSqrtPrice",
                "type": "uint256"
            }
        ],
        "name": "checkSqrtPrice",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "bytes",
                "name": "path",
                "type": "bytes"
            },
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOutMinimum",
                "type": "uint256"
            }
        ],
        "name": "exactInputMultiHop",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "tokenAIn",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOutMinimum",
                "type": "uint256"
            }
        ],
        "name": "exactInputSingle",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes",
                "name": "argsPacked",
                "type": "bytes"
            }
        ],
        "name": "exactInputSinglePackedArgs",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "bytes",
                "name": "path",
                "type": "bytes"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountInMaximum",
                "type": "uint256"
            }
        ],
        "name": "exactOutputMultiHop",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "tokenAIn",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountInMaximum",
                "type": "uint256"
            }
        ],
        "name": "exactOutputSingle",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut_",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "tokenAIn",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            },
            {
                "internalType": "int32",
                "name": "tickLimit",
                "type": "int32"
            }
        ],
        "name": "exactOutputSingleMinimal",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut_",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "factory",
        "outputs": [
            {
                "internalType": "contract IMaverickV2Factory",
                "name": "factory_",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "tokenAIn",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "amountIn",
                "type": "uint256"
            },
            {
                "internalType": "int32",
                "name": "tickLimit",
                "type": "int32"
            },
            {
                "internalType": "uint256",
                "name": "amountOutMinimum",
                "type": "uint256"
            }
        ],
        "name": "inputSingleWithTickLimit",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountIn_",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "tokenIn",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amountToPay",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            },
            {
                "internalType": "bytes",
                "name": "_data",
                "type": "bytes"
            }
        ],
        "name": "maverickV2SwapCallback",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes[]",
                "name": "data",
                "type": "bytes[]"
            }
        ],
        "name": "multicall",
        "outputs": [
            {
                "internalType": "bytes[]",
                "name": "results",
                "type": "bytes[]"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            },
            {
                "internalType": "contract IMaverickV2Pool",
                "name": "pool",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "tokenAIn",
                "type": "bool"
            },
            {
                "internalType": "uint256",
                "name": "amountOut",
                "type": "uint256"
            },
            {
                "internalType": "int32",
                "name": "tickLimit",
                "type": "int32"
            },
            {
                "internalType": "uint256",
                "name": "amountInMaximum",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOutMinimum",
                "type": "uint256"
            }
        ],
        "name": "outputSingleWithTickLimit",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "amountIn_",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "amountOut_",
                "type": "uint256"
            }
        ],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "refundETH",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amountMinimum",
                "type": "uint256"
            },
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            }
        ],
        "name": "sweepToken",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "token",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "amount",
                "type": "uint256"
            },
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            }
        ],
        "name": "sweepTokenAmount",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "contract IERC20",
                "name": "tokenA",
                "type": "address"
            },
            {
                "internalType": "contract IERC20",
                "name": "tokenB",
                "type": "address"
            },
            {
                "internalType": "uint256",
                "name": "tokenAAmountMin",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "tokenBAmountMin",
                "type": "uint256"
            }
        ],
        "name": "unwrapAndSweep",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "amountMinimum",
                "type": "uint256"
            },
            {
                "internalType": "address",
                "name": "recipient",
                "type": "address"
            }
        ],
        "name": "unwrapWETH9",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "weth",
        "outputs": [
            {
                "internalType": "contract IWETH9",
                "name": "weth_",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "stateMutability": "payable",
        "type": "receive"
    }
]
