"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pool__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'spender',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'value',
                type: 'uint256',
            },
        ],
        name: 'Approval',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'int24',
                name: 'tickLower',
                type: 'int24',
            },
            {
                indexed: true,
                internalType: 'int24',
                name: 'tickUpper',
                type: 'int24',
            },
            {
                indexed: false,
                internalType: 'uint128',
                name: 'qty',
                type: 'uint128',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
        ],
        name: 'Burn',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
        ],
        name: 'BurnRTokens',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'sender',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'recipient',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'paid0',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'paid1',
                type: 'uint256',
            },
        ],
        name: 'Flash',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint160',
                name: 'sqrtP',
                type: 'uint160',
            },
            {
                indexed: false,
                internalType: 'int24',
                name: 'tick',
                type: 'int24',
            },
        ],
        name: 'Initialize',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'sender',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'owner',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'int24',
                name: 'tickLower',
                type: 'int24',
            },
            {
                indexed: true,
                internalType: 'int24',
                name: 'tickUpper',
                type: 'int24',
            },
            {
                indexed: false,
                internalType: 'uint128',
                name: 'qty',
                type: 'uint128',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
        ],
        name: 'Mint',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'sender',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'recipient',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'int256',
                name: 'deltaQty0',
                type: 'int256',
            },
            {
                indexed: false,
                internalType: 'int256',
                name: 'deltaQty1',
                type: 'int256',
            },
            {
                indexed: false,
                internalType: 'uint160',
                name: 'sqrtP',
                type: 'uint160',
            },
            {
                indexed: false,
                internalType: 'uint128',
                name: 'liquidity',
                type: 'uint128',
            },
            {
                indexed: false,
                internalType: 'int24',
                name: 'currentTick',
                type: 'int24',
            },
        ],
        name: 'Swap',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'from',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'to',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'value',
                type: 'uint256',
            },
        ],
        name: 'Transfer',
        type: 'event',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'owner',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'spender',
                type: 'address',
            },
        ],
        name: 'allowance',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'spender',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'approve',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'balanceOf',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'int24',
                name: 'tickLower',
                type: 'int24',
            },
            {
                internalType: 'int24',
                name: 'tickUpper',
                type: 'int24',
            },
            {
                internalType: 'uint128',
                name: 'qty',
                type: 'uint128',
            },
        ],
        name: 'burn',
        outputs: [
            {
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'feeGrowthInsideLast',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: '_qty',
                type: 'uint256',
            },
            {
                internalType: 'bool',
                name: 'isLogicalBurn',
                type: 'bool',
            },
        ],
        name: 'burnRTokens',
        outputs: [
            {
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'decimals',
        outputs: [
            {
                internalType: 'uint8',
                name: '',
                type: 'uint8',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'spender',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'subtractedValue',
                type: 'uint256',
            },
        ],
        name: 'decreaseAllowance',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'factory',
        outputs: [
            {
                internalType: 'contract IFactory',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'recipient',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'flash',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getFeeGrowthGlobal',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getLiquidityState',
        outputs: [
            {
                internalType: 'uint128',
                name: 'baseL',
                type: 'uint128',
            },
            {
                internalType: 'uint128',
                name: 'reinvestL',
                type: 'uint128',
            },
            {
                internalType: 'uint128',
                name: 'reinvestLLast',
                type: 'uint128',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getPoolState',
        outputs: [
            {
                internalType: 'uint160',
                name: 'sqrtP',
                type: 'uint160',
            },
            {
                internalType: 'int24',
                name: 'currentTick',
                type: 'int24',
            },
            {
                internalType: 'int24',
                name: 'nearestCurrentTick',
                type: 'int24',
            },
            {
                internalType: 'bool',
                name: 'locked',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'owner',
                type: 'address',
            },
            {
                internalType: 'int24',
                name: 'tickLower',
                type: 'int24',
            },
            {
                internalType: 'int24',
                name: 'tickUpper',
                type: 'int24',
            },
        ],
        name: 'getPositions',
        outputs: [
            {
                internalType: 'uint128',
                name: 'liquidity',
                type: 'uint128',
            },
            {
                internalType: 'uint256',
                name: 'feeGrowthInsideLast',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getSecondsPerLiquidityData',
        outputs: [
            {
                internalType: 'uint128',
                name: 'secondsPerLiquidityGlobal',
                type: 'uint128',
            },
            {
                internalType: 'uint32',
                name: 'lastUpdateTime',
                type: 'uint32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'int24',
                name: 'tickLower',
                type: 'int24',
            },
            {
                internalType: 'int24',
                name: 'tickUpper',
                type: 'int24',
            },
        ],
        name: 'getSecondsPerLiquidityInside',
        outputs: [
            {
                internalType: 'uint128',
                name: 'secondsPerLiquidityInside',
                type: 'uint128',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'spender',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'addedValue',
                type: 'uint256',
            },
        ],
        name: 'increaseAllowance',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'int24',
                name: '',
                type: 'int24',
            },
        ],
        name: 'initializedTicks',
        outputs: [
            {
                internalType: 'int24',
                name: 'previous',
                type: 'int24',
            },
            {
                internalType: 'int24',
                name: 'next',
                type: 'int24',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'maxTickLiquidity',
        outputs: [
            {
                internalType: 'uint128',
                name: '',
                type: 'uint128',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'recipient',
                type: 'address',
            },
            {
                internalType: 'int24',
                name: 'tickLower',
                type: 'int24',
            },
            {
                internalType: 'int24',
                name: 'tickUpper',
                type: 'int24',
            },
            {
                internalType: 'int24[2]',
                name: 'ticksPrevious',
                type: 'int24[2]',
            },
            {
                internalType: 'uint128',
                name: 'qty',
                type: 'uint128',
            },
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'mint',
        outputs: [
            {
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'feeGrowthInsideLast',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'name',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'recipient',
                type: 'address',
            },
            {
                internalType: 'int256',
                name: 'swapQty',
                type: 'int256',
            },
            {
                internalType: 'bool',
                name: 'isToken0',
                type: 'bool',
            },
            {
                internalType: 'uint160',
                name: 'limitSqrtP',
                type: 'uint160',
            },
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'swap',
        outputs: [
            {
                internalType: 'int256',
                name: 'deltaQty0',
                type: 'int256',
            },
            {
                internalType: 'int256',
                name: 'deltaQty1',
                type: 'int256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'swapFeeUnits',
        outputs: [
            {
                internalType: 'uint24',
                name: '',
                type: 'uint24',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'symbol',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'tickDistance',
        outputs: [
            {
                internalType: 'int24',
                name: '',
                type: 'int24',
            },
        ],
        stateMutability: 'view',
        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: 'feeGrowthOutside',
                type: 'uint256',
            },
            {
                internalType: 'uint128',
                name: 'secondsPerLiquidityOutside',
                type: 'uint128',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'token0',
        outputs: [
            {
                internalType: 'contract IERC20',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'token1',
        outputs: [
            {
                internalType: 'contract IERC20',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'totalSupply',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'recipient',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'transfer',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'sender',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'recipient',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'transferFrom',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint160',
                name: 'initialSqrtP',
                type: 'uint160',
            },
        ],
        name: 'unlockPool',
        outputs: [
            {
                internalType: 'uint256',
                name: 'qty0',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'qty1',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
];
class Pool__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.Pool__factory = Pool__factory;
Pool__factory.abi = _abi;
//# sourceMappingURL=Pool__factory.js.map