/* 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 ICollateralEscrowV1Interface extends Interface {
  getFunction(
    nameOrSignature:
      | "depositAsset"
      | "getBid"
      | "initialize"
      | "withdraw"
      | "withdrawDustTokens"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "depositAsset",
    values: [BigNumberish, AddressLike, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "getBid", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "withdraw",
    values: [AddressLike, BigNumberish, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "withdrawDustTokens",
    values: [AddressLike, BigNumberish, AddressLike]
  ): string;

  decodeFunctionResult(
    functionFragment: "depositAsset",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "getBid", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "withdrawDustTokens",
    data: BytesLike
  ): Result;
}

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

  interface: ICollateralEscrowV1Interface;

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

  depositAsset: TypedContractMethod<
    [
      _collateralType: BigNumberish,
      _collateralAddress: AddressLike,
      _amount: BigNumberish,
      _tokenId: BigNumberish
    ],
    [void],
    "payable"
  >;

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

  initialize: TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;

  withdraw: TypedContractMethod<
    [
      _collateralAddress: AddressLike,
      _amount: BigNumberish,
      _recipient: AddressLike
    ],
    [void],
    "nonpayable"
  >;

  withdrawDustTokens: TypedContractMethod<
    [
      _tokenAddress: AddressLike,
      _amount: BigNumberish,
      _recipient: AddressLike
    ],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "depositAsset"
  ): TypedContractMethod<
    [
      _collateralType: BigNumberish,
      _collateralAddress: AddressLike,
      _amount: BigNumberish,
      _tokenId: BigNumberish
    ],
    [void],
    "payable"
  >;
  getFunction(
    nameOrSignature: "getBid"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "initialize"
  ): TypedContractMethod<[_bidId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "withdraw"
  ): TypedContractMethod<
    [
      _collateralAddress: AddressLike,
      _amount: BigNumberish,
      _recipient: AddressLike
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "withdrawDustTokens"
  ): TypedContractMethod<
    [
      _tokenAddress: AddressLike,
      _amount: BigNumberish,
      _recipient: AddressLike
    ],
    [void],
    "nonpayable"
  >;

  filters: {};
}
