@@ -19,20 +19,20 @@ use codec::{Compact, Decode, Encode};
1919use frame_support:: dispatch:: DispatchResult ;
2020use frame_support:: traits:: { Imbalance , InsideBoth } ;
2121use frame_support:: {
22+ PalletId ,
2223 dispatch:: DispatchResultWithPostInfo ,
2324 genesis_builder_helper:: { build_state, get_preset} ,
2425 pallet_prelude:: Get ,
2526 traits:: {
27+ Contains , LinearStoragePrice , OnUnbalanced ,
2628 fungible:: {
2729 DecreaseIssuance , HoldConsideration , Imbalance as FungibleImbalance , IncreaseIssuance ,
2830 } ,
29- Contains , LinearStoragePrice , OnUnbalanced ,
3031 } ,
31- PalletId ,
3232} ;
3333use frame_system:: { EnsureNever , EnsureRoot , EnsureRootWithSuccess , RawOrigin } ;
3434use pallet_commitments:: { CanCommit , OnMetadataCommitment } ;
35- use pallet_grandpa:: { fg_primitives , AuthorityId as GrandpaId } ;
35+ use pallet_grandpa:: { AuthorityId as GrandpaId , fg_primitives } ;
3636use pallet_registry:: CanRegisterIdentity ;
3737use pallet_subtensor:: rpc_info:: {
3838 delegate_info:: DelegateInfo ,
@@ -49,44 +49,42 @@ use sp_consensus_aura::sr25519::AuthorityId as AuraId;
4949use sp_consensus_babe:: BabeConfiguration ;
5050use sp_consensus_babe:: BabeEpochConfiguration ;
5151use sp_core:: {
52+ H160 , H256 , OpaqueMetadata , U256 ,
5253 crypto:: { ByteArray , KeyTypeId } ,
53- OpaqueMetadata , H160 , H256 , U256 ,
5454} ;
55+ use sp_runtime:: Cow ;
5556use sp_runtime:: generic:: Era ;
5657use sp_runtime:: traits:: NumberFor ;
57- use sp_runtime:: Cow ;
5858use sp_runtime:: {
59- generic, impl_opaque_keys,
59+ AccountId32 , ApplyExtrinsicResult , ConsensusEngineId , generic, impl_opaque_keys,
6060 traits:: {
6161 AccountIdLookup , BlakeTwo256 , Block as BlockT , DispatchInfoOf , Dispatchable , One ,
6262 PostDispatchInfoOf , UniqueSaturatedInto , Verify ,
6363 } ,
6464 transaction_validity:: { TransactionSource , TransactionValidity , TransactionValidityError } ,
65- AccountId32 , ApplyExtrinsicResult , ConsensusEngineId ,
6665} ;
6766use sp_std:: cmp:: Ordering ;
6867use sp_std:: prelude:: * ;
6968#[ cfg( feature = "std" ) ]
7069use sp_version:: NativeVersion ;
7170use sp_version:: RuntimeVersion ;
7271use subtensor_precompiles:: Precompiles ;
73- use subtensor_runtime_common:: { time:: * , AlphaCurrency , * } ;
72+ use subtensor_runtime_common:: { AlphaCurrency , time:: * , * } ;
7473
7574// A few exports that help ease life for downstream crates.
7675pub use frame_support:: {
77- construct_runtime, parameter_types,
76+ StorageValue , construct_runtime, parameter_types,
7877 traits:: {
79- ConstBool , ConstU128 , ConstU32 , ConstU64 , ConstU8 , FindAuthor , InstanceFilter ,
78+ ConstBool , ConstU8 , ConstU32 , ConstU64 , ConstU128 , FindAuthor , InstanceFilter ,
8079 KeyOwnerProofSystem , OnFinalize , OnTimestampSet , PrivilegeCmp , Randomness , StorageInfo ,
8180 } ,
8281 weights:: {
82+ IdentityFee , Weight , WeightToFeeCoefficient , WeightToFeeCoefficients ,
83+ WeightToFeePolynomial ,
8384 constants:: {
8485 BlockExecutionWeight , ExtrinsicBaseWeight , RocksDbWeight , WEIGHT_REF_TIME_PER_SECOND ,
8586 } ,
86- IdentityFee , Weight , WeightToFeeCoefficient , WeightToFeeCoefficients ,
87- WeightToFeePolynomial ,
8887 } ,
89- StorageValue ,
9088} ;
9189pub use frame_system:: Call as SystemCall ;
9290pub use pallet_balances:: Call as BalancesCall ;
0 commit comments