aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/utils/constants.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-12-15 04:55:50 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-12-19 22:41:48 +0800
commitc5632490f25efd409472ca4727ee22b5bf0c763a (patch)
tree3abe13758c11d75fdf11c232118f0130920176f6 /packages/sol-compiler/src/utils/constants.ts
parent89ea7b2a2d4e3af995ee08988b64a617e7b89aee (diff)
downloaddexon-sol-tools-c5632490f25efd409472ca4727ee22b5bf0c763a.tar
dexon-sol-tools-c5632490f25efd409472ca4727ee22b5bf0c763a.tar.gz
dexon-sol-tools-c5632490f25efd409472ca4727ee22b5bf0c763a.tar.bz2
dexon-sol-tools-c5632490f25efd409472ca4727ee22b5bf0c763a.tar.lz
dexon-sol-tools-c5632490f25efd409472ca4727ee22b5bf0c763a.tar.xz
dexon-sol-tools-c5632490f25efd409472ca4727ee22b5bf0c763a.tar.zst
dexon-sol-tools-c5632490f25efd409472ca4727ee22b5bf0c763a.zip
Refactor most of the sol-compiler methods into helper functions in utils and make resolver pluggable into them
Diffstat (limited to 'packages/sol-compiler/src/utils/constants.ts')
-rw-r--r--packages/sol-compiler/src/utils/constants.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/sol-compiler/src/utils/constants.ts b/packages/sol-compiler/src/utils/constants.ts
index df2ddb3b2..433897f8a 100644
--- a/packages/sol-compiler/src/utils/constants.ts
+++ b/packages/sol-compiler/src/utils/constants.ts
@@ -1,5 +1,8 @@
+import * as path from 'path';
+
export const constants = {
SOLIDITY_FILE_EXTENSION: '.sol',
BASE_COMPILER_URL: 'https://ethereum.github.io/solc-bin/bin/',
LATEST_ARTIFACT_VERSION: '2.0.0',
+ SOLC_BIN_DIR: path.join(__dirname, '..', '..', 'solc_bin'),
};