aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ethereum-types/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ethereum-types/src/index.ts')
-rw-r--r--packages/ethereum-types/src/index.ts14
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/ethereum-types/src/index.ts b/packages/ethereum-types/src/index.ts
index a92dbdd1b..7e8b9de3e 100644
--- a/packages/ethereum-types/src/index.ts
+++ b/packages/ethereum-types/src/index.ts
@@ -366,11 +366,7 @@ export type ErrorType =
export type ErrorSeverity = 'error' | 'warning';
export interface SolcError {
- sourceLocation?: {
- file: string;
- start: number;
- end: number;
- };
+ sourceLocation?: SourceLocation;
type: ErrorType;
component: 'general' | 'ewasm';
severity: ErrorSeverity;
@@ -378,6 +374,12 @@ export interface SolcError {
formattedMessage?: string;
}
+export interface SourceLocation {
+ file: string;
+ start: number;
+ end: number;
+}
+
export interface EvmOutput {
bytecode: EvmBytecodeOutput;
deployedBytecode: EvmBytecodeOutput;
@@ -495,4 +497,4 @@ export interface CompilerOptions {
compilerSettings?: CompilerSettings;
contracts?: string[] | '*';
solcVersion?: string;
-}
+} // tslint:disable-line:max-file-line-count