Deprecated

This Splice documentation site is deprecated. Use the current Canton Network docs.

Open current docs

Splice.AmuletAllocationV2

V2 amulet allocation, which can and should be settled using V2.SettlementFactory_SettleBatch.

Templates

template AmuletAllocationV2

V2 amulet allocation created using the V2.AllocationFactory_Allocate choice and expected to be settled using V2.SettlementFactory_SettleBatch.

Signatory: (DA.Internal.Record.getField @"admin" allocation), (DA.Internal.Record.getField @"owner" (DA.Internal.Record.getField @"authorizer" allocation))

Field

Type

Description

lockedAmulet

Optional (ContractId LockedAmulet)

Locked amulet that holds the funds for the allocation. Empty if the net fund movement is positive.

settlement

SettlementInfo

allocation

AllocationSpecification

expiresAt

Time

numIterations

Int

createdAt

Time

  • Choice Archive

    Controller: (DA.Internal.Record.getField @"admin" allocation), (DA.Internal.Record.getField @"owner" (DA.Internal.Record.getField @"authorizer" allocation))

    Returns: ()

    (no fields)

Functions

netAmuletCreditAmount

: Account -> [TransferLegSide] -> Decimal

validateAmuletNextIterationFunding

: Optional (TextMap Decimal) -> Update Decimal

validateAmuletTransferLegSides

: [TransferLegSide] -> Update ()

computeAllocationExpiryInternal

: TransferConfigV2 Amulet -> Time -> Optional Time -> Time

computeAllocationExpiry

: TransferConfigV2 Amulet -> Time -> Optional Time -> Update Time

Comments