From e68c5d5517ce82c771a68fb1852dceb9f05150ea Mon Sep 17 00:00:00 2001
From: Fabio Berger
mkdir compiler.json
+ mkdir compiler.json
Example of settings:
+
{`{
"contractsDir": "contracts",
"artifactsDir": "artifacts",
diff --git a/packages/dev-tools-pages/ts/pages/coverage.tsx b/packages/dev-tools-pages/ts/pages/coverage.tsx
index 68b55f2a2..9d5a7d674 100644
--- a/packages/dev-tools-pages/ts/pages/coverage.tsx
+++ b/packages/dev-tools-pages/ts/pages/coverage.tsx
@@ -94,7 +94,7 @@ const Coverage: React.StatelessComponent<{}> = () => (
- npm install @0x/sol-coverage --save
+ npm install @0x/sol-coverage --save
@@ -120,7 +120,7 @@ const Coverage: React.StatelessComponent<{}> = () => (
-
+
{`import { SolCompilerArtifactAdapter } from '@0x/sol-trace';
// Both artifactsDir and contractsDir are optional and will be fetched from compiler.json if not passed in
@@ -128,7 +128,7 @@ const artifactAdapter = new SolCompilerArtifactAdapter(artifactsDir, contractsDi
-
+
{`import { TruffleArtifactAdapter } from '@0x/sol-trace';
const projectRoot = '.';
@@ -137,7 +137,7 @@ const artifactAdapter = new TruffleArtifactAdapter(projectRoot, solcVersion);`}
-
+
{`import { AbstractArtifactAdapter } from '@0x/sol-trace';
class YourCustomArtifactsAdapter extends AbstractArtifactAdapter {...};
@@ -151,7 +151,7 @@ const artifactAdapter = new YourCustomArtifactsAdapter(...);`}
-
+
{`import { ProviderEngine, RpcSubprovider } from 'web3-provider-engine';
import { CoverageSubprovider } from '@0x/sol-coverage';
diff --git a/packages/dev-tools-pages/ts/pages/profiler.tsx b/packages/dev-tools-pages/ts/pages/profiler.tsx
index 1292d726c..6ee30eab9 100644
--- a/packages/dev-tools-pages/ts/pages/profiler.tsx
+++ b/packages/dev-tools-pages/ts/pages/profiler.tsx
@@ -91,7 +91,7 @@ const Profiler: React.StatelessComponent<{}> = () => (
- npm install @0x/sol-trace --save
+ npm install @0x/sol-trace --save
@@ -117,7 +117,7 @@ const Profiler: React.StatelessComponent<{}> = () => (
-
+
{`import { SolCompilerArtifactAdapter } from '@0x/sol-trace';
// Both artifactsDir and contractsDir are optional and will be fetched from compiler.json if not passed in
@@ -125,7 +125,7 @@ const artifactAdapter = new SolCompilerArtifactAdapter(artifactsDir, contractsDi
-
+
{`import { TruffleArtifactAdapter } from '@0x/sol-trace';
const projectRoot = '.';
@@ -134,7 +134,7 @@ const artifactAdapter = new TruffleArtifactAdapter(projectRoot, solcVersion);`}
-
+
{`import { AbstractArtifactAdapter } from '@0x/sol-trace';
class YourCustomArtifactsAdapter extends AbstractArtifactAdapter {...};
@@ -148,7 +148,7 @@ const artifactAdapter = new YourCustomArtifactsAdapter(...);`}
-
+
{`import { ProviderEngine, RpcSubprovider } from 'web3-provider-engine';
import { ProfilerSubprovider } from '@0x/sol-profiler';
diff --git a/packages/dev-tools-pages/ts/pages/trace.tsx b/packages/dev-tools-pages/ts/pages/trace.tsx
index aee779ac8..cc1cd4b0a 100644
--- a/packages/dev-tools-pages/ts/pages/trace.tsx
+++ b/packages/dev-tools-pages/ts/pages/trace.tsx
@@ -61,7 +61,7 @@ const Trace: React.StatelessComponent<{}> = () => (
- npm install @0x/sol-trace --save
+ npm install @0x/sol-trace --save
@@ -87,7 +87,7 @@ const Trace: React.StatelessComponent<{}> = () => (
-
+
{`import { SolCompilerArtifactAdapter } from '@0x/sol-trace';
// Both artifactsDir and contractsDir are optional and will be fetched from compiler.json if not passed in
@@ -95,7 +95,7 @@ const artifactAdapter = new SolCompilerArtifactAdapter(artifactsDir, contractsDi
-
+
{`import { TruffleArtifactAdapter } from '@0x/sol-trace';
const projectRoot = '.';
@@ -104,7 +104,7 @@ const artifactAdapter = new TruffleArtifactAdapter(projectRoot, solcVersion);`}
-
+
{`import { AbstractArtifactAdapter } from '@0x/sol-trace';
class YourCustomArtifactsAdapter extends AbstractArtifactAdapter {...};
@@ -118,7 +118,7 @@ const artifactAdapter = new YourCustomArtifactsAdapter(...);`}
-
+
{`import { ProviderEngine, RpcSubprovider } from 'web3-provider-engine';
import { RevertTraceSubprovider } from '@0x/sol-trace';
--
cgit v1.2.3