From ac67e1bd04293998f26b2c93d1b17b4f4517ab96 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 13:39:46 +0200 Subject: [PATCH 01/10] lib: Export `GenericError` to avoid linking to private items Signed-off-by: Alexandru Vasile --- subxt/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/subxt/src/lib.rs b/subxt/src/lib.rs index e4e5668fc6..50aac73692 100644 --- a/subxt/src/lib.rs +++ b/subxt/src/lib.rs @@ -81,6 +81,7 @@ pub use crate::{ error::{ BasicError, Error, + GenericError, RuntimeError, TransactionError, }, From d143ec4297b48dfdab6c7999590681e743d86b5d Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 13:53:54 +0200 Subject: [PATCH 02/10] Bump version to v0.17.0 Signed-off-by: Alexandru Vasile --- cli/Cargo.toml | 4 ++-- codegen/Cargo.toml | 2 +- examples/Cargo.toml | 2 +- macro/Cargo.toml | 6 +++--- subxt/Cargo.toml | 4 ++-- test-runtime/Cargo.toml | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 3ad6e99bff..916999e367 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-cli" -version = "0.16.0" +version = "0.17.0" authors = ["Parity Technologies "] edition = "2021" @@ -16,7 +16,7 @@ path = "src/main.rs" [dependencies] # perform subxt codegen -subxt-codegen = { version = "0.16.0", path = "../codegen" } +subxt-codegen = { version = "0.17.0", path = "../codegen" } # parse command line args structopt = "0.3.25" # make the request to a substrate node to get the metadata diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index ea41458b7b..c2cf3c551d 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-codegen" -version = "0.16.0" +version = "0.17.0" authors = ["Parity Technologies "] edition = "2021" diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 89bd058d8e..8d8cbf21b1 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-examples" -version = "0.16.0" +version = "0.17.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 505647f045..6bd681c5cc 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-macro" -version = "0.16.0" +version = "0.17.0" authors = ["Parity Technologies "] edition = "2021" autotests = false @@ -27,10 +27,10 @@ quote = "1.0.8" syn = "1.0.58" scale-info = "1.0.0" -subxt-codegen = { path = "../codegen", version = "0.16.0" } +subxt-codegen = { path = "../codegen", version = "0.17.0" } [dev-dependencies] pretty_assertions = "1.0.0" -subxt = { path = "../subxt", version = "0.16.0" } +subxt = { path = "../subxt", version = "0.17.0" } trybuild = "1.0.38" sp-keyring = "5.0.0" diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index a8ef23d64a..4c01d8e35b 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt" -version = "0.16.0" +version = "0.17.0" authors = ["Parity Technologies "] edition = "2021" @@ -27,7 +27,7 @@ serde = { version = "1.0.124", features = ["derive"] } serde_json = "1.0.64" thiserror = "1.0.24" -subxt-macro = { version = "0.16.0", path = "../macro" } +subxt-macro = { version = "0.17.0", path = "../macro" } sp-core = { version = "5.0.0", default-features = false } sp-runtime = { version = "5.0.0", default-features = false } diff --git a/test-runtime/Cargo.toml b/test-runtime/Cargo.toml index 032254cecc..74972ada1d 100644 --- a/test-runtime/Cargo.toml +++ b/test-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "test-runtime" -version = "0.16.0" +version = "0.17.0" edition = "2021" [dependencies] @@ -9,7 +9,7 @@ sp-runtime = "5.0.0" codec = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive", "full", "bit-vec"] } [build-dependencies] -subxt = { path = "../subxt", version = "0.16.0" } +subxt = { path = "../subxt", version = "0.17.0" } sp-core = "5.0.0" async-std = { version = "1.9.0", features = ["attributes", "tokio1"] } which = "4.2.2" From cc3af9eb168452cf19b01a35ad497c9a582dbbb8 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 13:54:52 +0200 Subject: [PATCH 03/10] doc: Add crates to bump Signed-off-by: Alexandru Vasile --- RELEASING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 53ff0cf34d..3b85fc1b8b 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -26,7 +26,7 @@ We also assume that ongoing work done is being merged directly to the `master` b If there are minor issues with the documentation, they can be fixed in the release branch. -4. Bump the crate version in `Cargo.toml` to whatever was decided in step 2 for `subxt-codegen`, `subxt-macro`, `subxt` and `subxt-cli`. +4. Bump the crate version in `Cargo.toml` to whatever was decided in step 2 for `subxt-cli`, `subxt-codegen`, `subxt-examples`, `subxt-macro` ,`subxt`, `test-runtime`. 5. Update `CHANGELOG.md` to reflect the difference between this release and the last. If you're unsure of what to add, check with the Tools team. See the `CHANGELOG.md` file for details of the format it follows. @@ -73,4 +73,4 @@ We also assume that ongoing work done is being merged directly to the `master` b Once this is pushed, go along to [the releases page on GitHub](https://github.com/paritytech/subxt/releases) and draft a new release which points to the tag you just pushed to `master` above. Copy the changelog comments - for the current release into the release description. \ No newline at end of file + for the current release into the release description. From f4740635056b76924922b0d293efe93f198c0a11 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 14:25:41 +0200 Subject: [PATCH 04/10] Update changelog Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0a04a13c1..24e3b64ff5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.17.0] - 2022-02-04 + +### Added +- Get event context on EventSubscription ([#423](https://github.com/paritytech/subxt/pull/423)) + +### Changed + +- Add more tests for events.rs/decode_and_consume_type ([#430](https://github.com/paritytech/subxt/pull/430)) +- Update substrate dependencies ([#429](https://github.com/paritytech/subxt/pull/429)) +- export RuntimeError struct ([#427](https://github.com/paritytech/subxt/pull/427)) +- remove unused PalletError struct ([#425](https://github.com/paritytech/subxt/pull/425)) +- Move Subxt crate into a subfolder ([#424](https://github.com/paritytech/subxt/pull/424)) +- Add release checklist ([#418](https://github.com/paritytech/subxt/pull/418)) + ## [0.16.0] - 2022-02-01 *Note*: This is a significant release which introduces support for V14 metadata and macro based codegen, as well as making many breaking changes to the API. From 82b689b3d7e7fbf9c57ef4b11933eaab2444cd4b Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 14:43:53 +0200 Subject: [PATCH 05/10] changelog: Add new line between title and list Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24e3b64ff5..8c8eee750d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.17.0] - 2022-02-04 ### Added + - Get event context on EventSubscription ([#423](https://github.com/paritytech/subxt/pull/423)) ### Changed From 80af19c336e50cb607495bf90cebaa089ae0abb1 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 14:46:22 +0200 Subject: [PATCH 06/10] releasing: Remove extra closing bracket Signed-off-by: Alexandru Vasile --- RELEASING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index 3b85fc1b8b..f638e8e45d 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -47,7 +47,7 @@ We also assume that ongoing work done is being merged directly to the `master` b dev dependencies (and `--allow-dirty` to ignore the git changes as a result) to publish it. So, first install `cargo hack` with `cargo install cargo hack`. Next, you can run something like the following - command to publish each crate in the required order (allowing a little time inbetween each to let `crates.io` catch up) + command to publish each crate in the required order (allowing a little time in between each to let `crates.io` catch up with what we've published). ``` From 090f7f9261d72e1a52eefa00fd884b625bf971cd Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 14:52:38 +0200 Subject: [PATCH 07/10] releasing: Fix cargo install typo for cargo-hack Signed-off-by: Alexandru Vasile --- RELEASING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index f638e8e45d..a50b4e8d97 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -46,7 +46,7 @@ We also assume that ongoing work done is being merged directly to the `master` b Additionally, `subxt-macro` has a circular dev dependency on `subxt`, so we use `cargo hack` to remove dev dependencies (and `--allow-dirty` to ignore the git changes as a result) to publish it. - So, first install `cargo hack` with `cargo install cargo hack`. Next, you can run something like the following + So, first install [cargo-hack](https://docs.rs/crate/cargo-hack/latest) with `cargo install cargo-hack`. Next, you can run something like the following command to publish each crate in the required order (allowing a little time in between each to let `crates.io` catch up with what we've published). From bcbb82b241f30b789b0eacf7b6abbb2e4721c7e8 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 14:57:01 +0200 Subject: [PATCH 08/10] Remove subxt version from macro and test-runtime Signed-off-by: Alexandru Vasile --- macro/Cargo.toml | 2 +- test-runtime/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 6bd681c5cc..b1267735e4 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -31,6 +31,6 @@ subxt-codegen = { path = "../codegen", version = "0.17.0" } [dev-dependencies] pretty_assertions = "1.0.0" -subxt = { path = "../subxt", version = "0.17.0" } +subxt = { path = "../subxt" } trybuild = "1.0.38" sp-keyring = "5.0.0" diff --git a/test-runtime/Cargo.toml b/test-runtime/Cargo.toml index 74972ada1d..fdd63aedc7 100644 --- a/test-runtime/Cargo.toml +++ b/test-runtime/Cargo.toml @@ -9,7 +9,7 @@ sp-runtime = "5.0.0" codec = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive", "full", "bit-vec"] } [build-dependencies] -subxt = { path = "../subxt", version = "0.17.0" } +subxt = { path = "../subxt" } sp-core = "5.0.0" async-std = { version = "1.9.0", features = ["attributes", "tokio1"] } which = "4.2.2" From cfcb30aa46c0b2b5cb532bda4b65e048aac8d751 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 15:28:38 +0200 Subject: [PATCH 09/10] releasing: Change PR link to sort in descending order Signed-off-by: Alexandru Vasile --- RELEASING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index a50b4e8d97..3685873b0c 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -31,7 +31,7 @@ We also assume that ongoing work done is being merged directly to the `master` b 5. Update `CHANGELOG.md` to reflect the difference between this release and the last. If you're unsure of what to add, check with the Tools team. See the `CHANGELOG.md` file for details of the format it follows. - Any [closed PRs](https://github.com/paritytech/subxt/pulls?q=is%3Apr+is%3Aclosed) between the last release and + Any [closed PRs](https://github.com/paritytech/subxt/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aclosed) between the last release and this release branch should be noted. 6. Commit any of the above changes to the release branch and open a PR in GitHub with a base of `master`. From 1fb222f4260f01902ba77c03e858d3b9a534e4db Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 4 Feb 2022 15:33:03 +0200 Subject: [PATCH 10/10] changelog: Add missing PR Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c8eee750d..53fb99055a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- introduce jsonrpsee client abstraction + kill HTTP support. ([#341](https://github.com/paritytech/subxt/pull/341)) - Get event context on EventSubscription ([#423](https://github.com/paritytech/subxt/pull/423)) ### Changed