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
+47-2Lines changed: 47 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,57 @@
2
2
All notable changes to [Solang](https://github.com/hyperledger/solang/)
3
3
will be documented here.
4
4
5
-
## Unreleased
5
+
## v0.2.0.0 Berlin
6
+
We are happy to release solang `v0.2.0` codenamed `Berlin` today. Aside from containing many small fixes and improvements, this release marks a milestone towards maturing our Substrate compilation target: any regressions building up since `ink!` v3.0 are fixed, most notably the metadata format (shoutout and many thanks to external contributor [extraymond](https://github.com/extraymond)) and event topics. Furthermore, we are leaving `ink!` version 3 behind us, in favor of introducing compatibility with the recent `ink!` 4 beta release and the latest pallet contract `v0.22.1`.
6
7
7
8
### Added
8
-
- Introduce new sub-command `solang idl` which can be used for generating
9
+
-**Solana / breaking:** The try-catch construct is no longer permitted on Solana, as it
10
+
never worked. Any CPI error will abort the transaction.
11
+
[seanyoung](https://github.com/seanyoung)
12
+
-**Solana:** Introduce new sub-command `solang idl` which can be used for generating
9
13
a Solidity interface file from an Anchor IDL file. This can be used for calling
10
14
Anchor Contracts on Solana. [seanyoung](https://github.com/seanyoung)
15
+
-**Substrate:** Provide specific Substrate builtins via a "substrate" file. The
16
+
`Hash` type from `ink!` is the first `ink!` specific type made available for Solidity
17
+
contracts.
18
+
[xermicus](https://github.com/xermicus)
19
+
-**Substrate:** Introduce the `--log-api-return-codes` CLI flag, which changes the
20
+
emitted code to print return codes for `seal` API calls into the debug buffer.
21
+
[xermicus](https://github.com/xermicus)
22
+
- Introduce function name mangling for overloaded functions and constructors, so
23
+
that they can be represented properly in the metadata.
24
+
[xermicus](https://github.com/xermicus)
25
+
26
+
### Changed
27
+
- The Solana target now uses Borsh encoding rather than eth abi
28
+
encoding. This is aimed at making Solang contracts Anchor compatible.
29
+
[LucasSte](https://github.com/LucasSte)
30
+
-**Substrate / breaking:** Supported node version is now pallet contracts `v0.22.1`.
31
+
[xermicus](https://github.com/xermicus)
32
+
-**Substrate / breaking:** Remove the deprecated `random` builtin.
33
+
[xermicus](https://github.com/xermicus)
34
+
35
+
### Fixed
36
+
- Whenever possible, the parser does not give up after the first error.
Copy file name to clipboardExpand all lines: README.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,17 +116,6 @@ node flipper.js
116
116
117
117
## Build for Substrate
118
118
119
-
### Status
120
-
:warning: Solang was developed against Substrate v3.0. It has been a while since the last time the Substrate target was worked on, which introduced a few known regressions. Currently, the following is known to **not** work with recent Substrate versions:
121
-
122
-
* Function call arguments of type `address`
123
-
* Function return values of type `address`
124
-
* Cross-contract calls
125
-
* Events with indexed fields
126
-
127
-
Maintenance on the Substrate target has now resumed and we are working on fixing these issues.
128
-
129
-
### Building
130
119
Run:
131
120
132
121
```bash
@@ -156,8 +145,8 @@ Here is a brief description of what we envision for the next versions.
156
145
| Solana SPL tokens compatibility | Completed |
157
146
| Parse and resolve inline assembly | Completed |
158
147
| Generate code for inline assembly | Completed |
159
-
| Support Solana's Program Derived Addresses|In Progress|
160
-
|Support latest Substrate production target | In Progress|
148
+
| Support latest Substrate production target|Completed |
149
+
|Improve parser resilience | Completed |
161
150
162
151
163
152
### V0.3
@@ -166,10 +155,12 @@ Here is a brief description of what we envision for the next versions.
0 commit comments