If one plans to run a Marlowe contract on the Cardano mainnet
, then one should check its safety before creating it, so that there is no chance of losing funds.
Here are the steps for checking the safety of a Marlowe contract:
- Understand the Marlowe Language.
- Understand Cardano's Extended UTxO Model.
- Read and understand the Marlowe Best Practices Guide.
- Read and understand the Marlowe Security Guide.
- Use Marlowe Playground to flag warnings, perform static analysis, and simulate the contract.
- Use Marlowe CLI's
marlowe-cli run analyze
tool to study whether the contract can run on a Cardano network. - Run all execution paths of the contract on a Cardano testnet.