: (LifecycleEffects -> Bool) -> Trigger ()
A trigger to lifecycle
AssetDeposit
contracts. It listens toLifecycleEffects
contracts that do not consume any assets and eagerly applies them.Inputs:
pred
(LifecycleEffects -> Bool): A predicate to filterLifecycleEffects
contracts that are processed. The trigger cannot handle cases where the asset effects end up in different accounts.
: RelTime -> RelTime -> Trigger ()
A trigger that eagerly processes
Entitlement
contracts once they settle.Inputs:
settlementOffset
(RelTime): Offset to the settlement date when the settlement happens.
heartbeat
(RelTime): The heartbeat of the trigger.
: RelTime -> RelTime -> Trigger ()
A trigger that eagerly processes equity lifecycle event contracts (
EquityStockSplit
) once they are due.Inputs:
settlementOffset
(RelTime): Offset to the ex date when the lifecycle event is processed.
heartbeat
(RelTime): The heartbeat of the trigger.
: RelTime -> RelTime -> (Id -> Text) -> Trigger ()
A trigger that eagerly processes equity lifecycle event contracts (
EquityCashDividend
,EquityStockSplit
) once they are due.Inputs:
settlementOffset
(RelTime): Offset to the ex date when the lifecycle event is processed.
heartbeat
(RelTime): The heartbeat of the trigger.
toEntitlementIdLabel
(Id -> Text): A function to derive the entitlement label from the id of the lifecycle event (e.g. forEquityCashDividend
).
: Trigger ()
A trigger to lifecycle
Dvp
contracts. It listens toLifecycleEffects
contracts and eagerly applies them. If multiple LifecycleEffects contracts are affecting a single dvp, they are applied sequentially.
: RelTime -> RelTime -> Trigger ()
A trigger to settle
Dvp
contracts once all allocatedSettlementInstruction
contracts are available and the current time is after the settlement date.Inputs:
settlementOffset
(RelTime): Offset to the settlement date when the settlement happens.
heartbeat
(RelTime): The heartbeat of the trigger.
template AllocationRule
Rule that helps to allocate
AssetDeposit
toSettlementInstruction
contracts by atomically merging and splitting the deposits.
Field Type Description sig Party The signatory.
Choice Allocate
Allows the
sig
to allocate deposits to settlement instructions. Expects deposits of the same asset in the same account.
Field Type Description instructionCids [ContractId SettlementInstruction] The settlement instructions that are allocated. depositCids [ContractId AssetDeposit] The deposits that are used for allocation. Need to be mergeable. Choice Archive
(no fields)
: Trigger ()
A trigger that eagerly allocates
AssetDeposit
contracts toSettlementInstruction
contracts.