How to code smart contract without Mist