diff options
Diffstat (limited to 'packages/deployer/src/utils/types.ts')
-rw-r--r-- | packages/deployer/src/utils/types.ts | 16 |
1 files changed, 14 insertions, 2 deletions
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; } |