Daml.Finance.Util.Lockable¶
Functions¶
- acquireImpl
: (HasCreate t, HasSignatory t, HasFromInterface t Lockable, HasToInterface t Lockable) => Optional Lock -> (Optional Lock -> t) -> Acquire -> Update (ContractId Lockable)
Default implementation of
acquire
from theLockable
interface.
- releaseImpl
: (HasCreate t, HasFromInterface t Lockable, HasToInterface t Lockable) => Optional Lock -> (Optional Lock -> t) -> Release -> Update (ContractId Lockable)
Default implementation of
release
from theLockable
interface.
- isValidLock
-
Check validity of lock. The lockers field must be non-empty if set.