Skip to content

Commit bf52814

Browse files
authored
V3.0.0+monthly 2021 09+1 (#234)
* update to monthly-2021-09+1 * name docs -> doc, correct versions * use monthly-2021-09+1 tag * nix instruction * fmt
1 parent cd936fc commit bf52814

File tree

12 files changed

+1002
-1566
lines changed

12 files changed

+1002
-1566
lines changed

Cargo.lock

Lines changed: 831 additions & 1446 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
[profile.release]
2+
panic = 'unwind'
3+
14
[workspace]
25
members = [
36
'node',
47
'pallets/template',
58
'runtime',
69
]
7-
[profile.release]
8-
panic = 'unwind'

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ A fresh FRAME-based [Substrate](https://www.substrate.io/) node, ready for hacki
66

77
## Getting Started
88

9-
Follow the steps below to get started with the Node Template, or get it up and running right from your browser
10-
in just a few clicks using [Playground](https://playground.substrate.dev/) :hammer_and_wrench:
9+
Follow the steps below to get started with the Node Template, or get it up and running right from
10+
your browser in just a few clicks using [Playground](https://playground.substrate.dev/)
11+
:hammer_and_wrench:
1112

1213
### Using Nix
1314

14-
Install [nix](https://nixos.org/) and optionally [direnv](https://github.com/direnv/direnv) and [lorri](https://github.com/target/lorri) for a fully plug
15-
and play experience for setting up the development environment. To get all the correct dependencies activate direnv `direnv allow` and lorri `lorri shell`.
15+
Install [nix](https://nixos.org/) and optionally [direnv](https://github.com/direnv/direnv) and
16+
[lorri](https://github.com/target/lorri) for a fully plug and play experience for setting up the
17+
development environment. To get all the correct dependencies activate direnv `direnv allow` and
18+
lorri `lorri shell`.
1619

1720
### Rust Setup
1821

19-
First, complete the [basic Rust setup instructions](./docs/rust-setup.md).
22+
First, complete the [basic Rust setup instructions](./doc/rust-setup.md).
2023

2124
### Run
2225

@@ -73,12 +76,14 @@ RUST_BACKTRACE=1 ./target/release/node-template -ldebug --dev
7376
### Connect with Polkadot-JS Apps Front-end
7477

7578
Once the node template is running locally, you can connect it with **Polkadot-JS Apps** front-end
76-
to interact with your chain. [Click here](https://polkadot.js.org/apps/#/explorer?rpc=ws://localhost:9944) connecting the Apps to your local node template.
79+
to interact with your chain. [Click
80+
here](https://polkadot.js.org/apps/#/explorer?rpc=ws://localhost:9944) connecting the Apps to your
81+
local node template.
7782

7883
### Multi-Node Local Testnet
7984

80-
If you want to see the multi-node consensus algorithm in action, refer to
81-
[our Start a Private Network tutorial](https://substrate.dev/docs/en/tutorials/start-a-private-network/).
85+
If you want to see the multi-node consensus algorithm in action, refer to our
86+
[Start a Private Network tutorial](https://substrate.dev/docs/en/tutorials/start-a-private-network/).
8287

8388
## Template Structure
8489

@@ -183,7 +188,8 @@ Then run the following command to start a single node development chain.
183188
```
184189

185190
This command will firstly compile your code, and then start a local development network. You can
186-
also replace the default command (`cargo build --release && ./target/release/node-template --dev --ws-external`)
191+
also replace the default command
192+
(`cargo build --release && ./target/release/node-template --dev --ws-external`)
187193
by appending your own. A few useful ones are as follow.
188194

189195
```bash
File renamed without changes.

node/Cargo.toml

Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,174 +1,170 @@
11
[package]
22
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
3+
build = 'build.rs'
34
description = 'A fresh FRAME-based Substrate node, ready for hacking.'
45
edition = '2018'
56
homepage = 'https://substrate.dev'
67
license = 'Unlicense'
78
name = 'node-template'
89
publish = false
910
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
10-
version = '3.0.0-monthly-2021-08'
11-
build = 'build.rs'
11+
version = '3.0.0-monthly-2021-09+1'
1212

1313
[package.metadata.docs.rs]
1414
targets = ['x86_64-unknown-linux-gnu']
1515

1616
[[bin]]
1717
name = 'node-template'
18+
1819
[build-dependencies.substrate-build-script-utils]
1920
git = 'https://github.com/paritytech/substrate.git'
20-
tag = 'monthly-2021-08'
21+
tag = 'monthly-2021-09+1'
2122
version = '3.0.0'
2223

23-
[dependencies.node-template-runtime]
24-
path = '../runtime'
25-
version = '3.0.0-monthly-2021-08'
26-
2724
[dependencies]
28-
jsonrpc-core = '15.1.0'
25+
jsonrpc-core = '18.0.0'
2926
structopt = '0.3.8'
3027

28+
[dependencies.node-template-runtime]
29+
path = '../runtime'
30+
version = '3.0.0-monthly-2021-09+1'
31+
3132
[dependencies.frame-benchmarking]
3233
git = 'https://github.com/paritytech/substrate.git'
33-
tag = 'monthly-2021-08'
34+
tag = 'monthly-2021-09+1'
3435
version = '4.0.0-dev'
3536

3637
[dependencies.frame-benchmarking-cli]
3738
git = 'https://github.com/paritytech/substrate.git'
38-
tag = 'monthly-2021-08'
39+
tag = 'monthly-2021-09+1'
3940
version = '4.0.0-dev'
4041

4142
[dependencies.pallet-transaction-payment-rpc]
4243
git = 'https://github.com/paritytech/substrate.git'
43-
tag = 'monthly-2021-08'
44+
tag = 'monthly-2021-09+1'
4445
version = '4.0.0-dev'
4546

4647
[dependencies.sc-basic-authorship]
4748
git = 'https://github.com/paritytech/substrate.git'
48-
tag = 'monthly-2021-08'
49+
tag = 'monthly-2021-09+1'
4950
version = '0.10.0-dev'
5051

5152
[dependencies.sc-cli]
5253
features = ['wasmtime']
5354
git = 'https://github.com/paritytech/substrate.git'
54-
tag = 'monthly-2021-08'
55+
tag = 'monthly-2021-09+1'
5556
version = '0.10.0-dev'
5657

5758
[dependencies.sc-client-api]
5859
git = 'https://github.com/paritytech/substrate.git'
59-
tag = 'monthly-2021-08'
60+
tag = 'monthly-2021-09+1'
6061
version = '4.0.0-dev'
6162

6263
[dependencies.sc-consensus]
6364
git = 'https://github.com/paritytech/substrate.git'
64-
tag = 'monthly-2021-08'
65+
tag = 'monthly-2021-09+1'
6566
version = '0.10.0-dev'
6667

6768
[dependencies.sc-consensus-aura]
6869
git = 'https://github.com/paritytech/substrate.git'
69-
tag = 'monthly-2021-08'
70+
tag = 'monthly-2021-09+1'
7071
version = '0.10.0-dev'
7172

7273
[dependencies.sc-executor]
7374
features = ['wasmtime']
7475
git = 'https://github.com/paritytech/substrate.git'
75-
tag = 'monthly-2021-08'
76+
tag = 'monthly-2021-09+1'
7677
version = '0.10.0-dev'
7778

7879
[dependencies.sc-finality-grandpa]
7980
git = 'https://github.com/paritytech/substrate.git'
80-
tag = 'monthly-2021-08'
81+
tag = 'monthly-2021-09+1'
8182
version = '0.10.0-dev'
8283

8384
[dependencies.sc-keystore]
8485
git = 'https://github.com/paritytech/substrate.git'
85-
tag = 'monthly-2021-08'
86+
tag = 'monthly-2021-09+1'
8687
version = '4.0.0-dev'
8788

8889
[dependencies.sc-rpc]
8990
git = 'https://github.com/paritytech/substrate.git'
90-
tag = 'monthly-2021-08'
91+
tag = 'monthly-2021-09+1'
9192
version = '4.0.0-dev'
9293

9394
[dependencies.sc-rpc-api]
9495
git = 'https://github.com/paritytech/substrate.git'
95-
tag = 'monthly-2021-08'
96+
tag = 'monthly-2021-09+1'
9697
version = '0.10.0-dev'
9798

9899
[dependencies.sc-service]
99100
features = ['wasmtime']
100101
git = 'https://github.com/paritytech/substrate.git'
101-
tag = 'monthly-2021-08'
102+
tag = 'monthly-2021-09+1'
102103
version = '0.10.0-dev'
103104

104105
[dependencies.sc-telemetry]
105106
git = 'https://github.com/paritytech/substrate.git'
106-
tag = 'monthly-2021-08'
107+
tag = 'monthly-2021-09+1'
107108
version = '4.0.0-dev'
108109

109110
[dependencies.sc-transaction-pool]
110111
git = 'https://github.com/paritytech/substrate.git'
111-
tag = 'monthly-2021-08'
112+
tag = 'monthly-2021-09+1'
112113
version = '4.0.0-dev'
113114

114115
[dependencies.sc-transaction-pool-api]
115116
git = 'https://github.com/paritytech/substrate.git'
116-
tag = 'monthly-2021-08'
117+
tag = 'monthly-2021-09+1'
117118
version = '4.0.0-dev'
118119

119120
[dependencies.sp-api]
120121
git = 'https://github.com/paritytech/substrate.git'
121-
tag = 'monthly-2021-08'
122+
tag = 'monthly-2021-09+1'
122123
version = '4.0.0-dev'
123124

124125
[dependencies.sp-block-builder]
125126
git = 'https://github.com/paritytech/substrate.git'
126-
tag = 'monthly-2021-08'
127+
tag = 'monthly-2021-09+1'
127128
version = '4.0.0-dev'
128129

129130
[dependencies.sp-blockchain]
130131
git = 'https://github.com/paritytech/substrate.git'
131-
tag = 'monthly-2021-08'
132+
tag = 'monthly-2021-09+1'
132133
version = '4.0.0-dev'
133134

134135
[dependencies.sp-consensus]
135136
git = 'https://github.com/paritytech/substrate.git'
136-
tag = 'monthly-2021-08'
137+
tag = 'monthly-2021-09+1'
137138
version = '0.10.0-dev'
138139

139140
[dependencies.sp-consensus-aura]
140141
git = 'https://github.com/paritytech/substrate.git'
141-
tag = 'monthly-2021-08'
142+
tag = 'monthly-2021-09+1'
142143
version = '0.10.0-dev'
143144

144145
[dependencies.sp-core]
145146
git = 'https://github.com/paritytech/substrate.git'
146-
tag = 'monthly-2021-08'
147+
tag = 'monthly-2021-09+1'
147148
version = '4.0.0-dev'
148149

149150
[dependencies.sp-finality-grandpa]
150151
git = 'https://github.com/paritytech/substrate.git'
151-
tag = 'monthly-2021-08'
152-
version = '4.0.0-dev'
153-
154-
[dependencies.sp-inherents]
155-
git = 'https://github.com/paritytech/substrate.git'
156-
tag = 'monthly-2021-08'
152+
tag = 'monthly-2021-09+1'
157153
version = '4.0.0-dev'
158154

159155
[dependencies.sp-runtime]
160156
git = 'https://github.com/paritytech/substrate.git'
161-
tag = 'monthly-2021-08'
157+
tag = 'monthly-2021-09+1'
162158
version = '4.0.0-dev'
163159

164160
[dependencies.sp-timestamp]
165161
git = 'https://github.com/paritytech/substrate.git'
166-
tag = 'monthly-2021-08'
162+
tag = 'monthly-2021-09+1'
167163
version = '4.0.0-dev'
168164

169165
[dependencies.substrate-frame-rpc-system]
170166
git = 'https://github.com/paritytech/substrate.git'
171-
tag = 'monthly-2021-08'
167+
tag = 'monthly-2021-09+1'
172168
version = '4.0.0-dev'
173169

174170
[features]

node/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub fn run() -> sc_cli::Result<()> {
119119
if cfg!(feature = "runtime-benchmarks") {
120120
let runner = cli.create_runner(cmd)?;
121121

122-
runner.sync_run(|config| cmd.run::<Block, service::Executor>(config))
122+
runner.sync_run(|config| cmd.run::<Block, service::ExecutorDispatch>(config))
123123
} else {
124124
Err("Benchmarking wasn't enabled when building the node. You can enable it with \
125125
`--features runtime-benchmarks`."

0 commit comments

Comments
 (0)