mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +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:
@@ -10,6 +10,7 @@ homepage = "https://substrate.io"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
|
||||
log = { version = "0.4.17", default-features = false }
|
||||
scale-info = { version = "2.5.0", default-features = false, features = ["derive", "serde"] }
|
||||
serde = { version = "1.0.163", optional = true }
|
||||
frame-support = { version = "4.0.0-dev", default-features = false, path = "../support" }
|
||||
@@ -32,11 +33,13 @@ pallet-timestamp = { version = "4.0.0-dev", path = "../timestamp" }
|
||||
sp-core = { version = "21.0.0", path = "../../primitives/core" }
|
||||
sp-io = { version = "23.0.0", path = "../../primitives/io" }
|
||||
sp-staking = { version = "4.0.0-dev", path = "../../primitives/staking" }
|
||||
sp-state-machine = { version = "0.28.0", default-features = false, path = "../../primitives/state-machine" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"pallet-authorship/std",
|
||||
@@ -54,7 +57,8 @@ std = [
|
||||
"pallet-staking/std",
|
||||
"pallet-timestamp/std",
|
||||
"sp-core/std",
|
||||
"sp-io/std"
|
||||
"sp-io/std",
|
||||
"sp-state-machine/std"
|
||||
]
|
||||
try-runtime = [
|
||||
"frame-support/try-runtime",
|
||||
|
||||
@@ -35,10 +35,7 @@
|
||||
//! definition.
|
||||
|
||||
use codec::{self as codec, Decode, Encode};
|
||||
use frame_support::{
|
||||
log,
|
||||
traits::{Get, KeyOwnerProofSystem},
|
||||
};
|
||||
use frame_support::traits::{Get, KeyOwnerProofSystem};
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
use log::{error, info};
|
||||
use sp_consensus_beefy::{EquivocationProof, ValidatorSetId, KEY_TYPE as BEEFY_KEY_TYPE};
|
||||
|
||||
@@ -21,7 +21,6 @@ use codec::{Encode, MaxEncodedLen};
|
||||
|
||||
use frame_support::{
|
||||
dispatch::{DispatchResultWithPostInfo, Pays},
|
||||
log,
|
||||
pallet_prelude::*,
|
||||
traits::{Get, OneSessionHandler},
|
||||
weights::Weight,
|
||||
@@ -31,6 +30,7 @@ use frame_system::{
|
||||
ensure_none, ensure_signed,
|
||||
pallet_prelude::{BlockNumberFor, OriginFor},
|
||||
};
|
||||
use log;
|
||||
use sp_runtime::{
|
||||
generic::DigestItem,
|
||||
traits::{IsMember, Member},
|
||||
|
||||
@@ -23,12 +23,11 @@ use frame_election_provider_support::{
|
||||
};
|
||||
use frame_support::{
|
||||
construct_runtime, parameter_types,
|
||||
sp_io::TestExternalities,
|
||||
traits::{ConstU16, ConstU32, ConstU64, KeyOwnerProofSystem, OnFinalize, OnInitialize},
|
||||
BasicExternalities,
|
||||
};
|
||||
use pallet_session::historical as pallet_session_historical;
|
||||
use sp_core::{crypto::KeyTypeId, ConstU128, H256};
|
||||
use sp_io::TestExternalities;
|
||||
use sp_runtime::{
|
||||
app_crypto::ecdsa::Public,
|
||||
curve::PiecewiseLinear,
|
||||
@@ -38,6 +37,7 @@ use sp_runtime::{
|
||||
BuildStorage, Perbill,
|
||||
};
|
||||
use sp_staking::{EraIndex, SessionIndex};
|
||||
use sp_state_machine::BasicExternalities;
|
||||
|
||||
use crate as pallet_beefy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user