18 changed files with 166 additions and 56 deletions
Binary file not shown.
@ -0,0 +1,36 @@ |
|||
{ |
|||
"tags": { |
|||
"allowUnknownTags": true |
|||
}, |
|||
"source": { |
|||
"include": ["docs/README.md"], |
|||
"exclude": [], |
|||
"includePattern": "lib/.+\\.js(doc)?$", |
|||
"excludePattern": "(^|\\/|\\\\)_" |
|||
}, |
|||
"plugins": ["plugins/markdown"], |
|||
"templates": { |
|||
"cleverLinks": false, |
|||
"monospaceLinks": false |
|||
}, |
|||
"opts": { |
|||
"template": "node_modules/ink-docstrap/template", |
|||
"encoding": "utf8", |
|||
"destination": "./apiref/", |
|||
"recurse": true, |
|||
"query": "value", |
|||
"private": true, |
|||
"lenient": true |
|||
}, |
|||
"templates": { |
|||
"systemName": "bitcore", |
|||
"copyright": "© 2013-2014, BitPay Inc.", |
|||
"navType": "vertical", |
|||
"theme": "journal", |
|||
"linenums": true, |
|||
"collapseSymbols": false, |
|||
"inverseNav": false, |
|||
"outputSourceFiles": true |
|||
} |
|||
|
|||
} |
Binary file not shown.
@ -0,0 +1,8 @@ |
|||
/** |
|||
* @namespace Transport |
|||
*/ |
|||
module.exports = { |
|||
Peer: require('./peer'), |
|||
Messages: require('./messages'), |
|||
Pool: require('./pool') |
|||
}; |
@ -1,18 +0,0 @@ |
|||
/** |
|||
* @file util/bitcoin.js |
|||
* Contains utilities to handle magnitudes inside of bitcoin |
|||
*/ |
|||
'use strict'; |
|||
|
|||
var SATOSHIS_PER_BTC = 1e8; |
|||
|
|||
module.exports = { |
|||
/** |
|||
* @param number satoshis - amount of satoshis to convert |
|||
* @return string an exact representation of such amount, in form of a string |
|||
* (avoids duplicate representations in ieee756 of the same number) |
|||
*/ |
|||
satoshisToBitcoin: function(satoshis) { |
|||
return satoshis / SATOSHIS_PER_BTC; |
|||
} |
|||
}; |
Loading…
Reference in new issue