"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MarketXyzPoolLens__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: 'contract FusePoolDirectory',
                name: '_directory',
                type: 'address',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        inputs: [],
        name: 'directory',
        outputs: [
            {
                internalType: 'contract FusePoolDirectory',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Comptroller',
                name: 'comptroller',
                type: 'address',
            },
        ],
        name: 'getPoolAssetsWithData',
        outputs: [
            {
                components: [
                    {
                        internalType: 'address',
                        name: 'cToken',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'underlyingToken',
                        type: 'address',
                    },
                    {
                        internalType: 'string',
                        name: 'underlyingName',
                        type: 'string',
                    },
                    {
                        internalType: 'string',
                        name: 'underlyingSymbol',
                        type: 'string',
                    },
                    {
                        internalType: 'uint256',
                        name: 'underlyingDecimals',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'underlyingBalance',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'supplyRatePerBlock',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'borrowRatePerBlock',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalSupply',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalBorrow',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'supplyBalance',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'borrowBalance',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'liquidity',
                        type: 'uint256',
                    },
                    {
                        internalType: 'bool',
                        name: 'membership',
                        type: 'bool',
                    },
                    {
                        internalType: 'uint256',
                        name: 'exchangeRate',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'underlyingPrice',
                        type: 'uint256',
                    },
                    {
                        internalType: 'address',
                        name: 'oracle',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'collateralFactor',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'reserveFactor',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'adminFee',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'fuseFee',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct FusePoolLens.FusePoolAsset[]',
                name: '',
                type: 'tuple[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Comptroller',
                name: 'comptroller',
                type: 'address',
            },
        ],
        name: 'getPoolOwnership',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
            {
                components: [
                    {
                        internalType: 'address',
                        name: 'cToken',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'admin',
                        type: 'address',
                    },
                    {
                        internalType: 'bool',
                        name: 'adminHasRights',
                        type: 'bool',
                    },
                    {
                        internalType: 'bool',
                        name: 'fuseAdminHasRights',
                        type: 'bool',
                    },
                ],
                internalType: 'struct FusePoolLens.CTokenOwnership[]',
                name: '',
                type: 'tuple[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Comptroller',
                name: 'comptroller',
                type: 'address',
            },
        ],
        name: 'getPoolSummary',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
            {
                internalType: 'address[]',
                name: '',
                type: 'address[]',
            },
            {
                internalType: 'string[]',
                name: '',
                type: 'string[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Comptroller',
                name: 'comptroller',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'getPoolUserSummary',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Comptroller[]',
                name: 'comptrollers',
                type: 'address[]',
            },
            {
                internalType: 'uint256',
                name: 'maxHealth',
                type: 'uint256',
            },
        ],
        name: 'getPoolUsersWithData',
        outputs: [
            {
                components: [
                    {
                        internalType: 'address',
                        name: 'account',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalBorrow',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalCollateral',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'health',
                        type: 'uint256',
                    },
                    {
                        components: [
                            {
                                internalType: 'address',
                                name: 'cToken',
                                type: 'address',
                            },
                            {
                                internalType: 'address',
                                name: 'underlyingToken',
                                type: 'address',
                            },
                            {
                                internalType: 'string',
                                name: 'underlyingName',
                                type: 'string',
                            },
                            {
                                internalType: 'string',
                                name: 'underlyingSymbol',
                                type: 'string',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingDecimals',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'supplyRatePerBlock',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'borrowRatePerBlock',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'totalSupply',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'totalBorrow',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'supplyBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'borrowBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'liquidity',
                                type: 'uint256',
                            },
                            {
                                internalType: 'bool',
                                name: 'membership',
                                type: 'bool',
                            },
                            {
                                internalType: 'uint256',
                                name: 'exchangeRate',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingPrice',
                                type: 'uint256',
                            },
                            {
                                internalType: 'address',
                                name: 'oracle',
                                type: 'address',
                            },
                            {
                                internalType: 'uint256',
                                name: 'collateralFactor',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'reserveFactor',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'adminFee',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'fuseFee',
                                type: 'uint256',
                            },
                        ],
                        internalType: 'struct FusePoolLens.FusePoolAsset[]',
                        name: 'assets',
                        type: 'tuple[]',
                    },
                ],
                internalType: 'struct FusePoolLens.FusePoolUser[][]',
                name: '',
                type: 'tuple[][]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'contract Comptroller',
                name: 'comptroller',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'maxHealth',
                type: 'uint256',
            },
        ],
        name: 'getPoolUsersWithData',
        outputs: [
            {
                components: [
                    {
                        internalType: 'address',
                        name: 'account',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalBorrow',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalCollateral',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'health',
                        type: 'uint256',
                    },
                    {
                        components: [
                            {
                                internalType: 'address',
                                name: 'cToken',
                                type: 'address',
                            },
                            {
                                internalType: 'address',
                                name: 'underlyingToken',
                                type: 'address',
                            },
                            {
                                internalType: 'string',
                                name: 'underlyingName',
                                type: 'string',
                            },
                            {
                                internalType: 'string',
                                name: 'underlyingSymbol',
                                type: 'string',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingDecimals',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'supplyRatePerBlock',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'borrowRatePerBlock',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'totalSupply',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'totalBorrow',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'supplyBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'borrowBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'liquidity',
                                type: 'uint256',
                            },
                            {
                                internalType: 'bool',
                                name: 'membership',
                                type: 'bool',
                            },
                            {
                                internalType: 'uint256',
                                name: 'exchangeRate',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingPrice',
                                type: 'uint256',
                            },
                            {
                                internalType: 'address',
                                name: 'oracle',
                                type: 'address',
                            },
                            {
                                internalType: 'uint256',
                                name: 'collateralFactor',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'reserveFactor',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'adminFee',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'fuseFee',
                                type: 'uint256',
                            },
                        ],
                        internalType: 'struct FusePoolLens.FusePoolAsset[]',
                        name: 'assets',
                        type: 'tuple[]',
                    },
                ],
                internalType: 'struct FusePoolLens.FusePoolUser[]',
                name: '',
                type: 'tuple[]',
            },
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'getPoolsByAccountWithData',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                components: [
                    {
                        internalType: 'string',
                        name: 'name',
                        type: 'string',
                    },
                    {
                        internalType: 'address',
                        name: 'creator',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'comptroller',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'blockPosted',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'timestampPosted',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct FusePoolDirectory.FusePool[]',
                name: '',
                type: 'tuple[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'address[][]',
                name: '',
                type: 'address[][]',
            },
            {
                internalType: 'string[][]',
                name: '',
                type: 'string[][]',
            },
            {
                internalType: 'bool[]',
                name: '',
                type: 'bool[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'getPoolsBySupplier',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                components: [
                    {
                        internalType: 'string',
                        name: 'name',
                        type: 'string',
                    },
                    {
                        internalType: 'address',
                        name: 'creator',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'comptroller',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'blockPosted',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'timestampPosted',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct FusePoolDirectory.FusePool[]',
                name: '',
                type: 'tuple[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'getPoolsBySupplierWithData',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                components: [
                    {
                        internalType: 'string',
                        name: 'name',
                        type: 'string',
                    },
                    {
                        internalType: 'address',
                        name: 'creator',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'comptroller',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'blockPosted',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'timestampPosted',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct FusePoolDirectory.FusePool[]',
                name: '',
                type: 'tuple[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'address[][]',
                name: '',
                type: 'address[][]',
            },
            {
                internalType: 'string[][]',
                name: '',
                type: 'string[][]',
            },
            {
                internalType: 'bool[]',
                name: '',
                type: 'bool[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'maxHealth',
                type: 'uint256',
            },
        ],
        name: 'getPublicPoolUsersWithData',
        outputs: [
            {
                internalType: 'address[]',
                name: '',
                type: 'address[]',
            },
            {
                components: [
                    {
                        internalType: 'address',
                        name: 'account',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalBorrow',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'totalCollateral',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'health',
                        type: 'uint256',
                    },
                    {
                        components: [
                            {
                                internalType: 'address',
                                name: 'cToken',
                                type: 'address',
                            },
                            {
                                internalType: 'address',
                                name: 'underlyingToken',
                                type: 'address',
                            },
                            {
                                internalType: 'string',
                                name: 'underlyingName',
                                type: 'string',
                            },
                            {
                                internalType: 'string',
                                name: 'underlyingSymbol',
                                type: 'string',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingDecimals',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'supplyRatePerBlock',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'borrowRatePerBlock',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'totalSupply',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'totalBorrow',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'supplyBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'borrowBalance',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'liquidity',
                                type: 'uint256',
                            },
                            {
                                internalType: 'bool',
                                name: 'membership',
                                type: 'bool',
                            },
                            {
                                internalType: 'uint256',
                                name: 'exchangeRate',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'underlyingPrice',
                                type: 'uint256',
                            },
                            {
                                internalType: 'address',
                                name: 'oracle',
                                type: 'address',
                            },
                            {
                                internalType: 'uint256',
                                name: 'collateralFactor',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'reserveFactor',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'adminFee',
                                type: 'uint256',
                            },
                            {
                                internalType: 'uint256',
                                name: 'fuseFee',
                                type: 'uint256',
                            },
                        ],
                        internalType: 'struct FusePoolLens.FusePoolAsset[]',
                        name: 'assets',
                        type: 'tuple[]',
                    },
                ],
                internalType: 'struct FusePoolLens.FusePoolUser[][]',
                name: '',
                type: 'tuple[][]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'bool[]',
                name: '',
                type: 'bool[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getPublicPoolsWithData',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                components: [
                    {
                        internalType: 'string',
                        name: 'name',
                        type: 'string',
                    },
                    {
                        internalType: 'address',
                        name: 'creator',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'comptroller',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'blockPosted',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'timestampPosted',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct FusePoolDirectory.FusePool[]',
                name: '',
                type: 'tuple[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'address[][]',
                name: '',
                type: 'address[][]',
            },
            {
                internalType: 'string[][]',
                name: '',
                type: 'string[][]',
            },
            {
                internalType: 'bool[]',
                name: '',
                type: 'bool[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'getUserSummary',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'getWhitelistedPoolsByAccount',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                components: [
                    {
                        internalType: 'string',
                        name: 'name',
                        type: 'string',
                    },
                    {
                        internalType: 'address',
                        name: 'creator',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'comptroller',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'blockPosted',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'timestampPosted',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct FusePoolDirectory.FusePool[]',
                name: '',
                type: 'tuple[]',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
        ],
        name: 'getWhitelistedPoolsByAccountWithData',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                components: [
                    {
                        internalType: 'string',
                        name: 'name',
                        type: 'string',
                    },
                    {
                        internalType: 'address',
                        name: 'creator',
                        type: 'address',
                    },
                    {
                        internalType: 'address',
                        name: 'comptroller',
                        type: 'address',
                    },
                    {
                        internalType: 'uint256',
                        name: 'blockPosted',
                        type: 'uint256',
                    },
                    {
                        internalType: 'uint256',
                        name: 'timestampPosted',
                        type: 'uint256',
                    },
                ],
                internalType: 'struct FusePoolDirectory.FusePool[]',
                name: '',
                type: 'tuple[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
            {
                internalType: 'address[][]',
                name: '',
                type: 'address[][]',
            },
            {
                internalType: 'string[][]',
                name: '',
                type: 'string[][]',
            },
            {
                internalType: 'bool[]',
                name: '',
                type: 'bool[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
];
class MarketXyzPoolLens__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.MarketXyzPoolLens__factory = MarketXyzPoolLens__factory;
MarketXyzPoolLens__factory.abi = _abi;
//# sourceMappingURL=MarketXyzPoolLens__factory.js.map