PolicyEvaluationContext

data class PolicyEvaluationContext(val now: Instant, val windowStates: List<SpendPolicy.WindowState>)

Lightweight projection of treasury ledger state used by policy evaluation. Returned by TreasuryLedger.windowState and consumed by the treasury when deciding whether a Cap.PerWindow is exhausted.

Constructors

Link copied to clipboard
constructor(now: Instant, windowStates: List<SpendPolicy.WindowState>)

Properties

Link copied to clipboard
Link copied to clipboard