Utility.Registry.V0.Util

Orphan Typeclass Instances

instance IsParties (Optional Parties)

Functions

groupBy

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

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

assertConfigurationAndGetDefaultIdentifier

: (CanAssert m, HasField "operator" p Party, HasField "provider" p Party, HasField "registrar" p Party, HasField "instrumentIdentifier" p InstrumentIdentifier) => InstrumentConfiguration -> p -> m ()

Asserts that the instrumen configuration matches expected values, and returns the default instrument identifier.

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.