From 4689309857126669563dc9ea0e912ec9cec74157 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 14 Jan 2019 14:43:03 +0100 Subject: Add SourceCodes and Sources types --- packages/sol-tracing-utils/src/types.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'packages/sol-tracing-utils') diff --git a/packages/sol-tracing-utils/src/types.ts b/packages/sol-tracing-utils/src/types.ts index fa10a93d6..2b305c16e 100644 --- a/packages/sol-tracing-utils/src/types.ts +++ b/packages/sol-tracing-utils/src/types.ts @@ -76,13 +76,20 @@ export interface Coverage { }; } +export interface SourceCodes { + [sourceId: number]: string; +} +export interface Sources { + [sourceId: number]: string; +} + export interface ContractData { bytecode: string; sourceMap: string; runtimeBytecode: string; sourceMapRuntime: string; - sourceCodes: { [sourceId: number]: string }; - sources: { [sourceId: number]: string }; + sourceCodes: SourceCodes; + sources: Sources; } // Part of the trace executed within the same context -- cgit v1.2.3