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.

fee-update.js 837B

1234567891011121314151617181920
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const bignumber_js_1 = __importDefault(require("bignumber.js"));
  7. const common_1 = require("../../common");
  8. const utils_1 = require("./utils");
  9. function parseFeeUpdate(tx) {
  10. const baseFeeDrops = new bignumber_js_1.default(tx.BaseFee, 16).toString();
  11. return {
  12. memos: utils_1.parseMemos(tx),
  13. baseFeeXRP: common_1.dropsToXrp(baseFeeDrops),
  14. referenceFeeUnits: tx.ReferenceFeeUnits,
  15. reserveBaseXRP: common_1.dropsToXrp(tx.ReserveBase),
  16. reserveIncrementXRP: common_1.dropsToXrp(tx.ReserveIncrement)
  17. };
  18. }
  19. exports.default = parseFeeUpdate;
  20. //# sourceMappingURL=fee-update.js.map