{"id":26233686,"url":"https://github.com/docknetwork/substrate-warmup","last_synced_at":"2025-04-22T12:11:10.025Z","repository":{"id":104957947,"uuid":"197831428","full_name":"docknetwork/substrate-warmup","owner":"docknetwork","description":"Experimental Substrate chain","archived":false,"fork":false,"pushed_at":"2020-02-19T17:20:16.000Z","size":589,"stargazers_count":10,"open_issues_count":14,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T15:01:40.198Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docknetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","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":"2019-07-19T19:32:34.000Z","updated_at":"2021-03-05T16:33:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"12df8a26-663d-48cd-8e49-4e4415c55279","html_url":"https://github.com/docknetwork/substrate-warmup","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-warmup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-warmup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-warmup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Fsubstrate-warmup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docknetwork","download_url":"https://codeload.github.com/docknetwork/substrate-warmup/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:05.359Z","updated_at":"2025-04-22T12:11:10.018Z","avatar_url":"https://github.com/docknetwork.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Substrate Warmup\n\nA Parity Substrate SRML baseline module for DockChain. The primary purpose is to work toward a core\nchain and module config, which includes a multi token module and a voting module.\n\n# Quick setup using Docker\n\n```bash\ndocker build -t full-node .\ndocker run -p 9944:9944 full-node --alice\n```\n\nSee the Dockerfile for more details.\n\n# Quick p2p swarm simulation using docker-compose\n\n```bash\ndocker-compose up --scale standard=5\n#                                  ^ number of default nodes to simulate\n```\n\n# Development setup\n\n## Requires\n\n```bash\n# Rust\ncurl https://sh.rustup.rs -sSf | sh\n\n# Nightly toolchain for building runtime\nrustup toolchain add nightly\n\n# wasm32-unknown-unknown target\nrustup target add wasm32-unknown-unknown --toolchain nightly\n\n# substrate\ngit clone https://github.com/paritytech/substrate.git\n(cd substrate; git checkout aa937d9b4e5767f224cf9d5dfbd9a537e97efcfc) # our current pinned version\ncargo install --path substrate/node/cli --force --bin substrate\n```\n\n## Run\n\nYou can run the dev testnet chain with:\n\n```bash\n# make a temporary directory in which to store chain data\nmkdir -p tmp\n\n# create a chainspec\ncargo run --release -- ved \u003e tmp/chainspec.json\n#         ^^^^^^^^^    ^^^ ^^^^^^^^^^^^^^^^^^^^ Dump the chainspec into a file which we'll use in\n#             |         |                       the next step.\n#             |         |\n#             | Specify the dev chain. Run `cargo run --release -- help`\n#             | for a full list of options.\n#             |\n# The runtime is executed purley in Wasm. The naitive runtime is disabled for this chain.\n# Wasmi sometimes can't keep up with block production unless compiled with optimizations.\n# In addition to the being slow, the runtime much larger when compiled without --release.\n\n# run created chainspec using substrate\nsubstrate --chain ./tmp/chainspec.json --alice --base-path ./tmp\n#         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ Store chain data in a\n#             |                           |                      temporary directory.\n#             |                           |\n#             | Use the publicly known keypair, 'Alice', to produce blocks.\n#             |\n# Run the chain specification we specified in the previous command.\n```\n\n# Using the polkadot js UI\n\n[transactions from Alice are currently broken](https://github.com/docknetwork/substrate-warmup/issues/47)\n\nOnce the dev chain is running, natively; within docker; or through docker-compose, you can interact\nwith it via browser.\n\nGo to https://polkadot.js.org/apps/#/settings and set \"remote endpoint\" to your locally running node 127.0.0.1.\n\nCopy the type definitions in \"./ui-types.json\" to https://polkadot.js.org/apps/#/settings/developer and save.\n\nTo interact with the dev chain, you'll need to load the private key for the superuser, Alice, into the browser ui.\nGo to https://polkadot.js.org/apps/#/accounts and add an account with the publicly known seed\n`bottom drive obey lake curtain smoke basket hold race lonely fit walk`. Derive the Alice key from the dev seed\nusing \"//Alice\" as the derivation path on an sr25519 key.\n\nOnce the key is loaded, you should see that Alice has a large account balance.\n\nTo try out the erc20 module, go to https://polkadot.js.org/apps/#/extrinsics. You may need another dummy\naccount if you want to send PSTABLE1 and PSTABLE2 around. Under the erc20 module in the extrinsics page, find\nthe transfer() function which will send tokens. Set `token_id` to 0 for PSTABLE1, 1 for PSTABLE2.\n\n# Note about Licensing\n\nDock's Substrate development is currently licensed under GPLv3 as inherited from\nparitytech/substrate. This license will change to Apache 2.0 in sync with Parity Technologies\nupdating the entire Substrate toolset to Apache 2.0 as previously announced.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Fsubstrate-warmup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocknetwork%2Fsubstrate-warmup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Fsubstrate-warmup/lists"}