Commit Graph

1917 Commits

Author SHA1 Message Date
Chris Ward
f4130d7910 Further clarify in-memory arrays 2019-01-20 19:11:24 +02:00
Evan Saulpaugh
bda0bc8f08
improve packed encoding test vector
packed byte length of ints now unambiguously shown to be type-dependent, not value dependent e.g. uint16(0x03) is 0x0003 not 0x03
2019-01-18 02:30:15 -06:00
chriseth
2ec997e697
Merge pull request #5775 from ethereum/codeAccess
Provide access to code of contract types.
2019-01-18 00:16:06 +01:00
Tomek Kopczynski
369a368a3f Remove unnecessary word 2019-01-17 21:59:31 +01:00
chriseth
01ad4bffe7 Documentation. 2019-01-17 20:36:48 +01:00
Chris Chinchilla
72c2100164
Merge pull request #5800 from ethereum/wip/faq-call
[DOCS] Add call warning into main docs and remove FAQ item
2019-01-17 11:31:46 +02:00
Erik Kundt
5279f9f03b
Update docs/units-and-global-variables.rst
Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>
2019-01-17 10:19:16 +02:00
Chris Chinchilla
6841d78896
Merge pull request #5801 from ethereum/idio-contract
[DOCS] Mention that there is no Cron in Ethereum
2019-01-17 10:15:48 +02:00
Chris Ward
131e23100c Mention that there is no Cron in Ethereum 2019-01-16 17:39:29 +02:00
Chris Ward
eab9e58e7e Add call warning into main docs and remove FAQ item 2019-01-16 17:11:23 +02:00
Chris Ward
816e23c7f6 Remove FAQ Item 2019-01-16 14:57:31 +02:00
Chris Ward
b58a6a4a04 Remove FAQ item 2019-01-16 14:50:50 +02:00
Daniel Kirchner
4c8f8e9491 Disallow mismatching types in switch cases and detect duplicates by value for number literals. 2019-01-15 16:32:21 +01:00
Chris Ward
0010371a93 Split micropayments example into seperate file 2019-01-14 23:55:17 +01:00
chriseth
af12697dda
Merge pull request #5785 from ethereum/docs-split-safe-remote
[DOCS] Split safe remote example into new file
2019-01-14 23:51:55 +01:00
chriseth
7911efb24c
Merge pull request #5784 from ethereum/docs-split-blind-auction
[DOCS] Split blind auction example into seperate doc
2019-01-14 23:50:43 +01:00
Chris Ward
18cceba81f Split functions docs 2019-01-14 16:34:35 +01:00
chriseth
2d4951edf7
Merge pull request #5790 from ethereum/faq-explicit-conversion
[DOCS] Remove explicit conversion FAQ item, covered elsewhere
2019-01-14 14:13:07 +01:00
chriseth
185d221909
Merge pull request #5788 from ethereum/remove-rnd-faq
[DOCS] Remove FAQ item on random number generation
2019-01-14 14:12:35 +01:00
chriseth
d5d90850b4
Merge pull request #5789 from ethereum/waq-multid-array
[DOCS] Remove Multi-dimensional array FAQ
2019-01-14 14:12:10 +01:00
Chris Ward
f4ee72494f Remove explicit conversion FAQ item, covered elsewhere 2019-01-14 14:29:07 +02:00
Chris Ward
b49f6781ef Remove Multi-dimensional array FAQ 2019-01-14 14:25:03 +02:00
Chris Ward
dbe88755af Remove random FAQ item 2019-01-14 14:14:39 +02:00
Chris Chinchilla
dea9999f47
Merge pull request #5770 from ethereum/docs-split-mapping-types
[DOCS] Split mapping types into new file
2019-01-14 11:55:48 +02:00
Chris Ward
620cbdc800 Split conversion sections into new doc 2019-01-14 11:00:53 +02:00
Chris Ward
29088c4f48 Split mapping types into new file 2019-01-14 10:58:10 +02:00
Chris Ward
ea47e382ba Split safe remote example into new file 2019-01-14 10:45:08 +02:00
Chris Ward
7bc1f1a4a3 Split blind auction example into seperate doc 2019-01-14 10:36:47 +02:00
Chris Ward
06ca903b37 Split voting example into seperate file 2019-01-14 09:41:10 +02:00
William Entriken
52fd20e98c Use latest version in code snippets. 2019-01-10 11:34:58 +01:00
Chris Chinchilla
a414e13b7a
Merge pull request #5771 from ethereum/docs-split-operators
[DOCS] Split operators involving LValues into new doc
2019-01-10 10:44:33 +01:00
Chris Chinchilla
31033fb473
Merge pull request #5769 from ethereum/docs-split-reference-types
[DOCS] Split Reference types doc into new file
2019-01-10 10:41:43 +01:00
Chris Ward
4cc102fa61 Split operators involving LValues into new doc 2019-01-09 12:37:20 +01:00
Chris Ward
47399a6e2b Split Reference types doc into new file 2019-01-09 12:15:58 +01:00
Chris Ward
874174bd47 Split Value Types docs 2019-01-09 12:06:37 +01:00
chriseth
8da3aa14de
Merge pull request #5744 from ethereum/docs-split-func-mod
[DOCS] Split Function modifiers doc into smaller file
2019-01-08 00:07:17 +01:00
chriseth
28c25efc80
Merge pull request #5756 from ethereum/docs-split-libraries
[DOCS] Split libraries into new doc
2019-01-08 00:06:06 +01:00
chriseth
44de865da1
Merge pull request #5753 from ethereum/docs-split-interfaces
[DOCS] Split interfaces into new file
2019-01-08 00:05:24 +01:00
chriseth
cfa1198892
Merge pull request #5755 from ethereum/docs-split-using-for
[DOCS] Split using for into new file
2019-01-08 00:05:00 +01:00
Chris Ward
cc99d63665 Split interfaces into new file 2019-01-08 00:02:32 +01:00
chriseth
cb4e5936fd
Merge pull request #5749 from ethereum/docs-split-abstract
[DOCS] Split Abstract Contracts docs to new file
2019-01-08 00:00:24 +01:00
chriseth
139dd9fb24
Merge pull request #5748 from ethereum/docs-split-inheritance
[DOCS] Split inheritance into new doc
2019-01-07 23:59:14 +01:00
Chris Ward
5ca509a4ea Split inheritance into new doc 2019-01-07 23:57:08 +01:00
Chris Ward
da1d70e939 Split events docs into file 2019-01-07 23:53:44 +01:00
Chris Ward
f69af050cb Split Abstract Contracts docs to new file 2019-01-07 18:20:57 +01:00
Chris Ward
13cd96136a Split libraries into new doc 2019-01-07 18:13:32 +01:00
Chris Ward
c9b2e5da8f Split Function modifiers doc into smaller file 2019-01-07 18:11:23 +01:00
Chris Ward
ee5eac4b3e Split using for into new file 2019-01-07 18:08:00 +01:00
chriseth
a2926cd9dc
Merge pull request #5742 from ethereum/docs-split-vis-and-get
[DOCS] Split Visibility and Getters section
2019-01-07 18:04:54 +01:00
chriseth
3503f3809d Do not compile the contracts subdirectory. 2019-01-07 17:52:31 +01:00
Chris Ward
26d47c7213 Split creating contracts 2019-01-07 17:48:24 +01:00
Chris Ward
8b8ccd1e1a Exclude included files 2019-01-07 15:13:47 +01:00
chriseth
d9910f2a12
Merge pull request #5732 from ethereum/pragma-update
[DOCS] Update non-existent pragma 0.4.99 to 0.5.0
2019-01-07 15:12:22 +01:00
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
1da2c1f7e4 Split Constant State Variables doc 2019-01-07 14:14:26 +01:00
chriseth
f7b7c59e27
Merge pull request #5734 from ItsNickBarry/deprecation-notices
clarify antecedents in deprecation notices
2019-01-07 12:28:19 +01:00
chriseth
4fa2a6865d
Merge pull request #5720 from ethereum/docs_type_conversion
[DOCS] Fix examples in type conversion docs
2019-01-07 12:27:29 +01:00
chriseth
96d220163d
Merge pull request #5731 from poiresel/docs_spelling_fixes
resolve spelling issues in the docs folder
2019-01-07 12:26:50 +01:00
Chris Ward
ae107bde3c Split Visibility and Getters doc 2019-01-07 11:58:11 +01:00
chriseth
a0b8201442
Merge pull request #5727 from spmvg/develop
[DOCS] fix typo in docs/contracts.rst
2019-01-07 11:57:05 +01:00
chriseth
f37990348a
Merge pull request #5698 from ethereum/chriseth-patch-2
[DOC] More details about packed encoding.
2019-01-07 11:52:46 +01:00
Nick Barry
12d00d38bd clarify antecedents in deprecation notices 2019-01-03 00:35:06 -06:00
chandan kumar mandal
fdd24d12f3
copyright year updated
Happy New Year !! 🎇
Copyright year udated to 2019.
2019-01-02 02:54:43 +05:30
spmvg
cc400dbeca fix typo in docs 2018-12-30 22:23:20 +01:00
Leonardo Alt
444464f8cf Fix examples in type conversion docs 2018-12-23 22:18:01 +01:00
poiresel
bf93665ad8 resolve spelling issues in the docs folder 2018-12-21 10:49:11 -05:00
chriseth
ac6f80b4e9 [DOC] More details about packed encoding. 2018-12-20 14:49:52 +01:00
chriseth
dd49196d3f
Merge pull request #5701 from ethereum/faq-struct
DOCS: Remove Structs item from FAQ
2018-12-20 09:03:00 +01:00
Chris Ward
ca31a9f9b9 Remove comments FAQ item 2018-12-19 17:45:02 +01:00
chriseth
8ce95312b6 Update buglist. 2018-12-19 17:07:28 +01:00
Chris Ward
43d072df7f Remove Structs item from FAQ 2018-12-19 16:38:31 +01:00
Zacharius
af3e6db038 changed interface code example to illustrate working solidity version 2018-12-19 12:22:49 +01:00
Mathias Baumann
36dc56fa77 Doc: Fix typo "a messy" -> "a mess" 2018-12-18 20:17:44 +01:00
chriseth
eed46f0011
Merge pull request #5680 from ethereum/doc-fix-trivial
[Trivial] Format "and" as instruction op code
2018-12-18 19:50:46 +01:00
Mathias Baumann
e9944206a5 Rephrase opcode result returning description
It was a bit between the lines that "pushing on the stack" is their
means of returning a result.
2018-12-18 19:36:38 +01:00
Mathias Baumann
50101570ef Format "and" as instruction op code 2018-12-18 18:06:43 +01:00
chriseth
5066424758 Build in release mode. 2018-12-18 16:20:02 +01:00
Chris Ward
995840bfe0 Updates arrays section to improve order and clarify concepts 2018-12-18 12:17:22 +01:00
Chris Ward
72c977608f Clean input and output function types
Updates from review
2018-12-17 17:31:12 +01:00
Chris Ward
7b9fd4676d Add array item deletion idiosyncracy 2018-12-17 13:50:47 +01:00
Chris Ward
2e8114f312 Fix italics formatting issue 2018-12-17 13:30:06 +01:00
chriseth
996bfb2a83
Merge pull request #5648 from ethereum/useMemoryDB
Update to use memorydb for aleth.
2018-12-13 15:58:33 +01:00
chriseth
1c4caaa0a2
Merge pull request #5636 from ethereum/faq-array-literal
DOCS: Remove FAQ item that covers array literals
2018-12-13 15:56:21 +01:00
chriseth
02a8e5d4e9 Update to use memorydb for aleth. 2018-12-13 12:07:32 +01:00
chriseth
17bf164afe
Merge pull request #4951 from ethereum/alethUpdates
Use current aleth release for testing.
2018-12-12 18:41:35 +01:00
Chris Ward
a4da8c1ad8 Remove FAQ item on killing contracts 2018-12-12 17:21:36 +01:00
Ricardo Guilherme Schmidt
c7e0965801 Add NatSpec to Style-Guide
related to #2270
2018-12-12 16:51:28 +01:00
Chris Ward
d03b52519a Remove FAQ item that covers array literals 2018-12-12 14:57:47 +01:00
Chris Ward
774f7e6129 Remove payload FAQ item 2018-12-12 14:26:58 +01:00
chriseth
2f04633e27 Explain source IDs. 2018-12-11 15:48:12 +01:00
chriseth
fe87cc7eb0 Improve explanation how to get abi output. 2018-12-11 15:48:12 +01:00
Daniel Kirchner
6d82ad1338 Test updates for recent versions of aleth. 2018-12-11 04:47:05 +01:00
Mathias Baumann
a3918c2341 ContribDoc: Link formatted instead of raw version of coding guidlines 2018-12-10 16:26:05 +01:00
chriseth
8d623dcca1 Massage changelog for 0.5.1 2018-12-03 14:16:34 +01:00
Chris Ward
78ca2801d8 Move String literal and inline array FAQ items
Fix tab

Update docs/types.rst

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

Update docs/types.rst

Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>
2018-12-03 11:49:42 +01:00
chriseth
0d1dd30ce8
Merge pull request #5524 from ethereum/yulGrammarChanges
Yul grammar changes.
2018-12-03 11:25:20 +01:00
chriseth
413cb67a55
Merge pull request #5532 from ethereum/docs-style-add-mapping
DOCS: Add mapping guide to style docs
2018-12-03 11:19:17 +01:00
chriseth
3159e2a220
Merge pull request #5547 from ethereum/assemblySyntax
Update assembly grammar part.
2018-12-03 11:18:56 +01:00
chriseth
ba5d8b5a23
Merge pull request #5565 from ethereum/listTests
Explain how to get a list of all tests.
2018-12-03 10:47:02 +01:00
Chris Ward
bbe0268163 Add mapping guide to style docs thanks to @aupiff 2018-12-03 10:43:53 +01:00
Chris Ward
32c3f6c817 Add link between functions in contract structure and more details
Fix missing label
2018-12-03 09:06:19 +01:00
chriseth
98a0779771 Explain how to get a list of all tests. 2018-12-03 08:26:56 +01:00
chriseth
a73df9bc18
Merge pull request #5562 from Altrum/debugDocs
Updated docs on information about debugging and how to run commands.
2018-12-03 08:23:20 +01:00
Robert Chung
4a907faf44 Added information about debugging and examples on how to run subsets of tests. 2018-12-01 21:40:43 -08:00
chriseth
436696d3b6 Update assembly grammar part. 2018-11-30 18:24:15 +01:00
chriseth
2867c2b4dd Clarify "copying bytecode" in inheritance. 2018-11-29 13:33:10 +01:00
Chris Ward
b75859ff15 Begin overhaul of documentation index 2018-11-28 15:40:21 +01:00
chriseth
cb9816f7d6 Yul grammar changes.
- also the top level object needs to be named
 - code is not optional
2018-11-28 11:32:05 +01:00
chriseth
5e55cb1729
Merge pull request #5277 from ethereum/docs-5175-require-revert
DOCS: Add mention that pure functions can require and revert
2018-11-26 20:10:12 +01:00
Chris Ward
ae542176e3 Add that pure functions can use revert and require 2018-11-26 20:07:22 +01:00
Chris Ward
12daec3535 Move function related content to contracts doc 2018-11-26 19:46:31 +01:00
Chris Ward
2d5516b28d Review contributing docs for language and ease 2018-11-26 18:40:38 +01:00
chriseth
f1cebed998
Merge pull request #5287 from ethereum/docs-update-input-parameters
DOCS: Merge FAQ into docs on multi-dimensional arrays
2018-11-26 15:19:55 +01:00
chriseth
7cc6738df3
Merge pull request #5438 from ethereum/docs-faq-types-undefined
DOCS: Move undefined FAQ item
2018-11-26 14:51:38 +01:00
William Entriken
b98a9eeb97 Define how inheritance affects storage 2018-11-26 14:44:18 +01:00
David Lozano Jarque
95206f26c8
Update types.rst
RST note with incorrect syntax
2018-11-26 11:39:33 +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
David Lozano Jarque
06ae228621
Update installing-solidity.rst
Homebrow -> homebrew
2018-11-25 19:19:05 +01:00
David Lozano Jarque
08579818c3
Update introduction-to-smart-contracts.rst
Fix typo
2018-11-25 17:39:02 +01:00
Erik Kundt
f57ef36c0e
Update docs/types.rst
Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>
2018-11-23 17:16:18 +01:00
Chris Ward
9c1bdb74b9 Add default value details 2018-11-23 10:16:30 +01:00
chriseth
bc5d152e86
Update docs/types.rst
Co-Authored-By: ChrisChinchilla <chriswhward@gmail.com>
2018-11-23 09:54:27 +01:00
Javier Tarazaga
90b244d102 Added Superblocks Lab IDE to the generic section 2018-11-22 00:10:29 +00:00
chriseth
3a15f88683
Merge pull request #5434 from fulldecent/patch-8
Qualify that storage slots are shared for contiguous data
2018-11-22 00:36:34 +01:00
chriseth
2bf5e6fa9c
Merge pull request #5439 from ethereum/docs-faq-types-array-length
DOCS: Remove length related FAQ item
2018-11-21 19:26:07 +01:00
Chris Ward
9b657134ef Remove length related FAQ item 2018-11-15 12:11:25 +01:00
Chris Ward
f1d02432a6 Move undefined FAQ item 2018-11-15 12:02:38 +01:00
Chris Ward
5f4eb96341 Remove Struct copy FAQ item 2018-11-15 11:55:57 +01:00
Alex Beregszaszi
9db76403bb
Merge pull request #5430 from kn1g/patch-1
Consistent use of address()
2018-11-15 10:10:08 +00:00
Yet another codejunkie
caf44302e5
Fixed consistent use of nameReg
Fixed consistent use of `nameReg` instead of `namReg`
2018-11-15 10:10:28 +01:00
William Entriken
bddbdebd91
Qualify that storage slots are shared for contiguous data 2018-11-14 22:39:12 -05:00
Alex Beregszaszi
d66052554c Fix indentation in documentation 2018-11-14 21:01:53 +00:00
Yet another codejunkie
b6e2e4ad6b
Consistent use of address()
First example is with address() and the following examples without. I suggest a consistent use here.
2018-11-14 18:31:22 +01:00
chriseth
5783ebb93d Small changes to yul object specification. 2018-11-14 18:17:43 +01:00
Chris Ward
121d733b34 Begin review of micropayments example
Language tidy, add correct method and package namespaces and make more consistent with each project docs

First changes from review

Further fixes after review

Fix line breaks

Revert code changes

Update
2018-11-14 17:14:19 +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
fa1cb346ae Update syntax used for input and output parameters 2018-11-14 14:20:49 +01:00
chriseth
17e81c6eca
Merge pull request #5410 from ethereum/lll-build
Do not build LLL unless requested via the LLL cmake option
2018-11-14 11:11:41 +01:00
chriseth
79243eac08 Rename some builtin yul functions for signed types. 2018-11-14 00:58:58 +01:00
Alex Beregszaszi
b4fcce0bde Do not build LLL unless requested via the LLL cmake option 2018-11-13 23:51:17 +00:00
chriseth
91b6b8a88e
Merge pull request #5413 from ethereum/updateChangelogForRelease
Add release date to changelog.
2018-11-13 17:51:21 +01:00
chriseth
dd03d80173 Add release date to changelog. 2018-11-13 16:24:17 +01:00
chriseth
289965e6a8
Merge pull request #5412 from ritzdorf/patch-2
keccak256 does not call an external contract
2018-11-13 16:21:12 +01:00
Alex Beregszaszi
4c98a6a2a3 Add LLL chapter in the documentation 2018-11-13 15:14:10 +00:00
ritzdorf
8258712771
keccak256 does not call an external contract
``keccak256`` will be compiled to the ``SHA3`` opcode and not call an external contract.
2018-11-13 15:54:13 +01:00
chriseth
a7b3ec0e42 Fix style. 2018-11-12 22:57:32 +01:00
Chris Ward
144909dfb8 Clarify creating a contract example as reported in #2661 2018-11-12 15:07:57 +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
chriseth
d68dfd2c20
Merge pull request #4860 from ethereum/docs-2175-index-missing
Add mention of common subexpression elimination
2018-11-12 14:18:28 +01:00
Chris Ward
4370425823 Clarify term and tidy text
Use UK spelling in heading

Remove colon
2018-11-12 14:17:09 +01:00