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 to 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.1] let%entry main (parameter : string) (storage : (string, int) map) [%return : unit] = let amount = Current.amount () in if amount < ("5.00" : tez) then Current.fail () else match Map.find parameter storage with | None -> Current.fail () | Some x -> let storage = Map.update parameter (Some (x+1)) storage in ( (), storage )
The current roadmap is: