- Overview
- Setup
- Tutorials
- How Tos
- Reference
Utility.Registry.App.V0.Model.Burn¶
Templates¶
template BurnOffer
An offer to burn a holding
Signatory: provider, (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn))
Field
Type
Description
operator
Utility operator.
provider
Utility provider.
burn
Burn offer payload.
Choice Archive
Controller: provider, (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn))
Returns: ()
(no fields)
Choice BurnOffer\_Accept
Accept and execute a burn offer.
Controller: (DA.Internal.Record.getField @”holder” burn)
Returns: BurnOffer\_Accept\_Result
Field
Type
Description
holdingCids
Holdings to use for the burn.
extraArgs
Additional context required to exercise the choice.
extraArgs.context(provided by the backend) includes: - TheInstrumentConfigurationof the holding being burned - TheCredentials of the holder that satisfy the issuer requirements -AppRewardConfigurationof the provider (if any) -FeaturedAppRightof the provider (if featured)extraArgs.metadatais reserved for extensibility.
Choice BurnOffer\_Cancel
Cancels a burn offer.
Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn))
Returns: BurnOffer\_Cancel\_Result
(no fields)
Choice BurnOffer\_Reject
Rejects a burn offer.
Controller: (DA.Internal.Record.getField @”holder” burn)
Returns: BurnOffer\_Reject\_Result
Field
Type
Description
reason
Reason for rejection.
extraArgs
Additional context required to exercise the choice. Introduced as part of version
0.5.0for extensibility.
template BurnRequest
A request to burn a holding
Signatory: provider, (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn)), (DA.Internal.Record.getField @”holder” burn)
Field
Type
Description
operator
Utility operator.
provider
Utility provider.
burn
Burn request payload.
lockedHoldingCid
The holding locked for the burn.
Choice Archive
Controller: provider, (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn)), (DA.Internal.Record.getField @”holder” burn)
Returns: ()
(no fields)
Choice BurnRequest\_Accept
Accept and execute a burn request.
Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn))
Returns: BurnRequest\_Accept\_Result
Field
Type
Description
extraArgs
Additional context required to exercise the choice.
extraArgs.context(provided by the backend) includes: - TheInstrumentConfigurationof the holding being burned - TheCredentials of the holder that satisfy the issuer requirements -AppRewardConfigurationof the provider (if any) -FeaturedAppRightof the provider (if featured)extraArgs.metadatais reserved for extensibility.
Choice BurnRequest\_Cancel
Cancels a burn request.
Controller: (DA.Internal.Record.getField @”holder” burn)
Returns: BurnRequest\_Cancel\_Result
(no fields)
Choice BurnRequest\_Reject
Rejects a burn request.
Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn))
Returns: BurnRequest\_Reject\_Result
Field
Type
Description
reason
Reason for rejection.
extraArgs
Additional context required to exercise the choice. Introduced as part of version
0.5.0for extensibility.
template ExecutedBurn
An executed burn.
Signatory: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn))
Field
Type
Description
operator
Utility operator.
provider
Utility provider.
burn
Burn request payload.
Choice Archive
Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn))
Returns: ()
(no fields)
Choice ExecutedBurn\_Delete
Deletes an executed burn.
Controller: actor
Returns: ExecutedBurn\_Delete\_Result
Field
Type
Description
actor
The actor exercising the choice, must be the operator.
template RejectedBurn
A rejected burn.
Signatory: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn)), (DA.Internal.Record.getField @”holder” burn)
Field
Type
Description
operator
Utility operator.
provider
Utility provider.
burn
Rejected burn payload.
reason
Reason for rejection.
Choice Archive
Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” burn)), (DA.Internal.Record.getField @”holder” burn)
Returns: ()
(no fields)
Choice RejectedBurn\_Delete
Deletes a rejected burn.
Controller: actor
Returns: RejectedBurn\_Delete\_Result
Field
Type
Description
actor
The actor exercising the choice, must be the operator.
Data Types¶
data Burn
Burn payload.
Field
Type
Description
instrumentId
The identifier of the instrument to be burned. The
instrumentId.adminis the registrar in the utility.amount
The amount to burn.
holder
The party whose holding will be burned.
reference
A reference for the burn.
requestedAt
The time at which the burn was requested.
executeBefore
The time by which the burn must have been executed.
meta
Optional metadata to associate extra information throughout the workflow.
data BurnOffer\_Accept\_Result
Result of
BurnOffer_Accept.
Field
Type
Description
executedBurnCid
Executed burn.
remaining
Remaining holding if the burned amount was less than the total holding amount provided.
meta
Choice output metadata.
data BurnOffer\_Cancel\_Result
Result of
BurnOffer_Cancel.
(no fields)
data BurnOffer\_Reject\_Result
Result of
BurnOffer_Reject.
Field
Type
Description
rejectedBurnCid
Rejected burn.
data BurnRequest\_Accept\_Result
Result of
BurnRequest_Accept.
Field
Type
Description
executedBurnCid
Executed burn.
meta
Choice output metadata.
data BurnRequest\_Cancel\_Result
Result of
BurnRequest_Cancel.
Field
Type
Description
holdingCid
Unlocked holding.
data BurnRequest\_Reject\_Result
Result of
BurnRequest_Reject.
Field
Type
Description
rejectedBurnCid
Rejected burn.
holdingCid
Unlocked holding.
data ExecutedBurn\_Delete\_Result
Result of
ExecutedBurn_Delete.
(no fields)
data RejectedBurn\_Delete\_Result
Result of
RejectedBurn_Delete.
(no fields)