mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Restructure frame_support macro related exports (#14745)
* make reexports private * make reexports private 2 * make reexports private for runtime-benchmarking * make reexports private for try-runtime * fix for try-runtime * make reexports private for tests * fmt * make reexports private for tests * make reexports private for experimental * fix beefy * fix ui test * fix ui test * fix benches * ".git/.scripts/commands/fmt/fmt.sh" * fix contracts use * wip * wip * do not reexport sp_api::metadata_ir * fix CI checks * fix support tests * ".git/.scripts/commands/fmt/fmt.sh" * Update frame/support/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * import codec directly * fmt * fix node-cli tests --------- Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
//! # use frame_election_provider_support::{*, data_provider};
|
||||
//! # use sp_npos_elections::{Support, Assignment};
|
||||
//! # use frame_support::traits::ConstU32;
|
||||
//! # use frame_support::bounded_vec;
|
||||
//! # use sp_runtime::bounded_vec;
|
||||
//!
|
||||
//! type AccountId = u64;
|
||||
//! type Balance = u64;
|
||||
@@ -177,14 +177,17 @@ pub mod bounds;
|
||||
pub mod onchain;
|
||||
pub mod traits;
|
||||
|
||||
use sp_runtime::traits::{Bounded, Saturating, Zero};
|
||||
use sp_runtime::{
|
||||
traits::{Bounded, Saturating, Zero},
|
||||
RuntimeDebug,
|
||||
};
|
||||
use sp_std::{fmt::Debug, prelude::*};
|
||||
|
||||
pub use bounds::DataProviderBounds;
|
||||
pub use codec::{Decode, Encode};
|
||||
/// Re-export the solution generation macro.
|
||||
pub use frame_election_provider_solution_type::generate_solution_type;
|
||||
pub use frame_support::{traits::Get, weights::Weight, BoundedVec, RuntimeDebug};
|
||||
pub use frame_support::{traits::Get, weights::Weight, BoundedVec};
|
||||
/// Re-export some type as they are used in the interface.
|
||||
pub use sp_arithmetic::PerThing;
|
||||
pub use sp_npos_elections::{
|
||||
|
||||
@@ -254,7 +254,8 @@ mod tests {
|
||||
}
|
||||
|
||||
mod mock_data_provider {
|
||||
use frame_support::{bounded_vec, traits::ConstU32};
|
||||
use frame_support::traits::ConstU32;
|
||||
use sp_runtime::bounded_vec;
|
||||
|
||||
use super::*;
|
||||
use crate::{data_provider, VoterOf};
|
||||
|
||||
Reference in New Issue
Block a user