"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZetaConnectorEth__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "zetaToken_",
                type: "address",
                internalType: "address",
            },
            {
                name: "tssAddress_",
                type: "address",
                internalType: "address",
            },
            {
                name: "tssAddressUpdater_",
                type: "address",
                internalType: "address",
            },
            {
                name: "pauserAddress_",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "getLockedAmount",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        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: "nonpayable",
    },
    {
        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: "nonpayable",
    },
    {
        type: "function",
        name: "pause",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "paused",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "pauserAddress",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "renounceTssAddressUpdater",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        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: "tssAddress",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "tssAddressUpdater",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "unpause",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "updatePauserAddress",
        inputs: [
            {
                name: "pauserAddress_",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "updateTssAddress",
        inputs: [
            {
                name: "tssAddress_",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "zetaToken",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "Paused",
        inputs: [
            {
                name: "account",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "PauserAddressUpdated",
        inputs: [
            {
                name: "callerAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "newTssAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "TSSAddressUpdated",
        inputs: [
            {
                name: "callerAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "newTssAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "TSSAddressUpdaterUpdated",
        inputs: [
            {
                name: "callerAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "newTssUpdaterAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Unpaused",
        inputs: [
            {
                name: "account",
                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: "CallerIsNotPauser",
        inputs: [
            {
                name: "caller",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "CallerIsNotTss",
        inputs: [
            {
                name: "caller",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "CallerIsNotTssOrUpdater",
        inputs: [
            {
                name: "caller",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "CallerIsNotTssUpdater",
        inputs: [
            {
                name: "caller",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "EnforcedPause",
        inputs: [],
    },
    {
        type: "error",
        name: "ExceedsMaxSupply",
        inputs: [
            {
                name: "maxSupply",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "ExpectedPause",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidAddress",
        inputs: [],
    },
    {
        type: "error",
        name: "ZetaTransferError",
        inputs: [],
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class ZetaConnectorEth__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    getDeployTransaction(zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_, overrides) {
        return super.getDeployTransaction(zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_, overrides || {});
    }
    deploy(zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_, overrides) {
        return super.deploy(zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_, 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.ZetaConnectorEth__factory = ZetaConnectorEth__factory;
ZetaConnectorEth__factory.bytecode = _bytecode;
ZetaConnectorEth__factory.abi = _abi;
