1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 11:58:13 +00:00
trezor-firmware/python/trezorlib/messages/TronProposalCreateContract.py

27 lines
620 B
Python
Raw Normal View History

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
from .TronProposalParameters import TronProposalParameters
if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore
class TronProposalCreateContract(p.MessageType):
def __init__(
self,
parameters: List[TronProposalParameters] = None,
) -> None:
self.parameters = parameters if parameters is not None else []
@classmethod
def get_fields(cls):
return {
1: ('parameters', TronProposalParameters, p.FLAG_REPEATED),
}