2019-05-14 14:22:23 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
# fmt: off
|
|
|
|
from .. import protobuf as p
|
|
|
|
|
|
|
|
if __debug__:
|
|
|
|
try:
|
2019-10-02 12:40:25 +00:00
|
|
|
from typing import Dict, List # noqa: F401
|
2019-08-02 17:06:01 +00:00
|
|
|
from typing_extensions import Literal # noqa: F401
|
2019-05-14 14:22:23 +00:00
|
|
|
except ImportError:
|
2019-10-02 12:40:25 +00:00
|
|
|
pass
|
2019-05-14 14:22:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
class StellarSignTx(p.MessageType):
|
|
|
|
MESSAGE_WIRE_TYPE = 202
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
2020-09-14 11:56:11 +00:00
|
|
|
*,
|
2019-05-14 14:22:23 +00:00
|
|
|
address_n: List[int] = None,
|
|
|
|
network_passphrase: str = None,
|
|
|
|
source_account: str = None,
|
|
|
|
fee: int = None,
|
|
|
|
sequence_number: int = None,
|
|
|
|
timebounds_start: int = None,
|
|
|
|
timebounds_end: int = None,
|
|
|
|
memo_type: int = None,
|
|
|
|
memo_text: str = None,
|
|
|
|
memo_id: int = None,
|
|
|
|
memo_hash: bytes = None,
|
|
|
|
num_operations: int = None,
|
|
|
|
) -> None:
|
|
|
|
self.address_n = address_n if address_n is not None else []
|
|
|
|
self.network_passphrase = network_passphrase
|
|
|
|
self.source_account = source_account
|
|
|
|
self.fee = fee
|
|
|
|
self.sequence_number = sequence_number
|
|
|
|
self.timebounds_start = timebounds_start
|
|
|
|
self.timebounds_end = timebounds_end
|
|
|
|
self.memo_type = memo_type
|
|
|
|
self.memo_text = memo_text
|
|
|
|
self.memo_id = memo_id
|
|
|
|
self.memo_hash = memo_hash
|
|
|
|
self.num_operations = num_operations
|
|
|
|
|
|
|
|
@classmethod
|
2019-07-03 13:02:50 +00:00
|
|
|
def get_fields(cls) -> Dict:
|
2019-05-14 14:22:23 +00:00
|
|
|
return {
|
|
|
|
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
2020-09-14 11:56:11 +00:00
|
|
|
3: ('network_passphrase', p.UnicodeType, None),
|
|
|
|
4: ('source_account', p.UnicodeType, None),
|
|
|
|
5: ('fee', p.UVarintType, None),
|
|
|
|
6: ('sequence_number', p.UVarintType, None),
|
|
|
|
8: ('timebounds_start', p.UVarintType, None),
|
|
|
|
9: ('timebounds_end', p.UVarintType, None),
|
|
|
|
10: ('memo_type', p.UVarintType, None),
|
|
|
|
11: ('memo_text', p.UnicodeType, None),
|
|
|
|
12: ('memo_id', p.UVarintType, None),
|
|
|
|
13: ('memo_hash', p.BytesType, None),
|
|
|
|
14: ('num_operations', p.UVarintType, None),
|
2019-05-14 14:22:23 +00:00
|
|
|
}
|