{"id":13651074,"url":"https://github.com/coretime-dev/substrate-stencil","last_synced_at":"2025-04-22T22:30:27.821Z","repository":{"id":38071554,"uuid":"276259339","full_name":"coretime-dev/substrate-stencil","owner":"coretime-dev","description":"A template for kick starting a Substrate based PoS chain.","archived":false,"fork":false,"pushed_at":"2023-06-07T10:11:59.000Z","size":2080,"stargazers_count":73,"open_issues_count":0,"forks_count":32,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T08:18:50.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coretime-dev.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}},"created_at":"2020-07-01T02:40:48.000Z","updated_at":"2025-02-07T10:32:23.000Z","dependencies_parsed_at":"2024-01-03T05:14:08.865Z","dependency_job_id":"ec927ca8-3680-43d1-8f99-3d254b269d96","html_url":"https://github.com/coretime-dev/substrate-stencil","commit_stats":null,"previous_names":["coretime-dev/substrate-stencil"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coretime-dev%2Fsubstrate-stencil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coretime-dev%2Fsubstrate-stencil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coretime-dev%2Fsubstrate-stencil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coretime-dev%2Fsubstrate-stencil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coretime-dev","download_url":"https://codeload.github.com/coretime-dev/substrate-stencil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250333846,"owners_count":21413467,"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":"2024-08-02T02:00:44.744Z","updated_at":"2025-04-22T22:30:27.356Z","avatar_url":"https://github.com/coretime-dev.png","language":"Rust","funding_links":[],"categories":["Templates"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003ch1\u003e\u003ccode\u003esubstrate-stencil\u003c/code\u003e\u003c/h1\u003e\n\n  \u003cstrong\u003eA template for kick starting a Rust and Blockchain project using \u003ca href=\"https://github.com/paritytech/substrate\"\u003eSubstrate\u003c/a\u003e.\u003c/strong\u003e\n\n  \u003ch3\u003e\n    \u003ca href=\"https://substrate.io/\"\u003eDocs\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://matrix.to/#/!HzySYSaIhtyWrwiwEV:matrix.org?via=matrix.parity.io\u0026via=matrix.org\u0026via=web3.foundation\"\u003eChat\u003c/a\u003e\n  \u003c/h3\u003e\n\n\u003c/div\u003e\n\n## Features\n\nThis template includes the minimum required components to start a PoS testnet, inspired by [substrate-node-template](https://github.com/substrate-developer-hub/substrate-node-template).\n\n* Consensus related pallets: Babe \u0026 GRANDPA\n* Staking related pallets: staking, session, authorship, im-online, offences, utility\n* Governance related pallets: collective, membership, elections-phragmen, democracy, treasure\n\n**Notes:** The code is un-audited and not production ready, use it at your own risk.\n\n## Getting Started\n\nFollow the steps below to get started.\n\n### Rust Setup\n\nFirst, complete the [Dev Docs Installation](https://docs.substrate.io/v3/getting-started/installation/).\n\n### Build and Run\n\nUse the following command to build the node and run it after build successfully:\n\n```sh\ncargo build --release\n./target/release/substrate-stencil --dev\n```\n\n## Run public testnet\n\n* Modify the genesis config in chain_spec.rs\n* Build spec, `./target/release/substrate-stencil build-spec --chain staging \u003e stencil-staging.json`\n* Change original spec to encoded raw spec, `./target/release/substrate-stencil build-spec --chain=stencil-staging.json --raw \u003e stencil-staging-raw.json`\n* Start your bootnodes, node key can be generate with command `./target/release/substrate-stencil key generate-node-key`.\n  ```shell\n  ./target/release/substrate-stencil \\\n       --node-key \u003cyour-node-key\u003e \\\n       --base-path /tmp/bootnode1 \\\n       --chain stencil-staging-raw.json \\\n       --name bootnode1\n  ```\n* Start your initial validators,\n  ```shell\n  ./target/release/substrate-stencil \\\n      --base-path  /tmp/validator1 \\\n      --chain   stencil-staging-raw.json \\\n      --bootnodes  /ip4/\u003cyour-bootnode-ip\u003e/tcp/30333/p2p/\u003cyour-bootnode-peerid\u003e \\\n\t    --port 30336 \\\n\t    --ws-port 9947 \\\n\t    --rpc-port 9936 \\\n      --name  validator1 \\\n      --validator\n  ```\n* [Insert session keys](https://substrate.dev/docs/en/tutorials/start-a-private-network/customchain#add-keys-to-keystore)\n* Attract enough validators from community in waiting\n* Call force_new_era in staking pallet with sudo, rotate to PoS validators\n* Enable governance, and remove sudo\n* Enable transfer and other functions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoretime-dev%2Fsubstrate-stencil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoretime-dev%2Fsubstrate-stencil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoretime-dev%2Fsubstrate-stencil/lists"}