Welcome to fi - smart coding for smart contracts

fi is an interpreted language for Michelson, allowing programmers to easily develop Tezos smart contracts and validate the compiled Michelson code.

We are currently in alpha

const string GREETING "Hello World"; object User( string name, nat age); storage map(address => User) users; @signup(string name, nat age) returns (string greeting){ if (storage.users.in(SENDER)) throw; // Already signed up let User newUser = new User(input.name, input.age); storage.users.push(SENDER, newUser); return.greeting = GREETING; } @getUser(address userAddress) returns (User user){ if (!storage.users.in(input.userAddress)) throw; return.user = storage.users.get(input.userAddress); }