- Overview
- Setup
- Tutorials
- How Tos
- Reference
Utility.Registry.App.V0.Service.AllocationFactory¶
Templates¶
template AllocationFactory
Multi-purpose factory template for asset workflows. This template is used to initiate:
Allocations for asset movements settled by a third party
Transfer instructions
Burn requests and offers
Mint requests and offers Note: The name “AllocationFactory” is retained for upgradeability, but the template now covers a broader set of workflows beyond allocations. Instances of this template are disclosed via the operator backend.
Signatory: provider, registrar
Field
Type
Description
provider
The provider party.
registrar
The registrar party.
operator
The operator party.
Choice AllocationFactory\_OfferBurn
Offer a 2-step burn. This choice was added as of version
0.4.0of this package.Controller: registrar
Returns: AllocationFactory\_OfferBurn\_Result
Field
Type
Description
expectedAdmin
Expected admin (registrar) of the factory.
burn
Details of 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 requirementsextraArgs.metadatais reserved for extensibility.
Choice AllocationFactory\_OfferMint
Offer a 2-step mint. This choice was added as of version
0.4.0of this package.Controller: registrar
Returns: AllocationFactory\_OfferMint\_Result
Field
Type
Description
expectedAdmin
Expected admin (registrar) of the factory.
mint
Details of the mint.
extraArgs
Additional context required to exercise the choice.
extraArgs.context(provided by the backend) includes: - TheInstrumentConfigurationof the holding being minted - TheCredentials of the holder that satisfy the issuer requirementsextraArgs.metadatais reserved for extensibility.
Choice AllocationFactory\_RequestBurn
Request a 2-step burn. This choice was added as of version
0.4.0of this package.Controller: (DA.Internal.Record.getField @”holder” burn)
Returns: AllocationFactory\_RequestBurn\_Result
Field
Type
Description
expectedAdmin
Expected admin (registrar) of the factory.
burn
Details of the burn.
holdingCids
Holdings to be used 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 requirementsextraArgs.metadatais reserved for extensibility.
Choice AllocationFactory\_RequestMint
Request a 2-step mint. This choice was added as of version
0.4.0of this package.Controller: (DA.Internal.Record.getField @”holder” mint)
Returns: AllocationFactory\_RequestMint\_Result
Field
Type
Description
expectedAdmin
Expected admin (registrar) of the factory.
mint
Details of the mint.
extraArgs
Additional context required to exercise the choice.
extraArgs.context(provided by the backend) includes: - TheInstrumentConfigurationof the holding being minted - TheCredentials of the holder that satisfy the issuer requirementsextraArgs.metadatais reserved for extensibility.Choice Archive
Controller: provider, registrar
Returns: ()
(no fields)
interface instance AllocationFactory for AllocationFactory
interface instance BurnMintFactory for AllocationFactory
interface instance TransferFactory for AllocationFactory
Data Types¶
data AllocationFactory\_OfferBurn\_Result
Result of offering a burn via the ‘AllocationFactory_OfferBurn’ choice.
AllocationFactory\_OfferBurn\_Result
Field
Type
Description
burnOfferCid
The burn offer contract to accept.
meta
Additional metadata.
data AllocationFactory\_OfferMint\_Result
Result of offering a mint via the ‘AllocationFactory_OfferMint’ choice.
AllocationFactory\_OfferMint\_Result
Field
Type
Description
mintOfferCid
The mint offer contract to accept.
meta
Additional metadata.
data AllocationFactory\_RequestBurn\_Result
Result of requesting a burn via the ‘AllocationFactory_RequestBurn’ choice.
AllocationFactory\_RequestBurn\_Result
Field
Type
Description
burnRequestCid
The burn request contract to accept.
remaining
Any remaining holding after splitting off the amount for the burn.
meta
Additional metadata.
data AllocationFactory\_RequestMint\_Result
Result of requesting a mint via the ‘AllocationFactory_RequestMint’ choice.
AllocationFactory\_RequestMint\_Result
Field
Type
Description
mintRequestCid
The mint request contract to accept.
meta
Additional metadata.