"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IGatewayZEVM__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "function",
        name: "call",
        inputs: [
            {
                name: "receiver",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "callOptions",
                type: "tuple",
                internalType: "struct CallOptions",
                components: [
                    {
                        name: "gasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "isArbitraryCall",
                        type: "bool",
                        internalType: "bool",
                    },
                ],
            },
            {
                name: "revertOptions",
                type: "tuple",
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "deposit",
        inputs: [
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "depositAndCall",
        inputs: [
            {
                name: "context",
                type: "tuple",
                internalType: "struct MessageContext",
                components: [
                    {
                        name: "sender",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "senderEVM",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "chainID",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "depositAndCall",
        inputs: [
            {
                name: "context",
                type: "tuple",
                internalType: "struct MessageContext",
                components: [
                    {
                        name: "sender",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "senderEVM",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "chainID",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "depositAndRevert",
        inputs: [
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "revertContext",
                type: "tuple",
                internalType: "struct RevertContext",
                components: [
                    {
                        name: "sender",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "asset",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "amount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "execute",
        inputs: [
            {
                name: "context",
                type: "tuple",
                internalType: "struct MessageContext",
                components: [
                    {
                        name: "sender",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "senderEVM",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "chainID",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "executeRevert",
        inputs: [
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "revertContext",
                type: "tuple",
                internalType: "struct RevertContext",
                components: [
                    {
                        name: "sender",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "asset",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "amount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "withdraw",
        inputs: [
            {
                name: "receiver",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "revertOptions",
                type: "tuple",
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "withdraw",
        inputs: [
            {
                name: "receiver",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "chainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "revertOptions",
                type: "tuple",
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "withdrawAndCall",
        inputs: [
            {
                name: "receiver",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "chainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "callOptions",
                type: "tuple",
                internalType: "struct CallOptions",
                components: [
                    {
                        name: "gasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "isArbitraryCall",
                        type: "bool",
                        internalType: "bool",
                    },
                ],
            },
            {
                name: "revertOptions",
                type: "tuple",
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "withdrawAndCall",
        inputs: [
            {
                name: "receiver",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "callOptions",
                type: "tuple",
                internalType: "struct CallOptions",
                components: [
                    {
                        name: "gasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "isArbitraryCall",
                        type: "bool",
                        internalType: "bool",
                    },
                ],
            },
            {
                name: "revertOptions",
                type: "tuple",
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "event",
        name: "Called",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "zrc20",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "receiver",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "callOptions",
                type: "tuple",
                indexed: false,
                internalType: "struct CallOptions",
                components: [
                    {
                        name: "gasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "isArbitraryCall",
                        type: "bool",
                        internalType: "bool",
                    },
                ],
            },
            {
                name: "revertOptions",
                type: "tuple",
                indexed: false,
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "Withdrawn",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "chainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "receiver",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "zrc20",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "value",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "gasfee",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "protocolFlatFee",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "callOptions",
                type: "tuple",
                indexed: false,
                internalType: "struct CallOptions",
                components: [
                    {
                        name: "gasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "isArbitraryCall",
                        type: "bool",
                        internalType: "bool",
                    },
                ],
            },
            {
                name: "revertOptions",
                type: "tuple",
                indexed: false,
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "WithdrawnAndCalled",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "chainId",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "receiver",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "zrc20",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "value",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "gasfee",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "protocolFlatFee",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
            {
                name: "callOptions",
                type: "tuple",
                indexed: false,
                internalType: "struct CallOptions",
                components: [
                    {
                        name: "gasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "isArbitraryCall",
                        type: "bool",
                        internalType: "bool",
                    },
                ],
            },
            {
                name: "revertOptions",
                type: "tuple",
                indexed: false,
                internalType: "struct RevertOptions",
                components: [
                    {
                        name: "revertAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "callOnRevert",
                        type: "bool",
                        internalType: "bool",
                    },
                    {
                        name: "abortAddress",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "revertMessage",
                        type: "bytes",
                        internalType: "bytes",
                    },
                    {
                        name: "onRevertGasLimit",
                        type: "uint256",
                        internalType: "uint256",
                    },
                ],
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "CallerIsNotProtocol",
        inputs: [],
    },
    {
        type: "error",
        name: "FailedZetaSent",
        inputs: [
            {
                name: "recipient",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "GasFeeTransferFailed",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "to",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "InsufficientGasLimit",
        inputs: [],
    },
    {
        type: "error",
        name: "InsufficientZRC20Amount",
        inputs: [],
    },
    {
        type: "error",
        name: "InsufficientZetaAmount",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidTarget",
        inputs: [],
    },
    {
        type: "error",
        name: "MessageSizeExceeded",
        inputs: [
            {
                name: "provided",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "maximum",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "OnlyWZETAOrProtocol",
        inputs: [],
    },
    {
        type: "error",
        name: "WithdrawalFailed",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "recipient",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "ZRC20BurnFailed",
        inputs: [
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "ZRC20DepositFailed",
        inputs: [
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "to",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "ZRC20TransferFailed",
        inputs: [
            {
                name: "zrc20",
                type: "address",
                internalType: "address",
            },
            {
                name: "from",
                type: "address",
                internalType: "address",
            },
            {
                name: "to",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
];
class IGatewayZEVM__factory {
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.IGatewayZEVM__factory = IGatewayZEVM__factory;
IGatewayZEVM__factory.abi = _abi;
