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

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

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_l1GatewayRouter",
        type: "address",
        internalType: "contract IL1GatewayRouter",
      },
      {
        name: "_l1ScrollMessenger",
        type: "address",
        internalType: "contract IL1ScrollMessenger",
      },
      {
        name: "_l2GasPriceOracle",
        type: "address",
        internalType: "contract IL2GasPriceOracle",
      },
      {
        name: "_l2MessageRelayGasLimit",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "_l2TokenRelayGasLimit",
        type: "uint32",
        internalType: "uint32",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "L1_GATEWAY_ROUTER",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract IL1GatewayRouter",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L1_SCROLL_MESSENGER",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract IL1ScrollMessenger",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L2_GAS_PRICE_ORACLE",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract IL2GasPriceOracle",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L2_MESSAGE_RELAY_GAS_LIMIT",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint32",
        internalType: "uint32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L2_TOKEN_RELAY_GAS_LIMIT",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint32",
        internalType: "uint32",
      },
    ],
    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: "l1Token",
        type: "address",
        internalType: "address",
      },
      {
        name: "l2Token",
        type: "address",
        internalType: "address",
      },
      {
        name: "amount",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "to",
        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 Scroll_Adapter__factory {
  static readonly abi = _abi;
  static createInterface(): Scroll_AdapterInterface {
    return new utils.Interface(_abi) as Scroll_AdapterInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): Scroll_Adapter {
    return new Contract(address, _abi, signerOrProvider) as Scroll_Adapter;
  }
}
