aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/constants.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-05 08:10:56 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-05 08:10:56 +0800
commita138ee7e836a2ddb7a2ae317fe56dddaca5703ff (patch)
tree17193e4600609bc7b5d48dec815fc5be790146e0 /packages/instant/src/constants.ts
parent1cc043d7a9d2c7bbdfc6b692ca30b8af8d6b8606 (diff)
downloaddexon-sol-tools-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar
dexon-sol-tools-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar.gz
dexon-sol-tools-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar.bz2
dexon-sol-tools-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar.lz
dexon-sol-tools-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar.xz
dexon-sol-tools-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.tar.zst
dexon-sol-tools-a138ee7e836a2ddb7a2ae317fe56dddaca5703ff.zip
Add GIT_SHA and NPM_VERSION constants, report git and npm version in error
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r--packages/instant/src/constants.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts
index bf434e33e..295208b2d 100644
--- a/packages/instant/src/constants.ts
+++ b/packages/instant/src/constants.ts
@@ -13,11 +13,14 @@ export const WEB_3_WRAPPER_TRANSACTION_FAILED_ERROR_MSG_PREFIX = 'Transaction fa
export const GWEI_IN_WEI = new BigNumber(1000000000);
export const ONE_SECOND_MS = 1000;
export const ONE_MINUTE_MS = ONE_SECOND_MS * 60;
+export const GIT_SHA = process.env.GIT_SHA;
+export const NPM_PACKAGE_VERSION = process.env.NPM_PACKAGE_VERSION;
export const ACCOUNT_UPDATE_INTERVAL_TIME_MS = ONE_SECOND_MS * 5;
export const BUY_QUOTE_UPDATE_INTERVAL_TIME_MS = ONE_SECOND_MS * 15;
export const DEFAULT_GAS_PRICE = GWEI_IN_WEI.mul(6);
export const DEFAULT_ESTIMATED_TRANSACTION_TIME_MS = ONE_MINUTE_MS * 2;
-export const MAGIC_TRIGGER_ERROR_INPUT = '0`';
+export const MAGIC_TRIGGER_ERROR_INPUT = '0€';
+export const MAGIC_TRIGGER_ERROR_MESSAGE = 'Triggered error';
export const ETH_GAS_STATION_API_BASE_URL = 'https://ethgasstation.info';
export const HEAP_ANALYTICS_ID = process.env.HEAP_ANALYTICS_ID;
export const HEAP_ENABLED = process.env.HEAP_ENABLED;