/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumberish,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  EventFragment,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedLogDescription,
  TypedListener,
  TypedContractMethod,
} from "../common";

export interface ReputationManagerInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "CONTROLLER"
      | "getCurrentDefaultLoanIds"
      | "getCurrentDelinquentLoanIds"
      | "getDefaultedLoanIds"
      | "getDelinquentLoanIds"
      | "initialize"
      | "tellerV2"
      | "updateAccountReputation(address)"
      | "updateAccountReputation(address,uint256)"
  ): FunctionFragment;

  getEvent(
    nameOrSignatureOrTopic: "Initialized" | "MarkAdded" | "MarkRemoved"
  ): EventFragment;

  encodeFunctionData(
    functionFragment: "CONTROLLER",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getCurrentDefaultLoanIds",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getCurrentDelinquentLoanIds",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getDefaultedLoanIds",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getDelinquentLoanIds",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [AddressLike]
  ): string;
  encodeFunctionData(functionFragment: "tellerV2", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "updateAccountReputation(address)",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "updateAccountReputation(address,uint256)",
    values: [AddressLike, BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "CONTROLLER", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getCurrentDefaultLoanIds",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCurrentDelinquentLoanIds",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getDefaultedLoanIds",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getDelinquentLoanIds",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "tellerV2", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "updateAccountReputation(address)",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateAccountReputation(address,uint256)",
    data: BytesLike
  ): Result;
}

export namespace InitializedEvent {
  export type InputTuple = [version: BigNumberish];
  export type OutputTuple = [version: bigint];
  export interface OutputObject {
    version: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace MarkAddedEvent {
  export type InputTuple = [
    account: AddressLike,
    repMark: BigNumberish,
    bidId: BigNumberish
  ];
  export type OutputTuple = [account: string, repMark: bigint, bidId: bigint];
  export interface OutputObject {
    account: string;
    repMark: bigint;
    bidId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace MarkRemovedEvent {
  export type InputTuple = [
    account: AddressLike,
    repMark: BigNumberish,
    bidId: BigNumberish
  ];
  export type OutputTuple = [account: string, repMark: bigint, bidId: bigint];
  export interface OutputObject {
    account: string;
    repMark: bigint;
    bidId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export interface ReputationManager extends BaseContract {
  connect(runner?: ContractRunner | null): ReputationManager;
  waitForDeployment(): Promise<this>;

  interface: ReputationManagerInterface;

  queryFilter<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;
  queryFilter<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;

  on<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  on<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  once<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  once<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  listeners<TCEvent extends TypedContractEvent>(
    event: TCEvent
  ): Promise<Array<TypedListener<TCEvent>>>;
  listeners(eventName?: string): Promise<Array<Listener>>;
  removeAllListeners<TCEvent extends TypedContractEvent>(
    event?: TCEvent
  ): Promise<this>;

  CONTROLLER: TypedContractMethod<[], [string], "view">;

  getCurrentDefaultLoanIds: TypedContractMethod<
    [_account: AddressLike],
    [bigint[]],
    "nonpayable"
  >;

  getCurrentDelinquentLoanIds: TypedContractMethod<
    [_account: AddressLike],
    [bigint[]],
    "nonpayable"
  >;

  getDefaultedLoanIds: TypedContractMethod<
    [_account: AddressLike],
    [bigint[]],
    "nonpayable"
  >;

  getDelinquentLoanIds: TypedContractMethod<
    [_account: AddressLike],
    [bigint[]],
    "nonpayable"
  >;

  initialize: TypedContractMethod<
    [_tellerV2: AddressLike],
    [void],
    "nonpayable"
  >;

  tellerV2: TypedContractMethod<[], [string], "view">;

  "updateAccountReputation(address)": TypedContractMethod<
    [_account: AddressLike],
    [void],
    "nonpayable"
  >;

  "updateAccountReputation(address,uint256)": TypedContractMethod<
    [_account: AddressLike, _bidId: BigNumberish],
    [bigint],
    "nonpayable"
  >;

  getFunction<T extends ContractMethod = ContractMethod>(
    key: string | FunctionFragment
  ): T;

  getFunction(
    nameOrSignature: "CONTROLLER"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getCurrentDefaultLoanIds"
  ): TypedContractMethod<[_account: AddressLike], [bigint[]], "nonpayable">;
  getFunction(
    nameOrSignature: "getCurrentDelinquentLoanIds"
  ): TypedContractMethod<[_account: AddressLike], [bigint[]], "nonpayable">;
  getFunction(
    nameOrSignature: "getDefaultedLoanIds"
  ): TypedContractMethod<[_account: AddressLike], [bigint[]], "nonpayable">;
  getFunction(
    nameOrSignature: "getDelinquentLoanIds"
  ): TypedContractMethod<[_account: AddressLike], [bigint[]], "nonpayable">;
  getFunction(
    nameOrSignature: "initialize"
  ): TypedContractMethod<[_tellerV2: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "tellerV2"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "updateAccountReputation(address)"
  ): TypedContractMethod<[_account: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "updateAccountReputation(address,uint256)"
  ): TypedContractMethod<
    [_account: AddressLike, _bidId: BigNumberish],
    [bigint],
    "nonpayable"
  >;

  getEvent(
    key: "Initialized"
  ): TypedContractEvent<
    InitializedEvent.InputTuple,
    InitializedEvent.OutputTuple,
    InitializedEvent.OutputObject
  >;
  getEvent(
    key: "MarkAdded"
  ): TypedContractEvent<
    MarkAddedEvent.InputTuple,
    MarkAddedEvent.OutputTuple,
    MarkAddedEvent.OutputObject
  >;
  getEvent(
    key: "MarkRemoved"
  ): TypedContractEvent<
    MarkRemovedEvent.InputTuple,
    MarkRemovedEvent.OutputTuple,
    MarkRemovedEvent.OutputObject
  >;

  filters: {
    "Initialized(uint8)": TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;
    Initialized: TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;

    "MarkAdded(address,uint8,uint256)": TypedContractEvent<
      MarkAddedEvent.InputTuple,
      MarkAddedEvent.OutputTuple,
      MarkAddedEvent.OutputObject
    >;
    MarkAdded: TypedContractEvent<
      MarkAddedEvent.InputTuple,
      MarkAddedEvent.OutputTuple,
      MarkAddedEvent.OutputObject
    >;

    "MarkRemoved(address,uint8,uint256)": TypedContractEvent<
      MarkRemovedEvent.InputTuple,
      MarkRemovedEvent.OutputTuple,
      MarkRemovedEvent.OutputObject
    >;
    MarkRemoved: TypedContractEvent<
      MarkRemovedEvent.InputTuple,
      MarkRemovedEvent.OutputTuple,
      MarkRemovedEvent.OutputObject
    >;
  };
}
