Skip to content

Reference

Utils — template identity

Parse DAML template id strings into package/name/version parts and compare them for pin/migration checks.

parseTemplateIdentity, tryParseTemplateIdentity, compareTemplateIdentity, matchesTemplateIdentity, assertTemplateIdentity help gate operations when multiple package versions of OpenCapTable may exist on a participant.

assertTemplateIdentity throws when expectations fail—typically a plain Error with an assertion message.

Source