-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release
3.3.0
with backwards compatibility fixes (#1284)
* Fix links in release notes (#1277) * Revert "Optimise deny_payment. Use eerywhere semantic of deny. (#1267)" This reverts commit 1bfccc7. * Revert backward-incompatible piece of #1224: dependency on `[seal1] seal_set_storage` * Revert backward-incompatible piece of #1233: removal of eth_compatibility crate * bump crate versions + update RELEASES.md * Mapping::insert_return_size is back, having now both `seal1` and `seal0` seal_set_storage versions used * set_storage_silent -> set_storage_compat renaming * spell fix * Apply suggestions from code review Co-authored-by: Michael Müller <[email protected]> Co-authored-by: Hernando Castano <[email protected]> * Apply suggestions from code review Co-authored-by: Hernando Castano <[email protected]> * Update crates/env/src/backend.rs Co-authored-by: Hernando Castano <[email protected]> * doc comments enhanced * `Mapping::insert()` to use backwards compatible seal fn * unreleased changes planned for 4.x removed from 3.x * Add more details to the release notes * fix catched issue with changed api function signature * fix storage trait dependent func * Apply new versions naming policy: step1. Old versions to keep their names. * Apply new versions naming policy: step2. Add `deprecated` attr and `# Compatibility` docs section * Apply suggestions from code review Co-authored-by: Hernando Castano <[email protected]> * fixes after next review round * more fixes after the review round * fmt * spellcheck config fix * Small wording fixes Co-authored-by: Michael Müller <[email protected]> Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
- Loading branch information
1 parent
f403c6e
commit 0e961d8
Showing
55 changed files
with
451 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,5 +104,3 @@ natively | |
payability | ||
unpayable | ||
initializer | ||
|
||
^#[0-9a-fA-F]{5,}$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
# [Unreleased] | ||
|
||
# Version 3.3.0 | ||
|
||
This release restores SemVer compatibility in the `v3.x` series of releases, as well as | ||
compatibility with the [`v0.13.0`](https://github.com/paritytech/substrate-contracts-node/releases/tag/v0.13.0) | ||
release of the `substrate-contracts-node`. | ||
|
||
## Compatibility | ||
This version will work fine with *substrate-contracts-node* versions from | ||
[0.13.0](https://github.com/paritytech/substrate-contracts-node/releases/tag/v0.13.0) up | ||
to [0.16.0](https://github.com/paritytech/substrate-contracts-node/releases/tag/v0.16.0). | ||
|
||
## Changed | ||
*Context: user-reported issues on our SE unveiled backward incompatibility introduced in 3.1.0 release.* | ||
1. [CodeRejected when using ink! v3.1.0](https://substrate.stackexchange.com/questions/2721/cargo-contract-3-0-1) | ||
1. [Incompatibility between ink! v3.0.1 and v3.2.0 ](https://substrate.stackexchange.com/questions/2870/cargo-contract-throws-error-about-supplied-arguments-in-inkconstructor-f) | ||
|
||
The following has been done to restore backward compatibility: | ||
- Reverted backward-incompatible piece of [#1224](https://github.com/paritytech/ink/pull/1224). | ||
- The return signature of `ink_env::set_contract_storage()` was changed to return an | ||
`Option<u32>`. This could have broken existing code, so this should've been done in | ||
a `MAJOR` release. | ||
- Under the hood the PR also changed `Mapping::insert()` to use a new SEAL API | ||
(`[seal1] seal_set_storage`), which resulted in `CodeRejected` errors in nodes which | ||
did not have this API (e.g `[email protected]`). | ||
- Reverted "Optimise deny_payment. Use everywhere semantic of deny ([#1267](https://github.com/paritytech/ink/pull/1267))" | ||
- This one is to restore compatibility between minor versions of ink! crates; see | ||
@HCastano's SE [answer](https://substrate.stackexchange.com/a/3000/472) in this | ||
regard. | ||
- Reverted backward-incompatible piece of [#1233](https://github.com/paritytech/ink/pull/1233). | ||
- The removal of the `eth_compatibility` crate should have been done in a `MAJOR` | ||
release. | ||
|
||
All these breaking changes are subjects to the upcoming MAJOR *ink!* release 4.0.0. | ||
|
||
# Version 3.2.0 | ||
|
||
## Compatibility | ||
|
@@ -11,13 +45,13 @@ This is the case in the latest release of the [`substrate-contracts-node`](https | |
[v0.16.0](https://github.com/paritytech/substrate-contracts-node/releases/tag/v0.16.0). | ||
|
||
## Added | ||
- Contract size optimization in case contract doesn't accept payment ‒ [#1267](https://github.com/paritytech/ink/pull/1270) [#1273](https://github.com/paritytech/ink/pull/1267) (thanks [@xgreenx](https://github.com/xgreenx)). | ||
- Contract size optimization in case contract doesn't accept payment ‒ [#1267](https://github.com/paritytech/ink/pull/1267) (thanks [@xgreenx](https://github.com/xgreenx)). | ||
|
||
## Changed | ||
- Two functions have been stabilized: [`ink_env::ecdsa_recover`](https://paritytech.github.io/ink/ink_env/fn.ecdsa_recover.html) and [`ink_env::ecdsa_to_eth_address`](https://paritytech.github.io/ink/ink_env/fn.ecdsa_to_eth_address.html) ‒ [#1270](https://github.com/paritytech/ink/pull/1270) [#1273](https://github.com/paritytech/ink/pull/1273) | ||
|
||
## Fixed | ||
- Fixed bug with recent Rust and `cargo test` ‒ [#1272](https://github.com/paritytech/ink/pull/1270) [#1273](https://github.com/paritytech/ink/pull/1272) (thanks [@xgreenx](https://github.com/xgreenx)). | ||
- Fixed bug with recent Rust and `cargo test` ‒ [#1272](https://github.com/paritytech/ink/pull/1272) (thanks [@xgreenx](https://github.com/xgreenx)). | ||
|
||
# Version 3.1.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ink_allocator" | ||
version = "3.2.0" | ||
version = "3.3.0" | ||
authors = ["Parity Technologies <[email protected]>", "Robin Freyler <[email protected]>"] | ||
edition = "2021" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ink_engine" | ||
version = "3.2.0" | ||
version = "3.3.0" | ||
authors = ["Parity Technologies <[email protected]>", "Michael Müller <[email protected]>"] | ||
edition = "2021" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "ink_env" | ||
version = "3.2.0" | ||
version = "3.3.0" | ||
authors = ["Parity Technologies <[email protected]>", "Robin Freyler <[email protected]>"] | ||
edition = "2021" | ||
|
||
|
@@ -15,10 +15,10 @@ categories = ["no-std", "embedded"] | |
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] | ||
|
||
[dependencies] | ||
ink_metadata = { version = "3.2.0", path = "../metadata/", default-features = false, features = ["derive"], optional = true } | ||
ink_allocator = { version = "3.2.0", path = "../allocator/", default-features = false } | ||
ink_primitives = { version = "3.2.0", path = "../primitives/", default-features = false } | ||
ink_prelude = { version = "3.2.0", path = "../prelude/", default-features = false } | ||
ink_metadata = { version = "3.3.0", path = "../metadata/", default-features = false, features = ["derive"], optional = true } | ||
ink_allocator = { version = "3.3.0", path = "../allocator/", default-features = false } | ||
ink_primitives = { version = "3.3.0", path = "../primitives/", default-features = false } | ||
ink_prelude = { version = "3.3.0", path = "../prelude/", default-features = false } | ||
|
||
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] } | ||
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] } | ||
|
@@ -32,7 +32,7 @@ static_assertions = "1.1" | |
rlibc = "1" | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
ink_engine = { version = "3.2.0", path = "../engine/", optional = true } | ||
ink_engine = { version = "3.3.0", path = "../engine/", optional = true } | ||
|
||
# Hashes for the off-chain environment. | ||
sha2 = { version = "0.10", optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "ink_eth_compatibility" | ||
version = "3.0.1" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
edition = "2021" | ||
|
||
license = "Apache-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/paritytech/ink" | ||
documentation = "https://docs.rs/ink_eth_compatibility/" | ||
homepage = "https://www.parity.io/" | ||
description = "[ink!] Ethereum related stuff." | ||
keywords = ["wasm", "parity", "webassembly", "blockchain", "ethereum"] | ||
categories = ["no-std", "embedded"] | ||
include = ["Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"] | ||
|
||
[dependencies] | ||
ink_env = { version = "3.0.1", path = "../env", default-features = false } | ||
|
||
[target.'cfg(not(target_os = "windows"))'.dependencies] | ||
# We do not include `libsecp256k1` on Windows, since it's incompatible. | ||
# We have https://github.com/paritytech/ink/issues/1068 for removing | ||
# this dependency altogether. | ||
libsecp256k1 = { version = "0.7.0", default-features = false } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"ink_env/std", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../README.md |
Oops, something went wrong.