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

/* tslint:disable */

/* eslint-disable */
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../common";
import type {
  FunctionFragment,
  Result,
  EventFragment,
} from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  Overrides,
  PopulatedTransaction,
  Signer,
  utils,
} from "ethers";

export type RiskParameterUpdateStruct = {
  referenceId: PromiseOrValue<string>;
  updateId: PromiseOrValue<BigNumberish>;
  market: PromiseOrValue<string>;
  updateType: PromiseOrValue<string>;
  updateTypeKey: PromiseOrValue<BytesLike>;
  newValue: PromiseOrValue<BytesLike>;
  previousValue: PromiseOrValue<BytesLike>;
  timestamp: PromiseOrValue<BigNumberish>;
  publisher: PromiseOrValue<string>;
  poolId: PromiseOrValue<BigNumberish>;
  destLzEid: PromiseOrValue<BigNumberish>;
  additionalData: PromiseOrValue<BytesLike>;
};

export type RiskParameterUpdateStructOutput = [
  string,
  BigNumber,
  string,
  string,
  string,
  string,
  string,
  BigNumber,
  string,
  BigNumber,
  number,
  string
] & {
  referenceId: string;
  updateId: BigNumber;
  market: string;
  updateType: string;
  updateTypeKey: string;
  newValue: string;
  previousValue: string;
  timestamp: BigNumber;
  publisher: string;
  poolId: BigNumber;
  destLzEid: number;
  additionalData: string;
};

export interface CollateralFactorsRiskStewardInterface extends utils.Interface {
  functions: {
    "COLLATERAL_FACTORS()": FunctionFragment;
    "COLLATERAL_FACTORS_KEY()": FunctionFragment;
    "CORE_POOL_COMPTROLLER()": FunctionFragment;
    "RISK_STEWARD_RECEIVER()": FunctionFragment;
    "acceptOwnership()": FunctionFragment;
    "accessControlManager()": FunctionFragment;
    "applyUpdate((string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes))": FunctionFragment;
    "initialize(address)": FunctionFragment;
    "isSafeForDirectExecution((string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes))": FunctionFragment;
    "owner()": FunctionFragment;
    "pendingOwner()": FunctionFragment;
    "renounceOwnership()": FunctionFragment;
    "safeDeltaBps()": FunctionFragment;
    "setAccessControlManager(address)": FunctionFragment;
    "setSafeDeltaBps(uint256)": FunctionFragment;
    "transferOwnership(address)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "COLLATERAL_FACTORS"
      | "COLLATERAL_FACTORS_KEY"
      | "CORE_POOL_COMPTROLLER"
      | "RISK_STEWARD_RECEIVER"
      | "acceptOwnership"
      | "accessControlManager"
      | "applyUpdate"
      | "initialize"
      | "isSafeForDirectExecution"
      | "owner"
      | "pendingOwner"
      | "renounceOwnership"
      | "safeDeltaBps"
      | "setAccessControlManager"
      | "setSafeDeltaBps"
      | "transferOwnership"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "COLLATERAL_FACTORS",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "COLLATERAL_FACTORS_KEY",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "CORE_POOL_COMPTROLLER",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "RISK_STEWARD_RECEIVER",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "acceptOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "accessControlManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "applyUpdate",
    values: [RiskParameterUpdateStruct]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "isSafeForDirectExecution",
    values: [RiskParameterUpdateStruct]
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "pendingOwner",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "renounceOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "safeDeltaBps",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setAccessControlManager",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "setSafeDeltaBps",
    values: [PromiseOrValue<BigNumberish>]
  ): string;
  encodeFunctionData(
    functionFragment: "transferOwnership",
    values: [PromiseOrValue<string>]
  ): string;

  decodeFunctionResult(
    functionFragment: "COLLATERAL_FACTORS",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "COLLATERAL_FACTORS_KEY",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "CORE_POOL_COMPTROLLER",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "RISK_STEWARD_RECEIVER",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "accessControlManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "applyUpdate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "isSafeForDirectExecution",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "pendingOwner",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "renounceOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "safeDeltaBps",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAccessControlManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setSafeDeltaBps",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferOwnership",
    data: BytesLike
  ): Result;

  events: {
    "CollateralFactorsUpdated(uint256,address,uint256,uint256)": EventFragment;
    "Initialized(uint8)": EventFragment;
    "NewAccessControlManager(address,address)": EventFragment;
    "OwnershipTransferStarted(address,address)": EventFragment;
    "OwnershipTransferred(address,address)": EventFragment;
    "SafeDeltaBpsUpdated(uint256,uint256)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "CollateralFactorsUpdated"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "NewAccessControlManager"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SafeDeltaBpsUpdated"): EventFragment;
}

export interface CollateralFactorsUpdatedEventObject {
  updateId: BigNumber;
  market: string;
  newCollateralFactor: BigNumber;
  newLiquidationThreshold: BigNumber;
}
export type CollateralFactorsUpdatedEvent = TypedEvent<
  [BigNumber, string, BigNumber, BigNumber],
  CollateralFactorsUpdatedEventObject
>;

export type CollateralFactorsUpdatedEventFilter =
  TypedEventFilter<CollateralFactorsUpdatedEvent>;

export interface InitializedEventObject {
  version: number;
}
export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;

export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;

export interface NewAccessControlManagerEventObject {
  oldAccessControlManager: string;
  newAccessControlManager: string;
}
export type NewAccessControlManagerEvent = TypedEvent<
  [string, string],
  NewAccessControlManagerEventObject
>;

export type NewAccessControlManagerEventFilter =
  TypedEventFilter<NewAccessControlManagerEvent>;

export interface OwnershipTransferStartedEventObject {
  previousOwner: string;
  newOwner: string;
}
export type OwnershipTransferStartedEvent = TypedEvent<
  [string, string],
  OwnershipTransferStartedEventObject
>;

export type OwnershipTransferStartedEventFilter =
  TypedEventFilter<OwnershipTransferStartedEvent>;

export interface OwnershipTransferredEventObject {
  previousOwner: string;
  newOwner: string;
}
export type OwnershipTransferredEvent = TypedEvent<
  [string, string],
  OwnershipTransferredEventObject
>;

export type OwnershipTransferredEventFilter =
  TypedEventFilter<OwnershipTransferredEvent>;

export interface SafeDeltaBpsUpdatedEventObject {
  oldSafeDeltaBps: BigNumber;
  newSafeDeltaBps: BigNumber;
}
export type SafeDeltaBpsUpdatedEvent = TypedEvent<
  [BigNumber, BigNumber],
  SafeDeltaBpsUpdatedEventObject
>;

export type SafeDeltaBpsUpdatedEventFilter =
  TypedEventFilter<SafeDeltaBpsUpdatedEvent>;

export interface CollateralFactorsRiskSteward extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  interface: CollateralFactorsRiskStewardInterface;

  queryFilter<TEvent extends TypedEvent>(
    event: TypedEventFilter<TEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TEvent>>;

  listeners<TEvent extends TypedEvent>(
    eventFilter?: TypedEventFilter<TEvent>
  ): Array<TypedListener<TEvent>>;
  listeners(eventName?: string): Array<Listener>;
  removeAllListeners<TEvent extends TypedEvent>(
    eventFilter: TypedEventFilter<TEvent>
  ): this;
  removeAllListeners(eventName?: string): this;
  off: OnEvent<this>;
  on: OnEvent<this>;
  once: OnEvent<this>;
  removeListener: OnEvent<this>;

  functions: {
    COLLATERAL_FACTORS(overrides?: CallOverrides): Promise<[string]>;

    COLLATERAL_FACTORS_KEY(overrides?: CallOverrides): Promise<[string]>;

    CORE_POOL_COMPTROLLER(overrides?: CallOverrides): Promise<[string]>;

    RISK_STEWARD_RECEIVER(overrides?: CallOverrides): Promise<[string]>;

    acceptOwnership(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    accessControlManager(overrides?: CallOverrides): Promise<[string]>;

    applyUpdate(
      update: RiskParameterUpdateStruct,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    initialize(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    isSafeForDirectExecution(
      update: RiskParameterUpdateStruct,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    owner(overrides?: CallOverrides): Promise<[string]>;

    pendingOwner(overrides?: CallOverrides): Promise<[string]>;

    renounceOwnership(overrides?: CallOverrides): Promise<[void]>;

    safeDeltaBps(overrides?: CallOverrides): Promise<[BigNumber]>;

    setAccessControlManager(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    setSafeDeltaBps(
      safeDeltaBps_: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    transferOwnership(
      newOwner: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;
  };

  COLLATERAL_FACTORS(overrides?: CallOverrides): Promise<string>;

  COLLATERAL_FACTORS_KEY(overrides?: CallOverrides): Promise<string>;

  CORE_POOL_COMPTROLLER(overrides?: CallOverrides): Promise<string>;

  RISK_STEWARD_RECEIVER(overrides?: CallOverrides): Promise<string>;

  acceptOwnership(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  accessControlManager(overrides?: CallOverrides): Promise<string>;

  applyUpdate(
    update: RiskParameterUpdateStruct,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  initialize(
    accessControlManager_: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  isSafeForDirectExecution(
    update: RiskParameterUpdateStruct,
    overrides?: CallOverrides
  ): Promise<boolean>;

  owner(overrides?: CallOverrides): Promise<string>;

  pendingOwner(overrides?: CallOverrides): Promise<string>;

  renounceOwnership(overrides?: CallOverrides): Promise<void>;

  safeDeltaBps(overrides?: CallOverrides): Promise<BigNumber>;

  setAccessControlManager(
    accessControlManager_: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  setSafeDeltaBps(
    safeDeltaBps_: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  transferOwnership(
    newOwner: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    COLLATERAL_FACTORS(overrides?: CallOverrides): Promise<string>;

    COLLATERAL_FACTORS_KEY(overrides?: CallOverrides): Promise<string>;

    CORE_POOL_COMPTROLLER(overrides?: CallOverrides): Promise<string>;

    RISK_STEWARD_RECEIVER(overrides?: CallOverrides): Promise<string>;

    acceptOwnership(overrides?: CallOverrides): Promise<void>;

    accessControlManager(overrides?: CallOverrides): Promise<string>;

    applyUpdate(
      update: RiskParameterUpdateStruct,
      overrides?: CallOverrides
    ): Promise<void>;

    initialize(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    isSafeForDirectExecution(
      update: RiskParameterUpdateStruct,
      overrides?: CallOverrides
    ): Promise<boolean>;

    owner(overrides?: CallOverrides): Promise<string>;

    pendingOwner(overrides?: CallOverrides): Promise<string>;

    renounceOwnership(overrides?: CallOverrides): Promise<void>;

    safeDeltaBps(overrides?: CallOverrides): Promise<BigNumber>;

    setAccessControlManager(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    setSafeDeltaBps(
      safeDeltaBps_: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<void>;

    transferOwnership(
      newOwner: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {
    "CollateralFactorsUpdated(uint256,address,uint256,uint256)"(
      updateId?: PromiseOrValue<BigNumberish> | null,
      market?: PromiseOrValue<string> | null,
      newCollateralFactor?: null,
      newLiquidationThreshold?: null
    ): CollateralFactorsUpdatedEventFilter;
    CollateralFactorsUpdated(
      updateId?: PromiseOrValue<BigNumberish> | null,
      market?: PromiseOrValue<string> | null,
      newCollateralFactor?: null,
      newLiquidationThreshold?: null
    ): CollateralFactorsUpdatedEventFilter;

    "Initialized(uint8)"(version?: null): InitializedEventFilter;
    Initialized(version?: null): InitializedEventFilter;

    "NewAccessControlManager(address,address)"(
      oldAccessControlManager?: null,
      newAccessControlManager?: null
    ): NewAccessControlManagerEventFilter;
    NewAccessControlManager(
      oldAccessControlManager?: null,
      newAccessControlManager?: null
    ): NewAccessControlManagerEventFilter;

    "OwnershipTransferStarted(address,address)"(
      previousOwner?: PromiseOrValue<string> | null,
      newOwner?: PromiseOrValue<string> | null
    ): OwnershipTransferStartedEventFilter;
    OwnershipTransferStarted(
      previousOwner?: PromiseOrValue<string> | null,
      newOwner?: PromiseOrValue<string> | null
    ): OwnershipTransferStartedEventFilter;

    "OwnershipTransferred(address,address)"(
      previousOwner?: PromiseOrValue<string> | null,
      newOwner?: PromiseOrValue<string> | null
    ): OwnershipTransferredEventFilter;
    OwnershipTransferred(
      previousOwner?: PromiseOrValue<string> | null,
      newOwner?: PromiseOrValue<string> | null
    ): OwnershipTransferredEventFilter;

    "SafeDeltaBpsUpdated(uint256,uint256)"(
      oldSafeDeltaBps?: null,
      newSafeDeltaBps?: null
    ): SafeDeltaBpsUpdatedEventFilter;
    SafeDeltaBpsUpdated(
      oldSafeDeltaBps?: null,
      newSafeDeltaBps?: null
    ): SafeDeltaBpsUpdatedEventFilter;
  };

  estimateGas: {
    COLLATERAL_FACTORS(overrides?: CallOverrides): Promise<BigNumber>;

    COLLATERAL_FACTORS_KEY(overrides?: CallOverrides): Promise<BigNumber>;

    CORE_POOL_COMPTROLLER(overrides?: CallOverrides): Promise<BigNumber>;

    RISK_STEWARD_RECEIVER(overrides?: CallOverrides): Promise<BigNumber>;

    acceptOwnership(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    accessControlManager(overrides?: CallOverrides): Promise<BigNumber>;

    applyUpdate(
      update: RiskParameterUpdateStruct,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    initialize(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    isSafeForDirectExecution(
      update: RiskParameterUpdateStruct,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    owner(overrides?: CallOverrides): Promise<BigNumber>;

    pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;

    renounceOwnership(overrides?: CallOverrides): Promise<BigNumber>;

    safeDeltaBps(overrides?: CallOverrides): Promise<BigNumber>;

    setAccessControlManager(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    setSafeDeltaBps(
      safeDeltaBps_: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    transferOwnership(
      newOwner: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    COLLATERAL_FACTORS(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    COLLATERAL_FACTORS_KEY(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    CORE_POOL_COMPTROLLER(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    RISK_STEWARD_RECEIVER(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    acceptOwnership(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    accessControlManager(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    applyUpdate(
      update: RiskParameterUpdateStruct,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    initialize(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    isSafeForDirectExecution(
      update: RiskParameterUpdateStruct,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    renounceOwnership(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    safeDeltaBps(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    setAccessControlManager(
      accessControlManager_: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    setSafeDeltaBps(
      safeDeltaBps_: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    transferOwnership(
      newOwner: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;
  };
}
