From d681587e07dd1ed3df5a547717317a983e01ff2b Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 20 Sep 2022 16:50:06 +0100 Subject: [PATCH 01/10] Bump versions --- crates/allocator/Cargo.toml | 2 +- crates/engine/Cargo.toml | 2 +- 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 | 10 +++++----- 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 +- 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 +- 37 files changed, 66 insertions(+), 66 deletions(-) diff --git a/crates/allocator/Cargo.toml b/crates/allocator/Cargo.toml index 03be8d0dd73..e84ea0da29d 100644 --- a/crates/allocator/Cargo.toml +++ b/crates/allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_allocator" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index 58effb5f8bd..c0775653d5e 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_engine" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies ", "Michael Müller "] edition = "2021" diff --git a/crates/env/Cargo.toml b/crates/env/Cargo.toml index 5b7af85966a..f0bc6e817a5 100644 --- a/crates/env/Cargo.toml +++ b/crates/env/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_env" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" 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-alpha.1", path = "../metadata", default-features = false, features = ["derive"], optional = true } -ink_allocator = { version = "4.0.0-alpha.1", path = "../allocator", default-features = false } -ink_storage_traits = { version = "4.0.0-alpha.1", path = "../storage/traits", default-features = false } -ink_prelude = { version = "4.0.0-alpha.1", path = "../prelude", default-features = false } -ink_primitives = { version = "4.0.0-alpha.1", path = "../primitives", default-features = false } +ink_metadata = { version = "4.0.0-alpha.2", path = "../metadata", default-features = false, features = ["derive"], optional = true } +ink_allocator = { version = "4.0.0-alpha.2", path = "../allocator", default-features = false } +ink_storage_traits = { version = "4.0.0-alpha.2", path = "../storage/traits", default-features = false } +ink_prelude = { version = "4.0.0-alpha.2", path = "../prelude", default-features = false } +ink_primitives = { version = "4.0.0-alpha.2", 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-alpha.1", path = "../engine/", optional = true } +ink_engine = { version = "4.0.0-alpha.2", 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 f4bd7004389..7c1b5f2a607 100644 --- a/crates/ink/Cargo.toml +++ b/crates/ink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" @@ -15,12 +15,12 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_env = { version = "4.0.0-alpha.1", path = "../env", default-features = false } -ink_storage = { version = "4.0.0-alpha.1", path = "../storage", default-features = false } -ink_primitives = { version = "4.0.0-alpha.1", path = "../primitives", default-features = false } -ink_metadata = { version = "4.0.0-alpha.1", path = "../metadata", default-features = false, optional = true } -ink_prelude = { version = "4.0.0-alpha.1", path = "../prelude", default-features = false } -ink_macro = { version = "4.0.0-alpha.1", path = "macro", default-features = false } +ink_env = { version = "4.0.0-alpha.2", path = "../env", default-features = false } +ink_storage = { version = "4.0.0-alpha.2", path = "../storage", default-features = false } +ink_primitives = { version = "4.0.0-alpha.2", path = "../primitives", default-features = false } +ink_metadata = { version = "4.0.0-alpha.2", path = "../metadata", default-features = false, optional = true } +ink_prelude = { version = "4.0.0-alpha.2", path = "../prelude", default-features = false } +ink_macro = { version = "4.0.0-alpha.2", 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 ba884e254fe..2fcbd70a964 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-alpha.1" +version = "4.0.0-alpha.2" 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-alpha.1", path = "../../primitives" } -ir = { version = "4.0.0-alpha.1", package = "ink_ir", path = "../ir", default-features = false } +ink_primitives = { version = "4.0.0-alpha.2", path = "../../primitives" } +ir = { version = "4.0.0-alpha.2", 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 4dc691cb996..85475142913 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/ink/macro/Cargo.toml b/crates/ink/macro/Cargo.toml index 45c693ae113..ddebe2d8da8 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-alpha.1" +version = "4.0.0-alpha.2" 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-alpha.1", path = "../ir", default-features = false } -ink_codegen = { version = "4.0.0-alpha.1", path = "../codegen", default-features = false } -ink_primitives = { version = "4.0.0-alpha.1", path = "../../primitives/", default-features = false } +ink_ir = { version = "4.0.0-alpha.2", path = "../ir", default-features = false } +ink_codegen = { version = "4.0.0-alpha.2", path = "../codegen", default-features = false } +ink_primitives = { version = "4.0.0-alpha.2", 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 486d3902358..97a3be6fb17 100644 --- a/crates/metadata/Cargo.toml +++ b/crates/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_metadata" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" 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-alpha.1", path = "../prelude/", default-features = false } -ink_primitives = { version = "4.0.0-alpha.1", path = "../primitives/", default-features = false } +ink_prelude = { version = "4.0.0-alpha.2", path = "../prelude/", default-features = false } +ink_primitives = { version = "4.0.0-alpha.2", 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 d033e46940b..6da53233dac 100644 --- a/crates/prelude/Cargo.toml +++ b/crates/prelude/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_prelude" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies ", "Robin Freyler "] edition = "2021" diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 96c1b81ebc2..2aeee7f32f6 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_primitives" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" 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-alpha.1", path = "../prelude/", default-features = false } +ink_prelude = { version = "4.0.0-alpha.2", path = "../prelude/", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] } scale-info = { version = "2", 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 f6f5f969675..46ca8c80dc0 100644 --- a/crates/storage/Cargo.toml +++ b/crates/storage/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_storage" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" 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-alpha.1", path = "../env/", default-features = false } -ink_metadata = { version = "4.0.0-alpha.1", path = "../metadata/", default-features = false, features = ["derive"], optional = true } -ink_primitives = { version = "4.0.0-alpha.1", path = "../primitives/", default-features = false } -ink_storage_traits = { version = "4.0.0-alpha.1", path = "traits", default-features = false } -ink_prelude = { version = "4.0.0-alpha.1", path = "../prelude/", default-features = false } +ink_env = { version = "4.0.0-alpha.2", path = "../env/", default-features = false } +ink_metadata = { version = "4.0.0-alpha.2", path = "../metadata/", default-features = false, features = ["derive"], optional = true } +ink_primitives = { version = "4.0.0-alpha.2", path = "../primitives/", default-features = false } +ink_storage_traits = { version = "4.0.0-alpha.2", path = "traits", default-features = false } +ink_prelude = { version = "4.0.0-alpha.2", 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 5073b457695..3f6063505b7 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" @@ -15,16 +15,16 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_metadata = { version = "4.0.0-alpha.1", path = "../../metadata", default-features = false, features = ["derive"], optional = true } -ink_primitives = { version = "4.0.0-alpha.1", path = "../../primitives", default-features = false } -ink_prelude = { version = "4.0.0-alpha.1", path = "../../prelude", default-features = false } +ink_metadata = { version = "4.0.0-alpha.2", path = "../../metadata", default-features = false, features = ["derive"], optional = true } +ink_primitives = { version = "4.0.0-alpha.2", path = "../../primitives", default-features = false } +ink_prelude = { version = "4.0.0-alpha.2", path = "../../prelude", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] } scale-info = { version = "2", default-features = false, features = ["derive"], optional = true } syn = { version = "1", features = ["full"] } [dev-dependencies] paste = "1.0" -ink_env = { version = "4.0.0-alpha.1", path = "../../env" } +ink_env = { version = "4.0.0-alpha.2", path = "../../env" } [features] default = ["std"] diff --git a/examples/contract-terminate/Cargo.toml b/examples/contract-terminate/Cargo.toml index 243bf0c6a7c..30f3e7fa7ee 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/contract-transfer/Cargo.toml b/examples/contract-transfer/Cargo.toml index e35b3954873..78b34cc3c4b 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/delegator/Cargo.toml b/examples/delegator/Cargo.toml index 97538c709b7..7e2736827c4 100644 --- a/examples/delegator/Cargo.toml +++ b/examples/delegator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "delegator" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/delegator/accumulator/Cargo.toml b/examples/delegator/accumulator/Cargo.toml index 4adbc40501b..ce9371f4819 100644 --- a/examples/delegator/accumulator/Cargo.toml +++ b/examples/delegator/accumulator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "accumulator" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/delegator/adder/Cargo.toml b/examples/delegator/adder/Cargo.toml index 51cb59c2e71..04c0d53823d 100644 --- a/examples/delegator/adder/Cargo.toml +++ b/examples/delegator/adder/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "adder" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/delegator/subber/Cargo.toml b/examples/delegator/subber/Cargo.toml index 055e800dd76..24b405126e2 100644 --- a/examples/delegator/subber/Cargo.toml +++ b/examples/delegator/subber/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subber" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/dns/Cargo.toml b/examples/dns/Cargo.toml index 8a06d22d94b..841620855db 100644 --- a/examples/dns/Cargo.toml +++ b/examples/dns/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dns" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc1155/Cargo.toml b/examples/erc1155/Cargo.toml index b6ca2e5ca08..2d03a49c201 100644 --- a/examples/erc1155/Cargo.toml +++ b/examples/erc1155/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc1155" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc20/Cargo.toml b/examples/erc20/Cargo.toml index db32cc6b1e0..210112d31f1 100644 --- a/examples/erc20/Cargo.toml +++ b/examples/erc20/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc20" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/erc721/Cargo.toml b/examples/erc721/Cargo.toml index 3b984a25abe..7437c50578b 100644 --- a/examples/erc721/Cargo.toml +++ b/examples/erc721/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erc721" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/flipper/Cargo.toml b/examples/flipper/Cargo.toml index 648ec777ebd..f785be033c2 100644 --- a/examples/flipper/Cargo.toml +++ b/examples/flipper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flipper" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/incrementer/Cargo.toml b/examples/incrementer/Cargo.toml index 09014edc7a4..f1f5633263f 100644 --- a/examples/incrementer/Cargo.toml +++ b/examples/incrementer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "incrementer" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/mother/Cargo.toml b/examples/mother/Cargo.toml index aa9696af543..d989de5c03d 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/multisig/Cargo.toml b/examples/multisig/Cargo.toml index 10ede315eca..1a6855b29d4 100755 --- a/examples/multisig/Cargo.toml +++ b/examples/multisig/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multisig" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/payment-channel/Cargo.toml b/examples/payment-channel/Cargo.toml index d9055397abb..e270203c015 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/psp22-extension/Cargo.toml b/examples/psp22-extension/Cargo.toml index 54b74419caa..5dba87d3161 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/rand-extension/Cargo.toml b/examples/rand-extension/Cargo.toml index ac4f63824d2..fdf7562e5bc 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-erc20/Cargo.toml b/examples/trait-erc20/Cargo.toml index a60e604d6d3..cf65cd2ef19 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-flipper/Cargo.toml b/examples/trait-flipper/Cargo.toml index 6b8877a9826..65440aa3b2b 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-incrementer/Cargo.toml b/examples/trait-incrementer/Cargo.toml index 7252b65c7b5..0b07be4800c 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-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/examples/trait-incrementer/traits/Cargo.toml b/examples/trait-incrementer/traits/Cargo.toml index 2afadfeee5e..98986a63ae1 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-alpha.1" +version = "4.0.0-alpha.2" 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 95c4b96d919..ec466dfe1cd 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-alpha.1" +version = "4.0.0-alpha.2" 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 79b7cbd95b2..19343c743a8 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-alpha.1" +version = "4.0.0-alpha.2" 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 7196430ef93..7aec0995e62 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-alpha.1" +version = "4.0.0-alpha.2" edition = "2021" authors = ["Parity Technologies "] publish = false diff --git a/linting/Cargo.toml b/linting/Cargo.toml index 67ad8895f2d..f4338d933d3 100644 --- a/linting/Cargo.toml +++ b/linting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ink_linting" -version = "4.0.0-alpha.1" +version = "4.0.0-alpha.2" authors = ["Parity Technologies "] edition = "2021" publish = false From db2938335471f3396221ff0bddaf94bded227644 Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 20 Sep 2022 17:00:27 +0100 Subject: [PATCH 02/10] Update CHANGELOG --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 771f398ce0d..92fbf06b87d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## Version 4.0.0-alpha.1 + ### Breaking Changes #### New `ink` crate @@ -13,6 +15,9 @@ The `ink_lang` crate has been replaced in [#1223](https://github.com/paritytech/ crate. All existing sub-crates are reexported and should be used via the new `ink` crate, so e.g. `ink::env` instead of `ink_env`. Contract authors should now import the top level `ink` crate instead of the individual crates. +All storage traits were unified into the `ink_storage` crate [#1389](https://github.com/paritytech/ink/pull/1389), and +all of the derive implementations for those traits were moved up to the new top level `ink` crate [#1400](https://github.com/paritytech/ink/pull/1400) + ##### Migration - In `Cargo.toml` Replace all individual `ink_*` crate dependencies with the `ink` crate. - In the contract source: @@ -30,6 +35,9 @@ through a feature flag. `wee-alloc` is no longer maintained and we removed suppo ### Fixed - Trim single whitespace prefix in the metadata `docs` field ‒ [#1385](https://github.com/paritytech/ink/pull/1385) +### Added +- Add ink_env::pay_with_call! helper macro for off-chain emulation of sending payments with contract msg calls - [#1379](https://github.com/paritytech/ink/pull/1379) + ### Removed - Remove `wee-alloc` ‒ [#1403](https://github.com/paritytech/ink/pull/1403) From b4d4f8ce69f16f5a6e6a216fc9a4216702b256e6 Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 20 Sep 2022 17:35:01 +0100 Subject: [PATCH 03/10] Add Storage Rework detail --- CHANGELOG.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92fbf06b87d..a303af9542f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,15 +15,22 @@ The `ink_lang` crate has been replaced in [#1223](https://github.com/paritytech/ crate. All existing sub-crates are reexported and should be used via the new `ink` crate, so e.g. `ink::env` instead of `ink_env`. Contract authors should now import the top level `ink` crate instead of the individual crates. -All storage traits were unified into the `ink_storage` crate [#1389](https://github.com/paritytech/ink/pull/1389), and -all of the derive implementations for those traits were moved up to the new top level `ink` crate [#1400](https://github.com/paritytech/ink/pull/1400) - ##### Migration - In `Cargo.toml` Replace all individual `ink_*` crate dependencies with the `ink` crate. - In the contract source: - Remove the commonly used `use ink_lang as ink` idiom. - Replace all usages of individual crates with reexports, e.g. `ink_env` ➜ `ink::env`. +##### Storage Rework +[#1331](https://github.com/paritytech/ink/pull/1331) [changes the way](https://github.com/paritytech/ink/issues/1134) +`ink!` works with contract storage. Storage keys are generated at compile-time, and user facing traits have been +replaced with new abstractions. + +##### Migration +- Initialize `Mapping` fields with `Mapping::default()` instead of `ink_lang::utils::initialize_contract` in +constructors. +- Remove `SpreadAllocate`, `SpreadLayout` and `PackedLayout` implementations. + #### Removal of `wee-alloc` support ink! uses a bump allocator by default, additionally we supported another allocator (`wee-alloc`) through a feature flag. `wee-alloc` is no longer maintained and we removed support for it. From 468d369f9a8e19ada9a5ef6fbc04cdbfa28fdac8 Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 20 Sep 2022 17:37:05 +0100 Subject: [PATCH 04/10] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a303af9542f..e61bdf034af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ crate. All existing sub-crates are reexported and should be used via the new `in - Remove the commonly used `use ink_lang as ink` idiom. - Replace all usages of individual crates with reexports, e.g. `ink_env` ➜ `ink::env`. -##### Storage Rework +#### Storage Rework [#1331](https://github.com/paritytech/ink/pull/1331) [changes the way](https://github.com/paritytech/ink/issues/1134) `ink!` works with contract storage. Storage keys are generated at compile-time, and user facing traits have been replaced with new abstractions. From 139966afb77fcc5724e589a9d9ad4f43dbdb4d83 Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 20 Sep 2022 17:47:56 +0100 Subject: [PATCH 05/10] Update CHANGELOG.md --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e61bdf034af..af1de3c72d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,9 +22,9 @@ crate. All existing sub-crates are reexported and should be used via the new `in - Replace all usages of individual crates with reexports, e.g. `ink_env` ➜ `ink::env`. #### Storage Rework -[#1331](https://github.com/paritytech/ink/pull/1331) [changes the way](https://github.com/paritytech/ink/issues/1134) -`ink!` works with contract storage. Storage keys are generated at compile-time, and user facing traits have been -replaced with new abstractions. +[#1331](https://github.com/paritytech/ink/pull/1331) changes the way `ink!` works with contract storage. Storage keys +are generated at compile-time, and user facing abstractions which determine how contract data is laid out in storage +have changed. ##### Migration - Initialize `Mapping` fields with `Mapping::default()` instead of `ink_lang::utils::initialize_contract` in From b611d7bd4327f063f11f481cd7711feb2d2c66c2 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 20 Sep 2022 20:20:54 +0100 Subject: [PATCH 06/10] Update CHANGELOG.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michael Müller --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af1de3c72d4..a7ba91791b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## Version 4.0.0-alpha.1 +## Version 4.0.0-alpha.2 ### Breaking Changes From 828f609db26dfc8afd4fd242f0c95ab52d2759de Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 20 Sep 2022 20:21:06 +0100 Subject: [PATCH 07/10] Update CHANGELOG.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michael Müller --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7ba91791b3..098dff7abe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,7 +43,7 @@ through a feature flag. `wee-alloc` is no longer maintained and we removed suppo - Trim single whitespace prefix in the metadata `docs` field ‒ [#1385](https://github.com/paritytech/ink/pull/1385) ### Added -- Add ink_env::pay_with_call! helper macro for off-chain emulation of sending payments with contract msg calls - [#1379](https://github.com/paritytech/ink/pull/1379) +- 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) ### Removed - Remove `wee-alloc` ‒ [#1403](https://github.com/paritytech/ink/pull/1403) From 8841505249c839bd4e9a11fd58cd07db65ffa8c1 Mon Sep 17 00:00:00 2001 From: ascjones Date: Wed, 21 Sep 2022 09:23:06 +0100 Subject: [PATCH 08/10] Add reference to examples --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 098dff7abe0..5d931a5d92c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,7 @@ have changed. ##### Migration - Initialize `Mapping` fields with `Mapping::default()` instead of `ink_lang::utils::initialize_contract` in -constructors. +constructors. See [`erc20`](./examples/erc20/lib.rs) and other examples which use a `Mapping`. - Remove `SpreadAllocate`, `SpreadLayout` and `PackedLayout` implementations. #### Removal of `wee-alloc` support From 1da9af933b817dae535422b6cf58ba4f724bcef5 Mon Sep 17 00:00:00 2001 From: ascjones Date: Wed, 21 Sep 2022 09:58:53 +0100 Subject: [PATCH 09/10] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d931a5d92c..e6a3eb845e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ through a feature flag. `wee-alloc` is no longer maintained and we removed suppo ### 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) ### Added - 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) From 569c157535a46c34418a9af31349c2c6743f99c9 Mon Sep 17 00:00:00 2001 From: ascjones Date: Wed, 21 Sep 2022 10:46:40 +0100 Subject: [PATCH 10/10] Add version to ink_primitives --- crates/engine/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index c0775653d5e..ef57a3ab243 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -15,7 +15,7 @@ categories = ["no-std", "embedded"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] -ink_primitives = { path = "../../crates/primitives", default-features = false } +ink_primitives = { version = "4.0.0-alpha.2", 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"] }