aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/constants.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-25 02:34:19 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-25 04:48:51 +0800
commit5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5 (patch)
treeef1c35d332d62d394465ca37616b4939e9af789c /src/utils/constants.ts
parenta2d579b201b9e06ede1bff0aaf7536266c145963 (diff)
downloaddexon-sol-tools-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar
dexon-sol-tools-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar.gz
dexon-sol-tools-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar.bz2
dexon-sol-tools-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar.lz
dexon-sol-tools-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar.xz
dexon-sol-tools-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar.zst
dexon-sol-tools-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.zip
Refactor UNLIMITED_ALLOWANCE_IN_BASE_UNITS to constants
Diffstat (limited to 'src/utils/constants.ts')
-rw-r--r--src/utils/constants.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index d56ee16c5..1b11d7055 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -1,7 +1,10 @@
+import * as BigNumber from 'bignumber.js';
+
export const constants = {
NULL_ADDRESS: '0x0000000000000000000000000000000000000000',
TESTRPC_NETWORK_ID: 50,
MAX_DIGITS_IN_UNSIGNED_256_INT: 78,
INVALID_JUMP_PATTERN: 'invalid JUMP at',
OUT_OF_GAS_PATTERN: 'out of gas',
+ UNLIMITED_ALLOWANCE_IN_BASE_UNITS: new BigNumber(2).pow(256).minus(1),
};