"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Solana_Adapter__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
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",
            },
        ],
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class Solana_Adapter__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_l1Usdc, _cctpTokenMessenger, _cctpMessageTransmitter, solanaSpokePool, solanaUsdc, solanaSpokePoolUsdcVault, overrides) {
        return super.deploy(_l1Usdc, _cctpTokenMessenger, _cctpMessageTransmitter, solanaSpokePool, solanaUsdc, solanaSpokePoolUsdcVault, overrides || {});
    }
    getDeployTransaction(_l1Usdc, _cctpTokenMessenger, _cctpMessageTransmitter, solanaSpokePool, solanaUsdc, solanaSpokePoolUsdcVault, overrides) {
        return super.getDeployTransaction(_l1Usdc, _cctpTokenMessenger, _cctpMessageTransmitter, solanaSpokePool, solanaUsdc, solanaSpokePoolUsdcVault, overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.Solana_Adapter__factory = Solana_Adapter__factory;
Solana_Adapter__factory.bytecode = _bytecode;
Solana_Adapter__factory.abi = _abi;
