diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-05 04:52:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-05 04:52:34 +0800 |
commit | 7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94 (patch) | |
tree | b3e541941c0a6b8f8c9772034bd77cece339b355 /cmd/mist/assets/ext/ethereum.js/lib/const.js | |
parent | 3f03197daebace568a61bf69c06c97e30080a749 (diff) | |
parent | 859a1999cb204d2c6fcb08d6569c738c5af5cd86 (diff) | |
download | go-tangerine-7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94.tar go-tangerine-7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94.tar.gz go-tangerine-7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94.tar.bz2 go-tangerine-7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94.tar.lz go-tangerine-7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94.tar.xz go-tangerine-7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94.tar.zst go-tangerine-7c278d6ac20e7f34816f02d6db7f8aeb5d8ebc94.zip |
updated tests
Diffstat (limited to 'cmd/mist/assets/ext/ethereum.js/lib/const.js')
-rw-r--r-- | cmd/mist/assets/ext/ethereum.js/lib/const.js | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/cmd/mist/assets/ext/ethereum.js/lib/const.js b/cmd/mist/assets/ext/ethereum.js/lib/const.js new file mode 100644 index 000000000..8a17b794d --- /dev/null +++ b/cmd/mist/assets/ext/ethereum.js/lib/const.js @@ -0,0 +1,56 @@ +/* + This file is part of ethereum.js. + + ethereum.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + ethereum.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with ethereum.js. If not, see <http://www.gnu.org/licenses/>. +*/ +/** @file const.js + * @authors: + * Marek Kotewicz <marek@ethdev.com> + * @date 2015 + */ + +/// required to define ETH_BIGNUMBER_ROUNDING_MODE +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 } +}; + |