aboutsummaryrefslogtreecommitdiffstats
path: root/lib/const.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-03 23:20:26 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-03 23:20:26 +0800
commitf1a5cf9128170b85428259c8b0ecfaed5b3e17d1 (patch)
tree9baf54fd2db882b95018fcd66238702b29035abf /lib/const.js
parent4bb5ba78b0f3d906743874aa8c0cb980b2ad0055 (diff)
parenta5909d82eb16d6e631bd5f89d700eced205b2fcf (diff)
downloadgo-tangerine-f1a5cf9128170b85428259c8b0ecfaed5b3e17d1.tar
go-tangerine-f1a5cf9128170b85428259c8b0ecfaed5b3e17d1.tar.gz
go-tangerine-f1a5cf9128170b85428259c8b0ecfaed5b3e17d1.tar.bz2
go-tangerine-f1a5cf9128170b85428259c8b0ecfaed5b3e17d1.tar.lz
go-tangerine-f1a5cf9128170b85428259c8b0ecfaed5b3e17d1.tar.xz
go-tangerine-f1a5cf9128170b85428259c8b0ecfaed5b3e17d1.tar.zst
go-tangerine-f1a5cf9128170b85428259c8b0ecfaed5b3e17d1.zip
Merge branch 'develop' into cpp
Conflicts: dist/ethereum.js.map dist/ethereum.min.js
Diffstat (limited to 'lib/const.js')
-rw-r--r--lib/const.js23
1 files changed, 23 insertions, 0 deletions
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 }
};