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

/* tslint:disable */

/* eslint-disable */
import type {
  IDestinationStewardReceiver,
  IDestinationStewardReceiverInterface,
} from "../../../../contracts/RiskSteward/Interfaces/IDestinationStewardReceiver";
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: "InvalidRemoteDelay",
    type: "error",
  },
  {
    inputs: [],
    name: "InvalidUpdateType",
    type: "error",
  },
  {
    inputs: [],
    name: "NotAnExecutor",
    type: "error",
  },
  {
    inputs: [],
    name: "RemoteDelayUnchanged",
    type: "error",
  },
  {
    inputs: [],
    name: "RenounceOwnershipNotAllowed",
    type: "error",
  },
  {
    inputs: [],
    name: "UnsupportedUpdateType",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateIsExpired",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateNotFound",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateNotUnlocked",
    type: "error",
  },
  {
    inputs: [],
    name: "UpdateTooFrequent",
    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: true,
        internalType: "bool",
        name: "active",
        type: "bool",
      },
    ],
    name: "ConfigActiveUpdated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "arrivalTime",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: true,
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "DuplicateUpdateReceived",
    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: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "arrivalTime",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: true,
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "RegisteredPendingUpdateExist",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "remoteDelay",
        type: "uint256",
      },
    ],
    name: "RemoteDelaySet",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "RemoteUpdateExecuted",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "arrivalTime",
        type: "uint256",
      },
      {
        indexed: true,
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        indexed: true,
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "RemoteUpdateRegistered",
    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: "bool",
        name: "previousActive",
        type: "bool",
      },
      {
        indexed: false,
        internalType: "bool",
        name: "active",
        type: "bool",
      },
    ],
    name: "RiskParameterConfigUpdated",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "UpdateRejected",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "executeUpdate",
    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: "getLastExecutedAt",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "address",
        name: "market",
        type: "address",
      },
    ],
    name: "getRegisteredUpdate",
    outputs: [
      {
        components: [
          {
            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",
          },
          {
            internalType: "enum IDestinationStewardReceiver.UpdateStatus",
            name: "status",
            type: "uint8",
          },
          {
            internalType: "uint256",
            name: "arrivalTime",
            type: "uint256",
          },
          {
            internalType: "address",
            name: "executor",
            type: "address",
          },
        ],
        internalType: "struct IDestinationStewardReceiver.DestinationUpdate",
        name: "",
        type: "tuple",
      },
    ],
    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: "address",
            name: "riskSteward",
            type: "address",
          },
        ],
        internalType: "struct IDestinationStewardReceiver.RiskParamConfig",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "updateId",
        type: "uint256",
      },
    ],
    name: "rejectUpdate",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "bool",
        name: "active",
        type: "bool",
      },
    ],
    name: "setConfigActive",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "newRemoteDelay",
        type: "uint256",
      },
    ],
    name: "setRemoteDelay",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "updateType",
        type: "string",
      },
      {
        internalType: "address",
        name: "riskSteward",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "debounce",
        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 IDestinationStewardReceiver__factory {
  static readonly abi = _abi;
  static createInterface(): IDestinationStewardReceiverInterface {
    return new utils.Interface(_abi) as IDestinationStewardReceiverInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): IDestinationStewardReceiver {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as IDestinationStewardReceiver;
  }
}
