"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 = [
    {
        inputs: [
            {
                internalType: "contract IERC20",
                name: "_l1Usdc",
                type: "address",
            },
            {
                internalType: "contract ITokenMessenger",
                name: "_cctpTokenMessenger",
                type: "address",
            },
            {
                internalType: "contract IMessageTransmitter",
                name: "_cctpMessageTransmitter",
                type: "address",
            },
            {
                internalType: "bytes32",
                name: "solanaSpokePool",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "solanaUsdc",
                type: "bytes32",
            },
            {
                internalType: "bytes32",
                name: "solanaSpokePoolUsdcVault",
                type: "bytes32",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
        ],
        name: "InvalidAmount",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "messageTransmitter",
                type: "address",
            },
        ],
        name: "InvalidCctpMessageTransmitter",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "tokenMessenger",
                type: "address",
            },
        ],
        name: "InvalidCctpTokenMessenger",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
        ],
        name: "InvalidL1Token",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
        ],
        name: "InvalidL2Token",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "target",
                type: "address",
            },
        ],
        name: "InvalidRelayMessageTarget",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "to",
                type: "address",
            },
        ],
        name: "InvalidTokenRecipient",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "MessageRelayed",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "to",
                type: "address",
            },
        ],
        name: "TokensRelayed",
        type: "event",
    },
    {
        inputs: [],
        name: "SOLANA_SPOKE_POOL_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "SOLANA_SPOKE_POOL_BYTES32",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "SOLANA_SPOKE_POOL_USDC_VAULT",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "SOLANA_USDC_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "cctpMessageTransmitter",
        outputs: [
            {
                internalType: "contract IMessageTransmitter",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "cctpTokenMessenger",
        outputs: [
            {
                internalType: "contract ITokenMessenger",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "cctpV2",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "recipientCircleDomainId",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "relayMessage",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "to",
                type: "address",
            },
        ],
        name: "relayTokens",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [],
        name: "usdcToken",
        outputs: [
            {
                internalType: "contract IERC20",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
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;
