Filtered by

cardano logo

Using Meadow, the Marlowe emulator

Meadow is an emulator that provides a browser-based graphical interface where you can easily play with and edit your contracts. It also runs the required actions to test your input and output transactions as if you were integrated with a live blockchain. This tool provides a simple yet robust and secure platform for modeling financial instruments.

With Meadow you can simulate block-by-block execution of your contracts using the Blockly library and Marlowe’s semantics compiled to JavaScript by the Haste compiler. Interlocking building blocks are used to represent instructions, and the money amounts of your contracts and choices are accessed through observations.

The executable parts of Marlowe are represented as Haskell data types and use single step and per-block stages that are easy to use. You can also benefit from using the embedded Fay code editor, a subset of Haskell, to generate Marlowe code to use within Meadow. There are some pre-loaded examples provided by Meadow for deposit incentives, limited crowd-funding, and escrow contracts that you can play with. This will help you learn how to execute, import, and save both Fay and Meadow code.

Next navigation arrow