"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockOFTMessenger__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_token",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "amountReceivedLDToReturn",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "amountSentLDToReturn",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "endpoint",
        outputs: [
            {
                internalType: "contract IEndpoint",
                name: "iEndpoint",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "endpoint_",
        outputs: [
            {
                internalType: "contract IEndpoint",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastFee",
        outputs: [
            {
                internalType: "uint256",
                name: "nativeFee",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "lzTokenFee",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastMsgValue",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastRefundAddress",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lastSendParam",
        outputs: [
            {
                internalType: "uint32",
                name: "dstEid",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "to",
                type: "bytes32",
            },
            {
                internalType: "uint256",
                name: "amountLD",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "minAmountLD",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "extraOptions",
                type: "bytes",
            },
            {
                internalType: "bytes",
                name: "composeMsg",
                type: "bytes",
            },
            {
                internalType: "bytes",
                name: "oftCmd",
                type: "bytes",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "lzFee",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "nativeFee",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "dstEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "to",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "amountLD",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "minAmountLD",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "extraOptions",
                        type: "bytes",
                    },
                    {
                        internalType: "bytes",
                        name: "composeMsg",
                        type: "bytes",
                    },
                    {
                        internalType: "bytes",
                        name: "oftCmd",
                        type: "bytes",
                    },
                ],
                internalType: "struct SendParam",
                name: "",
                type: "tuple",
            },
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        name: "quoteSend",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "nativeFee",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "lzTokenFee",
                        type: "uint256",
                    },
                ],
                internalType: "struct MessagingFee",
                name: "",
                type: "tuple",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "resetReceipt",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "dstEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "to",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint256",
                        name: "amountLD",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "minAmountLD",
                        type: "uint256",
                    },
                    {
                        internalType: "bytes",
                        name: "extraOptions",
                        type: "bytes",
                    },
                    {
                        internalType: "bytes",
                        name: "composeMsg",
                        type: "bytes",
                    },
                    {
                        internalType: "bytes",
                        name: "oftCmd",
                        type: "bytes",
                    },
                ],
                internalType: "struct SendParam",
                name: "_sendParam",
                type: "tuple",
            },
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "nativeFee",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "lzTokenFee",
                        type: "uint256",
                    },
                ],
                internalType: "struct MessagingFee",
                name: "_fee",
                type: "tuple",
            },
            {
                internalType: "address",
                name: "_refundAddress",
                type: "address",
            },
        ],
        name: "send",
        outputs: [
            {
                components: [
                    {
                        internalType: "bytes32",
                        name: "guid",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint64",
                        name: "nonce",
                        type: "uint64",
                    },
                    {
                        components: [
                            {
                                internalType: "uint256",
                                name: "nativeFee",
                                type: "uint256",
                            },
                            {
                                internalType: "uint256",
                                name: "lzTokenFee",
                                type: "uint256",
                            },
                        ],
                        internalType: "struct MessagingFee",
                        name: "fee",
                        type: "tuple",
                    },
                ],
                internalType: "struct MessagingReceipt",
                name: "",
                type: "tuple",
            },
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "amountSentLD",
                        type: "uint256",
                    },
                    {
                        internalType: "uint256",
                        name: "amountReceivedLD",
                        type: "uint256",
                    },
                ],
                internalType: "struct OFTReceipt",
                name: "",
                type: "tuple",
            },
        ],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [],
        name: "sendCallCount",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "endpointAddr",
                type: "address",
            },
        ],
        name: "setEndpoint",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_nativeFee",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_lzFee",
                type: "uint256",
            },
        ],
        name: "setFeesToReturn",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "_amountSentLD",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "_amountReceivedLD",
                type: "uint256",
            },
        ],
        name: "setLDAmountsToReturn",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "token",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "useCustomReceipt",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class MockOFTMessenger__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_token, overrides) {
        return super.deploy(_token, overrides || {});
    }
    getDeployTransaction(_token, overrides) {
        return super.getDeployTransaction(_token, 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.MockOFTMessenger__factory = MockOFTMessenger__factory;
MockOFTMessenger__factory.bytecode = _bytecode;
MockOFTMessenger__factory.abi = _abi;
