v1.31.1
Upgrade priority: Medium, especially for staking users on Polkadot, Kusama & Westend (type updates applied for v23 onwards) or if transparent .at(hash) queries are required/used
- Important Substrate changed the
RewardDestinationenum with an extra field for payout-to-any account for staking preferences. If on an older chain consider addingRewardDestination: 'RewardDestinationTo257' - Important Substrate changed the
CompactAssignmenttype enhanced types for session solution submissions. If on an older chain consider addingCompactAssignments: 'CompactAssignmentsTo257'
Contributed:
- Fix documentation language and typos (Thanks to https://github.com/Meuko)
- Add missing
TransactionPrioritytype (Thanks to https://github.com/aniiantt) - Update definitions for new
CompactAssignments, including tests (Thanks to https://github.com/kianenigma)
Changes:
- Add transparent support for types/metadata, i.e. hash queries such as
rpc.chain.getBlock(<hash>)&query.system.events.at(<hash>)now works out-of-the-box injecting the correct metadata & types. - Optimize RPC-layer calls with detection of short-term cacheable calls (in the same way subscriptions are done)
- Additional checks on
AccountIdfor valid sizes - Add
toBigInt()(JS built-inBigInt) onInt/Uint, &Compact<*>types - Support for
.concaton Codec arrays - Support for serialization with
isBareflag on enums - Add
api.getBlockRegistry(blockHash?)to create registry/types for a specific block derive.democracy.locksnow returns delegated locks for an account as well- Adjust unlocking derives with appropriate in-place additions (less object allocations)
.signon submittables is marked deprecated (not due for removal, but rather use.signAsyncfor consistency with.signAndSend)- Adjust types for
CompactAssignments&RewardDestinationfor Polkadot, Kusama & Westend @polkadot/util3.4@polkadot/wasm-crypto1.4