In the following video, Pablo Lamela, Marlowe Engineering Lead, shows how to create Marlowe contracts in Marlowe Playground using Blockly.
A low-code pathway for building, simulating, and analyzing smart contracts
Intended to be used by both low-code professionals and experienced developers alike, the Playground provides multiple methods for building, simulating, and analyzing Marlowe smart contracts in a sandbox environment using an iterative design process.
Once you have created a contract, you can analyze its behavior through formal verification and testing; for example, you can check whether any payments made by the contract could conceivably fail. You can also step through how your contract will behave, simulating the actions of the participants.
Multiple Playground language options for creating Marlowe smart contracts
The Playground provides multiple language options for building contracts:
Use the Blockly visual drag and drop programming tool to create contracts by fitting together blocks that represent the different components. Blockly is an intuitive low-code tool to get started with building Marlowe smart contracts.
Write code directly in the Marlowe language's text format.
Write code using the embedded Haskell editor.
You can use the Blockly visual programming tool to create contracts by fitting together blocks that represent the different components. This is a very useful tool for those users who may not have experience in programming editors and want to build the contracts visually.
Blockly gives you a lot of feedback about what you can and cannot do along the way. It is very intuitive. If you try to put a block into the wrong place, it simply won't fit.
Experienced Haskell developers can use the embedded Haskell editor in the Playground to render Marlowe code. Marlowe is written as a Haskell data type, and thus it is straightforward to generate Marlowe smart contracts using Haskell.