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

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

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_l1ArbitrumInbox",
        type: "address",
        internalType: "contract ArbitrumInboxLike",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "aliasedL2HubPoolAddress",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "getL1CallValue",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "pure",
  },
  {
    type: "function",
    name: "l1Inbox",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract ArbitrumInboxLike",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "l2GasLimit",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint32",
        internalType: "uint32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "l2GasPrice",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "l2MaxSubmissionCost",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "l2RefundL2Address",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    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: "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 Arbitrum_RescueAdapter__factory {
  static readonly abi = _abi;
  static createInterface(): Arbitrum_RescueAdapterInterface {
    return new utils.Interface(_abi) as Arbitrum_RescueAdapterInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): Arbitrum_RescueAdapter {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as Arbitrum_RescueAdapter;
  }
}
