You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

payment-channel.js 997B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.parsePaymentChannel = void 0;
  4. const utils_1 = require("./utils");
  5. const common_1 = require("../../common");
  6. function parsePaymentChannel(data) {
  7. return common_1.removeUndefined({
  8. memos: utils_1.parseMemos(data),
  9. account: data.Account,
  10. amount: common_1.dropsToXrp(data.Amount),
  11. balance: common_1.dropsToXrp(data.Balance),
  12. destination: data.Destination,
  13. publicKey: data.PublicKey,
  14. settleDelay: data.SettleDelay,
  15. expiration: utils_1.parseTimestamp(data.Expiration),
  16. cancelAfter: utils_1.parseTimestamp(data.CancelAfter),
  17. sourceTag: data.SourceTag,
  18. destinationTag: data.DestinationTag,
  19. previousAffectingTransactionID: data.PreviousTxnID,
  20. previousAffectingTransactionLedgerVersion: data.PreviousTxnLgrSeq
  21. });
  22. }
  23. exports.parsePaymentChannel = parsePaymentChannel;
  24. //# sourceMappingURL=payment-channel.js.map