2019-05-14 14:22:23 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
# fmt: off
|
|
|
|
from .. import protobuf as p
|
|
|
|
|
|
|
|
if __debug__:
|
|
|
|
try:
|
2019-07-03 13:02:50 +00:00
|
|
|
from typing import Dict, List, Optional
|
2019-05-14 14:22:23 +00:00
|
|
|
except ImportError:
|
2019-07-03 13:02:50 +00:00
|
|
|
Dict, List, Optional = None, None, None # type: ignore
|
2019-05-14 14:22:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
class EosActionVoteProducer(p.MessageType):
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
voter: int = None,
|
|
|
|
proxy: int = None,
|
|
|
|
producers: List[int] = None,
|
|
|
|
) -> None:
|
|
|
|
self.voter = voter
|
|
|
|
self.proxy = proxy
|
|
|
|
self.producers = producers if producers is not None else []
|
|
|
|
|
|
|
|
@classmethod
|
2019-07-03 13:02:50 +00:00
|
|
|
def get_fields(cls) -> Dict:
|
2019-05-14 14:22:23 +00:00
|
|
|
return {
|
|
|
|
1: ('voter', p.UVarintType, 0),
|
|
|
|
2: ('proxy', p.UVarintType, 0),
|
|
|
|
3: ('producers', p.UVarintType, p.FLAG_REPEATED),
|
|
|
|
}
|