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
owner
Party that proposed the substitution
amount
Amount being substituted
lockedAmulet
requestedAt
Time of the request to create the proposal.
expiresAt
Time after which the DSO party may withdraw the proposal.
originalSubstitutionCid
Contract id of the first proposal of this workflow.
Nonefor the first proposal itself.
Choice Archive
Controller: (DA.Internal.Record.getField @"dso" target), owner
Returns: ()
(no fields)
Choice GovernanceLockSubstitution_DsoExpire
Controller: (DA.Internal.Record.getField @"dso" target)
Returns: GovernanceLockSubstitution_DsoExpireResult
(no fields)
Data Types
Type to simplify passing in all the arguments required to create a substitution proposal.
Field
Type
Description
dso
target
owner
Party that proposed the substitution
amount
Amount being substituted
inputHoldingCids
[ContractId Holding]
Holdings providing the funds
extraArgs
ExtraArgs
requestedAt
Time of the request to create the proposal
reason
Memo of the request to create the proposal, which the transfer legs report as their reason
context
state
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
GovernanceLockSubstitution_DsoExpireResult
(no fields)
instance Serializable GovernanceLockSubstitution_DsoExpireResult
instance HasExercise GovernanceLockSubstitution GovernanceLockSubstitution_DsoExpire GovernanceLockSubstitution_DsoExpireResult
instance HasFromAnyChoice GovernanceLockSubstitution GovernanceLockSubstitution_DsoExpire GovernanceLockSubstitution_DsoExpireResult
instance HasToAnyChoice GovernanceLockSubstitution GovernanceLockSubstitution_DsoExpire GovernanceLockSubstitution_DsoExpireResult
Functions
- createSubstitution
: CreateSubstitutionArgs -> Update (ContractId TransferInstruction, TransferInstruction, Optional (ContractId Amulet))
Comments