-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prep for v0.34.0 release #1395
Prep for v0.34.0 release #1395
Conversation
CHANGELOG.md
Outdated
### Minor changes and things to be aware of | ||
|
||
- Using insecure connections is now an explicit opt-in in many places ([#1309](https://github.com/paritytech/subxt/pull/1309)) | ||
- 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 staticly decoded extrinsic itself ([#1376](https://github.com/paritytech/subxt/pull/1376)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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 staticly decoded extrinsic itself ([#1376](https://github.com/paritytech/subxt/pull/1376)) | |
- 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)) |
CHANGELOG.md
Outdated
pub mod polkadot {} | ||
``` | ||
|
||
### Subxt CLI - New features and usibility 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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Subxt CLI - New features and usibility 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)) | |
### 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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me; good job Tadeo!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice release changelog! 👍
[0.34.0] - 2024-01-23
This release introduces a bunch of features that make subxt easier to use. Let's look at a few of them.
Codegen - Integrating
scale-typegen
and adding type aliases (#1249)We rewrote the code generation functionality of subxt and outsourced it to the new
scale-typegen
crate, which serves a more general purpose.Since a lot of types used in substrate are rich with generics, this release introduces type aliases into the generated code.
A type alias is generated for the arguments/keys or each call, storage entry, and runtime API method (#1249).
Macro - Errors for misspecified type paths (#1339)
The subxt macro provides attributes to specify custom derives, attributes, and type substitutions on a per-type basis.
Previously we did not verify that the provided type paths are part of the metadata. This is now fixed:
If you provide an invalid type path, the macro will tell you so. It also suggests similar type paths, you might have meant instead.
This gives you a compile-time error like this:
Macro - Recursive derives and attributes (#1379)
Previously adding derives on a type containing other types was also cumbersome, see this example:
We introduced a
recursive
flag for custom derives and attributes that automatically inserts the specified derives on all child types:Subxt CLI - New features and usibility improvements (#1290, #1336, and #1379)
Our CLI tool now allows you to explore runtime APIs and events (#1290). We also fully integrated with
scale-typegen-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:All CLI commands that take some metadata via
--file
or--url
, can now also read the metadata directly fromstdin
with--file -
(#1336).This allows you to pipe in metadata from other processes like in this command chain:
Similar to the macro, the
subxt codegen
command can now also userecursive
flags:subxt codegen --derive-for-type xcm::v2::multilocation::MultiLocation=Clone,recursive subxt codegen --attributes-for-type "xcm::v2::multilocation::MultiLocation=#[myerror],recursive"
Minor changes and things to be aware of
We also made a few fixes and improvements around the unstable backend and the lightclient, preparing them for more stable usage in the future.
Added
--file -
to read metadata from stdin (#1336)Changed
ExtrinsicDetails
alongside decoded static extrinsics (#1376)scale-typegen
as a backend for the codegen (#1260)Fixed