From 9d9c23e315a124c9fa5fa929d00c18791cfdb4e6 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Mon, 2 Feb 2015 17:40:05 +0100 Subject: common cleanup --- lib/const.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'lib/const.js') diff --git a/lib/const.js b/lib/const.js index 22f6dc690..8a17b794d 100644 --- a/lib/const.js +++ b/lib/const.js @@ -25,9 +25,32 @@ if (process.env.NODE_ENV !== 'build') { var BigNumber = require('bignumber.js'); // jshint ignore:line } +var ETH_UNITS = [ + 'wei', + 'Kwei', + 'Mwei', + 'Gwei', + 'szabo', + 'finney', + 'ether', + 'grand', + 'Mether', + 'Gether', + 'Tether', + 'Pether', + 'Eether', + 'Zether', + 'Yether', + 'Nether', + 'Dether', + 'Vether', + 'Uether' +]; + module.exports = { ETH_PADDING: 32, ETH_SIGNATURE_LENGTH: 4, + ETH_UNITS: ETH_UNITS, ETH_BIGNUMBER_ROUNDING_MODE: { ROUNDING_MODE: BigNumber.ROUND_DOWN } }; -- cgit v1.2.3