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
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,100 @@ 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.42.0] - 2025-05-09
8
+
9
+
The primary benefit of this release is introducing support for the [_about-to-be-stabilised-in-polkadot-sdk_](https://github.com/paritytech/polkadot-sdk/pull/8443) V16 metadata, and with that, support for calling Pallet View Functions on runtimes which will support this. Pallet View Functions are used much like Runtime APIs, except that they are declared in specific pallets and not declared at the runtime-wide level, allowing pallets to carry their own APIs with them.
10
+
11
+
### Pallet View Functions
12
+
13
+
Calling a Pallet View Function in this Subxt release will look like:
Like Runtime APIs and others, the dynamic API can also be used to call into Pallet View Functions, which has the advantage of not needing the statically generated interface, but the downside of not being strongly typed. This looks like the following:
36
+
37
+
```rust
38
+
usescale_value::value;
39
+
40
+
letmetadata=api.metadata();
41
+
42
+
// Look up the query ID for the View Function in the node metadata:
43
+
letquery_id=metadata
44
+
.pallet_by_name("Proxy")
45
+
.unwrap()
46
+
.view_function_by_name("check_permissions")
47
+
.unwrap()
48
+
.query_id();
49
+
50
+
// Construct the call, providing the two arguments.
Another change to be aware of is that [our `Config` trait has been tweaked](https://github.com/paritytech/subxt/pull/1974). The `Hash` associated type is no longer needed, as it can be obtained via the `Hasher` associated type already, and `PolkadotConfig`/`SubstrateConfig` now set the hasher by default to be `DynamicHasher256`, which will (when V16 metadata is available for a runtime) automatically select between Keccak256 and BlakeTwo256 hashers depending on what the chain requires.
71
+
72
+
### Other changes
73
+
74
+
We also [solidify our support for V1 archive RPCs](https://github.com/paritytech/subxt/pull/1977), [upgrade the codebase to Rust 2024 edition](https://github.com/paritytech/subxt/pull/2001), and a bunch of other changes, the full list of which is here:
75
+
76
+
### Added
77
+
78
+
- Support v16 metadata and use it by default if it's available ([#1999](https://github.com/paritytech/subxt/pull/1999))
79
+
- Metadata V16: Implement support for Pallet View Functions ([#1981](https://github.com/paritytech/subxt/pull/1981))
80
+
- Metadata V16: Be more dynamic over which hasher is used. ([#1974](https://github.com/paritytech/subxt/pull/1974))
81
+
82
+
### Changed
83
+
84
+
- Update to 2024 edition ([#2001](https://github.com/paritytech/subxt/pull/2001))
85
+
- Update Smoldot to latest version ([#1991](https://github.com/paritytech/subxt/pull/1991))
86
+
- Update native test timeout to 45 mins ([#2002](https://github.com/paritytech/subxt/pull/2002))
87
+
- chore(deps): tokio ^1.44.2 ([#1989](https://github.com/paritytech/subxt/pull/1989))
88
+
- Add DefaultParams to allow more transaction extensions to be used when calling _default() methods ([#1979](https://github.com/paritytech/subxt/pull/1979))
89
+
- Use wat instead of wabt to avoid CI cmake error (and use supported dep) ([#1980](https://github.com/paritytech/subxt/pull/1980))
90
+
- Support v1 archive RPCs ([#1977](https://github.com/paritytech/subxt/pull/1977))
91
+
- Support V16 metadata and refactor metadata code ([#1967](https://github.com/paritytech/subxt/pull/1967))
0 commit comments