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

export interface IERC1363Interface extends Interface {
  getFunction(
    nameOrSignature:
      | 'allowance'
      | 'approve'
      | 'approveAndCall(address,uint256)'
      | 'approveAndCall(address,uint256,bytes)'
      | 'balanceOf'
      | 'supportsInterface'
      | 'totalSupply'
      | 'transfer'
      | 'transferAndCall(address,uint256)'
      | 'transferAndCall(address,uint256,bytes)'
      | 'transferFrom'
      | 'transferFromAndCall(address,address,uint256,bytes)'
      | 'transferFromAndCall(address,address,uint256)',
  ): FunctionFragment

  getEvent(nameOrSignatureOrTopic: 'Approval' | 'Transfer'): EventFragment

  encodeFunctionData(functionFragment: 'allowance', values: [AddressLike, AddressLike]): string
  encodeFunctionData(functionFragment: 'approve', values: [AddressLike, BigNumberish]): string
  encodeFunctionData(functionFragment: 'approveAndCall(address,uint256)', values: [AddressLike, BigNumberish]): string
  encodeFunctionData(
    functionFragment: 'approveAndCall(address,uint256,bytes)',
    values: [AddressLike, BigNumberish, BytesLike],
  ): string
  encodeFunctionData(functionFragment: 'balanceOf', values: [AddressLike]): string
  encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string
  encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string
  encodeFunctionData(functionFragment: 'transfer', values: [AddressLike, BigNumberish]): string
  encodeFunctionData(functionFragment: 'transferAndCall(address,uint256)', values: [AddressLike, BigNumberish]): string
  encodeFunctionData(
    functionFragment: 'transferAndCall(address,uint256,bytes)',
    values: [AddressLike, BigNumberish, BytesLike],
  ): string
  encodeFunctionData(functionFragment: 'transferFrom', values: [AddressLike, AddressLike, BigNumberish]): string
  encodeFunctionData(
    functionFragment: 'transferFromAndCall(address,address,uint256,bytes)',
    values: [AddressLike, AddressLike, BigNumberish, BytesLike],
  ): string
  encodeFunctionData(
    functionFragment: 'transferFromAndCall(address,address,uint256)',
    values: [AddressLike, AddressLike, BigNumberish],
  ): string

  decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'approveAndCall(address,uint256)', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'approveAndCall(address,uint256,bytes)', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'transferAndCall(address,uint256)', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'transferAndCall(address,uint256,bytes)', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'transferFromAndCall(address,address,uint256,bytes)', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'transferFromAndCall(address,address,uint256)', data: BytesLike): Result
}

export namespace ApprovalEvent {
  export type InputTuple = [owner: AddressLike, spender: AddressLike, value: BigNumberish]
  export type OutputTuple = [owner: string, spender: string, value: bigint]
  export interface OutputObject {
    owner: string
    spender: string
    value: bigint
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  export type Filter = TypedDeferredTopicFilter<Event>
  export type Log = TypedEventLog<Event>
  export type LogDescription = TypedLogDescription<Event>
}

export namespace TransferEvent {
  export type InputTuple = [from: AddressLike, to: AddressLike, value: BigNumberish]
  export type OutputTuple = [from: string, to: string, value: bigint]
  export interface OutputObject {
    from: string
    to: string
    value: bigint
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  export type Filter = TypedDeferredTopicFilter<Event>
  export type Log = TypedEventLog<Event>
  export type LogDescription = TypedLogDescription<Event>
}

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

  interface: IERC1363Interface

  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>

  allowance: TypedContractMethod<[owner: AddressLike, spender: AddressLike], [bigint], 'view'>

  approve: TypedContractMethod<[spender: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>

  'approveAndCall(address,uint256)': TypedContractMethod<
    [spender: AddressLike, value: BigNumberish],
    [boolean],
    'nonpayable'
  >

  'approveAndCall(address,uint256,bytes)': TypedContractMethod<
    [spender: AddressLike, value: BigNumberish, data: BytesLike],
    [boolean],
    'nonpayable'
  >

  balanceOf: TypedContractMethod<[account: AddressLike], [bigint], 'view'>

  supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>

  totalSupply: TypedContractMethod<[], [bigint], 'view'>

  transfer: TypedContractMethod<[to: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>

  'transferAndCall(address,uint256)': TypedContractMethod<
    [to: AddressLike, value: BigNumberish],
    [boolean],
    'nonpayable'
  >

  'transferAndCall(address,uint256,bytes)': TypedContractMethod<
    [to: AddressLike, value: BigNumberish, data: BytesLike],
    [boolean],
    'nonpayable'
  >

  transferFrom: TypedContractMethod<[from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>

  'transferFromAndCall(address,address,uint256,bytes)': TypedContractMethod<
    [from: AddressLike, to: AddressLike, value: BigNumberish, data: BytesLike],
    [boolean],
    'nonpayable'
  >

  'transferFromAndCall(address,address,uint256)': TypedContractMethod<
    [from: AddressLike, to: AddressLike, value: BigNumberish],
    [boolean],
    'nonpayable'
  >

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

  getFunction(
    nameOrSignature: 'allowance',
  ): TypedContractMethod<[owner: AddressLike, spender: AddressLike], [bigint], 'view'>
  getFunction(
    nameOrSignature: 'approve',
  ): TypedContractMethod<[spender: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>
  getFunction(
    nameOrSignature: 'approveAndCall(address,uint256)',
  ): TypedContractMethod<[spender: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>
  getFunction(
    nameOrSignature: 'approveAndCall(address,uint256,bytes)',
  ): TypedContractMethod<[spender: AddressLike, value: BigNumberish, data: BytesLike], [boolean], 'nonpayable'>
  getFunction(nameOrSignature: 'balanceOf'): TypedContractMethod<[account: AddressLike], [bigint], 'view'>
  getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>
  getFunction(nameOrSignature: 'totalSupply'): TypedContractMethod<[], [bigint], 'view'>
  getFunction(
    nameOrSignature: 'transfer',
  ): TypedContractMethod<[to: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>
  getFunction(
    nameOrSignature: 'transferAndCall(address,uint256)',
  ): TypedContractMethod<[to: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>
  getFunction(
    nameOrSignature: 'transferAndCall(address,uint256,bytes)',
  ): TypedContractMethod<[to: AddressLike, value: BigNumberish, data: BytesLike], [boolean], 'nonpayable'>
  getFunction(
    nameOrSignature: 'transferFrom',
  ): TypedContractMethod<[from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>
  getFunction(
    nameOrSignature: 'transferFromAndCall(address,address,uint256,bytes)',
  ): TypedContractMethod<
    [from: AddressLike, to: AddressLike, value: BigNumberish, data: BytesLike],
    [boolean],
    'nonpayable'
  >
  getFunction(
    nameOrSignature: 'transferFromAndCall(address,address,uint256)',
  ): TypedContractMethod<[from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], 'nonpayable'>

  getEvent(
    key: 'Approval',
  ): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>
  getEvent(
    key: 'Transfer',
  ): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>

  filters: {
    'Approval(address,address,uint256)': TypedContractEvent<
      ApprovalEvent.InputTuple,
      ApprovalEvent.OutputTuple,
      ApprovalEvent.OutputObject
    >
    Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>

    'Transfer(address,address,uint256)': TypedContractEvent<
      TransferEvent.InputTuple,
      TransferEvent.OutputTuple,
      TransferEvent.OutputObject
    >
    Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>
  }
}
