/* 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 IGraphTokenLockManagerInterface extends ethers.utils.Interface {
  functions: {
    "addTokenDestination(address)": FunctionFragment;
    "createTokenLockWallet(address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8)": FunctionFragment;
    "deposit(uint256)": FunctionFragment;
    "getAuthFunctionCallTarget(bytes4)": FunctionFragment;
    "getTokenDestinations()": FunctionFragment;
    "isAuthFunctionCall(bytes4)": FunctionFragment;
    "isTokenDestination(address)": FunctionFragment;
    "removeTokenDestination(address)": FunctionFragment;
    "setAuthFunctionCall(string,address)": FunctionFragment;
    "setAuthFunctionCallMany(string[],address[])": FunctionFragment;
    "setMasterCopy(address)": FunctionFragment;
    "token()": FunctionFragment;
    "unsetAuthFunctionCall(string)": FunctionFragment;
    "withdraw(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "addTokenDestination",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "createTokenLockWallet",
    values: [
      string,
      string,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "deposit",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getAuthFunctionCallTarget",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getTokenDestinations",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "isAuthFunctionCall",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isTokenDestination",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "removeTokenDestination",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "setAuthFunctionCall",
    values: [string, string]
  ): string;
  encodeFunctionData(
    functionFragment: "setAuthFunctionCallMany",
    values: [string[], string[]]
  ): string;
  encodeFunctionData(
    functionFragment: "setMasterCopy",
    values: [string]
  ): string;
  encodeFunctionData(functionFragment: "token", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "unsetAuthFunctionCall",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "withdraw",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "addTokenDestination",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createTokenLockWallet",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getAuthFunctionCallTarget",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTokenDestinations",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isAuthFunctionCall",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isTokenDestination",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "removeTokenDestination",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAuthFunctionCall",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setAuthFunctionCallMany",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMasterCopy",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "token", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "unsetAuthFunctionCall",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;

  events: {};
}

export class IGraphTokenLockManager 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: IGraphTokenLockManagerInterface;

  functions: {
    addTokenDestination(
      _dst: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    createTokenLockWallet(
      _owner: string,
      _beneficiary: string,
      _managedAmount: BigNumberish,
      _startTime: BigNumberish,
      _endTime: BigNumberish,
      _periods: BigNumberish,
      _releaseStartTime: BigNumberish,
      _vestingCliffTime: BigNumberish,
      _revocable: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

    getAuthFunctionCallTarget(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<[string]>;

    getTokenDestinations(overrides?: CallOverrides): Promise<[string[]]>;

    isAuthFunctionCall(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    isTokenDestination(
      _dst: string,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

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

    setAuthFunctionCall(
      _signature: string,
      _target: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setAuthFunctionCallMany(
      _signatures: string[],
      _targets: string[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

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

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

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

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

  createTokenLockWallet(
    _owner: string,
    _beneficiary: string,
    _managedAmount: BigNumberish,
    _startTime: BigNumberish,
    _endTime: BigNumberish,
    _periods: BigNumberish,
    _releaseStartTime: BigNumberish,
    _vestingCliffTime: BigNumberish,
    _revocable: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

  getAuthFunctionCallTarget(
    _sigHash: BytesLike,
    overrides?: CallOverrides
  ): Promise<string>;

  getTokenDestinations(overrides?: CallOverrides): Promise<string[]>;

  isAuthFunctionCall(
    _sigHash: BytesLike,
    overrides?: CallOverrides
  ): Promise<boolean>;

  isTokenDestination(_dst: string, overrides?: CallOverrides): Promise<boolean>;

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

  setAuthFunctionCall(
    _signature: string,
    _target: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setAuthFunctionCallMany(
    _signatures: string[],
    _targets: string[],
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

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

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

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

  callStatic: {
    addTokenDestination(_dst: string, overrides?: CallOverrides): Promise<void>;

    createTokenLockWallet(
      _owner: string,
      _beneficiary: string,
      _managedAmount: BigNumberish,
      _startTime: BigNumberish,
      _endTime: BigNumberish,
      _periods: BigNumberish,
      _releaseStartTime: BigNumberish,
      _vestingCliffTime: BigNumberish,
      _revocable: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

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

    getAuthFunctionCallTarget(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<string>;

    getTokenDestinations(overrides?: CallOverrides): Promise<string[]>;

    isAuthFunctionCall(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<boolean>;

    isTokenDestination(
      _dst: string,
      overrides?: CallOverrides
    ): Promise<boolean>;

    removeTokenDestination(
      _dst: string,
      overrides?: CallOverrides
    ): Promise<void>;

    setAuthFunctionCall(
      _signature: string,
      _target: string,
      overrides?: CallOverrides
    ): Promise<void>;

    setAuthFunctionCallMany(
      _signatures: string[],
      _targets: string[],
      overrides?: CallOverrides
    ): Promise<void>;

    setMasterCopy(
      _masterCopy: string,
      overrides?: CallOverrides
    ): Promise<void>;

    token(overrides?: CallOverrides): Promise<string>;

    unsetAuthFunctionCall(
      _signature: string,
      overrides?: CallOverrides
    ): Promise<void>;

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

  filters: {};

  estimateGas: {
    addTokenDestination(
      _dst: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    createTokenLockWallet(
      _owner: string,
      _beneficiary: string,
      _managedAmount: BigNumberish,
      _startTime: BigNumberish,
      _endTime: BigNumberish,
      _periods: BigNumberish,
      _releaseStartTime: BigNumberish,
      _vestingCliffTime: BigNumberish,
      _revocable: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

    getAuthFunctionCallTarget(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    isAuthFunctionCall(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    isTokenDestination(
      _dst: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    setAuthFunctionCall(
      _signature: string,
      _target: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setAuthFunctionCallMany(
      _signatures: string[],
      _targets: string[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

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

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

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

  populateTransaction: {
    addTokenDestination(
      _dst: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    createTokenLockWallet(
      _owner: string,
      _beneficiary: string,
      _managedAmount: BigNumberish,
      _startTime: BigNumberish,
      _endTime: BigNumberish,
      _periods: BigNumberish,
      _releaseStartTime: BigNumberish,
      _vestingCliffTime: BigNumberish,
      _revocable: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

    getAuthFunctionCallTarget(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    isAuthFunctionCall(
      _sigHash: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    isTokenDestination(
      _dst: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    setAuthFunctionCall(
      _signature: string,
      _target: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setAuthFunctionCallMany(
      _signatures: string[],
      _targets: string[],
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

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

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

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