Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / SlidingWindowState

Interface: SlidingWindowState

Defined in: packages/core/dist/index.d.ts

A sliding window as a ring of sub-window counters (section 4.2, 1).

Properties

PropertyTypeDescriptionDefined in
headSlotnumberThe epoch-slot index the LAST slot corresponds to.packages/core/dist/index.d.ts
slotsnumber[]Consumption per slot, oldest first after normalization.packages/core/dist/index.d.ts