Utility.Registry.App.V0.Model.Mint

Templates

template ExecutedMint

An executed mint.

Signatory: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint))

Field

Type

Description

operator

Party

Operator party.

provider

Party

Provider party.

mint

Mint

Mint payload.

  • Choice Archive

    Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint))

    Returns: ()

    (no fields)

template MintOffer

An offer to mint a holding.

Signatory: provider, (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint))

Field

Type

Description

operator

Party

Operator party.

provider

Party

Provider party.

mint

Mint

Mint offer payload.

  • Choice Archive

    Controller: provider, (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint))

    Returns: ()

    (no fields)

  • Choice MintOffer\_Accept

    Accepts a mint offer.

    Controller: (DA.Internal.Record.getField @”holder” mint)

    Returns: MintOffer\_Accept\_Result

    Field

    Type

    Description

    extraArgs

    ExtraArgs

    Additional context required to exercise the choice. extraArgs.context (provided by the backend) includes: - The InstrumentConfiguration of the holding being minted - The Credentials of the holder that satisfy the issuer requirements - AppRewardConfiguration of the provider (if any) - FeaturedAppRight of the provider (if featured) extraArgs.metadata is reserved for extensibility.

  • Choice MintOffer\_Reject

    Rejects a mint offer.

    Controller: (DA.Internal.Record.getField @”holder” mint)

    Returns: MintOffer\_Reject\_Result

    Field

    Type

    Description

    reason

    Text

    Reason for rejection.

    extraArgs

    Optional ExtraArgs

    Additional context required to exercise the choice. Introduced as part of version 0.5.0 for extensibility.

template MintRequest

A request to mint a holding.

Signatory: provider, (DA.Internal.Record.getField @”holder” mint)

Field

Type

Description

operator

Party

Operator requesting the mint.

provider

Party

Provider of the instrument to mint.

mint

Mint

Mint request payload.

  • Choice Archive

    Controller: provider, (DA.Internal.Record.getField @”holder” mint)

    Returns: ()

    (no fields)

  • Choice MintRequest\_Accept

    Accepts a mint request.

    Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint))

    Returns: MintRequest\_Accept\_Result

    Field

    Type

    Description

    extraArgs

    ExtraArgs

    Additional context required to exercise the choice. extraArgs.context (provided by the backend) includes: - The InstrumentConfiguration of the holding being minted - The Credentials of the holder that satisfy the issuer requirements - AppRewardConfiguration of the provider (if any) - FeaturedAppRight of the provider (if featured) extraArgs.metadata is reserved for extensibility.

  • Choice MintRequest\_Reject

    Rejects a mint request.

    Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint))

    Returns: MintRequest\_Reject\_Result

    Field

    Type

    Description

    reason

    Text

    Reason for rejection.

    extraArgs

    Optional ExtraArgs

    Additional context required to exercise the choice. Introduced as part of version 0.5.0 for extensibility.

template RejectedMint

A rejected mint.

Signatory: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint)), (DA.Internal.Record.getField @”holder” mint)

Field

Type

Description

operator

Party

Operator party.

provider

Party

Provider party.

mint

Mint

Rejected mint payload.

reason

Text

Reason for rejection.

  • Choice Archive

    Controller: (DA.Internal.Record.getField @”admin” (DA.Internal.Record.getField @”instrumentId” mint)), (DA.Internal.Record.getField @”holder” mint)

    Returns: ()

    (no fields)

Data Types

data ExecutedMint\_Delete\_Result

Result of ExecutedMint_Delete.

data Mint

Mint payload.

Mint

Field

Type

Description

instrumentId

InstrumentId

The identifier of the instrument to be minted. The instrumentId.admin is the registrar in the utility.

amount

Decimal

The amount to mint.

holder

Party

The party for whom the holding will be minted.

reference

Text

A reference for the mint.

requestedAt

Time

The time at which the mint was requested.

executeBefore

Time

The time by which the mint must have been executed.

meta

Metadata

Optional metadata to associate extra information throughout the workflow.

data MintOffer\_Accept\_Result

Result of MintOffer_Accept.

MintOffer\_Accept\_Result

Field

Type

Description

holdingCid

ContractId Holding

Minted holding.

executedMintCid

Optional (ContractId ExecutedMint)

Executed mint.

meta

Metadata

Choice output metadata.

data MintOffer\_Cancel\_Result

Result of MintOffer_Cancel.

data MintOffer\_Reject\_Result

Result of MintOffer_Reject.

MintOffer\_Reject\_Result

Field

Type

Description

rejectedMintCid

Optional (ContractId RejectedMint)

Rejected mint.

data MintRequest\_Accept\_Result

Result of MintRequest_Accept.

MintRequest\_Accept\_Result

Field

Type

Description

holdingCid

ContractId Holding

Minted holding.

executedMintCid

Optional (ContractId ExecutedMint)

Executed mint.

meta

Metadata

Choice output metadata.

data MintRequest\_Cancel\_Result

Result of MintRequest_Cancel.

data MintRequest\_Reject\_Result

Result of MintRequest_Reject.

MintRequest\_Reject\_Result

Field

Type

Description

rejectedMintCid

Optional (ContractId RejectedMint)

Rejected mint.

data RejectedMint\_Delete\_Result

Result of RejectedMint_Delete.