aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-05 11:05:26 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 10:37:27 +0800
commit13299158d1e22d1af1cd36434fc403a74743ecb1 (patch)
tree9b35435c6f8641d2dc3d7bfd530c7c4f040a1f51 /packages/deployer/src/utils
parenta6571b09d2087ffb9a4860c0db3d7344321fe2c3 (diff)
downloaddexon-sol-tools-13299158d1e22d1af1cd36434fc403a74743ecb1.tar
dexon-sol-tools-13299158d1e22d1af1cd36434fc403a74743ecb1.tar.gz
dexon-sol-tools-13299158d1e22d1af1cd36434fc403a74743ecb1.tar.bz2
dexon-sol-tools-13299158d1e22d1af1cd36434fc403a74743ecb1.tar.lz
dexon-sol-tools-13299158d1e22d1af1cd36434fc403a74743ecb1.tar.xz
dexon-sol-tools-13299158d1e22d1af1cd36434fc403a74743ecb1.tar.zst
dexon-sol-tools-13299158d1e22d1af1cd36434fc403a74743ecb1.zip
Add sol-cover implementation
Diffstat (limited to 'packages/deployer/src/utils')
-rw-r--r--packages/deployer/src/utils/constants.ts1
-rw-r--r--packages/deployer/src/utils/types.ts23
2 files changed, 16 insertions, 8 deletions
diff --git a/packages/deployer/src/utils/constants.ts b/packages/deployer/src/utils/constants.ts
index 57f30dec8..85923448f 100644
--- a/packages/deployer/src/utils/constants.ts
+++ b/packages/deployer/src/utils/constants.ts
@@ -1,4 +1,3 @@
export const constants = {
- NULL_BYTES: '0x',
SOLIDITY_FILE_EXTENSION: '.sol',
};
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',