diff --git a/.maintain/frame-weight-template.hbs b/.maintain/frame-weight-template.hbs index 2253452e203da..04453d2bfe24b 100644 --- a/.maintain/frame-weight-template.hbs +++ b/.maintain/frame-weight-template.hbs @@ -18,7 +18,7 @@ //! Autogenerated weights for {{pallet}} //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}} -//! DATE: {{date}}, STEPS: {{cmd.steps}}, REPEAT: {{cmd.repeat}}, LOW RANGE: {{cmd.lowest_range_values}}, HIGH RANGE: {{cmd.highest_range_values}} +//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}` //! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}} // Executed Command: diff --git a/bin/node-template/pallets/template/src/lib.rs b/bin/node-template/pallets/template/src/lib.rs index 5f4e4253f8130..99a285492c77f 100644 --- a/bin/node-template/pallets/template/src/lib.rs +++ b/bin/node-template/pallets/template/src/lib.rs @@ -2,7 +2,7 @@ /// Edit this file to define custom logic or remove it if it is not needed. /// Learn more about FRAME and the core library of Substrate FRAME pallets: -/// https://substrate.dev/docs/en/knowledgebase/runtime/frame +/// pub use pallet::*; diff --git a/bin/node/runtime/Cargo.toml b/bin/node/runtime/Cargo.toml index dc8ce8bace809..43ecca7e74456 100644 --- a/bin/node/runtime/Cargo.toml +++ b/bin/node/runtime/Cargo.toml @@ -234,4 +234,5 @@ try-runtime = [ "pallet-society/try-runtime", "pallet-recovery/try-runtime", "pallet-vesting/try-runtime", + "pallet-gilt/try-runtime", ] diff --git a/bin/node/runtime/src/lib.rs b/bin/node/runtime/src/lib.rs index 20abb9b54ff08..a0b966c63c33b 100644 --- a/bin/node/runtime/src/lib.rs +++ b/bin/node/runtime/src/lib.rs @@ -1404,7 +1404,6 @@ impl_runtime_apis! { #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade() -> Result<(Weight, Weight), sp_runtime::RuntimeString> { - frame_support::debug::RuntimeLogger::init(); let weight = Executive::try_runtime_upgrade()?; Ok((weight, RuntimeBlockWeights::get().max_block)) } diff --git a/client/network/src/config.rs b/client/network/src/config.rs index d6d4d9d7162f1..a6ce295e46228 100644 --- a/client/network/src/config.rs +++ b/client/network/src/config.rs @@ -109,18 +109,19 @@ pub struct Params { /// protocol name. In addition all of [`RequestResponseConfig`] is used to handle incoming block /// requests, if enabled. /// - /// Can be constructed either via [`block_request_handler::generate_protocol_config`] allowing - /// outgoing but not incoming requests, or constructed via - /// [`block_request_handler::BlockRequestHandler::new`] allowing both outgoing and incoming - /// requests. + /// Can be constructed either via [`crate::block_request_handler::generate_protocol_config`] + /// allowing outgoing but not incoming requests, or constructed via + /// [`crate::block_request_handler::BlockRequestHandler::new`] allowing both outgoing and + /// incoming requests. pub block_request_protocol_config: RequestResponseConfig, /// Request response configuration for the light client request protocol. /// - /// Can be constructed either via [`light_client_requests::generate_protocol_config`] allowing - /// outgoing but not incoming requests, or constructed via - /// [`light_client_requests::handler::LightClientRequestHandler::new`] allowing both outgoing - /// and incoming requests. + /// Can be constructed either via + /// [`crate::light_client_requests::generate_protocol_config`] allowing outgoing but not + /// incoming requests, or constructed via + /// [`crate::light_client_requests::handler::LightClientRequestHandler::new`] allowing + /// both outgoing and incoming requests. pub light_client_request_protocol_config: RequestResponseConfig, } diff --git a/client/network/src/light_client_requests/handler.rs b/client/network/src/light_client_requests/handler.rs index 08de99a0a5de4..fe0a3cb187d55 100644 --- a/client/network/src/light_client_requests/handler.rs +++ b/client/network/src/light_client_requests/handler.rs @@ -60,7 +60,7 @@ pub struct LightClientRequestHandler { } impl LightClientRequestHandler { - /// Create a new [`BlockRequestHandler`]. + /// Create a new [`crate::block_request_handler::BlockRequestHandler`]. pub fn new( protocol_id: &ProtocolId, client: Arc>, diff --git a/client/tracing/src/logging/layers/prefix_layer.rs b/client/tracing/src/logging/layers/prefix_layer.rs index 0c8f25c24100c..f35b59e8b9af9 100644 --- a/client/tracing/src/logging/layers/prefix_layer.rs +++ b/client/tracing/src/logging/layers/prefix_layer.rs @@ -23,7 +23,7 @@ use tracing_subscriber::{layer::Context, registry::LookupSpan, Layer}; pub const PREFIX_LOG_SPAN: &str = "substrate-log-prefix"; /// A `Layer` that captures the prefix span ([`PREFIX_LOG_SPAN`]) which is then used by -/// [`EventFormat`] to prefix the log lines by customizable string. +/// [`crate::logging::EventFormat`] to prefix the log lines by customizable string. /// /// See the macro `sc_cli::prefix_logs_with!` for more details. pub struct PrefixLayer; diff --git a/frame/assets/src/weights.rs b/frame/assets/src/weights.rs index 1858fe708e14c..3056036642a78 100644 --- a/frame/assets/src/weights.rs +++ b/frame/assets/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_assets //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.1 -//! DATE: 2021-01-18, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-01-18, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/bounties/src/weights.rs b/frame/bounties/src/weights.rs index fcbee727abe5a..50d76739a938a 100644 --- a/frame/bounties/src/weights.rs +++ b/frame/bounties/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_bounties //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-12-16, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-12-16, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/collective/src/weights.rs b/frame/collective/src/weights.rs index f8558c833f016..7bdce04d26485 100644 --- a/frame/collective/src/weights.rs +++ b/frame/collective/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_collective //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/contracts/src/weights.rs b/frame/contracts/src/weights.rs index 905ccf8cb5a2f..3972c3fa2cd66 100644 --- a/frame/contracts/src/weights.rs +++ b/frame/contracts/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_contracts //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-02-18, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-02-18, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/democracy/src/weights.rs b/frame/democracy/src/weights.rs index 7c169cc813ead..e2e1bd0c8be25 100644 --- a/frame/democracy/src/weights.rs +++ b/frame/democracy/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_democracy //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-28, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-28, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/election-provider-multi-phase/src/helpers.rs b/frame/election-provider-multi-phase/src/helpers.rs index 7375ce017f20b..dd97163d2859c 100644 --- a/frame/election-provider-multi-phase/src/helpers.rs +++ b/frame/election-provider-multi-phase/src/helpers.rs @@ -49,7 +49,7 @@ pub fn generate_voter_cache( /// Create a function the returns the index a voter in the snapshot. /// -/// The returning index type is the same as the one defined in [`T::CompactSolution::Voter`]. +/// The returning index type is the same as the one defined in `T::CompactSolution::Voter`. /// /// ## Warning /// @@ -92,7 +92,7 @@ pub fn voter_index_fn_linear( /// Create a function the returns the index a targets in the snapshot. /// -/// The returning index type is the same as the one defined in [`T::CompactSolution::Target`]. +/// The returning index type is the same as the one defined in `T::CompactSolution::Target`. pub fn target_index_fn_linear( snapshot: &Vec, ) -> Box Option> + '_> { diff --git a/frame/election-provider-multi-phase/src/lib.rs b/frame/election-provider-multi-phase/src/lib.rs index c4a5e0fa6936a..634cdc62fe52e 100644 --- a/frame/election-provider-multi-phase/src/lib.rs +++ b/frame/election-provider-multi-phase/src/lib.rs @@ -43,13 +43,13 @@ //! //! Each of the phases can be disabled by essentially setting their length to zero. If both phases //! have length zero, then the pallet essentially runs only the fallback strategy, denoted by -//! [`Config::FallbackStrategy`]. +//! [`Config::Fallback`]. //! ### Signed Phase //! //! In the signed phase, solutions (of type [`RawSolution`]) are submitted and queued on chain. A //! deposit is reserved, based on the size of the solution, for the cost of keeping this solution //! on-chain for a number of blocks, and the potential weight of the solution upon being checked. A -//! maximum of [`pallet::Config::MaxSignedSubmissions`] solutions are stored. The queue is always +//! maximum of `pallet::Config::MaxSignedSubmissions` solutions are stored. The queue is always //! sorted based on score (worse to best). //! //! Upon arrival of a new solution: @@ -65,7 +65,7 @@ //! origin can not bail out in any way, if their solution is queued. //! //! Upon the end of the signed phase, the solutions are examined from best to worse (i.e. `pop()`ed -//! until drained). Each solution undergoes an expensive [`Pallet::feasibility_check`], which +//! until drained). Each solution undergoes an expensive `Pallet::feasibility_check`, which //! ensures the score claimed by this score was correct, and it is valid based on the election data //! (i.e. votes and candidates). At each step, if the current best solution passes the feasibility //! check, it is considered to be the best one. The sender of the origin is rewarded, and the rest @@ -192,14 +192,14 @@ //! **Score based on (byte) size**: We should always prioritize small solutions over bigger ones, if //! there is a tie. Even more harsh should be to enforce the bound of the `reduce` algorithm. //! -//! **Offchain resubmit**: Essentially port https://github.com/paritytech/substrate/pull/7976 to +//! **Offchain resubmit**: Essentially port to //! this pallet as well. The `OFFCHAIN_REPEAT` also needs to become an adjustable parameter of the //! pallet. //! //! **Make the number of nominators configurable from the runtime**. Remove `sp_npos_elections` //! dependency from staking and the compact solution type. It should be generated at runtime, there //! it should be encoded how many votes each nominators have. Essentially translate -//! https://github.com/paritytech/substrate/pull/7929 to this pallet. +//! to this pallet. #![cfg_attr(not(feature = "std"), no_std)] @@ -364,7 +364,7 @@ impl Default for ElectionCompute { /// This is what will get submitted to the chain. /// /// Such a solution should never become effective in anyway before being checked by the -/// [`Pallet::feasibility_check`] +/// `Pallet::feasibility_check` #[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)] pub struct RawSolution { /// Compact election edges. diff --git a/frame/election-provider-multi-phase/src/weights.rs b/frame/election-provider-multi-phase/src/weights.rs index cbdc5b39bf3ee..276bba330d24c 100644 --- a/frame/election-provider-multi-phase/src/weights.rs +++ b/frame/election-provider-multi-phase/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_election_provider_multi_phase //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-02-12, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-02-12, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/elections-phragmen/src/weights.rs b/frame/elections-phragmen/src/weights.rs index 25c2091408361..c3d9365c8855a 100644 --- a/frame/elections-phragmen/src/weights.rs +++ b/frame/elections-phragmen/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_elections_phragmen //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.1 -//! DATE: 2021-01-20, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-01-20, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/example/Cargo.toml b/frame/example/Cargo.toml index 618730688458e..de741294b9c16 100644 --- a/frame/example/Cargo.toml +++ b/frame/example/Cargo.toml @@ -41,3 +41,4 @@ std = [ "sp-std/std" ] runtime-benchmarks = ["frame-benchmarking"] +try-runtime = ["frame-support/try-runtime"] diff --git a/frame/executive/Cargo.toml b/frame/executive/Cargo.toml index 7ef00e7ff71c8..6a0042308736e 100644 --- a/frame/executive/Cargo.toml +++ b/frame/executive/Cargo.toml @@ -47,6 +47,4 @@ std = [ "sp-tracing/std", "sp-std/std", ] -try-runtime = [ - "frame-support/try-runtime" -] +try-runtime = ["frame-support/try-runtime"] diff --git a/frame/gilt/Cargo.toml b/frame/gilt/Cargo.toml index f1e0d61158d32..4df0dc49aaf93 100644 --- a/frame/gilt/Cargo.toml +++ b/frame/gilt/Cargo.toml @@ -44,3 +44,4 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", ] +try-runtime = ["frame-support/try-runtime"] diff --git a/frame/gilt/src/weights.rs b/frame/gilt/src/weights.rs index f202ae47ff632..1e0e5fa9b4d39 100644 --- a/frame/gilt/src/weights.rs +++ b/frame/gilt/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_gilt //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-02-23, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-02-23, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/identity/src/weights.rs b/frame/identity/src/weights.rs index 1026e8f73f85c..1635a8d705477 100644 --- a/frame/identity/src/weights.rs +++ b/frame/identity/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_identity //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/im-online/src/weights.rs b/frame/im-online/src/weights.rs index 8f4140fc793a0..147ce11682b71 100644 --- a/frame/im-online/src/weights.rs +++ b/frame/im-online/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_im_online //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/indices/src/weights.rs b/frame/indices/src/weights.rs index 6cc9593d20b90..e303b943b7e20 100644 --- a/frame/indices/src/weights.rs +++ b/frame/indices/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_indices //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/lottery/src/weights.rs b/frame/lottery/src/weights.rs index 28d5ac0945b1d..464bb94bbbb79 100644 --- a/frame/lottery/src/weights.rs +++ b/frame/lottery/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_lottery //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2021-01-05, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-01-05, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/merkle-mountain-range/src/lib.rs b/frame/merkle-mountain-range/src/lib.rs index b137be7b53c1a..6992341f6bbd1 100644 --- a/frame/merkle-mountain-range/src/lib.rs +++ b/frame/merkle-mountain-range/src/lib.rs @@ -127,7 +127,7 @@ pub trait Config: frame_system::Config { /// /// For some applications it might be beneficial to make the MMR root available externally /// apart from having it in the storage. For instance you might output it in the header digest - /// (see [frame_system::Module::deposit_log]) to make it available for Light Clients. + /// (see [`frame_system::Pallet::deposit_log`]) to make it available for Light Clients. /// Hook complexity should be `O(1)`. type OnNewRoot: primitives::OnNewRoot<>::Hash>; diff --git a/frame/multisig/src/weights.rs b/frame/multisig/src/weights.rs index f67e0c8868afa..1c8736616c18b 100644 --- a/frame/multisig/src/weights.rs +++ b/frame/multisig/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_multisig //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/proxy/src/weights.rs b/frame/proxy/src/weights.rs index 92cf66120dfb3..b720a22be120d 100644 --- a/frame/proxy/src/weights.rs +++ b/frame/proxy/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_proxy //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/scheduler/src/weights.rs b/frame/scheduler/src/weights.rs index 0508930f4ef20..1d7273353f347 100644 --- a/frame/scheduler/src/weights.rs +++ b/frame/scheduler/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_scheduler //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/session/src/weights.rs b/frame/session/src/weights.rs index 05d9f7d787315..88ed9e6d8ece0 100644 --- a/frame/session/src/weights.rs +++ b/frame/session/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_session //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/staking/src/weights.rs b/frame/staking/src/weights.rs index c7b7edad5518a..3489a10135427 100644 --- a/frame/staking/src/weights.rs +++ b/frame/staking/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_staking //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-02-13, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-02-13, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/support/src/traits.rs b/frame/support/src/traits.rs index 3d103ef04c2d3..c22f694d38296 100644 --- a/frame/support/src/traits.rs +++ b/frame/support/src/traits.rs @@ -1553,7 +1553,7 @@ pub trait OnGenesis { fn on_genesis() {} } -/// Prefix to be used (optionally) for implementing [`OnRuntimeUpgrade::storage_key`]. +/// Prefix to be used (optionally) for implementing [`OnRuntimeUpgradeHelpersExt::storage_key`]. #[cfg(feature = "try-runtime")] pub const ON_RUNTIME_UPGRADE_PREFIX: &[u8] = b"__ON_RUNTIME_UPGRADE__"; @@ -1563,7 +1563,7 @@ pub trait OnRuntimeUpgradeHelpersExt { /// Generate a storage key unique to this runtime upgrade. /// /// This can be used to communicate data from pre-upgrade to post-upgrade state and check - /// them. See [`set_temp_storage`] and [`get_temp_storage`]. + /// them. See [`Self::set_temp_storage`] and [`Self::get_temp_storage`]. #[cfg(feature = "try-runtime")] fn storage_key(ident: &str) -> [u8; 32] { let prefix = sp_io::hashing::twox_128(ON_RUNTIME_UPGRADE_PREFIX); @@ -1576,7 +1576,7 @@ pub trait OnRuntimeUpgradeHelpersExt { final_key } - /// Get temporary storage data written by [`set_temp_storage`]. + /// Get temporary storage data written by [`Self::set_temp_storage`]. /// /// Returns `None` if either the data is unavailable or un-decodable. /// @@ -1588,7 +1588,7 @@ pub trait OnRuntimeUpgradeHelpersExt { } /// Write some temporary data to a specific storage that can be read (potentially in - /// post-upgrade hook) via [`get_temp_storage`]. + /// post-upgrade hook) via [`Self::get_temp_storage`]. /// /// A `at` storage identifier must be provided to indicate where the storage is being written /// to. @@ -1623,13 +1623,13 @@ pub trait OnRuntimeUpgrade { /// /// This hook is never meant to be executed on-chain but is meant to be used by testing tools. #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result<(), &'static str>; + fn pre_upgrade() -> Result<(), &'static str> { Ok(()) } /// Execute some post-checks after a runtime upgrade. /// /// This hook is never meant to be executed on-chain but is meant to be used by testing tools. #[cfg(feature = "try-runtime")] - fn post_upgrade() -> Result<(), &'static str>; + fn post_upgrade() -> Result<(), &'static str> { Ok(()) } } #[impl_for_tuples(30)] diff --git a/frame/support/test/Cargo.toml b/frame/support/test/Cargo.toml index 67cf668f7f4c9..2ec59b1013da9 100644 --- a/frame/support/test/Cargo.toml +++ b/frame/support/test/Cargo.toml @@ -41,3 +41,4 @@ std = [ "sp-runtime/std", "sp-state-machine", ] +try-runtime = ["frame-support/try-runtime"] diff --git a/frame/system/src/weights.rs b/frame/system/src/weights.rs index fc16198789637..04e95de4ba37d 100644 --- a/frame/system/src/weights.rs +++ b/frame/system/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for frame_system //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-02-28, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2021-02-28, STEPS: \[50, \], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/timestamp/src/weights.rs b/frame/timestamp/src/weights.rs index 8cc40faecc932..875d78c31d22e 100644 --- a/frame/timestamp/src/weights.rs +++ b/frame/timestamp/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_timestamp //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/tips/src/weights.rs b/frame/tips/src/weights.rs index 94c12f740c043..f5cd4bc23c860 100644 --- a/frame/tips/src/weights.rs +++ b/frame/tips/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_tips //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-12-20, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-12-20, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/treasury/src/weights.rs b/frame/treasury/src/weights.rs index ea939396c5f1a..b8a5625bf0624 100644 --- a/frame/treasury/src/weights.rs +++ b/frame/treasury/src/weights.rs @@ -18,7 +18,7 @@ //! Autogenerated weights for pallet_treasury //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-12-16, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-12-16, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/utility/src/weights.rs b/frame/utility/src/weights.rs index 5e2eb39f6ef54..f8cc31d1bba8e 100644 --- a/frame/utility/src/weights.rs +++ b/frame/utility/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_utility //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/frame/vesting/src/weights.rs b/frame/vesting/src/weights.rs index f4a1ee3669101..1e44474fbc970 100644 --- a/frame/vesting/src/weights.rs +++ b/frame/vesting/src/weights.rs @@ -17,7 +17,7 @@ //! Weights for pallet_vesting //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 -//! DATE: 2020-10-27, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: diff --git a/primitives/io/src/lib.rs b/primitives/io/src/lib.rs index bc86dd902d157..521d831dfc755 100644 --- a/primitives/io/src/lib.rs +++ b/primitives/io/src/lib.rs @@ -81,8 +81,8 @@ pub enum EcdsaVerifyError { BadSignature, } -/// The outcome of calling [`kill_storage`]. Returned value is the number of storage items -/// removed from the trie from making the `kill_storage` call. +/// The outcome of calling `storage_kill`. Returned value is the number of storage items +/// removed from the trie from making the `storage_kill` call. #[derive(PassByCodec, Encode, Decode)] pub enum KillChildStorageResult { /// No key remains in the child trie. diff --git a/utils/frame/benchmarking-cli/src/template.hbs b/utils/frame/benchmarking-cli/src/template.hbs index 0ff6144214d61..a6f0a5ddfc828 100644 --- a/utils/frame/benchmarking-cli/src/template.hbs +++ b/utils/frame/benchmarking-cli/src/template.hbs @@ -2,7 +2,7 @@ //! Autogenerated weights for {{pallet}} //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}} -//! DATE: {{date}}, STEPS: {{cmd.steps}}, REPEAT: {{cmd.repeat}}, LOW RANGE: {{cmd.lowest_range_values}}, HIGH RANGE: {{cmd.highest_range_values}} +//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}` //! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}} // Executed Command: