"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const light_1 = require("protobufjs/light");
const protobuf_1 = require("../../protobuf");
const tx_result_1 = tslib_1.__importDefault(require("./tx-result"));
/**
 * ByzCoin block payload
 */
class DataBody extends light_1.Message {
    constructor(props) {
        super(props);
        this.txResults = this.txResults || [];
        /* Protobuf aliases */
        Object.defineProperty(this, "txresults", {
            get() {
                return this.txResults;
            },
            set(value) {
                this.txResults = value;
            },
        });
    }
    /**
     * @see README#Message classes
     */
    static register() {
        protobuf_1.registerMessage("byzcoin.DataBody", DataBody, tx_result_1.default);
    }
}
exports.default = DataBody;
DataBody.register();
