def push_actiones(self, val_list): self.push_variableUInt(len(val_list)) for i in val_list: self.push_long(type_name_to_long(i["account"])) self.push_long(type_name_to_long(i["name"])) self.push_permission(i["authorization"]) if i["data"]: self.push_data(i["data"]) else: self.push_variableUInt(0)
def push_permission(self, val_list): self.push_variableUInt(len(val_list)) for i in val_list: self.push_long(type_name_to_long(i["actor"])) self.push_long(type_name_to_long(i["permission"]))