Commit Graph

2082 Commits

Author SHA1 Message Date
Chris Ward
df31461c5b Start to clarify revert vs require usage
Start rewrite of require vs revert clarification

Small clarification
2019-06-17 16:47:13 +01:00
chriseth
b90d57a9fc
[DOC] Fix signextend example. 2019-06-17 13:39:20 +02:00
chriseth
d774e30686
Merge pull request #6950 from ethereum/fix-typo-spell-check-uaah
Fix typo to make CI happy
2019-06-17 13:29:50 +02:00
Mathias Baumann
ee937ea7b3 Fix typo to make CI happy 2019-06-17 13:14:00 +02:00
Chris Chinchilla
d671761d46
Merge pull request #6945 from ethereum/ChrisChinchilla-patch-1
[DOCS] Fix typo in miscellaneous doc
2019-06-17 12:00:46 +01:00
Chris Chinchilla
aa6e29a7a0
Update docs/miscellaneous.rst
Co-Authored-By: Mathias L. Baumann <Marenz@users.noreply.github.com>
2019-06-17 11:14:11 +01:00
chriseth
9c5dc63ed2
Merge pull request #6567 from ethereum/docs-intro-subcurrency
[DOCS] Update subcurrency example in introductory section
2019-06-17 10:44:33 +02:00
Chris Chinchilla
0465803b2c
Fix typo in miscellaneous doc
As reported by @Marenz
2019-06-16 09:33:40 +01:00
Fabio Bonfiglio
2a2f068542
Correct assigned value in natspec example 2019-06-13 13:12:32 +02:00
Daniel Kirchner
502d22a26e
Merge pull request #6914 from ethereum/boost170
Use imported targets for boost and update emscripten boost to 1.70.
2019-06-12 15:26:24 +02:00
Daniel Kirchner
9d2f1b0eac Add note about boost 1.70+ and solidity<=0.5.9 to the docs. 2019-06-07 10:42:18 +02:00
Vignesh Karthikeyan
f7a8b6da65
Merge pull request #1 from ethereum/develop
Update
2019-06-07 00:52:12 +05:30
Vignesh Karthikeyan
1d9b6b5bbf
Added Content and Edited for readability
The example for signextend requested by @bshastry was added. Codeblock was moved before warning for readability.
2019-06-07 00:47:08 +05:30
Daniel Kirchner
a445df63cf Require cmake 3.5. 2019-06-06 18:49:25 +02:00
Chris Chinchilla
fc35c139ca
Merge pull request #6874 from ethereum/docs-style-fix-style
[DOCS] Bring code examples for Style Guide inline with style guide
2019-06-06 11:23:15 +02:00
Chris Chinchilla
f99d78117e Bring code examples for Style Guide inline with style guide
Add back accidentally removed public
2019-06-05 15:25:18 +02:00
Vignesh Karthikeyan
1978e1d3ff
Added example for signextend
Added sample assembly code for signextend
2019-06-05 02:02:40 +05:30
Vignesh Karthikeyan
3d40152102 Brought warning to high priority
Update functions.rst

Update for warning over note priority

Updated units-and-global-variables.rst

Updated file for warning over note priority

Updated control-structures.rst

Updated priority of warning over note

Updated assembly.rst

Updated priority of warning over code

Updated introduction-to-smart-contracts.rst

Updated priority of warning over note

Update installing-solidity.rst

Corrected control-structures.rst

Corrected white space error

Corrected whitespace

Corrected whitespace introduction to smart contract
2019-06-04 14:46:26 +05:30
Chris Chinchilla
69e4e69e69 Bring value types code examples inline with style guide 2019-05-30 14:37:17 +02:00
William Entriken
f1be1b2758
Learn how to spell section 2019-05-29 21:02:03 -04:00
chriseth
cce79ea67b
Merge pull request #6867 from ethereum/docs-style-fix-usingfor
[DOCS] Bring Using For code examples inline with style guide
2019-05-29 20:08:19 +02:00
chriseth
00f24555d9
Merge pull request #6868 from ethereum/docs-style-fix-control-struct
[DOCS] Update code examples in control structures doc to match style guide
2019-05-29 20:07:09 +02:00
Chris Ward
66fe9731fc Bring code examples in line with style guide 2019-05-29 16:26:23 +02:00
Chris Ward
bebc479fb5 Update code examples to match style guide
Remove visibility
2019-05-29 16:21:18 +02:00
Chris Ward
b015d2cd40 Bring code examples inline with style guide
Remove visibility
2019-05-29 16:17:34 +02:00
chriseth
61d2919968 Prepare version 0.5.9. 2019-05-28 15:38:48 +02:00
Chris Ward
931b93146f Update subcurrency example in introductory section
Further updates

Add line breaks

Changes from review

Updates from review

Changes from review

Fix label
2019-05-28 08:54:54 +02:00
asymmetric
d67a4cfdb7
Fix link to OpenZeppelin ECDSA library
Previous link was a 404.
2019-05-27 22:29:35 +00:00
chriseth
9d00f21cfb
Merge pull request #6841 from ethereum/style-fixes-inheritance
[DOCS] Bring inheritance doc inline with style guide
2019-05-27 19:11:32 +02:00
chriseth
dc0fac5dfd
Merge pull request #6825 from ethereum/style-fixes-assembly
[DOCS] Bring code examples inline with style guide in assembly doc
2019-05-27 17:28:12 +02:00
Chris Ward
e81e71e879 Make code examples conform to style guide 2019-05-27 16:59:54 +02:00
Chris Ward
3b64a4b955 Bring inheritance doc inline with style guide 2019-05-27 14:23:53 +02:00
Chris Ward
062c67c4a8 Bring code examples inline with style guide in assembly doc
Fix assembly block indentation

Change variable name
2019-05-27 14:17:44 +02:00
chriseth
be653bec44
Merge pull request #6741 from ethereum/docs-docker
[DOCS] Add draft of Docker instructions
2019-05-27 14:11:43 +02:00
chriseth
899858784c
Merge pull request #6834 from sifmelcara/fix-types-doc-ref-delete
Fix reference links in types.rst
2019-05-27 14:09:42 +02:00
chriseth
6240a6e906
Merge pull request #6824 from ethereum/style-fixes-abi-spec
[DOCS] Confirm ABI spec code examples to style guide
2019-05-27 14:06:55 +02:00
mingchuan
27fd533f3d
Fix reference links in types.rst 2019-05-27 18:54:00 +08:00
mingchuan
bf8af89bba
Fix assignment of struct containing array of mappings 2019-05-25 01:33:49 +08:00
Chris Ward
bfda0de3ff Add draft of Docker instructions
Changes from review

Syntax fix

Change path

Add mention of JSON too

Change path

Restructure

Update docs/installing-solidity.rst

Co-Authored-By: chriseth <chris@ethereum.org>

Update docs/installing-solidity.rst

Co-Authored-By: chriseth <chris@ethereum.org>

Fixes from review
2019-05-23 15:54:29 +02:00
Chris Ward
2c705145ae Make Creating contracts code examples match style guide 2019-05-23 14:54:11 +02:00
Chris Ward
5305dd6eac Confirm to style guide 2019-05-23 14:46:59 +02:00
chriseth
0e864467de [Docs] Better explain the modular approach. 2019-05-23 14:02:44 +02:00
Guy
2734eae6fb Added a reference to an extended list of security recommendations. 2019-05-22 10:56:25 +03:00
Guy Lando
ee0cb71959
Clarified inheritance documentation. 2019-05-20 18:30:47 +03:00
chriseth
20f3ab5961 Advantages of anynomous events. 2019-05-20 15:06:53 +02:00
chriseth
f2ae30f620 Fix handling of structs of dynamic size as constructor parameters. 2019-05-16 17:10:54 +02:00
Isaac Ibiapina
074580f743
Update visibility-and-getters.rst
edit private variable description to be more declarative
2019-05-15 18:56:21 -04:00
chriseth
c8dd412014
Merge pull request #6736 from ethereum/docs-test-nightly
[DOCS] Mention nightlies with remix
2019-05-14 14:58:28 +02:00
Vedant Agarwala
ab47864852 Fix as per issue comments 2019-05-13 20:47:55 +08:00
Chris Ward
680ce3f5f0 Expand contraction 2019-05-13 14:22:58 +02:00
Chris Ward
df31096690 Mention nightlies with remix 2019-05-13 12:47:34 +02:00
Daniel Kirchner
aa4ee3a155 Document version field in CBOR metadata. 2019-05-08 22:21:50 +02:00
Mathias Baumann
d8873f52df Update to aleth v1.6.0 2019-05-07 16:03:53 +02:00
Chris Ward
895d6e58e7 Polish introductory section of introduction to smart contracts
Update docs/introduction-to-smart-contracts.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>

Clarify pragma version
2019-05-01 14:51:32 +10:00
asymmetric
95c4f8f2bd Conversion: remove confusing int8 type
The topic of converting a smaller type into a larger one is orthogonal to the one discussed in the example (namely, conversion between signed and unsigned integers).

Therefore, we change the `int8` to an `int` to make the example clearer.
2019-04-30 17:14:00 +02:00
chriseth
23a071dfd4 Set release date, sort changelog entries and update bug list. 2019-04-30 14:14:44 +02:00
chriseth
ecb8dfb26c Forward-port 0.4.26 release notes and update bug list. 2019-04-30 11:31:12 +02:00
chriseth
39d153b7a1
Merge pull request #6570 from ethereum/fixMetaSettings
Move metadata settings into its own object.
2019-04-29 15:09:27 +02:00
chriseth
eef3f95724 Move metadata settings into its own object. 2019-04-29 14:19:27 +02:00
chriseth
e6926504ef Add link to "source-verify". 2019-04-29 09:15:05 +02:00
chriseth
f9ec1231b6 Support period as part of identifiers for Yul and Inline Assembly. 2019-04-25 16:48:16 +02:00
chriseth
309d3e65cf
Merge pull request #6585 from ethereum/fixInvalidFunctionTags
Fix invalid function tags
2019-04-25 16:30:37 +02:00
chriseth
5b991c1e59 Fix use of uninitialized functions stored in storage. 2019-04-25 15:40:48 +02:00
chriseth
b6bb3ae482
Merge pull request #6555 from sifmelcara/break-for-loop
[Yul] Disallow function definitions inside for loop init blocks
2019-04-25 11:20:44 +02:00
chriseth
f26cdea6ca Disallow Yul function definitions inside for loop init blocks. 2019-04-25 10:32:00 +02:00
Chris Ward
2322b4f504 Add Turkish translation 2019-04-23 13:15:39 +10:00
Chris Chinchilla
13518820c7
Merge pull request #6454 from ethereum/docs-high-s-clar
[DOCS] Explain high s value
2019-04-23 13:04:55 +10:00
William Entriken
916e151f46 Add NatSpec documentation. 2019-04-19 00:54:08 +02:00
rocky
b06b996461 soltest.sh, EthOptions.cmake, and CODING_STYLE.md tweaks
solidity.sh:
  * introduce SOLIDITY_BUILD_DIR env var for soltest.sh,
  * add --help output

EthOptions.cmake: more complete configuration information

CODING_STYLE.md: note existence of .editorconfig
contributing.rst: note that tests are Boost C++ unit tests
2019-04-18 07:53:28 -04:00
chriseth
fb302c1c4f
Merge pull request #6473 from ethereum/libeventhash-6435
Fix external ABI type name for contracts
2019-04-18 12:53:34 +02:00
chriseth
14872b598d
Update units-and-global-variables.rst 2019-04-18 12:30:56 +02:00
Mathias Baumann
0f4b53e9a0 Fix external ABI type name for contracts 2019-04-18 11:39:48 +02:00
chriseth
922ab0d72d
Merge pull request #6534 from ethereum/reuseLiteralContent-6472
Re-produce the original 'useLiteralContent' setting
2019-04-17 15:41:55 +02:00
Mathias Baumann
b24dd42e47 Re-produce the original 'useLiteralContent' setting 2019-04-17 14:54:51 +02:00
chriseth
6e83eba9a3 Mention other keys in metadata mapping. 2019-04-17 10:40:26 +02:00
chriseth
e4e786a9bb
Merge pull request #6513 from ethereum/aleth_update
Update aleth to version 1.6.0-rc.1.
2019-04-15 13:35:43 +02:00
Chris Chinchilla
6c68904f39
Merge pull request #6274 from ethereum/docs-yul-note
[DOCS] Update note to add further details on current status of YUL
2019-04-15 08:48:14 +10:00
Daniel Kirchner
4e6ffc744d Update aleth to version 1.6.0-rc.1. 2019-04-12 16:11:41 +02:00
Leonardo
9624a69d37
Merge pull request #6426 from ethereum/docs-eth-rounding
[DOCS] Add rounding warning
2019-04-12 15:40:26 +02:00
Constantin Kloecker
7a240fbd97
fixed code block display
Added missing line
2019-04-10 11:17:40 +02:00
Chris Ward
4a6d6cb14f Tidy formatting 2019-04-08 11:46:32 +02:00
Chris Ward
26d6305a43 Combine warnings 2019-04-05 14:43:57 +02:00
rocky
0538c321c9 More information on solctest.
* Note useful options
* Link to boost reference.
2019-04-04 15:05:13 -04:00
Chris Ward
d49e181a90 Update note to add further details on current status of YUL
Clarify further

Changes from reviews

Grammar polish

Changes from review

Update docs/yul.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>

Update docs/yul.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>

Polish suggestions

Update docs/yul.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>
2019-04-04 16:59:38 +02:00
Chris Ward
dfeb1dec9e Add rounding warning
Move warning
2019-04-04 16:41:07 +02:00
Chris Ward
0b44389fc6 Add 0.5.x warning 2019-04-03 17:37:35 +02:00
Chris Ward
f8b126e153 Explain high s value 2019-04-03 12:22:03 +02:00
Leonardo Alt
c7c15a41cc Fiz Z3 version in docs 2019-04-01 21:22:38 +02:00
chriseth
af09cb3af2
Layout cleanup. 2019-03-28 23:43:27 +01:00
Ilya Ostrovskiy
7860918de5
use correct global remapping syntax in documentation 2019-03-28 15:01:41 -04:00
Leonardo Alt
9a612d1250 [SMTChecker] Docs 2019-03-27 16:31:51 +01:00
Alex Beregszaszi
2a2e741d39 Add blog post links to the bug list 2019-03-26 15:03:48 +00:00
chriseth
79d7fb14e7 Preparation for 0.5.7 release. 2019-03-26 10:50:58 +01:00
chriseth
d079cdbfaa
Merge pull request #6362 from ethereum/fixABIEncoderV2StorageRead
Fix abi encoder v2 storage read
2019-03-26 10:23:08 +01:00
chriseth
3c9af6716e Bug list entry. 2019-03-25 18:28:44 +01:00
Chris Ward
e8605ea831 Add Homebrew version mention 2019-03-25 17:22:30 +01:00
Chris Ward
b7af8baed5 Add universal mutator to resources 2019-03-25 14:04:01 +01:00
chriseth
e3fe365488
Merge pull request #6312 from ethereum/wip/docs-populus-storage-costs
[DOCS] Add details to storage costs
2019-03-25 11:49:07 +01:00
Chris Ward
7f8957c9ea Change to US spelling 2019-03-25 10:59:49 +01:00
Constantin Kloecker
5936f52aa5
fixed code block display 2019-03-23 11:38:59 +01:00
Alex Beregszaszi
3bc2c35cc4 Support compiling Yul within StandardCompiler 2019-03-22 01:35:16 +00:00
Bhargava Shastry
f7b5a27581 Fixes bug in byte optimization rule and adds tests. 2019-03-21 14:29:06 +01:00
Chris Ward
7075f158e3 Instead update heading 2019-03-18 16:30:23 +01:00
Chris Ward
855555e941 Add mention of initialisation cost of storage 2019-03-18 14:37:47 +01:00
Chris Ward
61be78b42a Adding populus gotcha covering storage costs 2019-03-18 14:20:47 +01:00
chriseth
6d1ed93247 Use stack optimizations. 2019-03-14 15:34:23 +01:00
chriseth
4503180e8e
Merge pull request #6170 from ethereum/docs-table-format
[DOCS] Long table cell formatting fix
2019-03-14 15:25:29 +01:00
Taariq Levack
cacd271ba6
Update introduction-to-smart-contracts.rst
Looks like this was missed in the bump
2019-03-14 14:51:55 +02:00
chriseth
ba9b3d5e95
Merge pull request #6264 from System-Glitch/docs-resources
[DOCS] Add Solidity IDE to resources page
2019-03-13 19:56:46 +01:00
SystemGlitch
d05cb3662c Add Solidity IDE to resources page 2019-03-13 19:18:01 +01:00
Chris Ward
e76bcf25ea Change conditional operator precedence 2019-03-13 16:29:14 +01:00
Chris Ward
c3543b470f Change hyphen to non-breaking hyphen 2019-03-13 14:37:23 +01:00
Christian Parpart
b29bb6ccb1
Merge pull request #6258 from ethereum/prepare056
Prepare 0.5.6 release.
2019-03-13 13:12:17 +01:00
chriseth
9c9053dd49
Merge pull request #6257 from ethereum/docs-testing
Add mention of docs testing to contribution docs
2019-03-13 12:25:34 +01:00
chriseth
addb3603c7 Prepare 0.5.6 release. 2019-03-13 12:05:26 +01:00
chriseth
58a3f3cf68
Merge pull request #6248 from ethereum/shiftopt-fix-overflow
Fixes u256 overflow in logical shift optimization rule and adds tests.
2019-03-13 12:02:33 +01:00
Chris Ward
920f752fec Add mention of docs testing to contribution docs 2019-03-13 12:01:52 +01:00
chriseth
9ccd5dfec3
Merge pull request #6083 from ethereum/docs-shift-clarify
[DOCS] Clarify shift operator
2019-03-13 11:32:58 +01:00
Bhargava Shastry
515fa872c8 Fixes u256 overflow in logical shift optimization rule and adds tests. 2019-03-13 11:19:20 +01:00
Chris Ward
f0f9f5e2f3 Clarify shift operator
Further clarify shift operators

Return infinity

Changes from review

Update docs/types/value-types.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>

Formatting fix
2019-03-13 10:57:17 +01:00
Chris Ward
f11f6ab9d9 Add mention of high s
Mention OpenZeppelin library

Change wording
2019-03-08 15:11:27 +01:00
chriseth
9193fcb99f
Merge pull request #6130 from ethereum/docs-pragma
[DOCS] Updates to Pragma docs
2019-03-06 12:07:17 +01:00
Chris Ward
6dcc368183 Small polish to prgama docs
Fix issues

Reset non-typo
2019-03-06 12:01:50 +01:00
Chris Ward
3f5b5fdb8e Begin polish to import docs
Continue import polish
2019-03-06 11:06:46 +01:00
chriseth
8d401ba936 Update pragmas. 2019-03-05 18:10:09 +01:00
Erik Kundt
d778471ef0 Updates Changelog for 0.5.5 release. 2019-03-05 15:11:37 +01:00
chriseth
9a949c1bda Set default EVM version to Petersburg. 2019-03-04 14:53:00 +01:00
Alex Beregszaszi
cc4598a5ed
Merge pull request #6144 from ethereum/petersburg
Support petersburg in evmVersion
2019-03-04 13:50:50 +00:00
chriseth
0045950924 State that yul optimizer is experimental. 2019-03-04 14:27:52 +01:00
Alex Beregszaszi
ecd246aeb6 Support petersburg in evmVersion 2019-03-04 14:10:41 +01:00
Alex Beregszaszi
efe63d4264 Add type(C).name to the documentation 2019-03-04 12:59:14 +01:00
chriseth
4d10f4b4cf Process and validate standard-json optimizer settings. 2019-03-04 11:40:28 +01:00
Alex Beregszaszi
cf5c13f9c7 Introduce global optimiser settings. 2019-03-04 11:40:28 +01:00
chriseth
f9d1c283b7
Merge pull request #5919 from ethereum/docs-ecrecover
[DOCS] Clarify usage of ecrecover
2019-02-27 17:33:37 +01:00
Chris Ward
0c1affe43e Begin documentation style guide
Add pragma to documentation style guide

Fix formatting and add link

Move docs style guide

Changes from review
2019-02-27 11:48:51 +01:00
chriseth
760e6cc321 More explanation about the "runs" parameter. 2019-02-26 13:14:41 +01:00
Chris Ward
7d7237e935 Start draft update to ecrecover
First draft of ecrecover clarifications

Further clarify

Correct byte error

Correct resurfaced typo

Small changes from further review
2019-02-25 11:59:52 +01:00
David Terry
3a452181a0 correct documentation around contract type conversion 2019-02-19 18:26:09 +01:00
Chris Ward
ef9854d31f Add BSD dependencies
Add BSD instructions

Remove z3 dependency from OpenBSD

Add disclaimer

Generalise build instructions

Update docs/installing-solidity.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>

Add extra version details
2019-02-18 17:34:17 -07:00
Chris Ward
31bc2ec3d5 Add basic modular contract example
Add link to libraries

Line breaks

Change send method to move

Update docs/examples/modular.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>

Update docs/examples/modular.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>
2019-02-15 13:55:38 -07:00
Daniel Kirchner
794e519af8 Update aleth version to 1.5.2. 2019-02-14 12:45:06 +01:00
chriseth
3c075fd740
Merge pull request #5977 from ethereum/enhance_docs
Enhance documentation about usage of `value` and `gas`
2019-02-13 16:03:17 +01:00
Mathias Baumann
8d3f0a16a3 Enhance documentation about usage of value and gas
People might look for information in the members section of the function types chapter.
2019-02-13 11:56:17 +01:00
chriseth
e5e3abf9a1 Fix link 2019-02-13 11:10:25 +01:00
Erik Kundt
1990d7034a Updates Changelog and buglist for the 0.5.4 release. 2019-02-12 12:21:46 +01:00
Chris Ward
b105497d1b Remove Frequently Asked Questions 2019-02-08 08:47:22 +00:00
Alex Beregszaszi
d44bf59192
Merge pull request #5862 from ethereum/packedEncoding
[DOC] Specify packed encoding and add warning.
2019-02-05 16:06:50 +00:00
Chris Ward
779b9986ee Clarify that public prefix only applies to state variables and explain strings. 2019-02-05 16:58:57 +01:00
chriseth
4eb48dd6b7 Specify packed encoding and add warning. 2019-02-05 16:49:24 +01:00
Daniel Kirchner
c4604c0e35 Fix ast in output selection in standard json doc. 2019-02-05 16:33:55 +01:00