def event_output(contract, event_name, data): ts = datetime.utcnow() EZO.log.info( ("event: {:25s} contract: {:35s} address {:40s} timestamp: {:25s}" ).format(yellow(event_name), magenta(contract.name.replace("<stdin>:", "")), blue(data.address), magenta(ts)))
def view_deploys(results): l = list() for res in results: for key, value in res.items(): key = key.replace(EZO.DEPLOYED + ":", "").split(':') l.append( "contract: {:35s} target: {:20s} hash: {:27s} address: {:35s} timestamp: {:25s}" .format(cyan(key[0]), magenta(key[1]), blue(key[2]), blue(value["address"]), cyan(value["timestamp"]))) return l
def default(self): print(magenta("Ezo needs more words to work. Try 'ezo --help'"))