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 the Lockable interface.

releaseImpl

: (HasCreate t, HasFromInterface t Lockable, HasToInterface t Lockable) => Optional Lock -> (Optional Lock -> t) -> Release -> Update (ContractId Lockable)

Default implementation of release from the Lockable interface.

isValidLock

: Optional Lock -> Bool

Check validity of lock. The lockers field must be non-empty if set.