Skip to content

Commit dffeee4

Browse files
jsdwlexnvTarikGul
authored
Release prep for 0.20.0 (#502)
* v0.20.0 release prep * wee text tweak * remove dry-run step that doesn't actually work * Fix typo Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * No more "in" Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Fix "customized" typo Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com> Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
1 parent 10627fb commit dffeee4

File tree

8 files changed

+56
-19
lines changed

8 files changed

+56
-19
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,41 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.20.0] - 2022-04-06
8+
9+
The most significant change in this release is how we create and sign extrinsics, and how we manage the
10+
"additional" and "extra" data that is attached to them. See https://github.com/paritytech/subxt/issues/477, and the
11+
associated PR https://github.com/paritytech/subxt/pull/490 for a more detailed look at the code changes.
12+
13+
If you're targeting a node with compatible additional and extra transaction data to Substrate or Polkadot, the main
14+
change you'll have to make is to import and use `subxt::PolkadotExtrinsicParams` or `subxt::SubstrateExtrinsicParams`
15+
instead of `subxt::DefaultExtra` (depending on what node you're compatible with), and then use `sign_and_submit_default`
16+
instead of `sign_and_submit` when making a call. Now, `sign_and_submit` accepts a second argument which allows these
17+
parameters (such as mortality and tip payment) to be customized. See `examples/balance_transfer_with_params.rs` for a
18+
small usage example.
19+
20+
If you're targeting a node which involves custom additional and extra transaction data, you'll need to implement the
21+
trait `subxt::extrinsic::ExtrinsicParams`, which determines the parameters that can be provided to `sign_and_submit`, as
22+
well as how to encode these into the "additional" and "extra" data needed for a transaction. Have a look at
23+
`subxt/src/extrinsic/params.rs` for the trait definition and Substrate/Polkadot implementations. The aim with this change
24+
is to make it easier to customise this for your own chains, and provide a simple way to provide values at runtime.
25+
26+
### Fixed
27+
28+
- Test utils: parse port from substrate binary output to avoid races ([#501](https://github.com/paritytech/subxt/pull/501))
29+
- Rely on the kernel for port allocation ([#498](https://github.com/paritytech/subxt/pull/498))
30+
31+
### Changed
32+
33+
- Export ModuleError for downstream matching ([#499](https://github.com/paritytech/subxt/pull/499))
34+
- Bump jsonrpsee to v0.9.0 ([#496](https://github.com/paritytech/subxt/pull/496))
35+
- Use tokio instead of async-std in tests/examples ([#495](https://github.com/paritytech/subxt/pull/495))
36+
- Read constants from metadata at runtime ([#494](https://github.com/paritytech/subxt/pull/494))
37+
- Handle `sp_runtime::ModuleError` substrate updates ([#492](https://github.com/paritytech/subxt/pull/492))
38+
- Simplify creating and signing extrinsics ([#490](https://github.com/paritytech/subxt/pull/490))
39+
- Add `dev_getBlockStats` RPC ([#489](https://github.com/paritytech/subxt/pull/489))
40+
- scripts: Hardcode github subxt pull link for changelog consistency ([#482](https://github.com/paritytech/subxt/pull/482))
41+
742
## [0.19.0] - 2022-03-21
843

944
### Changed

RELEASING.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@ We also assume that ongoing work done is being merged directly to the `master` b
3131
5. Update `CHANGELOG.md` to reflect the difference between this release and the last. If you're unsure of
3232
what to add, check with the Tools team. See the `CHANGELOG.md` file for details of the format it follows.
3333
34-
Utilize the following script to generate the merged PRs between releases.
34+
First, if there have been any significant changes, add a description of those changes to the top of the
35+
changelog entry for this release.
36+
37+
Next, you can use the following script to generate the merged PRs between releases:
38+
3539
```
3640
./scripts/generate_changelog.sh
3741
```
42+
3843
Ensure that the script picked the latest published release tag (e.g. if releasing `v0.17.0`, the script should
39-
provide `[+] Latest release tag: v0.16.0` ). Then group the PRs into "Added" and "Changed" sections.
44+
provide `[+] Latest release tag: v0.16.0` ). Then group the PRs into "Added" and "Changed" sections, and make any
45+
other adjustments that you feel are necessary for clarity.
4046
4147
6. Commit any of the above changes to the release branch and open a PR in GitHub with a base of `master`.
4248
@@ -50,18 +56,14 @@ We also assume that ongoing work done is being merged directly to the `master` b
5056
git checkout master && git pull
5157
```
5258
53-
2. Perform a dry-run publish to ensure the crates can be correctly published.
54-
55-
The crates in this repository need publishing in a specific order, since they depend on each other.
59+
2. Perform a final sanity check that everything looks ok.
5660
5761
```
58-
(cd codegen && cargo publish --dry-run) && \
59-
(cd macro && cargo publish --dry-run) && \
60-
(cd subxt && cargo publish --dry-run) && \
61-
(cd cli && cargo publish --dry-run);
62+
cargo check --all-targets
63+
cargo test --all-targets
6264
```
6365
64-
3. If the dry-run was successful, run the following command to publish each crate in the required order (allowing
66+
3. Run the following command to publish each crate in the required order (allowing
6567
a little time in between each to let crates.io catch up with what we've published).
6668
6769
```

cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "subxt-cli"
3-
version = "0.19.0"
3+
version = "0.20.0"
44
authors = ["Parity Technologies <admin@parity.io>"]
55
edition = "2021"
66

@@ -16,7 +16,7 @@ path = "src/main.rs"
1616

1717
[dependencies]
1818
# perform subxt codegen
19-
subxt-codegen = { version = "0.19.0", path = "../codegen" }
19+
subxt-codegen = { version = "0.20.0", path = "../codegen" }
2020
# parse command line args
2121
structopt = "0.3.25"
2222
# make the request to a substrate node to get the metadata

codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "subxt-codegen"
3-
version = "0.19.0"
3+
version = "0.20.0"
44
authors = ["Parity Technologies <admin@parity.io>"]
55
edition = "2021"
66

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "subxt-examples"
3-
version = "0.19.0"
3+
version = "0.20.0"
44
authors = ["Parity Technologies <admin@parity.io>"]
55
edition = "2021"
66
publish = false

macro/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "subxt-macro"
3-
version = "0.19.0"
3+
version = "0.20.0"
44
authors = ["Parity Technologies <admin@parity.io>"]
55
edition = "2021"
66
autotests = false
@@ -27,7 +27,7 @@ quote = "1.0.8"
2727
syn = "1.0.58"
2828
scale-info = "2.0.0"
2929

30-
subxt-codegen = { path = "../codegen", version = "0.19.0" }
30+
subxt-codegen = { path = "../codegen", version = "0.20.0" }
3131

3232
[dev-dependencies]
3333
pretty_assertions = "1.0.0"

subxt/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "subxt"
3-
version = "0.19.0"
3+
version = "0.20.0"
44
authors = ["Parity Technologies <admin@parity.io>"]
55
edition = "2021"
66

@@ -26,7 +26,7 @@ serde = { version = "1.0.124", features = ["derive"] }
2626
serde_json = "1.0.64"
2727
thiserror = "1.0.24"
2828

29-
subxt-macro = { version = "0.19.0", path = "../macro" }
29+
subxt-macro = { version = "0.20.0", path = "../macro" }
3030

3131
sp-core = { version = "6.0.0", default-features = false }
3232
sp-runtime = "6.0.0"

test-runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "test-runtime"
3-
version = "0.19.0"
3+
version = "0.20.0"
44
edition = "2021"
55

66
[dependencies]

0 commit comments

Comments
 (0)