"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 = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_token",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "amountReceivedLDToReturn",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "amountSentLDToReturn",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "endpoint",
        inputs: [],
        outputs: [
            {
                name: "iEndpoint",
                type: "address",
                internalType: "contract IEndpoint",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "endpoint_",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract IEndpoint",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "lastFee",
        inputs: [],
        outputs: [
            {
                name: "nativeFee",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "lzTokenFee",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "lastMsgValue",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "lastRefundAddress",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "lastSendParam",
        inputs: [],
        outputs: [
            {
                name: "dstEid",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "to",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "amountLD",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "minAmountLD",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "extraOptions",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "composeMsg",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "oftCmd",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "lzFee",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "nativeFee",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "quoteSend",
        inputs: [
            {
                name: "",
                type: "tuple",
                internalType: "struct SendParam",
                components: [
                    {
                        name: "dstEid",
                        type: "uint32",
                        internalType: "uint32",
                    },
                    {
                        name: "to",
                        type: "bytes32",
                        internalType: "bytes32",
                    },
                    {
                        name: "amountLD",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "minAmountLD",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "extraOptions",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "composeMsg",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "oftCmd",
                        type: "bytes",
                        internalType: "bytes",
                    },
                ],
            },
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [
            {
                name: "",
                type: "tuple",
                internalType: "struct MessagingFee",
                components: [
                    {
                        name: "nativeFee",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "lzTokenFee",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "resetReceipt",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "send",
        inputs: [
            {
                name: "_sendParam",
                type: "tuple",
                internalType: "struct SendParam",
                components: [
                    {
                        name: "dstEid",
                        type: "uint32",
                        internalType: "uint32",
                    },
                    {
                        name: "to",
                        type: "bytes32",
                        internalType: "bytes32",
                    },
                    {
                        name: "amountLD",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "minAmountLD",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "extraOptions",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "composeMsg",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "oftCmd",
                        type: "bytes",
                        internalType: "bytes",
                    },
                ],
            },
            {
                name: "_fee",
                type: "tuple",
                internalType: "struct MessagingFee",
                components: [
                    {
                        name: "nativeFee",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "lzTokenFee",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "_refundAddress",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "tuple",
                internalType: "struct MessagingReceipt",
                components: [
                    {
                        name: "guid",
                        type: "bytes32",
                        internalType: "bytes32",
                    },
                    {
                        name: "nonce",
                        type: "uint64",
                        internalType: "uint64",
                    },
                    {
                        name: "fee",
                        type: "tuple",
                        internalType: "struct MessagingFee",
                        components: [
                            {
                                name: "nativeFee",
                                type: "uint256",
                                internalType: "uint256",
                            },
                            {
                                name: "lzTokenFee",
                                type: "uint256",
                                internalType: "uint256",
                            },
                        ],
                    },
                ],
            },
            {
                name: "",
                type: "tuple",
                internalType: "struct OFTReceipt",
                components: [
                    {
                        name: "amountSentLD",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "amountReceivedLD",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "sendCallCount",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "setEndpoint",
        inputs: [
            {
                name: "endpointAddr",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setFeesToReturn",
        inputs: [
            {
                name: "_nativeFee",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "_lzFee",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setLDAmountsToReturn",
        inputs: [
            {
                name: "_amountSentLD",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "_amountReceivedLD",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "token",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "useCustomReceipt",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
];
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;
