High-level templating language for smart contract creators.
Flexible domain-specific language (DSL) allowing non-coders to capture and design EVM- and WASM-based smart contracts.
Currently work is focusing on Webassembly backend. Here are the steps to try out a proof of concept.
- Install the command line tool by running
./install
on the terminal. This will place themonet
script in your local path.
$ ./install
Installed monet at /usr/local/bin/monet
Check if monet
is available as a command.
$ which monet
/usr/local/bin/monet
$ monet
Usage:
compile <monet-file>
web-server <port>
- Start a local web server that "watches" over the compiled WASM.
$ monet web-server 9000
If port number isn't provided, the server will use the default port 8080
.
-
On the web browser, browse to
localhost:9000
(or change to your preferred port number) and leave it open. -
Create a monet file that ends with
.monet
or.mt
and write a simple float number arithmetic, then save it.
Here is an example:
# basic.mt
32. + 40.1 * 3.14
There are a few examples in /examples
.
- Compile the file.
> ./monet compile basic.mt
>> "Compiled basic.mt successfully"
- Check the web browser out. The table will display the compiled monet file, compiled expression, and the emitted value in WASM.