pkg: add currency and other info (#623)

matches expected outputs from hsd
This commit is contained in:
Buck Perley 2018-11-01 12:44:08 -07:00 committed by GitHub
parent 78eeae6763
commit e305d900d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,16 +6,75 @@
'use strict';
const pkg = exports;
/**
* Package Name
* @const {String}
* @default
*/
pkg.name = require('../package.json').name;
/**
* Project Name
* @const {String}
* @default
*/
pkg.core = 'bcoin';
/**
* Organization Name
* @const {String}
* @default
*/
pkg.organization = 'bcoin-org';
/**
* Currency Name
* @const {String}
* @default
*/
pkg.currency = 'bitcoin';
/**
* Currency Unit
* @const {String}
* @default
*/
pkg.unit = 'btc';
/**
* Base Unit
* @const {String}
* @default
*/
pkg.base = 'satoshi';
/**
* Config file name.
* @const {String}
* @default
*/
pkg.cfg = `${pkg.core}.conf`;
/**
* Repository URL.
* @const {String}
* @default
*/
pkg.url = `https://github.com/${pkg.organization}/${pkg.name}`;
/**
* Current version string.
* @const {String}
*/
exports.version = 'v1.0.2';
/**
* Repository URL.
* @const {String}
*/
exports.url = 'https://github.com/bcoin-org/bcoin';
pkg.version = require('../package.json').version;