Daml.Finance.Interface.Claims.Dynamic.Instrument¶
Interfaces¶
interface Instrument
Interface implemented by instruments that create Contingent Claims trees on-the-fly (i.e., the tree is not stored on disk as part of a contract, but created and processed in-memory).
viewtype V
Choice Archive
Controller: Signatories of implementing template
Returns: ()
(no fields)
Choice CreateNewVersion
Create a new version of an instrument, using a new lastEventTimestamp and a list of previous elections (if applicable).
Controller: (DA.Internal.Record.getField @"lifecycler" (view this))
Returns: ContractId Instrument
Field Type Description version Text The new version of the instrument. lastEventTimestamp Time The new lastEventTimestamp of the instrument. prevElections [EventData] A list of previous elections that have been lifecycled on this instrument so far. Choice GetView
Retrieves the interface view.
Controller: viewer
Returns: View
Field Type Description viewer Party The party retrieving the view. Method createNewVersion : CreateNewVersion -> Update (ContractId Instrument)
Data Types¶
- type I
-
Type synonym for
Instrument
.
- type V
= View
Type synonym for
View
.instance HasFromAnyView Instrument V
data View
View for
Instrument
.
Field Type Description lifecycler Party Party performing the lifecycling. lastEventTimestamp Time (Market) time of the last recorded lifecycle event. If no event has occurred yet, the time of creation should be used. prevElections [EventData] A list of previous elections that have been lifecycled on this instrument so far.