Installations
npm install @docknetwork/node-types
Developer
docknetwork
Developer Guide
Module System
CommonJS
Min. Node Version
>=14.0.0
Typescript Support
No
Node Version
NPM Version
Statistics
1 Stars
45 Commits
5 Watching
6 Branches
5 Contributors
Updated on 04 Feb 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
795,173
Last day
-38.6%
895
Compared to previous day
Last week
-30.9%
10,832
Compared to previous week
Last month
20.5%
66,221
Compared to previous month
Last year
63%
411,509
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
3
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.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 6/14 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/docknetwork/node-types/npm-publish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/docknetwork/node-types/npm-publish.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/npm-publish.yml:17
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 23 are checked with a SAST tool
Score
3.8
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More