aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/utils/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/deployer/src/utils/types.ts')
-rw-r--r--packages/deployer/src/utils/types.ts23
1 files changed, 16 insertions, 7 deletions
diff --git a/packages/deployer/src/utils/types.ts b/packages/deployer/src/utils/types.ts
index a3f722976..ca2f8af0c 100644
--- a/packages/deployer/src/utils/types.ts
+++ b/packages/deployer/src/utils/types.ts
@@ -24,10 +24,14 @@ export interface ContractNetworkData {
keccak256: string;
source_tree_hash: string;
abi: Web3.ContractAbi;
- unlinked_binary: string;
+ bytecode: string;
+ runtime_bytecode: string;
address?: string;
constructor_args?: string;
updated_at: number;
+ source_map: string;
+ source_map_runtime: string;
+ sources: string[];
}
export interface SolcErrors {
@@ -54,13 +58,22 @@ export interface CompilerOptions {
specifiedContracts: Set<string>;
}
-export interface DeployerOptions {
+export interface BaseDeployerOptions {
artifactsDir: string;
- jsonrpcPort: number;
networkId: number;
defaults: Partial<TxData>;
}
+export interface ProviderDeployerOptions extends BaseDeployerOptions {
+ web3Provider: Web3.Provider;
+}
+
+export interface PortDeployerOptions extends BaseDeployerOptions {
+ jsonrpcPort: number;
+}
+
+export type DeployerOptions = PortDeployerOptions | ProviderDeployerOptions;
+
export interface ContractSources {
[key: string]: string;
}
@@ -76,10 +89,6 @@ export interface ContractSpecificSourceData {
sourceTreeHashIfExists?: Buffer;
}
-export interface ImportContents {
- contents: string;
-}
-
// TODO: Consolidate with 0x.js definitions once types are moved into a separate package.
export enum ZeroExError {
ContractDoesNotExist = 'CONTRACT_DOES_NOT_EXIST',