Daml.Finance.Holding.Util

Functions

transferImpl

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

Default implementation of transfer for the Transferable interface.

acquireImpl

: (HasCreate t, HasSignatory t, HasFromInterface t I, HasToInterface t I) => Optional Lock -> (Optional Lock -> t) -> Acquire -> Update (ContractId I)

Default implementation of acquire from the Base interface.

releaseImpl

: (HasCreate t, HasFromInterface t I, HasToInterface t I) => Optional Lock -> (Optional Lock -> t) -> Release -> Update (ContractId I)

Default implementation of release from the Base interface.

splitImpl

: (HasCreate t, HasToInterface t I) => Decimal -> (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) => Decimal -> (t -> Decimal) -> (Decimal -> t) -> Merge -> Update (ContractId I)

Default implementation of merge from the Fungible interface.