Deprecated

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

Open current docs

Splice.GovernanceLock.Substitution

Templates

template GovernanceLockSubstitution

A proposal for a substitution of a governance lock.

Signatory: (DA.Internal.Record.getField @"dso" target), owner

Field

Type

Description

target

GovernanceLockKey

owner

Party

Party that proposed the substitution

amount

Decimal

Amount being substituted

lockedAmulet

Optional (ContractId LockedAmulet)

requestedAt

Time

Time of the request to create the proposal.

expiresAt

Time

Time after which the DSO party may withdraw the proposal.

originalSubstitutionCid

Optional (ContractId GovernanceLockSubstitution)

Contract id of the first proposal of this workflow. None for the first proposal itself.

Data Types

data CreateSubstitutionArgs

Type to simplify passing in all the arguments required to create a substitution proposal.

CreateSubstitutionArgs

Field

Type

Description

dso

Party

target

GovernanceLockKey

owner

Party

Party that proposed the substitution

amount

Decimal

Amount being substituted

inputHoldingCids

[ContractId Holding]

Holdings providing the funds

extraArgs

ExtraArgs

requestedAt

Time

Time of the request to create the proposal

reason

Text

Memo of the request to create the proposal, which the transfer legs report as their reason

context

ExternalPartyTransferContext

state

ExternalPartyConfigState

instance GetField "amount" CreateSubstitutionArgs Decimal

instance GetField "context" CreateSubstitutionArgs ExternalPartyTransferContext

instance GetField "dso" CreateSubstitutionArgs Party

instance GetField "extraArgs" CreateSubstitutionArgs ExtraArgs

instance GetField "inputHoldingCids" CreateSubstitutionArgs [ContractId Holding]

instance GetField "owner" CreateSubstitutionArgs Party

instance GetField "reason" CreateSubstitutionArgs Text

instance GetField "requestedAt" CreateSubstitutionArgs Time

instance GetField "state" CreateSubstitutionArgs ExternalPartyConfigState

instance GetField "target" CreateSubstitutionArgs GovernanceLockKey

instance SetField "amount" CreateSubstitutionArgs Decimal

instance SetField "context" CreateSubstitutionArgs ExternalPartyTransferContext

instance SetField "dso" CreateSubstitutionArgs Party

instance SetField "extraArgs" CreateSubstitutionArgs ExtraArgs

instance SetField "inputHoldingCids" CreateSubstitutionArgs [ContractId Holding]

instance SetField "owner" CreateSubstitutionArgs Party

instance SetField "reason" CreateSubstitutionArgs Text

instance SetField "requestedAt" CreateSubstitutionArgs Time

instance SetField "state" CreateSubstitutionArgs ExternalPartyConfigState

instance SetField "target" CreateSubstitutionArgs GovernanceLockKey

data GovernanceLockSubstitution_DsoExpireResult

Functions

createSubstitution

: CreateSubstitutionArgs -> Update (ContractId TransferInstruction, TransferInstruction, Optional (ContractId Amulet))

Comments