Skip to content

Commit 9b05314

Browse files
authored
Merge pull request #1179 from cuteolaf/patch-2
fix wrong comments for some storage items
2 parents ff8431b + fe28b48 commit 9b05314

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
@@ -891,34 +891,34 @@ pub mod pallet {
891891
pub type TotalStake<T> = StorageValue<_, u64, ValueQuery>;
892892
#[pallet::storage] // --- ITEM ( dynamic_block ) -- block when dynamic was turned on.
893893
pub type DynamicBlock<T> = StorageValue<_, u64, ValueQuery>;
894-
#[pallet::storage] // --- DMAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network.
894+
#[pallet::storage] // --- MAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network.
895895
pub type SubnetVolume<T: Config> =
896896
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
897-
#[pallet::storage] // --- DMAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet.
897+
#[pallet::storage] // --- MAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet.
898898
pub type SubnetTAO<T: Config> =
899899
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
900-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in emission into the pool per block.
900+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in emission into the pool per block.
901901
pub type SubnetAlphaInEmission<T: Config> =
902902
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
903-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block.
903+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block.
904904
pub type SubnetAlphaOutEmission<T: Config> =
905905
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
906-
#[pallet::storage] // --- DMAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block.
906+
#[pallet::storage] // --- MAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block.
907907
pub type SubnetTaoInEmission<T: Config> =
908908
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
909-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_sell_per_block | Alpha sold per block.
909+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_sell_per_block | Alpha sold per block.
910910
pub type SubnetAlphaEmissionSell<T: Config> =
911911
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
912-
#[pallet::storage] // --- DMAP ( netuid ) --> total_stake_at_moment_of_subnet_registration
912+
#[pallet::storage] // --- MAP ( netuid ) --> total_stake_at_moment_of_subnet_registration
913913
pub type TotalStakeAtDynamic<T: Config> =
914914
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
915-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the subnet.
915+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the pool.
916916
pub type SubnetAlphaIn<T: Config> =
917917
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
918-
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet.
918+
#[pallet::storage] // --- MAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet.
919919
pub type SubnetAlphaOut<T: Config> =
920920
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
921-
#[pallet::storage] // --- DMAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it
921+
#[pallet::storage] // --- MAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it
922922
pub type StakingHotkeys<T: Config> =
923923
StorageMap<_, Blake2_128Concat, T::AccountId, Vec<T::AccountId>, ValueQuery>;
924924
#[pallet::storage] // --- MAP ( cold ) --> Vec<hot> | Returns the vector of hotkeys controlled by this coldkey.
@@ -975,10 +975,10 @@ pub mod pallet {
975975
U64F64, // Shares
976976
ValueQuery,
977977
>;
978-
#[pallet::storage] // --- DMAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet.
978+
#[pallet::storage] // --- MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet.
979979
pub type TokenSymbol<T: Config> =
980980
StorageMap<_, Identity, u16, Vec<u8>, ValueQuery, DefaultUnicodeVecU8<T>>;
981-
#[pallet::storage] // --- DMAP ( netuid ) --> subnet_name | Returns the name of the subnet.
981+
#[pallet::storage] // --- MAP ( netuid ) --> subnet_name | Returns the name of the subnet.
982982
pub type SubnetName<T: Config> =
983983
StorageMap<_, Identity, u16, Vec<u8>, ValueQuery, DefaultUnicodeVecU8<T>>;
984984

@@ -1279,49 +1279,49 @@ pub mod pallet {
12791279
pub type Keys<T: Config> =
12801280
StorageDoubleMap<_, Identity, u16, Identity, u16, T::AccountId, ValueQuery, DefaultKey<T>>;
12811281
#[pallet::storage]
1282-
/// --- DMAP ( netuid ) --> (hotkey, se, ve)
1282+
/// --- MAP ( netuid ) --> (hotkey, se, ve)
12831283
pub type LoadedEmission<T: Config> =
12841284
StorageMap<_, Identity, u16, Vec<(T::AccountId, u64, u64)>, OptionQuery>;
12851285
#[pallet::storage]
1286-
/// --- DMAP ( netuid ) --> active
1286+
/// --- MAP ( netuid ) --> active
12871287
pub type Active<T: Config> =
12881288
StorageMap<_, Identity, u16, Vec<bool>, ValueQuery, EmptyBoolVec<T>>;
12891289
#[pallet::storage]
1290-
/// --- DMAP ( netuid ) --> rank
1290+
/// --- MAP ( netuid ) --> rank
12911291
pub type Rank<T: Config> = StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12921292
#[pallet::storage]
1293-
/// --- DMAP ( netuid ) --> trust
1293+
/// --- MAP ( netuid ) --> trust
12941294
pub type Trust<T: Config> = StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12951295
#[pallet::storage]
1296-
/// --- DMAP ( netuid ) --> consensus
1296+
/// --- MAP ( netuid ) --> consensus
12971297
pub type Consensus<T: Config> =
12981298
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
12991299
#[pallet::storage]
1300-
/// --- DMAP ( netuid ) --> incentive
1300+
/// --- MAP ( netuid ) --> incentive
13011301
pub type Incentive<T: Config> =
13021302
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
13031303
#[pallet::storage]
1304-
/// --- DMAP ( netuid ) --> dividends
1304+
/// --- MAP ( netuid ) --> dividends
13051305
pub type Dividends<T: Config> =
13061306
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
13071307
#[pallet::storage]
1308-
/// --- DMAP ( netuid ) --> emission
1308+
/// --- MAP ( netuid ) --> emission
13091309
pub type Emission<T: Config> =
13101310
StorageMap<_, Identity, u16, Vec<u64>, ValueQuery, EmptyU64Vec<T>>;
13111311
#[pallet::storage]
1312-
/// --- DMAP ( netuid ) --> last_update
1312+
/// --- MAP ( netuid ) --> last_update
13131313
pub type LastUpdate<T: Config> =
13141314
StorageMap<_, Identity, u16, Vec<u64>, ValueQuery, EmptyU64Vec<T>>;
13151315
#[pallet::storage]
1316-
/// --- DMAP ( netuid ) --> validator_trust
1316+
/// --- MAP ( netuid ) --> validator_trust
13171317
pub type ValidatorTrust<T: Config> =
13181318
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
13191319
#[pallet::storage]
1320-
/// --- DMAP ( netuid ) --> pruning_scores
1320+
/// --- MAP ( netuid ) --> pruning_scores
13211321
pub type PruningScores<T: Config> =
13221322
StorageMap<_, Identity, u16, Vec<u16>, ValueQuery, EmptyU16Vec<T>>;
13231323
#[pallet::storage]
1324-
/// --- DMAP ( netuid ) --> validator_permit
1324+
/// --- MAP ( netuid ) --> validator_permit
13251325
pub type ValidatorPermit<T: Config> =
13261326
StorageMap<_, Identity, u16, Vec<bool>, ValueQuery, EmptyBoolVec<T>>;
13271327
#[pallet::storage]

0 commit comments

Comments
 (0)