/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  Overrides,
  PayableOverrides,
  PopulatedTransaction,
  Signer,
  utils,
} from "ethers";
import type {
  FunctionFragment,
  Result,
  EventFragment,
} from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../../common";

export interface IL1StakingBaseInterface extends utils.Interface {
  functions: {
    "setL1GraphTokenLockTransferTool(address)": FunctionFragment;
    "transferDelegationToL2(address,address,uint256,uint256,uint256)": FunctionFragment;
    "transferLockedDelegationToL2(address,uint256,uint256,uint256)": FunctionFragment;
    "transferLockedStakeToL2(uint256,uint256,uint256,uint256)": FunctionFragment;
    "transferStakeToL2(address,uint256,uint256,uint256,uint256)": FunctionFragment;
    "unlockDelegationToTransferredIndexer(address)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "setL1GraphTokenLockTransferTool"
      | "transferDelegationToL2"
      | "transferLockedDelegationToL2"
      | "transferLockedStakeToL2"
      | "transferStakeToL2"
      | "unlockDelegationToTransferredIndexer",
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "setL1GraphTokenLockTransferTool",
    values: [PromiseOrValue<string>],
  ): string;
  encodeFunctionData(
    functionFragment: "transferDelegationToL2",
    values: [
      PromiseOrValue<string>,
      PromiseOrValue<string>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "transferLockedDelegationToL2",
    values: [
      PromiseOrValue<string>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "transferLockedStakeToL2",
    values: [
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "transferStakeToL2",
    values: [
      PromiseOrValue<string>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
      PromiseOrValue<BigNumberish>,
    ],
  ): string;
  encodeFunctionData(
    functionFragment: "unlockDelegationToTransferredIndexer",
    values: [PromiseOrValue<string>],
  ): string;

  decodeFunctionResult(
    functionFragment: "setL1GraphTokenLockTransferTool",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferDelegationToL2",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferLockedDelegationToL2",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferLockedStakeToL2",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "transferStakeToL2",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "unlockDelegationToTransferredIndexer",
    data: BytesLike,
  ): Result;

  events: {
    "DelegationTransferredToL2(address,address,address,address,uint256)": EventFragment;
    "IndexerStakeTransferredToL2(address,address,uint256)": EventFragment;
    "L1GraphTokenLockTransferToolSet(address)": EventFragment;
    "StakeDelegatedUnlockedDueToL2Transfer(address,address)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "DelegationTransferredToL2"): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "IndexerStakeTransferredToL2",
  ): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "L1GraphTokenLockTransferToolSet",
  ): EventFragment;
  getEvent(
    nameOrSignatureOrTopic: "StakeDelegatedUnlockedDueToL2Transfer",
  ): EventFragment;
}

export interface DelegationTransferredToL2EventObject {
  delegator: string;
  l2Delegator: string;
  indexer: string;
  l2Indexer: string;
  transferredDelegationTokens: BigNumber;
}
export type DelegationTransferredToL2Event = TypedEvent<
  [string, string, string, string, BigNumber],
  DelegationTransferredToL2EventObject
>;

export type DelegationTransferredToL2EventFilter =
  TypedEventFilter<DelegationTransferredToL2Event>;

export interface IndexerStakeTransferredToL2EventObject {
  indexer: string;
  l2Indexer: string;
  transferredStakeTokens: BigNumber;
}
export type IndexerStakeTransferredToL2Event = TypedEvent<
  [string, string, BigNumber],
  IndexerStakeTransferredToL2EventObject
>;

export type IndexerStakeTransferredToL2EventFilter =
  TypedEventFilter<IndexerStakeTransferredToL2Event>;

export interface L1GraphTokenLockTransferToolSetEventObject {
  l1GraphTokenLockTransferTool: string;
}
export type L1GraphTokenLockTransferToolSetEvent = TypedEvent<
  [string],
  L1GraphTokenLockTransferToolSetEventObject
>;

export type L1GraphTokenLockTransferToolSetEventFilter =
  TypedEventFilter<L1GraphTokenLockTransferToolSetEvent>;

export interface StakeDelegatedUnlockedDueToL2TransferEventObject {
  indexer: string;
  delegator: string;
}
export type StakeDelegatedUnlockedDueToL2TransferEvent = TypedEvent<
  [string, string],
  StakeDelegatedUnlockedDueToL2TransferEventObject
>;

export type StakeDelegatedUnlockedDueToL2TransferEventFilter =
  TypedEventFilter<StakeDelegatedUnlockedDueToL2TransferEvent>;

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

  interface: IL1StakingBaseInterface;

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

  listeners<TEvent extends TypedEvent>(
    eventFilter?: TypedEventFilter<TEvent>,
  ): Array<TypedListener<TEvent>>;
  listeners(eventName?: string): Array<Listener>;
  removeAllListeners<TEvent extends TypedEvent>(
    eventFilter: TypedEventFilter<TEvent>,
  ): this;
  removeAllListeners(eventName?: string): this;
  off: OnEvent<this>;
  on: OnEvent<this>;
  once: OnEvent<this>;
  removeListener: OnEvent<this>;

  functions: {
    setL1GraphTokenLockTransferTool(
      l1GraphTokenLockTransferTool: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    transferDelegationToL2(
      indexer: PromiseOrValue<string>,
      l2Beneficiary: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    transferLockedDelegationToL2(
      indexer: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    transferLockedStakeToL2(
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    transferStakeToL2(
      l2Beneficiary: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;

    unlockDelegationToTransferredIndexer(
      indexer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<ContractTransaction>;
  };

  setL1GraphTokenLockTransferTool(
    l1GraphTokenLockTransferTool: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  transferDelegationToL2(
    indexer: PromiseOrValue<string>,
    l2Beneficiary: PromiseOrValue<string>,
    maxGas: PromiseOrValue<BigNumberish>,
    gasPriceBid: PromiseOrValue<BigNumberish>,
    maxSubmissionCost: PromiseOrValue<BigNumberish>,
    overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  transferLockedDelegationToL2(
    indexer: PromiseOrValue<string>,
    maxGas: PromiseOrValue<BigNumberish>,
    gasPriceBid: PromiseOrValue<BigNumberish>,
    maxSubmissionCost: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  transferLockedStakeToL2(
    amount: PromiseOrValue<BigNumberish>,
    maxGas: PromiseOrValue<BigNumberish>,
    gasPriceBid: PromiseOrValue<BigNumberish>,
    maxSubmissionCost: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  transferStakeToL2(
    l2Beneficiary: PromiseOrValue<string>,
    amount: PromiseOrValue<BigNumberish>,
    maxGas: PromiseOrValue<BigNumberish>,
    gasPriceBid: PromiseOrValue<BigNumberish>,
    maxSubmissionCost: PromiseOrValue<BigNumberish>,
    overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  unlockDelegationToTransferredIndexer(
    indexer: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> },
  ): Promise<ContractTransaction>;

  callStatic: {
    setL1GraphTokenLockTransferTool(
      l1GraphTokenLockTransferTool: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<void>;

    transferDelegationToL2(
      indexer: PromiseOrValue<string>,
      l2Beneficiary: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    transferLockedDelegationToL2(
      indexer: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    transferLockedStakeToL2(
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    transferStakeToL2(
      l2Beneficiary: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides,
    ): Promise<void>;

    unlockDelegationToTransferredIndexer(
      indexer: PromiseOrValue<string>,
      overrides?: CallOverrides,
    ): Promise<void>;
  };

  filters: {
    "DelegationTransferredToL2(address,address,address,address,uint256)"(
      delegator?: PromiseOrValue<string> | null,
      l2Delegator?: PromiseOrValue<string> | null,
      indexer?: PromiseOrValue<string> | null,
      l2Indexer?: null,
      transferredDelegationTokens?: null,
    ): DelegationTransferredToL2EventFilter;
    DelegationTransferredToL2(
      delegator?: PromiseOrValue<string> | null,
      l2Delegator?: PromiseOrValue<string> | null,
      indexer?: PromiseOrValue<string> | null,
      l2Indexer?: null,
      transferredDelegationTokens?: null,
    ): DelegationTransferredToL2EventFilter;

    "IndexerStakeTransferredToL2(address,address,uint256)"(
      indexer?: PromiseOrValue<string> | null,
      l2Indexer?: PromiseOrValue<string> | null,
      transferredStakeTokens?: null,
    ): IndexerStakeTransferredToL2EventFilter;
    IndexerStakeTransferredToL2(
      indexer?: PromiseOrValue<string> | null,
      l2Indexer?: PromiseOrValue<string> | null,
      transferredStakeTokens?: null,
    ): IndexerStakeTransferredToL2EventFilter;

    "L1GraphTokenLockTransferToolSet(address)"(
      l1GraphTokenLockTransferTool?: null,
    ): L1GraphTokenLockTransferToolSetEventFilter;
    L1GraphTokenLockTransferToolSet(
      l1GraphTokenLockTransferTool?: null,
    ): L1GraphTokenLockTransferToolSetEventFilter;

    "StakeDelegatedUnlockedDueToL2Transfer(address,address)"(
      indexer?: PromiseOrValue<string> | null,
      delegator?: PromiseOrValue<string> | null,
    ): StakeDelegatedUnlockedDueToL2TransferEventFilter;
    StakeDelegatedUnlockedDueToL2Transfer(
      indexer?: PromiseOrValue<string> | null,
      delegator?: PromiseOrValue<string> | null,
    ): StakeDelegatedUnlockedDueToL2TransferEventFilter;
  };

  estimateGas: {
    setL1GraphTokenLockTransferTool(
      l1GraphTokenLockTransferTool: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    transferDelegationToL2(
      indexer: PromiseOrValue<string>,
      l2Beneficiary: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    transferLockedDelegationToL2(
      indexer: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    transferLockedStakeToL2(
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    transferStakeToL2(
      l2Beneficiary: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;

    unlockDelegationToTransferredIndexer(
      indexer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    setL1GraphTokenLockTransferTool(
      l1GraphTokenLockTransferTool: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    transferDelegationToL2(
      indexer: PromiseOrValue<string>,
      l2Beneficiary: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    transferLockedDelegationToL2(
      indexer: PromiseOrValue<string>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    transferLockedStakeToL2(
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    transferStakeToL2(
      l2Beneficiary: PromiseOrValue<string>,
      amount: PromiseOrValue<BigNumberish>,
      maxGas: PromiseOrValue<BigNumberish>,
      gasPriceBid: PromiseOrValue<BigNumberish>,
      maxSubmissionCost: PromiseOrValue<BigNumberish>,
      overrides?: PayableOverrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;

    unlockDelegationToTransferredIndexer(
      indexer: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> },
    ): Promise<PopulatedTransaction>;
  };
}
