pub struct SequenceClaims { /* private fields */ }Expand description
Primitive participant-lifecycle claims from which the sequence reserve is derived.
E, L_other, and all three products are deliberately absent from this
input. They are derived by the protocol so a caller cannot provide a
self-inconsistent canonical budget.
Implementations§
Source§impl SequenceClaims
impl SequenceClaims
Sourcepub const fn new(
live_members: u64,
binding_terminals: u64,
markers: u64,
recovery: RecoverySequenceReserve,
) -> Self
pub const fn new( live_members: u64, binding_terminals: u64, markers: u64, recovery: RecoverySequenceReserve, ) -> Self
Creates the primitive L, T, M, and coupled recovery claim state.
Sourcepub const fn live_members(self) -> u64
pub const fn live_members(self) -> u64
Returns live members L; flat exit claims E are exactly this value.
Sourcepub const fn binding_terminals(self) -> u64
pub const fn binding_terminals(self) -> u64
Returns binding-terminal claims T.
Sourcepub const fn recovery(self) -> RecoverySequenceReserve
pub const fn recovery(self) -> RecoverySequenceReserve
Returns the coupled recovery sequence reserve.
Sourcepub fn budget(self, high_watermark: u64) -> SequenceBudget
pub fn budget(self, high_watermark: u64) -> SequenceBudget
Derives the canonical ten-field budget at high_watermark.
Sourcepub fn checked_required_reserve(self) -> Option<u128>
pub fn checked_required_reserve(self) -> Option<u128>
Computes the exact reserve in the frozen canonical term order.
The order is E, T, M, RS, RT, L*T, L*RT, then
L_other*E, with every scalar widened before addition. None means the
sum itself exceeds u128; each canonical product remains representable.
Trait Implementations§
Source§impl Clone for SequenceClaims
impl Clone for SequenceClaims
Source§fn clone(&self) -> SequenceClaims
fn clone(&self) -> SequenceClaims
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more