- 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.Registry.App.V0.Configuration.Operator
- Utility.Registry.App.V0.Configuration.Provider
- Utility.Registry.App.V0.Model.Burn
- Utility.Registry.App.V0.Model.Mint
- Utility.Registry.App.V0.Model.Transfer
- Utility.Registry.App.V0.Service.AllocationFactory
- Utility.Registry.App.V0.Service.Holder
- Utility.Registry.App.V0.Service.Provider
- Utility.Registry.App.V0.Service.Registrar
- Utility.Holding
- Utility.Registry
- Settlement Utility API
- Collateral Utility API
- Operator Backend API
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 * TheCredential``s of the holder that satisfy the issuer requirements ``extraArgs.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 * TheCredential``s of the holder that satisfy the issuer requirements ``extraArgs.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 * TheCredential``s of the holder that satisfy the issuer requirements ``extraArgs.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 * TheCredential``s of the holder that satisfy the issuer requirements ``extraArgs.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.