2018-04-16 13:44:53 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
from .. import protobuf as p
|
2018-05-09 15:14:44 +00:00
|
|
|
if __debug__:
|
|
|
|
try:
|
|
|
|
from typing import List
|
|
|
|
except ImportError:
|
|
|
|
List = None
|
2018-04-16 13:44:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
class StellarSignTx(p.MessageType):
|
2018-05-09 15:14:44 +00:00
|
|
|
MESSAGE_WIRE_TYPE = 202
|
2018-04-16 13:44:53 +00:00
|
|
|
FIELDS = {
|
|
|
|
1: ('protocol_version', p.UVarintType, 0),
|
|
|
|
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
|
|
|
3: ('network_passphrase', p.UnicodeType, 0),
|
|
|
|
4: ('source_account', p.BytesType, 0),
|
|
|
|
5: ('fee', p.UVarintType, 0),
|
|
|
|
6: ('sequence_number', p.UVarintType, 0),
|
|
|
|
8: ('timebounds_start', p.UVarintType, 0),
|
|
|
|
9: ('timebounds_end', p.UVarintType, 0),
|
|
|
|
10: ('memo_type', p.UVarintType, 0),
|
|
|
|
11: ('memo_text', p.UnicodeType, 0),
|
|
|
|
12: ('memo_id', p.UVarintType, 0),
|
|
|
|
13: ('memo_hash', p.BytesType, 0),
|
|
|
|
14: ('num_operations', p.UVarintType, 0),
|
|
|
|
}
|
2018-05-09 15:14:44 +00:00
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
protocol_version: int = None,
|
|
|
|
address_n: List[int] = None,
|
|
|
|
network_passphrase: str = None,
|
|
|
|
source_account: bytes = 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.protocol_version = protocol_version
|
|
|
|
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
|