UNPKG

xrpl

Version:

A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser

15 lines 660 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateLoanPay = void 0; const errors_1 = require("../../errors"); const common_1 = require("./common"); function validateLoanPay(tx) { (0, common_1.validateBaseTransaction)(tx); (0, common_1.validateRequiredField)(tx, 'LoanID', common_1.isString); (0, common_1.validateRequiredField)(tx, 'Amount', common_1.isAmount); if (!(0, common_1.isLedgerEntryId)(tx.LoanID)) { throw new errors_1.ValidationError(`LoanPay: LoanID must be 64 characters hexadecimal string`); } } exports.validateLoanPay = validateLoanPay; //# sourceMappingURL=loanPay.js.map