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

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

  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: "updateAccountReputation(address)",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "updateAccountReputation(address,uint256)",
    values: [AddressLike, BigNumberish]
  ): string;

  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: "updateAccountReputation(address)",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateAccountReputation(address,uint256)",
    data: BytesLike
  ): Result;
}

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

  interface: IReputationManagerInterface;

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

  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<
    [protocolAddress: AddressLike],
    [void],
    "nonpayable"
  >;

  "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: "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<[protocolAddress: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "updateAccountReputation(address)"
  ): TypedContractMethod<[_account: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "updateAccountReputation(address,uint256)"
  ): TypedContractMethod<
    [_account: AddressLike, _bidId: BigNumberish],
    [bigint],
    "nonpayable"
  >;

  filters: {};
}
