Expand description
Pure bounded-retention and floor-transition algebra.
Structs§
- Floor
Computation - Reproducible outputs of the participant physical-floor rule.
- Mandatory
Capacity - Results of the mandatory-class debt and absolute-fit formulas.
- Recovery
Transfer - Exact post-transfer values for a recovery transaction of charge
r. - Recovery
Transfer Error - Invalid or unrepresentable recovery-charge transfer.
- Resource
Vector - One entry/byte resource vector before arithmetic widening.
- Wide
Resource Vector - One entry/byte resource vector after widening to the protocol arithmetic domain.
Enums§
- Admissible
Floor - What a binding-fate floor measured earlier is allowed to install NOW.
- Baseline
Error - Invalid inputs to the retained-baseline formula.
- Resource
Dimension - Resource dimension, in the contract’s entry-before-byte precedence.
Functions§
- admissible_
installed_ floor - Decides what an earlier-measured binding-fate floor may install against the frontier as it stands now.
- floor_
transition - Computes the participant physical-floor rule.
- mandatory_
capacity - Computes the mandatory-class debt and its two required checks.
- marker_
clamped_ floor - Lowers a computed floor so it cannot cross the lowest retained marker.
- no_
edge_ legal - Checks the only legal no-edge state: zero debt plus full-K fit.
- recovery_
transfer - Transfers an exact recovery record charge from
K_remainingintoB. - retained_
baseline - Computes
B = S + ((I - C) × marker_max)componentwise. - zero_
debt_ admission - Checks the zero-debt ordinary-admission invariant
B + Q + K <= cap. - zero_
debt_ capacity_ failure - Returns the first failed component of
B + Q + K <= cap.