Update to `monthly-2021-10` (#246)

main
Dan Shields 2021-10-01 17:38:49 -06:00 committed by GitHub
parent 2e93d33afb
commit 4e98521355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 508 additions and 538 deletions

798
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,170 +1,170 @@
[package] [package]
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
build = 'build.rs'
description = 'A fresh FRAME-based Substrate node, ready for hacking.'
edition = '2018'
homepage = 'https://substrate.dev'
license = 'Unlicense'
name = 'node-template' name = 'node-template'
version = '3.0.0-monthly-2021-10'
description = 'A fresh FRAME-based Substrate node, ready for hacking.'
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
homepage = 'https://substrate.dev'
edition = '2018'
license = 'Unlicense'
publish = false publish = false
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
version = '3.0.0-monthly-2021-09+1' build = 'build.rs'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
[[bin]] [[bin]]
name = 'node-template' name = 'node-template'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
[build-dependencies.substrate-build-script-utils] [build-dependencies.substrate-build-script-utils]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '3.0.0' version = '3.0.0'
[dependencies.node-template-runtime]
path = '../runtime'
version = '3.0.0-monthly-2021-10'
[dependencies] [dependencies]
jsonrpc-core = '18.0.0' jsonrpc-core = '18.0.0'
structopt = '0.3.8' structopt = '0.3.8'
[dependencies.node-template-runtime]
path = '../runtime'
version = '3.0.0-monthly-2021-09+1'
[dependencies.frame-benchmarking] [dependencies.frame-benchmarking]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-benchmarking-cli] [dependencies.frame-benchmarking-cli]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-transaction-payment-rpc] [dependencies.pallet-transaction-payment-rpc]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-basic-authorship] [dependencies.sc-basic-authorship]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-cli] [dependencies.sc-cli]
features = ['wasmtime'] features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-client-api] [dependencies.sc-client-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-consensus] [dependencies.sc-consensus]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-consensus-aura] [dependencies.sc-consensus-aura]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-executor] [dependencies.sc-executor]
features = ['wasmtime'] features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-finality-grandpa] [dependencies.sc-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-keystore] [dependencies.sc-keystore]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-rpc] [dependencies.sc-rpc]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-rpc-api] [dependencies.sc-rpc-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-service] [dependencies.sc-service]
features = ['wasmtime'] features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-telemetry] [dependencies.sc-telemetry]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-transaction-pool] [dependencies.sc-transaction-pool]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-transaction-pool-api] [dependencies.sc-transaction-pool-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-api] [dependencies.sp-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-block-builder] [dependencies.sp-block-builder]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-blockchain] [dependencies.sp-blockchain]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-consensus] [dependencies.sp-consensus]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sp-consensus-aura] [dependencies.sp-consensus-aura]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sp-core] [dependencies.sp-core]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-finality-grandpa] [dependencies.sp-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-runtime] [dependencies.sp-runtime]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-timestamp] [dependencies.sp-timestamp]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.substrate-frame-rpc-system] [dependencies.substrate-frame-rpc-system]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[features] [features]

View File

@ -35,7 +35,7 @@ pub enum Subcommand {
/// Revert the chain to a previous state. /// Revert the chain to a previous state.
Revert(sc_cli::RevertCmd), Revert(sc_cli::RevertCmd),
/// The custom benchmark subcommmand benchmarking runtime pallets. /// The custom benchmark subcommand benchmarking runtime pallets.
#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")] #[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]
Benchmark(frame_benchmarking_cli::BenchmarkCmd), Benchmark(frame_benchmarking_cli::BenchmarkCmd),
} }

View File

@ -1,20 +1,3 @@
// This file is part of Substrate.
// Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use crate::{ use crate::{
chain_spec, chain_spec,
cli::{Cli, Subcommand}, cli::{Cli, Subcommand},

View File

@ -1,36 +1,17 @@
[package] [package]
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
description = 'FRAME pallet template for defining custom runtime logic.'
edition = '2018'
homepage = 'https://substrate.dev'
license = 'Unlicense'
name = 'pallet-template' name = 'pallet-template'
version = '3.0.0-monthly-2021-10'
description = 'FRAME pallet template for defining custom runtime logic.'
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
homepage = 'https://substrate.dev'
edition = '2018'
license = 'Unlicense'
publish = false publish = false
readme = 'README.md'
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
version = '3.0.0-monthly-2021-09+1'
[package.metadata.docs.rs] [package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu'] targets = ['x86_64-unknown-linux-gnu']
[dev-dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1'
version = '4.0.0-dev'
[dev-dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1'
version = '4.0.0-dev'
[dev-dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1'
version = '4.0.0-dev'
[dependencies.codec] [dependencies.codec]
default-features = false default-features = false
features = ['derive'] features = ['derive']
@ -41,19 +22,42 @@ version = '2.0.0'
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
optional = true optional = true
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-support] [dependencies.frame-support]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system] [dependencies.frame-system]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev'
[dependencies.scale-info]
default-features = false
features = ['derive']
version = '1.0'
[dev-dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-10'
version = '4.0.0-dev'
[dev-dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-10'
version = '4.0.0-dev'
[dev-dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[features] [features]
@ -61,8 +65,9 @@ default = ['std']
runtime-benchmarks = ['frame-benchmarking'] runtime-benchmarks = ['frame-benchmarking']
std = [ std = [
'codec/std', 'codec/std',
'scale-info/std',
'frame-support/std', 'frame-support/std',
'frame-system/std', 'frame-system/std',
'frame-benchmarking/std', 'frame-benchmarking/std',
] ]
try-runtime = ['frame-support/try-runtime'] try-runtime = ['frame-support/try-runtime']

View File

@ -41,7 +41,6 @@ pub mod pallet {
// Pallets use events to inform users when important changes are made. // Pallets use events to inform users when important changes are made.
// https://substrate.dev/docs/en/knowledgebase/runtime/events // https://substrate.dev/docs/en/knowledgebase/runtime/events
#[pallet::event] #[pallet::event]
#[pallet::metadata(T::AccountId = "AccountId")]
#[pallet::generate_deposit(pub(super) fn deposit_event)] #[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config> { pub enum Event<T: Config> {
/// Event documentation should end with an array that provides descriptive names for event /// Event documentation should end with an array that provides descriptive names for event

View File

@ -1,12 +1,13 @@
[package] [package]
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
edition = '2018'
homepage = 'https://substrate.dev'
license = 'Unlicense'
name = 'node-template-runtime' name = 'node-template-runtime'
version = '3.0.0-monthly-2021-10'
description = 'A fresh FRAME-based Substrate runtime, ready for hacking.'
authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
homepage = 'https://substrate.dev'
edition = '2018'
license = 'Unlicense'
publish = false publish = false
repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/'
version = '3.0.0-monthly-2021-09+1'
[package.metadata.docs.rs] [package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu'] targets = ['x86_64-unknown-linux-gnu']
@ -14,11 +15,11 @@ targets = ['x86_64-unknown-linux-gnu']
[dependencies.pallet-template] [dependencies.pallet-template]
default-features = false default-features = false
path = '../pallets/template' path = '../pallets/template'
version = '3.0.0-monthly-2021-09+1' version = '3.0.0-monthly-2021-10'
[build-dependencies.substrate-wasm-builder] [build-dependencies.substrate-wasm-builder]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '5.0.0-dev' version = '5.0.0-dev'
[dependencies.codec] [dependencies.codec]
@ -31,38 +32,38 @@ version = '2.0.0'
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
optional = true optional = true
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-executive] [dependencies.frame-executive]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-support] [dependencies.frame-support]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system] [dependencies.frame-system]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system-benchmarking] [dependencies.frame-system-benchmarking]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
optional = true optional = true
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system-rpc-runtime-api] [dependencies.frame-system-rpc-runtime-api]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.hex-literal] [dependencies.hex-literal]
@ -72,115 +73,120 @@ version = '0.3.1'
[dependencies.pallet-aura] [dependencies.pallet-aura]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-balances] [dependencies.pallet-balances]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-grandpa] [dependencies.pallet-grandpa]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-randomness-collective-flip] [dependencies.pallet-randomness-collective-flip]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-sudo] [dependencies.pallet-sudo]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-timestamp] [dependencies.pallet-timestamp]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-transaction-payment] [dependencies.pallet-transaction-payment]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-transaction-payment-rpc-runtime-api] [dependencies.pallet-transaction-payment-rpc-runtime-api]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.scale-info]
default-features = false
features = ['derive']
version = '1.0'
[dependencies.sp-api] [dependencies.sp-api]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-block-builder] [dependencies.sp-block-builder]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-consensus-aura] [dependencies.sp-consensus-aura]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sp-core] [dependencies.sp-core]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-inherents] [dependencies.sp-inherents]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-offchain] [dependencies.sp-offchain]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-runtime] [dependencies.sp-runtime]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-session] [dependencies.sp-session]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-std] [dependencies.sp-std]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-transaction-pool] [dependencies.sp-transaction-pool]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-version] [dependencies.sp-version]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-09+1' tag = 'monthly-2021-10'
version = '4.0.0-dev' version = '4.0.0-dev'
[features] [features]
@ -198,6 +204,7 @@ runtime-benchmarks = [
] ]
std = [ std = [
'codec/std', 'codec/std',
'scale-info/std',
'frame-executive/std', 'frame-executive/std',
'frame-support/std', 'frame-support/std',
'frame-system-rpc-runtime-api/std', 'frame-system-rpc-runtime-api/std',

View File

@ -195,9 +195,14 @@ impl frame_system::Config for Runtime {
impl pallet_randomness_collective_flip::Config for Runtime {} impl pallet_randomness_collective_flip::Config for Runtime {}
parameter_types! {
pub const MaxAuthorities: u32 = 32;
}
impl pallet_aura::Config for Runtime { impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId; type AuthorityId = AuraId;
type DisabledValidators = (); type DisabledValidators = ();
type MaxAuthorities = MaxAuthorities;
} }
impl pallet_grandpa::Config for Runtime { impl pallet_grandpa::Config for Runtime {
@ -217,6 +222,7 @@ impl pallet_grandpa::Config for Runtime {
type HandleEquivocation = (); type HandleEquivocation = ();
type WeightInfo = (); type WeightInfo = ();
type MaxAuthorities = MaxAuthorities;
} }
parameter_types! { parameter_types! {
@ -335,7 +341,7 @@ impl_runtime_apis! {
impl sp_api::Metadata<Block> for Runtime { impl sp_api::Metadata<Block> for Runtime {
fn metadata() -> OpaqueMetadata { fn metadata() -> OpaqueMetadata {
Runtime::metadata().into() OpaqueMetadata::new(Runtime::metadata().into())
} }
} }
@ -382,7 +388,7 @@ impl_runtime_apis! {
} }
fn authorities() -> Vec<AuraId> { fn authorities() -> Vec<AuraId> {
Aura::authorities() Aura::authorities().into_inner()
} }
} }