/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";

interface IGraphTokenLockInterface extends ethers.utils.Interface {
  functions: {
    "amountPerPeriod()": FunctionFragment;
    "availableAmount()": FunctionFragment;
    "currentBalance()": FunctionFragment;
    "currentPeriod()": FunctionFragment;
    "currentTime()": FunctionFragment;
    "duration()": FunctionFragment;
    "passedPeriods()": FunctionFragment;
    "periodDuration()": FunctionFragment;
    "releasableAmount()": FunctionFragment;
    "release()": FunctionFragment;
    "revoke()": FunctionFragment;
    "sinceStartTime()": FunctionFragment;
    "surplusAmount()": FunctionFragment;
    "totalOutstandingAmount()": FunctionFragment;
    "vestedAmount()": FunctionFragment;
    "withdrawSurplus(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "amountPerPeriod",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "availableAmount",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "currentBalance",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "currentPeriod",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "currentTime",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "duration", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "passedPeriods",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "periodDuration",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "releasableAmount",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "release", values?: undefined): string;
  encodeFunctionData(functionFragment: "revoke", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "sinceStartTime",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "surplusAmount",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "totalOutstandingAmount",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "vestedAmount",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "withdrawSurplus",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "amountPerPeriod",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "availableAmount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "currentBalance",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "currentPeriod",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "currentTime",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "duration", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "passedPeriods",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "periodDuration",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "releasableAmount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "release", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "revoke", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "sinceStartTime",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "surplusAmount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "totalOutstandingAmount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "vestedAmount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "withdrawSurplus",
    data: BytesLike
  ): Result;

  events: {};
}

export class IGraphTokenLock extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: IGraphTokenLockInterface;

  functions: {
    amountPerPeriod(overrides?: CallOverrides): Promise<[BigNumber]>;

    availableAmount(overrides?: CallOverrides): Promise<[BigNumber]>;

    currentBalance(overrides?: CallOverrides): Promise<[BigNumber]>;

    currentPeriod(overrides?: CallOverrides): Promise<[BigNumber]>;

    currentTime(overrides?: CallOverrides): Promise<[BigNumber]>;

    duration(overrides?: CallOverrides): Promise<[BigNumber]>;

    passedPeriods(overrides?: CallOverrides): Promise<[BigNumber]>;

    periodDuration(overrides?: CallOverrides): Promise<[BigNumber]>;

    releasableAmount(overrides?: CallOverrides): Promise<[BigNumber]>;

    release(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    revoke(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    sinceStartTime(overrides?: CallOverrides): Promise<[BigNumber]>;

    surplusAmount(overrides?: CallOverrides): Promise<[BigNumber]>;

    totalOutstandingAmount(overrides?: CallOverrides): Promise<[BigNumber]>;

    vestedAmount(overrides?: CallOverrides): Promise<[BigNumber]>;

    withdrawSurplus(
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

  amountPerPeriod(overrides?: CallOverrides): Promise<BigNumber>;

  availableAmount(overrides?: CallOverrides): Promise<BigNumber>;

  currentBalance(overrides?: CallOverrides): Promise<BigNumber>;

  currentPeriod(overrides?: CallOverrides): Promise<BigNumber>;

  currentTime(overrides?: CallOverrides): Promise<BigNumber>;

  duration(overrides?: CallOverrides): Promise<BigNumber>;

  passedPeriods(overrides?: CallOverrides): Promise<BigNumber>;

  periodDuration(overrides?: CallOverrides): Promise<BigNumber>;

  releasableAmount(overrides?: CallOverrides): Promise<BigNumber>;

  release(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  revoke(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  sinceStartTime(overrides?: CallOverrides): Promise<BigNumber>;

  surplusAmount(overrides?: CallOverrides): Promise<BigNumber>;

  totalOutstandingAmount(overrides?: CallOverrides): Promise<BigNumber>;

  vestedAmount(overrides?: CallOverrides): Promise<BigNumber>;

  withdrawSurplus(
    _amount: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    amountPerPeriod(overrides?: CallOverrides): Promise<BigNumber>;

    availableAmount(overrides?: CallOverrides): Promise<BigNumber>;

    currentBalance(overrides?: CallOverrides): Promise<BigNumber>;

    currentPeriod(overrides?: CallOverrides): Promise<BigNumber>;

    currentTime(overrides?: CallOverrides): Promise<BigNumber>;

    duration(overrides?: CallOverrides): Promise<BigNumber>;

    passedPeriods(overrides?: CallOverrides): Promise<BigNumber>;

    periodDuration(overrides?: CallOverrides): Promise<BigNumber>;

    releasableAmount(overrides?: CallOverrides): Promise<BigNumber>;

    release(overrides?: CallOverrides): Promise<void>;

    revoke(overrides?: CallOverrides): Promise<void>;

    sinceStartTime(overrides?: CallOverrides): Promise<BigNumber>;

    surplusAmount(overrides?: CallOverrides): Promise<BigNumber>;

    totalOutstandingAmount(overrides?: CallOverrides): Promise<BigNumber>;

    vestedAmount(overrides?: CallOverrides): Promise<BigNumber>;

    withdrawSurplus(
      _amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {};

  estimateGas: {
    amountPerPeriod(overrides?: CallOverrides): Promise<BigNumber>;

    availableAmount(overrides?: CallOverrides): Promise<BigNumber>;

    currentBalance(overrides?: CallOverrides): Promise<BigNumber>;

    currentPeriod(overrides?: CallOverrides): Promise<BigNumber>;

    currentTime(overrides?: CallOverrides): Promise<BigNumber>;

    duration(overrides?: CallOverrides): Promise<BigNumber>;

    passedPeriods(overrides?: CallOverrides): Promise<BigNumber>;

    periodDuration(overrides?: CallOverrides): Promise<BigNumber>;

    releasableAmount(overrides?: CallOverrides): Promise<BigNumber>;

    release(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    revoke(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    sinceStartTime(overrides?: CallOverrides): Promise<BigNumber>;

    surplusAmount(overrides?: CallOverrides): Promise<BigNumber>;

    totalOutstandingAmount(overrides?: CallOverrides): Promise<BigNumber>;

    vestedAmount(overrides?: CallOverrides): Promise<BigNumber>;

    withdrawSurplus(
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    amountPerPeriod(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    availableAmount(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    currentBalance(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    currentPeriod(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    currentTime(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    duration(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    passedPeriods(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    periodDuration(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    releasableAmount(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    release(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    revoke(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    sinceStartTime(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    surplusAmount(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    totalOutstandingAmount(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    vestedAmount(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    withdrawSurplus(
      _amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
