Experimental
The inferred type of the options.params
as an object.
Manual constructor for the MarloweTemplate class, you should use mkMarloweTemplate instead.
The inferred type of the options.params
as an object.
The options to create a new MarloweTemplate.
Optional
descriptionPrivate
templateDecodes a Metadata into an ObjectParams.
a Metadata to decode.
the decoded ObjectParams.
DecodingTemplateError - if the value is not a valid Metadata.
This class holds information on the parameters required to create a Marlowe contract and a way to serialize them to and from Metadata. The order of the parameters is important as they drive the serialization.
The Metadata encoding is as following: A top level entry with key
9041
and value with an object with two fields:v
a numeric version of the Template encoding (current version is 1)params
an array of the encoded parameters with the same order as the Template parameters.See
TemplateParam to see how each parameter is encoded.