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

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

const _abi = [
  {
    type: "constructor",
    inputs: [
      {
        name: "_l1Usdc",
        type: "address",
        internalType: "contract IERC20",
      },
      {
        name: "_cctpTokenMessenger",
        type: "address",
        internalType: "contract ITokenMessenger",
      },
      {
        name: "_cctpMessageTransmitter",
        type: "address",
        internalType: "contract IMessageTransmitter",
      },
      {
        name: "solanaSpokePool",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "solanaUsdc",
        type: "bytes32",
        internalType: "bytes32",
      },
      {
        name: "solanaSpokePoolUsdcVault",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "SOLANA_SPOKE_POOL_ADDRESS",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "SOLANA_SPOKE_POOL_BYTES32",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "SOLANA_SPOKE_POOL_USDC_VAULT",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "bytes32",
        internalType: "bytes32",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "SOLANA_USDC_ADDRESS",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "address",
      },
    ],
    stateMutability: "view",
  },
  {
    type: "function",
    name: "cctpMessageTransmitter",
    inputs: [],
    outputs: [
      {
        name: "",
        type: "address",
        internalType: "contract IMessageTransmitter",
      },
    ],
    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: "InvalidAmount",
    inputs: [
      {
        name: "amount",
        type: "uint256",
        internalType: "uint256",
      },
    ],
  },
  {
    type: "error",
    name: "InvalidCctpMessageTransmitter",
    inputs: [
      {
        name: "messageTransmitter",
        type: "address",
        internalType: "address",
      },
    ],
  },
  {
    type: "error",
    name: "InvalidCctpTokenMessenger",
    inputs: [
      {
        name: "tokenMessenger",
        type: "address",
        internalType: "address",
      },
    ],
  },
  {
    type: "error",
    name: "InvalidL1Token",
    inputs: [
      {
        name: "l1Token",
        type: "address",
        internalType: "address",
      },
    ],
  },
  {
    type: "error",
    name: "InvalidL2Token",
    inputs: [
      {
        name: "l2Token",
        type: "address",
        internalType: "address",
      },
    ],
  },
  {
    type: "error",
    name: "InvalidRelayMessageTarget",
    inputs: [
      {
        name: "target",
        type: "address",
        internalType: "address",
      },
    ],
  },
  {
    type: "error",
    name: "InvalidTokenRecipient",
    inputs: [
      {
        name: "to",
        type: "address",
        internalType: "address",
      },
    ],
  },
] as const;

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