/* 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 IRiskOracleInterface extends utils.Interface {
  functions: {
    "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;
    "latestUpdateIdByMarketAndType(bytes32,address)": FunctionFragment;
    "publishBulkRiskParameterUpdates(string[],bytes[],string[],address[],uint96[],uint32[],bytes[])": FunctionFragment;
    "publishRiskParameterUpdate(string,bytes,string,address,uint96,uint32,bytes)": FunctionFragment;
    "removeAuthorizedSender(address)": FunctionFragment;
    "setUpdateTypeActive(string,bool)": FunctionFragment;
    "updateCounter()": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "activeUpdateTypes"
      | "addAuthorizedSender"
      | "addUpdateType"
      | "allUpdateTypes"
      | "allUpdateTypesLength"
      | "authorizedSenders"
      | "getActiveUpdateTypes"
      | "getAllUpdateTypes"
      | "getLatestUpdateByTypeAndMarket"
      | "getLatestUpdateIdByTypeAndMarket"
      | "getUpdateById"
      | "latestUpdateIdByMarketAndType"
      | "publishBulkRiskParameterUpdates"
      | "publishRiskParameterUpdate"
      | "removeAuthorizedSender"
      | "setUpdateTypeActive"
      | "updateCounter"
  ): FunctionFragment;

  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: "latestUpdateIdByMarketAndType",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]
  ): 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: "setUpdateTypeActive",
    values: [PromiseOrValue<string>, PromiseOrValue<boolean>]
  ): string;
  encodeFunctionData(
    functionFragment: "updateCounter",
    values?: undefined
  ): string;

  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: "latestUpdateIdByMarketAndType",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "publishBulkRiskParameterUpdates",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "publishRiskParameterUpdate",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "removeAuthorizedSender",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setUpdateTypeActive",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateCounter",
    data: BytesLike
  ): Result;

  events: {
    "AuthorizedSenderAdded(address)": EventFragment;
    "AuthorizedSenderRemoved(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: "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 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 IRiskOracle extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  interface: IRiskOracleInterface;

  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: {
    activeUpdateTypes(
      updateTypeKey: 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(
      index: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[string]>;

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

    authorizedSenders(
      sender: 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]>;

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      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<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>;

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

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

  activeUpdateTypes(
    updateTypeKey: 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(
    index: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<string>;

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

  authorizedSenders(
    sender: 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>;

  latestUpdateIdByMarketAndType(
    updateTypeKey: PromiseOrValue<BytesLike>,
    market: PromiseOrValue<string>,
    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<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>;

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

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

  callStatic: {
    activeUpdateTypes(
      updateTypeKey: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<boolean>;

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

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

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

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

    authorizedSenders(
      sender: 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>;

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      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?: 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>;

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

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

  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;

    "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: {
    activeUpdateTypes(
      updateTypeKey: 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(
      index: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    authorizedSenders(
      sender: 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>;

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      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>;

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

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

  populateTransaction: {
    activeUpdateTypes(
      updateTypeKey: 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(
      index: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    authorizedSenders(
      sender: 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>;

    latestUpdateIdByMarketAndType(
      updateTypeKey: PromiseOrValue<BytesLike>,
      market: PromiseOrValue<string>,
      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>;

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

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