@@ -19,20 +19,20 @@ use codec::{Compact, Decode, Encode};
19
19
use frame_support:: dispatch:: DispatchResult ;
20
20
use frame_support:: traits:: { Imbalance , InsideBoth } ;
21
21
use frame_support:: {
22
+ PalletId ,
22
23
dispatch:: DispatchResultWithPostInfo ,
23
24
genesis_builder_helper:: { build_state, get_preset} ,
24
25
pallet_prelude:: Get ,
25
26
traits:: {
27
+ Contains , LinearStoragePrice , OnUnbalanced ,
26
28
fungible:: {
27
29
DecreaseIssuance , HoldConsideration , Imbalance as FungibleImbalance , IncreaseIssuance ,
28
30
} ,
29
- Contains , LinearStoragePrice , OnUnbalanced ,
30
31
} ,
31
- PalletId ,
32
32
} ;
33
33
use frame_system:: { EnsureNever , EnsureRoot , EnsureRootWithSuccess , RawOrigin } ;
34
34
use pallet_commitments:: { CanCommit , OnMetadataCommitment } ;
35
- use pallet_grandpa:: { fg_primitives , AuthorityId as GrandpaId } ;
35
+ use pallet_grandpa:: { AuthorityId as GrandpaId , fg_primitives } ;
36
36
use pallet_registry:: CanRegisterIdentity ;
37
37
use pallet_subtensor:: rpc_info:: {
38
38
delegate_info:: DelegateInfo ,
@@ -49,44 +49,42 @@ use sp_consensus_aura::sr25519::AuthorityId as AuraId;
49
49
use sp_consensus_babe:: BabeConfiguration ;
50
50
use sp_consensus_babe:: BabeEpochConfiguration ;
51
51
use sp_core:: {
52
+ H160 , H256 , OpaqueMetadata , U256 ,
52
53
crypto:: { ByteArray , KeyTypeId } ,
53
- OpaqueMetadata , H160 , H256 , U256 ,
54
54
} ;
55
+ use sp_runtime:: Cow ;
55
56
use sp_runtime:: generic:: Era ;
56
57
use sp_runtime:: traits:: NumberFor ;
57
- use sp_runtime:: Cow ;
58
58
use sp_runtime:: {
59
- generic, impl_opaque_keys,
59
+ AccountId32 , ApplyExtrinsicResult , ConsensusEngineId , generic, impl_opaque_keys,
60
60
traits:: {
61
61
AccountIdLookup , BlakeTwo256 , Block as BlockT , DispatchInfoOf , Dispatchable , One ,
62
62
PostDispatchInfoOf , UniqueSaturatedInto , Verify ,
63
63
} ,
64
64
transaction_validity:: { TransactionSource , TransactionValidity , TransactionValidityError } ,
65
- AccountId32 , ApplyExtrinsicResult , ConsensusEngineId ,
66
65
} ;
67
66
use sp_std:: cmp:: Ordering ;
68
67
use sp_std:: prelude:: * ;
69
68
#[ cfg( feature = "std" ) ]
70
69
use sp_version:: NativeVersion ;
71
70
use sp_version:: RuntimeVersion ;
72
71
use subtensor_precompiles:: Precompiles ;
73
- use subtensor_runtime_common:: { time:: * , AlphaCurrency , * } ;
72
+ use subtensor_runtime_common:: { AlphaCurrency , time:: * , * } ;
74
73
75
74
// A few exports that help ease life for downstream crates.
76
75
pub use frame_support:: {
77
- construct_runtime, parameter_types,
76
+ StorageValue , construct_runtime, parameter_types,
78
77
traits:: {
79
- ConstBool , ConstU128 , ConstU32 , ConstU64 , ConstU8 , FindAuthor , InstanceFilter ,
78
+ ConstBool , ConstU8 , ConstU32 , ConstU64 , ConstU128 , FindAuthor , InstanceFilter ,
80
79
KeyOwnerProofSystem , OnFinalize , OnTimestampSet , PrivilegeCmp , Randomness , StorageInfo ,
81
80
} ,
82
81
weights:: {
82
+ IdentityFee , Weight , WeightToFeeCoefficient , WeightToFeeCoefficients ,
83
+ WeightToFeePolynomial ,
83
84
constants:: {
84
85
BlockExecutionWeight , ExtrinsicBaseWeight , RocksDbWeight , WEIGHT_REF_TIME_PER_SECOND ,
85
86
} ,
86
- IdentityFee , Weight , WeightToFeeCoefficient , WeightToFeeCoefficients ,
87
- WeightToFeePolynomial ,
88
87
} ,
89
- StorageValue ,
90
88
} ;
91
89
pub use frame_system:: Call as SystemCall ;
92
90
pub use pallet_balances:: Call as BalancesCall ;
0 commit comments