[][src]Trait sunshine_org::Trait

pub trait Trait: Trait {
    type Event: From<Event<Self>> + Into<Self::Event>;
    type IpfsReference: Parameter + Member + Default;
    type OrgId: Parameter + Member + AtLeast32Bit + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + PartialOrd + PartialEq + Zero;
    type Shares: Parameter + Member + AtLeast32Bit + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + PartialOrd + CheckedSub + Zero + AtLeast32BitUnsigned;
    type ReservationLimit: Get<u32>;
}

Associated Types

type Event: From<Event<Self>> + Into<Self::Event>

Overarching event type

type IpfsReference: Parameter + Member + Default

Cid type

type OrgId: Parameter + Member + AtLeast32Bit + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + PartialOrd + PartialEq + Zero

Organizational identifier

type Shares: Parameter + Member + AtLeast32Bit + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + PartialOrd + CheckedSub + Zero + AtLeast32BitUnsigned

Metric for ownership in the context of OrgId

type ReservationLimit: Get<u32>

The hard limit on the number of times shares can be reserved

  • why? we need to track how much the group check is called and limit it somehow and this is the best I've come up with for now...TODO: make issue and get feedback
Loading content...

Implementors

Loading content...