aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-24 00:06:38 +0800
committerFabio Berger <me@fabioberger.com>2018-08-24 00:06:38 +0800
commitf9b222c12728ed004688521314932a2a0062f5bd (patch)
tree5f6bee113a9477efeabaa232dc43c66c82c50c67
parent28f077b16f5fc5f08f95bb2ad00724e6ea89dd00 (diff)
downloaddexon-sol-tools-f9b222c12728ed004688521314932a2a0062f5bd.tar
dexon-sol-tools-f9b222c12728ed004688521314932a2a0062f5bd.tar.gz
dexon-sol-tools-f9b222c12728ed004688521314932a2a0062f5bd.tar.bz2
dexon-sol-tools-f9b222c12728ed004688521314932a2a0062f5bd.tar.lz
dexon-sol-tools-f9b222c12728ed004688521314932a2a0062f5bd.tar.xz
dexon-sol-tools-f9b222c12728ed004688521314932a2a0062f5bd.tar.zst
dexon-sol-tools-f9b222c12728ed004688521314932a2a0062f5bd.zip
Remove duplicate type and remove nested interface
-rw-r--r--packages/ethereum-types/src/index.ts30
1 files changed, 5 insertions, 25 deletions
diff --git a/packages/ethereum-types/src/index.ts b/packages/ethereum-types/src/index.ts
index d21f69b79..2b878ca53 100644
--- a/packages/ethereum-types/src/index.ts
+++ b/packages/ethereum-types/src/index.ts
@@ -312,28 +312,6 @@ export type OutputField =
| 'ewasm.wast'
| 'ewasm.wasm';
-export interface CompilerSettings {
- remappings?: string[];
- optimizer?: {
- enabled: boolean;
- runs?: number;
- };
- evmVersion?: 'homestead' | 'tangerineWhistle' | 'spuriousDragon' | 'byzantium' | 'constantinople';
- metadata?: {
- useLiteralContent: true;
- };
- libraries?: {
- [fileName: string]: {
- [libName: string]: string;
- };
- };
- outputSelection: {
- [fileName: string]: {
- [contractName: string]: OutputField[];
- };
- };
-}
-
export interface ContractNetworks {
[networkId: number]: ContractNetworkData;
}
@@ -411,9 +389,7 @@ export interface CompilerSettings {
runs?: number;
};
evmVersion?: 'homestead' | 'tangerineWhistle' | 'spuriousDragon' | 'byzantium' | 'constantinople';
- metadata?: {
- useLiteralContent: true;
- };
+ metadata?: CompilerSettingsMetadata;
libraries?: {
[fileName: string]: {
[libName: string]: string;
@@ -426,6 +402,10 @@ export interface CompilerSettings {
};
}
+export interface CompilerSettingsMetadata {
+ useLiteralContent: true;
+}
+
export interface Source {
id: number;
}