Commit Graph

215 Commits

Author SHA1 Message Date
Chris Ward
cefc6c433e Update non-existant pragma 0.4.99 to 0.5.0
Use correct syntax for pragma

Change pragma syntax

One more change to pragma syntax
2019-01-07 14:20:10 +01:00
Chris Ward
12daec3535 Move function related content to contracts doc 2018-11-26 19:46:31 +01:00
Chris Ward
58181e8df9 Move FAQ point to input and output parameters and polish surrounding text
Update docs/control-structures.rst

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

Remove line with no further details.

Fix tabs

Remove FAQ item
2018-11-26 11:04:36 +01:00
Chris Ward
eef6697355 Change terminology used for input output parameters
Change from review

Changes from review

Changes fro review

Changes from review
2018-11-14 14:46:37 +01:00
Chris Ward
6319a3fd06 Move control structure related FAQ points
Updates from reviews

clarify returning structs, and move returning arrays and strings from separate section

Further clarifications

Updates from review

Final updates
2018-11-12 14:34:09 +01:00
Chris Ward
0d4bdfbbb0 Move FAQ item regarding contract to contract calls and resulting transaction 2018-10-23 13:30:58 +02:00
Jeffrey Anthony
ab940f201a
minor spelling correction
whas => was
2018-10-16 15:13:58 -04:00
chriseth
0712da6421 Fix version pragma in documentation. 2018-10-09 03:15:53 +02:00
Alex Beregszaszi
e3e9ce53d7 Set 0.5.x specific example code to be compilable with >0.4.99 <0.6.0 (e.g. 0.5.x only) 2018-09-25 19:04:34 +01:00
Alex Beregszaszi
3ca00c73f9 Update version pragma in all documentation examples 2018-09-25 19:03:25 +01:00
chriseth
516267a9a4
Merge pull request #5039 from ethereum/controlStructures2
[DOCS] Update control structures (2).
2018-09-24 16:16:04 +02:00
chriseth
cecc4f6643 [DOCS] Update control structures (2). 2018-09-24 16:15:45 +02:00
chriseth
917cf4ad8e [DOCS] Control structures 1. 2018-09-24 14:03:37 +02:00
chriseth
fc5cad9b7f [DOCS] Update units and globals. 2018-09-20 15:10:14 +02:00
Daniel Kirchner
12aaca1645 Add payable and non-payable state mutability to AddressType. 2018-09-13 15:15:49 +02:00
Chris Ward
7fc496b6ab Remove unneeded paragraph 2018-09-05 15:48:19 +02:00
Chris Ward
1475cde288 Update Infofeed example code and explanation 2018-08-22 14:28:43 +02:00
Daniel Kirchner
db48925907 Add some more documentation. 2018-08-15 17:06:42 +02:00
chriseth
8a06000a30 Update documentation. 2018-08-14 15:50:46 +02:00
chriseth
6cf299bec6 Update documentation examples. 2018-08-14 15:50:46 +02:00
Erik Kundt
b5ecfbe5bc Enforces visibility specifier and updates docs. 2018-07-17 17:44:51 +02:00
chriseth
31e56f9f99
Merge pull request #4438 from ethereum/address_members_external_tests_docs
Address members used by contracts: update external tests and docs
2018-07-13 01:28:29 +02:00
Daniel Kirchner
6f383e1626 Update documentation. 2018-07-12 20:33:51 +02:00
Leonardo Alt
3ebfcae829 Update external tests and docs 2018-07-12 12:53:49 +02:00
Cryptomental
eb92d5f760 docs: Fix typos.
Used codespell and manual fixes.

Refs: #4442
2018-07-10 22:57:59 +02:00
Daniel Kirchner
951b745bd9 Update docs. 2018-07-10 13:27:48 +02:00
Erik Kundt
2031e8e0c1 Adds review suggestions. 2018-07-02 16:46:54 +02:00
Erik Kundt
e16e37f507 Updates docs to new constructor syntax. 2018-07-02 16:25:54 +02:00
Leonardo Alt
8862b3092b C99 scoping rules by default 2018-06-20 12:53:38 +02:00
chriseth
6c8f78fb8f Update documentation for multi variable declaration statement. 2018-05-16 03:52:24 +02:00
chriseth
741ada79f9 Update documentation. 2018-05-08 15:32:36 +01:00
Lefteris Karapetsas
8a7224683b
Docs: Update solidity version for revert with reason 2018-04-15 23:12:28 +02:00
chriseth
966367305a Remove dead code and clarify throw. 2018-04-12 20:13:16 +02:00
chriseth
b25598126e Update documentation and minor changes. 2018-04-12 13:09:38 +02:00
chriseth
344a388d44 Update documentation. 2018-04-12 13:09:38 +02:00
chriseth
3da16b3e8a Documentation for revert with reason string. 2018-04-12 13:09:37 +02:00
Kevin Florenzano
d662622b25 Variable assignment wording change 2018-04-05 17:12:48 +09:00
kevinflo
884ea39d85 Removed documentation reference to the now-depricated var tuple variable assignment syntax 2018-04-02 13:57:19 +09:00
chriseth
6391a36a6c Documentation about new scoping rules. 2018-02-27 12:41:32 +01:00
Alexandre Bezroutchko
3804f29a8d fix a typo 2018-02-14 09:49:06 +01:00
Kevin Wu
ddad6a3f80
add clarity to destructuring assignments 2017-12-18 09:55:13 -08:00
Jim McDonald
93cf4dee66 Fixes for failing tests 2017-12-13 07:55:46 +00:00
Jim McDonald
6e521d59b0 Fix Solidity warnings 2017-12-12 18:47:30 +00:00
Ezra Epstein
744dea60a4 had "names" when "parameters" was meant 2017-11-22 04:08:35 +00:00
Alex Beregszaszi
23379e1061 Ensure each code snippet in the docs can be extracted for tests 2017-11-22 04:08:35 +00:00
Aaron Colaço
2b88eeb370 Make createAndEndowD payable in contract creation example 2017-09-12 10:07:54 +01:00
Alex Beregszaszi
5a5d21d0c8 Add note about throw being deprecated 2017-08-28 12:04:56 +01:00
Alex Beregszaszi
d1b13c0624 Add warning that low-level call/callcode/delegatecall don't check for existence 2017-08-01 20:51:52 +01:00
Yoichi Hirai
927f01c6d9
Fix grammar 2017-07-26 17:02:06 +02:00
maurelian
9c676e796c Clarify require and assert usage 2017-07-25 20:02:27 -04:00
Alex Beregszaszi
cffe52d6d9 Enable more examples in the documentation for testing 2017-07-19 00:05:05 +01:00
Juraj Bednar
5e0f5ee627 Keep the terminology about the exceptions the same
Don't call exception revert-style when the rest of the document uses require-style
2017-07-18 14:25:17 +02:00
Alex Beregszaszi
41e5b2c3c2 Fix bugs in example contracts 2017-07-13 21:47:29 +02:00
Alex Beregszaszi
b2fcd59ee6 Add version pragma to docs examples 2017-07-13 17:10:37 +02:00
Alex Beregszaszi
784b72bb72 Clarify exception documentation 2017-06-23 19:29:11 +02:00
chriseth
64067975e4 Review suggestions. 2017-06-23 19:29:11 +02:00
chriseth
7f05ef8aca Clarify exceptions. 2017-06-23 19:29:11 +02:00
Alex Beregszaszi
17443f458a Explain that .value() is only available if contract function is marked payable 2017-03-16 12:37:18 +00:00
Alex Beregszaszi
6ece0d6c2f Document the .value() and .gas() modifiers 2017-03-16 12:37:18 +00:00
Alex Beregszaszi
42f2623cd3 Fix list indentation 2017-03-16 00:43:30 +00:00
chriseth
47cd8964b8 Require and Assert. 2017-03-14 14:21:33 +01:00
Yoichi Hirai
cfbbd89daf Merge pull request #1702 from ethereum/assertError
Change effect of assert to invalid opcode.
2017-03-03 18:25:50 +01:00
Alex Beregszaszi
a36e2ce0cb Document transfer() 2017-02-24 00:18:18 +00:00
chriseth
4b1e8111cc Remove assert for now. 2017-02-23 19:43:40 +01:00
chriseth
811bb770c5 Change effect of assert to invalid opcode. 2017-02-16 15:54:17 +01:00
Alex Beregszaszi
28a7b1e019 Document revert() 2017-02-10 22:42:33 +00:00
Alex Beregszaszi
39cd2214f2 Document user provided exceptions 2017-02-10 13:31:40 +00:00
Alex Beregszaszi
ace583d0a1 Rename accessor to getter 2017-02-03 00:17:21 +00:00
chriseth
a39adc44d4 Integrate missed changes. 2017-01-31 23:31:25 +01:00
Alex Beregszaszi
bfa3b4ca78 Mention invalid in docs 2017-01-27 13:26:40 +00:00
chriseth
bff8fc23e6 Changelog and review suggestions. 2017-01-27 10:18:53 +01:00
chriseth
7660736aa2 Document special case of zero-initialized internal function. 2017-01-26 16:40:24 +01:00
Valentin Wüstholz
5b7cc018f0 Address feedback from code review. 2017-01-26 16:39:07 +01:00
chriseth
7e2e1eb94f Merge pull request #1597 from sarbogast/patch-2
Fix the list of reasons for throwing automatically
2017-01-23 09:32:37 +01:00
Sebastien Arbogast
7ecc8e412d Fix the list of reasons for throwing automatically
Used aut-enumerated list syntax
2017-01-20 22:53:45 +01:00
Sebastien Arbogast
0897e7bcec Fixed typo on contract instance
Fixed the name of the variable referencing a contract instance
2017-01-20 21:52:36 +01:00
Michael Coblenz
c163a219de Corrected explanation per discussion. 2016-12-22 10:35:58 -05:00
Michael Coblenz
4b3f147e65 Clarified support for recursive creation. 2016-12-20 13:48:01 -05:00
Michael Coblenz
31564d94b1 Fixed misleading typo
"now possible" should instead read "not possible."
2016-12-19 15:08:18 -05:00
chriseth
cc11739928 Documentation. 2016-12-12 11:12:12 +01:00
Yoichi Hirai
fed50403ff
docs: cleaning references to C; smoothing parameter syntax description 2016-11-25 10:43:05 +01:00
Yoichi Hirai
0599a14954
docs: cross-reference returning multiple values 2016-11-25 10:43:05 +01:00
Yoichi Hirai
936bade46f
doc: add a section about input parameters and output parameters 2016-11-25 10:43:05 +01:00
RJ
cc07a918e3 Typo 2016-11-18 12:34:43 -06:00
Alex Beregszaszi
ae8403ed08 Rename ErrorTag to invalidJumpLabel in inline assembly 2016-11-15 10:30:33 +00:00
Alex Beregszaszi
702ab4cb4f Document inline assembly ErrorTag 2016-11-15 10:30:33 +00:00
Yoichi Hirai
1af3c4f754
docs: document the new overflow exception during conversion into enum 2016-11-11 17:48:03 +01:00
Rhett Aultman
4524ad0870 Add support for do/while loops
This commit adds support for a standard do <statement> while <expr>;
form of statement.  While loops were already being supported; supporting
a do/while loop mostly involves reusing code from while loops but putting
the conditional checking last.
2016-11-10 07:07:25 -08:00
Alex Beregszaszi
76c856397a Minor documentation fixes 2016-10-19 14:02:50 +01:00
Yoichi Hirai
550c92cb2f
Small points on the instruction table
Fixes #1205

`sload` was not marked with a `-`, contrary to the description of #1205
2016-10-13 19:30:43 +02:00
Yoichi Hirai
8b5f0d5997
Accommodate further reviews 2016-10-13 12:44:27 +02:00
Yoichi Hirai
d32160a5b8
Change prenouns from on to at 2016-10-13 12:16:14 +02:00
Yoichi Hirai
ff0f44352e
Accommodating reviews
https://github.com/ethereum/solidity/pull/1167#pullrequestreview-4031601
2016-10-13 12:12:40 +02:00
Yoichi Hirai
f492380688 Mention payable in the description when Solidity throws 2016-10-12 10:59:22 +02:00
Yoichi Hirai
246d91438f Codify bytes 2016-10-12 10:46:55 +02:00
Yoichi Hirai
32c3bd8e78 Change phrasing around too small index 2016-10-12 09:39:43 +02:00
Yoichi Hirai
d6394c46a1 Merge two similar sections; the original survives 2016-10-12 09:35:05 +02:00
chriseth
057db59844 Review suggestions. 2016-09-07 12:20:35 +02:00
chriseth
4f5a95d569 Update documentation to version 0.4.0. 2016-09-06 19:11:41 +02:00
chriseth
453490cb61 Merge pull request #1003 from winsvega/docs
add "pragma solidity ^0.4.0;" to code examples
2016-09-06 15:59:49 +02:00