From 6fb2721294f5d25edb76cb6f9b34eb3e07212950 Mon Sep 17 00:00:00 2001
From: Fabio Berger
Date: Fri, 11 Jan 2019 14:20:56 +0100
Subject: Fix copy and links
---
packages/dev-tools-pages/ts/pages/compiler.tsx | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
(limited to 'packages/dev-tools-pages/ts/pages/compiler.tsx')
diff --git a/packages/dev-tools-pages/ts/pages/compiler.tsx b/packages/dev-tools-pages/ts/pages/compiler.tsx
index 93a667562..0468fd84f 100644
--- a/packages/dev-tools-pages/ts/pages/compiler.tsx
+++ b/packages/dev-tools-pages/ts/pages/compiler.tsx
@@ -24,6 +24,9 @@ const Animation = Loadable({
},
});
+const SOLIDITY_INPUT_FORMAT_DOCS =
+ 'https://solidity.readthedocs.io/en/v0.4.24/using-the-compiler.html#compiler-input-and-output-json-description';
+
const Compiler: React.StatelessComponent<{}> = () => (
@@ -74,15 +77,19 @@ const Compiler: React.StatelessComponent<{}> = () => (
- Sol compiler uses solidity standard JSON output format for the artifacts. This way, you can define
- which parts of the artifact you need.
+ Sol compiler uses{' '}
+
+ Solidity standard JSON input format
+ {' '}
+ to specify what to include in the generated artifacts. This way, you have complete flexibility on
+ what is included.
- Sol compiler uses solidity standard JSON output format for the artifacts. This way, you can define
- which parts of the artifact you need.
+ In production, you want to optimize for a small bundle size, so your compiler.json config would
+ instruct sol-compiler to only output the contract ABI.
@@ -109,8 +116,9 @@ const Compiler: React.StatelessComponent<{}> = () => (
- Sometimes you need to use some debuggers or other dev tools and you’ll need more info in the
- artifact.
+ In development, you need to use profiler and other dev tools that require more information from the
+ artifact. To do this, you can specify that the artifact also contain the bytecode, deployed bytecode
+ and source maps.
--
cgit v1.2.3
From 737941e8c79376814b25b36737384c176a26fbff Mon Sep 17 00:00:00 2001
From: Fabio Berger
Date: Thu, 17 Jan 2019 13:29:47 +0100
Subject: Add call-to-action docs button at end of instructions again
---
packages/dev-tools-pages/ts/pages/compiler.tsx | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'packages/dev-tools-pages/ts/pages/compiler.tsx')
diff --git a/packages/dev-tools-pages/ts/pages/compiler.tsx b/packages/dev-tools-pages/ts/pages/compiler.tsx
index 0468fd84f..27bbec831 100644
--- a/packages/dev-tools-pages/ts/pages/compiler.tsx
+++ b/packages/dev-tools-pages/ts/pages/compiler.tsx
@@ -6,6 +6,7 @@ import { context } from 'ts/context/compiler';
import { Base } from 'ts/components/base';
import { Breakout } from 'ts/components/breakout';
+import { CallToAction } from 'ts/components/call_to_action';
import { Code } from 'ts/components/code';
import { Compiler as CompilerComponent } from 'ts/components/compiler';
import { Content } from 'ts/components/content';
@@ -166,6 +167,9 @@ const Compiler: React.StatelessComponent<{}> = () => (
+
+
+
);
--
cgit v1.2.3
From e68c5d5517ce82c771a68fb1852dceb9f05150ea Mon Sep 17 00:00:00 2001
From: Fabio Berger
Date: Thu, 17 Jan 2019 16:24:03 +0100
Subject: Enable "copy" button on all code snippets that should be copy-able
---
packages/dev-tools-pages/ts/pages/compiler.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'packages/dev-tools-pages/ts/pages/compiler.tsx')
diff --git a/packages/dev-tools-pages/ts/pages/compiler.tsx b/packages/dev-tools-pages/ts/pages/compiler.tsx
index 27bbec831..407646add 100644
--- a/packages/dev-tools-pages/ts/pages/compiler.tsx
+++ b/packages/dev-tools-pages/ts/pages/compiler.tsx
@@ -44,7 +44,7 @@ const Compiler: React.StatelessComponent<{}> = () => (
- cd /your_project_dir && sol-compiler
+ cd /your_project_dir && sol-compiler
@@ -53,11 +53,11 @@ const Compiler: React.StatelessComponent<{}> = () => (
Configure via a compiler.json file.
- mkdir compiler.json
+ mkdir compiler.json
Example of settings:
-
+
{`{
"contractsDir": "contracts",
"artifactsDir": "artifacts",
--
cgit v1.2.3