From 90c08b403b51bb94534cc57bf5ae02a1e4ca4d7a Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Thu, 25 Aug 2022 04:31:58 -0400 Subject: [PATCH] Release `2.0.0-alpha.1` (#708) * Add release notes for `2.0.0-alpha.1` * Clean up the `v1.5.0` release notes a bit * Bump versions to `2.0.0-alpha.1` * Alpha version for transcode * Cargo.lock Co-authored-by: ascjones --- CHANGELOG.md | 38 +++++++++++++++++++++++++++++--------- Cargo.lock | 6 +++--- Cargo.toml | 6 +++--- metadata/Cargo.toml | 2 +- transcode/Cargo.toml | 4 ++-- 5 files changed, 38 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66932f41c..af52b6a6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,20 +6,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [1.5.0] - 2022-08-15 +## [2.0.0-alpha.1] - 2022-08-24 + +This release brings two exciting updates! First, contracts can now be built using the +`stable` Rust toolchain! Don't ask us how we managed to do this 👻. + +Secondly, it allows you to build ink! `v4.0.0-alpha.1`, which introduced a small - but +breaking - change to the ink! ABI as part of [paritytech/ink#1313](https://github.com/paritytech/ink/pull/1313). + +### Added +- Add support for ink!'s `version` metadata field - [#641](https://github.com/paritytech/cargo-contract/pull/641) -- Fix windows dylint build (#690) +### Changed +- Build contracts and dylint driver with stable - [#698](https://github.com/paritytech/cargo-contract/pull/698) +- Compile dylints when compiling the contract - [#703](https://github.com/paritytech/cargo-contract/pull/703) +- Move transcode example to doc test, add helper method - [#705](https://github.com/paritytech/cargo-contract/pull/705) + - Note that alongside this PR we released [`contract-transcode@0.2.0`](https://crates.io/crates/contract-transcode/0.2.0) +- Replace custom RPCs by `state_call` - [#701](https://github.com/paritytech/cargo-contract/pull/701) + +### Fixed +- Fix `tracing_subscriber` filtering - [#702](https://github.com/paritytech/cargo-contract/pull/702) + +## [1.5.0] - 2022-08-15 ### Added -- Dry run gas limit estimation [#484](https://github.com/paritytech/cargo-contract/pull/484) +- Dry run gas limit estimation - [#484](https://github.com/paritytech/cargo-contract/pull/484) ### Changed -- Bump `ink_*` crates to `v3.3.1` [#686](https://github.com/paritytech/cargo-contract/pull/686) -- Refactor out transcode as a separate library [#597](https://github.com/paritytech/cargo-contract/pull/597) -- Sync `metadata` version with `cargo-contract` [#611](https://github.com/paritytech/cargo-contract/pull/611) -- Adapt to new subxt API [#678](https://github.com/paritytech/cargo-contract/pull/678) -- Replace log/env_logger with tracing/tracing_subscriber [#689](https://github.com/paritytech/cargo-contract/pull/689) -- Contract upload: emitting a warning instead of an error when the contract already existed is more user friendly [#644](https://github.com/paritytech/cargo-contract/pull/644) +- Bump `ink_*` crates to `v3.3.1` - [#686](https://github.com/paritytech/cargo-contract/pull/686) +- Refactor out transcode as a separate library - [#597](https://github.com/paritytech/cargo-contract/pull/597) +- Sync `metadata` version with `cargo-contract` - [#611](https://github.com/paritytech/cargo-contract/pull/611) +- Adapt to new subxt API - [#678](https://github.com/paritytech/cargo-contract/pull/678) +- Replace log/env_logger with tracing/tracing_subscriber - [#689](https://github.com/paritytech/cargo-contract/pull/689) +- Contract upload: emitting a warning instead of an error when the contract already + existed is more user friendly - [#644](https://github.com/paritytech/cargo-contract/pull/644) ### Fixed - Fix windows dylint build [#690](https://github.com/paritytech/cargo-contract/pull/690) diff --git a/Cargo.lock b/Cargo.lock index 07635264c..55605e49d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -464,7 +464,7 @@ dependencies = [ [[package]] name = "cargo-contract" -version = "1.5.0" +version = "2.0.0-alpha.1" dependencies = [ "anyhow", "assert_cmd", @@ -627,7 +627,7 @@ checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" [[package]] name = "contract-metadata" -version = "1.5.0" +version = "2.0.0-alpha.1" dependencies = [ "impl-serde", "pretty_assertions", @@ -639,7 +639,7 @@ dependencies = [ [[package]] name = "contract-transcode" -version = "0.2.0" +version = "0.2.0-alpha.1" dependencies = [ "anyhow", "assert_matches", diff --git a/Cargo.toml b/Cargo.toml index 4e88f1850..68ea4e266 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "metadata", "transcode"] [package] name = "cargo-contract" -version = "1.5.0" +version = "2.0.0-alpha.1" authors = ["Parity Technologies "] build = "build.rs" edition = "2021" @@ -35,8 +35,8 @@ colored = "2.0.0" toml = "0.5.9" rustc_version = "0.4.0" blake2 = "0.10.4" -contract-metadata = { version = "1", path = "./metadata" } -transcode = { package = "contract-transcode", version = "0.2.0", path = "./transcode" } +contract-metadata = { version = "2.0.0-alpha.1", path = "./metadata" } +transcode = { package = "contract-transcode", version = "0.2.0-alpha.1", path = "./transcode" } semver = { version = "1.0.13", features = ["serde"] } serde = { version = "1.0.144", default-features = false, features = ["derive"] } serde_json = "1.0.85" diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 61ec2bdbb..2804066f2 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-metadata" -version = "1.5.0" +version = "2.0.0-alpha.1" authors = ["Parity Technologies "] edition = "2021" diff --git a/transcode/Cargo.toml b/transcode/Cargo.toml index 252ac322d..479fb2947 100644 --- a/transcode/Cargo.toml +++ b/transcode/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-transcode" -version = "0.2.0" +version = "0.2.0-alpha.1" authors = ["Parity Technologies "] edition = "2021" @@ -18,7 +18,7 @@ path = "src/lib.rs" [dependencies] anyhow = "1.0.62" -contract-metadata = { version = "1", path = "../metadata" } +contract-metadata = { version = "2.0.0-alpha.1", path = "../metadata" } env_logger = "0.9.0" escape8259 = "0.5.2" hex = "0.4.3"