/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Contract,
  ContractFactory,
  ContractTransactionResponse,
  Interface,
} from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../common";
import type {
  ReputationManagerMock,
  ReputationManagerMockInterface,
} from "../../../contracts/mock/ReputationManagerMock";

const _abi = [
  {
    inputs: [],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_account",
        type: "address",
      },
    ],
    name: "getCurrentDefaultLoanIds",
    outputs: [
      {
        internalType: "uint256[]",
        name: "_loanIds",
        type: "uint256[]",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_account",
        type: "address",
      },
    ],
    name: "getCurrentDelinquentLoanIds",
    outputs: [
      {
        internalType: "uint256[]",
        name: "_loanIds",
        type: "uint256[]",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_account",
        type: "address",
      },
    ],
    name: "getDefaultedLoanIds",
    outputs: [
      {
        internalType: "uint256[]",
        name: "_loanIds",
        type: "uint256[]",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_account",
        type: "address",
      },
    ],
    name: "getDelinquentLoanIds",
    outputs: [
      {
        internalType: "uint256[]",
        name: "_loanIds",
        type: "uint256[]",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "protocolAddress",
        type: "address",
      },
    ],
    name: "initialize",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_account",
        type: "address",
      },
    ],
    name: "updateAccountReputation",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "_account",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "_bidId",
        type: "uint256",
      },
    ],
    name: "updateAccountReputation",
    outputs: [
      {
        internalType: "enum RepMark",
        name: "",
        type: "uint8",
      },
    ],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

const _bytecode =
  "0x608060405234801561001057600080fd5b506101ec806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806376604b371161005b57806376604b3714610082578063c4d66de8146100ac578063c7312e47146100bf578063e0d5343d1461008257600080fd5b806303c04b2814610082578063287b498a146100825780637076185c146100ac575b600080fd5b6100966100903660046100fe565b50606090565b6040516100a39190610120565b60405180910390f35b6100bd6100ba3660046100fe565b50565b005b6100d56100cd366004610164565b600092915050565b6040516100a3919061018e565b80356001600160a01b03811681146100f957600080fd5b919050565b60006020828403121561011057600080fd5b610119826100e2565b9392505050565b6020808252825182820181905260009190848201906040850190845b818110156101585783518352928401929184019160010161013c565b50909695505050505050565b6000806040838503121561017757600080fd5b610180836100e2565b946020939093013593505050565b60208101600383106101b057634e487b7160e01b600052602160045260246000fd5b9190529056fea2646970667358221220a1b7bc52263533d01987efc1c65c8a8b90f57b62f8ae24ceb604435029ae581964736f6c63430008090033";

type ReputationManagerMockConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: ReputationManagerMockConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class ReputationManagerMock__factory extends ContractFactory {
  constructor(...args: ReputationManagerMockConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  override getDeployTransaction(
    overrides?: NonPayableOverrides & { from?: string }
  ): Promise<ContractDeployTransaction> {
    return super.getDeployTransaction(overrides || {});
  }
  override deploy(overrides?: NonPayableOverrides & { from?: string }) {
    return super.deploy(overrides || {}) as Promise<
      ReputationManagerMock & {
        deploymentTransaction(): ContractTransactionResponse;
      }
    >;
  }
  override connect(
    runner: ContractRunner | null
  ): ReputationManagerMock__factory {
    return super.connect(runner) as ReputationManagerMock__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): ReputationManagerMockInterface {
    return new Interface(_abi) as ReputationManagerMockInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): ReputationManagerMock {
    return new Contract(
      address,
      _abi,
      runner
    ) as unknown as ReputationManagerMock;
  }
}
