Daml.Finance.Interface.Holding.Transferable¶
Interfaces¶
interface Transferable
An interface respresenting a contract where ownership can be transferred to other parties.
viewtype View
Choice Archive
Controller: Signatories of implementing template
Returns: ()
(no fields)
Choice GetView
Retrieves the interface view.
Controller: viewer
Returns: View
Field Type Description viewer Party The party retrieving the view. Choice Transfer
Transfer a contract to a new owner.
Controller: actors, getLockers this
Returns: ContractId Transferable
Field Type Description actors Parties Parties authorizing the transfer. newOwnerAccount AccountKey The new owner’s account. Method transfer : ContractId I -> Transfer -> Update (ContractId Transferable)
Implementation of the
Transfer
choice.
Data Types¶
- type I
-
Type synonym for
Transferable
.instance HasMethod Transferable "transfer" (ContractId I -> Transfer -> Update (ContractId Transferable))
data View
Functions¶
- transfer
- : Transferable -> ContractId I -> Transfer -> Update (ContractId Transferable)