Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@docknetwork/node-types
Advanced tools
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
.
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
Types for Dock's Substrate node
The npm package @docknetwork/node-types receives a total of 7,443 weekly downloads. As such, @docknetwork/node-types popularity was classified as popular.
We found that @docknetwork/node-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.