npm @polkadot/api 3.5.1
v3.5.1

latest releases: 14.0.1, 13.2.1, 13.1.1...
3 years ago

Upgrade priority: Low. Recommended for parachain developers.

  • Important The default for Substrate on the Address types are MultiAddress. It is recommended that chains add explicit definitions for Address and LookupSource in their types, instead of relying on the API-defaults. A future update will swap the API defaults to align with Substrate.
  • Important Like the above changes in Substrate, the AccountInfo structure has also changed. It is recommended that chain developers explicitly add AccountInfo: 'AccountInfoWithRefCount' for the version with refCount on and AccountInfoWithProviders for the latest Substrate version. As per the above, the API defaults will be changed to align with Substrate.

Contributed:

Changes:

  • Remove recursion in vector/struct U8a stream decoding
  • Availability of staking made optional in session length calcs (era does require it)
  • Updates to parachain types, ensuring it has coverage for all the latest
  • Update all Rococo types to the latest (session keys, session reports, parachain indexes)
  • Update known upgrade checkpoints fo WestEnd
  • Add types of the lottery module in Substrate
  • Add and extend types for the crowdloan module in Polkadot
  • Adjust node-template to default to MultiAddress on specVersion >= 100

Don't miss a new api release

NewReleases is sending notifications on new releases.