Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[0.30.0] - 2023-07-24
This release beings with it a number of exciting additions. Let's cover a few of the most significant ones:
Light client support (unstable)
This release adds support for light clients using Smoldot, both when compiling native binaries and when compiling to WASM to run in a browser environment. This is unstable for now while we continue testing it and work on making use of the new RPC APIs.
Here's how to use it:
At the moment you may encounter certain things that don't work; please file an issue if you do!
V15 Metadata
This release stabilizes the metadata V15 interface, which brings a few changes but primarily allows you to interact with Runtime APIs via an ergonomic Subxt interface:
This is no longer behind a feature flag, but if the chain you're connecting to doesn't use V15 metadata yet then the above will be unavailable.
subxt-signer
The new
subxt-signer
crate provides the ability to sign transactions using either sr25519 or ECDSA. It's WASM compatible, and brings in fewer dependencies than usingsp_core
/sp_keyring
does, while having an easy to use interface. Here's an example of signing a transaction using it:Dev keys should only be used for tests since they are publicly known. Actual keys can be generated from URIs, phrases or raw entropy, and derived using soft/hard junctions:
Breaking changes
A few small breaking changes have occurred:
Index
associated type in yourConfig
implementations; we now work it out dynamically where needed.subxt-signer
added native signing support and can be used instead of bringing in Substrate dependencies to sign transactions now. You can still enable this feature flag as before to make use of them if needed.For anything else that crops up, the compile errors and API docs will hopefully point you in the right direction, but please raise an issue if not.
For a full list of changes, see below:
Added
subxt_signer
crate for native & WASM compatible signing (#1016)diff
command to CLI tool to visualize metadata changes (#1015)Changed
substrate-compat
default feature flag (#1078)UncheckedExtrinsic
with custom encoding (#1076)Index
type from Config trait (#1074)#[allow(rustdoc::broken_intra_doc_links)]
to subxt-codegen (#998)Fixed