-
Notifications
You must be signed in to change notification settings - Fork 480
Release 3.3.0 with backwards compatibility fixes
#1284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 19 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
80d302e
Fix links in release notes (#1277)
cmichi 0a96173
Revert "Optimise deny_payment. Use eerywhere semantic of deny. (#1267)"
agryaznov cd26767
Revert backward-incompatible piece of #1224: dependency on `[seal1] s…
agryaznov 061c94e
Revert backward-incompatible piece of #1233: removal of eth_compatibi…
agryaznov b17e8af
bump crate versions + update RELEASES.md
agryaznov 5ae4bc1
Mapping::insert_return_size is back, having now both `seal1` and `sea…
agryaznov 5633392
set_storage_silent -> set_storage_compat renaming
agryaznov 4be7403
spell fix
agryaznov ee532c8
Apply suggestions from code review
agryaznov b0daa41
Apply suggestions from code review
agryaznov fa6d2c8
Update crates/env/src/backend.rs
agryaznov e0f2259
doc comments enhanced
agryaznov 3fb9c76
`Mapping::insert()` to use backwards compatible seal fn
agryaznov 06bedc4
unreleased changes planned for 4.x removed from 3.x
agryaznov f5f6bc9
Add more details to the release notes
HCastano 609236a
fix catched issue with changed api function signature
agryaznov 5a03407
fix storage trait dependent func
agryaznov dbee0ab
Apply new versions naming policy: step1. Old versions to keep their n…
agryaznov 7e14d0b
Apply new versions naming policy: step2. Add `deprecated` attr and `#…
agryaznov b1a7393
Apply suggestions from code review
agryaznov 9171c38
fixes after next review round
agryaznov 89b94fc
Merge branch 'v3.x.x' into ag-3.3.0-hotfixes
agryaznov 05f7e82
more fixes after the review round
agryaznov 2466027
fmt
agryaznov 180af6c
Merge branch 'v3.x.x' into ag-3.3.0-hotfixes
agryaznov ddebf6c
spellcheck config fix
agryaznov 28ee702
Small wording fixes
HCastano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,36 @@ | ||
| # [Unreleased] | ||
|
|
||
| # Version 3.3.0 | ||
|
|
||
| This release restores SemVer compatibility in the 3.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). | ||
| - Under the hood this 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 +42,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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.