"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CollateralFactorsRiskSteward__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "corePoolComptroller_",
                type: "address",
            },
            {
                internalType: "address",
                name: "riskStewardReceiver_",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "InvalidPool",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidSafeDeltaBps",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidTwoUintLength",
        type: "error",
    },
    {
        inputs: [],
        name: "OnlyRiskStewardReceiver",
        type: "error",
    },
    {
        inputs: [],
        name: "RedundantValue",
        type: "error",
    },
    {
        inputs: [],
        name: "RenounceOwnershipNotAllowed",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "errorCode",
                type: "uint256",
            },
        ],
        name: "SetCollateralFactorFailed",
        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: "UnsupportedUpdateType",
        type: "error",
    },
    {
        inputs: [],
        name: "ZeroAddressNotAllowed",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "address",
                name: "market",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newCollateralFactor",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newLiquidationThreshold",
                type: "uint256",
            },
        ],
        name: "CollateralFactorsUpdated",
        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: "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: false,
                internalType: "uint256",
                name: "oldSafeDeltaBps",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "newSafeDeltaBps",
                type: "uint256",
            },
        ],
        name: "SafeDeltaBpsUpdated",
        type: "event",
    },
    {
        inputs: [],
        name: "COLLATERAL_FACTORS",
        outputs: [
            {
                internalType: "string",
                name: "",
                type: "string",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "COLLATERAL_FACTORS_KEY",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "CORE_POOL_COMPTROLLER",
        outputs: [
            {
                internalType: "contract ICorePoolComptroller",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "RISK_STEWARD_RECEIVER",
        outputs: [
            {
                internalType: "contract IRiskStewardReceiver",
                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: [
            {
                components: [
                    {
                        internalType: "string",
                        name: "referenceId",
                        type: "string",
                    },
                    {
                        internalType: "uint256",
                        name: "updateId",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "market",
                        type: "address",
                    },
                    {
                        internalType: "string",
                        name: "updateType",
                        type: "string",
                    },
                    {
                        internalType: "bytes32",
                        name: "updateTypeKey",
                        type: "bytes32",
                    },
                    {
                        internalType: "bytes",
                        name: "newValue",
                        type: "bytes",
                    },
                    {
                        internalType: "bytes",
                        name: "previousValue",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256",
                        name: "timestamp",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "publisher",
                        type: "address",
                    },
                    {
                        internalType: "uint96",
                        name: "poolId",
                        type: "uint96",
                    },
                    {
                        internalType: "uint32",
                        name: "destLzEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes",
                        name: "additionalData",
                        type: "bytes",
                    },
                ],
                internalType: "struct RiskParameterUpdate",
                name: "update",
                type: "tuple",
            },
        ],
        name: "applyUpdate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "accessControlManager_",
                type: "address",
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "string",
                        name: "referenceId",
                        type: "string",
                    },
                    {
                        internalType: "uint256",
                        name: "updateId",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "market",
                        type: "address",
                    },
                    {
                        internalType: "string",
                        name: "updateType",
                        type: "string",
                    },
                    {
                        internalType: "bytes32",
                        name: "updateTypeKey",
                        type: "bytes32",
                    },
                    {
                        internalType: "bytes",
                        name: "newValue",
                        type: "bytes",
                    },
                    {
                        internalType: "bytes",
                        name: "previousValue",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256",
                        name: "timestamp",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "publisher",
                        type: "address",
                    },
                    {
                        internalType: "uint96",
                        name: "poolId",
                        type: "uint96",
                    },
                    {
                        internalType: "uint32",
                        name: "destLzEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes",
                        name: "additionalData",
                        type: "bytes",
                    },
                ],
                internalType: "struct RiskParameterUpdate",
                name: "update",
                type: "tuple",
            },
        ],
        name: "isSafeForDirectExecution",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "pendingOwner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "renounceOwnership",
        outputs: [],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [],
        name: "safeDeltaBps",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "accessControlManager_",
                type: "address",
            },
        ],
        name: "setAccessControlManager",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "safeDeltaBps_",
                type: "uint256",
            },
        ],
        name: "setSafeDeltaBps",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "transferOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class CollateralFactorsRiskSteward__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(corePoolComptroller_, riskStewardReceiver_, overrides) {
        return super.deploy(corePoolComptroller_, riskStewardReceiver_, overrides || {});
    }
    getDeployTransaction(corePoolComptroller_, riskStewardReceiver_, overrides) {
        return super.getDeployTransaction(corePoolComptroller_, riskStewardReceiver_, 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.CollateralFactorsRiskSteward__factory = CollateralFactorsRiskSteward__factory;
CollateralFactorsRiskSteward__factory.bytecode = _bytecode;
CollateralFactorsRiskSteward__factory.abi = _abi;
//# sourceMappingURL=CollateralFactorsRiskSteward__factory.js.map