"use strict";
/* Autogenerated file. Do not edit manually. */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PegStability__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "stableTokenAddress_",
                type: "address",
            },
            {
                internalType: "address",
                name: "vaiAddress_",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "AlreadyPaused",
        type: "error",
    },
    {
        inputs: [],
        name: "AmountTooSmall",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidFee",
        type: "error",
    },
    {
        inputs: [],
        name: "NotEnoughVAI",
        type: "error",
    },
    {
        inputs: [],
        name: "NotPaused",
        type: "error",
    },
    {
        inputs: [],
        name: "Paused",
        type: "error",
    },
    {
        inputs: [],
        name: "TooManyDecimals",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "sender",
                type: "address",
            },
            {
                internalType: "address",
                name: "calledContract",
                type: "address",
            },
            {
                internalType: "string",
                name: "methodSignature",
                type: "string",
            },
        ],
        name: "Unauthorized",
        type: "error",
    },
    {
        inputs: [],
        name: "VAIMintCapReached",
        type: "error",
    },
    {
        inputs: [],
        name: "VAIMintedUnderflow",
        type: "error",
    },
    {
        inputs: [],
        name: "VAITransferFail",
        type: "error",
    },
    {
        inputs: [],
        name: "ZeroAddress",
        type: "error",
    },
    {
        inputs: [],
        name: "ZeroAmount",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "oldFeeIn",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newFeeIn",
                type: "uint256",
            },
        ],
        name: "FeeInChanged",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "oldFeeOut",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newFeeOut",
                type: "uint256",
            },
        ],
        name: "FeeOutChanged",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint8",
                name: "version",
                type: "uint8",
            },
        ],
        name: "Initialized",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "oldAccessControlManager",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "newAccessControlManager",
                type: "address",
            },
        ],
        name: "NewAccessControlManager",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "oldOracle",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOracle",
                type: "address",
            },
        ],
        name: "OracleChanged",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferStarted",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferred",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "admin",
                type: "address",
            },
        ],
        name: "PSMPaused",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "admin",
                type: "address",
            },
        ],
        name: "PSMResumed",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "stableIn",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "vaiOut",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "fee",
                type: "uint256",
            },
        ],
        name: "StableForVAISwapped",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "vaiBurnt",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "stableOut",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "vaiFee",
                type: "uint256",
            },
        ],
        name: "VAIForStableSwapped",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "oldCap",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newCap",
                type: "uint256",
            },
        ],
        name: "VAIMintCapChanged",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "oldTreasury",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newTreasury",
                type: "address",
            },
        ],
        name: "VenusTreasuryChanged",
        type: "event",
    },
    {
        inputs: [],
        name: "BASIS_POINTS_DIVISOR",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "MANTISSA_ONE",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "ONE_DOLLAR",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "STABLE_TOKEN_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "VAI",
        outputs: [
            {
                internalType: "contract IVAI",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "acceptOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "accessControlManager",
        outputs: [
            {
                internalType: "contract IAccessControlManagerV8",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "feeIn",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "feeOut",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "accessControlManager_",
                type: "address",
            },
            {
                internalType: "address",
                name: "venusTreasury_",
                type: "address",
            },
            {
                internalType: "address",
                name: "oracleAddress_",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "feeIn_",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "feeOut_",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "vaiMintCap_",
                type: "uint256",
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "isPaused",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "oracle",
        outputs: [
            {
                internalType: "contract ResilientOracleInterface",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "pause",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "pendingOwner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "stableTknAmount",
                type: "uint256",
            },
        ],
        name: "previewSwapStableForVAI",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "stableTknAmount",
                type: "uint256",
            },
        ],
        name: "previewSwapVAIForStable",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "renounceOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "resume",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "accessControlManager_",
                type: "address",
            },
        ],
        name: "setAccessControlManager",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "feeIn_",
                type: "uint256",
            },
        ],
        name: "setFeeIn",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "feeOut_",
                type: "uint256",
            },
        ],
        name: "setFeeOut",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "oracleAddress_",
                type: "address",
            },
        ],
        name: "setOracle",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "vaiMintCap_",
                type: "uint256",
            },
        ],
        name: "setVAIMintCap",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "venusTreasury_",
                type: "address",
            },
        ],
        name: "setVenusTreasury",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "stableTknAmount",
                type: "uint256",
            },
        ],
        name: "swapStableForVAI",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "stableTknAmount",
                type: "uint256",
            },
        ],
        name: "swapVAIForStable",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "transferOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "vaiMintCap",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "vaiMinted",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "venusTreasury",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class PegStability__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(stableTokenAddress_, vaiAddress_, overrides) {
        return super.deploy(stableTokenAddress_, vaiAddress_, overrides || {});
    }
    getDeployTransaction(stableTokenAddress_, vaiAddress_, overrides) {
        return super.getDeployTransaction(stableTokenAddress_, vaiAddress_, overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.PegStability__factory = PegStability__factory;
PegStability__factory.bytecode = _bytecode;
PegStability__factory.abi = _abi;
