|
|
@ -21,14 +21,14 @@ class CardanoSignTx(p.MessageType):
|
|
|
|
def __init__(
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
self,
|
|
|
|
*,
|
|
|
|
*,
|
|
|
|
|
|
|
|
protocol_magic: int,
|
|
|
|
|
|
|
|
fee: int,
|
|
|
|
|
|
|
|
network_id: int,
|
|
|
|
inputs: List[CardanoTxInputType] = None,
|
|
|
|
inputs: List[CardanoTxInputType] = None,
|
|
|
|
outputs: List[CardanoTxOutputType] = None,
|
|
|
|
outputs: List[CardanoTxOutputType] = None,
|
|
|
|
certificates: List[CardanoTxCertificateType] = None,
|
|
|
|
certificates: List[CardanoTxCertificateType] = None,
|
|
|
|
withdrawals: List[CardanoTxWithdrawalType] = None,
|
|
|
|
withdrawals: List[CardanoTxWithdrawalType] = None,
|
|
|
|
protocol_magic: int = None,
|
|
|
|
|
|
|
|
fee: int = None,
|
|
|
|
|
|
|
|
ttl: int = None,
|
|
|
|
ttl: int = None,
|
|
|
|
network_id: int = None,
|
|
|
|
|
|
|
|
metadata: bytes = None,
|
|
|
|
metadata: bytes = None,
|
|
|
|
validity_interval_start: int = None,
|
|
|
|
validity_interval_start: int = None,
|
|
|
|
) -> None:
|
|
|
|
) -> None:
|
|
|
@ -38,8 +38,8 @@ class CardanoSignTx(p.MessageType):
|
|
|
|
self.withdrawals = withdrawals if withdrawals is not None else []
|
|
|
|
self.withdrawals = withdrawals if withdrawals is not None else []
|
|
|
|
self.protocol_magic = protocol_magic
|
|
|
|
self.protocol_magic = protocol_magic
|
|
|
|
self.fee = fee
|
|
|
|
self.fee = fee
|
|
|
|
self.ttl = ttl
|
|
|
|
|
|
|
|
self.network_id = network_id
|
|
|
|
self.network_id = network_id
|
|
|
|
|
|
|
|
self.ttl = ttl
|
|
|
|
self.metadata = metadata
|
|
|
|
self.metadata = metadata
|
|
|
|
self.validity_interval_start = validity_interval_start
|
|
|
|
self.validity_interval_start = validity_interval_start
|
|
|
|
|
|
|
|
|
|
|
@ -48,10 +48,10 @@ class CardanoSignTx(p.MessageType):
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
1: ('inputs', CardanoTxInputType, p.FLAG_REPEATED),
|
|
|
|
1: ('inputs', CardanoTxInputType, p.FLAG_REPEATED),
|
|
|
|
2: ('outputs', CardanoTxOutputType, p.FLAG_REPEATED),
|
|
|
|
2: ('outputs', CardanoTxOutputType, p.FLAG_REPEATED),
|
|
|
|
5: ('protocol_magic', p.UVarintType, None),
|
|
|
|
5: ('protocol_magic', p.UVarintType, p.FLAG_REQUIRED),
|
|
|
|
6: ('fee', p.UVarintType, None),
|
|
|
|
6: ('fee', p.UVarintType, p.FLAG_REQUIRED),
|
|
|
|
7: ('ttl', p.UVarintType, None),
|
|
|
|
7: ('ttl', p.UVarintType, None),
|
|
|
|
8: ('network_id', p.UVarintType, None),
|
|
|
|
8: ('network_id', p.UVarintType, p.FLAG_REQUIRED),
|
|
|
|
9: ('certificates', CardanoTxCertificateType, p.FLAG_REPEATED),
|
|
|
|
9: ('certificates', CardanoTxCertificateType, p.FLAG_REPEATED),
|
|
|
|
10: ('withdrawals', CardanoTxWithdrawalType, p.FLAG_REPEATED),
|
|
|
|
10: ('withdrawals', CardanoTxWithdrawalType, p.FLAG_REPEATED),
|
|
|
|
11: ('metadata', p.BytesType, None),
|
|
|
|
11: ('metadata', p.BytesType, None),
|
|
|
|