Upgrade to v2.0.0-rc4 (#62)
* Upgrade to v2.0.0-rc4 * Better updates to README Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com> Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>main
parent
a704d36d05
commit
ff0fa246c9
File diff suppressed because it is too large
Load Diff
102
README.md
102
README.md
|
@ -2,9 +2,25 @@
|
|||
|
||||
# Substrate Node Template
|
||||
|
||||
A new FRAME-based Substrate node, ready for hacking.
|
||||
A new FRAME-based Substrate node, ready for hacking :rocket:
|
||||
|
||||
## Build
|
||||
## Local Development
|
||||
|
||||
Follow these steps to prepare your local environment for Substrate development :hammer_and_wrench:
|
||||
|
||||
### Simple Method
|
||||
|
||||
You can install all the required dependencies with a single command (be patient, this can take up
|
||||
to 30 minutes).
|
||||
|
||||
```bash
|
||||
curl https://getsubstrate.io -sSf | bash -s -- --fast
|
||||
```
|
||||
|
||||
### Manual Method
|
||||
|
||||
Manual steps for Linux-based systems can be found below; you can
|
||||
[find more information at substrate.dev](https://substrate.dev/docs/en/knowledgebase/getting-started/#manual-installation).
|
||||
|
||||
Install Rust:
|
||||
|
||||
|
@ -18,12 +34,22 @@ Initialize your Wasm Build environment:
|
|||
./scripts/init.sh
|
||||
```
|
||||
|
||||
Build Wasm and native code:
|
||||
### Build
|
||||
|
||||
Once you have prepared your local development environment, you can build the node template. Use this
|
||||
command to build the [Wasm](https://substrate.dev/docs/en/knowledgebase/advanced/executor#wasm-execution)
|
||||
and [native](https://substrate.dev/docs/en/knowledgebase/advanced/executor#native-execution) code:
|
||||
|
||||
```bash
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
## Playground [![Try on playground](https://img.shields.io/badge/Playground-node_template-brightgreen?logo=Parity%20Substrate)](https://playground-staging.substrate.dev/?deploy=node-template)
|
||||
|
||||
[The Substrate Playground](https://playground-staging.substrate.dev/?deploy=node-template) is an
|
||||
online development environment that allows you to take advantage of a pre-configured container
|
||||
with pre-compiled build artifacts :woman_cartwheeling:
|
||||
|
||||
## Run
|
||||
|
||||
### Single Node Development Chain
|
||||
|
@ -40,46 +66,18 @@ Start a development chain with:
|
|||
./target/release/node-template --dev
|
||||
```
|
||||
|
||||
Detailed logs may be shown by running the node with the following environment variables set: `RUST_LOG=debug RUST_BACKTRACE=1 cargo run -- --dev`.
|
||||
Detailed logs may be shown by running the node with the following environment variables set:
|
||||
`RUST_LOG=debug RUST_BACKTRACE=1 cargo run -- --dev`.
|
||||
|
||||
### Multi-Node Local Testnet
|
||||
|
||||
If you want to see the multi-node consensus algorithm in action locally, then you can create a local testnet with two validator nodes for Alice and Bob, who are the initial authorities of the genesis chain that have been endowed with testnet units.
|
||||
|
||||
Optionally, give each node a name and expose them so they are listed on the Polkadot [telemetry site](https://telemetry.polkadot.io/#/Local%20Testnet).
|
||||
|
||||
You'll need two terminal windows open.
|
||||
|
||||
We'll start Alice's substrate node first on default TCP port 30333 with her chain database stored locally at `/tmp/alice`. The bootnode ID of her node is `QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR`, which is generated from the `--node-key` value that we specify below:
|
||||
|
||||
```bash
|
||||
cargo run -- \
|
||||
--base-path /tmp/alice \
|
||||
--chain=local \
|
||||
--alice \
|
||||
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
|
||||
--telemetry-url 'ws://telemetry.polkadot.io:1024 0' \
|
||||
--validator
|
||||
```
|
||||
|
||||
In the second terminal, we'll start Bob's substrate node on a different TCP port of 30334, and with his chain database stored locally at `/tmp/bob`. We'll specify a value for the `--bootnodes` option that will connect his node to Alice's bootnode ID on TCP port 30333:
|
||||
|
||||
```bash
|
||||
cargo run -- \
|
||||
--base-path /tmp/bob \
|
||||
--bootnodes /ip4/127.0.0.1/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR \
|
||||
--chain=local \
|
||||
--bob \
|
||||
--port 30334 \
|
||||
--telemetry-url 'ws://telemetry.polkadot.io:1024 0' \
|
||||
--validator
|
||||
```
|
||||
|
||||
Additional CLI usage options are available and may be shown by running `cargo run -- --help`.
|
||||
If you want to see the multi-node consensus algorithm in action, refer to
|
||||
[our Start a Private Network tutorial](https://substrate.dev/docs/en/tutorials/start-a-private-network/).
|
||||
|
||||
### Run in Docker
|
||||
|
||||
First, install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/).
|
||||
First, install [Docker](https://docs.docker.com/get-docker/) and
|
||||
[Docker Compose](https://docs.docker.com/compose/install/).
|
||||
|
||||
Then run the following command to start a single node development chain.
|
||||
|
||||
|
@ -87,7 +85,9 @@ Then run the following command to start a single node development chain.
|
|||
./scripts/docker_run.sh
|
||||
```
|
||||
|
||||
This command will firstly compile your code, and then start a local development network. You can also replace the default command (`cargo build --release && ./target/release/node-template --dev --ws-external`) by appending your own. A few useful ones are as follow.
|
||||
This command will firstly compile your code, and then start a local development network. You can
|
||||
also replace the default command (`cargo build --release && ./target/release/node-template --dev --ws-external`)
|
||||
by appending your own. A few useful ones are as follow.
|
||||
|
||||
```bash
|
||||
# Run Substrate node without re-compiling
|
||||
|
@ -99,29 +99,3 @@ This command will firstly compile your code, and then start a local development
|
|||
# Check whether the code is compilable
|
||||
./scripts/docker_run.sh cargo check
|
||||
```
|
||||
|
||||
## Advanced: Generate Your Own Substrate Node Template
|
||||
|
||||
A substrate node template is always based on a certain version of Substrate. You can inspect it by
|
||||
opening [Cargo.toml](Cargo.toml) and see the template referred to a specific Substrate commit(
|
||||
`rev` field), branch, or version.
|
||||
|
||||
You can generate your own Substrate node-template based on a particular Substrate
|
||||
version/commit by running following commands:
|
||||
|
||||
```bash
|
||||
# git clone from the main Substrate repo
|
||||
git clone https://github.com/paritytech/substrate.git
|
||||
cd substrate
|
||||
|
||||
# Switch to a particular branch or commit of the Substrate repo your node-template based on
|
||||
git checkout <branch/tag/sha1>
|
||||
|
||||
# Run the helper script to generate a node template.
|
||||
# This script compiles Substrate and takes a while to complete. It takes a relative file path
|
||||
# from the current dir. to output the compressed node template.
|
||||
.maintain/node-template-release.sh ../node-template.tar.gz
|
||||
```
|
||||
|
||||
Noted though you will likely get faster and more thorough support if you stick with the releases
|
||||
provided in this repository.
|
||||
|
|
|
@ -1,25 +1,19 @@
|
|||
[build-dependencies.substrate-build-script-utils]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[[bin]]
|
||||
name = 'node-template'
|
||||
|
||||
[package]
|
||||
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
|
||||
build = 'build.rs'
|
||||
description = 'Substrate node template'
|
||||
description = 'Substrate Node template'
|
||||
edition = '2018'
|
||||
homepage = 'https://substrate.io'
|
||||
homepage = 'https://substrate.dev'
|
||||
license = 'Unlicense'
|
||||
name = 'node-template'
|
||||
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
version = '2.0.0-rc4'
|
||||
[package.metadata.docs.rs]
|
||||
targets = ['x86_64-unknown-linux-gnu']
|
||||
|
||||
[[bin]]
|
||||
name = 'node-template'
|
||||
|
||||
[dependencies]
|
||||
futures = '0.3.4'
|
||||
log = '0.4.8'
|
||||
|
@ -28,89 +22,96 @@ structopt = '0.3.8'
|
|||
|
||||
[dependencies.node-template-runtime]
|
||||
path = '../runtime'
|
||||
version = '2.0.0-rc3'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sc-basic-authorship]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-cli]
|
||||
features = ['wasmtime']
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-client-api]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sc-consensus]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-consensus-aura]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-executor]
|
||||
features = ['wasmtime']
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-finality-grandpa]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-network]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-service]
|
||||
features = ['wasmtime']
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sc-transaction-pool]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-consensus]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sp-consensus-aura]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sp-core]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-finality-grandpa]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-inherents]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-runtime]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-transaction-pool]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
[build-dependencies.substrate-build-script-utils]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
pub mod chain_spec;
|
||||
pub mod service;
|
|
@ -111,7 +111,7 @@ pub fn new_full(config: Configuration) -> Result<impl AbstractService, ServiceEr
|
|||
let provider = client as Arc<dyn StorageAndProofProvider<_, _>>;
|
||||
Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, provider)) as _)
|
||||
})?
|
||||
.build()?;
|
||||
.build_full()?;
|
||||
|
||||
if role.is_authority() {
|
||||
let proposer = sc_basic_authorship::ProposerFactory::new(
|
||||
|
@ -142,13 +142,13 @@ pub fn new_full(config: Configuration) -> Result<impl AbstractService, ServiceEr
|
|||
|
||||
// the AURA authoring task is considered essential, i.e. if it
|
||||
// fails we take down the service with it.
|
||||
service.spawn_essential_task("aura", aura);
|
||||
service.spawn_essential_task_handle().spawn_blocking("aura", aura);
|
||||
}
|
||||
|
||||
// if the node isn't actively participating in consensus then it doesn't
|
||||
// need a keystore, regardless of which protocol we use below.
|
||||
let keystore = if role.is_authority() {
|
||||
Some(service.keystore())
|
||||
Some(service.keystore() as sp_core::traits::BareCryptoStorePtr)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
@ -184,7 +184,7 @@ pub fn new_full(config: Configuration) -> Result<impl AbstractService, ServiceEr
|
|||
|
||||
// the GRANDPA voter task is considered infallible, i.e.
|
||||
// if it fails we take down the service with it.
|
||||
service.spawn_essential_task(
|
||||
service.spawn_essential_task_handle().spawn_blocking(
|
||||
"grandpa-voter",
|
||||
sc_finality_grandpa::run_grandpa_voter(grandpa_config)?
|
||||
);
|
||||
|
@ -264,5 +264,5 @@ pub fn new_light(config: Configuration) -> Result<impl AbstractService, ServiceE
|
|||
let provider = client as Arc<dyn StorageAndProofProvider<_, _>>;
|
||||
Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, provider)) as _)
|
||||
})?
|
||||
.build()
|
||||
.build_light()
|
||||
}
|
||||
|
|
|
@ -1,49 +1,48 @@
|
|||
[dependencies.codec]
|
||||
default-features = false
|
||||
features = ['derive']
|
||||
package = 'parity-scale-codec'
|
||||
version = '1.3.0'
|
||||
|
||||
[dependencies.frame-support]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.frame-system]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
[dev-dependencies.sp-core]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dev-dependencies.sp-io]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dev-dependencies.sp-runtime]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[package]
|
||||
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
|
||||
description = 'FRAME pallet template'
|
||||
edition = '2018'
|
||||
homepage = 'https://substrate.io'
|
||||
homepage = 'https://substrate.dev'
|
||||
license = 'Unlicense'
|
||||
name = 'pallet-template'
|
||||
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
|
||||
version = '2.0.0-rc3'
|
||||
version = '2.0.0-rc4'
|
||||
[package.metadata.docs.rs]
|
||||
targets = ['x86_64-unknown-linux-gnu']
|
||||
[dependencies.codec]
|
||||
default-features = false
|
||||
features = ['derive']
|
||||
package = 'parity-scale-codec'
|
||||
version = '1.3.1'
|
||||
|
||||
[dependencies.frame-support]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.frame-system]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
[dev-dependencies.sp-core]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dev-dependencies.sp-io]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dev-dependencies.sp-runtime]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[features]
|
||||
default = ['std']
|
||||
|
|
|
@ -24,6 +24,7 @@ parameter_types! {
|
|||
pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);
|
||||
}
|
||||
impl system::Trait for Test {
|
||||
type BaseCallFilter = ();
|
||||
type Origin = Origin;
|
||||
type Call = ();
|
||||
type Index = u64;
|
||||
|
|
|
@ -1,176 +1,3 @@
|
|||
[dependencies.aura]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-aura'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.balances]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-balances'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.codec]
|
||||
default-features = false
|
||||
features = ['derive']
|
||||
package = 'parity-scale-codec'
|
||||
version = '1.3.0'
|
||||
|
||||
[dependencies.frame-executive]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.frame-support]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.grandpa]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-grandpa'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.randomness-collective-flip]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-randomness-collective-flip'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.serde]
|
||||
features = ['derive']
|
||||
optional = true
|
||||
version = '1.0.101'
|
||||
|
||||
[dependencies.sp-api]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-block-builder]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-consensus-aura]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '0.8.0-rc3'
|
||||
|
||||
[dependencies.sp-core]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-inherents]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-io]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-offchain]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-runtime]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-session]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-std]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-transaction-pool]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sp-version]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.sudo]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-sudo'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.system]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'frame-system'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.template]
|
||||
default-features = false
|
||||
package = 'pallet-template'
|
||||
path = '../pallets/template'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.timestamp]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-timestamp'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
|
||||
[dependencies.transaction-payment]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-transaction-payment'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '2.0.0-rc3'
|
||||
[build-dependencies.wasm-builder-runner]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'substrate-wasm-builder-runner'
|
||||
tag = 'v2.0.0-rc3'
|
||||
version = '1.0.5'
|
||||
|
||||
[package]
|
||||
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
|
||||
edition = '2018'
|
||||
homepage = 'https://substrate.io'
|
||||
license = 'Unlicense'
|
||||
name = 'node-template-runtime'
|
||||
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
|
||||
version = '2.0.0-rc3'
|
||||
[package.metadata.docs.rs]
|
||||
targets = ['x86_64-unknown-linux-gnu']
|
||||
|
||||
[features]
|
||||
default = ['std']
|
||||
std = [
|
||||
|
@ -200,3 +27,175 @@ std = [
|
|||
'transaction-payment/std',
|
||||
'template/std',
|
||||
]
|
||||
[dependencies.aura]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-aura'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.balances]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-balances'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.codec]
|
||||
default-features = false
|
||||
features = ['derive']
|
||||
package = 'parity-scale-codec'
|
||||
version = '1.3.1'
|
||||
|
||||
[dependencies.frame-executive]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.frame-support]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.grandpa]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-grandpa'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.randomness-collective-flip]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-randomness-collective-flip'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.serde]
|
||||
features = ['derive']
|
||||
optional = true
|
||||
version = '1.0.101'
|
||||
|
||||
[dependencies.sp-api]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-block-builder]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-consensus-aura]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '0.8.0-rc4'
|
||||
|
||||
[dependencies.sp-core]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-inherents]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-io]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-offchain]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-runtime]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-session]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-std]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-transaction-pool]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sp-version]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.sudo]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-sudo'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.system]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'frame-system'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.template]
|
||||
default-features = false
|
||||
package = 'pallet-template'
|
||||
path = '../pallets/template'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.timestamp]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-timestamp'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[dependencies.transaction-payment]
|
||||
default-features = false
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'pallet-transaction-payment'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '2.0.0-rc4'
|
||||
|
||||
[package]
|
||||
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
|
||||
edition = '2018'
|
||||
homepage = 'https://substrate.dev'
|
||||
license = 'Unlicense'
|
||||
name = 'node-template-runtime'
|
||||
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
|
||||
version = '2.0.0-rc4'
|
||||
[package.metadata.docs.rs]
|
||||
targets = ['x86_64-unknown-linux-gnu']
|
||||
[build-dependencies.wasm-builder-runner]
|
||||
git = 'https://github.com/paritytech/substrate.git'
|
||||
package = 'substrate-wasm-builder-runner'
|
||||
tag = 'v2.0.0-rc4'
|
||||
version = '1.0.5'
|
||||
|
|
|
@ -135,6 +135,8 @@ parameter_types! {
|
|||
}
|
||||
|
||||
impl system::Trait for Runtime {
|
||||
/// The basic call filter to use in dispatchable.
|
||||
type BaseCallFilter = ();
|
||||
/// The identifier used to distinguish between accounts.
|
||||
type AccountId = AccountId;
|
||||
/// The aggregated dispatch type that is available for extrinsics.
|
||||
|
|
Loading…
Reference in New Issue