Liquidity is a high-level language to program Smart Contracts for Tezos. It is a fully typed functional language, it uses the syntax of OCaml, and strictly complies with Michelson security restrictions.
A formal-method framework for Liquidity is under development, to prove the correctness of smart-contracts written in Liquidity.
The Liquidity language provides the following features:
Liquidity already covers 100% of the Michelson features, and contracts generated with Liquidity can be submitted on the current alphanet.
Liquidity editors will soon be available to program online and submit contracts on Tezos testnet. For now, you can use our Try Liquidity Site to get a taste of the upcoming environment.
A typical example is:
[%%version 0.14] let%init storage (myname : string) = Map.add myname 0 (Map ["ocaml", 0; "pro", 0]) let%entry main (parameter : string) (storage : (string, int) map) : unit * (string, int) map = let amount = Current.amount() in if amount < 5.00tz then Current.fail () else match Map.find parameter storage with | None -> Current.fail () | Some x -> let storage = Map.add parameter (x+1) storage in ( (), storage )
The current roadmap is: