Skip to content

Releases: polkadot-js/api

v1.29.1

17 Aug 11:02
Compare
Choose a tag to compare

Upgrade priority: Low, unless on bleeding-edge chain with new compact CompactAssignments.

  • Important The Substrate CompactAssignments type has changed for better space utilization. On older chains, supply CompactAssignments: 'CompactAssignmentsTo257'
  • Clean tx cookbook param expansion (Thanks to https://github.com/swswsw)
  • Add additional Fixed{I,U}{64,128} and {I,U}32F32 types
  • Add desiredRunnersUp to council derives
  • Cleanup indices/AccountId combination derive lookups
  • @polkadot/util 3.2

v1.28.1

10 Aug 06:34
Compare
Choose a tag to compare

Upgrade priority: Low, unless using Centrifuge or parachains

  • Update Centrifuge types to latest (Thanks to https://github.com/mikiquantum)
  • Add cookbook entry for viewing block extrinsics
  • Support types for time-delay proxies
  • Update types for parachains
  • @polkadot/util 3.1
  • @polkadot/wasm-crypto 1.3

v1.27.1

03 Aug 09:06
Compare
Choose a tag to compare
  • Remove outdated example poc-3 RPC reference (Thanks to https://github.com/swswsw)
  • Raw/Bytes toHuman detects ASCII sequence for text output
  • Add know types for the Rococo chain

v1.26.1

27 Jul 11:27
Compare
Choose a tag to compare
  • Update docs for the new system.accountNextIndex (Thanks to https://github.com/shawntabrizi)
  • Update contracts call parameter typing (Thanks to https://github.com/kwingram25)
  • Adjust votingBalance to only return freeBalance (only council voting is free + reserved)
  • Additional checks for referenced Vec sub-type deconstruction in typegen
  • Allow for API typesBundle option to inject a group of chain versions types
  • Update metadata static tests for latest Substrate
  • @polkadot/util 3.0

v1.25.1

20 Jul 07:50
Compare
Choose a tag to compare
  • Important Contract RPC result updated on Substrate, on older chains supply ContractExecResult: 'ContractExecResultTo255'
  • Support for custom HTTP headers in providers (Thanks to https://github.com/brad-larson)
  • Update known types for Centrifuge (Thanks to https://github.com/philipstanislaus)
  • Update API users with Registrar #1 (Thanks to https://github.com/chevdor)
  • Raw/Bytes toHuman() displays utf-8 as available
  • Add fallback for setImmediate when not polyfilled
  • Update NetworkState reputation type for system_networkState RPC
  • Update session progress calcs for Aura (cater for negative)
  • Fix class prototype for (basically-deprecated) Linkage type
  • Add Polkadot types for purchase pallet

v1.24.1

13 Jul 09:58
Compare
Choose a tag to compare
  • Added isAscii & isUtf8 getters to Bytes & Raw types
  • Added toUtf8() helper to Bytes & Raw types
  • @polkadot/util 2.18

v1.23.1

06 Jul 05:49
Compare
Choose a tag to compare
  • Small README typo fix (Thanks to https://github.com/woss)
  • Add latest Substrate master types
  • Adjust <Codec>.toRawType() to use registry name as available
  • Update ProxyType for Kusama, Polkadot & Westend with IdentityJudgement
  • Validate number format (signed/unsigned) for number types
  • Remove core codec dependencies on Base class (with proper TS encapsulation)
  • @polkadot/util 2.17

v1.22.1

30 Jun 08:15
Compare
Choose a tag to compare
  • Important Substrate changed the treasury tip structure, on older chains supply OpenTip: 'OpenTipTo225'
  • Allow for [u8; 33] in U8aFixed (Thanks to https://github.com/akru)
  • Improve derive accountId -> accountIndex lookups (optimize entries queries)
  • Vesting balance calculations via derive.balances.all has been updated for locks
  • Add derive for multi staking rewards with specified eras
  • @polkadot/util 2.16

v1.21.1

23 Jun 16:19
Compare
Choose a tag to compare
  • Fix subscriptions never unsubscribing after the id swap in 1.18.1 (Thanks to https://github.com/dillu24 for testing iterations)
  • Add support for CheckMortality signed extension (old CheckEra is now an alias)
  • Promise API will default to using getStorage on non-subscription calls, reducing RPC overhead
  • Optimize derive BN allocations, using in-place operators as applicable
  • Add new substrate types for Babe EquivocationProof
  • Adjust Releases enum to use a shared instance

v1.20.1

22 Jun 14:23
Compare
Choose a tag to compare
  • Important RPC for account_nextIndex has been moved to system_accountNextIndex (Aligning with Substrate as a primary alias)
  • Cleanup map entries support with only Substrate 2.0-era RPCs (as introduced)
  • Add system_dryRun RPC
  • Optimize derive.staking.queryMulti retrievals with additional per-type batching
  • Add derive.staking.waitingInfo (same as electedInfo for waiting validators)
  • Adjust types & metadata for latest Substrate
  • @polkadot/util 2.15