aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-tracing-utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-14 21:43:03 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-14 21:43:14 +0800
commit4689309857126669563dc9ea0e912ec9cec74157 (patch)
treee0c1d9ff0d57922413d550303ffc70ecf840488e /packages/sol-tracing-utils
parent02543fdd0c393dfd36a8734ba804babd1584d3d7 (diff)
downloaddexon-sol-tools-4689309857126669563dc9ea0e912ec9cec74157.tar
dexon-sol-tools-4689309857126669563dc9ea0e912ec9cec74157.tar.gz
dexon-sol-tools-4689309857126669563dc9ea0e912ec9cec74157.tar.bz2
dexon-sol-tools-4689309857126669563dc9ea0e912ec9cec74157.tar.lz
dexon-sol-tools-4689309857126669563dc9ea0e912ec9cec74157.tar.xz
dexon-sol-tools-4689309857126669563dc9ea0e912ec9cec74157.tar.zst
dexon-sol-tools-4689309857126669563dc9ea0e912ec9cec74157.zip
Add SourceCodes and Sources types
Diffstat (limited to 'packages/sol-tracing-utils')
-rw-r--r--packages/sol-tracing-utils/src/types.ts11
1 files changed, 9 insertions, 2 deletions
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