You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Changelog.md
+48-4Lines changed: 48 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,55 @@
1
+
### 0.6.0 (2019-12-17)
2
+
3
+
Breaking changes:
4
+
* ABI: Remove the deprecated ``constant`` and ``payable`` fields.
5
+
* ABI: The ``type`` field is now required and no longer specified to default to ``function``.
6
+
* AST: Inline assembly is exported as structured JSON instead of plain string.
7
+
* C API (``libsolc``): Introduce context parameter to both ``solidity_compile`` and the callback.
8
+
* C API (``libsolc``): The provided callback now takes two parameters, kind and data. The callback can then be used for multiple purposes, such has file imports and SMT queries.
9
+
* C API (``libsolc``): ``solidity_free`` was renamed to ``solidity_reset``. Functions ``solidity_alloc`` and ``solidity_free`` were added.
10
+
* C API (``libsolc``): ``solidity_compile`` now returns a string that must be explicitly freed via ``solidity_free()``
11
+
* Commandline Interface: Remove the text-based AST printer (``--ast``).
12
+
* Commandline Interface: Switch to the new error reporter by default. ``--old-reporter`` falls back to the deprecated old error reporter.
13
+
* Commandline Interface: Add option to disable or choose hash method between IPFS and Swarm for the bytecode metadata.
14
+
* General: Disallow explicit conversions from external function types to ``address`` and add a member called ``address`` to them as replacement.
15
+
* General: Enable Yul optimizer as part of standard optimization.
16
+
* General: New reserved keywords: ``override``, ``receive``, and ``virtual``.
17
+
* General: ``private`` cannot be used together with ``virtual``.
18
+
* General: Split unnamed fallback functions into two cases defined using ``fallback()`` and ``receive()``.
19
+
* Inheritance: State variable shadowing is now disallowed.
20
+
* Inline Assembly: Only strict inline assembly is allowed.
* JSON AST: Replace ``superFunction`` attribute by ``baseFunctions``.
23
+
* Natspec JSON Interface: Properly support multiple ``@return`` statements in ``@dev`` documentation and enforce named return parameters to be mentioned documentation.
24
+
* Source mappings: Add "modifier depth" as a fifth field in the source mappings.
25
+
* Standard JSON Interface: Add option to disable or choose hash method between IPFS and Swarm for the bytecode metadata.
26
+
* Syntax: ``push(element)`` for dynamic storage arrays do not return the new length anymore.
27
+
* Syntax: Abstract contracts need to be marked explicitly as abstract by using the ``abstract`` keyword.
28
+
* Syntax: ``length`` member of arrays is now always read-only, even for storage arrays.
29
+
* Type Checker: Resulting type of exponentiation is equal to the type of the base. Also allow signed types for the base.
30
+
31
+
Language Features:
32
+
* Allow explicit conversions from ``address`` to ``address payable`` via ``payable(...)``.
33
+
* Allow global enums and structs.
34
+
* Allow public variables to override external functions.
35
+
* Allow underscores as delimiters in hex strings.
36
+
* Introduce syntax for array slices and implement them for dynamic calldata arrays.
37
+
* Introduce ``push()`` for dynamic storage arrays. It returns a reference to the newly allocated element, if applicable.
38
+
* Introduce ``virtual`` and ``override`` keywords.
39
+
* Modify ``push(element)`` for dynamic storage arrays such that it does not return the new length anymore.
40
+
* Yul: Introduce ``leave`` statement that exits the current function.
41
+
* JSON AST: Add the function selector of each externally-visible FunctonDefinition to the AST JSON export.
42
+
43
+
Compiler Features:
44
+
* Allow revert strings to be stripped from the binary using the ``--revert-strings`` option or the ``settings.debug.revertStrings`` setting.
45
+
* ABIEncoderV2: Do not warn about enabled ABIEncoderV2 anymore (the pragma is still needed, though).
46
+
47
+
1
48
### 0.5.15 (2019-12-17)
2
49
3
50
Bugfixes:
4
51
* Yul Optimizer: Fix incorrect redundant load optimization crossing user-defined functions that contain for-loops with memory / storage writes.
5
52
6
-
7
53
### 0.5.14 (2019-12-09)
8
54
9
55
Language Features:
@@ -13,7 +59,7 @@ Language Features:
13
59
14
60
15
61
Compiler Features:
16
-
* Commandline Interface: Allow translation from yul / strict assembly to EWasm using ``solc --yul --yul-dialect evm --machine eWasm``
62
+
* Commandline Interface: Allow translation from yul / strict assembly to EWasm using ``solc --yul --yul-dialect evm --machine ewasm``
17
63
* Set the default EVM version to "Istanbul".
18
64
* SMTChecker: Add support to constructors including constructor inheritance.
19
65
* Yul: When compiling via Yul, string literals from the Solidity code are kept as string literals if every character is safely printable.
@@ -48,7 +94,6 @@ Compiler Features:
48
94
* TypeChecker: List possible candidates when overload resolution fails.
49
95
* TypeChecker: Disallow variables of library types.
50
96
51
-
52
97
Bugfixes:
53
98
* Code Generator: Fixed a faulty assert that would wrongly trigger for array sizes exceeding unsigned integer.
54
99
* SMTChecker: Fix internal error when accessing indices of fixed bytes.
@@ -59,7 +104,6 @@ Bugfixes:
59
104
* Code Generator: Fix internal error when trying to convert ``super`` to a different type
Copy file name to clipboardExpand all lines: README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,19 +20,23 @@ that run on the Ethereum Virtual Machine. Smart contracts are programs that are
20
20
network where nobody has special authority over the execution, and thus they allow to implement tokens of value,
21
21
ownership, voting and other kinds of logics.
22
22
23
-
When deploying contracts, you should use the latest released version of Solidity. This is because breaking changes as well as new features and bug fixes are introduced regularly. We currently use a 0.x version number [to indicate this fast pace of change](https://semver.org/#spec-item-4).
23
+
When deploying contracts, you should use the latest released version of
24
+
Solidity. This is because breaking changes as well as new features and bug fixes are
25
+
introduced regularly. We currently use a 0.x version
26
+
number [to indicate this fast pace of change](https://semver.org/#spec-item-4).
24
27
25
28
## Build and Install
26
29
27
-
Instructions about how to build and install the Solidity compiler can be found in the [Solidity documentation](https://solidity.readthedocs.io/en/latest/installing-solidity.html#building-from-source).
30
+
Instructions about how to build and install the Solidity compiler can be
31
+
found in the [Solidity documentation](https://solidity.readthedocs.io/en/latest/installing-solidity.html#building-from-source).
28
32
29
33
30
34
## Example
31
35
32
36
A "Hello World" program in Solidity is of even less use than in other languages, but still:
33
37
34
38
```solidity
35
-
pragma solidity ^0.5.0;
39
+
pragma solidity ^0.6.0;
36
40
37
41
contract HelloWorld {
38
42
function helloWorld() external pure returns (string memory) {
You can find our current feature and bug priorities for forthcoming releases [in the projects section](https://github.com/ethereum/solidity/projects).
67
+
You can find our current feature and bug priorities for forthcoming
68
+
releases [in the projects section](https://github.com/ethereum/solidity/projects).
0 commit comments