- Read the sandbox tutorial
- ... together with the examples in bin/demo
- Read the env tutorial
- Run example 0 (
dune exec ./bin/example0.exe
) and read the output & code. - Run example 1 (
dune exec ./bin/example1.exe
) and read the output & code. - Read the dec tutorial
- Run and read
loan.ml
(dune exec ./bin/loan.exe
).
Run dune build @doc
then open _build/default/_doc/_html/lib/index.html
in your browser.
lib/env.ml
contains the ethereum-style execution environment.lib/c.mli
andlib/env.mli
contain most of the interface for the code inlib/env.ml
, they are good files to read.lib/address.ml
is an abstract address package.lib/contracts/token.ml
is a normal contract which happens to implement a generic Token functionality.lib/contracts/dec.ml
is a normal contract which happens to implement the Dec functionality.lib/{imperative,monadic}.ml
provides a simple interface to both programming styles.lib/macro.ml
contains example code for "z-crossing".tooling/
contains printing/maps/sets layers.
Just add any .ml
files to bin/
and remember to add it to the list in bin/dune
. Then, if you added the file file.ml
, just run
dune exec ./bin/file.exe
Then to get an idea of what you can do :
- Read
lib/env.mli
- Read
lib/contracts/dec.mli
- Read
lib/contracts/dec.ml