v4.10.1
Upgrade priority: Medium. Recommended for uses of Polkadot/Kusama 9010 runtimes.
- Breaking change Support for the contracts V2 compatibility has been dropped in
@polkadot/api-contract
Contributed:
- Expose RPC definitions via
.meta(Thanks to https://github.com/jiqiang90) - Adjust staking derives for chain-specific optional fields (https://github.com/WoeOm)
- Update base Centrifuge types (Thanks to https://github.com/branan)
Changes:
- Allow for
Bounded*type usage (as per latest Substrate) - Adjust internal TS definitions for providers
- Fix
ContractRxquery result definitions (no extra Observable) - Handle contract call RPC result directly as
Raw(returned as hex) - Use
BN_*constants as non-specified defaults in contract interfaces - Remove all type overrides for node/node-template (API tracks latest)
- Contracts ABI now supports metadata version where indexes are 0-based
- Remove support for the old-style V2 contracts from
@polkadot/api-contract - Adjust historic decoration, return as-at registry via
getHeader,getMetadata&getRuntimeVersion - Adjust
VecFixedto allow for the handling of hex inputs - Adjust
Compact<*>to allow for wrappedtoBigInt()conversions - Fix
isPedanticdecoding to correctly handleText - Cater for new
phragmenElectionmodule naming - Add Kusama & Westend 9010 upgrade blocks
- Adjust
CompactSolutionfor 24 nominators - Bump static metadata to latest Substrate