Skip to content

Commit 09f5fba

Browse files
author
German
authored
Release 5.0.0-alpha (#1900)
* fresh up the changelog and bump the version * move entries around * bump parity-scale-codec * bump drink * avoid cycling dependency in a workspace * replace another cyclic dependency * fix dependency in ink_storage
1 parent b61123f commit 09f5fba

File tree

47 files changed

+108
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+108
-70
lines changed

CHANGELOG.md

+47-9
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,61 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8-
- Stabilize `call_runtime`[#1749](https://github.com/paritytech/ink/pull/1749)
9-
- Make E2E testcases generic over `E2EBackend` trait - [#1867](https://github.com/paritytech/ink/pull/1867)
10-
- Modify static buffer size via environmental variables - [#1869](https://github.com/paritytech/ink/pull/1869)
11-
- Persist static buffer size in metadata - [#1880](https://github.com/paritytech/ink/pull/1880)
12-
- Add backend choice to the E2E testcase configuration ‒ [#1864](https://github.com/paritytech/ink/pull/1864)
138

14-
### Changed
15-
- Reexport `scale` dependencies, introduce `#[ink::scale_derive]`[#1890](https://github.com/paritytech/ink/pull/1890)
9+
## Version 5.0.0-alpha
10+
11+
The preview release of the ink! 5.0.0 release.
12+
This release addresses the majority of issues raised in the OpenZeppelin audit
13+
in particular we addressed the proxy selector clashing attack.
14+
As of this release, ink! only allows exactly one other message with a well-known reserved selector to be defined.
15+
You can read more about the change in the [PR](https://github.com/paritytech/ink/pull/1708)
16+
17+
There are also other notable changes:
18+
19+
- Rework of event definitions - [#1827](https://github.com/paritytech/ink/pull/1708).
20+
- Updated upgradeable contract example illustrating `delegate_call`
21+
- Removal of unchecked arithmetic. `cargo-contract` will fail compiling the contract with raw arithmetic operations.
22+
- Introduction of an alternative off-chain E2E testing backend, drink!
23+
**Big thanks to @pmikolajczyk41 for this massive contribution!**
24+
25+
You can see a more detailed log of changes below:
1626

1727
### Added
18-
- Schema generation - [#1765](https://github.com/paritytech/ink/pull/1765)
19-
- Add `set_block_number` to off-chain test api `Engine` - [#1806](https://github.com/paritytech/ink/pull/1806)
28+
- [Drink backend]: allow for arbitrary runtime - [#1892](https://github.com/paritytech/ink/pull/1892)
29+
- [Drink backend]: support runtime call - [#1891](https://github.com/paritytech/ink/pull/1891)
30+
- Reexport `scale` dependencies, introduce `#[ink::scale_derive]` - [#1890](https://github.com/paritytech/ink/pull/1890)
31+
- Upgradeable contracts example - [#1889](https://github.com/paritytech/ink/pull/1889)
32+
- Persist static buffer size in metadata - [#1880](https://github.com/paritytech/ink/pull/1880)
33+
- Modify static buffer size via environmental variables - [#1869](https://github.com/paritytech/ink/pull/1869)
34+
- [Drink backend]: Make tests generic `E2EBackend` trait - [#1867](https://github.com/paritytech/ink/pull/1867)
35+
- [Drink backend]: Backend choice ‒ [#1864](https://github.com/paritytech/ink/pull/1864)
36+
- [Drink backend]: Backend traits - [#1857](https://github.com/paritytech/ink/pull/1857)
37+
- [Drink backend]: Abstract error and result structs - [#1844](https://github.com/paritytech/ink/pull/1844)
2038
- Added `sr25519_verify` function to `ink_env` [#1840](https://github.com/paritytech/ink/pull/1840)
39+
- Warn when primitive number is annotated as event topic - [#1837](https://github.com/paritytech/ink/pull/1837)
40+
- Events `2.0` - [#1827](https://github.com/paritytech/ink/pull/1810)
41+
- Add `set_block_number` to off-chain test api `Engine` - [#1806](https://github.com/paritytech/ink/pull/1806)
42+
- Stabilize `call_runtime`[#1749](https://github.com/paritytech/ink/pull/1749)
43+
- Schema generation - [#1765](https://github.com/paritytech/ink/pull/1765)
44+
- Restrict wildcard selectors to have exactly one other message - [#1708](https://github.com/paritytech/ink/pull/1708)
2145

2246
### Changed
47+
- Reexport `scale` dependencies, introduce `#[ink::scale_derive]`[#1890](https://github.com/paritytech/ink/pull/1890)
48+
- `[ink_e2e]` build contracts at runtime instead of during codegen - [#1881](https://github.com/paritytech/ink/pull/1881)
49+
- Use of workspace dependencies and properties - [#1835](https://github.com/paritytech/ink/pull/1835)
50+
- Remove of unchecked arithmetic - [#1831](https://github.com/paritytech/ink/pull/1831)
51+
- E2E crate refactoring - [#1830](https://github.com/paritytech/ink/pull/1830)
52+
- Use `decode_all`` for decoding cross contract call result - [#1810](https://github.com/paritytech/ink/pull/1810)
2353
- E2E: improve call API, remove `build_message` + callback - [#1782](https://github.com/paritytech/ink/pull/1782)
2454

55+
## 4.3.0
56+
57+
### Fixed
58+
59+
- Fix E2E tests for newer rust toolchain & contracts node - #[1884](https://github.com/paritytech/ink/pull/1884)
60+
- Enable Rust >= `1.70`, update `subxt` and `contract-build` - [#1855](https://github.com/paritytech/ink/pull/1855)
61+
- Fix unsupported `--ws-port` argument - [#1850](https://github.com/paritytech/ink/pull/1850)
62+
2563
## Version 4.2.0
2664

2765
### Added

Cargo.toml

+16-16
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ homepage = "https://www.parity.io/"
2828
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
2929
license = "Apache-2.0"
3030
repository = "https://github.com/paritytech/ink"
31-
version = "4.2.0"
31+
version = "5.0.0-alpha"
3232

3333
[workspace.dependencies]
3434
arrayref = { version = "0.3" }
@@ -38,7 +38,7 @@ cargo_metadata = { version = "0.17.0" }
3838
cfg-if = { version = "1.0" }
3939
contract-build = { version = "3.2.0" }
4040
derive_more = { version = "0.99.17", default-features = false }
41-
drink = { version = "=0.1.6" }
41+
drink = { version = "=0.1.7" }
4242
either = { version = "1.5", default-features = false }
4343
funty = { version = "2.0.0" }
4444
heck = { version = "0.4.0" }
@@ -54,7 +54,7 @@ quickcheck = { version = "1" }
5454
quickcheck_macros = { version = "1" }
5555
quote = { version = "1" }
5656
rlibc = { version = "1" }
57-
scale = { package = "parity-scale-codec", version = "3.4", default-features = false, features = ["derive"] }
57+
scale = { package = "parity-scale-codec", version = "3.6", default-features = false, features = ["derive"] }
5858
scale-decode = { version = "0.9.0", default-features = false }
5959
scale-encode = { version = "0.5.0", default-features = false }
6060
scale-info = { version = "2.6", default-features = false }
@@ -87,19 +87,19 @@ sp-runtime = { version = "25.0.0", default-features = false }
8787
sp-weights = { version = "21.0.0", default-features = false }
8888

8989
# Local dependencies
90-
ink = { version = "=4.2.0", path = "crates/ink", default-features = false }
91-
ink_allocator = { version = "=4.2.0", path = "crates/allocator", default-features = false }
92-
ink_codegen = { version = "=4.2.0", path = "crates/ink/codegen", default-features = false }
93-
ink_e2e_macro = { version = "=4.2.0", path = "crates/e2e/macro", default-features = false }
94-
ink_engine = { version = "=4.2.0", path = "crates/engine", default-features = false }
95-
ink_env = { version = "=4.2.0", path = "crates/env", default-features = false }
96-
ink_ir = { version = "=4.2.0", path = "crates/ink/ir", default-features = false }
97-
ink_macro = { version = "=4.2.0", path = "crates/ink/macro", default-features = false }
98-
ink_metadata = { version = "=4.2.0", path = "crates/metadata", default-features = false }
99-
ink_prelude = { version = "=4.2.0", path = "crates/prelude", default-features = false }
100-
ink_primitives = { version = "=4.2.0", path = "crates/primitives", default-features = false }
101-
ink_storage = { version = "=4.2.0", path = "crates/storage", default-features = false }
102-
ink_storage_traits = { version = "=4.2.0", path = "crates/storage/traits", default-features = false }
90+
ink = { version = "=5.0.0-alpha", path = "crates/ink", default-features = false }
91+
ink_allocator = { version = "=5.0.0-alpha", path = "crates/allocator", default-features = false }
92+
ink_codegen = { version = "=5.0.0-alpha", path = "crates/ink/codegen", default-features = false }
93+
ink_e2e_macro = { version = "=5.0.0-alpha", path = "crates/e2e/macro", default-features = false }
94+
ink_engine = { version = "=5.0.0-alpha", path = "crates/engine", default-features = false }
95+
ink_env = { version = "=5.0.0-alpha", path = "crates/env", default-features = false }
96+
ink_ir = { version = "=5.0.0-alpha", path = "crates/ink/ir", default-features = false }
97+
ink_macro = { version = "=5.0.0-alpha", path = "crates/ink/macro", default-features = false }
98+
ink_metadata = { version = "=5.0.0-alpha", path = "crates/metadata", default-features = false }
99+
ink_prelude = { version = "=5.0.0-alpha", path = "crates/prelude", default-features = false }
100+
ink_primitives = { version = "=5.0.0-alpha", path = "crates/primitives", default-features = false }
101+
ink_storage = { version = "=5.0.0-alpha", path = "crates/storage", default-features = false }
102+
ink_storage_traits = { version = "=5.0.0-alpha", path = "crates/storage/traits", default-features = false }
103103

104104
[profile.release]
105105
panic = "abort"

crates/env/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ scale-encode = { workspace = true, optional = true }
5555
scale-info = { workspace = true, features = ["derive"], optional = true }
5656

5757
[dev-dependencies]
58-
ink = { workspace = true }
58+
ink = { path = "../ink" }
5959

6060
[features]
6161
default = ["std"]

crates/ink/codegen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ name = "ink_codegen"
1919

2020
[dependencies]
2121
ink_primitives = { workspace = true }
22-
ir = { version = "=4.2.0", package = "ink_ir", path = "../ir", default-features = false }
22+
ir = { version = "=5.0.0-alpha", package = "ink_ir", path = "../ir", default-features = false }
2323
quote = { workspace = true }
2424
syn = { workspace = true, features = ["parsing", "full", "extra-traits"] }
2525
proc-macro2 = { workspace = true }

crates/ink/macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ quote = { workspace = true }
2727

2828
[dev-dependencies]
2929
ink_env = { workspace = true, default-features = true }
30-
ink = { workspace = true, default-features = true }
30+
ink = { path = "..", default-features = true }
3131
ink_metadata = { workspace = true, default-features = true }
3232
ink_prelude = { workspace = true, default-features = true }
3333
ink_storage = { workspace = true, default-features = true }

crates/storage/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ quickcheck = { workspace = true }
3232
quickcheck_macros = { workspace = true }
3333
itertools = { workspace = true, default-features = true }
3434

35-
ink = { workspace = true }
35+
ink = { path = "../ink"}
3636

3737
[features]
3838
default = ["std"]

integration-tests/basic-contract-caller/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "basic-contract-caller"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/basic-contract-caller/other-contract/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "other-contract"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/call-builder-return-value/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "call_builder_return_value"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/contract-terminate/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "contract_terminate"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/contract-transfer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "contract_transfer"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/custom-allocator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "custom-allocator"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/custom-environment/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "custom-environment"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/dns/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dns"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/e2e-call-runtime/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "e2e_call_runtime"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/e2e-runtime-only-backend/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "e2e-runtime-only-backend"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/erc1155/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "erc1155"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/erc20/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "erc20"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/erc721/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "erc721"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/events/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "events"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/flipper/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "flipper"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/incrementer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "incrementer"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/lang-err-integration-tests/call-builder-delegate/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "call_builder_delegate"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/lang-err-integration-tests/call-builder/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "call_builder"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/lang-err-integration-tests/constructors-return-value/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "constructors_return_value"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/lang-err-integration-tests/contract-ref/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "contract_ref"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

integration-tests/lang-err-integration-tests/integration-flipper/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "integration_flipper"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/mapping-integration-tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mapping-integration-tests"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/mother/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mother"
33
description = "Mother of all contracts"
4-
version = "4.2.0"
4+
version = "5.0.0-alpha"
55
authors = ["Parity Technologies <[email protected]>"]
66
edition = "2021"
77
publish = false

integration-tests/multi-contract-caller/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "multi-contract-caller"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/multi-contract-caller/accumulator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "accumulator"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

integration-tests/multi-contract-caller/adder/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "adder"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

integration-tests/multi-contract-caller/subber/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "subber"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

integration-tests/multisig/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "multisig"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

integration-tests/payment-channel/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "payment_channel"
3-
version = "4.2.0"
3+
version = "5.0.0-alpha"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66
publish = false

0 commit comments

Comments
 (0)