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

/* tslint:disable */

/* eslint-disable */
import type {
  IRiskStewardReceiver,
  IRiskStewardReceiverInterface,
} from "../../../../contracts/RiskSteward/Interfaces/IRiskStewardReceiver";
import type { Provider } from "@ethersproject/providers";
import { Contract, Signer, utils } from "ethers";

const _abi = [
  {
    inputs: [],
    name: "ConfigNotActive",
    type: "error",
  },
  {
    inputs: [],
    name: "ConfigStatusUnchanged",
    type: "error",
  },
  {
    inputs: [],
    name: "ExecutorStatusUnchanged",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidDebounce",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidLayerZeroEid",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidLzSendCaller",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidRegisteredUpdate",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidTimelock",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidUpdateToResend",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidUpdateType",
    type: "error",
  },
  {
    inputs: [],
    name: "NotAnExecutor",
    type: "error",
  },
  {
    inputs: [],
    name: "PauseStatusUnchanged",
    type: "error",
  },
  {
    inputs: [],
    name: "PausedError",
    type: "error",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    name: "RegisteredUpdateTypeExist",
    type: "error",
  },
  {
    inputs: [],
    name: "RenounceOwnershipNotAllowed",
    type: "error",
  },
  {
    inputs: [],
    name: "TransferFailed",
    type: "error",
  },
  {
    inputs: [],
    name: "UnsupportedUpdateType",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateAlreadyResolved",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateIsExpired",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateNotFound",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateNotUnlocked",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateTooFrequent",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateWillExpireBeforeUnlock",
    type: "error",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "bytes32",
        name: "updateTypeHash",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "previousActive",
        type: "bool",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "active",
        type: "bool",
      },
    ],
    name: "ConfigActiveUpdated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "executor",
        type: "address",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "previousApproved",
        type: "bool",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "approved",
        type: "bool",
      },
    ],
    name: "ExecutorStatusUpdated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "bool",
        name: "previousPaused",
        type: "bool",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "paused",
        type: "bool",
      },
    ],
    name: "PauseStatusUpdated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "bytes32",
        name: "updateTypeHash",
        type: "bytes32",
      },
      {
        indexed: false,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: true,
        internalType: "address",
        name: "previousRiskSteward",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "riskSteward",
        type: "address",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "previousDebounce",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "debounce",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "previousTimelock",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "timelock",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "previousActive",
        type: "bool",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "active",
        type: "bool",
      },
    ],
    name: "RiskParameterConfigUpdated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "receiver",
        type: "address",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "amount",
        type: "uint256",
      },
    ],
    name: "SweepNative",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "UpdateExecuted",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "UpdateExpired",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "unlockTime",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: true,
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "UpdateRegistered",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "UpdateRejected",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "uint32",
        name: "destLzEid",
        type: "uint32",
      },
      {
        indexed: true,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: true,
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "UpdateResentToDestination",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "uint32",
        name: "destLzEid",
        type: "uint32",
      },
      {
        indexed: true,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: true,
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "UpdateSentToDestination",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "executeRegisteredUpdate",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "address",
        name: "comptroller",
        type: "address",
      },
    ],
    name: "getExecutableUpdates",
    outputs: [
      {
        internalType: "uint256[]",
        name: "executableUpdates",
        type: "uint256[]",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "getLastProcessedUpdate",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "getLastRegisteredUpdate",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
    ],
    name: "getRiskParameterConfig",
    outputs: [
      {
        components: [
          {
            internalType: "bool",
            name: "active",
            type: "bool",
          },
          {
            internalType: "uint256",
            name: "debounce",
            type: "uint256",
          },
          {
            internalType: "uint256",
            name: "timelock",
            type: "uint256",
          },
          {
            internalType: "address",
            name: "riskSteward",
            type: "address",
          },
        ],
        internalType: "struct IRiskStewardReceiver.RiskParamConfig",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "isUpdateExecutable",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "processUpdate",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "rejectUpdate",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        internalType: "bytes",
        name: "options",
        type: "bytes",
      },
    ],
    name: "resendRemoteUpdate",
    outputs: [],
    stateMutability: "payable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "bool",
        name: "active",
        type: "bool",
      },
    ],
    name: "setConfigActive",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "address",
        name: "riskSteward",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "debounce",
        type: "uint256",
      },
      {
        internalType: "uint256",
        name: "timelock",
        type: "uint256",
      },
    ],
    name: "setRiskParameterConfig",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "executor",
        type: "address",
      },
      {
        internalType: "bool",
        name: "approved",
        type: "bool",
      },
    ],
    name: "setWhitelistedExecutor",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class IRiskStewardReceiver__factory {
  static readonly abi = _abi;
  static createInterface(): IRiskStewardReceiverInterface {
    return new utils.Interface(_abi) as IRiskStewardReceiverInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): IRiskStewardReceiver {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as IRiskStewardReceiver;
  }
}
