Bump subxt from 0.19.0 to 0.20.0
Created by: dependabot[bot]
Bumps subxt from 0.19.0 to 0.20.0.
Release notes
Sourced from subxt's releases.
v0.20.0
The most significant change in this release is how we create and sign extrinsics, and how we manage the "additional" and "extra" data that is attached to them. See paritytech/subxt#477, and the associated PR paritytech/subxt#490 for a more detailed look at the code changes.
If you're targeting a node with compatible additional and extra transaction data to Substrate or Polkadot, the main change you'll have to make is to import and use
subxt::PolkadotExtrinsicParams
orsubxt::SubstrateExtrinsicParams
instead ofsubxt::DefaultExtra
(depending on what node you're compatible with), and then usesign_and_submit_default
instead ofsign_and_submit
when making a call. Now,sign_and_submit
accepts a second argument which allows these parameters (such as mortality and tip payment) to be customized. Seeexamples/balance_transfer_with_params.rs
for a small usage example.If you're targeting a node which involves custom additional and extra transaction data, you'll need to implement the trait
subxt::extrinsic::ExtrinsicParams
, which determines the parameters that can be provided tosign_and_submit
, as well as how to encode these into the "additional" and "extra" data needed for a transaction. Have a look atsubxt/src/extrinsic/params.rs
for the trait definition and Substrate/Polkadot implementations. The aim with this change is to make it easier to customise this for your own chains, and provide a simple way to provide values at runtime.Fixed
- Test utils: parse port from substrate binary output to avoid races (#501)
- Rely on the kernel for port allocation (#498)
Changed
- Export ModuleError for downstream matching (#499)
- Bump jsonrpsee to v0.9.0 (#496)
- Use tokio instead of async-std in tests/examples (#495)
- Read constants from metadata at runtime (#494)
- Handle
sp_runtime::ModuleError
substrate updates (#492)- Simplify creating and signing extrinsics (#490)
- Add
dev_getBlockStats
RPC (#489)- scripts: Hardcode github subxt pull link for changelog consistency (#482)
Changelog
Sourced from subxt's changelog.
[0.20.0] - 2022-04-06
The most significant change in this release is how we create and sign extrinsics, and how we manage the "additional" and "extra" data that is attached to them. See paritytech/subxt#477, and the associated PR paritytech/subxt#490 for a more detailed look at the code changes.
If you're targeting a node with compatible additional and extra transaction data to Substrate or Polkadot, the main change you'll have to make is to import and use
subxt::PolkadotExtrinsicParams
orsubxt::SubstrateExtrinsicParams
instead ofsubxt::DefaultExtra
(depending on what node you're compatible with), and then usesign_and_submit_default
instead ofsign_and_submit
when making a call. Now,sign_and_submit
accepts a second argument which allows these parameters (such as mortality and tip payment) to be customized. Seeexamples/balance_transfer_with_params.rs
for a small usage example.If you're targeting a node which involves custom additional and extra transaction data, you'll need to implement the trait
subxt::extrinsic::ExtrinsicParams
, which determines the parameters that can be provided tosign_and_submit
, as well as how to encode these into the "additional" and "extra" data needed for a transaction. Have a look atsubxt/src/extrinsic/params.rs
for the trait definition and Substrate/Polkadot implementations. The aim with this change is to make it easier to customise this for your own chains, and provide a simple way to provide values at runtime.Fixed
- Test utils: parse port from substrate binary output to avoid races (#501)
- Rely on the kernel for port allocation (#498)
Changed
- Export ModuleError for downstream matching (#499)
- Bump jsonrpsee to v0.9.0 (#496)
- Use tokio instead of async-std in tests/examples (#495)
- Read constants from metadata at runtime (#494)
- Handle
sp_runtime::ModuleError
substrate updates (#492)- Simplify creating and signing extrinsics (#490)
- Add
dev_getBlockStats
RPC (#489)- scripts: Hardcode github subxt pull link for changelog consistency (#482)
Commits
-
dffeee4
Release prep for 0.20.0 (#502) -
10627fb
Tests: parse port from substrate binary output to avoid races (#501) -
f7e9491
export ModuleError for downstream matching (#499) -
cd4c64c
Rely on the kernel for port allocation (#498) -
120b181
bump jsonrpsee to v0.9.0 (#496) -
6ce9983
Use tokio instead of async-std (#495) -
cc0b1ec
Read constants from metadata at runtime (#494) -
9318f62
Handlesp_runtime::ModuleError
substrate updates (#492) -
3d669f9
Simplify creating and signing extrinsics (#490) -
82f3040
Adddev_getBlockStats
RPC (#489) - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)