This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Enhancement on Substrate Node Template #8473
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b7f99df
update cargo version in node-tpl to v3 and spec_version
jimmychu0807 30d528b
updated
jimmychu0807 52bd96a
Updated pallet-template to v3 and sync back files in current devhub s…
jimmychu0807 55c8534
Updated node-tpl release process doc
jimmychu0807 652b33f
updated script
jimmychu0807 c1fe59d
updated pallet-template version
jimmychu0807 f507a2d
Merge branch 'master' into jc/node-tpl-work
jimmychu0807 45d35e6
updated
jimmychu0807 1d254b5
updated
jimmychu0807 0b98b71
updated rsync cmd
jimmychu0807 236e9b5
Update bin/node-template/scripts/init.sh
e0c1f0d
Removed redundant info, and added explanation on spec_version
jimmychu0807 b91f5c9
Merge remote-tracking branch 'gh-parity/jc/node-tpl-work' into jc/nod…
jimmychu0807 d2cfacc
grammar fix
jimmychu0807 46e62fb
Rm redundant wordings
jimmychu0807 31d2b49
updated spelling
jimmychu0807 4e9b008
Comment `frame-support/try-runtime` until it is released in crate.io
jimmychu0807 277d124
Resumed back try-runtime line.
jimmychu0807 f606bd4
Added a key caveat when changing node tpl from depending on local Sub…
jimmychu0807 0723fb4
Update docs/node-template-release.md
7adef57
Update docs/node-template-release.md
4fa7bbd
Update docs/node-template-release.md
b2d4c2b
Update docs/node-template-release.md
bb42530
Updated readme
jimmychu0807 814b0ca
Merge remote-tracking branch 'gh-parity/master' into jc/node-tpl-work
jimmychu0807 40b5ca6
minor words update
jimmychu0807 e6b82bd
Merge branch 'master' into jc/node-tpl-work
jimmychu0807 a767adc
updated Cargo.lock
jimmychu0807 17bb913
Updated based on build test output
jimmychu0807 4995834
updated err msg comparison
jimmychu0807 8919acd
Merge remote-tracking branch 'gh-parity/master' into jc/node-tpl-work
jimmychu0807 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [package] | ||
| name = "node-template-release" | ||
| version = "2.0.0" | ||
| version = "3.0.0" | ||
| authors = ["Parity Technologies <[email protected]>"] | ||
| edition = "2018" | ||
| license = "GPL-3.0" | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| indent_style=space | ||
| indent_size=2 | ||
| tab_width=2 | ||
| end_of_line=lf | ||
| charset=utf-8 | ||
| trim_trailing_whitespace=true | ||
| insert_final_newline = true | ||
|
|
||
| [*.{rs,toml}] | ||
| indent_style=tab | ||
| indent_size=tab | ||
| tab_width=4 | ||
| max_line_length=100 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| version: "3.2" | ||
kianenigma marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| services: | ||
| dev: | ||
| container_name: node-template | ||
| image: paritytech/ci-linux:974ba3ac-20201006 | ||
| working_dir: /var/www/node-template | ||
| ports: | ||
| - "9944:9944" | ||
| environment: | ||
| - CARGO_HOME=/var/www/node-template/.cargo | ||
| volumes: | ||
| - .:/var/www/node-template | ||
| - type: bind | ||
| source: ./.local | ||
| target: /root/.local | ||
| command: bash -c "cargo build --release && ./target/release/node-template --dev --ws-external" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| --- | ||
| title: Installation | ||
| --- | ||
|
|
||
| This page will guide you through the steps needed to prepare a computer for development with the | ||
| Substrate Node Template. Since Substrate is built with | ||
| [the Rust programming language](https://www.rust-lang.org/), the first thing you will need to do is | ||
| prepare the computer for Rust development - these steps will vary based on the computer's operating | ||
| system. Once Rust is configured, you will use its toolchains to interact with Rust projects; the | ||
| commands for Rust's toolchains will be the same for all supported, Unix-based operating systems. | ||
|
|
||
| ## Unix-Based Operating Systems | ||
|
|
||
| Substrate development is easiest on Unix-based operating systems like macOS or Linux. The examples | ||
| in the Substrate [Tutorials](https://substrate.dev/tutorials) and [Recipes](https://substrate.dev/recipes/) | ||
| use Unix-style terminals to demonstrate how to interact with Substrate from the command line. | ||
|
|
||
| ### macOS | ||
|
|
||
| Open the Terminal application and execute the following commands: | ||
|
|
||
| ```bash | ||
| # Install Homebrew if necessary https://brew.sh/ | ||
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | ||
|
|
||
| # Make sure Homebrew is up-to-date, install openssl and cmake | ||
| brew update | ||
| brew install openssl cmake | ||
| ``` | ||
|
|
||
| ### Ubuntu/Debian | ||
|
|
||
| Use a terminal shell to execute the following commands: | ||
|
|
||
| ```bash | ||
| sudo apt update | ||
| # May prompt for location information | ||
| sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl | ||
| ``` | ||
|
|
||
| ### Arch Linux | ||
|
|
||
| Run these commands from a terminal: | ||
|
|
||
| ```bash | ||
| pacman -Syu --needed --noconfirm cmake gcc openssl-1.0 pkgconf git clang | ||
| export OPENSSL_LIB_DIR="/usr/lib/openssl-1.0" | ||
| export OPENSSL_INCLUDE_DIR="/usr/include/openssl-1.0" | ||
| ``` | ||
|
|
||
| ### Fedora/RHEL/CentOS | ||
|
|
||
| Use a terminal to run the following commands: | ||
|
|
||
| ```bash | ||
| # Update | ||
| sudo dnf update | ||
| # Install packages | ||
| sudo dnf install cmake pkgconfig rocksdb rocksdb-devel llvm git libcurl libcurl-devel curl-devel clang | ||
| ``` | ||
|
|
||
| ## Rust Developer Environment | ||
|
|
||
| This project uses [`rustup`](https://rustup.rs/) to help manage the Rust toolchain. First install | ||
| and configure `rustup`: | ||
|
|
||
| ```bash | ||
| # Install | ||
| curl https://sh.rustup.rs -sSf | sh | ||
| # Configure | ||
| source ~/.cargo/env | ||
| ``` | ||
|
|
||
| Finally, configure the Rust toolchain: | ||
|
|
||
| ```bash | ||
| rustup default stable | ||
| rustup update nightly | ||
| rustup update stable | ||
| rustup target add wasm32-unknown-unknown --toolchain nightly | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we want to commit this file?