Daml.Finance.Interface.Claims.Dynamic.Instrument¶
Interfaces¶
interface Instrument
Interface implemented by instruments that create Contingent Claims trees on-the-fly (ie., 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.
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. 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)
Typeclasses¶
class Implementation t => HasImplementation t where
Data Types¶
- type I
-
Type synonym for
Instrument
.
- type Implementation t
= HasToInterface t I
Type constraint for requiring templates to implement
Instrument
.
- type V
= View
Type synonym for
View
.instance HasFromAnyView Instrument V
data View