Skip to content

Releases: polkadot-js/api

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

v1.16.1

26 May 15:14
Compare
Choose a tag to compare
  • Support for Polkadot CC1 types & signed extensions
  • Add support for Babe VRF secondary digests (author extraction)
  • Adjust Perbill/Permill toHuman() formatting to output percentage
  • Support for latest Substrate types & metadata
  • Update to latest TypeScript, eslint & typescript-eslint
  • @polkadot/util 2.11

v1.15.1

23 May 09:54
Compare
Choose a tag to compare

v1.14.1

14 May 14:29
Compare
Choose a tag to compare
  • Important DispatchInfo changed paysFee to an enum, if using an older version use, DispatchInfo: 'DispatchInfoTo244'
  • Align imOnline Heartbeat with Substrate (Thanks to https://github.com/arjanz)
  • Adust EVM types to include Vicinity (Thanks to https://github.com/drewstone)
  • Add derive.democracy.locks to return extended lock info based on votes
  • Ensure metadata is only requested once upon startup (bypass on upgrade subscriptions)
  • Expand testing around ExtrinsicEra construction
  • Expand Registry to direct access to available signed extensions (in addition to exposed types)
  • Cater for new CheckSpecVersion and CheckTxVersion signed extensions (with SignerPayload adjustments)
  • Cater for new PrevalidateAttests signed extensions (Polkadot claims)
  • Don't re-calculate submittable extrinsic hash on status checks (optimization)
  • Support for both old/new Tuples in democracy.depositOf in derives
  • Fix democracy ProxyState types
  • Extends types for Polkadot claims
  • Update @polkadot/util to 2.10

v1.13.1

06 May 18:34
Compare
Choose a tag to compare
  • Add support for ECDSA keypairs in extrinsic signers (Thanks to https://github.com/akru)
  • Rework type generation to use templating for better maintenance (Thanks to https://github.com/xlc)
  • Adjust extrinsic sign/signAsync signature to optional options (Thanks to https://github.com/KiChjang)
  • Support round-robin endpoints in the WsProvider with array of urls (Thanks to https://github.com/hoani)
  • Remove static test-only metadata for Polkadot dev chains (not updated regularly, Substrate dev to remain)
  • Revert error swallow for wrong preimage data (temp. override for Kusama upgrade with no migration)
  • Fix .encodedLength calculation on [Type; N] types
  • Add new rpc.grandpa.roundState RPC
  • Update types & metadata as per latest Substrate master
  • Adjust Centrifuge starting version

v1.12.1

29 Apr 22:24
Compare
Choose a tag to compare
  • Fix CompactAssignments types (Thanks to https://github.com/arjanz)
  • Provider ayo-connect now allows for interval config (Thanks to https://github.com/jnaviask)
  • Cleanup generation for c-like enums (Thanks to https://github.com/monitz87)
  • Allow subscription to all storage keys, alignment with Substrate (Thanks to https://github.com/xlc)
  • Cater for vote delegations in democracy derives
  • Cleanup account derive flags where to allow for optional council modules
  • Allow generic types in ApiPromise.combineLatest
  • Update to latest substrate metadata

v1.11.1

21 Apr 08:19
Compare
Choose a tag to compare
  • Important Substrate master has an updated Weight (to u64), on older chains apply Weight: 'u32' (This does affect event decoding if wrongly set)
  • Allow user type augmentation to work with different versions of rxjs (Thanks to https://github.com/monitz87)
  • Align augmented generation with camelCase (Thanks to https://github.com/monitz87)
  • Fix bitfield endian encoding (Thanks to investigation by https://github.com/xlc)
  • Add account flag derives via accounts.flags(accountId) (Thanks to https://github.com/kwingram25)
  • Fix entries decoding for Option<Number> (& simplify, decoding correctly on rpc layer)
  • Add system.{localPeerId, localListenAddresses} & state.getReadProof RPCs
  • Ensure proper propagation of api.runtimeVersion (used for signing) after upgrade
  • Field ordering fix for deprecated Linkage (used in linked maps)
  • derive.account.info now returns all field enum types decoded (not only raw)
  • Add banner with FAQ entries for node-template to aid with common issues
  • Digest has been moved to definitions, removal of GenericDigest type
  • Support Fixed128 type
  • Add transactionVersion to RuntimeVersion struct
  • Enhance API support for non-subscription providers (skip subscription to runtimeVersion)
  • Adjust types for Kusama 1057 (notably the new StakingLedger)