"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReceiverEVM__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "fallback",
        stateMutability: "payable",
    },
    {
        type: "receive",
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "onCall",
        inputs: [
            {
                name: "messageContext",
                type: "tuple",
                internalType: "struct MessageContext",
                components: [
                    {
                        name: "sender",
                        type: "address",
                        internalType: "address",
                    },
                ],
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "onRevert",
        inputs: [
            {
                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: "receiveERC20",
        inputs: [
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "destination",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "receiveERC20Partial",
        inputs: [
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "destination",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "receiveNoParams",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "receiveNonPayable",
        inputs: [
            {
                name: "strs",
                type: "string[]",
                internalType: "string[]",
            },
            {
                name: "nums",
                type: "uint256[]",
                internalType: "uint256[]",
            },
            {
                name: "flag",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "receivePayable",
        inputs: [
            {
                name: "str",
                type: "string",
                internalType: "string",
            },
            {
                name: "num",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "flag",
                type: "bool",
                internalType: "bool",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "event",
        name: "ReceivedERC20",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "token",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "destination",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ReceivedNoParams",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ReceivedNonPayable",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "strs",
                type: "string[]",
                indexed: false,
                internalType: "string[]",
            },
            {
                name: "nums",
                type: "uint256[]",
                indexed: false,
                internalType: "uint256[]",
            },
            {
                name: "flag",
                type: "bool",
                indexed: false,
                internalType: "bool",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ReceivedOnCall",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ReceivedPayable",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "value",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "str",
                type: "string",
                indexed: false,
                internalType: "string",
            },
            {
                name: "num",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "flag",
                type: "bool",
                indexed: false,
                internalType: "bool",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "ReceivedRevert",
        inputs: [
            {
                name: "sender",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "revertContext",
                type: "tuple",
                indexed: false,
                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",
                    },
                ],
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "AddressEmptyCode",
        inputs: [
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "AddressInsufficientBalance",
        inputs: [
            {
                name: "account",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "FailedInnerCall",
        inputs: [],
    },
    {
        type: "error",
        name: "ReentrancyGuardReentrantCall",
        inputs: [],
    },
    {
        type: "error",
        name: "SafeERC20FailedOperation",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "ZeroAmount",
        inputs: [],
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class ReceiverEVM__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    getDeployTransaction(overrides) {
        return super.getDeployTransaction(overrides || {});
    }
    deploy(overrides) {
        return super.deploy(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.ReceiverEVM__factory = ReceiverEVM__factory;
ReceiverEVM__factory.bytecode = _bytecode;
ReceiverEVM__factory.abi = _abi;
