Smart contracts ported to Node and Q