Module Daml.Finance.Util.Disclosure¶
This module contains default implementations for the methods of the Disclosure interface.
These are used across multiple templates in the library.
Functions¶
- setObserversImpl
: (HasCreate t, HasField "observers" t PartiesMap, HasFromInterface t I, HasToInterface t I, HasInterfaceTypeRep i, HasToInterface i I, HasToInterface t i) => t -> Optional (PartiesMap -> ContractId i -> Update (ContractId I)) -> SetObservers -> Update (ContractId I)
Default implementation for
setObservers. TherefUpdateargument is used to update the corresponding contractReferenceand can be set toNoneif your template does not have an accompanyingReferencecontract.
- addObserversImpl
: (HasCreate t, HasField "observers" t PartiesMap, HasFromInterface t I, HasToInterface t I, HasInterfaceTypeRep i, HasToInterface i I, HasToInterface t i) => t -> Optional (PartiesMap -> ContractId i -> Update (ContractId I)) -> AddObservers -> Update (ContractId I)
Default implementation for
addObservers. TherefUpdateargument is used to update the corresponding contractReferenceand can be set toNoneif your template does not have an accompanyingReferencecontract.
- removeObserversImpl
: (HasCreate t, HasField "observers" t PartiesMap, HasFromInterface t I, HasToInterface t I, HasInterfaceTypeRep i, HasToInterface i I, HasToInterface t i) => t -> Optional (PartiesMap -> ContractId i -> Update (ContractId I)) -> ContractId I -> RemoveObservers -> Update (Optional (ContractId I))
Default implementation for
removeObservers. TherefUpdateargument is used to update the corresponding contractReferenceand can be set toNoneif your template does not have an accompanyingReferencecontract.