aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-21 07:43:05 +0800
committerFabio Berger <me@fabioberger.com>2018-11-21 07:43:05 +0800
commit895281989c4c896d4494e829ae3a2403305016b6 (patch)
treeb8c74bc04d62a4cb9801af4d93935f4629fe5557
parent21f39079c891d3e5b4c60edc51311eb36789d18e (diff)
downloaddexon-sol-tools-895281989c4c896d4494e829ae3a2403305016b6.tar
dexon-sol-tools-895281989c4c896d4494e829ae3a2403305016b6.tar.gz
dexon-sol-tools-895281989c4c896d4494e829ae3a2403305016b6.tar.bz2
dexon-sol-tools-895281989c4c896d4494e829ae3a2403305016b6.tar.lz
dexon-sol-tools-895281989c4c896d4494e829ae3a2403305016b6.tar.xz
dexon-sol-tools-895281989c4c896d4494e829ae3a2403305016b6.tar.zst
dexon-sol-tools-895281989c4c896d4494e829ae3a2403305016b6.zip
Fix `SimpleContractArtifact` type
-rw-r--r--packages/types/src/index.ts18
1 files changed, 16 insertions, 2 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts
index fd40f361a..9372bfafa 100644
--- a/packages/types/src/index.ts
+++ b/packages/types/src/index.ts
@@ -1,7 +1,7 @@
// tslint:disable:max-file-line-count
import { BigNumber } from 'bignumber.js';
-import { ContractAbi, ContractNetworks, StandardContractOutput } from 'ethereum-types';
+import { ContractAbi, ContractNetworks, DevdocOutput } from 'ethereum-types';
// HACK: Rather then extending from OrderWithoutExchangeAddress
// we don't, because our docs don't expand inherited types, and it's unnecessarily
@@ -630,6 +630,20 @@ export interface Stats {
export interface SimpleContractArtifact {
schemaVersion: string;
contractName: string;
- compilerOutput: StandardContractOutput;
+ compilerOutput: SimpleStandardContractOutput;
networks: ContractNetworks;
}
+
+export interface SimpleStandardContractOutput {
+ abi: ContractAbi;
+ evm: SimpleEvmOutput;
+ devdoc?: DevdocOutput;
+}
+
+export interface SimpleEvmOutput {
+ bytecode: SimpleEvmBytecodeOutput;
+}
+
+export interface SimpleEvmBytecodeOutput {
+ object: string;
+}