You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+126Lines changed: 126 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,132 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## [0.34.0] - 2024-01-23
8
+
9
+
This release introduces a bunch of features that make subxt easier to use. Let's look at a few of them.
10
+
11
+
### Codegen - Integrating [`scale-typegen`](https://github.com/paritytech/scale-typegen) and adding type aliases ([#1249](https://github.com/paritytech/subxt/pull/1249))
12
+
13
+
We rewrote the code generation functionality of subxt and outsourced it to the new [`scale-typegen`](https://github.com/paritytech/scale-typegen) crate, which serves a more general purpose.
14
+
15
+
Since a lot of types used in substrate are rich with generics, this release introduces type aliases into the generated code.
16
+
A type alias is generated for the arguments/keys or each call, storage entry, and runtime API method ([#1249](https://github.com/paritytech/subxt/pull/1249)).
17
+
18
+
### Macro - Errors for misspecified type paths ([#1339](https://github.com/paritytech/subxt/pull/1339))
19
+
20
+
The subxt macro provides attributes to specify custom derives, attributes, and type substitutions on a per-type basis.
21
+
Previously we did not verify that the provided type paths are part of the metadata. This is now fixed:
22
+
If you provide an invalid type path, the macro will tell you so. It also suggests similar type paths, you might have meant instead.
### Subxt CLI - New features and usability improvements ([#1290](https://github.com/paritytech/subxt/pull/1290), [#1336](https://github.com/paritytech/subxt/pull/1336), and [#1379](https://github.com/paritytech/subxt/pull/1379))
74
+
75
+
Our CLI tool now allows you to explore runtime APIs and events ([#1290](https://github.com/paritytech/subxt/pull/1290)). We also fully integrated with [`scale-typegen-description`](https://github.com/paritytech/scale-typegen/tree/master/description), a crate that can describe types in a friendly way and provide type examples. The output is also color-coded to be easier on the eyes. Get started with these commands:
76
+
77
+
```sh
78
+
# Show details about a runtime API call:
79
+
subxt explore --url wss://westend-rpc.polkadot.io api StakingAPI nominations_quota
80
+
# Execute a runtime API call from the CLI:
81
+
subxt explore --url wss://westend-rpc.polkadot.io api core version -e
All CLI commands that take some metadata via `--file` or `--url`, can now also read the metadata directly from `stdin` with `--file -` ([#1336](https://github.com/paritytech/subxt/pull/1336)).
87
+
This allows you to pipe in metadata from other processes like in this command chain:
- Using insecure connections is now an explicit opt-in in many places ([#1309](https://github.com/paritytech/subxt/pull/1309))
101
+
- When decoding extrinsics from a block into a static type, we now return it's details (e.g. signature, signed extensions, raw bytes) alongside the statically decoded extrinsic itself ([#1376](https://github.com/paritytech/subxt/pull/1376))
102
+
103
+
We also made a few fixes and improvements around the unstable backend and the lightclient, preparing them for more stable usage in the future.
104
+
105
+
### Added
106
+
107
+
- Errors for misspecified type paths + suggestions ([#1339](https://github.com/paritytech/subxt/pull/1339))
108
+
- CLI: Recursive derives and attributes ([#1379](https://github.com/paritytech/subxt/pull/1379))
109
+
- CLI: Explore runtime APIs and events, colorized outputs, scale-typegen integration for examples ([#1290](https://github.com/paritytech/subxt/pull/1290))
110
+
- Add chainflip to real world usage section of README ([#1351](https://github.com/paritytech/subxt/pull/1351))
111
+
- CLI: Allow using `--file -` to read metadata from stdin ([#1336](https://github.com/paritytech/subxt/pull/1336))
112
+
- Codegen: Generate type aliases for better API ergonomics ([#1249](https://github.com/paritytech/subxt/pull/1249))
113
+
114
+
### Changed
115
+
116
+
- Return Pending rather than loop around if no new finalized hash in submit_transaction ([#1378](https://github.com/paritytech/subxt/pull/1378))
0 commit comments