From e305d900d61872c8a18e71476b50a57115fefd93 Mon Sep 17 00:00:00 2001 From: Buck Perley Date: Thu, 1 Nov 2018 12:44:08 -0700 Subject: [PATCH] pkg: add currency and other info (#623) matches expected outputs from hsd --- lib/pkg.js | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 3 deletions(-) diff --git a/lib/pkg.js b/lib/pkg.js index 10536303d..c95d733a2 100644 --- a/lib/pkg.js +++ b/lib/pkg.js @@ -6,16 +6,75 @@ 'use strict'; +const pkg = exports; + /** - * Current version string. + * 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 */ -exports.version = 'v1.0.2'; +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.url = 'https://github.com/bcoin-org/bcoin'; +pkg.version = require('../package.json').version;