2017-12-12 15:40:11 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
from .. import protobuf as p
|
2018-05-09 15:14:44 +00:00
|
|
|
if __debug__:
|
|
|
|
try:
|
|
|
|
from typing import List
|
|
|
|
except ImportError:
|
|
|
|
List = None
|
2017-12-12 15:40:11 +00:00
|
|
|
from .NEMCosignatoryModification import NEMCosignatoryModification
|
|
|
|
|
|
|
|
|
|
|
|
class NEMAggregateModification(p.MessageType):
|
|
|
|
FIELDS = {
|
|
|
|
1: ('modifications', NEMCosignatoryModification, p.FLAG_REPEATED),
|
2018-04-11 09:15:38 +00:00
|
|
|
2: ('relative_change', p.SVarintType, 0),
|
2017-12-12 15:40:11 +00:00
|
|
|
}
|
2018-05-09 15:14:44 +00:00
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
modifications: List[NEMCosignatoryModification] = None,
|
|
|
|
relative_change: int = None
|
|
|
|
) -> None:
|
|
|
|
self.modifications = modifications if modifications is not None else []
|
|
|
|
self.relative_change = relative_change
|