[−][src]Trait sunshine_util::traits::ReservableProfile
Reserve shares for an individual AccountId
Associated Types
type ReservationContext: GetMagnitude<Self::Shares>
Required methods
fn reserve(
organization: u32,
share_id: u32,
who: &AccountId,
amount: Option<Self::ReservationContext>
) -> Result<Self::ReservationContext, DispatchError>
organization: u32,
share_id: u32,
who: &AccountId,
amount: Option<Self::ReservationContext>
) -> Result<Self::ReservationContext, DispatchError>
Reserves amount iff certain conditions are met wrt existing profile and how it will change
fn unreserve(
organization: u32,
share_id: u32,
who: &AccountId,
amount: Option<Self::ReservationContext>
) -> Result<Self::ReservationContext, DispatchError>
organization: u32,
share_id: u32,
who: &AccountId,
amount: Option<Self::ReservationContext>
) -> Result<Self::ReservationContext, DispatchError>
Unreserves amount iff certain conditions are met wrt existing profile and how it will change