v0.10.0
github-actions
released this
01 Feb 15:09
·
153 commits
to master
since this release
For
polkadot-v0.9.43
use branch polkadot-v0.9.43-tag-v0.10.0
Forpolkadot-v0.9.42
use branch polkadot-v0.9.42-tag-v0.10.0
Forpolkadot-v0.9.41
use branch polkadot-v0.9.41-tag-v0.10.0
Forpolkadot-v0.9.40
use branch polkadot-v0.9.40-tag-v0.10.0
Forpolkadot-v0.9.39
use branch polkadot-v0.9.39
Forpolkadot-v0.9.38
use branch polkadot-v0.9.38-tag-v0.10.0
Forpolkadot-v0.9.37
use branch polkadot-v0.9.37-tag-v0.10.0
🎉 Featuring
- Fully generic
UncheckedExtriniscV4
(see #418):- Signature, AccountId and Signer type are no longer hardcoded, but fully adaptable.
- Introduced
ExtrinsicSigner
struct for easy type assignment
submit_extrinsic
(and watch) no longer requires encoded extrinsic, but theUncheckedExtrsinsicV4
itself. This way, the correct extrinsic type is enforced by the compiler. The encoded extrinsic may still be submitted with the newly introducedsubmit_opaque_extrinsic
(and watch). See #421- Introduced new functionality with
fetch_events_for_extrinsic
andfetch_events_from_block
. With these functions, events associated to a specific event or inside a given block can be easily retrieved. Some examples have been adapted to show the use case of these features. See #437. - Extrinsic creation code was heavily simplified and a trait for each implemented pallet was introduced. This allows mocking and better unit testing on the user side. See #434
What's Changed since v0.9.0
⚡ Breaking API changes
- Remove
wait_for_event
and simplify event access insubscribe_events
(#437) @haerdib - Add traits and remove excessive type definition in extrinsic helpers (#434) @haerdib
- Make UncheckedExtrinsicV4 generic (#418) @haerdib
- Enforce
Bytes
and remove obsolete hex-utils (#423) @haerdib - Clean up Api Error and indicate future status clearly (#424) @haerdib
- Enforce
UncheckedExtrinsicV4
forsubmit_extrinsic
and add_opaque_extrinsic
(#421) @haerdib - Clean up extrinsic params builder (#405) @haerdib
- Remove thiserror (#419) @haerdib
🌈 Features
- Remove
wait_for_event
and simplify event access insubscribe_events
(#437) @haerdib - Add traits and remove excessive type definition in extrinsic helpers (#434) @haerdib
- add
fetch_events_from_block
andfetch_events_for_extrinsic
(#429) @haerdib - Make UncheckedExtrinsicV4 generic (#418) @haerdib
- Enforce
Bytes
and remove obsolete hex-utils (#423) @haerdib - Clean up Api Error and indicate future status clearly (#424) @haerdib
- Enforce
UncheckedExtrinsicV4
forsubmit_extrinsic
and add_opaque_extrinsic
(#421) @haerdib
Miscellaneous
13 changes
- Remove
wait_for_event
and simplify event access insubscribe_events
(#437) @haerdib - Add traits and remove excessive type definition in extrinsic helpers (#434) @haerdib
- add
fetch_events_from_block
andfetch_events_for_extrinsic
(#429) @haerdib - Add staking example to CI (#433) @haerdib
- Make UncheckedExtrinsicV4 generic (#418) @haerdib
- add
submit_and_watch_until_success
to examples (#428) @haerdib - Enforce
Bytes
and remove obsolete hex-utils (#423) @haerdib - Clean up Api Error and indicate future status clearly (#424) @haerdib
- Update toolchain to 2023-01-05 (#425) @haerdib
- Enforce
UncheckedExtrinsicV4
forsubmit_extrinsic
and add_opaque_extrinsic
(#421) @haerdib - Bump tokio from 1.23.0 to 1.23.1 (#427) @dependabot
- Clean up extrinsic params builder (#405) @haerdib
- Remove thiserror (#419) @haerdib