"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZetaConnectorZEVM__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "wzeta_",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "receive",
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "FUNGIBLE_MODULE_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "onReceive",
        inputs: [
            {
                name: "zetaTxSenderAddress",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "sourceChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationAddress",
                type: "address",
                internalType: "address",
            },
            {
                name: "zetaValue",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "internalSendHash",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "onRevert",
        inputs: [
            {
                name: "zetaTxSenderAddress",
                type: "address",
                internalType: "address",
            },
            {
                name: "sourceChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "destinationAddress",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "remainingZetaValue",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "internalSendHash",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "send",
        inputs: [
            {
                name: "input",
                type: "tuple",
                internalType: "struct ZetaInterfaces.SendInput",
                components: [
                    {
                        name: "destinationChainId",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "destinationAddress",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "destinationGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "message",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "zetaValueAndGas",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "zetaParams",
                        type: "bytes",
                        internalType: "bytes",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setWzetaAddress",
        inputs: [
            {
                name: "wzeta_",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "wzeta",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "SetWZETA",
        inputs: [
            {
                name: "wzeta_",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ZetaReceived",
        inputs: [
            {
                name: "zetaTxSenderAddress",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "sourceChainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "destinationAddress",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "zetaValue",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "internalSendHash",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ZetaReverted",
        inputs: [
            {
                name: "zetaTxSenderAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "sourceChainId",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "destinationAddress",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "remainingZetaValue",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "internalSendHash",
                type: "bytes32",
                indexed: true,
                internalType: "bytes32",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ZetaSent",
        inputs: [
            {
                name: "sourceTxOriginAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "zetaTxSenderAddress",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "destinationChainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "destinationAddress",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "zetaValueAndGas",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "destinationGasLimit",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "zetaParams",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "FailedZetaSent",
        inputs: [],
    },
    {
        type: "error",
        name: "OnlyFungibleModule",
        inputs: [],
    },
    {
        type: "error",
        name: "OnlyWZETAOrFungible",
        inputs: [],
    },
    {
        type: "error",
        name: "WZETATransferFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "WrongValue",
        inputs: [],
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class ZetaConnectorZEVM__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    getDeployTransaction(wzeta_, overrides) {
        return super.getDeployTransaction(wzeta_, overrides || {});
    }
    deploy(wzeta_, overrides) {
        return super.deploy(wzeta_, overrides || {});
    }
    connect(runner) {
        return super.connect(runner);
    }
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.ZetaConnectorZEVM__factory = ZetaConnectorZEVM__factory;
ZetaConnectorZEVM__factory.bytecode = _bytecode;
ZetaConnectorZEVM__factory.abi = _abi;
