@polkadot/metadata
Advanced tools
Changelog
0.97.1 Nov 29, 2019
Registry
to all calls to createType
as well as all codec classes. If you are upgrading form an older version, use the migration guide to walk through the changes required.@polkadot/types
into @polkadot/metadata
. If you explicitly create Metadata
classes, you now would need to do so with the import Metadata from '@polkadot/metadata';
This is a decorated class, where the previous metadata is now available on Metadata.metadata
, alongside decorated consts.*
', tx.*
and query.*
.Keys
defaults to 4 keys now (Substrate master), depending on your node config, you would want to override with e.g. Keys: 'SessionKeys3'
(1, 2, 3, 4, 5 & 6)ValidatorPrefs
now default to the new percentage commission model, to use the previous validatorPayment
, you can override with ValidatorPrefs: 'ValidatorPrefsTo196'
Changes:
api.derive.*
now has built-in memomizationapi.derive.*
including era length progress and vesting calculations