"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IPostOffice__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        inputs: [
            {
                internalType: "enum MessageType",
                name: "msgType",
                type: "uint8",
            },
        ],
        name: "readMessage",
        outputs: [
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "value",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "sender",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "client",
                        type: "address",
                    },
                    {
                        internalType: "uint16",
                        name: "chainId",
                        type: "uint16",
                    },
                ],
                internalType: "struct Message[]",
                name: "messages",
                type: "tuple[]",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "enum MessageType",
                name: "msgType",
                type: "uint8",
            },
        ],
        name: "readMessageSumReduce",
        outputs: [
            {
                internalType: "uint256",
                name: "acc",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "count",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "receiverAddr",
                type: "address",
            },
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "value",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "sender",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "client",
                        type: "address",
                    },
                    {
                        internalType: "uint16",
                        name: "chainId",
                        type: "uint16",
                    },
                ],
                internalType: "struct Message",
                name: "message",
                type: "tuple",
            },
            {
                internalType: "uint16",
                name: "receiverChainId",
                type: "uint16",
            },
            {
                internalType: "enum MessageType",
                name: "msgType",
                type: "uint8",
            },
        ],
        name: "sendMessage",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                components: [
                    {
                        internalType: "uint256",
                        name: "value",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "sender",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "client",
                        type: "address",
                    },
                    {
                        internalType: "uint16",
                        name: "chainId",
                        type: "uint16",
                    },
                ],
                internalType: "struct Message",
                name: "message",
                type: "tuple",
            },
            {
                internalType: "enum MessageType",
                name: "msgType",
                type: "uint8",
            },
        ],
        name: "writeMessage",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
var IPostOffice__factory = /** @class */ (function () {
    function IPostOffice__factory() {
    }
    IPostOffice__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    IPostOffice__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    IPostOffice__factory.abi = _abi;
    return IPostOffice__factory;
}());
exports.IPostOffice__factory = IPostOffice__factory;
//# sourceMappingURL=IPostOffice__factory.js.map