mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 01:11:08 +00:00
migrate new benchmarking syntax from frame_support::benchmarking to frame_benchmarking::v2 (#13235)
* * re-export frame_support::benchmarking in frame_benchmarking:: * prefer use frame_benchmarking::*; in examples, etc * switch to frame_benchmarking::v2 * completely migrate new benchmarking code out of frame_support * fix doc links * remove unneeded return Co-authored-by: Bastian Köcher <git@kchr.de> * remove another unneeded return Co-authored-by: Bastian Köcher <git@kchr.de> * properly export all macros in v1 * refactor existing frame_benchmarking imports to use ::v1 --------- Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
#[benchmarks]
|
||||
mod benches {
|
||||
mod benchmarks {
|
||||
#[benchmark]
|
||||
fn bench(xx: Linear<1, 2>) {
|
||||
#[block]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
|
||||
#[extrinsic_call]
|
||||
mod stuff {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
use frame_support_test::Config;
|
||||
|
||||
#[benchmarks]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame_support::benchmarking::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
#[allow(unused_imports)]
|
||||
use frame_support_test::Config;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user