diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-21 07:21:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 07:21:29 +0800 |
commit | be19316dfb45600b2ce264a90dde7ace460fd0ac (patch) | |
tree | 279762a8fd99743e2060769147abd4531252ac4d /packages/deployer/src/utils | |
parent | 097fc477a2e06b8004d98e77dc17d98ab26ab3f1 (diff) | |
parent | 67f28645018244a0aeda6404b7fd4ea33c67110f (diff) | |
download | dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.gz dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.bz2 dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.lz dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.xz dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.zst dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.zip |
Merge pull request #408 from 0xProject/fix/deployer/checkDependencies
Check dependencies when compiling contracts
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 | 16 |
2 files changed, 15 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..a3f722976 100644 --- a/packages/deployer/src/utils/types.ts +++ b/packages/deployer/src/utils/types.ts @@ -15,13 +15,14 @@ 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; + source_tree_hash: string; abi: Web3.ContractAbi; unlinked_binary: string; address?: string; @@ -64,6 +65,17 @@ export interface ContractSources { [key: string]: string; } +export interface ContractSourceData { + [key: string]: ContractSpecificSourceData; +} + +export interface ContractSpecificSourceData { + dependencies: string[]; + solcVersion: string; + sourceHash: Buffer; + sourceTreeHashIfExists?: Buffer; +} + export interface ImportContents { contents: string; } |