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
. TherefUpdate
argument is used to update the corresponding contractReference
and can be set toNone
if your template does not have an accompanyingReference
contract.
- 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
. TherefUpdate
argument is used to update the corresponding contractReference
and can be set toNone
if your template does not have an accompanyingReference
contract.
- 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
. TherefUpdate
argument is used to update the corresponding contractReference
and can be set toNone
if your template does not have an accompanyingReference
contract.