Anoma.Resource
Contents
Definitions
A Resource is an immutable object that represents part of an application's state.
Constructors
| | mkResource { logicHash : LogicHash; label : ByteString; data : ByteString; quantity : Int } |
resourcesForKind (d : Kind) (rs : List Resource) : List ResourceSource#
Find all the resources associated with a kind
quantityOfKind (d : Kind) (rs : List Resource) : IntSource#
Aggregate the quantities associated with a kind
zeroOrOneCheck (p : Resource -> Bool) : List Resource -> BoolSource#
Return true if the list is empty or the list has exactly 1 element and the predicate is satisfied