Skip to content

Releases: polkadot-js/api

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

v1.19.1

16 Jun 06:49
Compare
Choose a tag to compare
  • Improve typing on .entries() queries (Thanks to https://github.com/monitz87)
  • Align metadata and types with latest Substrate
  • Update Polkadot types for current evolution of parachains
  • Allow for type aliasing on events (aligning with calls & queries)

v1.18.1

08 Jun 16:06
Compare
Choose a tag to compare
  • Expand docs on node-template types (Thanks to https://github.com/g2udevelopment)
  • Update contract fees to current impl. (Thanks to https://github.com/djuanit0x)
  • Allow Option types in enum/Result type generation (Thanks to http://github.com/xlc)
  • Add .entriesPaged and .keysPaged methods for state maps (https://github.com/monitz87)
  • Support for latest Polkadot CC1, Kusama, Westend & Substrate types
  • Add types for new Substrate proxy module
  • Adjust types for new Substrate (renamed) npos-elections module
  • Call now exposes method & section fields (aligned with toHuman() representation)
  • Cater for new Substrate string subscription ids (with backwards compatibility)
  • @polkadot/util 2.13

v1.17.2

02 Jun 15:29
Compare
Choose a tag to compare
  • Ensure subscription promise resolves before first result

v1.17.1

02 Jun 12:29
Compare
Choose a tag to compare
  • Fix ElectionSize type (Thanks to https://github.com/arjanz)
  • Allow BTreeSet decoding from Array/JSON inputs
  • Adjust Call-only metadata output to trim documentation to first full line
  • Safeguard against divide-by-zero for total era points (expired reward eras)
  • Internal derive optimizations with combining calls
  • Support for latest Substrate types & metadata
  • @polkadot/util 2.12