ExGAM.GovernedAct.Transition.Authority (ExGAM v0.1.0)

Copy Markdown View Source

Transitions for Mandate authority and its conserved Meter allocation.

Issuance validates the authorizing source and delegates physical Meter balances. Restriction creates a forward-only successor without mutating its predecessor. Revocation records an explicit projection value; ancestry and cancellation consumers therefore share one typed representation.

Summary

Functions

Replays root issuance only under Genesis, or subtractive runtime authority changes under their causal Acts.

Functions

apply(projection, event, arg3)

@spec apply(
  ExGAM.GovernedAct.State.t(),
  ExGAM.Domain.Event.t(),
  non_neg_integer() | nil
) ::
  {:ok, ExGAM.GovernedAct.State.t()} | {:error, term()}

Replays root issuance only under Genesis, or subtractive runtime authority changes under their causal Acts.