@@ -313,7 +313,6 @@ pub mod pallet {
313313 /// ============================
314314 /// ==== Staking + Accounts ====
315315 /// ============================
316-
317316 /// Default value for zero.
318317 #[ pallet:: type_value]
319318 pub fn DefaultZeroU64 < T : Config > ( ) -> u64 {
@@ -1047,7 +1046,6 @@ pub mod pallet {
10471046 ///
10481047 /// Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this
10491048 /// separate accounting.
1050-
10511049 /// --- ITEM --> Global weight
10521050 #[ pallet:: storage]
10531051 pub type TaoWeight < T > = StorageValue < _ , u64 , ValueQuery , DefaultTaoWeight < T > > ;
@@ -1162,7 +1160,6 @@ pub mod pallet {
11621160 /// ==================
11631161 /// ==== Coinbase ====
11641162 /// ==================
1165-
11661163 /// --- ITEM ( global_block_emission )
11671164 #[ pallet:: storage]
11681165 pub type BlockEmission < T > = StorageValue < _ , u64 , ValueQuery , DefaultBlockEmission < T > > ;
@@ -1191,7 +1188,6 @@ pub mod pallet {
11911188 ///
11921189 /// Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this
11931190 /// separate accounting.
1194-
11951191 /// --- ITEM ( maximum_number_of_networks )
11961192 #[ pallet:: storage]
11971193 pub type SubnetLimit < T > = StorageValue < _ , u16 , ValueQuery , DefaultSubnetLimit < T > > ;
@@ -1363,7 +1359,6 @@ pub mod pallet {
13631359 /// ============================
13641360 /// ==== Global Parameters =====
13651361 /// ============================
1366-
13671362 /// --- StorageItem Global Used Work.
13681363 #[ pallet:: storage]
13691364 pub type UsedWork < T : Config > = StorageMap < _ , Identity , Vec < u8 > , u64 , ValueQuery > ;
@@ -1417,7 +1412,6 @@ pub mod pallet {
14171412 /// ============================
14181413 /// ==== Rate Limiting =====
14191414 /// ============================
1420-
14211415 /// --- MAP ( RateLimitKey ) --> Block number in which the last rate limited operation occured
14221416 #[ pallet:: storage]
14231417 pub type LastRateLimitedBlock < T : Config > =
@@ -1426,7 +1420,6 @@ pub mod pallet {
14261420 /// ============================
14271421 /// ==== Subnet Locks =====
14281422 /// ============================
1429-
14301423 /// --- MAP ( netuid ) --> transfer_toggle
14311424 #[ pallet:: storage]
14321425 pub type TransferToggle < T : Config > =
@@ -1445,15 +1438,13 @@ pub mod pallet {
14451438 /// =================
14461439 /// ==== Tempos =====
14471440 /// =================
1448-
14491441 /// --- MAP ( netuid ) --> tempo
14501442 #[ pallet:: storage]
14511443 pub type Tempo < T > = StorageMap < _ , Identity , NetUid , u16 , ValueQuery , DefaultTempo < T > > ;
14521444
14531445 /// ============================
14541446 /// ==== Subnet Parameters =====
14551447 /// ============================
1456-
14571448 /// --- MAP ( netuid ) --> block number of first emission
14581449 #[ pallet:: storage]
14591450 pub type FirstEmissionBlockNumber < T : Config > =
@@ -1769,6 +1760,7 @@ pub mod pallet {
17691760 }
17701761
17711762 /// Maximum value for burn keys limit
1763+ #[ pallet:: type_value]
17721764 pub fn MaxImmuneOwnerUidsLimit < T : Config > ( ) -> u16 {
17731765 10
17741766 }
@@ -1787,7 +1779,6 @@ pub mod pallet {
17871779 /// =======================================
17881780 /// ==== Subnetwork Consensus Storage ====
17891781 /// =======================================
1790-
17911782 /// --- DMAP ( netuid ) --> stake_weight | weight for stake used in YC.
17921783 #[ pallet:: storage]
17931784 pub type StakeWeight < T : Config > =
@@ -1973,7 +1964,6 @@ pub mod pallet {
19731964 /// =================================
19741965 /// ==== Axon / Promo Endpoints =====
19751966 /// =================================
1976-
19771967 /// --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name.
19781968 #[ pallet:: storage]
19791969 pub type TransactionKeyLastBlock < T : Config > = StorageNMap <
@@ -2109,7 +2099,6 @@ pub mod pallet {
21092099 /// =============================
21102100 /// ==== EVM related storage ====
21112101 /// =============================
2112-
21132102 /// --- DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)
21142103 #[ pallet:: storage]
21152104 pub type AssociatedEvmAddress < T : Config > =
@@ -2118,7 +2107,6 @@ pub mod pallet {
21182107 /// ========================
21192108 /// ==== Subnet Leasing ====
21202109 /// ========================
2121-
21222110 /// --- MAP ( lease_id ) --> subnet lease | The subnet lease for a given lease id.
21232111 #[ pallet:: storage]
21242112 pub type SubnetLeases < T : Config > =
@@ -2156,23 +2144,26 @@ pub mod pallet {
21562144 /// ============================
21572145 /// ==== Subnet Mechanisms =====
21582146 /// ============================
2159- #[ pallet:: type_value]
21602147 /// -- ITEM (Default number of sub-subnets)
2148+ #[ pallet:: type_value]
21612149 pub fn DefaultMechanismCount < T : Config > ( ) -> MechId {
21622150 MechId :: from ( 1 )
21632151 }
2164- # [ pallet :: type_value ]
2152+
21652153 /// -- ITEM (Maximum number of sub-subnets)
2154+ #[ pallet:: type_value]
21662155 pub fn MaxMechanismCount < T : Config > ( ) -> MechId {
21672156 MechId :: from ( 2 )
21682157 }
2169- # [ pallet :: type_value ]
2158+
21702159 /// -- ITEM (Rate limit for mechanism count updates)
2160+ #[ pallet:: type_value]
21712161 pub fn MechanismCountSetRateLimit < T : Config > ( ) -> u64 {
21722162 prod_or_fast ! ( 7_200 , 1 )
21732163 }
2174- # [ pallet :: type_value ]
2164+
21752165 /// -- ITEM (Rate limit for mechanism emission distribution updates)
2166+ #[ pallet:: type_value]
21762167 pub fn MechanismEmissionRateLimit < T : Config > ( ) -> u64 {
21772168 prod_or_fast ! ( 7_200 , 1 )
21782169 }
@@ -2190,7 +2181,6 @@ pub mod pallet {
21902181 /// ==================
21912182 /// ==== Genesis =====
21922183 /// ==================
2193-
21942184 /// --- Storage for migration run status
21952185 #[ pallet:: storage]
21962186 pub type HasMigrationRun < T : Config > = StorageMap < _ , Identity , Vec < u8 > , bool , ValueQuery > ;
0 commit comments