"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PendleMarketFactory__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'market',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'PT',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'int256',
                name: 'scalarRoot',
                type: 'int256',
            },
            {
                indexed: false,
                internalType: 'int256',
                name: 'initialAnchor',
                type: 'int256',
            },
        ],
        name: 'CreateNewMarket',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'treasury',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint80',
                name: 'defaultLnFeeRateRoot',
                type: 'uint80',
            },
            {
                indexed: false,
                internalType: 'uint8',
                name: 'reserveFeePercent',
                type: 'uint8',
            },
        ],
        name: 'NewMarketConfig',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'router',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint80',
                name: 'lnFeeRateRoot',
                type: 'uint80',
            },
            {
                indexed: false,
                internalType: 'uint8',
                name: 'reserveFeePercent',
                type: 'uint8',
            },
        ],
        name: 'SetOverriddenFee',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'router',
                type: 'address',
            },
        ],
        name: 'UnsetOverriddenFee',
        type: 'event',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'router',
                type: 'address',
            },
        ],
        name: 'getMarketConfig',
        outputs: [
            {
                internalType: 'address',
                name: 'treasury',
                type: 'address',
            },
            {
                internalType: 'uint80',
                name: 'lnFeeRateRoot',
                type: 'uint80',
            },
            {
                internalType: 'uint8',
                name: 'reserveFeePercent',
                type: 'uint8',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'market',
                type: 'address',
            },
        ],
        name: 'isValidMarket',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
];
class PendleMarketFactory__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.PendleMarketFactory__factory = PendleMarketFactory__factory;
PendleMarketFactory__factory.abi = _abi;
//# sourceMappingURL=PendleMarketFactory__factory.js.map