Commit Graph

227 Commits

Author SHA1 Message Date
chriseth
9c13bc73de Some operational semantics. 2018-09-17 19:09:14 +02:00
Daniel Kirchner
12aaca1645 Add payable and non-payable state mutability to AddressType. 2018-09-13 15:15:49 +02:00
Daniel Kirchner
db48925907 Add some more documentation. 2018-08-15 17:06:42 +02:00
Daniel Kirchner
4f3f4a916b Extend documentation about explicit and implicit conversions between (u)intXX, bytesYY and literals. 2018-08-14 21:42:01 +02:00
chriseth
e3b6c5a4bd Update documentation. 2018-08-14 18:07:15 +02:00
chriseth
34d3000dcc
Merge pull request #4372 from JesseBusman/implicit-convertibility-functions
Add implicit convertibility to function pointer with higher state mutability
2018-08-14 17:29:16 +02:00
Jesse Busman
c059119145 Add implicit convertibility to function pointer with higher state mutability 2018-08-14 17:13:10 +02:00
chriseth
1dc4978883 Clarify data representation of enums. 2018-08-14 17:06:21 +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
chriseth
ae8218543b
Merge pull request #4696 from ethereum/byteLiteralConversion
Disallow ambiguous implicit and explicit conversions from number literals to bytesXX
2018-08-13 17:25:30 +02:00
chriseth
463f4b0f35
Merge pull request #4618 from ethereum/docs-1211-contract-type
Add contract type to types documentation
2018-08-13 16:07:29 +02:00
Daniel Kirchner
7d7abeb149 Disallow ambiguous conversions between number literals and bytesXX types. 2018-08-13 14:27:01 +02:00
Chris Ward
631794b72e Update from feedback 2018-08-13 12:34:05 +02:00
gftea
c45de14ba8 add link for text "fallback function" 2018-08-09 15:12:20 +02:00
chriseth
cfc745de05 Change note about returning dynamic arrays. 2018-08-09 00:55:50 +02:00
Christian Parpart
b9222808f6
Cleanup & polish numbers-with-underscores parsing, also improving tests. 2018-08-08 13:38:46 +02:00
Balajiganapathi S
09a36cba02 Add stricter hex underscore rules 2018-08-08 12:05:51 +02:00
Balajiganapathi S
0000bfc604 Allow underscores in numbers. 2018-08-08 12:05:51 +02:00
chriseth
40fbe9b86e
Remove initial sentence. 2018-08-06 15:52:11 +02:00
Chris Ward
22a2f5dd1d Clarify truncation with addresses 2018-08-03 14:09:42 +01:00
Chris Ward
3c919766e8 Changes after rebasing 2018-08-01 14:22:09 +02:00
Chris Ward
a6cb6777c9 Add contract type to types doc 2018-08-01 12:21:47 +01:00
chriseth
b800bfb021 Fix tests regarding contract type conversion. 2018-08-01 11:04:35 +01:00
chriseth
c8232d9759 Disallow conversion between unrelated contract types. 2018-08-01 11:04:35 +01:00
Chris Ward
6c3a2f8e9b Clarify what ‘memory type’ is
Use RST links
2018-07-30 15:48:06 +02:00
Erik Kundt
b5ecfbe5bc Enforces visibility specifier and updates docs. 2018-07-17 17:44:51 +02:00
chriseth
c5ff173431
Merge pull request #4512 from chase1745/use-explicit-data-locations-external-tests
Added default data locations to docs and other external tests.
2018-07-16 14:04:18 +02:00
Chase McDermott
3267adcd14 Added default data locations to docs and other external tests. 2018-07-14 16:42:43 -05:00
Nicolás Venturo
e3339a9684
Update docs allowed mapping key values
Functions cannot be used as mapping keys (e.g. the following contract does not compile):

```
pragma solidity ^0.4.24;

contract Foo {
  mapping(function (uint) pure returns (uint) => string) a;
}
```
2018-07-12 19:58:06 -03:00
Nicolás Venturo
910fa3cd7c
Removed repeated documentation
There is already a paragraph below describing how to call functions in both their internal and external forms (and IMO it's clearer).
2018-07-12 15:25:42 -03:00
Daniel Kirchner
f7153ee58a Update documentation. 2018-07-03 15:31:34 +02:00
Christian Parpart
133fbdbf18 documentation: adjustments to not use the "var" keyword 2018-07-03 10:53:09 +02:00
chriseth
17493e64ed Documentation. 2018-06-25 17:17:18 +02:00
Daniel Kirchner
f33dc92cbd Use proper SAR for signed right shifts and emulate on pre-constantinople. 2018-06-12 09:32:19 +01:00
chriseth
d004948929
Merge pull request #4201 from wjmelements/bytes-complex-type
move bytes and string to arrays section
2018-06-04 19:02:00 +02:00
William Morriss
78b8baede7 keep stub in value types section, and move discussion to Arrays section 2018-05-30 10:34:01 -07:00
Erik Kundt
98d52beba3 Adds syntax tests, documentation and changelog entry.
Refines comment for array utility function.
2018-05-30 17:43:20 +02:00
William Morriss
7bc36204d3 move bytes and string to complex types section 2018-05-29 16:31:26 -07:00
Arindam Mondal
5187c66a25 Fix bug in documentation. 2018-05-28 23:37:47 +02:00
Daniel Kirchner
f5a49f679a Adjust tests. 2018-05-16 18:32:47 +02:00
Daniel Kirchner
5c59d56335 Disallow conversions between bytesX and uintY of different size. 2018-05-16 18:32:47 +02:00
chriseth
af18b4deb8
Merge pull request #3885 from LefterisJP/update_solidity_version_where_revert_with_reason
Docs: Update solidity version for revert with reason
2018-04-16 19:55:56 +02:00
Lefteris Karapetsas
8a7224683b
Docs: Update solidity version for revert with reason 2018-04-15 23:12:28 +02:00
Daniel Kirchner
05c5ab19fb Improve documentation and warning about accessing contract members inherited from address. 2018-04-13 18:26:24 +02:00
chriseth
344a388d44 Update documentation. 2018-04-12 13:09:38 +02:00
Jason Cobb
e37b619593 Set default fixed point decimal places to 18 2018-03-31 00:56:36 +01:00
chriseth
66ee9aa2f1 Use 0.4.21 pragma for documentation that uses "emit". 2018-03-02 12:29:48 +01:00
chriseth
f58024b974 Documentation about emitting events. 2018-02-22 15:17:42 +01:00
YuShuangqi
0ef43978fd
update types
correct the mistakes in writings
2018-01-27 07:36:25 +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
Chua Chee Wee
15427dc8d3
Change phrase in type deduction
updated phrase in type deduction from "any value of this type" to "the highest value of this type"
2017-11-16 23:18:06 +08:00
Chua Chee Wee
d4db1624b5
Changed limitation to feature
Changed the word "limitation" to "feature" for the note where transfer is described.
2017-10-30 15:40:28 +08:00
Alex Beregszaszi
81f9f86ce5 Add reference to EIP-55 in address literals (#3062) 2017-10-10 17:54:29 +02:00
Alex Beregszaszi
09276cb9d3 Do not add members of address to contracts in experimental 0.5.0 2017-10-05 11:42:34 +01:00
Alex Beregszaszi
c70ebfd241 Document function selectors 2017-09-13 11:40:57 +01:00
chriseth
152a0e69c4 Merge pull request #2871 from ethereum/fixedpointdocs
Explain fixed point types in docs
2017-09-04 19:04:12 +02:00
Alex Beregszaszi
435eeec5e1 Explain the difference between floating and fixed point 2017-09-04 15:57:05 +01:00
Alex Beregszaszi
76bd8c5769 Explain fixed point types 2017-09-04 15:57:05 +01:00
Alex Beregszaszi
c975bf87db Move fixed after int in docs 2017-09-04 15:19:39 +01:00
Alex Beregszaszi
8e1aae2e1a Document gas/value modifiers with overloading 2017-09-01 19:09:36 +01:00
Alex Beregszaszi
f787ecae5a Document byte[] vs bytes 2017-09-01 19:09:36 +01:00
Alex Beregszaszi
8743b2cead Document call/gas modifiers properly 2017-09-01 19:09:07 +01:00
Alex Beregszaszi
412cc6bc58 Highlight opcodes in docs 2017-08-28 11:59:35 +01:00
Alex Beregszaszi
23c791e4df Add pure to grammar 2017-08-24 13:46:18 +01:00
Alex Beregszaszi
efe4d68a7b Introduce view (and keep constant as an alias) 2017-08-22 18:24:22 +01:00
Alex Beregszaszi
47b6aa1f5b Update grammar to reflect state mutability 2017-08-16 21:19:09 +01:00
Alex Beregszaszi
09ef3d8e72 Add proper warning for fixed point types 2017-08-16 16:47:49 +01:00
chriseth
80f83169b1 Merge pull request #2659 from jamesray1/patch-25
Link: members-of-addresses in docs/types.rst
2017-08-15 17:46:21 +02:00
Alex Beregszaszi
ecec557d2b Merge pull request #2634 from ethereum/chriseth-patch-1
Clarify internal function types
2017-08-11 16:59:22 +01:00
James Ray
84e71f061c Link: members-of-addresses 2017-07-28 15:07:18 +10:00
Alex Beregszaszi
48a15ea19d Use the storage keyword in examples 2017-07-26 23:05:09 +01:00
Alex Beregszaszi
04582dd2cb Mention that callcode is deprecated 2017-07-26 23:05:09 +01:00
chriseth
887823dca6 Merge pull request #2627 from atfornes/patch-2
Change Mapping example to valid (executable) code
2017-07-26 14:45:00 +02:00
chriseth
f74e40598f Clarify internal function types
Fixes https://github.com/ethereum/solidity/issues/2617
2017-07-26 14:30:32 +02:00
chriseth
3c2b710b5e Merge pull request #2484 from jamesray1/patch-8
Added links for the getter function.
2017-07-25 15:51:09 +02:00
Antonio Tenorio-Fornés
db739dff69 Change Mapping example to valid (executable) code
Current example will not compile and would need to be compiled in separate files, unlike how it is shown (see https://github.com/ethereum/solidity/pull/2618).

The proposed changes provide both a source code that compiles and a easier to understand Contract creation (using new instead of a contract address).
2017-07-24 18:30:54 +02:00
Alex Beregszaszi
41e5b2c3c2 Fix bugs in example contracts 2017-07-13 21:47:29 +02:00
chriseth
b981ef2055 Merge pull request #1477 from ethereum/doc-remove-fixed
[WIP] docs: ``var x = 1/4`` is not working, so remove description about it
2017-07-12 12:11:13 +02:00
James Ray
3594f973df Update types.rst 2017-07-01 13:31:31 +10:00
Ben Che
3df637baec Update types.srt
Fix minor grammatical/spelling errors.
2017-06-30 10:48:59 -04:00
James Ray
77e4f9c8fc Changed URL for getter to a ref 2017-06-30 19:24:39 +10:00
James Ray
355d69b4ba Used a ref for getter instead of a URL. 2017-06-30 19:19:06 +10:00
James Ray
2ac51a1a90 Added links for the getter function. 2017-06-30 19:11:21 +10:00
Federico Bond
70fd5c1770 Warn deprecated usage of parameter names in function types 2017-06-26 15:39:01 -03:00
chriseth
e0b9589e5a Merge pull request #2373 from jamesray1/patch-14
Changed to "is compiled" rather than "maps" to the DVM op code to avoid ambiguity
2017-06-16 16:52:46 +02:00
James Ray
c1e0a6557d Create types.rst
"is compiled" avoids ambiguity compared with "maps", especially for those who may not understand what maps may mean and may confuse it with the "mapping" code keyword
2017-06-15 19:37:37 +10:00
chriseth
e48a1a3851 Merge pull request #2372 from jamesray1/patch-13
Create types.rst
2017-06-12 17:21:28 +02:00
chriseth
39a7b63897 Added linebreak. 2017-06-12 17:21:19 +02:00
James Ray
0423278a31 Create types.rst
hash table link
2017-06-12 18:12:09 +10:00
James Ray
09a77de8ab Create types.rst
Maps will be explained later `[here](http://solidity.readthedocs.io/en/develop/types.html#mappings)`_
2017-06-12 18:02:30 +10:00
James Ray
2dd23cec7a Create types.rst
Note that the following is not a pair of dynamic arrays but a dynamic array of pairs (i.e. of fixed size arrays of length two).
2017-06-12 17:36:51 +10:00
Matt Wisniewski
2b4b86aa7f Update common-patterns.rst 2017-05-03 12:03:02 +02:00
Paweł Bylica
fc3f40febe Add warning about SAR in docs 2017-04-28 14:35:25 +01:00
Alex Beregszaszi
6ece0d6c2f Document the .value() and .gas() modifiers 2017-03-16 12:37:18 +00:00
Alex Beregszaszi
2d8b0fdc39 Fix inconsistent use of single backticks 2017-03-15 23:41:02 +00:00
Alex Beregszaszi
07d775294b Document scientific notation in integer literals 2017-03-15 13:16:16 +00:00
chriseth
bb06569dc6 Disallow octal literals. 2017-03-07 12:34:32 +01:00
Alex Beregszaszi
c46c68dfd8 Prefer .transfer() over .send() in the documentation 2017-02-24 00:18:18 +00:00