Open nhenin opened 5 months ago
As I responded in the discussion, I believe this should be part of a bigger thing that we can call TemplateParameters
/ContractScheme
/etc that is similar to the Marlowe Extended feature.
This could allow us to define a DSL for contract parameters with assertions (amount > x, deadline 1 > deadline 2, etc), with a human description (that can help us with Marlowe to english explainer) and with a proper serialization mechanism so we can simplify this type of code.
The proposed function parseADA
is misleading as it is not parsing anything, it could be called lovelaceToAda
, but multiplying a number for 1 Million is trivial and does not belong in the SDK IMO.
Discussed in https://github.com/input-output-hk/marlowe-ts-sdk/discussions/143