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