A friendly Smart Contract Language for Tezos
Smart contracts were never so easy
- JsLIGO
- CameLIGO
- Try it
namespace Counter {type storage = int;type ret = [list<operation>, storage];// Three entrypoints@entryconst increment = (delta: int, store: storage): ret =>[list([]), store + delta];@entryconst decrement = (delta: int, store: storage): ret =>[list([]), store - delta];@entryconst reset = (_p: unit, _s: storage): ret => [list([]), 0]};
module Counter = structtype storage = inttype ret = operation list * storage(* Three entrypoints *)[@entry]let increment (delta : int) (store : storage) : ret = [], store + delta[@entry]let decrement (delta : int) (store : storage) : ret = [], store - delta[@entry]let reset (() : unit) (_ : storage) : ret = [], 0end
Strong, Static Type System
Write types, then code. Benefit from the safety of type systems.
Polyglot
Code in your language. Write in CameLIGO, JsLIGO or add your own syntax.
Easy Integration
You can use LIGO as a Node.js library with Truffle.