Module Daml.Finance.Claims.Util.Lifecycle

Functions

timeEvent

: Time -> Event

Constructor for a time event.

electionEvent

: Time -> Bool -> C -> Event

Constructor for an election event.

lifecycleClaims

: [ContractId I] -> Time -> [TaggedClaim] -> [Event] -> Update ([TaggedClaim], [Pending])

Lifecycle a set of claims at specified events.

netOnTag

: [Pending] -> [Pending]

Net pending payments on the same instrument, which also have the same tag.

lifecycle

: Party -> [ContractId I] -> I -> [Event] -> Update ([TaggedClaim], [Pending])

Lifecycle a claim instrument at specified events.

splitPending

: [Pending] -> ([InstrumentQuantity], [InstrumentQuantity])

Map pending settlements into corresponding instrument quantities and split them into consumed and produced. Pending items with an amount of 0.0 are discarded.