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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  IL2StakingBase,
  IL2StakingBaseInterface,
} from "../../../../../contracts/contracts/l2/staking/IL2StakingBase";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: true,
        internalType: "address",
        name: "indexer",
        type: "address",
      },
      {
        indexed: true,
        internalType: "address",
        name: "delegator",
        type: "address",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "amount",
        type: "uint256",
      },
    ],
    name: "TransferredDelegationReturnedToDelegator",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "from",
        type: "address",
      },
      {
        internalType: "uint256",
        name: "amount",
        type: "uint256",
      },
      {
        internalType: "bytes",
        name: "data",
        type: "bytes",
      },
    ],
    name: "onTokenTransfer",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class IL2StakingBase__factory {
  static readonly abi = _abi;
  static createInterface(): IL2StakingBaseInterface {
    return new utils.Interface(_abi) as IL2StakingBaseInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider,
  ): IL2StakingBase {
    return new Contract(address, _abi, signerOrProvider) as IL2StakingBase;
  }
}
