Releases: polkadot-js/api
Releases · polkadot-js/api
v9.11.1
- Breaking change For users of
ScProvider
you now need to explicitly pass@substrate/connect
as a parameter. This means the code needs to be adjusted as follows -
import { ScProvider } from '@polkadot/api';
import * as Sc from '@substrate/connect';
const provider = new ScProvider(Sc, Sc.WellKnownChain.polkadot);
Contributed:
- Fix for typegen with nested tuples (Thanks to https://github.com/sander2)
- Expose blockNumber on submittable results (Thanks to https://github.com/ken-centrality)
Changes:
- The
ScProvider
interface now needs receive an@substrate/connect
instance - Along with the above
ScProvider.WellKnownChains
has been removed - Update to latest Polkadot, Kusama & Substrate metadata
v9.10.5
Changes:
- Revert 9.10.4 paymentInfo changes (fallback only works on struct, not
Weight
)
v9.10.4
Changes:
- Align runtime
paymentInfo
calls with Substrate (w/ decoding fallbacks)
v9.10.3
Changes:
- Add override for Structs where
registry
appear as a field - Update to latest Polkadot, Kusama & Substrate metadata
- Kusama 9320/9340/9350 & Westend 9330/9340/9350 upgrade blocks
v9.10.2
Changes:
- Fix
derive.balances.account
detection for system vs balances
v9.10.1
- Important Since 9.2.1 the recommended way of accessing
WellKnownChain
for light clients is viaScProvider.WellKnownChain
. This release removes the explicit export from theScProvider
root.
Changes:
- Adjust payloads to use
BlockHash
types (as applicable) - Adjust type-only imports in
ScProvider
- Update to latest Polkadot, Kusama & Substrate metadata
- Update to
@polkadot/util
10.2.1