"use strict";
/* Autogenerated file. Do not edit manually. */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IPrime__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
        ],
        name: "accrueInterest",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "accrueInterestAndUpdateScore",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "comptroller",
                type: "address",
            },
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "supplyMultiplier",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "borrowMultiplier",
                type: "uint256",
            },
        ],
        name: "addMarket",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "burn",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "calculateAPR",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "supplyAPR",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "borrowAPR",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "totalScore",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "userScore",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "xvsBalanceForScore",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "capital",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "cappedSupply",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "cappedBorrow",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "supplyCapUSD",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "borrowCapUSD",
                        type: "uint256",
                    },
                ],
                internalType: "struct IPrime.APRInfo",
                name: "aprInfo",
                type: "tuple",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "claim",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
        ],
        name: "claimInterest",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "claimInterest",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "claimTimeRemaining",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "borrow",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "supply",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "xvsStaked",
                type: "uint256",
            },
        ],
        name: "estimateAPR",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "supplyAPR",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "borrowAPR",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "totalScore",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "userScore",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "xvsBalanceForScore",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "capital",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "cappedSupply",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "cappedBorrow",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "supplyCapUSD",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "borrowCapUSD",
                        type: "uint256",
                    },
                ],
                internalType: "struct IPrime.APRInfo",
                name: "aprInfo",
                type: "tuple",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "getAllMarkets",
        outputs: [
            {
                internalType: "address[]",
                name: "",
                type: "address[]",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "getInterestAccrued",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "getPendingRewards",
        outputs: [
            {
                components: [
                    {
                        internalType: "address",
                        name: "vToken",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "rewardToken",
                        type: "address",
                    },
                    {
                        internalType: "uint256",
                        name: "amount",
                        type: "uint256",
                    },
                ],
                internalType: "struct PrimeStorageV1.PendingReward[]",
                name: "pendingRewards",
                type: "tuple[]",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "vToken",
                type: "address",
            },
        ],
        name: "incomeDistributionYearly",
        outputs: [
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "isUserPrimeHolder",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bool",
                name: "isIrrevocable",
                type: "bool",
            },
            {
                internalType: "address[]",
                name: "users",
                type: "address[]",
            },
        ],
        name: "issue",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_irrevocableLimit",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_revocableLimit",
                type: "uint256",
            },
        ],
        name: "setLimit",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "loopsLimit",
                type: "uint256",
            },
        ],
        name: "setMaxLoopsLimit",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address[]",
                name: "users",
                type: "address[]",
            },
            {
                internalType: "uint256[]",
                name: "timestamps",
                type: "uint256[]",
            },
        ],
        name: "setStakedAt",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "togglePause",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint128",
                name: "_alphaNumerator",
                type: "uint128",
            },
            {
                internalType: "uint128",
                name: "_alphaDenominator",
                type: "uint128",
            },
        ],
        name: "updateAlpha",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "supplyMultiplier",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "borrowMultiplier",
                type: "uint256",
            },
        ],
        name: "updateMultipliers",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address[]",
                name: "users",
                type: "address[]",
            },
        ],
        name: "updateScores",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "user",
                type: "address",
            },
        ],
        name: "xvsUpdated",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
class IPrime__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.IPrime__factory = IPrime__factory;
IPrime__factory.abi = _abi;
