Daml.Finance.Holding.Util

Functions

transferImpl

: I -> ContractId I -> Transfer -> Update (ContractId I)

Default implementation of transfer for the Transferable interface.

splitImpl

: (HasCreate t, HasToInterface t I) => I -> (Decimal -> t) -> Split -> Update SplitResult

Default implementation of split from the Fungible interface.

mergeImpl

: (HasCreate t, HasArchive t, HasSignatory t, HasFromInterface t I, HasToInterface t I) => I -> (t -> Decimal) -> (Decimal -> t) -> Merge -> Update (ContractId I)

Default implementation of merge from the Fungible interface.