/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from 'ethers'
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedListener,
  TypedContractMethod,
} from '../../../../common'

export interface GraphUpgradeableInterface extends Interface {
  getFunction(nameOrSignature: 'acceptProxy' | 'acceptProxyAndCall'): FunctionFragment

  encodeFunctionData(functionFragment: 'acceptProxy', values: [AddressLike]): string
  encodeFunctionData(functionFragment: 'acceptProxyAndCall', values: [AddressLike, BytesLike]): string

  decodeFunctionResult(functionFragment: 'acceptProxy', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'acceptProxyAndCall', data: BytesLike): Result
}

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

  interface: GraphUpgradeableInterface

  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>

  acceptProxy: TypedContractMethod<[_proxy: AddressLike], [void], 'nonpayable'>

  acceptProxyAndCall: TypedContractMethod<[_proxy: AddressLike, _data: BytesLike], [void], 'nonpayable'>

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

  getFunction(nameOrSignature: 'acceptProxy'): TypedContractMethod<[_proxy: AddressLike], [void], 'nonpayable'>
  getFunction(
    nameOrSignature: 'acceptProxyAndCall',
  ): TypedContractMethod<[_proxy: AddressLike, _data: BytesLike], [void], 'nonpayable'>

  filters: {}
}
