Utility.Registry.V0.Util

Functions

groupBy

: Ord k => (a -> k) -> [a] -> Map k [a]

Like List.groupOn, but returns the output in a Map.

fetchAndValidate

: (HasFetch t, Eq a, Show a) => ContractId t -> [(Text, t -> a, a)] -> Update t

Fetch a contract and validate that fields are as expected.