- Overview
- Setup
- Tutorials
- How Tos
- Reference
- DAR Versions
- API Reference
- Commercials API
- Credential API
- Registry API
- Utility.Registry
- Utility.Registry.V0.Configuration.AppReward
- Utility.Registry.V0.Configuration.Instrument
- Utility.Registry.V0.Holding.Allocation
- Utility.Registry.V0.Holding.Burn
- Utility.Registry.V0.Holding.Lock
- Utility.Registry.V0.Holding.Mint
- Utility.Registry.V0.Holding.Transfer
- Utility.Registry.V0.Holding.Unlock
- Utility.Registry.V0.Rule.Transfer
- Utility.Registry.V0.Types
- Utility.Registry.V0.Util
- Utility.Registry.App
- Utility.Holding
- Utility.Registry
- Settlement Utility API
- Collateral Utility API
- Operator Backend API
Utility.Settlement.App.V1.Model.Dvp¶
A delivery versus payment (Dvp) agreement between two counterparties.
Templates¶
template Dvp
A delivery versus payment (Dvp) agreement between two counterparties.
Signatory: operator, buyer, seller
Field
Type
Description
operator
The operator party of the settlement App.
buyer
The buyer party.
seller
The seller party.
terms
Terms for the Dvp.
Choice Archive
Controller: operator, buyer, seller
Returns: ()
(no fields)
Choice Dvp_Cancel
Cancel the Dvp and withdraw its associated allocations. This choice withdraws the allocation request (i.e., this contract), consuming it. The provided allocations are also withdrawn as part of the cancellation process.
Controller: operator
Returns: Dvp_Cancel_Result
Field
Type
Description
allocationCids
The allocations to withdraw.
extraArgss
The extra arguments needed to withdraw each allocation.
payload
The payload for withdrawing the Allocation Request (i.e., this contract).
Choice Dvp_Settle
Settle the Dvp.
Controller: operator
Returns: Dvp_Settle_Result
Field
Type
Description
allocationCids
The allocations.
extraArgss
The extra arguments needed to execute the transfer for each allocation.
interface instance AllocationRequest for Dvp
template DvpProposal
Proposal to enter into a Dvp.
Signatory: operator, proposer
Field
Type
Description
operator
The operator party of the settlement App.
proposer
The proposing party.
proposerIsBuyer
Whether the proposer is the buyer.
counterparty
The counterparty to the Dvp.
terms
Settlement terms.
Choice Archive
Controller: operator, proposer
Returns: ()
(no fields)
Choice DvpProposal_Accept
Accept the Dvp proposal.
Controller: counterparty
Returns: DvpProposal_Accept_Result
(no fields)
Choice DvpProposal_Cancel
Cancel the Dvp proposal.
Controller: proposer
Returns: DvpProposal_Cancel_Result
(no fields)
Choice DvpProposal_Reject
Reject the Dvp proposal.
Controller: counterparty
Returns: DvpProposal_Reject_Result
Field
Type
Description
reason
Rejection reason.
template RejectedDvp
template RejectedDvpProposal
Rejected Dvp proposal.
Signatory: (DA.Internal.Record.getField @"operator" dvpProposal)
Field
Type
Description
dvpProposal
The rejected Dvp proposal.
reason
The reason for the rejection.
Choice Archive
Controller: (DA.Internal.Record.getField @"operator" dvpProposal)
Returns: ()
(no fields)
template SettledDvp
Settled Dvp.
Signatory: (DA.Internal.Record.getField @"operator" dvp)
Field
Type
Description
dvp
The settled Dvp.
Choice Archive
Controller: (DA.Internal.Record.getField @"operator" dvp)
Returns: ()
(no fields)
template WithdrawnDvp
Data Types¶
data DvpProposal_Accept_Result
Result of
DvpProposal_Accept
.
Field
Type
Description
dvpCid
The created Dvp contract.
data DvpProposal_Cancel_Result
data DvpProposal_Reject_Result
Result of
DvpProposal_Reject
.
Field
Type
Description
rejectedDvpProposalCid
The rejected Dvp proposal. NOTE: This is an optional field to anticipate future changes where the rejection might not create a contract. This allows for backward compatibility.
data Dvp_Cancel_Result
data Dvp_Settle_Result
Result of
Dvp_Settle_Result
.
Field
Type
Description
settledDvpCid
The contract id of the settled Dvp. NOTE: This is an optional field to anticipate future changes where the settlement might not create a contract. This allows for backward compatibility.
data Terms
Terms for a delivery versus payment (Dvp).
Field
Type
Description
id
Identifier of the Dvp.
deliveries
Quantities to deliver.
payments
Quantities to pay.
createdAt
The creation time of the Dvp (proposal).
allocateBefore
The time until which all allocations should be created.
settleBefore
The time before which the trade should be settled.