New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/jsonrpc

Package Overview
Dependencies
Maintainers
1
Versions
1394
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/jsonrpc - npm Package Versions

1
140

1.6.0-beta.5

Diff

jacogr
published 1.6.0-beta.4 •

jacogr
published 1.6.0-beta.3 •

jacogr
published 1.6.0-beta.2 •

jacogr
published 1.6.0-beta.1 •

jacogr
published 1.6.0-beta.0 •

jacogr
published 1.5.1 •

Changelog

Source

1.5.1 Mar 06, 2020

  • Important Substrate master has updated staking, on older chains supply StakingLedger: 'StakingLedgerTo223'
  • Important Substrate master has updated collective, on older chains supply Votes: 'VotesTo230'

Contributed:

  • Add proper support for type generation with an Enum containing an Tuple (Thanks to https://github.com/monitz87)
  • Fix storage parsing not resulting in rejected Promises (Fix from https://github.com/aniiantt applied)
  • Remove use of deprecated Observable.create (Thanks to https://github.com/Himself65)

Changes:

  • Add types & metadata for the latest Polkadot/Substrate runtime versions (master branches)
  • Type extraction will now allow the same sub-module name across packages, i.e. @polkadot/types/interfaces/runtime & @mine/interfaces/runtime will be valid
  • Add .range([from, to]: [Hash, Hash?], ...args: any[]): [Hash, Codec][] on all storage entries
  • Add .raw(...args: any[]): Promise<Uint8Array & Codec> to all RPC calls, returning the un-encoded result
  • Allow pre-module type aliasing with typesAlias: { <moduleName>: { <meta-type>: <alias-type> } } in API construction options
  • Allow BTreeMap to be initialized with a Record<string, any> object (in addition to Map)
  • Allow for HashMap<KeyType, ValueType> definitions
  • Bool will now correctly return isEmpty on false/default values
  • Refresh the NetworkState types as returned by the rpc.system.networkState() call to current
  • Expose registry.createClass(<typeName>) to allow for creating type classes. If you are using createClass or ClassOf in your code, it is recommended to swap to this instance.
  • Add additional derives to api.derive.staking to handle lazy-payout retrievals
  • Update @polkadot/{util, util-crypto, keyring} to 1.6.1 & @polkadot/wasm to 1.2.1
jacogr
published 1.5.0-beta.33 •

jacogr
published 1.5.0-beta.32 •

jacogr
published 1.5.0-beta.31 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc