{"id":26233668,"url":"https://github.com/docknetwork/node-types","last_synced_at":"2025-04-22T12:11:09.924Z","repository":{"id":57109011,"uuid":"374686221","full_name":"docknetwork/node-types","owner":"docknetwork","description":"Types to be used with Substrate node","archived":false,"fork":false,"pushed_at":"2024-01-23T14:43:21.000Z","size":44,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T06:51:53.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docknetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-07T13:59:46.000Z","updated_at":"2024-02-04T09:32:19.000Z","dependencies_parsed_at":"2024-01-23T15:45:45.131Z","dependency_job_id":"5874e273-5eb3-4f85-a217-b66ee4102e3b","html_url":"https://github.com/docknetwork/node-types","commit_stats":{"total_commits":30,"total_committers":5,"mean_commits":6.0,"dds":0.6,"last_synced_commit":"209bfdaf98305eec498fa313891cc2df69531a77"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fnode-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fnode-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fnode-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fnode-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docknetwork","download_url":"https://codeload.github.com/docknetwork/node-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237832,"owners_count":21397401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-13T01:17:01.643Z","updated_at":"2025-04-22T12:11:09.890Z","avatar_url":"https://github.com/docknetwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-types\nTypes to be used with Substrate node\n\nThe types to provide polkadot-js, sidecar, etc when working with testnet or mainnet. \nThe 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. \nCoincidentally, the types are same for testnet and mainnet.\n\nStarting from spec version 27 (v27.js), PoS chain starts. Note that `spec_name` is different.\n\nWhen using polkadot-js, the object exported from bundle.js should be passed to `typesBundle` argument of `ApiPromise.create`.\n\nAdd to your project as `yarn add @docknetwork/node-types` or `npm install @docknetwork/node-types`.\n\n## Sidecar\n\nWhen using [sidecar](https://github.com/paritytech/substrate-api-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\n\n```\nSAS_SUBSTRATE_TYPES_BUNDLE=\u003cpath to dist/index.cjs.js\u003e SAS_SUBSTRATE_WS_URL=\u003cwebsocket endpoint of the node\u003e yarn dev\n```\n\nFor 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. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Fnode-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocknetwork%2Fnode-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Fnode-types/lists"}