UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

18 lines (17 loc) 590 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const common_1 = require("../../common"); const amount_1 = __importDefault(require("./amount")); function parseRippledAmount(amount) { if (amount === undefined) { return undefined; } if (typeof amount === "string") { return (0, common_1.dropsToXrp)(amount); } return (0, amount_1.default)(amount); } exports.default = parseRippledAmount;