"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateXChainCreateClaimID = void 0;
const errors_1 = require("../../errors");
const common_1 = require("./common");
function validateXChainCreateClaimID(tx) {
    (0, common_1.validateBaseTransaction)(tx);
    if (tx.XChainBridge == null) {
        throw new errors_1.ValidationError('XChainCreateClaimID: missing field XChainBridge');
    }
    if (tx.SignatureReward == null) {
        throw new errors_1.ValidationError('XChainCreateClaimID: missing field SignatureReward');
    }
    if (tx.OtherChainSource == null) {
        throw new errors_1.ValidationError('XChainCreateClaimID: missing field OtherChainSource');
    }
}
exports.validateXChainCreateClaimID = validateXChainCreateClaimID;
//# sourceMappingURL=XChainCreateClaimID.js.map