Convert server methods, add unit tests, and cleanup

This commit is contained in:
Chris Clark
2015-07-01 15:42:32 -07:00
parent 4efe0b920e
commit 32ca23a00b
14 changed files with 77 additions and 223 deletions

View File

@@ -1,5 +1,6 @@
'use strict';
const BigNumber = require('bignumber.js');
const core = require('../../core');
function dropsToXrp(drops) {
return (new BigNumber(drops)).dividedBy(1000000.0).toString();
@@ -42,6 +43,7 @@ function composeAsync(wrapper, callback) {
}
module.exports = {
core,
dropsToXrp,
xrpToDrops,
toRippledAmount,