diff options
author | Fabio Berger <me@fabioberger.com> | 2019-01-11 21:20:56 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2019-01-11 21:20:56 +0800 |
commit | 6fb2721294f5d25edb76cb6f9b34eb3e07212950 (patch) | |
tree | b57934cb16ce473de45725fd4449083b4c00225c /packages/dev-tools-pages/ts/pages/compiler.tsx | |
parent | ebb10e66045613b7265e4d23e40b63ecf49af4fe (diff) | |
download | dexon-sol-tools-6fb2721294f5d25edb76cb6f9b34eb3e07212950.tar dexon-sol-tools-6fb2721294f5d25edb76cb6f9b34eb3e07212950.tar.gz dexon-sol-tools-6fb2721294f5d25edb76cb6f9b34eb3e07212950.tar.bz2 dexon-sol-tools-6fb2721294f5d25edb76cb6f9b34eb3e07212950.tar.lz dexon-sol-tools-6fb2721294f5d25edb76cb6f9b34eb3e07212950.tar.xz dexon-sol-tools-6fb2721294f5d25edb76cb6f9b34eb3e07212950.tar.zst dexon-sol-tools-6fb2721294f5d25edb76cb6f9b34eb3e07212950.zip |
Fix copy and links
Diffstat (limited to 'packages/dev-tools-pages/ts/pages/compiler.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/pages/compiler.tsx | 20 |
1 files changed, 14 insertions, 6 deletions
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<{}> = () => ( <Base context={context}> <Hero> @@ -74,15 +77,19 @@ const Compiler: React.StatelessComponent<{}> = () => ( <Content dark={true}> <ContentBlock main={true} title="Artifacts"> <Lead> - 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{' '} + <a href={SOLIDITY_INPUT_FORMAT_DOCS} target="_blank"> + Solidity standard JSON input format + </a>{' '} + to specify what to include in the generated artifacts. This way, you have complete flexibility on + what is included. </Lead> </ContentBlock> <ContentBlock title="Production"> <p> - 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. </p> <Breakout> <Code isLight={true} language="json" isEtc={true}> @@ -109,8 +116,9 @@ const Compiler: React.StatelessComponent<{}> = () => ( </ContentBlock> <ContentBlock title="Development"> <p> - 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. </p> <Breakout> <Code isLight={true} language="json" isEtc={true}> |