/* 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 ISmartCommitmentForwarderInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "acceptSmartCommitmentWithRecipient"
      | "getLiquidationProtocolFeePercent"
      | "setLiquidationProtocolFeePercent"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "acceptSmartCommitmentWithRecipient",
    values: [
      AddressLike,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      AddressLike,
      AddressLike,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "getLiquidationProtocolFeePercent",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setLiquidationProtocolFeePercent",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "acceptSmartCommitmentWithRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLiquidationProtocolFeePercent",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setLiquidationProtocolFeePercent",
    data: BytesLike
  ): Result;
}

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

  interface: ISmartCommitmentForwarderInterface;

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

  acceptSmartCommitmentWithRecipient: TypedContractMethod<
    [
      _smartCommitmentAddress: AddressLike,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;

  getLiquidationProtocolFeePercent: TypedContractMethod<[], [bigint], "view">;

  setLiquidationProtocolFeePercent: TypedContractMethod<
    [_percent: BigNumberish],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "acceptSmartCommitmentWithRecipient"
  ): TypedContractMethod<
    [
      _smartCommitmentAddress: AddressLike,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "getLiquidationProtocolFeePercent"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "setLiquidationProtocolFeePercent"
  ): TypedContractMethod<[_percent: BigNumberish], [void], "nonpayable">;

  filters: {};
}
