aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/constants.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-08-25 04:49:11 +0800
committerGitHub <noreply@github.com>2017-08-25 04:49:11 +0800
commit1e590ce4baf04abedfcff528644fb9594a99e69f (patch)
tree5a42dfeb34cce4dc67ca1bf4a7d484deda64bb1a /src/utils/constants.ts
parent3e1c436fa6196b1371b1468cbddd88a9e56bfc2c (diff)
parentbd67cf0f9f9bf321848d2dd929fcd474e236cee7 (diff)
downloaddexon-sol-tools-1e590ce4baf04abedfcff528644fb9594a99e69f.tar.gz
dexon-sol-tools-1e590ce4baf04abedfcff528644fb9594a99e69f.tar.zst
dexon-sol-tools-1e590ce4baf04abedfcff528644fb9594a99e69f.zip
Merge pull request #137 from 0xProject/unlimited-allowance
Add setUnlimitedProxyAllowanceAsync and setUnlimitedAllowanceAsync
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),
};