Skip to content

Commit 3fb33f3

Browse files
committed
Update to frame-decode 0.17.1 and update CHANGELOG with frame-decode updates
1 parent 3603364 commit 3fb33f3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ The rules for when to use `PolkadotConfig` and `SubstrateConfig` remain the same
6464

6565
See the docs for `PolkadotConfig` and `SubstrateConfig` for more. One example to be aware of is that if you want to work with historic blocks with `SubstrateConfig`, you'll need to instantiate it yourself and provide historic type information before passing it to `OnlineClient` or `OfflineClient`.
6666

67+
#### Configuration: `ExtrinsicParams`
68+
69+
Aside from the new historic types support, a notable change to the configuration has been the simplification of transaction extensions, **previously called `ExtrinsicParams`** in our `Config`. **Now, the type is called `TransactionExtensions`** and the supporting traits have been simplified and named more appropriately (just `TransactionExtensions` and `TransactionExtension`), moving to rely more on `frame-decode` for the core logic. For any users that implement their own transaction extensions, migrating to the new traits is straightforward and I would encourage you to look at how the built-in transaction extensions are implemented for guidance here.
70+
71+
See (see [#2177](https://github.com/paritytech/subxt/pull/2177)) for more details around this change.
72+
6773
### Working at specific blocks
6874

6975
**Before**
@@ -218,6 +224,7 @@ let events = api
218224
```
219225

220226
Notes:
227+
- `SignableTransaction::signer_payload`, `SignableTransaction::sign` and `SignableTransaction::sign_with_account_and_signature` now may return an error (which previously would have led to harder to diagnose issues), and the `SignableTransaction` type now has a lifetime (see [#2177](https://github.com/paritytech/subxt/pull/2177)).
221228
- We now use `transactions` instead of `tx` everywhere to align better with other API names, but continue to provide `tx` as a shorthand.
222229
- The word `partial` is changed to `signable` in transaction APIs. "partial" was always a confusing name, and "signable" makes it much clearer what is being created; something that can be signed.
223230
- `tx().create_partial_offline(..)` => `tx().create_signable_offline(..)`
@@ -461,6 +468,7 @@ A list of the main change PRs follows:
461468

462469
### Changed
463470

471+
- Upgrade to frame-decode 0.17: remove extrinsic encode logic and use from there ([#2177](https://github.com/paritytech/subxt/pull/2177))
464472
- [v0.50.0] Implement support for historic blocks in Subxt ([#2131](https://github.com/paritytech/subxt/pull/2131))
465473
- subxt-historic: 0.0.8 release: expose type resolver that can be used with visitors ([#2140](https://github.com/paritytech/subxt/pull/2140))
466474
- subxt-historic: 0.0.7 release: expose ClientAtBlock bits ([#2138](https://github.com/paritytech/subxt/pull/2138))

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ darling = "0.20.10"
8080
derive-where = "1.2.7"
8181
either = { version = "1.13.0", default-features = false }
8282
finito = { version = "0.1.0", default-features = false }
83-
frame-decode = { version = "0.17.0", default-features = false }
83+
frame-decode = { version = "0.17.1", default-features = false }
8484
frame-metadata = { version = "23.0.0", default-features = false }
8585
futures = { version = "0.3.31", default-features = false, features = ["std"] }
8686
getrandom = { version = "0.2", default-features = false }

0 commit comments

Comments
 (0)