# Automatically generated by pb2py # fmt: off import protobuf as p from .EosActionBuyRam import EosActionBuyRam from .EosActionBuyRamBytes import EosActionBuyRamBytes from .EosActionCommon import EosActionCommon from .EosActionDelegate import EosActionDelegate from .EosActionDeleteAuth import EosActionDeleteAuth from .EosActionLinkAuth import EosActionLinkAuth from .EosActionNewAccount import EosActionNewAccount from .EosActionRefund import EosActionRefund from .EosActionSellRam import EosActionSellRam from .EosActionTransfer import EosActionTransfer from .EosActionUndelegate import EosActionUndelegate from .EosActionUnknown import EosActionUnknown from .EosActionUnlinkAuth import EosActionUnlinkAuth from .EosActionUpdateAuth import EosActionUpdateAuth from .EosActionVoteProducer import EosActionVoteProducer if __debug__: try: from typing import Dict, List, Optional # noqa: F401 from typing_extensions import Literal # noqa: F401 except ImportError: pass class EosTxActionAck(p.MessageType): MESSAGE_WIRE_TYPE = 604 def __init__( self, *, common: Optional[EosActionCommon] = None, transfer: Optional[EosActionTransfer] = None, delegate: Optional[EosActionDelegate] = None, undelegate: Optional[EosActionUndelegate] = None, refund: Optional[EosActionRefund] = None, buy_ram: Optional[EosActionBuyRam] = None, buy_ram_bytes: Optional[EosActionBuyRamBytes] = None, sell_ram: Optional[EosActionSellRam] = None, vote_producer: Optional[EosActionVoteProducer] = None, update_auth: Optional[EosActionUpdateAuth] = None, delete_auth: Optional[EosActionDeleteAuth] = None, link_auth: Optional[EosActionLinkAuth] = None, unlink_auth: Optional[EosActionUnlinkAuth] = None, new_account: Optional[EosActionNewAccount] = None, unknown: Optional[EosActionUnknown] = None, ) -> None: self.common = common self.transfer = transfer self.delegate = delegate self.undelegate = undelegate self.refund = refund self.buy_ram = buy_ram self.buy_ram_bytes = buy_ram_bytes self.sell_ram = sell_ram self.vote_producer = vote_producer self.update_auth = update_auth self.delete_auth = delete_auth self.link_auth = link_auth self.unlink_auth = unlink_auth self.new_account = new_account self.unknown = unknown @classmethod def get_fields(cls) -> Dict: return { 1: ('common', EosActionCommon, None), 2: ('transfer', EosActionTransfer, None), 3: ('delegate', EosActionDelegate, None), 4: ('undelegate', EosActionUndelegate, None), 5: ('refund', EosActionRefund, None), 6: ('buy_ram', EosActionBuyRam, None), 7: ('buy_ram_bytes', EosActionBuyRamBytes, None), 8: ('sell_ram', EosActionSellRam, None), 9: ('vote_producer', EosActionVoteProducer, None), 10: ('update_auth', EosActionUpdateAuth, None), 11: ('delete_auth', EosActionDeleteAuth, None), 12: ('link_auth', EosActionLinkAuth, None), 13: ('unlink_auth', EosActionUnlinkAuth, None), 14: ('new_account', EosActionNewAccount, None), 15: ('unknown', EosActionUnknown, None), }