Skip to content

Commit fe28b48

Browse files
authored
fix wrong comments for some storage items
1 parent e90205b commit fe28b48

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -886,34 +886,34 @@ pub mod pallet {
886886
pub type TotalStake<T> = StorageValue<_, u64, ValueQuery>;
887887
#[pallet::storage] // --- ITEM ( dynamic_block ) -- block when dynamic was turned on.
888888
pub type DynamicBlock<T> = StorageValue<_, u64, ValueQuery>;
889-
#[pallet::storage] // --- DMAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network.
889+
#[pallet::storage] // --- MAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network.
890890
pub type SubnetVolume<T: Config> =
891891
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
892-
#[pallet::storage] // --- DMAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet.
892+
#[pallet::storage] // --- MAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet.
893893
pub type SubnetTAO<T: Config> =
894894
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
895-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in emission into the pool per block.
895+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in emission into the pool per block.
896896
pub type SubnetAlphaInEmission<T: Config> =
897897
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
898-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block.
898+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block.
899899
pub type SubnetAlphaOutEmission<T: Config> =
900900
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
901-
#[pallet::storage] // --- DMAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block.
901+
#[pallet::storage] // --- MAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block.
902902
pub type SubnetTaoInEmission<T: Config> =
903903
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
904-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_sell_per_block | Alpha sold per block.
904+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_sell_per_block | Alpha sold per block.
905905
pub type SubnetAlphaEmissionSell<T: Config> =
906906
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
907-
#[pallet::storage] // --- DMAP ( netuid ) --> total_stake_at_moment_of_subnet_registration
907+
#[pallet::storage] // --- MAP ( netuid ) --> total_stake_at_moment_of_subnet_registration
908908
pub type TotalStakeAtDynamic<T: Config> =
909909
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
910-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the subnet.
910+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the pool.
911911
pub type SubnetAlphaIn<T: Config> =
912912
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
913-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet.
913+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet.
914914
pub type SubnetAlphaOut<T: Config> =
915915
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
916-
#[pallet::storage] // --- DMAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it
916+
#[pallet::storage] // --- MAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it
917917
pub type StakingHotkeys<T: Config> =
918918
StorageMap<_, Blake2_128Concat, T::AccountId, Vec<T::AccountId>, ValueQuery>;
919919
#[pallet::storage] // --- MAP ( cold ) --> Vec<hot> | Returns the vector of hotkeys controlled by this coldkey.
@@ -970,10 +970,10 @@ pub mod pallet {
970970
U64F64, // Shares
971971
ValueQuery,
972972
>;
973-
#[pallet::storage] // --- DMAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet.
973+
#[pallet::storage] // --- MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet.
974974
pub type TokenSymbol<T: Config> =
975975
StorageMap<_, Identity, u16, Vec<u8>, ValueQuery, DefaultUnicodeVecU8<T>>;
976-
#[pallet::storage] // --- DMAP ( netuid ) --> subnet_name | Returns the name of the subnet.
976+
#[pallet::storage] // --- MAP ( netuid ) --> subnet_name | Returns the name of the subnet.
977977
pub type SubnetName<T: Config> =
978978
StorageMap<_, Identity, u16, Vec<u8>, ValueQuery, DefaultUnicodeVecU8<T>>;
979979

@@ -1267,49 +1267,49 @@ pub mod pallet {
12671267
pub type Keys<T: Config> =
12681268
StorageDoubleMap<_, Identity, u16, Identity, u16, T::AccountId, ValueQuery, DefaultKey<T>>;
12691269
#[pallet::storage]
1270-
/// --- DMAP ( netuid ) --> (hotkey, se, ve)
1270+
/// --- MAP ( netuid ) --> (hotkey, se, ve)
12711271
pub type LoadedEmission<T: Config> =
12721272
StorageMap<_, Identity, u16, Vec<(T::AccountId, u64, u64)>, OptionQuery>;
12731273
#[pallet::storage]
1274-
/// --- DMAP ( netuid ) --> active
1274+
/// --- MAP ( netuid ) --> active
12751275
pub type Active<T: Config> =
12761276
StorageMap<_, Identity, u16, Vec<bool>, ValueQuery, EmptyBoolVec<T>>;
12771277
#[pallet::storage]
1278-
/// --- DMAP ( netuid ) --> rank
1278+
/// --- MAP ( netuid ) --> rank
12791279
pub type Rank<T: Config> = StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12801280
#[pallet::storage]
1281-
/// --- DMAP ( netuid ) --> trust
1281+
/// --- MAP ( netuid ) --> trust
12821282
pub type Trust<T: Config> = StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12831283
#[pallet::storage]
1284-
/// --- DMAP ( netuid ) --> consensus
1284+
/// --- MAP ( netuid ) --> consensus
12851285
pub type Consensus<T: Config> =
12861286
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12871287
#[pallet::storage]
1288-
/// --- DMAP ( netuid ) --> incentive
1288+
/// --- MAP ( netuid ) --> incentive
12891289
pub type Incentive<T: Config> =
12901290
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12911291
#[pallet::storage]
1292-
/// --- DMAP ( netuid ) --> dividends
1292+
/// --- MAP ( netuid ) --> dividends
12931293
pub type Dividends<T: Config> =
12941294
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12951295
#[pallet::storage]
1296-
/// --- DMAP ( netuid ) --> emission
1296+
/// --- MAP ( netuid ) --> emission
12971297
pub type Emission<T: Config> =
12981298
StorageMap<_, Identity, u16, Vec<u64>, ValueQuery, EmptyU64Vec<T>>;
12991299
#[pallet::storage]
1300-
/// --- DMAP ( netuid ) --> last_update
1300+
/// --- MAP ( netuid ) --> last_update
13011301
pub type LastUpdate<T: Config> =
13021302
StorageMap<_, Identity, u16, Vec<u64>, ValueQuery, EmptyU64Vec<T>>;
13031303
#[pallet::storage]
1304-
/// --- DMAP ( netuid ) --> validator_trust
1304+
/// --- MAP ( netuid ) --> validator_trust
13051305
pub type ValidatorTrust<T: Config> =
13061306
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
13071307
#[pallet::storage]
1308-
/// --- DMAP ( netuid ) --> pruning_scores
1308+
/// --- MAP ( netuid ) --> pruning_scores
13091309
pub type PruningScores<T: Config> =
13101310
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
13111311
#[pallet::storage]
1312-
/// --- DMAP ( netuid ) --> validator_permit
1312+
/// --- MAP ( netuid ) --> validator_permit
13131313
pub type ValidatorPermit<T: Config> =
13141314
StorageMap<_, Identity, u16, Vec<bool>, ValueQuery, EmptyBoolVec<T>>;
13151315
#[pallet::storage]

0 commit comments

Comments
 (0)