From 10d4a115c1969594fc03947e4aa0f6f39bb8fc79 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 24 Jan 2023 14:28:53 -0800 Subject: [PATCH 1/5] Bump version to `v4.0.0-beta.1` --- 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/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 +- 44 files changed, 78 insertions(+), 78 deletions(-) diff --git a/crates/allocator/Cargo.toml b/crates/allocator/Cargo.toml index 0603cee314..efbf53067b 100644 --- a/crates/allocator/Cargo.toml +++ b/crates/allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_allocator" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/e2e/Cargo.toml b/crates/e2e/Cargo.toml index 252765b6cb..1a4ebe6172 100644 --- a/crates/e2e/Cargo.toml +++ b/crates/e2e/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_e2e" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false @@ -16,10 +16,10 @@ categories = ["no-std", "embedded"] include = ["/Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"] [dependencies] -ink_e2e_macro = { version = "4.0.0-beta", path = "./macro" } -ink = { version = "4.0.0-beta", path = "../ink" } -ink_env = { version = "4.0.0-beta", path = "../env" } -ink_primitives = { version = "4.0.0-beta", path = "../primitives" } +ink_e2e_macro = { version = "4.0.0-beta.1", path = "./macro" } +ink = { version = "4.0.0-beta.1", path = "../ink" } +ink_env = { version = "4.0.0-beta.1", path = "../env" } +ink_primitives = { version = "4.0.0-beta.1", path = "../primitives" } contract-metadata = { version = "2.0.0-rc" } impl-serde = { version = "0.3.1", default-features = false } diff --git a/crates/e2e/macro/Cargo.toml b/crates/e2e/macro/Cargo.toml index 4da41daeac..ecc7880d7c 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false @@ -20,7 +20,7 @@ name = "ink_e2e_macro" proc-macro = true [dependencies] -ink_ir = { version = "4.0.0-beta", path = "../../ink/ir" } +ink_ir = { version = "4.0.0-beta.1", path = "../../ink/ir" } contract-build = "2.0.0-beta.1" derive_more = "0.99.17" env_logger = "0.10.0" diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index e3a716486e..fd56f2151f 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_engine" -version = "4.0.0-beta" +version = "4.0.0-beta.1" 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-beta", path = "../../crates/primitives", default-features = false } +ink_primitives = { version = "4.0.0-beta.1", 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 bacc9ba4af..ea2f94a778 100644 --- a/crates/env/Cargo.toml +++ b/crates/env/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_env" -version = "4.0.0-beta" +version = "4.0.0-beta.1" 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-beta", path = "../metadata", default-features = false, features = ["derive"], optional = true } -ink_allocator = { version = "4.0.0-beta", path = "../allocator", default-features = false } -ink_storage_traits = { version = "4.0.0-beta", path = "../storage/traits", default-features = false } -ink_prelude = { version = "4.0.0-beta", path = "../prelude", default-features = false } -ink_primitives = { version = "4.0.0-beta", path = "../primitives", default-features = false } +ink_metadata = { version = "4.0.0-beta.1", path = "../metadata", default-features = false, features = ["derive"], optional = true } +ink_allocator = { version = "4.0.0-beta.1", path = "../allocator", default-features = false } +ink_storage_traits = { version = "4.0.0-beta.1", path = "../storage/traits", default-features = false } +ink_prelude = { version = "4.0.0-beta.1", path = "../prelude", default-features = false } +ink_primitives = { version = "4.0.0-beta.1", 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-beta", path = "../engine/", optional = true } +ink_engine = { version = "4.0.0-beta.1", 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 d48ae0dc43..224f68dd68 100644 --- a/crates/ink/Cargo.toml +++ b/crates/ink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink" -version = "4.0.0-beta" +version = "4.0.0-beta.1" 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-beta", path = "../env", default-features = false } -ink_storage = { version = "4.0.0-beta", path = "../storage", default-features = false } -ink_primitives = { version = "4.0.0-beta", path = "../primitives", default-features = false } -ink_metadata = { version = "4.0.0-beta", path = "../metadata", default-features = false, optional = true } -ink_prelude = { version = "4.0.0-beta", path = "../prelude", default-features = false } -ink_macro = { version = "4.0.0-beta", path = "macro", default-features = false } +ink_env = { version = "4.0.0-beta.1", path = "../env", default-features = false } +ink_storage = { version = "4.0.0-beta.1", path = "../storage", default-features = false } +ink_primitives = { version = "4.0.0-beta.1", path = "../primitives", default-features = false } +ink_metadata = { version = "4.0.0-beta.1", path = "../metadata", default-features = false, optional = true } +ink_prelude = { version = "4.0.0-beta.1", path = "../prelude", default-features = false } +ink_macro = { version = "4.0.0-beta.1", 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 bb5001ec21..7074068c00 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-beta" +version = "4.0.0-beta.1" 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-beta", path = "../../primitives" } -ir = { version = "4.0.0-beta", package = "ink_ir", path = "../ir", default-features = false } +ink_primitives = { version = "4.0.0-beta.1", path = "../../primitives" } +ir = { version = "4.0.0-beta.1", 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 cfdbf47994..4c99ca9f1d 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/ink/macro/Cargo.toml b/crates/ink/macro/Cargo.toml index f2d1d9b745..db252dc03e 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-beta" +version = "4.0.0-beta.1" 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-beta", path = "../ir", default-features = false } -ink_codegen = { version = "4.0.0-beta", path = "../codegen", default-features = false } -ink_primitives = { version = "4.0.0-beta", path = "../../primitives/", default-features = false } +ink_ir = { version = "4.0.0-beta.1", path = "../ir", default-features = false } +ink_codegen = { version = "4.0.0-beta.1", path = "../codegen", default-features = false } +ink_primitives = { version = "4.0.0-beta.1", 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 6136d28992..5ae6b0e7df 100644 --- a/crates/metadata/Cargo.toml +++ b/crates/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_metadata" -version = "4.0.0-beta" +version = "4.0.0-beta.1" 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-beta", path = "../prelude/", default-features = false } -ink_primitives = { version = "4.0.0-beta", path = "../primitives/", default-features = false } +ink_prelude = { version = "4.0.0-beta.1", path = "../prelude/", default-features = false } +ink_primitives = { version = "4.0.0-beta.1", 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 e2985cfe39..2fd7bfe300 100644 --- a/crates/prelude/Cargo.toml +++ b/crates/prelude/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_prelude" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 39628d8f29..e240f0c5d8 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_primitives" -version = "4.0.0-beta" +version = "4.0.0-beta.1" 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-beta", path = "../prelude/", default-features = false } +ink_prelude = { version = "4.0.0-beta.1", 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 f88b9b33ac..3a265c3a01 100644 --- a/crates/storage/Cargo.toml +++ b/crates/storage/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_storage" -version = "4.0.0-beta" +version = "4.0.0-beta.1" 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-beta", path = "../env/", default-features = false } -ink_metadata = { version = "4.0.0-beta", path = "../metadata/", default-features = false, features = ["derive"], optional = true } -ink_primitives = { version = "4.0.0-beta", path = "../primitives/", default-features = false } -ink_storage_traits = { version = "4.0.0-beta", path = "traits", default-features = false } -ink_prelude = { version = "4.0.0-beta", path = "../prelude/", default-features = false } +ink_env = { version = "4.0.0-beta.1", path = "../env/", default-features = false } +ink_metadata = { version = "4.0.0-beta.1", path = "../metadata/", default-features = false, features = ["derive"], optional = true } +ink_primitives = { version = "4.0.0-beta.1", path = "../primitives/", default-features = false } +ink_storage_traits = { version = "4.0.0-beta.1", path = "traits", default-features = false } +ink_prelude = { version = "4.0.0-beta.1", 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 dfe91043e3..54d14f12a7 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-beta" +version = "4.0.0-beta.1" 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-beta", path = "../../metadata", default-features = false, features = ["derive"], optional = true } -ink_primitives = { version = "4.0.0-beta", path = "../../primitives", default-features = false } -ink_prelude = { version = "4.0.0-beta", path = "../../prelude", default-features = false } +ink_metadata = { version = "4.0.0-beta.1", path = "../../metadata", default-features = false, features = ["derive"], optional = true } +ink_primitives = { version = "4.0.0-beta.1", path = "../../primitives", default-features = false } +ink_prelude = { version = "4.0.0-beta.1", 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 108ae21fee..a2b10ffa02 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/contract-transfer/Cargo.toml b/examples/contract-transfer/Cargo.toml index 8ec070e17f..47f660ccd4 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/delegator/Cargo.toml b/examples/delegator/Cargo.toml index f5258179fc..929247142e 100644 --- a/examples/delegator/Cargo.toml +++ b/examples/delegator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "delegator" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/delegator/accumulator/Cargo.toml b/examples/delegator/accumulator/Cargo.toml index dac4671af4..9ca8573454 100644 --- a/examples/delegator/accumulator/Cargo.toml +++ b/examples/delegator/accumulator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "accumulator" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/delegator/adder/Cargo.toml b/examples/delegator/adder/Cargo.toml index 5c1c7be228..95c6338193 100644 --- a/examples/delegator/adder/Cargo.toml +++ b/examples/delegator/adder/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "adder" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/delegator/subber/Cargo.toml b/examples/delegator/subber/Cargo.toml index 6aa7a4e825..5299948c2e 100644 --- a/examples/delegator/subber/Cargo.toml +++ b/examples/delegator/subber/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subber" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/dns/Cargo.toml b/examples/dns/Cargo.toml index 5f9b41bd30..7f0596032e 100644 --- a/examples/dns/Cargo.toml +++ b/examples/dns/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dns" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc1155/Cargo.toml b/examples/erc1155/Cargo.toml index 5c6e6b1565..2cdaf7e4a2 100644 --- a/examples/erc1155/Cargo.toml +++ b/examples/erc1155/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc1155" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc20/Cargo.toml b/examples/erc20/Cargo.toml index 28f54dfd20..fc482f2d2a 100644 --- a/examples/erc20/Cargo.toml +++ b/examples/erc20/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc20" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc721/Cargo.toml b/examples/erc721/Cargo.toml index 398c4879f2..7215f40a8c 100644 --- a/examples/erc721/Cargo.toml +++ b/examples/erc721/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc721" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/flipper/Cargo.toml b/examples/flipper/Cargo.toml index 466e72e551..094be93ca4 100644 --- a/examples/flipper/Cargo.toml +++ b/examples/flipper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flipper" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/incrementer/Cargo.toml b/examples/incrementer/Cargo.toml index 27489b4b2d..3129f4a61f 100644 --- a/examples/incrementer/Cargo.toml +++ b/examples/incrementer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "incrementer" -version = "4.0.0-beta" +version = "4.0.0-beta.1" 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 e25301189a..66f13e8efc 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-beta" +version = "4.0.0-beta.1" 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 70078f4555..d8eb31b2e8 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-beta" +version = "4.0.0-beta.1" 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 a677509bdc..c90129c63e 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-beta" +version = "4.0.0-beta.1" 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 8ed793d23a..3fdc904515 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/mapping_integration_tests/Cargo.toml b/examples/mapping_integration_tests/Cargo.toml index f62283b136..17d7b1fa27 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/mother/Cargo.toml b/examples/mother/Cargo.toml index 4f4811da28..6a132e9c3c 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/multisig/Cargo.toml b/examples/multisig/Cargo.toml index 2e682eae74..d6c13ed5e5 100755 --- a/examples/multisig/Cargo.toml +++ b/examples/multisig/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multisig" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/payment-channel/Cargo.toml b/examples/payment-channel/Cargo.toml index 1995f63676..06f8246383 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/psp22-extension/Cargo.toml b/examples/psp22-extension/Cargo.toml index 576ab61666..0bbc862cfd 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/rand-extension/Cargo.toml b/examples/rand-extension/Cargo.toml index 90bca51abb..cff66f2a05 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-erc20/Cargo.toml b/examples/trait-erc20/Cargo.toml index 72fcd5c9e0..78433f1875 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-flipper/Cargo.toml b/examples/trait-flipper/Cargo.toml index 285c82cd63..3d59471b7e 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-incrementer/Cargo.toml b/examples/trait-incrementer/Cargo.toml index 1d668accaf..6bb2e373c6 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-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-incrementer/traits/Cargo.toml b/examples/trait-incrementer/traits/Cargo.toml index 82954e8389..c38277ebea 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-beta" +version = "4.0.0-beta.1" 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 d906890b1e..223392920d 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-beta" +version = "4.0.0-beta.1" 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 10168f5b2c..aeedcf2d8c 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-beta" +version = "4.0.0-beta.1" 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 8731cebe19..9252a6f004 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-beta" +version = "4.0.0-beta.1" edition = "2021" authors = ["Parity Technologies "] publish = false diff --git a/linting/Cargo.toml b/linting/Cargo.toml index 6d944540c7..d180ed04f1 100644 --- a/linting/Cargo.toml +++ b/linting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_linting" -version = "4.0.0-beta" +version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" publish = false From 385a49494cb5cdb5785446480aa7f00ce0d464b6 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 24 Jan 2023 14:54:00 -0800 Subject: [PATCH 2/5] Update the `CHANGELOG` --- CHANGELOG.md | 50 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e0e67c50a..6111172d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,26 +4,54 @@ 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 -- 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) -- 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) -- Chain Extension: Evaluation of method return type at compile time - [#1569](https://github.com/paritytech/ink/pull/1569). +## [Unreleased] + +## Version 4.0.0-beta.1 +The coolest feature included in this release is the first 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 +`pallet-contracts`. See the [`erc20` example](./examples/erc20/lib.rs) for usage. ### Breaking Changes -With this release there are three breaking changes related to the `CallBuilder` -`CreateBuilder` and the Chain Extension API. +This release includes a couple of breaking changes. -1. The `invoke()` methods now unwrap the `Result` from `pallet-contracts` under the hood - ([#1602](https://github.com/paritytech/ink/pull/1602)). +1. The `CallBuilder::returns()` method does not require an extra `MessageResult` anymore + as the type is now added under the hood [(#1525)](https://github.com/paritytech/ink/pull/1525) +1. The `CallBuilder::invoke()` and `CreateBuilder::instantiate() `methods now unwrap the + `Result` from `pallet-contracts` under the hood ([#1602](https://github.com/paritytech/ink/pull/1602)) If you wish to handle the error use the new `try_` variants of those methods instead. 1. The `CallBuilder::fire()` method has been renamed to `invoke()` ([#1604](https://github.com/paritytech/ink/pull/1604)) 1. The `returns_result` flag has been removed from the `#[ink(extension = …)]` attribute - ([#1569](https://github.com/paritytech/ink/pull/1569)). + ([#1569](https://github.com/paritytech/ink/pull/1569)) We now infer this information at compile time. If `handle_status` is set to `true`, the return type will still be wrapped into `Result` as before. +1. The Minimum Supported Rust Version (MSRV) has been set to `1.63.0`. This was already + the case, but previously it was enforced by `cargo-contract` instead of ink! + ([#1609](https://github.com/paritytech/ink/pull/1609)) + +### Added +- 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) + +### Fixed +- 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) + +### Changed +- Handle `LangError` from instantiate ‒ [#1512](https://github.com/paritytech/ink/pull/1512) +- 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) +- 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) ## Version 4.0.0-beta From 55a42af511a10d3710185b2bffd88c927da635a0 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 24 Jan 2023 14:57:43 -0800 Subject: [PATCH 3/5] Thank external contributors --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6111172d9c..ff95b1066b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ This release includes a couple of breaking changes. ### Fixed - 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) +- Added missed `WhereClosure` for the generics into `storage_item` ‒ [#1536](https://github.com/paritytech/ink/pull/1536) (thanks [@xgreenx](https://github.com/xgreenx)) ### Changed - Handle `LangError` from instantiate ‒ [#1512](https://github.com/paritytech/ink/pull/1512) @@ -46,12 +46,12 @@ This release includes a couple of breaking changes. - 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) +- 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) +- chore: add minimum rust version to the ink crate ‒ [#1609](https://github.com/paritytech/ink/pull/1609) (thanks [@Kurtsley](https://github.com/Kurtsley)) ## Version 4.0.0-beta From 72f94eda31a659cfaafc8bb00305d8166b26ec31 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 24 Jan 2023 15:03:15 -0800 Subject: [PATCH 4/5] Indicate that we do want to publish `ink_e2e` --- crates/e2e/Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/e2e/Cargo.toml b/crates/e2e/Cargo.toml index 1a4ebe6172..0fb88001d6 100644 --- a/crates/e2e/Cargo.toml +++ b/crates/e2e/Cargo.toml @@ -3,7 +3,6 @@ name = "ink_e2e" version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" -publish = false license = "Apache-2.0" readme = "README.md" From 0e20426f5c7cbd7482f413760f51cf3f0a832669 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Tue, 24 Jan 2023 15:04:10 -0800 Subject: [PATCH 5/5] Same for the `ink_e2e_macro` crate --- crates/e2e/macro/Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/e2e/macro/Cargo.toml b/crates/e2e/macro/Cargo.toml index ecc7880d7c..49ed5a086c 100644 --- a/crates/e2e/macro/Cargo.toml +++ b/crates/e2e/macro/Cargo.toml @@ -3,7 +3,6 @@ name = "ink_e2e_macro" version = "4.0.0-beta.1" authors = ["Parity Technologies "] edition = "2021" -publish = false license = "Apache-2.0" readme = "../README.md"