mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-30 11:28:21 +00:00
62 lines
1.9 KiB
Python
62 lines
1.9 KiB
Python
# Automatically generated by pb2py
|
|
from .. import protobuf as p
|
|
if __debug__:
|
|
try:
|
|
from typing import List
|
|
except ImportError:
|
|
List = None
|
|
|
|
|
|
class NEMMosaicDefinition(p.MessageType):
|
|
FIELDS = {
|
|
1: ('name', p.UnicodeType, 0),
|
|
2: ('ticker', p.UnicodeType, 0),
|
|
3: ('namespace', p.UnicodeType, 0),
|
|
4: ('mosaic', p.UnicodeType, 0),
|
|
5: ('divisibility', p.UVarintType, 0),
|
|
6: ('levy', p.UVarintType, 0),
|
|
7: ('fee', p.UVarintType, 0),
|
|
8: ('levy_address', p.UnicodeType, 0),
|
|
9: ('levy_namespace', p.UnicodeType, 0),
|
|
10: ('levy_mosaic', p.UnicodeType, 0),
|
|
11: ('supply', p.UVarintType, 0),
|
|
12: ('mutable_supply', p.BoolType, 0),
|
|
13: ('transferable', p.BoolType, 0),
|
|
14: ('description', p.UnicodeType, 0),
|
|
15: ('networks', p.UVarintType, p.FLAG_REPEATED),
|
|
}
|
|
|
|
def __init__(
|
|
self,
|
|
name: str = None,
|
|
ticker: str = None,
|
|
namespace: str = None,
|
|
mosaic: str = None,
|
|
divisibility: int = None,
|
|
levy: int = None,
|
|
fee: int = None,
|
|
levy_address: str = None,
|
|
levy_namespace: str = None,
|
|
levy_mosaic: str = None,
|
|
supply: int = None,
|
|
mutable_supply: bool = None,
|
|
transferable: bool = None,
|
|
description: str = None,
|
|
networks: List[int] = None
|
|
) -> None:
|
|
self.name = name
|
|
self.ticker = ticker
|
|
self.namespace = namespace
|
|
self.mosaic = mosaic
|
|
self.divisibility = divisibility
|
|
self.levy = levy
|
|
self.fee = fee
|
|
self.levy_address = levy_address
|
|
self.levy_namespace = levy_namespace
|
|
self.levy_mosaic = levy_mosaic
|
|
self.supply = supply
|
|
self.mutable_supply = mutable_supply
|
|
self.transferable = transferable
|
|
self.description = description
|
|
self.networks = networks if networks is not None else []
|