From b5613adc0828f50a016a8c60db3ce7ad5ed3beda Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 14 Feb 2023 11:58:24 +0000 Subject: [PATCH 1/8] Bump version --- crates/allocator/Cargo.toml | 2 +- crates/e2e/Cargo.toml | 10 +++++----- crates/e2e/macro/Cargo.toml | 4 ++-- crates/engine/Cargo.toml | 4 ++-- crates/env/Cargo.toml | 14 +++++++------- crates/ink/Cargo.toml | 14 +++++++------- crates/ink/codegen/Cargo.toml | 6 +++--- crates/ink/ir/Cargo.toml | 2 +- crates/ink/macro/Cargo.toml | 8 ++++---- crates/metadata/Cargo.toml | 6 +++--- crates/prelude/Cargo.toml | 2 +- crates/primitives/Cargo.toml | 4 ++-- crates/storage/Cargo.toml | 12 ++++++------ crates/storage/traits/Cargo.toml | 8 ++++---- examples/contract-terminate/Cargo.toml | 2 +- examples/contract-transfer/Cargo.toml | 2 +- examples/custom-environment/Cargo.toml | 2 +- examples/delegator/Cargo.toml | 2 +- examples/delegator/accumulator/Cargo.toml | 2 +- examples/delegator/adder/Cargo.toml | 2 +- examples/delegator/subber/Cargo.toml | 2 +- examples/dns/Cargo.toml | 2 +- examples/erc1155/Cargo.toml | 2 +- examples/erc20/Cargo.toml | 2 +- examples/erc721/Cargo.toml | 2 +- examples/flipper/Cargo.toml | 2 +- examples/incrementer/Cargo.toml | 2 +- .../call-builder/Cargo.toml | 2 +- .../constructors-return-value/Cargo.toml | 2 +- .../contract-ref/Cargo.toml | 2 +- .../integration-flipper/Cargo.toml | 2 +- examples/mapping_integration_tests/Cargo.toml | 2 +- examples/mother/Cargo.toml | 2 +- examples/multisig/Cargo.toml | 2 +- examples/payment-channel/Cargo.toml | 2 +- examples/psp22-extension/Cargo.toml | 2 +- examples/rand-extension/Cargo.toml | 2 +- examples/trait-erc20/Cargo.toml | 2 +- examples/trait-flipper/Cargo.toml | 2 +- examples/trait-incrementer/Cargo.toml | 2 +- examples/trait-incrementer/traits/Cargo.toml | 2 +- .../upgradeable-contracts/forward-calls/Cargo.toml | 2 +- .../upgradeable-contracts/set-code-hash/Cargo.toml | 2 +- .../set-code-hash/updated-incrementer/Cargo.toml | 2 +- linting/Cargo.toml | 2 +- 45 files changed, 79 insertions(+), 79 deletions(-) diff --git a/crates/allocator/Cargo.toml b/crates/allocator/Cargo.toml index 24656824977..93c760e4eb0 100644 --- a/crates/allocator/Cargo.toml +++ b/crates/allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_allocator" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/e2e/Cargo.toml b/crates/e2e/Cargo.toml index c4741b1e912..3def88e9f79 100644 --- a/crates/e2e/Cargo.toml +++ b/crates/e2e/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_e2e" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" @@ -15,10 +15,10 @@ categories = ["no-std", "embedded"] include = ["/Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"] [dependencies] -ink_e2e_macro = { version = "4.0.0-rc", path = "./macro" } -ink = { version = "4.0.0-rc", path = "../ink" } -ink_env = { version = "4.0.0-rc", path = "../env" } -ink_primitives = { version = "4.0.0-rc", path = "../primitives" } +ink_e2e_macro = { version = "4.0.0", path = "./macro" } +ink = { version = "4.0.0", path = "../ink" } +ink_env = { version = "4.0.0", path = "../env" } +ink_primitives = { version = "4.0.0", path = "../primitives" } contract-metadata = { version = "2.0.0-rc.1" } funty = "2.0.0" diff --git a/crates/e2e/macro/Cargo.toml b/crates/e2e/macro/Cargo.toml index 9fa931e054f..74bdc1ec5a4 100644 --- a/crates/e2e/macro/Cargo.toml +++ b/crates/e2e/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_e2e_macro" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" @@ -19,7 +19,7 @@ name = "ink_e2e_macro" proc-macro = true [dependencies] -ink_ir = { version = "4.0.0-rc", path = "../../ink/ir" } +ink_ir = { version = "4.0.0", path = "../../ink/ir" } contract-build = "2.0.0-rc.1" derive_more = "0.99.17" env_logger = "0.10.0" diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index cba61f5bbba..7ce92c97a7c 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_engine" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Michael Müller "] edition = "2021" @@ -15,7 +15,7 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_primitives = { version = "4.0.0-rc", path = "../../crates/primitives", default-features = false } +ink_primitives = { version = "4.0.0", path = "../../crates/primitives", 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"] } diff --git a/crates/env/Cargo.toml b/crates/env/Cargo.toml index ae77b98de15..d5785848d73 100644 --- a/crates/env/Cargo.toml +++ b/crates/env/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_env" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" @@ -15,11 +15,11 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_metadata = { version = "4.0.0-rc", path = "../metadata", default-features = false, features = ["derive"], optional = true } -ink_allocator = { version = "4.0.0-rc", path = "../allocator", default-features = false } -ink_storage_traits = { version = "4.0.0-rc", path = "../storage/traits", default-features = false } -ink_prelude = { version = "4.0.0-rc", path = "../prelude", default-features = false } -ink_primitives = { version = "4.0.0-rc", path = "../primitives", default-features = false } +ink_metadata = { version = "4.0.0", path = "../metadata", default-features = false, features = ["derive"], optional = true } +ink_allocator = { version = "4.0.0", path = "../allocator", default-features = false } +ink_storage_traits = { version = "4.0.0", path = "../storage/traits", default-features = false } +ink_prelude = { version = "4.0.0", path = "../prelude", default-features = false } +ink_primitives = { version = "4.0.0", path = "../primitives", 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"] } @@ -33,7 +33,7 @@ static_assertions = "1.1" rlibc = "1" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -ink_engine = { version = "4.0.0-rc", path = "../engine/", optional = true } +ink_engine = { version = "4.0.0", path = "../engine/", optional = true } # Hashes for the off-chain environment. sha2 = { version = "0.10", optional = true } diff --git a/crates/ink/Cargo.toml b/crates/ink/Cargo.toml index b3e5813694f..900ffc0b08b 100644 --- a/crates/ink/Cargo.toml +++ b/crates/ink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" rust-version = "1.63" @@ -16,12 +16,12 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_env = { version = "4.0.0-rc", path = "../env", default-features = false } -ink_storage = { version = "4.0.0-rc", path = "../storage", default-features = false } -ink_primitives = { version = "4.0.0-rc", path = "../primitives", default-features = false } -ink_metadata = { version = "4.0.0-rc", path = "../metadata", default-features = false, optional = true } -ink_prelude = { version = "4.0.0-rc", path = "../prelude", default-features = false } -ink_macro = { version = "4.0.0-rc", path = "macro", default-features = false } +ink_env = { version = "4.0.0", path = "../env", default-features = false } +ink_storage = { version = "4.0.0", path = "../storage", default-features = false } +ink_primitives = { version = "4.0.0", path = "../primitives", default-features = false } +ink_metadata = { version = "4.0.0", path = "../metadata", default-features = false, optional = true } +ink_prelude = { version = "4.0.0", path = "../prelude", default-features = false } +ink_macro = { version = "4.0.0", path = "macro", 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"] } diff --git a/crates/ink/codegen/Cargo.toml b/crates/ink/codegen/Cargo.toml index 8452718f9a0..a6bd06a8058 100644 --- a/crates/ink/codegen/Cargo.toml +++ b/crates/ink/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_codegen" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" @@ -18,8 +18,8 @@ include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] name = "ink_codegen" [dependencies] -ink_primitives = { version = "4.0.0-rc", path = "../../primitives" } -ir = { version = "4.0.0-rc", package = "ink_ir", path = "../ir", default-features = false } +ink_primitives = { version = "4.0.0", path = "../../primitives" } +ir = { version = "4.0.0", package = "ink_ir", path = "../ir", default-features = false } quote = "1" syn = { version = "1.0", features = ["parsing", "full", "extra-traits"] } proc-macro2 = "1.0" diff --git a/crates/ink/ir/Cargo.toml b/crates/ink/ir/Cargo.toml index 9ad34a022c7..d95aae36847 100644 --- a/crates/ink/ir/Cargo.toml +++ b/crates/ink/ir/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_ir" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/ink/macro/Cargo.toml b/crates/ink/macro/Cargo.toml index ce90e59b8a8..0fee593c1b6 100644 --- a/crates/ink/macro/Cargo.toml +++ b/crates/ink/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_macro" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" @@ -15,9 +15,9 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_ir = { version = "4.0.0-rc", path = "../ir", default-features = false } -ink_codegen = { version = "4.0.0-rc", path = "../codegen", default-features = false } -ink_primitives = { version = "4.0.0-rc", path = "../../primitives/", default-features = false } +ink_ir = { version = "4.0.0", path = "../ir", default-features = false } +ink_codegen = { version = "4.0.0", path = "../codegen", default-features = false } +ink_primitives = { version = "4.0.0", path = "../../primitives/", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } syn = "1" diff --git a/crates/metadata/Cargo.toml b/crates/metadata/Cargo.toml index ee4515474a7..68e441a3b49 100644 --- a/crates/metadata/Cargo.toml +++ b/crates/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_metadata" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" @@ -15,8 +15,8 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_prelude = { version = "4.0.0-rc", path = "../prelude/", default-features = false } -ink_primitives = { version = "4.0.0-rc", path = "../primitives/", default-features = false } +ink_prelude = { version = "4.0.0", path = "../prelude/", default-features = false } +ink_primitives = { version = "4.0.0", path = "../primitives/", default-features = false } serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] } impl-serde = "0.4.0" diff --git a/crates/prelude/Cargo.toml b/crates/prelude/Cargo.toml index aad928592eb..051ce919f43 100644 --- a/crates/prelude/Cargo.toml +++ b/crates/prelude/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_prelude" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 599e4fcae81..90f8e9a175f 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_primitives" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" @@ -16,7 +16,7 @@ include = ["/Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"] [dependencies] derive_more = { version = "0.99", default-features = false, features = ["from", "display"] } -ink_prelude = { version = "4.0.0-rc", path = "../prelude/", default-features = false } +ink_prelude = { version = "4.0.0", path = "../prelude/", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] } scale-info = { version = "2.3", default-features = false, features = ["derive"], optional = true } xxhash-rust = { version = "0.8", features = ["const_xxh32"] } diff --git a/crates/storage/Cargo.toml b/crates/storage/Cargo.toml index 33247247302..9ac67ef2b5f 100644 --- a/crates/storage/Cargo.toml +++ b/crates/storage/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_storage" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" @@ -15,11 +15,11 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_env = { version = "4.0.0-rc", path = "../env/", default-features = false } -ink_metadata = { version = "4.0.0-rc", path = "../metadata/", default-features = false, features = ["derive"], optional = true } -ink_primitives = { version = "4.0.0-rc", path = "../primitives/", default-features = false } -ink_storage_traits = { version = "4.0.0-rc", path = "traits", default-features = false } -ink_prelude = { version = "4.0.0-rc", path = "../prelude/", default-features = false } +ink_env = { version = "4.0.0", path = "../env/", default-features = false } +ink_metadata = { version = "4.0.0", path = "../metadata/", default-features = false, features = ["derive"], optional = true } +ink_primitives = { version = "4.0.0", path = "../primitives/", default-features = false } +ink_storage_traits = { version = "4.0.0", path = "traits", default-features = false } +ink_prelude = { version = "4.0.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"] } diff --git a/crates/storage/traits/Cargo.toml b/crates/storage/traits/Cargo.toml index 4762f9a04cc..e0cb11f0430 100644 --- a/crates/storage/traits/Cargo.toml +++ b/crates/storage/traits/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_storage_traits" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" @@ -15,9 +15,9 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_metadata = { version = "4.0.0-rc", path = "../../metadata", default-features = false, features = ["derive"], optional = true } -ink_primitives = { version = "4.0.0-rc", path = "../../primitives", default-features = false } -ink_prelude = { version = "4.0.0-rc", path = "../../prelude", default-features = false } +ink_metadata = { version = "4.0.0", path = "../../metadata", default-features = false, features = ["derive"], optional = true } +ink_primitives = { version = "4.0.0", path = "../../primitives", default-features = false } +ink_prelude = { version = "4.0.0", path = "../../prelude", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] } scale-info = { version = "2.3", default-features = false, features = ["derive"], optional = true } syn = { version = "1", features = ["full"] } diff --git a/examples/contract-terminate/Cargo.toml b/examples/contract-terminate/Cargo.toml index 10ddecd289d..1addc4d6196 100644 --- a/examples/contract-terminate/Cargo.toml +++ b/examples/contract-terminate/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract_terminate" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/contract-transfer/Cargo.toml b/examples/contract-transfer/Cargo.toml index 201f6bfe5eb..ece4b4ad938 100644 --- a/examples/contract-transfer/Cargo.toml +++ b/examples/contract-transfer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract_transfer" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/custom-environment/Cargo.toml b/examples/custom-environment/Cargo.toml index 98810d18aea..242d04e5f0e 100644 --- a/examples/custom-environment/Cargo.toml +++ b/examples/custom-environment/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "custom-environment" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/delegator/Cargo.toml b/examples/delegator/Cargo.toml index dab779fca69..b8db2fbb75c 100644 --- a/examples/delegator/Cargo.toml +++ b/examples/delegator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "delegator" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/delegator/accumulator/Cargo.toml b/examples/delegator/accumulator/Cargo.toml index 4320301cc94..1737c20542c 100644 --- a/examples/delegator/accumulator/Cargo.toml +++ b/examples/delegator/accumulator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "accumulator" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/delegator/adder/Cargo.toml b/examples/delegator/adder/Cargo.toml index 4277a3f9622..6f3b423c91a 100644 --- a/examples/delegator/adder/Cargo.toml +++ b/examples/delegator/adder/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "adder" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/delegator/subber/Cargo.toml b/examples/delegator/subber/Cargo.toml index dd1528fba54..39540d65778 100644 --- a/examples/delegator/subber/Cargo.toml +++ b/examples/delegator/subber/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subber" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/dns/Cargo.toml b/examples/dns/Cargo.toml index b3220929dac..858d21e339a 100644 --- a/examples/dns/Cargo.toml +++ b/examples/dns/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dns" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc1155/Cargo.toml b/examples/erc1155/Cargo.toml index c712787ba58..d144477a620 100644 --- a/examples/erc1155/Cargo.toml +++ b/examples/erc1155/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc1155" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc20/Cargo.toml b/examples/erc20/Cargo.toml index ab215f6f271..6897fa22e6d 100644 --- a/examples/erc20/Cargo.toml +++ b/examples/erc20/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc20" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc721/Cargo.toml b/examples/erc721/Cargo.toml index ad5666e9332..2be9c3e7a50 100644 --- a/examples/erc721/Cargo.toml +++ b/examples/erc721/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc721" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/flipper/Cargo.toml b/examples/flipper/Cargo.toml index 78a5acd910a..89354f77dd8 100644 --- a/examples/flipper/Cargo.toml +++ b/examples/flipper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flipper" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/incrementer/Cargo.toml b/examples/incrementer/Cargo.toml index 580af7198b0..57ce4b62c38 100644 --- a/examples/incrementer/Cargo.toml +++ b/examples/incrementer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "incrementer" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/lang-err-integration-tests/call-builder/Cargo.toml b/examples/lang-err-integration-tests/call-builder/Cargo.toml index 88a3c924c05..73b41c29394 100755 --- a/examples/lang-err-integration-tests/call-builder/Cargo.toml +++ b/examples/lang-err-integration-tests/call-builder/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "call_builder" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/lang-err-integration-tests/constructors-return-value/Cargo.toml b/examples/lang-err-integration-tests/constructors-return-value/Cargo.toml index e37ee7d3b72..3d3edf83b1e 100644 --- a/examples/lang-err-integration-tests/constructors-return-value/Cargo.toml +++ b/examples/lang-err-integration-tests/constructors-return-value/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "constructors_return_value" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/lang-err-integration-tests/contract-ref/Cargo.toml b/examples/lang-err-integration-tests/contract-ref/Cargo.toml index 602cf6852be..ed9255d3817 100755 --- a/examples/lang-err-integration-tests/contract-ref/Cargo.toml +++ b/examples/lang-err-integration-tests/contract-ref/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract_ref" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/lang-err-integration-tests/integration-flipper/Cargo.toml b/examples/lang-err-integration-tests/integration-flipper/Cargo.toml index 333b1c88772..21646e65c32 100644 --- a/examples/lang-err-integration-tests/integration-flipper/Cargo.toml +++ b/examples/lang-err-integration-tests/integration-flipper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "integration_flipper" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/mapping_integration_tests/Cargo.toml b/examples/mapping_integration_tests/Cargo.toml index 43e87109d08..5f4143be05d 100755 --- a/examples/mapping_integration_tests/Cargo.toml +++ b/examples/mapping_integration_tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mapping-integration-tests" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/mother/Cargo.toml b/examples/mother/Cargo.toml index 134ac82822f..a87164ec45b 100755 --- a/examples/mother/Cargo.toml +++ b/examples/mother/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mother" description = "Mother of all contracts" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/multisig/Cargo.toml b/examples/multisig/Cargo.toml index 17c3f9018bb..56d1eca4906 100755 --- a/examples/multisig/Cargo.toml +++ b/examples/multisig/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multisig" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/payment-channel/Cargo.toml b/examples/payment-channel/Cargo.toml index b9a81693c91..68dc1dd7be4 100755 --- a/examples/payment-channel/Cargo.toml +++ b/examples/payment-channel/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "payment_channel" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/psp22-extension/Cargo.toml b/examples/psp22-extension/Cargo.toml index 2b36dd1be9b..216535dbc96 100755 --- a/examples/psp22-extension/Cargo.toml +++ b/examples/psp22-extension/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "psp22_extension" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/rand-extension/Cargo.toml b/examples/rand-extension/Cargo.toml index aa1fbf920f9..b080d613758 100755 --- a/examples/rand-extension/Cargo.toml +++ b/examples/rand-extension/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rand_extension" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-erc20/Cargo.toml b/examples/trait-erc20/Cargo.toml index 3e2e0d2f7e3..1cf53e0421a 100644 --- a/examples/trait-erc20/Cargo.toml +++ b/examples/trait-erc20/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trait_erc20" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-flipper/Cargo.toml b/examples/trait-flipper/Cargo.toml index 9c530b9831a..01e1baee7d3 100644 --- a/examples/trait-flipper/Cargo.toml +++ b/examples/trait-flipper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trait_flipper" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-incrementer/Cargo.toml b/examples/trait-incrementer/Cargo.toml index f5945e7d9b1..be097158f30 100644 --- a/examples/trait-incrementer/Cargo.toml +++ b/examples/trait-incrementer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trait-incrementer" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-incrementer/traits/Cargo.toml b/examples/trait-incrementer/traits/Cargo.toml index d6fdd2d1445..1002b4f40b5 100644 --- a/examples/trait-incrementer/traits/Cargo.toml +++ b/examples/trait-incrementer/traits/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "traits" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/upgradeable-contracts/forward-calls/Cargo.toml b/examples/upgradeable-contracts/forward-calls/Cargo.toml index a778c80f721..499e3a5232f 100644 --- a/examples/upgradeable-contracts/forward-calls/Cargo.toml +++ b/examples/upgradeable-contracts/forward-calls/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "forward_calls" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/upgradeable-contracts/set-code-hash/Cargo.toml b/examples/upgradeable-contracts/set-code-hash/Cargo.toml index 3e00ad1945d..09158308728 100644 --- a/examples/upgradeable-contracts/set-code-hash/Cargo.toml +++ b/examples/upgradeable-contracts/set-code-hash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "incrementer" -version = "4.0.0-rc" +version = "4.0.0" edition = "2021" authors = ["Parity Technologies "] publish = false diff --git a/examples/upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml b/examples/upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml index 5756e24d35f..f1400665834 100644 --- a/examples/upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml +++ b/examples/upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "updated-incrementer" -version = "4.0.0-rc" +version = "4.0.0" edition = "2021" authors = ["Parity Technologies "] publish = false diff --git a/linting/Cargo.toml b/linting/Cargo.toml index 104c31296d7..bd5fad9e31f 100644 --- a/linting/Cargo.toml +++ b/linting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_linting" -version = "4.0.0-rc" +version = "4.0.0" authors = ["Parity Technologies "] edition = "2021" publish = false From 88e88e94a0df527b168ddf723a985ba2d8940d64 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 14 Feb 2023 12:04:09 +0000 Subject: [PATCH 2/8] WIP update CHANGELOG.md --- CHANGELOG.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d3f4e86e13..0b3931f3eba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [Version 4.0.0] + +TODO: release summary. Possibly aggregate together all changes since last proper release. ### Added -- Support custom environment in E2E tests - [#1645](https://github.com/paritytech/ink/pull/1645) +- Support custom environment in E2E tests - [#1645](https://github.com/paritytech/ink/pull/1645) ### Changed - E2E: spawn a separate contracts node instance per test ‒ [#1642](https://github.com/paritytech/ink/pull/1642) @@ -41,7 +43,7 @@ breaking or otherwise. - Remove `Default` implementation for AccountId ‒ [#1255](https://github.com/paritytech/ink/pull/1255) ## Version 4.0.0-beta.1 -The coolest feature included in this release is the first first published version of +The coolest feature included in this release is the first published version of ink!'s native ["end-to-end" (E2E) testing framework](https://github.com/paritytech/ink/issues/1234). This enables testing of a contract by deploying and calling it on a Substrate node with From 76c927c2654e64f2e63084820b638c05971d7fa5 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 14 Feb 2023 09:51:02 -0800 Subject: [PATCH 3/8] Add full 4.0 CHANGELOG --- CHANGELOG.md | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b3931f3eba..d34c8f3978d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,12 +8,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 TODO: release summary. Possibly aggregate together all changes since last proper release. +## Version 4.0.0 + ### Added -- Support custom environment in E2E tests - [#1645](https://github.com/paritytech/ink/pull/1645) +- Add `Mapping::contains(key)` and `Mapping::insert_return_size(key, val)` ‒ [#1224](https://github.com/paritytech/ink/pull/1224) +- Add [`payment-channel`](https://github.com/paritytech/ink/tree/master/examples/payment-channel) example ‒ [#1248](https://github.com/paritytech/ink/pull/1248) +- Add `version` field to ink! metadata ‒ [#1313](https://github.com/paritytech/ink/pull/1313) +- The `rand-extension` example has been adapted to an updated version of the `ChainExtension` API ‒ [#1356](https://github.com/paritytech/ink/pull/1356) +- Add `ink_env::pay_with_call!` helper macro for off-chain emulation of sending payments with contract message calls ‒ [#1379](https://github.com/paritytech/ink/pull/1379) +- Allow using `Result` as a return type in constructors ‒ [#1446](https://github.com/paritytech/ink/pull/1446) +- Add `Mapping::take()` function allowing to get a value removing it from storage ‒ [#1461](https://github.com/paritytech/ink/pull/1461) +- Add E2E testing framework MVP ‒ [#1395](https://github.com/paritytech/ink/pull/1395) +- Add E2E tests for `Mapping` functions - [#1492](https://github.com/paritytech/ink/pull/1492) +- E2E: expose call dry-run method ‒ [#1624](https://github.com/paritytech/ink/pull/1624) +- Make cross-contract callee non-optional ‒ [#1636](https://github.com/paritytech/ink/pull/1636) +- Support custom environment in E2E tests - [#1645](https://github.com/paritytech/ink/pull/1645) (thanks [@pmikolajczyk41](https://github.com/pmikolajczyk41)) ### Changed +- Contract size optimization in case contract doesn't accept payment ‒ [#1267](https://github.com/paritytech/ink/pull/1267) (thanks [@xgreenx](https://github.com/xgreenx)). +- Move ink! linter into `ink` repository ‒ [#1361](https://github.com/paritytech/ink/pull/1267) +- Introduce `ink` entrance crate ‒ [#1223](https://github.com/paritytech/ink/pull/1223) +- Use `XXH32` instead of `sha256` for calculating storage keys ‒ [#1393](https://github.com/paritytech/ink/pull/1393) +- Add support for language level errors (`LangError`) ‒ [#1450](https://github.com/paritytech/ink/pull/1450) +- Return `LangError`s from constructors ‒ [#1504](https://github.com/paritytech/ink/pull/1504) +- Update `scale-info` requirement to `2.3` ‒ [#1467](https://github.com/paritytech/ink/pull/1467) +- Merge `Mapping::insert(key, val)` and `Mapping::insert_return_size(key, val)` into one method - [#1463](https://github.com/paritytech/ink/pull/1463) +- FFI: no more `__unstable__` wasm import module ‒ [#1522](https://github.com/paritytech/ink/pull/1522) +- Clean up CallBuilder `return()` type ‒ [#1525](https://github.com/paritytech/ink/pull/1525) +- Fix trait message return type metadata ‒ [#1531](https://github.com/paritytech/ink/pull/1531) +- Bump Dylint dependencies ‒ [#1551](https://github.com/paritytech/ink/pull/1551) +- Stabilize `take_storage` ‒ [#1568](https://github.com/paritytech/ink/pull/1568) +- Chain Extension: Evaluation of method return type at compile time ‒ [#1569](https://github.com/paritytech/ink/pull/1569) +- Make more functions be const ‒ [#1574](https://github.com/paritytech/ink/pull/1574) (thanks [@yjhmelody](https://github.com/yjhmelody)) +- Unify fallible and non fallible `instantiate` methods ‒ [#1591](https://github.com/paritytech/ink/pull/1591) +- Make `CallBuilder` and `CreateBuilder` error handling optional ‒ [#1602](https://github.com/paritytech/ink/pull/1602) +- Rename `CallBuilder::fire()` method to `invoke()` ‒ [#1604](https://github.com/paritytech/ink/pull/1604) +- chore: add minimum rust version to the ink crate ‒ [#1609](https://github.com/paritytech/ink/pull/1609) (thanks [@Kurtsley](https://github.com/Kurtsley)) +- Rename `_checked` codegen call methods with `try_` ‒ [#1621](https://github.com/paritytech/ink/pull/1621) +- Bump Substrate and `subxt` dependencies ‒ [#1549](https://github.com/paritytech/ink/pull/1549) - E2E: spawn a separate contracts node instance per test ‒ [#1642](https://github.com/paritytech/ink/pull/1642) +### Fixed +- Trim single whitespace prefix in the metadata `docs` field ‒ [#1385](https://github.com/paritytech/ink/pull/1385) +- Allow pay_with_call to take multiple arguments ‒ [#1401](https://github.com/paritytech/ink/pull/1401) +- Add Determinism enum from pallet-contracts ‒ [#1547](https://github.com/paritytech/ink/pull/1547) +- Added missed `WhereClosure` for the generics into `storage_item` ‒ [#1536](https://github.com/paritytech/ink/pull/1536) (thanks [@xgreenx](https://github.com/xgreenx)) + +### Removed +- Implement `ecdsa_to_eth_address()` and remove `eth_compatibility` crate ‒ [#1233](https://github.com/paritytech/ink/pull/1233) +- Remove `wee-alloc` ‒ [#1403](https://github.com/paritytech/ink/pull/1403) +- Remove `ink_env::random` function ‒ [#1442](https://github.com/paritytech/ink/pull/1442) +- Remove `Default` implementation for AccountId ‒ [#1255](https://github.com/paritytech/ink/pull/1255) + ## Version 4.0.0-rc The first release candidate is here! This is the first release which could become the final From 5de96128a9fb780eeab7eeec89c690d00d00645a Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 14 Feb 2023 10:01:34 -0800 Subject: [PATCH 4/8] Add some external contributor shoutouts --- CHANGELOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d34c8f3978d..a0c4e38f27d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ TODO: release summary. Possibly aggregate together all changes since last proper ### Added - Add `Mapping::contains(key)` and `Mapping::insert_return_size(key, val)` ‒ [#1224](https://github.com/paritytech/ink/pull/1224) -- Add [`payment-channel`](https://github.com/paritytech/ink/tree/master/examples/payment-channel) example ‒ [#1248](https://github.com/paritytech/ink/pull/1248) +- Add [`payment-channel`](https://github.com/paritytech/ink/tree/master/examples/payment-channel) example ‒ [#1248](https://github.com/paritytech/ink/pull/1248) (thanks [@kanishkatn](https://github.com/kanishkatn)!) - Add `version` field to ink! metadata ‒ [#1313](https://github.com/paritytech/ink/pull/1313) - The `rand-extension` example has been adapted to an updated version of the `ChainExtension` API ‒ [#1356](https://github.com/paritytech/ink/pull/1356) - Add `ink_env::pay_with_call!` helper macro for off-chain emulation of sending payments with contract message calls ‒ [#1379](https://github.com/paritytech/ink/pull/1379) @@ -22,10 +22,10 @@ TODO: release summary. Possibly aggregate together all changes since last proper - Add E2E tests for `Mapping` functions - [#1492](https://github.com/paritytech/ink/pull/1492) - E2E: expose call dry-run method ‒ [#1624](https://github.com/paritytech/ink/pull/1624) - Make cross-contract callee non-optional ‒ [#1636](https://github.com/paritytech/ink/pull/1636) -- Support custom environment in E2E tests - [#1645](https://github.com/paritytech/ink/pull/1645) (thanks [@pmikolajczyk41](https://github.com/pmikolajczyk41)) +- Support custom environment in E2E tests - [#1645](https://github.com/paritytech/ink/pull/1645) (thanks [@pmikolajczyk41](https://github.com/pmikolajczyk41)!) ### Changed -- Contract size optimization in case contract doesn't accept payment ‒ [#1267](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)!) - Move ink! linter into `ink` repository ‒ [#1361](https://github.com/paritytech/ink/pull/1267) - Introduce `ink` entrance crate ‒ [#1223](https://github.com/paritytech/ink/pull/1223) - Use `XXH32` instead of `sha256` for calculating storage keys ‒ [#1393](https://github.com/paritytech/ink/pull/1393) @@ -39,11 +39,11 @@ TODO: release summary. Possibly aggregate together all changes since last proper - Bump Dylint dependencies ‒ [#1551](https://github.com/paritytech/ink/pull/1551) - Stabilize `take_storage` ‒ [#1568](https://github.com/paritytech/ink/pull/1568) - Chain Extension: Evaluation of method return type at compile time ‒ [#1569](https://github.com/paritytech/ink/pull/1569) -- Make more functions be const ‒ [#1574](https://github.com/paritytech/ink/pull/1574) (thanks [@yjhmelody](https://github.com/yjhmelody)) +- Make more functions be const ‒ [#1574](https://github.com/paritytech/ink/pull/1574) (thanks [@yjhmelody](https://github.com/yjhmelody)!) - Unify fallible and non fallible `instantiate` methods ‒ [#1591](https://github.com/paritytech/ink/pull/1591) - Make `CallBuilder` and `CreateBuilder` error handling optional ‒ [#1602](https://github.com/paritytech/ink/pull/1602) - Rename `CallBuilder::fire()` method to `invoke()` ‒ [#1604](https://github.com/paritytech/ink/pull/1604) -- chore: add minimum rust version to the ink crate ‒ [#1609](https://github.com/paritytech/ink/pull/1609) (thanks [@Kurtsley](https://github.com/Kurtsley)) +- chore: add minimum rust version to the ink crate ‒ [#1609](https://github.com/paritytech/ink/pull/1609) (thanks [@Kurtsley](https://github.com/Kurtsley)!) - Rename `_checked` codegen call methods with `try_` ‒ [#1621](https://github.com/paritytech/ink/pull/1621) - Bump Substrate and `subxt` dependencies ‒ [#1549](https://github.com/paritytech/ink/pull/1549) - E2E: spawn a separate contracts node instance per test ‒ [#1642](https://github.com/paritytech/ink/pull/1642) @@ -52,7 +52,7 @@ TODO: release summary. Possibly aggregate together all changes since last proper - Trim single whitespace prefix in the metadata `docs` field ‒ [#1385](https://github.com/paritytech/ink/pull/1385) - Allow pay_with_call to take multiple arguments ‒ [#1401](https://github.com/paritytech/ink/pull/1401) - Add Determinism enum from pallet-contracts ‒ [#1547](https://github.com/paritytech/ink/pull/1547) -- Added missed `WhereClosure` for the generics into `storage_item` ‒ [#1536](https://github.com/paritytech/ink/pull/1536) (thanks [@xgreenx](https://github.com/xgreenx)) +- Added missed `WhereClosure` for the generics into `storage_item` ‒ [#1536](https://github.com/paritytech/ink/pull/1536) (thanks [@xgreenx](https://github.com/xgreenx)!) ### Removed - Implement `ecdsa_to_eth_address()` and remove `eth_compatibility` crate ‒ [#1233](https://github.com/paritytech/ink/pull/1233) From 7087fe9f978ed630e9fba16d5b42ac920ac9a162 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 14 Feb 2023 21:15:37 -0800 Subject: [PATCH 5/8] Add blurb and Compatibility section --- CHANGELOG.md | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0c4e38f27d..3c520695f60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,44 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Version 4.0.0] +## Version 4.0.0 -TODO: release summary. Possibly aggregate together all changes since last proper release. +The latest stable release of ink! is here 🥳 -## Version 4.0.0 +This version brings a lot of usability improvements, making the language better suited +for the needs of production parachains. + +A couple of highlights include: +- Changes to how contract storage works, which significantly reduced the sizes of + contract binaries +- A new end-to-end testing framework, letting you easily write integration tests +- Changes to the metadata format, which (in part) makes error handling more expressive + +There's a lot more to dig through, so take some time to poke around the `CHANGELOG` +(including the `4.0.0-alpha` and `4.0.0-beta` releases). + +You may notice there have been a few breaking changes. No need to be scared though, we +wrote up a [migration guide](https://use.ink/faq/migrating-from-ink-3-to-4) covering all +of the breaking changes and how to update your ink! 3.x contract accordingly. + +Thanks to everyone that helped make this release possible ❤️ + +### Compatibility + +In order to build contracts which use ink! `v4.0.0` you need to use +`cargo-contract` +[`v2.0.0`](https://github.com/paritytech/cargo-contract/releases/tag/v2.0.0). +You can install it as follows: + +`cargo install cargo-contract --forced --locked` + +You will also need to use a version of [`pallet-contracts`](https://github.com/paritytech/substrate/tree/master/frame/contracts) +later than [TODO](https://github.com/paritytech/substrate/commit/todo) +(January x, 2023) in your node. + +The [`TODO`](https://github.com/paritytech/substrate-contracts-node/releases/tag/TODO) +release of the [`substrate-contracts-node`](https://github.com/paritytech/substrate-contracts-node) is +compatible with the ink! `4.0.0` release. ### Added - Add `Mapping::contains(key)` and `Mapping::insert_return_size(key, val)` ‒ [#1224](https://github.com/paritytech/ink/pull/1224) @@ -29,6 +62,7 @@ TODO: release summary. Possibly aggregate together all changes since last proper - Move ink! linter into `ink` repository ‒ [#1361](https://github.com/paritytech/ink/pull/1267) - Introduce `ink` entrance crate ‒ [#1223](https://github.com/paritytech/ink/pull/1223) - Use `XXH32` instead of `sha256` for calculating storage keys ‒ [#1393](https://github.com/paritytech/ink/pull/1393) +- Storage Refactoring ‒ [#1331](https://github.com/paritytech/ink/pull/1331) - Add support for language level errors (`LangError`) ‒ [#1450](https://github.com/paritytech/ink/pull/1450) - Return `LangError`s from constructors ‒ [#1504](https://github.com/paritytech/ink/pull/1504) - Update `scale-info` requirement to `2.3` ‒ [#1467](https://github.com/paritytech/ink/pull/1467) @@ -252,6 +286,7 @@ through a feature flag. `wee-alloc` is no longer maintained and we removed suppo ### Changed - Introduce `ink` entrance crate ‒ [#1223](https://github.com/paritytech/ink/pull/1223) - Use `XXH32` instead of `sha256` for calculating storage keys ‒ [#1393](https://github.com/paritytech/ink/pull/1393) +- Storage Refactoring ‒ [#1331](https://github.com/paritytech/ink/pull/1331) ### Fixed - Trim single whitespace prefix in the metadata `docs` field ‒ [#1385](https://github.com/paritytech/ink/pull/1385) From 8ec2427e555da309a7a28641baa4982a49c6a887 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 15 Feb 2023 12:31:52 +0000 Subject: [PATCH 6/8] Insert compatible versions --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c520695f60..6905a490bb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,10 +36,10 @@ You can install it as follows: `cargo install cargo-contract --forced --locked` You will also need to use a version of [`pallet-contracts`](https://github.com/paritytech/substrate/tree/master/frame/contracts) -later than [TODO](https://github.com/paritytech/substrate/commit/todo) -(January x, 2023) in your node. +later than [polkadot-v0.9.37](https://github.com/paritytech/substrate/tree/polkadot-v0.9.37) +in your node. -The [`TODO`](https://github.com/paritytech/substrate-contracts-node/releases/tag/TODO) +The [`v0.24.0`](https://github.com/paritytech/substrate-contracts-node/releases/tag/v0.24.0) release of the [`substrate-contracts-node`](https://github.com/paritytech/substrate-contracts-node) is compatible with the ink! `4.0.0` release. From a2f2e398a62d1c0f59f847f995d2537de67fff25 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 15 Feb 2023 12:33:44 +0000 Subject: [PATCH 7/8] Add link to use.ink migration guide --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6905a490bb6..996043d380d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,8 @@ The [`v0.24.0`](https://github.com/paritytech/substrate-contracts-node/releases/ release of the [`substrate-contracts-node`](https://github.com/paritytech/substrate-contracts-node) is compatible with the ink! `4.0.0` release. +For full compatibility requirements see the [migration guide](https://use.ink/faq/migrating-from-ink-3-to-4/#compatibility). + ### Added - Add `Mapping::contains(key)` and `Mapping::insert_return_size(key, val)` ‒ [#1224](https://github.com/paritytech/ink/pull/1224) - Add [`payment-channel`](https://github.com/paritytech/ink/tree/master/examples/payment-channel) example ‒ [#1248](https://github.com/paritytech/ink/pull/1248) (thanks [@kanishkatn](https://github.com/kanishkatn)!) From 7afcc07f3c930ae1ff05b81fa3e38b7b482b8294 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 15 Feb 2023 16:08:28 +0000 Subject: [PATCH 8/8] Use published version of contract-build 2.0.0 --- crates/e2e/macro/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/e2e/macro/Cargo.toml b/crates/e2e/macro/Cargo.toml index 74bdc1ec5a4..2cb830bda7a 100644 --- a/crates/e2e/macro/Cargo.toml +++ b/crates/e2e/macro/Cargo.toml @@ -20,7 +20,7 @@ proc-macro = true [dependencies] ink_ir = { version = "4.0.0", path = "../../ink/ir" } -contract-build = "2.0.0-rc.1" +contract-build = "2.0.0" derive_more = "0.99.17" env_logger = "0.10.0" log = "0.4.17"