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

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

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_rescueAddress",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "relayMessage",
    inputs: [
      {
        name: "",
        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: "function",
    name: "rescueAddress",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    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,
  },
] as const;

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