Daml.Finance.Holding¶
This package contains the implementation of holdings, including utility functions. It has the following modules:
- Fungible: Implementation of a holding which is fungible only, i.e., include split and merge functionality
- Transferable: Implementation of a holding which is transferable only
- TransferableFungible: Implementation of a holding which is both transferable and fungible
- BaseHolding: Implementation of a holding which is neither transferable nor fungible
- Util: Utility functions related to holdings, e.g., to transfer or split/merge a holding
The Asset Model page explains the relationship between instruments, holdings, and accounts. Also, check out the Transfer tutorial for a description of how to create a holding on an instrument and transfer it between accounts.