Skip to content

Commit

Permalink
feat: add some extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
juangirini committed Feb 20, 2025
1 parent a93a371 commit 906dc67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pallets/idn-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,13 @@ pub type SubscriptionOf<T> =
#[derive(Encode, Decode, Clone, TypeInfo, MaxEncodedLen, Debug)]
pub struct Subscription<AccountId, BlockNumber, Metadata> {
details: SubscriptionDetails<AccountId, BlockNumber, Metadata>,
// Number of random values left to distribute
credits_left: BlockNumber,
state: SubscriptionState,
}

// TODO: details should be immutable, they are what make the subscription unique
// https://github.com/ideal-lab5/idn-sdk/issues/114
#[derive(Encode, Decode, Clone, TypeInfo, MaxEncodedLen, Debug)]
pub struct SubscriptionDetails<AccountId, BlockNumber, Metadata> {
subscriber: AccountId,
Expand Down Expand Up @@ -334,7 +337,7 @@ pub mod pallet {
})
}

/// Updates an active subscription
/// Updates a subscription
#[pallet::call_index(3)]
#[pallet::weight(T::WeightInfo::update_subscription())]
pub fn update_subscription(
Expand Down

0 comments on commit 906dc67

Please sign in to comment.