Skip to content

Commit ff549c8

Browse files
committed
unify doc placement
1 parent 0d20441 commit ff549c8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -957,42 +957,42 @@ pub mod pallet {
957957
///
958958
/// Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this
959959
/// separate accounting.
960-
/// --- ITEM --> Global weight
961960
#[pallet::storage]
961+
/// --- ITEM --> Global weight
962962
pub type TaoWeight<T> = StorageValue<_, u64, ValueQuery, DefaultTaoWeight<T>>;
963963

964-
/// --- ITEM --> CK burn
965964
#[pallet::storage]
965+
/// --- ITEM --> CK burn
966966
pub type CKBurn<T> = StorageValue<_, u64, ValueQuery, DefaultCKBurn<T>>;
967967

968-
/// --- ITEM ( default_delegate_take )
969968
#[pallet::storage]
969+
/// --- ITEM ( default_delegate_take )
970970
pub type MaxDelegateTake<T> = StorageValue<_, u16, ValueQuery, DefaultDelegateTake<T>>;
971971

972-
/// --- ITEM ( min_delegate_take )
973972
#[pallet::storage]
973+
/// --- ITEM ( min_delegate_take )
974974
pub type MinDelegateTake<T> = StorageValue<_, u16, ValueQuery, DefaultMinDelegateTake<T>>;
975975

976-
/// --- ITEM ( default_childkey_take )
977976
#[pallet::storage]
977+
/// --- ITEM ( default_childkey_take )
978978
pub type MaxChildkeyTake<T> = StorageValue<_, u16, ValueQuery, DefaultMaxChildKeyTake<T>>;
979979

980-
/// --- ITEM ( min_childkey_take )
981980
#[pallet::storage]
981+
/// --- ITEM ( min_childkey_take )
982982
pub type MinChildkeyTake<T> = StorageValue<_, u16, ValueQuery, DefaultMinChildKeyTake<T>>;
983983

984-
/// MAP ( hot ) --> cold, Returns the controlling coldkey for a hotkey.
985984
#[pallet::storage]
985+
/// MAP ( hot ) --> cold, Returns the controlling coldkey for a hotkey. Default is empty account.
986986
pub type Owner<T: Config> =
987987
StorageMap<_, Blake2_128Concat, T::AccountId, T::AccountId, ValueQuery, DefaultAccount<T>>;
988988

989-
/// MAP ( hot ) --> take, Returns the hotkey delegation take. And signals that this key is open for delegation.
990989
#[pallet::storage]
990+
/// MAP ( hot ) --> take, Returns the hotkey delegation take. And signals that this key is open for delegation. Default is 0.
991991
pub type Delegates<T: Config> =
992992
StorageMap<_, Blake2_128Concat, T::AccountId, u16, ValueQuery, DefaultDelegateTake<T>>;
993993

994-
/// DMAP ( hot, netuid ) --> take, Returns the hotkey childkey take for a specific subnet
995994
#[pallet::storage]
995+
/// DMAP ( hot, netuid ) --> take, Returns the hotkey childkey take for a specific subnet
996996
pub type ChildkeyTake<T: Config> = StorageDoubleMap<
997997
_,
998998
Blake2_128Concat,
@@ -1003,8 +1003,8 @@ pub mod pallet {
10031003
ValueQuery,
10041004
>;
10051005

1006-
/// DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)
10071006
#[pallet::storage]
1007+
/// DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)
10081008
pub type PendingChildKeys<T: Config> = StorageDoubleMap<
10091009
_,
10101010
Identity,
@@ -1016,8 +1016,8 @@ pub mod pallet {
10161016
DefaultPendingChildkeys<T>,
10171017
>;
10181018

1019-
/// DMAP ( parent, netuid ) --> Vec<(proportion,child)>
10201019
#[pallet::storage]
1020+
/// DMAP ( child, netuid ) --> Vec<(proportion,parent)> Default is empty Vec.
10211021
pub type ChildKeys<T: Config> = StorageDoubleMap<
10221022
_,
10231023
Blake2_128Concat,
@@ -1029,8 +1029,8 @@ pub mod pallet {
10291029
DefaultAccountLinkage<T>,
10301030
>;
10311031

1032-
/// DMAP ( child, netuid ) --> Vec<(proportion,parent)>
10331032
#[pallet::storage]
1033+
/// DMAP ( child, netuid ) --> Vec<(proportion,parent)>
10341034
pub type ParentKeys<T: Config> = StorageDoubleMap<
10351035
_,
10361036
Blake2_128Concat,
@@ -1042,8 +1042,8 @@ pub mod pallet {
10421042
DefaultAccountLinkage<T>,
10431043
>;
10441044

1045-
/// --- DMAP ( netuid, hotkey ) --> u64 | Last total dividend this hotkey got on tempo.
10461045
#[pallet::storage]
1046+
/// --- DMAP ( netuid, hotkey ) --> u64 | Last total dividend this hotkey got on tempo.
10471047
pub type AlphaDividendsPerSubnet<T: Config> = StorageDoubleMap<
10481048
_,
10491049
Identity,
@@ -1055,8 +1055,8 @@ pub mod pallet {
10551055
DefaultZeroAlpha<T>,
10561056
>;
10571057

1058-
/// --- DMAP ( netuid, hotkey ) --> u64 | Last total root dividend paid to this hotkey on this subnet.
10591058
#[pallet::storage]
1059+
/// --- DMAP ( netuid, hotkey ) --> u64 | Last total root dividend paid to this hotkey on this subnet.
10601060
pub type TaoDividendsPerSubnet<T: Config> = StorageDoubleMap<
10611061
_,
10621062
Identity,
@@ -1075,8 +1075,8 @@ pub mod pallet {
10751075
#[pallet::storage]
10761076
pub type BlockEmission<T> = StorageValue<_, u64, ValueQuery, DefaultBlockEmission<T>>;
10771077

1078-
/// --- DMap ( hot, netuid ) --> emission | last hotkey emission on network.
10791078
#[pallet::storage]
1079+
/// --- DMap ( hot, netuid ) --> emission | last hotkey emission on network.
10801080
pub type LastHotkeyEmissionOnNetuid<T: Config> = StorageDoubleMap<
10811081
_,
10821082
Blake2_128Concat,

0 commit comments

Comments
 (0)