Daml.Finance.Interface.Instrument.Swap.Asset.Factory¶
Interfaces¶
interface Factory
Factory interface to instantiate asset swaps.
viewtype V
Choice Archive
Controller: Signatories of implementing template
Returns: ()
(no fields)
Choice Create
Create a new instrument.
Controller: (DA.Internal.Record.getField @"depository" (DA.Internal.Record.getField @"instrument" asset)), (DA.Internal.Record.getField @"issuer" (DA.Internal.Record.getField @"instrument" asset))
Returns: ContractId I
Field Type Description asset Asset Attributes to create an asset swap. observers PartiesMap The instrument’s observers. Choice Remove
Archive an instrument.
Controller: (DA.Internal.Record.getField @"depository" instrument), (DA.Internal.Record.getField @"issuer" instrument)
Returns: ()
Field Type Description instrument InstrumentKey The instrument’s key. Method asDisclosure : I
Conversion to
Disclosure
interface.Method create’ : Create -> Update (ContractId I)
Implementation of
Create
choice.Method remove : Remove -> Update ()
Implementation of
Remove
choice.
Typeclasses¶
class Implementation t => HasImplementation t where
Data Types¶
- type Implementation t
= (HasToInterface t Factory, Implementation t)
Type constraint for requiring templates to implement
Factory
along withDisclosure
.
- type V
= View
Type synonym for
View
.instance HasFromAnyView Factory V
data View