Skip to content

Commit 91b86c3

Browse files
committed
make fields pub for testing
1 parent 280e3e8 commit 91b86c3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pallets/subtensor/src/rpc_info/delegate_info.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ extern crate alloc;
77
use alloc::collections::BTreeMap;
88
use codec::Compact;
99

10-
#[freeze_struct("f729f2481d94a1de")]
10+
#[freeze_struct("7cd21f57627d2d0d")]
1111
#[derive(Decode, Encode, PartialEq, Eq, Clone, Debug, TypeInfo)]
1212
pub struct DelegateInfo<AccountId: TypeInfo + Encode + Decode> {
13-
delegate_ss58: AccountId,
14-
take: Compact<u16>,
15-
nominators: Vec<(AccountId, Vec<(Compact<u16>, Compact<u64>)>)>, // map of nominator_ss58 to netuid and stake amount
16-
owner_ss58: AccountId,
17-
registrations: Vec<Compact<u16>>, // Vec of netuid this delegate is registered on
18-
validator_permits: Vec<Compact<u16>>, // Vec of netuid this delegate has validator permit on
19-
return_per_1000: Compact<u64>, // Delegators current daily return per 1000 TAO staked minus take fee
20-
total_daily_return: Compact<u64>, // Delegators current daily return
13+
pub delegate_ss58: AccountId,
14+
pub take: Compact<u16>,
15+
pub nominators: Vec<(AccountId, Vec<(Compact<u16>, Compact<u64>)>)>, // map of nominator_ss58 to netuid and stake amount
16+
pub owner_ss58: AccountId,
17+
pub registrations: Vec<Compact<u16>>, // Vec of netuid this delegate is registered on
18+
pub validator_permits: Vec<Compact<u16>>, // Vec of netuid this delegate has validator permit on
19+
pub return_per_1000: Compact<u64>, // Delegators current daily return per 1000 TAO staked minus take fee
20+
pub total_daily_return: Compact<u64>, // Delegators current daily return
2121
}
2222

2323
impl<T: Config> Pallet<T> {

0 commit comments

Comments
 (0)