diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 21:45:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-15 21:45:02 +0800 |
commit | 18084588ea9fa724d6e32c9a49c79d49f189ba7c (patch) | |
tree | 7944152430a9687e7e63db4011bacaf2fa3aebe3 /packages/sol-tracing-utils/src/types.ts | |
parent | 16a2cf7be68605def2824de4f5c22f0154c2e6ad (diff) | |
parent | 64d99dc07cc82c7cc2917871596b46985f1d709f (diff) | |
download | dexon-sol-tools-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar dexon-sol-tools-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.gz dexon-sol-tools-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.bz2 dexon-sol-tools-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.lz dexon-sol-tools-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.xz dexon-sol-tools-18084588ea9fa724d6e32c9a49c79d49f189ba7c.tar.zst dexon-sol-tools-18084588ea9fa724d6e32c9a49c79d49f189ba7c.zip |
Merge pull request #1498 from 0xProject/fix/sol-cov
Sol tracing fixes
Diffstat (limited to 'packages/sol-tracing-utils/src/types.ts')
-rw-r--r-- | packages/sol-tracing-utils/src/types.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/sol-tracing-utils/src/types.ts b/packages/sol-tracing-utils/src/types.ts index 54ade0400..27568ae03 100644 --- a/packages/sol-tracing-utils/src/types.ts +++ b/packages/sol-tracing-utils/src/types.ts @@ -16,7 +16,7 @@ export interface SingleFileSourceRange { end: LineColumn; } -export interface LocationByOffset { +export interface OffsetToLocation { [offset: number]: LineColumn; } @@ -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: string[]; - sources: string[]; + sourceCodes: SourceCodes; + sources: Sources; } // Part of the trace executed within the same context |