/* 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 RiskOracleInterface extends utils.Interface {
  functions: {
    "acceptOwnership()": FunctionFragment;
    "accessControlManager()": FunctionFragment;
    "activeUpdateTypes(bytes32)": FunctionFragment;
    "addAuthorizedSender(address)": FunctionFragment;
    "addUpdateType(string)": FunctionFragment;
    "allUpdateTypes(uint256)": FunctionFragment;
    "allUpdateTypesLength()": FunctionFragment;
    "authorizedSenders(address)": FunctionFragment;
    "getActiveUpdateTypes(string)": FunctionFragment;
    "getAllUpdateTypes()": FunctionFragment;
    "getLatestUpdateByTypeAndMarket(string,address)": FunctionFragment;
    "getLatestUpdateIdByTypeAndMarket(string,address)": FunctionFragment;
    "getUpdateById(uint256)": FunctionFragment;
    "initialize(address)": FunctionFragment;
    "latestUpdateIdByMarketAndType(bytes32,address)": FunctionFragment;
    "owner()": FunctionFragment;
    "pendingOwner()": FunctionFragment;
    "publishBulkRiskParameterUpdates(string[],bytes[],string[],address[],uint96[],uint32[],bytes[])": FunctionFragment;
    "publishRiskParameterUpdate(string,bytes,string,address,uint96,uint32,bytes)": FunctionFragment;
    "removeAuthorizedSender(address)": FunctionFragment;
    "renounceOwnership()": FunctionFragment;
    "setAccessControlManager(address)": FunctionFragment;
    "setUpdateTypeActive(string,bool)": FunctionFragment;
    "transferOwnership(address)": FunctionFragment;
    "updateCounter()": FunctionFragment;
    "updatesById(uint256)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "acceptOwnership"
      | "accessControlManager"
      | "activeUpdateTypes"
      | "addAuthorizedSender"
      | "addUpdateType"
      | "allUpdateTypes"
      | "allUpdateTypesLength"
      | "authorizedSenders"
      | "getActiveUpdateTypes"
      | "getAllUpdateTypes"
      | "getLatestUpdateByTypeAndMarket"
      | "getLatestUpdateIdByTypeAndMarket"
      | "getUpdateById"
      | "initialize"
      | "latestUpdateIdByMarketAndType"
      | "owner"
      | "pendingOwner"
      | "publishBulkRiskParameterUpdates"
      | "publishRiskParameterUpdate"
      | "removeAuthorizedSender"
      | "renounceOwnership"
      | "setAccessControlManager"
      | "setUpdateTypeActive"
      | "transferOwnership"
      | "updateCounter"
      | "updatesById"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "acceptOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "accessControlManager",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "activeUpdateTypes",
    values: [PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "addAuthorizedSender",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "addUpdateType",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "allUpdateTypes",
    values: [PromiseOrValue<BigNumberish>]
  ): string;
  encodeFunctionData(
    functionFragment: "allUpdateTypesLength",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "authorizedSenders",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "getActiveUpdateTypes",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "getAllUpdateTypes",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getLatestUpdateByTypeAndMarket",
    values: [PromiseOrValue<string>, PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "getLatestUpdateIdByTypeAndMarket",
    values: [PromiseOrValue<string>, PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "getUpdateById",
    values: [PromiseOrValue<BigNumberish>]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "latestUpdateIdByMarketAndType",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]
  ): string;
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "pendingOwner",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "publishBulkRiskParameterUpdates",
    values: [
      PromiseOrValue<string>[],
      PromiseOrValue<BytesLike>[],
      PromiseOrValue<string>[],
      PromiseOrValue<string>[],
      PromiseOrValue<BigNumberish>[],
      PromiseOrValue<BigNumberish>[],
      PromiseOrValue<BytesLike>[]
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "publishRiskParameterUpdate",
    values: [
      PromiseOrValue<string>,
      PromiseOrValue<BytesLike>,
      PromiseOrValue<string>,
      PromiseOrValue<string>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BytesLike>
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "removeAuthorizedSender",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "renounceOwnership",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setAccessControlManager",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "setUpdateTypeActive",
    values: [PromiseOrValue<string>, PromiseOrValue<boolean>]
  ): string;
  encodeFunctionData(
    functionFragment: "transferOwnership",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "updateCounter",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "updatesById",
    values: [PromiseOrValue<BigNumberish>]
  ): string;

  decodeFunctionResult(
    functionFragment: "acceptOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "accessControlManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "activeUpdateTypes",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "addAuthorizedSender",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "addUpdateType",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "allUpdateTypes",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "allUpdateTypesLength",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "authorizedSenders",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getActiveUpdateTypes",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAllUpdateTypes",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLatestUpdateByTypeAndMarket",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLatestUpdateIdByTypeAndMarket",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getUpdateById",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "latestUpdateIdByMarketAndType",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "pendingOwner",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "publishBulkRiskParameterUpdates",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "publishRiskParameterUpdate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "removeAuthorizedSender",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "renounceOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAccessControlManager",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setUpdateTypeActive",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferOwnership",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateCounter",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updatesById",
    data: BytesLike
  ): Result;

  events: {
    "AuthorizedSenderAdded(address)": EventFragment;
    "AuthorizedSenderRemoved(address)": EventFragment;
    "Initialized(uint8)": EventFragment;
    "NewAccessControlManager(address,address)": EventFragment;
    "OwnershipTransferStarted(address,address)": EventFragment;
    "OwnershipTransferred(address,address)": EventFragment;
    "UpdatePublished(string,uint256,address,string,bytes,bytes,uint256,address,bytes)": EventFragment;
    "UpdateTypeActiveStatusChanged(string,bool,bool)": EventFragment;
    "UpdateTypeAdded(string)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "AuthorizedSenderAdded"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "AuthorizedSenderRemoved"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "NewAccessControlManager"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "UpdatePublished"): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "UpdateTypeActiveStatusChanged"
  ): EventFragment;
  getEvent(nameOrSignatureOrTopic: "UpdateTypeAdded"): EventFragment;
}

export interface AuthorizedSenderAddedEventObject {
  sender: string;
}
export type AuthorizedSenderAddedEvent = TypedEvent<
  [string],
  AuthorizedSenderAddedEventObject
>;

export type AuthorizedSenderAddedEventFilter =
  TypedEventFilter<AuthorizedSenderAddedEvent>;

export interface AuthorizedSenderRemovedEventObject {
  sender: string;
}
export type AuthorizedSenderRemovedEvent = TypedEvent<
  [string],
  AuthorizedSenderRemovedEventObject
>;

export type AuthorizedSenderRemovedEventFilter =
  TypedEventFilter<AuthorizedSenderRemovedEvent>;

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 UpdatePublishedEventObject {
  referenceId: string;
  updateId: BigNumber;
  market: string;
  updateType: string;
  newValue: string;
  previousValue: string;
  timestamp: BigNumber;
  publisher: string;
  additionalData: string;
}
export type UpdatePublishedEvent = TypedEvent<
  [
    string,
    BigNumber,
    string,
    string,
    string,
    string,
    BigNumber,
    string,
    string
  ],
  UpdatePublishedEventObject
>;

export type UpdatePublishedEventFilter = TypedEventFilter<UpdatePublishedEvent>;

export interface UpdateTypeActiveStatusChangedEventObject {
  updateType: string;
  previousActive: boolean;
  active: boolean;
}
export type UpdateTypeActiveStatusChangedEvent = TypedEvent<
  [string, boolean, boolean],
  UpdateTypeActiveStatusChangedEventObject
>;

export type UpdateTypeActiveStatusChangedEventFilter =
  TypedEventFilter<UpdateTypeActiveStatusChangedEvent>;

export interface UpdateTypeAddedEventObject {
  updateType: string;
}
export type UpdateTypeAddedEvent = TypedEvent<
  [string],
  UpdateTypeAddedEventObject
>;

export type UpdateTypeAddedEventFilter = TypedEventFilter<UpdateTypeAddedEvent>;

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

  interface: RiskOracleInterface;

  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: {
    acceptOwnership(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

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

    activeUpdateTypes(
      arg0: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

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

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

    allUpdateTypes(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string]>;

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

    authorizedSenders(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    getActiveUpdateTypes(
      updateType: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

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

    getLatestUpdateByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<[RiskParameterUpdateStructOutput]>;

    getLatestUpdateIdByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getUpdateById(
      updateId: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[RiskParameterUpdateStructOutput]>;

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

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<[BigNumber] & { updateId: BigNumber }>;

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

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

    publishBulkRiskParameterUpdates(
      referenceIds: PromiseOrValue<string>[],
      newValues: PromiseOrValue<BytesLike>[],
      updateTypes: PromiseOrValue<string>[],
      markets: PromiseOrValue<string>[],
      poolIds: PromiseOrValue<BigNumberish>[],
      dstEid: PromiseOrValue<BigNumberish>[],
      additionalData: PromiseOrValue<BytesLike>[],
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    publishRiskParameterUpdate(
      referenceId: PromiseOrValue<string>,
      newValue: PromiseOrValue<BytesLike>,
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      poolId: PromiseOrValue<BigNumberish>,
      dstEid: PromiseOrValue<BigNumberish>,
      additionalData: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

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

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

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

    setUpdateTypeActive(
      updateType: PromiseOrValue<string>,
      active: PromiseOrValue<boolean>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

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

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

    updatesById(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<
      [
        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;
      }
    >;
  };

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

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

  activeUpdateTypes(
    arg0: PromiseOrValue<BytesLike>,
    overrides?: CallOverrides
  ): Promise<boolean>;

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

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

  allUpdateTypes(
    arg0: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<string>;

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

  authorizedSenders(
    arg0: PromiseOrValue<string>,
    overrides?: CallOverrides
  ): Promise<boolean>;

  getActiveUpdateTypes(
    updateType: PromiseOrValue<string>,
    overrides?: CallOverrides
  ): Promise<boolean>;

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

  getLatestUpdateByTypeAndMarket(
    updateType: PromiseOrValue<string>,
    market: PromiseOrValue<string>,
    overrides?: CallOverrides
  ): Promise<RiskParameterUpdateStructOutput>;

  getLatestUpdateIdByTypeAndMarket(
    updateType: PromiseOrValue<string>,
    market: PromiseOrValue<string>,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getUpdateById(
    updateId: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<RiskParameterUpdateStructOutput>;

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

  latestUpdateIdByMarketAndType(
    updateTypeKey: PromiseOrValue<BytesLike>,
    market: PromiseOrValue<string>,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

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

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

  publishBulkRiskParameterUpdates(
    referenceIds: PromiseOrValue<string>[],
    newValues: PromiseOrValue<BytesLike>[],
    updateTypes: PromiseOrValue<string>[],
    markets: PromiseOrValue<string>[],
    poolIds: PromiseOrValue<BigNumberish>[],
    dstEid: PromiseOrValue<BigNumberish>[],
    additionalData: PromiseOrValue<BytesLike>[],
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  publishRiskParameterUpdate(
    referenceId: PromiseOrValue<string>,
    newValue: PromiseOrValue<BytesLike>,
    updateType: PromiseOrValue<string>,
    market: PromiseOrValue<string>,
    poolId: PromiseOrValue<BigNumberish>,
    dstEid: PromiseOrValue<BigNumberish>,
    additionalData: PromiseOrValue<BytesLike>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

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

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

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

  setUpdateTypeActive(
    updateType: PromiseOrValue<string>,
    active: PromiseOrValue<boolean>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

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

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

  updatesById(
    arg0: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<
    [
      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;
    }
  >;

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

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

    activeUpdateTypes(
      arg0: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<boolean>;

    addAuthorizedSender(
      sender: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    addUpdateType(
      newUpdateType: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    allUpdateTypes(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<string>;

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

    authorizedSenders(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<boolean>;

    getActiveUpdateTypes(
      updateType: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<boolean>;

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

    getLatestUpdateByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<RiskParameterUpdateStructOutput>;

    getLatestUpdateIdByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getUpdateById(
      updateId: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<RiskParameterUpdateStructOutput>;

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

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

    publishBulkRiskParameterUpdates(
      referenceIds: PromiseOrValue<string>[],
      newValues: PromiseOrValue<BytesLike>[],
      updateTypes: PromiseOrValue<string>[],
      markets: PromiseOrValue<string>[],
      poolIds: PromiseOrValue<BigNumberish>[],
      dstEid: PromiseOrValue<BigNumberish>[],
      additionalData: PromiseOrValue<BytesLike>[],
      overrides?: CallOverrides
    ): Promise<void>;

    publishRiskParameterUpdate(
      referenceId: PromiseOrValue<string>,
      newValue: PromiseOrValue<BytesLike>,
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      poolId: PromiseOrValue<BigNumberish>,
      dstEid: PromiseOrValue<BigNumberish>,
      additionalData: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<void>;

    removeAuthorizedSender(
      sender: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

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

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

    setUpdateTypeActive(
      updateType: PromiseOrValue<string>,
      active: PromiseOrValue<boolean>,
      overrides?: CallOverrides
    ): Promise<void>;

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

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

    updatesById(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<
      [
        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;
      }
    >;
  };

  filters: {
    "AuthorizedSenderAdded(address)"(
      sender?: PromiseOrValue<string> | null
    ): AuthorizedSenderAddedEventFilter;
    AuthorizedSenderAdded(
      sender?: PromiseOrValue<string> | null
    ): AuthorizedSenderAddedEventFilter;

    "AuthorizedSenderRemoved(address)"(
      sender?: PromiseOrValue<string> | null
    ): AuthorizedSenderRemovedEventFilter;
    AuthorizedSenderRemoved(
      sender?: PromiseOrValue<string> | null
    ): AuthorizedSenderRemovedEventFilter;

    "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;

    "UpdatePublished(string,uint256,address,string,bytes,bytes,uint256,address,bytes)"(
      referenceId?: null,
      updateId?: PromiseOrValue<BigNumberish> | null,
      market?: PromiseOrValue<string> | null,
      updateType?: PromiseOrValue<string> | null,
      newValue?: null,
      previousValue?: null,
      timestamp?: null,
      publisher?: null,
      additionalData?: null
    ): UpdatePublishedEventFilter;
    UpdatePublished(
      referenceId?: null,
      updateId?: PromiseOrValue<BigNumberish> | null,
      market?: PromiseOrValue<string> | null,
      updateType?: PromiseOrValue<string> | null,
      newValue?: null,
      previousValue?: null,
      timestamp?: null,
      publisher?: null,
      additionalData?: null
    ): UpdatePublishedEventFilter;

    "UpdateTypeActiveStatusChanged(string,bool,bool)"(
      updateType?: PromiseOrValue<string> | null,
      previousActive?: null,
      active?: null
    ): UpdateTypeActiveStatusChangedEventFilter;
    UpdateTypeActiveStatusChanged(
      updateType?: PromiseOrValue<string> | null,
      previousActive?: null,
      active?: null
    ): UpdateTypeActiveStatusChangedEventFilter;

    "UpdateTypeAdded(string)"(
      updateType?: PromiseOrValue<string> | null
    ): UpdateTypeAddedEventFilter;
    UpdateTypeAdded(
      updateType?: PromiseOrValue<string> | null
    ): UpdateTypeAddedEventFilter;
  };

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

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

    activeUpdateTypes(
      arg0: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

    allUpdateTypes(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    authorizedSenders(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getActiveUpdateTypes(
      updateType: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    getLatestUpdateByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getLatestUpdateIdByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getUpdateById(
      updateId: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

    publishBulkRiskParameterUpdates(
      referenceIds: PromiseOrValue<string>[],
      newValues: PromiseOrValue<BytesLike>[],
      updateTypes: PromiseOrValue<string>[],
      markets: PromiseOrValue<string>[],
      poolIds: PromiseOrValue<BigNumberish>[],
      dstEid: PromiseOrValue<BigNumberish>[],
      additionalData: PromiseOrValue<BytesLike>[],
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    publishRiskParameterUpdate(
      referenceId: PromiseOrValue<string>,
      newValue: PromiseOrValue<BytesLike>,
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      poolId: PromiseOrValue<BigNumberish>,
      dstEid: PromiseOrValue<BigNumberish>,
      additionalData: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

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

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

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

    setUpdateTypeActive(
      updateType: PromiseOrValue<string>,
      active: PromiseOrValue<boolean>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

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

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

    updatesById(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

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

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

    activeUpdateTypes(
      arg0: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

    allUpdateTypes(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    authorizedSenders(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getActiveUpdateTypes(
      updateType: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    getLatestUpdateByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getLatestUpdateIdByTypeAndMarket(
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getUpdateById(
      updateId: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

    publishBulkRiskParameterUpdates(
      referenceIds: PromiseOrValue<string>[],
      newValues: PromiseOrValue<BytesLike>[],
      updateTypes: PromiseOrValue<string>[],
      markets: PromiseOrValue<string>[],
      poolIds: PromiseOrValue<BigNumberish>[],
      dstEid: PromiseOrValue<BigNumberish>[],
      additionalData: PromiseOrValue<BytesLike>[],
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    publishRiskParameterUpdate(
      referenceId: PromiseOrValue<string>,
      newValue: PromiseOrValue<BytesLike>,
      updateType: PromiseOrValue<string>,
      market: PromiseOrValue<string>,
      poolId: PromiseOrValue<BigNumberish>,
      dstEid: PromiseOrValue<BigNumberish>,
      additionalData: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

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

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

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

    setUpdateTypeActive(
      updateType: PromiseOrValue<string>,
      active: PromiseOrValue<boolean>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

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

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

    updatesById(
      arg0: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
