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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  AdminRelayTokensAdapter,
  AdminRelayTokensAdapterInterface,
} from "../AdminRelayTokensAdapter";

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "underlyingAdapter",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "UNDERLYING_ADAPTER",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "relayMessage",
    inputs: [
      {
        name: "target",
        type: "address",
        internalType: "address",
      },
      {
        name: "message",
        type: "bytes",
        internalType: "bytes",
      },
    ],
    outputs: [],
    stateMutability: "payable",
  },
  {
    type: "function",
    name: "relayTokens",
    inputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
      {
        name: "",
        type: "address",
        internalType: "address",
      },
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "payable",
  },
  {
    type: "event",
    name: "MessageRelayed",
    inputs: [
      {
        name: "target",
        type: "address",
        indexed: false,
        internalType: "address",
      },
      {
        name: "message",
        type: "bytes",
        indexed: false,
        internalType: "bytes",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "TokensRelayed",
    inputs: [
      {
        name: "l1Token",
        type: "address",
        indexed: false,
        internalType: "address",
      },
      {
        name: "l2Token",
        type: "address",
        indexed: false,
        internalType: "address",
      },
      {
        name: "amount",
        type: "uint256",
        indexed: false,
        internalType: "uint256",
      },
      {
        name: "to",
        type: "address",
        indexed: false,
        internalType: "address",
      },
    ],
    anonymous: false,
  },
  {
    type: "error",
    name: "DelegateCallFailed",
    inputs: [],
  },
  {
    type: "error",
    name: "RelayTokensNotSupported",
    inputs: [],
  },
  {
    type: "error",
    name: "TargetSpokeMismatch",
    inputs: [],
  },
] as const;

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