of

fun of(records: Map<AttachmentId, Set<AttachmentRecord>> = emptyMap(), minted: Map<MintId, MintRecord> = emptyMap(), issued: Map<AttachmentId, GCounter> = emptyMap(), returned: Map<AttachmentId, GCounter> = emptyMap(), leafSpent: Map<AttachmentId, GCounter> = emptyMap(), rollupSpent: Map<AttachmentId, GCounter> = emptyMap(), transfers: Map<PathKey, Map<ReplicaId, GCounter>> = emptyMap(), lifecycle: Map<AttachmentId, Lifecycle> = emptyMap(), issuedRelocIn: Map<AttachmentId, GCounter> = emptyMap(), leafRelocIn: Map<AttachmentId, GCounter> = emptyMap(), leafRelocOut: Map<AttachmentId, GCounter> = emptyMap(), rollupRelocIn: Map<AttachmentId, GCounter> = emptyMap(), rollupRelocOut: Map<AttachmentId, GCounter> = emptyMap(), gauges: Map<AttachmentId, Gauge> = emptyMap(), transferRelocIn: Map<PathKey, Map<ReplicaId, GCounter>> = emptyMap(), transferRelocOut: Map<PathKey, Map<ReplicaId, GCounter>> = emptyMap(), @IntroducedAt(version = "0.7.5") forgottenOutflow: Map<GroupId, Map<ReplicaId, Long>> = emptyMap(), @IntroducedAt(version = "0.7.5") forgottenLeafSpend: Map<ReplicaId, Long> = emptyMap(), @IntroducedAt(version = "0.7.5") forgottenGenerationFloor: Long = -1L, @IntroducedAt(version = "0.7.5") origins: Map<GroupId, Int128> = emptyMap()): EntitlementLedger

Directly assemble a ledger from its components. internal — the public way to build a non-trivial ledger is via the mutators (a later phase); this exists so this phase's lattice-law tests can construct arbitrary states of the still-inert lattice.

The three forgotten… parameters assemble the seventeenth component, the fold of the edges a ledger has forgotten (ForgottenEdges): forgottenOutflow per parent and replica, forgottenLeafSpend per replica, and forgottenGenerationFloor, -1 for none. A ledger with no fold cannot take one: its EntitlementLedger.piece throws on any operand that carries a fold, and a ledger with a fold takes only an operand holding the same fold or none. So the lattice-law generators leave them at their defaults. A negative fold cannot be built: a negative outflow or leaf spend, or a floor below -1, throws IllegalArgumentException.