Adds Transferred event

This commit is contained in:
emmdim 2019-12-23 13:31:54 +01:00
parent 50ba0be170
commit 64a43e63d7
4 changed files with 17 additions and 0 deletions

View file

@ -266,3 +266,7 @@ class MigrateToDef(ActionDef):
class MigrateFromDef(ActionDef):
VIEW = None
SCHEMA = schemas.MigrateFrom
class TransferredDef(ActionDef):
VIEW = None
SCHEMA = schemas.Transferred

View file

@ -1546,3 +1546,7 @@ def update_parent(target: Union[EraseBasic, Test, Install], device: Device, _, _
class InvalidRangeForPrice(ValueError):
pass
class Transferred(ActionWithMultipleDevices):
"""Transferred through blockchain."""
pass

View file

@ -547,3 +547,6 @@ class MigrateTo(Migrate):
class MigrateFrom(Migrate):
pass
class Transferred(ActionWithMultipleDevices):
pass

View file

@ -445,3 +445,9 @@ class MigrateTo(Migrate):
class MigrateFrom(Migrate):
__doc__ = m.MigrateFrom.__doc__
class Transferred(ActionWithMultipleDevices):
__doc__ = m.Transferred.__doc__