2019-05-14 14:22:23 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
# fmt: off
|
|
|
|
from .. import protobuf as p
|
|
|
|
|
|
|
|
from .MoneroMultisigKLRki import MoneroMultisigKLRki
|
|
|
|
from .MoneroOutputEntry import MoneroOutputEntry
|
|
|
|
|
|
|
|
if __debug__:
|
|
|
|
try:
|
2019-07-03 13:02:50 +00:00
|
|
|
from typing import Dict, List, Optional
|
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-07-03 13:02:50 +00:00
|
|
|
Dict, List, Optional = None, None, None # type: ignore
|
2019-05-14 14:22:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MoneroTransactionSourceEntry(p.MessageType):
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
outputs: List[MoneroOutputEntry] = None,
|
|
|
|
real_output: int = None,
|
|
|
|
real_out_tx_key: bytes = None,
|
|
|
|
real_out_additional_tx_keys: List[bytes] = None,
|
|
|
|
real_output_in_tx_index: int = None,
|
|
|
|
amount: int = None,
|
|
|
|
rct: bool = None,
|
|
|
|
mask: bytes = None,
|
|
|
|
multisig_kLRki: MoneroMultisigKLRki = None,
|
|
|
|
) -> None:
|
|
|
|
self.outputs = outputs if outputs is not None else []
|
|
|
|
self.real_output = real_output
|
|
|
|
self.real_out_tx_key = real_out_tx_key
|
|
|
|
self.real_out_additional_tx_keys = real_out_additional_tx_keys if real_out_additional_tx_keys is not None else []
|
|
|
|
self.real_output_in_tx_index = real_output_in_tx_index
|
|
|
|
self.amount = amount
|
|
|
|
self.rct = rct
|
|
|
|
self.mask = mask
|
|
|
|
self.multisig_kLRki = multisig_kLRki
|
|
|
|
|
|
|
|
@classmethod
|
2019-07-03 13:02:50 +00:00
|
|
|
def get_fields(cls) -> Dict:
|
2019-05-14 14:22:23 +00:00
|
|
|
return {
|
|
|
|
1: ('outputs', MoneroOutputEntry, p.FLAG_REPEATED),
|
|
|
|
2: ('real_output', p.UVarintType, 0),
|
|
|
|
3: ('real_out_tx_key', p.BytesType, 0),
|
|
|
|
4: ('real_out_additional_tx_keys', p.BytesType, p.FLAG_REPEATED),
|
|
|
|
5: ('real_output_in_tx_index', p.UVarintType, 0),
|
|
|
|
6: ('amount', p.UVarintType, 0),
|
|
|
|
7: ('rct', p.BoolType, 0),
|
|
|
|
8: ('mask', p.BytesType, 0),
|
|
|
|
9: ('multisig_kLRki', MoneroMultisigKLRki, 0),
|
|
|
|
}
|