Fix SimpleContractArtifact type

This commit is contained in:
Fabio Berger 2018-11-20 23:43:05 +00:00
parent 21f39079c8
commit 895281989c

View File

@ -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;
}