var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { utils, Contract, ContractFactory } from "ethers";
var _abi = [
    {
        inputs: [
            {
                internalType: "int24",
                name: "tick",
                type: "int24",
            },
        ],
        name: "clear",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "int24",
                name: "tick",
                type: "int24",
            },
            {
                internalType: "uint256",
                name: "feeGrowthGlobal0X128",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "feeGrowthGlobal1X128",
                type: "uint256",
            },
            {
                internalType: "uint160",
                name: "secondsPerLiquidityCumulativeX128",
                type: "uint160",
            },
            {
                internalType: "int56",
                name: "tickCumulative",
                type: "int56",
            },
            {
                internalType: "uint32",
                name: "time",
                type: "uint32",
            },
        ],
        name: "cross",
        outputs: [
            {
                internalType: "int128",
                name: "liquidityNet",
                type: "int128",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "int24",
                name: "tickLower",
                type: "int24",
            },
            {
                internalType: "int24",
                name: "tickUpper",
                type: "int24",
            },
            {
                internalType: "int24",
                name: "tickCurrent",
                type: "int24",
            },
            {
                internalType: "uint256",
                name: "feeGrowthGlobal0X128",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "feeGrowthGlobal1X128",
                type: "uint256",
            },
        ],
        name: "getFeeGrowthInside",
        outputs: [
            {
                internalType: "uint256",
                name: "feeGrowthInside0X128",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "feeGrowthInside1X128",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "int24",
                name: "tick",
                type: "int24",
            },
            {
                components: [
                    {
                        internalType: "uint128",
                        name: "liquidityGross",
                        type: "uint128",
                    },
                    {
                        internalType: "int128",
                        name: "liquidityNet",
                        type: "int128",
                    },
                    {
                        internalType: "uint256",
                        name: "feeGrowthOutside0X128",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "feeGrowthOutside1X128",
                        type: "uint256",
                    },
                    {
                        internalType: "int56",
                        name: "tickCumulativeOutside",
                        type: "int56",
                    },
                    {
                        internalType: "uint160",
                        name: "secondsPerLiquidityOutsideX128",
                        type: "uint160",
                    },
                    {
                        internalType: "uint32",
                        name: "secondsOutside",
                        type: "uint32",
                    },
                    {
                        internalType: "bool",
                        name: "initialized",
                        type: "bool",
                    },
                ],
                internalType: "struct Tick.Info",
                name: "info",
                type: "tuple",
            },
        ],
        name: "setTick",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "int24",
                name: "tickSpacing",
                type: "int24",
            },
        ],
        name: "tickSpacingToMaxLiquidityPerTick",
        outputs: [
            {
                internalType: "uint128",
                name: "",
                type: "uint128",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "int24",
                name: "",
                type: "int24",
            },
        ],
        name: "ticks",
        outputs: [
            {
                internalType: "uint128",
                name: "liquidityGross",
                type: "uint128",
            },
            {
                internalType: "int128",
                name: "liquidityNet",
                type: "int128",
            },
            {
                internalType: "uint256",
                name: "feeGrowthOutside0X128",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "feeGrowthOutside1X128",
                type: "uint256",
            },
            {
                internalType: "int56",
                name: "tickCumulativeOutside",
                type: "int56",
            },
            {
                internalType: "uint160",
                name: "secondsPerLiquidityOutsideX128",
                type: "uint160",
            },
            {
                internalType: "uint32",
                name: "secondsOutside",
                type: "uint32",
            },
            {
                internalType: "bool",
                name: "initialized",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "int24",
                name: "tick",
                type: "int24",
            },
            {
                internalType: "int24",
                name: "tickCurrent",
                type: "int24",
            },
            {
                internalType: "int128",
                name: "liquidityDelta",
                type: "int128",
            },
            {
                internalType: "uint256",
                name: "feeGrowthGlobal0X128",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "feeGrowthGlobal1X128",
                type: "uint256",
            },
            {
                internalType: "uint160",
                name: "secondsPerLiquidityCumulativeX128",
                type: "uint160",
            },
            {
                internalType: "int56",
                name: "tickCumulative",
                type: "int56",
            },
            {
                internalType: "uint32",
                name: "time",
                type: "uint32",
            },
            {
                internalType: "bool",
                name: "upper",
                type: "bool",
            },
            {
                internalType: "uint128",
                name: "maxLiquidity",
                type: "uint128",
            },
        ],
        name: "update",
        outputs: [
            {
                internalType: "bool",
                name: "flipped",
                type: "bool",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
];
var _bytecode = " ";
var isSuperArgs = function (xs) { return xs.length > 1; };
var TickTest__factory = /** @class */ (function (_super) {
    __extends(TickTest__factory, _super);
    function TickTest__factory() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var _this = this;
        if (isSuperArgs(args)) {
            _this = _super.apply(this, args) || this;
        }
        else {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        return _this;
    }
    TickTest__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    TickTest__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    TickTest__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    TickTest__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    TickTest__factory.createInterface = function () {
        return new utils.Interface(_abi);
    };
    TickTest__factory.connect = function (address, signerOrProvider) {
        return new Contract(address, _abi, signerOrProvider);
    };
    TickTest__factory.bytecode = _bytecode;
    TickTest__factory.abi = _abi;
    return TickTest__factory;
}(ContractFactory));
export { TickTest__factory };
