Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@docknetwork/node-types

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docknetwork/node-types

Types for Dock's Substrate node

  • 0.17.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.6K
decreased by-20.27%
Maintainers
4
Weekly downloads
 
Created
Source

node-types

Types to be used with Substrate node

The types to provide polkadot-js, sidecar, etc when working with testnet or mainnet. The file v22.js contains types to be used till spec version 22. The file v23.js contains types to be used starting from spec version 23. Coincidentally, the types are same for testnet and mainnet.

Starting from spec version 27 (v27.js), PoS chain starts. Note that spec_name is different.

When using polkadot-js, the object exported from bundle.js should be passed to typesBundle argument of ApiPromise.create.

Add to your project as yarn add @docknetwork/node-types or npm install @docknetwork/node-types.

Sidecar

When using sidecar, build the package first with yarn build. This will create a dist folder in the same directory. Then run the following command to connect to mainnet

SAS_SUBSTRATE_TYPES_BUNDLE=<path to dist/index.cjs.js> SAS_SUBSTRATE_WS_URL=<websocket endpoint of the node> yarn dev

For mainnet, the endpoint is wss://mainnet-node.dock.io/. Also note that we have tested sidecar versions from 8.0.3 to 9.1.0 only.

FAQs

Package last updated on 23 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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