diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-18 06:07:05 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-02-21 05:19:12 +0800 |
commit | 7fb66bf71a0a86c693a0411c6e03d81982b9054e (patch) | |
tree | 524e67ee16acf9bd993f439e9850128a40311596 /packages/deployer/src/utils | |
parent | 097fc477a2e06b8004d98e77dc17d98ab26ab3f1 (diff) | |
download | dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.gz dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.bz2 dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.lz dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.xz dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.tar.zst dexon-sol-tools-7fb66bf71a0a86c693a0411c6e03d81982b9054e.zip |
Check dependencies when determining if should be recompiled
Diffstat (limited to 'packages/deployer/src/utils')
-rw-r--r-- | packages/deployer/src/utils/constants.ts | 1 | ||||
-rw-r--r-- | packages/deployer/src/utils/types.ts | 15 |
2 files changed, 14 insertions, 2 deletions
diff --git a/packages/deployer/src/utils/constants.ts b/packages/deployer/src/utils/constants.ts index 8871a470d..57f30dec8 100644 --- a/packages/deployer/src/utils/constants.ts +++ b/packages/deployer/src/utils/constants.ts @@ -1,3 +1,4 @@ export const constants = { NULL_BYTES: '0x', + SOLIDITY_FILE_EXTENSION: '.sol', }; diff --git a/packages/deployer/src/utils/types.ts b/packages/deployer/src/utils/types.ts index 46481828e..0a70c4f3b 100644 --- a/packages/deployer/src/utils/types.ts +++ b/packages/deployer/src/utils/types.ts @@ -15,10 +15,10 @@ export interface ContractArtifact { } export interface ContractNetworks { - [key: number]: ContractData; + [key: number]: ContractNetworkData; } -export interface ContractData { +export interface ContractNetworkData { solc_version: string; optimizer_enabled: number; keccak256: string; @@ -64,6 +64,17 @@ export interface ContractSources { [key: string]: string; } +export interface ContractSourceData { + [key: string]: ContractSpecificSourceData; +} + +export interface ContractSpecificSourceData { + dependencies: string[]; + solc_version: string; + keccak256: string; + shouldCompile?: boolean; +} + export interface ImportContents { contents: string; } |