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

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

const _abi = [
  {
    type: "function",
    name: "batchSetMessengers",
    inputs: [
      {
        name: "messengerTypes",
        type: "bytes32[]",
        internalType: "bytes32[]",
      },
      {
        name: "dstDomainIds",
        type: "uint256[]",
        internalType: "uint256[]",
      },
      {
        name: "srcChainTokens",
        type: "address[]",
        internalType: "address[]",
      },
      {
        name: "srcChainMessengers",
        type: "address[]",
        internalType: "address[]",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "crossChainMessengers",
    inputs: [
      {
        name: "messengerType",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "dstDomainId",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "srcChainToken",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [
      {
        name: "messengerAddress",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "owner",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "renounceOwnership",
    inputs: [],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "setMessenger",
    inputs: [
      {
        name: "messengerType",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "dstDomainId",
        type: "uint256",
        internalType: "uint256",
      },
      {
        name: "srcChainToken",
        type: "address",
        internalType: "address",
      },
      {
        name: "srcChainMessenger",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "transferOwnership",
    inputs: [
      {
        name: "newOwner",
        type: "address",
        internalType: "address",
      },
    ],
    outputs: [],
    stateMutability: "nonpayable",
  },
  {
    type: "event",
    name: "MessengerSet",
    inputs: [
      {
        name: "messengerType",
        type: "bytes32",
        indexed: true,
        internalType: "bytes32",
      },
      {
        name: "dstDomainId",
        type: "uint256",
        indexed: true,
        internalType: "uint256",
      },
      {
        name: "srcChainToken",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "srcChainMessenger",
        type: "address",
        indexed: false,
        internalType: "address",
      },
    ],
    anonymous: false,
  },
  {
    type: "event",
    name: "OwnershipTransferred",
    inputs: [
      {
        name: "previousOwner",
        type: "address",
        indexed: true,
        internalType: "address",
      },
      {
        name: "newOwner",
        type: "address",
        indexed: true,
        internalType: "address",
      },
    ],
    anonymous: false,
  },
  {
    type: "error",
    name: "ArrayLengthMismatch",
    inputs: [],
  },
  {
    type: "error",
    name: "IOFTTokenMismatch",
    inputs: [],
  },
  {
    type: "error",
    name: "NonExistentMessengerType",
    inputs: [],
  },
] as const;

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