- Overview
- Setup
- Tutorials
- How Tos
- Reference
Utility.Registry.App.V0.Service.Holder¶
Deprecated: This module will be deactivated in an upcoming release of this Daml package.
The transfer / lock / unlock actions have been disabled as of version 0.6.0 of this package.
The mint / burn actions have been disabled as of version 0.7.0 of this package.
For mint / burn / transfer operations, use the recommended two-step flows initiated
on the Utility.Registry.App.V0.Service.AllocationFactory.AllocationFactory contract.
Templates¶
template HolderService
Holder service. This contract is deprecated and will be deactivated in an upcoming release of this Daml package. All choices in this contract are proxies to other choices, which should be used instead.
Signatory: provider, holder
Field
Type
Description
operator
Service operator.
provider
Service provider.
holder
Service holder.
Choice Archive
Controller: provider, holder
Returns: ()
(no fields)
Choice HolderService\_AcceptBurnOffer
Accepts an offer to burn a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: BurnOffer_Accept_Result
Field
Type
Description
cid
ContractId BurnOffer
Offer to accept.
payload
BurnOffer_Accept
Choice payload.
Choice HolderService\_AcceptLockOffer
Accepts a lock offer. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: LockOffer_Accept_Result
Field
Type
Description
cid
ContractId LockOffer
Lock offer to accept.
payload
LockOffer_Accept
Choice payload.
Choice HolderService\_AcceptLockRequest
Accepts a lock request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: LockRequest_Accept_Result
Field
Type
Description
cid
ContractId LockRequest
Lock request to accept.
payload
LockRequest_Accept
Choice payload.
Choice HolderService\_AcceptMintOffer
Accepts an offer to mint a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: MintOffer_Accept_Result
Field
Type
Description
cid
ContractId MintOffer
Offer to accept.
payload
MintOffer_Accept
Choice payload.
Choice HolderService\_AcceptTransferOffer
Accepts a transfer offer. This choice is disabled as of version
0.6.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: TransferOffer_Accept_Result
Field
Type
Description
cid
ContractId TransferOffer
Transfer offer to accept.
payload
TransferOffer_Accept
Choice payload.
Choice HolderService\_AcceptTransferRequest
Accepts a transfer request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: TransferRequest_Accept_Result
Field
Type
Description
cid
ContractId TransferRequest
Transfer request to accept.
payload
TransferRequest_Accept
Choice payload.
Choice HolderService\_AcceptUnlockOffer
Accepts an unlock offer. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: UnlockOffer_Accept_Result
Field
Type
Description
cid
ContractId UnlockOffer
Unlock offer to accept.
payload
UnlockOffer_Accept
Choice payload.
Choice HolderService\_AcceptUnlockRequest
Accepts an unlock request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: UnlockRequest_Accept_Result
Field
Type
Description
cid
ContractId UnlockRequest
Unlock request to accept.
payload
UnlockRequest_Accept
Choice payload.
Choice HolderService\_CancelBurnRequest
Cancels a request to burn a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: BurnRequest_Cancel_Result
Field
Type
Description
cid
ContractId BurnRequest
Request to cancel.
payload
BurnRequest_Cancel
Choice payload.
Choice HolderService\_CancelEnforcementServiceRequest
Cancels a request for a enforcement service. This choice is disabled as of version
0.2.0of this package.Controller: holder
Returns: EnforcementServiceRequest_Cancel_Result
Field
Type
Description
cid
ContractId EnforcementServiceRequest
Request to cancel.
payload
EnforcementServiceRequest_Cancel
Choice payload.
Choice HolderService\_CancelForceTransferRequest
Cancels a request to force a transfer. This choice is disabled as of version
0.2.0of this package.Controller: holder
Returns: ForceTransferRequest_Cancel_Result
Field
Type
Description
cid
ContractId ForceTransferRequest
Request to force transfer.
payload
ForceTransferRequest_Cancel
Choice payload.
Choice HolderService\_CancelLockOffer
Cancels a lock offer. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: LockOffer_Cancel_Result
Field
Type
Description
cid
ContractId LockOffer
Lock offer to cancel.
payload
LockOffer_Cancel
Choice payload.
Choice HolderService\_CancelLockRequest
Cancels a lock request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: LockRequest_Cancel_Result
Field
Type
Description
cid
ContractId LockRequest
Lock request to cancel.
payload
LockRequest_Cancel
Choice payload.
Choice HolderService\_CancelMintRequest
Cancels a request to mint a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: MintRequest_Cancel_Result
Field
Type
Description
cid
ContractId MintRequest
Request to cancel.
payload
MintRequest_Cancel
Choice payload.
Choice HolderService\_CancelTransferOffer
Cancels a transfer offer. This choice is disabled as of version
0.6.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: TransferOffer_Cancel_Result
Field
Type
Description
cid
ContractId TransferOffer
Transfer offer to cancel.
payload
TransferOffer_Cancel
Choice payload.
Choice HolderService\_CancelTransferRequest
Cancels a transfer request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: TransferRequest_Cancel_Result
Field
Type
Description
cid
ContractId TransferRequest
Transfer request to cancel.
payload
TransferRequest_Cancel
Choice payload.
Choice HolderService\_CancelUnlockOffer
Cancels an unlock offer. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: UnlockOffer_Cancel_Result
Field
Type
Description
cid
ContractId UnlockOffer
Unlock offer to cancel.
payload
UnlockOffer_Cancel
Choice payload.
Choice HolderService\_CancelUnlockRequest
Cancels an unlock request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: UnlockRequest_Cancel_Result
Field
Type
Description
cid
ContractId UnlockRequest
Unlock request to cancel.
payload
UnlockRequest_Cancel
Choice payload.
Choice HolderService\_CreateAllocation
Creates an allocation. This choice is available starting from version
0.2.0of this package. Deprecated: This choice will be deactivated in an upcoming release of this Daml package. Use theAllocationFactory_Allocatechoice instead.Controller: holder
Returns: AllocationInstructionResult
Field
Type
Description
registrar
Registrar party.
allocationFactoryCid
Allocation factory.
allocation
The target allocation which should be instructed.
inputHoldings
The holdings that SHOULD be used to fund the allocation.
extraArgs
Additional choice arguments.
Choice HolderService\_OfferLock
Creates an offer to lock a holding. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: HolderService\_OfferLock\_Result
Field
Type
Description
registrar
Registrar of the holding.
locker
Locker.
instrumentIdentifier
Instrument to lock.
amount
Amount to lock.
context
Context for the lock.
holdingLabel
Label of the holding to lock.
reference
Reference for the lock.
batch
Batch of the lock.
Choice HolderService\_OfferTransfer
Creates an offer to transfer a holding. This choice is disabled as of version
0.6.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: HolderService\_OfferTransfer\_Result
Field
Type
Description
registrar
Registrar of the holding.
receiver
Holding receiver.
instrumentIdentifier
Instrument to transfer.
amount
Amount to transfer.
senderLabel
Label of the holding to send.
reference
Reference for the transfer.
batch
Batch of the transfer.
Choice HolderService\_OfferUnlock
Creates an offer to unlock a holding. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: HolderService\_OfferUnlock\_Result
Field
Type
Description
registrar
Registrar of the holding.
locker
Locker.
lockContext
Context for the lock to unlock.
instrumentIdentifier
Instrument to unlock.
amount
Amount to unlock.
holdingLabel
Label of the holding to unlock.
reference
Reference for the unlock.
batch
Batch of the unlock.
Choice HolderService\_RejectAllocationRequest
Rejects an allocation request. This choice is available starting from version
0.2.0of this package. Deprecated: This choice will be deactivated in an upcoming release of this Daml package. Use theAllocationRequest_Rejectchoice instead.Controller: holder
Returns: ChoiceExecutionMetadata
Field
Type
Description
allocationRequestCid
Allocation request to reject.
Choice HolderService\_RejectBurnOffer
Rejects an offer to burn a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: BurnOffer_Reject_Result
Field
Type
Description
cid
ContractId BurnOffer
Offer to reject.
payload
BurnOffer_Reject
Choice payload.
Choice HolderService\_RejectLockOffer
Rejects a lock offer. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: LockOffer_Reject_Result
Field
Type
Description
cid
ContractId LockOffer
Lock offer to reject.
payload
LockOffer_Reject
Choice payload.
Choice HolderService\_RejectLockRequest
Rejects a lock request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: LockRequest_Reject_Result
Field
Type
Description
cid
ContractId LockRequest
Lock request to reject.
payload
LockRequest_Reject
Choice payload.
Choice HolderService\_RejectMintOffer
Rejects an offer to mint a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: MintOffer_Reject_Result
Field
Type
Description
cid
ContractId MintOffer
Offer to reject.
payload
MintOffer_Reject
Choice payload.
Choice HolderService\_RejectTransferOffer
Rejects a transfer offer. This choice is disabled as of version
0.6.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: TransferOffer_Reject_Result
Field
Type
Description
cid
ContractId TransferOffer
Transfer request to reject.
payload
TransferOffer_Reject
Choice payload.
Choice HolderService\_RejectTransferRequest
Rejects a transfer request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: TransferRequest_Reject_Result
Field
Type
Description
cid
ContractId TransferRequest
Transfer request to reject.
payload
TransferRequest_Reject
Choice payload.
Choice HolderService\_RejectUnlockOffer
Rejects an unlock offer. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: UnlockOffer_Reject_Result
Field
Type
Description
cid
ContractId UnlockOffer
Unlock offer to reject.
payload
UnlockOffer_Reject
Choice payload.
Choice HolderService\_RejectUnlockRequest
Rejects an unlock request. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: UnlockRequest_Reject_Result
Field
Type
Description
cid
ContractId UnlockRequest
Unlock request to reject.
payload
UnlockRequest_Reject
Choice payload.
Choice HolderService\_RequestBurn
Creates a request to burn a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: HolderService\_RequestBurn\_Result
Field
Type
Description
registrar
Instrument registrar.
instrumentIdentifier
Instrument to burn.
amount
Amount to burn.
holdingLabel
Label of the holding.
reference
Reference for the burn.
batch
Batch of the burn.
Choice HolderService\_RequestEnforcementService
Creates a request to enter into an
EnforcementServicecontract with a registrar. This grants the registrar party authority to force asset transfers under certain scenarios. This choice is disabled as of version0.2.0of this package.Controller: holder
Returns: HolderService_RequestEnforcementService_Result
Field
Type
Description
registrar
Registrar party.
Choice HolderService\_RequestForceTransfer
Create a request to force-transfer a holding. This choice is disabled as of version
0.2.0of this package.Controller: holder
Returns: HolderService_RequestForceTransfer_Result
Field
Type
Description
requestorRationale
Requestor’s rationale for accepting the request.
registrar
Instrument registrar.
instrumentIdentifier
Instrument to force transfer.
amount
Amount to force transfer.
reference
Reference for the force transfer.
batch
Batch of the force transfer.
sender
Sender of the holding.
senderLabel
Label of the holding of the sender.
receiver
Receiver of the holding.
receiverLabel
Label of the holding of the receiver.
Choice HolderService\_RequestLock
Creates a request to lock a holding. This choice is disabled as of version
0.6.0of this package.Controller: (DA.Internal.Record.getField @”holder” this)
Returns: HolderService\_RequestLock\_Result
Field
Type
Description
registrar
Registrar of the holding.
holder
Holder of the holding.
instrumentIdentifier
Instrument to lock.
amount
Amount to lock.
context
Context for the lock.
reference
Reference for the lock.
batch
Batch of the lock.
Choice HolderService\_RequestMint
Creates a request to mint a holding. This choice is disabled as of version
0.7.0of this package. Use the recommended two-step flow initiated via theUtility.Registry.App.V0.Service.AllocationFactory.AllocationFactorycontract instead.Controller: holder
Returns: HolderService\_RequestMint\_Result
Field
Type
Description
registrar
Instrument registrar.
instrumentIdentifier
Instrument to mint.
amount
Amount to mint.
reference
Reference for the mint.
batch
Batch of the mint.
holdingLabel
Label of the holding.
Choice HolderService\_RequestTransfer
Creates a request to transfer a holding. This choice is disabled as of version
0.6.0of this package.Controller: holder
Returns: HolderService\_RequestTransfer\_Result
Field
Type
Description
registrar
Registrar of the holding.
sender
Holding sender.
instrumentIdentifier
Instrument to transfer.
amount
Amount to transfer.
receiverLabel
Label of the holding to receive.
reference
Reference for the transfer.
batch
Batch of the transfer.
Choice HolderService\_RequestUnlock
Creates a request to unlock a holding. This choice is disabled as of version
0.6.0of this package.Controller: (DA.Internal.Record.getField @”holder” this)
Returns: HolderService\_RequestUnlock\_Result
Field
Type
Description
registrar
Registrar of the holding.
holder
Holder of the holding to unlock.
lockContext
Context for the lock to unlock.
instrumentIdentifier
Instrument to unlock.
amount
Amount to unlock.
holdingLabel
Label of the holding to unlock.
reference
Reference for the unlock.
batch
Batch of the unlock.
Choice HolderService\_Terminate
Terminates the service. Deprecated: This choice will be deactivated in an upcoming release of this Daml package.
Controller: provider
Returns: HolderService\_Terminate\_Result
(no fields)
template HolderServiceRequest
A holder service request. Deprecated: This template will be deactivated in an upcoming release of this Daml package.
Signatory: holder
Field
Type
Description
operator
Service operator.
provider
Service provider.
holder
Service holder.
Choice Archive
Controller: holder
Returns: ()
(no fields)
Choice HolderServiceRequest\_Accept
Accept request. Deprecated: This choice will be deactivated in an upcoming release of this Daml package.
Controller: provider
Returns: HolderServiceRequest\_Accept\_Result
Field
Type
Description
providerConfigurationCid
Provider configuration.
credentialCids
Holder credentials.
Choice HolderServiceRequest\_Cancel
Cancel request. Deprecated: This choice will be deactivated in an upcoming release of this Daml package.
Controller: holder
Returns: HolderServiceRequest\_Cancel\_Result
(no fields)
Choice HolderServiceRequest\_Reject
Reject request. Deprecated: This choice will be deactivated in an upcoming release of this Daml package.
Controller: provider
Returns: HolderServiceRequest\_Reject\_Result
Field
Type
Description
reason
Rejection reason.
template RejectedHolderServiceRequest
A rejected holder service request. Deprecated: This template will be deactivated in an upcoming release of this Daml package.
Signatory: (DA.Internal.Record.getField @”provider” request), (DA.Internal.Record.getField @”holder” request)
Field
Type
Description
request
The rejected request payload.
reason
The rejection reason.
Choice Archive
Controller: (DA.Internal.Record.getField @”provider” request), (DA.Internal.Record.getField @”holder” request)
Returns: ()
(no fields)
Choice RejectedHolderServiceRequest\_Delete
Deletes a rejected holder service request. Deprecated: This choice will be deactivated in an upcoming release of this Daml package.
Controller: (DA.Internal.Record.getField @”provider” request)
Returns: RejectedHolderServiceRequest\_Delete\_Result
(no fields)
Data Types¶
data HolderServiceRequest\_Accept\_Result
Result of
HolderServiceRequest_Accept.
HolderServiceRequest\_Accept\_Result
Field
Type
Description
holderServiceCid
Holder service contract.
data HolderServiceRequest\_Cancel\_Result
Result of
HolderServiceRequest_Cancel.
HolderServiceRequest\_Cancel\_Result
(no fields)
data HolderServiceRequest\_Reject\_Result
Result of
HolderServiceRequest_Reject.
HolderServiceRequest\_Reject\_Result
Field
Type
Description
rejectedHolderServiceRequestCid
Rejected holder service request contract.
data HolderService\_AcceptTransferOffer\_Result
Result of
HolderService_AcceptTransferOfferr.
HolderService\_AcceptTransferOffer\_Result
Field
Type
Description
acceptedTransferCid
ContractId AcceptedTransfer
Accepted transfer.
data HolderService\_OfferLock\_Result
Result of
HolderService_OfferLock.
HolderService\_OfferLock\_Result
Field
Type
Description
lockOfferCid
ContractId LockOffer
Lock offer.
data HolderService\_OfferTransfer\_Result
Result of
HolderService_OfferTransfer.
HolderService\_OfferTransfer\_Result
Field
Type
Description
transferOfferCid
ContractId TransferOffer
Transfer offer.
data HolderService\_OfferUnlock\_Result
Result of
HolderService_OfferUnlock.
HolderService\_OfferUnlock\_Result
Field
Type
Description
unlockOfferCid
ContractId UnlockOffer
Unlock offer.
data HolderService\_RequestBurn\_Result
Result of
HolderService_RequestBurn.
HolderService\_RequestBurn\_Result
Field
Type
Description
burnRequestCid
ContractId BurnRequest
Burn request.
data HolderService\_RequestLock\_Result
Result of
HolderService_RequestLock.
HolderService\_RequestLock\_Result
Field
Type
Description
lockRequestCid
ContractId LockRequest
Lock request.
data HolderService\_RequestMint\_Result
Result of
HolderService_RequestMint.
HolderService\_RequestMint\_Result
Field
Type
Description
mintRequestCid
ContractId MintRequest
Mint request.
data HolderService\_RequestTransfer\_Result
Result of
HolderService_RequestTransfer.
HolderService\_RequestTransfer\_Result
Field
Type
Description
transferRequestCid
ContractId TransferRequest
Transfer request.
data HolderService\_RequestUnlock\_Result
Result of
HolderService_RequestUnlock.
HolderService\_RequestUnlock\_Result
Field
Type
Description
unlockRequestCid
ContractId UnlockRequest
Unlock request.
data HolderService\_Terminate\_Result
Result of
HolderService_Terminate.
HolderService\_Terminate\_Result
(no fields)
data RejectedHolderServiceRequest\_Delete\_Result
Result of
RejectedHolderServiceRequest_Delete.
RejectedHolderServiceRequest\_Delete\_Result
(no fields)