/* Autogenerated file. Do not edit manually. */

/* tslint:disable */

/* eslint-disable */
import type { PromiseOrValue } from "../../../common";
import type {
  IRMRiskSteward,
  IRMRiskStewardInterface,
} from "../../../contracts/RiskSteward/IRMRiskSteward";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";

const _abi = [
  {
    inputs: [
      {
        internalType: "address",
        name: "corePoolComptroller_",
        type: "address",
      },
      {
        internalType: "address",
        name: "riskStewardReceiver_",
        type: "address",
      },
    ],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    inputs: [],
    name: "InvalidAddressLength",
    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: "SetInterestRateModelFailed",
    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: false,
        internalType: "uint8",
        name: "version",
        type: "uint8",
      },
    ],
    name: "Initialized",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "address",
        name: "market",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "newInterestRateModel",
        type: "address",
      },
    ],
    name: "InterestRateModelUpdated",
    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",
  },
  {
    inputs: [],
    name: "CORE_POOL_COMPTROLLER",
    outputs: [
      {
        internalType: "contract ICorePoolComptroller",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "INTEREST_RATE_MODEL",
    outputs: [
      {
        internalType: "string",
        name: "",
        type: "string",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "INTEREST_RATE_MODEL_KEY",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    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: "address",
        name: "newOwner",
        type: "address",
      },
    ],
    name: "transferOwnership",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

const _bytecode =
  " ";

type IRMRiskStewardConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: IRMRiskStewardConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class IRMRiskSteward__factory extends ContractFactory {
  constructor(...args: IRMRiskStewardConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  override deploy(
    corePoolComptroller_: PromiseOrValue<string>,
    riskStewardReceiver_: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<IRMRiskSteward> {
    return super.deploy(
      corePoolComptroller_,
      riskStewardReceiver_,
      overrides || {}
    ) as Promise<IRMRiskSteward>;
  }
  override getDeployTransaction(
    corePoolComptroller_: PromiseOrValue<string>,
    riskStewardReceiver_: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(
      corePoolComptroller_,
      riskStewardReceiver_,
      overrides || {}
    );
  }
  override attach(address: string): IRMRiskSteward {
    return super.attach(address) as IRMRiskSteward;
  }
  override connect(signer: Signer): IRMRiskSteward__factory {
    return super.connect(signer) as IRMRiskSteward__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): IRMRiskStewardInterface {
    return new utils.Interface(_abi) as IRMRiskStewardInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): IRMRiskSteward {
    return new Contract(address, _abi, signerOrProvider) as IRMRiskSteward;
  }
}
