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

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

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_chainId",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "_bridgeHub",
        type: "address",
        internalType: "contract BridgeHubInterface",
      },
      {
        name: "_circleUSDC",
        type: "address",
        internalType: "contract IERC20",
      },
      {
        name: "_usdcSharedBridge",
        type: "address",
        internalType: "address",
      },
      {
        name: "_cctpTokenMessenger",
        type: "address",
        internalType: "contract ITokenMessenger",
      },
      {
        name: "_recipientCircleDomainId",
        type: "uint32",
        internalType: "uint32",
      },
      {
        name: "_l1Weth",
        type: "address",
        internalType: "contract WETH9Interface",
      },
      {
        name: "_l2RefundAddress",
        type: "address",
        internalType: "address",
      },
      {
        name: "_customGasTokenFunder",
        type: "address",
        internalType: "contract FunderInterface",
      },
      {
        name: "_l2GasLimit",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "_l1GasToL2GasPerPubDataLimit",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "_maxTxGasprice",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "BRIDGE_HUB",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract BridgeHubInterface",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "CHAIN_ID",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "CUSTOM_GAS_TOKEN",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "CUSTOM_GAS_TOKEN_FUNDER",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract FunderInterface",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L1_GAS_TO_L2_GAS_PER_PUB_DATA_LIMIT",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L1_WETH",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract WETH9Interface",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L2_GAS_LIMIT",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "uint256",
        internalType: "uint256",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "L2_REFUND_ADDRESS",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "USDC_SHARED_BRIDGE",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "cctpTokenMessenger",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract ITokenMessenger",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "cctpV2",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bool",
        internalType: "bool",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "recipientCircleDomainId",
    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: "function",
    name: "usdcToken",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract IERC20",
      },
    ],
    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,
  },
  {
    type: "error",
    name: "ETHGasTokenNotAllowed",
    inputs: [],
  },
  {
    type: "error",
    name: "InvalidBridgeConfig",
    inputs: [],
  },
  {
    type: "error",
    name: "TransactionFeeTooHigh",
    inputs: [],
  },
] as const;

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