Skip to content

Commit 81d2713

Browse files
committed
fix doc
1 parent 7c285bb commit 81d2713

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -976,15 +976,15 @@ pub mod pallet {
976976
/// --- ITEM ( min_childkey_take )
977977
pub type MinChildkeyTake<T> = StorageValue<_, u16, ValueQuery, DefaultMinChildKeyTake<T>>;
978978
#[pallet::storage]
979-
/// MAP ( hot ) --> cold, Returns the controlling coldkey for a hotkey
979+
/// MAP ( hot ) --> cold | Returns the controlling coldkey for a hotkey
980980
pub type Owner<T: Config> =
981981
StorageMap<_, Blake2_128Concat, T::AccountId, T::AccountId, ValueQuery, DefaultAccount<T>>;
982982
#[pallet::storage]
983-
/// MAP ( hot ) --> take, Returns the hotkey delegation take. And signals that this key is open for delegation
983+
/// MAP ( hot ) --> take | Returns the hotkey delegation take. And signals that this key is open for delegation
984984
pub type Delegates<T: Config> =
985985
StorageMap<_, Blake2_128Concat, T::AccountId, u16, ValueQuery, DefaultDelegateTake<T>>;
986986
#[pallet::storage]
987-
/// DMAP ( hot, netuid ) --> take, Returns the hotkey childkey take for a specific subnet
987+
/// DMAP ( hot, netuid ) --> take | Returns the hotkey childkey take for a specific subnet
988988
pub type ChildkeyTake<T: Config> = StorageDoubleMap<
989989
_,
990990
Blake2_128Concat,
@@ -1112,42 +1112,42 @@ pub mod pallet {
11121112
StorageMap<_, Identity, NetUid, u128, ValueQuery, DefaultZeroU128<T>>;
11131113

11141114
#[pallet::storage]
1115-
/// --- MAP ( netuid ) --> tao_in_subnet, Returns the amount of TAO in the subnet.
1115+
/// --- MAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet.
11161116
pub type SubnetTAO<T: Config> =
11171117
StorageMap<_, Identity, NetUid, TaoCurrency, ValueQuery, DefaultZeroTao<T>>;
11181118

11191119
#[pallet::storage]
1120-
/// --- MAP ( netuid ) --> tao_in_user_subnet, Returns the amount of TAO in the subnet reserve provided by users as liquidity.
1120+
/// --- MAP ( netuid ) --> tao_in_user_subnet | Returns the amount of TAO in the subnet reserve provided by users as liquidity.
11211121
pub type SubnetTaoProvided<T: Config> =
11221122
StorageMap<_, Identity, NetUid, TaoCurrency, ValueQuery, DefaultZeroTao<T>>;
11231123

11241124
#[pallet::storage]
1125-
/// --- MAP ( netuid ) --> alpha_in_emission, Returns the amount of alph in emission into the pool per block.
1125+
/// --- MAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in emission into the pool per block.
11261126
pub type SubnetAlphaInEmission<T: Config> =
11271127
StorageMap<_, Identity, NetUid, AlphaCurrency, ValueQuery, DefaultZeroAlpha<T>>;
11281128

11291129
#[pallet::storage]
1130-
/// --- MAP ( netuid ) --> alpha_out_emission, Returns the amount of alpha out emission into the network per block.
1130+
/// --- MAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block.
11311131
pub type SubnetAlphaOutEmission<T: Config> =
11321132
StorageMap<_, Identity, NetUid, AlphaCurrency, ValueQuery, DefaultZeroAlpha<T>>;
11331133

11341134
#[pallet::storage]
1135-
/// --- MAP ( netuid ) --> tao_in_emission, Returns the amount of tao emitted into this subent on the last block.
1135+
/// --- MAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block.
11361136
pub type SubnetTaoInEmission<T: Config> =
11371137
StorageMap<_, Identity, NetUid, TaoCurrency, ValueQuery, DefaultZeroTao<T>>;
11381138

11391139
#[pallet::storage]
1140-
/// --- MAP ( netuid ) --> alpha_supply_in_pool, Returns the amount of alpha in the pool.
1140+
/// --- MAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the pool.
11411141
pub type SubnetAlphaIn<T: Config> =
11421142
StorageMap<_, Identity, NetUid, AlphaCurrency, ValueQuery, DefaultZeroAlpha<T>>;
11431143

11441144
#[pallet::storage]
1145-
/// --- MAP ( netuid ) --> alpha_supply_user_in_pool, Returns the amount of alpha in the pool provided by users as liquidity.
1145+
/// --- MAP ( netuid ) --> alpha_supply_user_in_pool | Returns the amount of alpha in the pool provided by users as liquidity.
11461146
pub type SubnetAlphaInProvided<T: Config> =
11471147
StorageMap<_, Identity, NetUid, AlphaCurrency, ValueQuery, DefaultZeroAlpha<T>>;
11481148

11491149
#[pallet::storage]
1150-
/// --- MAP ( netuid ) --> alpha_supply_in_subnet, Returns the amount of alpha in the subnet.
1150+
/// --- MAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet.
11511151
pub type SubnetAlphaOut<T: Config> =
11521152
StorageMap<_, Identity, NetUid, AlphaCurrency, ValueQuery, DefaultZeroAlpha<T>>;
11531153

@@ -1157,12 +1157,12 @@ pub mod pallet {
11571157
StorageMap<_, Blake2_128Concat, T::AccountId, Vec<T::AccountId>, ValueQuery>;
11581158

11591159
#[pallet::storage]
1160-
/// --- MAP ( cold ) --> Vec<hot>, Returns the vector of hotkeys controlled by this coldkey.
1160+
/// --- MAP ( cold ) --> Vec<hot> | Returns the vector of hotkeys controlled by this coldkey.
11611161
pub type OwnedHotkeys<T: Config> =
11621162
StorageMap<_, Blake2_128Concat, T::AccountId, Vec<T::AccountId>, ValueQuery>;
11631163

11641164
#[pallet::storage]
1165-
/// --- DMAP ( cold, netuid )--> hot, Returns the hotkey a coldkey will autostake to with mining rewards.
1165+
/// --- DMAP ( cold, netuid )--> hot | Returns the hotkey a coldkey will autostake to with mining rewards.
11661166
pub type AutoStakeDestination<T: Config> = StorageDoubleMap<
11671167
_,
11681168
Blake2_128Concat,
@@ -1174,7 +1174,7 @@ pub mod pallet {
11741174
>;
11751175

11761176
#[pallet::storage]
1177-
/// --- DMAP ( hot, netuid )--> Vec<cold>, Returns a list of coldkeys that are autostaking to a hotkey
1177+
/// --- DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey
11781178
pub type AutoStakeDestinationColdkeys<T: Config> = StorageDoubleMap<
11791179
_,
11801180
Blake2_128Concat,
@@ -1197,7 +1197,7 @@ pub mod pallet {
11971197
>;
11981198

11991199
#[pallet::storage]
1200-
/// --- DMAP ( hot, netuid ) --> alpha, Returns the total amount of alpha a hotkey owns.
1200+
/// --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns.
12011201
pub type TotalHotkeyAlpha<T: Config> = StorageDoubleMap<
12021202
_,
12031203
Blake2_128Concat,
@@ -1209,7 +1209,7 @@ pub mod pallet {
12091209
DefaultZeroAlpha<T>,
12101210
>;
12111211
#[pallet::storage]
1212-
/// --- DMAP ( hot, netuid ) --> alpha, Returns the total amount of alpha a hotkey owned in the last epoch.
1212+
/// --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owned in the last epoch.
12131213
pub type TotalHotkeyAlphaLastEpoch<T: Config> = StorageDoubleMap<
12141214
_,
12151215
Blake2_128Concat,
@@ -1221,7 +1221,7 @@ pub mod pallet {
12211221
DefaultZeroAlpha<T>,
12221222
>;
12231223
#[pallet::storage]
1224-
/// DMAP ( hot, netuid ) --> total_alpha_shares, Returns the number of alpha shares for a hotkey on a subnet.
1224+
/// DMAP ( hot, netuid ) --> total_alpha_shares | Returns the number of alpha shares for a hotkey on a subnet.
12251225
pub type TotalHotkeyShares<T: Config> = StorageDoubleMap<
12261226
_,
12271227
Blake2_128Concat,
@@ -1233,7 +1233,7 @@ pub mod pallet {
12331233
DefaultSharePoolZero<T>,
12341234
>;
12351235
#[pallet::storage]
1236-
/// --- NMAP ( hot, cold, netuid ) --> alpha, Returns the alpha shares for a hotkey, coldkey, netuid triplet.
1236+
/// --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet.
12371237
pub type Alpha<T: Config> = StorageNMap<
12381238
_,
12391239
(
@@ -1245,7 +1245,7 @@ pub mod pallet {
12451245
ValueQuery,
12461246
>;
12471247
#[pallet::storage]
1248-
/// --- MAP ( netuid ) --> token_symbol, Returns the token symbol for a subnet.
1248+
/// --- MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet.
12491249
pub type TokenSymbol<T: Config> =
12501250
StorageMap<_, Identity, NetUid, Vec<u8>, ValueQuery, DefaultUnicodeVecU8<T>>;
12511251

@@ -1765,7 +1765,7 @@ pub mod pallet {
17651765
/// ==== Axon / Promo Endpoints =====
17661766
/// =================================
17671767
#[pallet::storage]
1768-
/// --- NMAP ( hot, netuid, name ) --> last_block, Returns the last block of a transaction for a given key, netuid, and name.
1768+
/// --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name.
17691769
pub type TransactionKeyLastBlock<T: Config> = StorageNMap<
17701770
_,
17711771
(
@@ -1909,7 +1909,7 @@ pub mod pallet {
19091909
StorageDoubleMap<_, Twox64Concat, LeaseId, Identity, T::AccountId, U64F64, ValueQuery>;
19101910

19111911
#[pallet::storage]
1912-
// --- MAP ( netuid ) --> lease_id | The lease id for a given netuid.
1912+
/// --- MAP ( netuid ) --> lease_id | The lease id for a given netuid.
19131913
pub type SubnetUidToLeaseId<T: Config> =
19141914
StorageMap<_, Twox64Concat, NetUid, LeaseId, OptionQuery>;
19151915

0 commit comments

Comments
 (0)