diff --git a/src/trezor/messages/MessageType.py b/src/trezor/messages/MessageType.py index 1ee7495ff..c0d71952b 100644 --- a/src/trezor/messages/MessageType.py +++ b/src/trezor/messages/MessageType.py @@ -109,6 +109,10 @@ StellarManageDataOp = 220 StellarBumpSequenceOp = 221 StellarSignedTx = 230 +TronGetAddress = 250 +TronAddress = 251 +TronSignTx = 252 +TronSignedTx = 253 CardanoSignTx = 303 CardanoTxRequest = 304 CardanoGetPublicKey = 305 diff --git a/src/trezor/messages/MoneroLiteAck.py b/src/trezor/messages/MoneroLiteAck.py deleted file mode 100644 index b6a47131c..000000000 --- a/src/trezor/messages/MoneroLiteAck.py +++ /dev/null @@ -1,19 +0,0 @@ -# Automatically generated by pb2py -# fmt: off -import protobuf as p - - -class MoneroLiteAck(p.MessageType): - MESSAGE_WIRE_TYPE = 543 - FIELDS = { - 1: ('sw', p.UVarintType, 0), - 2: ('data', p.BytesType, 0), - } - - def __init__( - self, - sw: int = None, - data: bytes = None, - ) -> None: - self.sw = sw - self.data = data diff --git a/src/trezor/messages/MoneroLiteRequest.py b/src/trezor/messages/MoneroLiteRequest.py deleted file mode 100644 index 329e1800c..000000000 --- a/src/trezor/messages/MoneroLiteRequest.py +++ /dev/null @@ -1,25 +0,0 @@ -# Automatically generated by pb2py -# fmt: off -import protobuf as p - - -class MoneroLiteRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 542 - FIELDS = { - 1: ('ins', p.UVarintType, 0), - 2: ('p1', p.UVarintType, 0), - 3: ('p2', p.UVarintType, 0), - 4: ('data', p.BytesType, 0), - } - - def __init__( - self, - ins: int = None, - p1: int = None, - p2: int = None, - data: bytes = None, - ) -> None: - self.ins = ins - self.p1 = p1 - self.p2 = p2 - self.data = data diff --git a/src/trezor/messages/MoneroTransactionRsigData.py b/src/trezor/messages/MoneroTransactionRsigData.py index 9edb2d87e..4e79a711f 100644 --- a/src/trezor/messages/MoneroTransactionRsigData.py +++ b/src/trezor/messages/MoneroTransactionRsigData.py @@ -23,7 +23,8 @@ class MoneroTransactionRsigData(p.MessageType): 8: ('mask', p.BytesType, 0), 9: ('amount', p.BytesType, 0), 10: ('rsig', p.BytesType, 0), - 11: ('outputs', MoneroTransactionDestinationEntry, p.FLAG_REPEATED), + 11: ('rsig_parts', p.BytesType, p.FLAG_REPEATED), + 12: ('outputs', MoneroTransactionDestinationEntry, p.FLAG_REPEATED), } def __init__( @@ -38,6 +39,7 @@ def __init__( mask: bytes = None, amount: bytes = None, rsig: bytes = None, + rsig_parts: List[bytes] = None, outputs: List[MoneroTransactionDestinationEntry] = None, ) -> None: self.version = version @@ -50,4 +52,5 @@ def __init__( self.mask = mask self.amount = amount self.rsig = rsig + self.rsig_parts = rsig_parts if rsig_parts is not None else [] self.outputs = outputs if outputs is not None else [] diff --git a/src/trezor/messages/TronAccountUpdateContract.py b/src/trezor/messages/TronAccountUpdateContract.py new file mode 100644 index 000000000..2a91ed8cd --- /dev/null +++ b/src/trezor/messages/TronAccountUpdateContract.py @@ -0,0 +1,15 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronAccountUpdateContract(p.MessageType): + FIELDS = { + 1: ('account_name', p.UnicodeType, 0), + } + + def __init__( + self, + account_name: str = None, + ) -> None: + self.account_name = account_name diff --git a/src/trezor/messages/TronAddress.py b/src/trezor/messages/TronAddress.py new file mode 100644 index 000000000..51b96379b --- /dev/null +++ b/src/trezor/messages/TronAddress.py @@ -0,0 +1,16 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronAddress(p.MessageType): + MESSAGE_WIRE_TYPE = 251 + FIELDS = { + 1: ('address', p.UnicodeType, 0), + } + + def __init__( + self, + address: str = None, + ) -> None: + self.address = address diff --git a/src/trezor/messages/TronAssetIssueContract.py b/src/trezor/messages/TronAssetIssueContract.py new file mode 100644 index 000000000..e21a44bbf --- /dev/null +++ b/src/trezor/messages/TronAssetIssueContract.py @@ -0,0 +1,50 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + +from .TronFrozenSupply import TronFrozenSupply + +if __debug__: + try: + from typing import List + except ImportError: + List = None # type: ignore + + +class TronAssetIssueContract(p.MessageType): + FIELDS = { + 2: ('name', p.UnicodeType, 0), + 3: ('abbr', p.UnicodeType, 0), + 4: ('total_supply', p.UVarintType, 0), + 5: ('frozen_supply', TronFrozenSupply, p.FLAG_REPEATED), + 6: ('trx_num', p.UVarintType, 0), + 7: ('num', p.UVarintType, 0), + 8: ('start_time', p.UVarintType, 0), + 9: ('end_time', p.UVarintType, 0), + 10: ('description', p.UnicodeType, 0), + 11: ('url', p.UnicodeType, 0), + } + + def __init__( + self, + name: str = None, + abbr: str = None, + total_supply: int = None, + frozen_supply: List[TronFrozenSupply] = None, + trx_num: int = None, + num: int = None, + start_time: int = None, + end_time: int = None, + description: str = None, + url: str = None, + ) -> None: + self.name = name + self.abbr = abbr + self.total_supply = total_supply + self.frozen_supply = frozen_supply if frozen_supply is not None else [] + self.trx_num = trx_num + self.num = num + self.start_time = start_time + self.end_time = end_time + self.description = description + self.url = url diff --git a/src/trezor/messages/TronContract.py b/src/trezor/messages/TronContract.py new file mode 100644 index 000000000..8e7bec99b --- /dev/null +++ b/src/trezor/messages/TronContract.py @@ -0,0 +1,77 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + +from .TronAccountUpdateContract import TronAccountUpdateContract +from .TronAssetIssueContract import TronAssetIssueContract +from .TronFreezeBalanceContract import TronFreezeBalanceContract +from .TronParticipateAssetIssueContract import TronParticipateAssetIssueContract +from .TronProposalApproveContract import TronProposalApproveContract +from .TronProposalCreateContract import TronProposalCreateContract +from .TronProposalDeleteContract import TronProposalDeleteContract +from .TronTransferAssetContract import TronTransferAssetContract +from .TronTransferContract import TronTransferContract +from .TronUnfreezeAssetContract import TronUnfreezeAssetContract +from .TronUnfreezeBalanceContract import TronUnfreezeBalanceContract +from .TronUpdateAssetContract import TronUpdateAssetContract +from .TronVoteWitnessContract import TronVoteWitnessContract +from .TronWithdrawBalanceContract import TronWithdrawBalanceContract +from .TronWitnessCreateContract import TronWitnessCreateContract +from .TronWitnessUpdateContract import TronWitnessUpdateContract + + +class TronContract(p.MessageType): + FIELDS = { + 1: ('transfer_contract', TronTransferContract, 0), + 2: ('transfer_asset_contract', TronTransferAssetContract, 0), + 4: ('vote_witness_contract', TronVoteWitnessContract, 0), + 5: ('witness_create_contract', TronWitnessCreateContract, 0), + 6: ('asset_issue_contract', TronAssetIssueContract, 0), + 8: ('witness_update_contract', TronWitnessUpdateContract, 0), + 9: ('participate_asset_issue_contract', TronParticipateAssetIssueContract, 0), + 10: ('account_update_contract', TronAccountUpdateContract, 0), + 11: ('freeze_balance_contract', TronFreezeBalanceContract, 0), + 12: ('unfreeze_balance_contract', TronUnfreezeBalanceContract, 0), + 13: ('withdraw_balance_contract', TronWithdrawBalanceContract, 0), + 14: ('unfreeze_asset_contract', TronUnfreezeAssetContract, 0), + 15: ('update_asset_contract', TronUpdateAssetContract, 0), + 16: ('proposal_create_contract', TronProposalCreateContract, 0), + 17: ('proposal_approve_contract', TronProposalApproveContract, 0), + 18: ('proposal_delete_contract', TronProposalDeleteContract, 0), + } + + def __init__( + self, + transfer_contract: TronTransferContract = None, + transfer_asset_contract: TronTransferAssetContract = None, + vote_witness_contract: TronVoteWitnessContract = None, + witness_create_contract: TronWitnessCreateContract = None, + asset_issue_contract: TronAssetIssueContract = None, + witness_update_contract: TronWitnessUpdateContract = None, + participate_asset_issue_contract: TronParticipateAssetIssueContract = None, + account_update_contract: TronAccountUpdateContract = None, + freeze_balance_contract: TronFreezeBalanceContract = None, + unfreeze_balance_contract: TronUnfreezeBalanceContract = None, + withdraw_balance_contract: TronWithdrawBalanceContract = None, + unfreeze_asset_contract: TronUnfreezeAssetContract = None, + update_asset_contract: TronUpdateAssetContract = None, + proposal_create_contract: TronProposalCreateContract = None, + proposal_approve_contract: TronProposalApproveContract = None, + proposal_delete_contract: TronProposalDeleteContract = None, + ) -> None: + self.transfer_contract = transfer_contract + self.transfer_asset_contract = transfer_asset_contract + self.vote_witness_contract = vote_witness_contract + self.witness_create_contract = witness_create_contract + self.asset_issue_contract = asset_issue_contract + self.witness_update_contract = witness_update_contract + self.participate_asset_issue_contract = participate_asset_issue_contract + self.account_update_contract = account_update_contract + self.freeze_balance_contract = freeze_balance_contract + self.unfreeze_balance_contract = unfreeze_balance_contract + self.withdraw_balance_contract = withdraw_balance_contract + self.unfreeze_asset_contract = unfreeze_asset_contract + self.update_asset_contract = update_asset_contract + self.proposal_create_contract = proposal_create_contract + self.proposal_approve_contract = proposal_approve_contract + self.proposal_delete_contract = proposal_delete_contract diff --git a/src/trezor/messages/TronFreezeBalanceContract.py b/src/trezor/messages/TronFreezeBalanceContract.py new file mode 100644 index 000000000..a31df6e34 --- /dev/null +++ b/src/trezor/messages/TronFreezeBalanceContract.py @@ -0,0 +1,18 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronFreezeBalanceContract(p.MessageType): + FIELDS = { + 1: ('frozen_balance', p.UVarintType, 0), + 2: ('frozen_duration', p.UVarintType, 0), + } + + def __init__( + self, + frozen_balance: int = None, + frozen_duration: int = None, + ) -> None: + self.frozen_balance = frozen_balance + self.frozen_duration = frozen_duration diff --git a/src/trezor/messages/TronFrozenSupply.py b/src/trezor/messages/TronFrozenSupply.py new file mode 100644 index 000000000..ada983abc --- /dev/null +++ b/src/trezor/messages/TronFrozenSupply.py @@ -0,0 +1,18 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronFrozenSupply(p.MessageType): + FIELDS = { + 1: ('frozen_amount', p.UVarintType, 0), + 2: ('frozen_days', p.UVarintType, 0), + } + + def __init__( + self, + frozen_amount: int = None, + frozen_days: int = None, + ) -> None: + self.frozen_amount = frozen_amount + self.frozen_days = frozen_days diff --git a/src/trezor/messages/MoneroLiteInitRequest.py b/src/trezor/messages/TronGetAddress.py similarity index 68% rename from src/trezor/messages/MoneroLiteInitRequest.py rename to src/trezor/messages/TronGetAddress.py index bcce17f0f..d81efb516 100644 --- a/src/trezor/messages/MoneroLiteInitRequest.py +++ b/src/trezor/messages/TronGetAddress.py @@ -9,17 +9,17 @@ List = None # type: ignore -class MoneroLiteInitRequest(p.MessageType): - MESSAGE_WIRE_TYPE = 540 +class TronGetAddress(p.MessageType): + MESSAGE_WIRE_TYPE = 250 FIELDS = { 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 3: ('network_type', p.UVarintType, 0), + 2: ('show_display', p.BoolType, 0), } def __init__( self, address_n: List[int] = None, - network_type: int = None, + show_display: bool = None, ) -> None: self.address_n = address_n if address_n is not None else [] - self.network_type = network_type + self.show_display = show_display diff --git a/src/trezor/messages/TronParticipateAssetIssueContract.py b/src/trezor/messages/TronParticipateAssetIssueContract.py new file mode 100644 index 000000000..e6f755d92 --- /dev/null +++ b/src/trezor/messages/TronParticipateAssetIssueContract.py @@ -0,0 +1,21 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronParticipateAssetIssueContract(p.MessageType): + FIELDS = { + 1: ('to_address', p.BytesType, 0), + 2: ('asset_name', p.UnicodeType, 0), + 3: ('amount', p.UVarintType, 0), + } + + def __init__( + self, + to_address: bytes = None, + asset_name: str = None, + amount: int = None, + ) -> None: + self.to_address = to_address + self.asset_name = asset_name + self.amount = amount diff --git a/src/trezor/messages/TronProposalApproveContract.py b/src/trezor/messages/TronProposalApproveContract.py new file mode 100644 index 000000000..3f8f906e5 --- /dev/null +++ b/src/trezor/messages/TronProposalApproveContract.py @@ -0,0 +1,18 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronProposalApproveContract(p.MessageType): + FIELDS = { + 1: ('proposal_id', p.UVarintType, 0), + 2: ('is_add_approval', p.BoolType, 0), + } + + def __init__( + self, + proposal_id: int = None, + is_add_approval: bool = None, + ) -> None: + self.proposal_id = proposal_id + self.is_add_approval = is_add_approval diff --git a/src/trezor/messages/TronProposalCreateContract.py b/src/trezor/messages/TronProposalCreateContract.py new file mode 100644 index 000000000..d7058c365 --- /dev/null +++ b/src/trezor/messages/TronProposalCreateContract.py @@ -0,0 +1,23 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + +from .TronProposalParameters import TronProposalParameters + +if __debug__: + try: + from typing import List + except ImportError: + List = None # type: ignore + + +class TronProposalCreateContract(p.MessageType): + FIELDS = { + 1: ('parameters', TronProposalParameters, p.FLAG_REPEATED), + } + + def __init__( + self, + parameters: List[TronProposalParameters] = None, + ) -> None: + self.parameters = parameters if parameters is not None else [] diff --git a/src/trezor/messages/TronProposalDeleteContract.py b/src/trezor/messages/TronProposalDeleteContract.py new file mode 100644 index 000000000..11448cbc5 --- /dev/null +++ b/src/trezor/messages/TronProposalDeleteContract.py @@ -0,0 +1,15 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronProposalDeleteContract(p.MessageType): + FIELDS = { + 1: ('proposal_id', p.UVarintType, 0), + } + + def __init__( + self, + proposal_id: int = None, + ) -> None: + self.proposal_id = proposal_id diff --git a/src/trezor/messages/TronProposalParameters.py b/src/trezor/messages/TronProposalParameters.py new file mode 100644 index 000000000..ec016d905 --- /dev/null +++ b/src/trezor/messages/TronProposalParameters.py @@ -0,0 +1,18 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronProposalParameters(p.MessageType): + FIELDS = { + 1: ('key', p.UVarintType, 0), + 2: ('value', p.UVarintType, 0), + } + + def __init__( + self, + key: int = None, + value: int = None, + ) -> None: + self.key = key + self.value = value diff --git a/src/trezor/messages/TronSignTx.py b/src/trezor/messages/TronSignTx.py new file mode 100644 index 000000000..9bb358f27 --- /dev/null +++ b/src/trezor/messages/TronSignTx.py @@ -0,0 +1,42 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + +from .TronContract import TronContract + +if __debug__: + try: + from typing import List + except ImportError: + List = None # type: ignore + + +class TronSignTx(p.MessageType): + MESSAGE_WIRE_TYPE = 252 + FIELDS = { + 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), + 2: ('ref_block_bytes', p.BytesType, 0), + 3: ('ref_block_hash', p.BytesType, 0), + 4: ('expiration', p.UVarintType, 0), + 5: ('data', p.UnicodeType, 0), + 6: ('contract', TronContract, 0), + 7: ('timestamp', p.UVarintType, 0), + } + + def __init__( + self, + address_n: List[int] = None, + ref_block_bytes: bytes = None, + ref_block_hash: bytes = None, + expiration: int = None, + data: str = None, + contract: TronContract = None, + timestamp: int = None, + ) -> None: + self.address_n = address_n if address_n is not None else [] + self.ref_block_bytes = ref_block_bytes + self.ref_block_hash = ref_block_hash + self.expiration = expiration + self.data = data + self.contract = contract + self.timestamp = timestamp diff --git a/src/trezor/messages/TronSignedTx.py b/src/trezor/messages/TronSignedTx.py new file mode 100644 index 000000000..6e2c09ae0 --- /dev/null +++ b/src/trezor/messages/TronSignedTx.py @@ -0,0 +1,19 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronSignedTx(p.MessageType): + MESSAGE_WIRE_TYPE = 253 + FIELDS = { + 1: ('signature', p.BytesType, 0), + 2: ('serialized_tx', p.BytesType, 0), + } + + def __init__( + self, + signature: bytes = None, + serialized_tx: bytes = None, + ) -> None: + self.signature = signature + self.serialized_tx = serialized_tx diff --git a/src/trezor/messages/TronTransferAssetContract.py b/src/trezor/messages/TronTransferAssetContract.py new file mode 100644 index 000000000..f2ec1f2d4 --- /dev/null +++ b/src/trezor/messages/TronTransferAssetContract.py @@ -0,0 +1,21 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronTransferAssetContract(p.MessageType): + FIELDS = { + 1: ('asset_name', p.UnicodeType, 0), + 2: ('to_address', p.BytesType, 0), + 3: ('amount', p.UVarintType, 0), + } + + def __init__( + self, + asset_name: str = None, + to_address: bytes = None, + amount: int = None, + ) -> None: + self.asset_name = asset_name + self.to_address = to_address + self.amount = amount diff --git a/src/trezor/messages/TronTransferContract.py b/src/trezor/messages/TronTransferContract.py new file mode 100644 index 000000000..def94e975 --- /dev/null +++ b/src/trezor/messages/TronTransferContract.py @@ -0,0 +1,18 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronTransferContract(p.MessageType): + FIELDS = { + 1: ('to_address', p.BytesType, 0), + 2: ('amount', p.UVarintType, 0), + } + + def __init__( + self, + to_address: bytes = None, + amount: int = None, + ) -> None: + self.to_address = to_address + self.amount = amount diff --git a/src/trezor/messages/MoneroLiteInitAck.py b/src/trezor/messages/TronUnfreezeAssetContract.py similarity index 50% rename from src/trezor/messages/MoneroLiteInitAck.py rename to src/trezor/messages/TronUnfreezeAssetContract.py index 660464fc0..e345f2029 100644 --- a/src/trezor/messages/MoneroLiteInitAck.py +++ b/src/trezor/messages/TronUnfreezeAssetContract.py @@ -3,5 +3,5 @@ import protobuf as p -class MoneroLiteInitAck(p.MessageType): - MESSAGE_WIRE_TYPE = 541 +class TronUnfreezeAssetContract(p.MessageType): + pass diff --git a/src/trezor/messages/TronUnfreezeBalanceContract.py b/src/trezor/messages/TronUnfreezeBalanceContract.py new file mode 100644 index 000000000..cf099ae4c --- /dev/null +++ b/src/trezor/messages/TronUnfreezeBalanceContract.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronUnfreezeBalanceContract(p.MessageType): + pass diff --git a/src/trezor/messages/TronUpdateAssetContract.py b/src/trezor/messages/TronUpdateAssetContract.py new file mode 100644 index 000000000..128cfd5d9 --- /dev/null +++ b/src/trezor/messages/TronUpdateAssetContract.py @@ -0,0 +1,18 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronUpdateAssetContract(p.MessageType): + FIELDS = { + 1: ('description', p.UnicodeType, 0), + 2: ('url', p.UnicodeType, 0), + } + + def __init__( + self, + description: str = None, + url: str = None, + ) -> None: + self.description = description + self.url = url diff --git a/src/trezor/messages/TronVote.py b/src/trezor/messages/TronVote.py new file mode 100644 index 000000000..adaf5fa34 --- /dev/null +++ b/src/trezor/messages/TronVote.py @@ -0,0 +1,18 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronVote(p.MessageType): + FIELDS = { + 1: ('vote_address', p.BytesType, 0), + 2: ('vote_count', p.UVarintType, 0), + } + + def __init__( + self, + vote_address: bytes = None, + vote_count: int = None, + ) -> None: + self.vote_address = vote_address + self.vote_count = vote_count diff --git a/src/trezor/messages/TronVoteWitnessContract.py b/src/trezor/messages/TronVoteWitnessContract.py new file mode 100644 index 000000000..71724e181 --- /dev/null +++ b/src/trezor/messages/TronVoteWitnessContract.py @@ -0,0 +1,23 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + +from .TronVote import TronVote + +if __debug__: + try: + from typing import List + except ImportError: + List = None # type: ignore + + +class TronVoteWitnessContract(p.MessageType): + FIELDS = { + 1: ('votes', TronVote, p.FLAG_REPEATED), + } + + def __init__( + self, + votes: List[TronVote] = None, + ) -> None: + self.votes = votes if votes is not None else [] diff --git a/src/trezor/messages/TronWithdrawBalanceContract.py b/src/trezor/messages/TronWithdrawBalanceContract.py new file mode 100644 index 000000000..703196642 --- /dev/null +++ b/src/trezor/messages/TronWithdrawBalanceContract.py @@ -0,0 +1,7 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronWithdrawBalanceContract(p.MessageType): + pass diff --git a/src/trezor/messages/TronWitnessCreateContract.py b/src/trezor/messages/TronWitnessCreateContract.py new file mode 100644 index 000000000..d631e37a8 --- /dev/null +++ b/src/trezor/messages/TronWitnessCreateContract.py @@ -0,0 +1,15 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronWitnessCreateContract(p.MessageType): + FIELDS = { + 1: ('url', p.UnicodeType, 0), + } + + def __init__( + self, + url: str = None, + ) -> None: + self.url = url diff --git a/src/trezor/messages/TronWitnessUpdateContract.py b/src/trezor/messages/TronWitnessUpdateContract.py new file mode 100644 index 000000000..1dd778cae --- /dev/null +++ b/src/trezor/messages/TronWitnessUpdateContract.py @@ -0,0 +1,15 @@ +# Automatically generated by pb2py +# fmt: off +import protobuf as p + + +class TronWitnessUpdateContract(p.MessageType): + FIELDS = { + 2: ('update_url', p.UnicodeType, 0), + } + + def __init__( + self, + update_url: str = None, + ) -> None: + self.update_url = update_url diff --git a/vendor/trezor-common b/vendor/trezor-common index 4e7df217d..0c39ac7fc 160000 --- a/vendor/trezor-common +++ b/vendor/trezor-common @@ -1 +1 @@ -Subproject commit 4e7df217d337c8800fc91bac61038918bf3773e4 +Subproject commit 0c39ac7fc2b1d0a68785d4618059efdc8b2d156a