diff --git a/src/trezor/messages/Address.py b/src/trezor/messages/Address.py index 4296c51de4..5601db6803 100644 --- a/src/trezor/messages/Address.py +++ b/src/trezor/messages/Address.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class Address(p.MessageType): def __init__( self, - address: str = None + address: str = None, ) -> None: self.address = address diff --git a/src/trezor/messages/ApplyFlags.py b/src/trezor/messages/ApplyFlags.py index 32217a28f0..5b7646f93e 100644 --- a/src/trezor/messages/ApplyFlags.py +++ b/src/trezor/messages/ApplyFlags.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class ApplyFlags(p.MessageType): def __init__( self, - flags: int = None + flags: int = None, ) -> None: self.flags = flags diff --git a/src/trezor/messages/ApplySettings.py b/src/trezor/messages/ApplySettings.py index 3432a3f71c..a44bc9ec75 100644 --- a/src/trezor/messages/ApplySettings.py +++ b/src/trezor/messages/ApplySettings.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -20,7 +21,7 @@ class ApplySettings(p.MessageType): use_passphrase: bool = None, homescreen: bytes = None, passphrase_source: int = None, - auto_lock_delay_ms: int = None + auto_lock_delay_ms: int = None, ) -> None: self.language = language self.label = label diff --git a/src/trezor/messages/BackupDevice.py b/src/trezor/messages/BackupDevice.py index f44788ff8d..2ddadbf1d2 100644 --- a/src/trezor/messages/BackupDevice.py +++ b/src/trezor/messages/BackupDevice.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/ButtonAck.py b/src/trezor/messages/ButtonAck.py index 08b1691836..ab6c16c502 100644 --- a/src/trezor/messages/ButtonAck.py +++ b/src/trezor/messages/ButtonAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/ButtonRequest.py b/src/trezor/messages/ButtonRequest.py index 60d96c824a..c7be3f2b31 100644 --- a/src/trezor/messages/ButtonRequest.py +++ b/src/trezor/messages/ButtonRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class ButtonRequest(p.MessageType): def __init__( self, code: int = None, - data: str = None + data: str = None, ) -> None: self.code = code self.data = data diff --git a/src/trezor/messages/ButtonRequestType.py b/src/trezor/messages/ButtonRequestType.py index bfe32c7a44..d83e5dc115 100644 --- a/src/trezor/messages/ButtonRequestType.py +++ b/src/trezor/messages/ButtonRequestType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off Other = 1 FeeOverThreshold = 2 ConfirmOutput = 3 diff --git a/src/trezor/messages/Cancel.py b/src/trezor/messages/Cancel.py index 4f8a68df71..83167dca6f 100644 --- a/src/trezor/messages/Cancel.py +++ b/src/trezor/messages/Cancel.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/ChangePin.py b/src/trezor/messages/ChangePin.py index 27f975a49a..218caea337 100644 --- a/src/trezor/messages/ChangePin.py +++ b/src/trezor/messages/ChangePin.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class ChangePin(p.MessageType): def __init__( self, - remove: bool = None + remove: bool = None, ) -> None: self.remove = remove diff --git a/src/trezor/messages/CipherKeyValue.py b/src/trezor/messages/CipherKeyValue.py index 32c8e814b6..190f59d4e6 100644 --- a/src/trezor/messages/CipherKeyValue.py +++ b/src/trezor/messages/CipherKeyValue.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class CipherKeyValue(p.MessageType): @@ -27,7 +28,7 @@ class CipherKeyValue(p.MessageType): encrypt: bool = None, ask_on_encrypt: bool = None, ask_on_decrypt: bool = None, - iv: bytes = None + iv: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.key = key diff --git a/src/trezor/messages/CipheredKeyValue.py b/src/trezor/messages/CipheredKeyValue.py index d091981b64..9517bee1fa 100644 --- a/src/trezor/messages/CipheredKeyValue.py +++ b/src/trezor/messages/CipheredKeyValue.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class CipheredKeyValue(p.MessageType): def __init__( self, - value: bytes = None + value: bytes = None, ) -> None: self.value = value diff --git a/src/trezor/messages/ClearSession.py b/src/trezor/messages/ClearSession.py index 808d5b76ee..63423b64b3 100644 --- a/src/trezor/messages/ClearSession.py +++ b/src/trezor/messages/ClearSession.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/CosiCommit.py b/src/trezor/messages/CosiCommit.py index dd85dc8ace..810fad513a 100644 --- a/src/trezor/messages/CosiCommit.py +++ b/src/trezor/messages/CosiCommit.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class CosiCommit(p.MessageType): @@ -17,7 +18,7 @@ class CosiCommit(p.MessageType): def __init__( self, address_n: List[int] = None, - data: bytes = None + data: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.data = data diff --git a/src/trezor/messages/CosiCommitment.py b/src/trezor/messages/CosiCommitment.py index d83cbd52c4..c6333a695f 100644 --- a/src/trezor/messages/CosiCommitment.py +++ b/src/trezor/messages/CosiCommitment.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class CosiCommitment(p.MessageType): def __init__( self, commitment: bytes = None, - pubkey: bytes = None + pubkey: bytes = None, ) -> None: self.commitment = commitment self.pubkey = pubkey diff --git a/src/trezor/messages/CosiSign.py b/src/trezor/messages/CosiSign.py index 6dc0183035..af354d1a2a 100644 --- a/src/trezor/messages/CosiSign.py +++ b/src/trezor/messages/CosiSign.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class CosiSign(p.MessageType): @@ -21,7 +22,7 @@ class CosiSign(p.MessageType): address_n: List[int] = None, data: bytes = None, global_commitment: bytes = None, - global_pubkey: bytes = None + global_pubkey: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.data = data diff --git a/src/trezor/messages/CosiSignature.py b/src/trezor/messages/CosiSignature.py index 69ec65e6d5..5671c7f166 100644 --- a/src/trezor/messages/CosiSignature.py +++ b/src/trezor/messages/CosiSignature.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class CosiSignature(p.MessageType): def __init__( self, - signature: bytes = None + signature: bytes = None, ) -> None: self.signature = signature diff --git a/src/trezor/messages/DebugLinkDecision.py b/src/trezor/messages/DebugLinkDecision.py index bcc8f247e3..87b0788389 100644 --- a/src/trezor/messages/DebugLinkDecision.py +++ b/src/trezor/messages/DebugLinkDecision.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class DebugLinkDecision(p.MessageType): self, yes_no: bool = None, up_down: bool = None, - input: str = None + input: str = None, ) -> None: self.yes_no = yes_no self.up_down = up_down diff --git a/src/trezor/messages/DebugLinkFlashErase.py b/src/trezor/messages/DebugLinkFlashErase.py index 74f36a8059..38fd87f101 100644 --- a/src/trezor/messages/DebugLinkFlashErase.py +++ b/src/trezor/messages/DebugLinkFlashErase.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class DebugLinkFlashErase(p.MessageType): def __init__( self, - sector: int = None + sector: int = None, ) -> None: self.sector = sector diff --git a/src/trezor/messages/DebugLinkGetState.py b/src/trezor/messages/DebugLinkGetState.py index 35cbbf9afe..1c17ef4a6d 100644 --- a/src/trezor/messages/DebugLinkGetState.py +++ b/src/trezor/messages/DebugLinkGetState.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/DebugLinkLog.py b/src/trezor/messages/DebugLinkLog.py index 953267d2ba..6728828111 100644 --- a/src/trezor/messages/DebugLinkLog.py +++ b/src/trezor/messages/DebugLinkLog.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class DebugLinkLog(p.MessageType): self, level: int = None, bucket: str = None, - text: str = None + text: str = None, ) -> None: self.level = level self.bucket = bucket diff --git a/src/trezor/messages/DebugLinkMemory.py b/src/trezor/messages/DebugLinkMemory.py index 59880190fb..14228833fc 100644 --- a/src/trezor/messages/DebugLinkMemory.py +++ b/src/trezor/messages/DebugLinkMemory.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class DebugLinkMemory(p.MessageType): def __init__( self, - memory: bytes = None + memory: bytes = None, ) -> None: self.memory = memory diff --git a/src/trezor/messages/DebugLinkMemoryRead.py b/src/trezor/messages/DebugLinkMemoryRead.py index 22b07a4fe9..3973c42717 100644 --- a/src/trezor/messages/DebugLinkMemoryRead.py +++ b/src/trezor/messages/DebugLinkMemoryRead.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class DebugLinkMemoryRead(p.MessageType): def __init__( self, address: int = None, - length: int = None + length: int = None, ) -> None: self.address = address self.length = length diff --git a/src/trezor/messages/DebugLinkMemoryWrite.py b/src/trezor/messages/DebugLinkMemoryWrite.py index 9e1228aca3..a5aaf9c12d 100644 --- a/src/trezor/messages/DebugLinkMemoryWrite.py +++ b/src/trezor/messages/DebugLinkMemoryWrite.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class DebugLinkMemoryWrite(p.MessageType): self, address: int = None, memory: bytes = None, - flash: bool = None + flash: bool = None, ) -> None: self.address = address self.memory = memory diff --git a/src/trezor/messages/DebugLinkState.py b/src/trezor/messages/DebugLinkState.py index 53168b3e7c..65b770917c 100644 --- a/src/trezor/messages/DebugLinkState.py +++ b/src/trezor/messages/DebugLinkState.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .HDNodeType import HDNodeType @@ -31,7 +32,7 @@ class DebugLinkState(p.MessageType): reset_entropy: bytes = None, recovery_fake_word: str = None, recovery_word_pos: int = None, - reset_word_pos: int = None + reset_word_pos: int = None, ) -> None: self.layout = layout self.pin = pin diff --git a/src/trezor/messages/DebugLinkStop.py b/src/trezor/messages/DebugLinkStop.py index 5025da0b96..d4b1e4ff87 100644 --- a/src/trezor/messages/DebugLinkStop.py +++ b/src/trezor/messages/DebugLinkStop.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/DecryptMessage.py b/src/trezor/messages/DecryptMessage.py index f4fb6402a1..b025ef01f7 100644 --- a/src/trezor/messages/DecryptMessage.py +++ b/src/trezor/messages/DecryptMessage.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class DecryptMessage(p.MessageType): @@ -21,7 +22,7 @@ class DecryptMessage(p.MessageType): address_n: List[int] = None, nonce: bytes = None, message: bytes = None, - hmac: bytes = None + hmac: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.nonce = nonce diff --git a/src/trezor/messages/DecryptedMessage.py b/src/trezor/messages/DecryptedMessage.py index 53612b23ac..7435a2e604 100644 --- a/src/trezor/messages/DecryptedMessage.py +++ b/src/trezor/messages/DecryptedMessage.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class DecryptedMessage(p.MessageType): def __init__( self, message: bytes = None, - address: str = None + address: str = None, ) -> None: self.message = message self.address = address diff --git a/src/trezor/messages/ECDHSessionKey.py b/src/trezor/messages/ECDHSessionKey.py index 3369dd366d..c7bb793466 100644 --- a/src/trezor/messages/ECDHSessionKey.py +++ b/src/trezor/messages/ECDHSessionKey.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class ECDHSessionKey(p.MessageType): def __init__( self, - session_key: bytes = None + session_key: bytes = None, ) -> None: self.session_key = session_key diff --git a/src/trezor/messages/EncryptMessage.py b/src/trezor/messages/EncryptMessage.py index f47bb7a862..2f46de9669 100644 --- a/src/trezor/messages/EncryptMessage.py +++ b/src/trezor/messages/EncryptMessage.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class EncryptMessage(p.MessageType): @@ -14,7 +15,7 @@ class EncryptMessage(p.MessageType): 2: ('message', p.BytesType, 0), 3: ('display_only', p.BoolType, 0), 4: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 5: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' + 5: ('coin_name', p.UnicodeType, 0), # default=Bitcoin } def __init__( @@ -23,7 +24,7 @@ class EncryptMessage(p.MessageType): message: bytes = None, display_only: bool = None, address_n: List[int] = None, - coin_name: str = None + coin_name: str = None, ) -> None: self.pubkey = pubkey self.message = message diff --git a/src/trezor/messages/EncryptedMessage.py b/src/trezor/messages/EncryptedMessage.py index e7ba4e59cd..8e2b1e9cb8 100644 --- a/src/trezor/messages/EncryptedMessage.py +++ b/src/trezor/messages/EncryptedMessage.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class EncryptedMessage(p.MessageType): self, nonce: bytes = None, message: bytes = None, - hmac: bytes = None + hmac: bytes = None, ) -> None: self.nonce = nonce self.message = message diff --git a/src/trezor/messages/Entropy.py b/src/trezor/messages/Entropy.py index dfcb22859b..064e61d0f1 100644 --- a/src/trezor/messages/Entropy.py +++ b/src/trezor/messages/Entropy.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class Entropy(p.MessageType): def __init__( self, - entropy: bytes = None + entropy: bytes = None, ) -> None: self.entropy = entropy diff --git a/src/trezor/messages/EntropyAck.py b/src/trezor/messages/EntropyAck.py index 1032635e9f..c66f45dab6 100644 --- a/src/trezor/messages/EntropyAck.py +++ b/src/trezor/messages/EntropyAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class EntropyAck(p.MessageType): def __init__( self, - entropy: bytes = None + entropy: bytes = None, ) -> None: self.entropy = entropy diff --git a/src/trezor/messages/EntropyRequest.py b/src/trezor/messages/EntropyRequest.py index fa732dacc6..71bbc26326 100644 --- a/src/trezor/messages/EntropyRequest.py +++ b/src/trezor/messages/EntropyRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/EstimateTxSize.py b/src/trezor/messages/EstimateTxSize.py index 6f5548698f..f442e9e280 100644 --- a/src/trezor/messages/EstimateTxSize.py +++ b/src/trezor/messages/EstimateTxSize.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -7,14 +8,14 @@ class EstimateTxSize(p.MessageType): FIELDS = { 1: ('outputs_count', p.UVarintType, 0), # required 2: ('inputs_count', p.UVarintType, 0), # required - 3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' + 3: ('coin_name', p.UnicodeType, 0), # default=Bitcoin } def __init__( self, outputs_count: int = None, inputs_count: int = None, - coin_name: str = None + coin_name: str = None, ) -> None: self.outputs_count = outputs_count self.inputs_count = inputs_count diff --git a/src/trezor/messages/EthereumAddress.py b/src/trezor/messages/EthereumAddress.py index 908c9516c5..18ac5787f5 100644 --- a/src/trezor/messages/EthereumAddress.py +++ b/src/trezor/messages/EthereumAddress.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class EthereumAddress(p.MessageType): def __init__( self, - address: bytes = None + address: bytes = None, ) -> None: self.address = address diff --git a/src/trezor/messages/EthereumGetAddress.py b/src/trezor/messages/EthereumGetAddress.py index 6d05f502ac..f7fb57797e 100644 --- a/src/trezor/messages/EthereumGetAddress.py +++ b/src/trezor/messages/EthereumGetAddress.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class EthereumGetAddress(p.MessageType): @@ -17,7 +18,7 @@ class EthereumGetAddress(p.MessageType): def __init__( self, address_n: List[int] = None, - show_display: bool = None + show_display: bool = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.show_display = show_display diff --git a/src/trezor/messages/EthereumMessageSignature.py b/src/trezor/messages/EthereumMessageSignature.py index 4e84668c2a..9caf9a91c2 100644 --- a/src/trezor/messages/EthereumMessageSignature.py +++ b/src/trezor/messages/EthereumMessageSignature.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class EthereumMessageSignature(p.MessageType): def __init__( self, address: bytes = None, - signature: bytes = None + signature: bytes = None, ) -> None: self.address = address self.signature = signature diff --git a/src/trezor/messages/EthereumSignMessage.py b/src/trezor/messages/EthereumSignMessage.py index 18ff53d789..e9f3065bd6 100644 --- a/src/trezor/messages/EthereumSignMessage.py +++ b/src/trezor/messages/EthereumSignMessage.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class EthereumSignMessage(p.MessageType): @@ -17,7 +18,7 @@ class EthereumSignMessage(p.MessageType): def __init__( self, address_n: List[int] = None, - message: bytes = None + message: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.message = message diff --git a/src/trezor/messages/EthereumSignTx.py b/src/trezor/messages/EthereumSignTx.py index 5b1f0883d6..cf20243562 100644 --- a/src/trezor/messages/EthereumSignTx.py +++ b/src/trezor/messages/EthereumSignTx.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class EthereumSignTx(p.MessageType): @@ -33,7 +34,7 @@ class EthereumSignTx(p.MessageType): data_initial_chunk: bytes = None, data_length: int = None, chain_id: int = None, - tx_type: int = None + tx_type: int = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.nonce = nonce diff --git a/src/trezor/messages/EthereumTxAck.py b/src/trezor/messages/EthereumTxAck.py index 68ed7102d3..ec96352bad 100644 --- a/src/trezor/messages/EthereumTxAck.py +++ b/src/trezor/messages/EthereumTxAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class EthereumTxAck(p.MessageType): def __init__( self, - data_chunk: bytes = None + data_chunk: bytes = None, ) -> None: self.data_chunk = data_chunk diff --git a/src/trezor/messages/EthereumTxRequest.py b/src/trezor/messages/EthereumTxRequest.py index f85e93c40b..2766d90670 100644 --- a/src/trezor/messages/EthereumTxRequest.py +++ b/src/trezor/messages/EthereumTxRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -16,7 +17,7 @@ class EthereumTxRequest(p.MessageType): data_length: int = None, signature_v: int = None, signature_r: bytes = None, - signature_s: bytes = None + signature_s: bytes = None, ) -> None: self.data_length = data_length self.signature_v = signature_v diff --git a/src/trezor/messages/EthereumVerifyMessage.py b/src/trezor/messages/EthereumVerifyMessage.py index 9eefe2f1b4..8fb41e519e 100644 --- a/src/trezor/messages/EthereumVerifyMessage.py +++ b/src/trezor/messages/EthereumVerifyMessage.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class EthereumVerifyMessage(p.MessageType): self, address: bytes = None, signature: bytes = None, - message: bytes = None + message: bytes = None, ) -> None: self.address = address self.signature = signature diff --git a/src/trezor/messages/Failure.py b/src/trezor/messages/Failure.py index 1bd87eb2b5..88487a1ee4 100644 --- a/src/trezor/messages/Failure.py +++ b/src/trezor/messages/Failure.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class Failure(p.MessageType): def __init__( self, code: int = None, - message: str = None + message: str = None, ) -> None: self.code = code self.message = message diff --git a/src/trezor/messages/FailureType.py b/src/trezor/messages/FailureType.py index 0fe942a294..6f5cffe184 100644 --- a/src/trezor/messages/FailureType.py +++ b/src/trezor/messages/FailureType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off UnexpectedMessage = 1 ButtonExpected = 2 DataError = 3 diff --git a/src/trezor/messages/Features.py b/src/trezor/messages/Features.py index 41f48cadc4..074358645a 100644 --- a/src/trezor/messages/Features.py +++ b/src/trezor/messages/Features.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -60,7 +61,7 @@ class Features(p.MessageType): fw_patch: int = None, fw_vendor: str = None, fw_vendor_keys: bytes = None, - unfinished_backup: bool = None + unfinished_backup: bool = None, ) -> None: self.vendor = vendor self.major_version = major_version diff --git a/src/trezor/messages/FirmwareErase.py b/src/trezor/messages/FirmwareErase.py index b90ba01631..43deb0d047 100644 --- a/src/trezor/messages/FirmwareErase.py +++ b/src/trezor/messages/FirmwareErase.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class FirmwareErase(p.MessageType): def __init__( self, - length: int = None + length: int = None, ) -> None: self.length = length diff --git a/src/trezor/messages/FirmwareRequest.py b/src/trezor/messages/FirmwareRequest.py index 33749a49e8..65212da401 100644 --- a/src/trezor/messages/FirmwareRequest.py +++ b/src/trezor/messages/FirmwareRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class FirmwareRequest(p.MessageType): def __init__( self, offset: int = None, - length: int = None + length: int = None, ) -> None: self.offset = offset self.length = length diff --git a/src/trezor/messages/FirmwareUpload.py b/src/trezor/messages/FirmwareUpload.py index f9987677dd..d5e5f9f70d 100644 --- a/src/trezor/messages/FirmwareUpload.py +++ b/src/trezor/messages/FirmwareUpload.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class FirmwareUpload(p.MessageType): def __init__( self, payload: bytes = None, - hash: bytes = None + hash: bytes = None, ) -> None: self.payload = payload self.hash = hash diff --git a/src/trezor/messages/GetAddress.py b/src/trezor/messages/GetAddress.py index 059899c8f1..15870b4000 100644 --- a/src/trezor/messages/GetAddress.py +++ b/src/trezor/messages/GetAddress.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .MultisigRedeemScriptType import MultisigRedeemScriptType @@ -12,10 +13,10 @@ class GetAddress(p.MessageType): MESSAGE_WIRE_TYPE = 29 FIELDS = { 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), - 2: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' + 2: ('coin_name', p.UnicodeType, 0), # default=Bitcoin 3: ('show_display', p.BoolType, 0), 4: ('multisig', MultisigRedeemScriptType, 0), - 5: ('script_type', p.UVarintType, 0), # default=0 + 5: ('script_type', p.UVarintType, 0), # default=SPENDADDRESS } def __init__( @@ -24,7 +25,7 @@ class GetAddress(p.MessageType): coin_name: str = None, show_display: bool = None, multisig: MultisigRedeemScriptType = None, - script_type: int = None + script_type: int = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.coin_name = coin_name diff --git a/src/trezor/messages/GetECDHSessionKey.py b/src/trezor/messages/GetECDHSessionKey.py index 7decad6b2d..ba3d7581cf 100644 --- a/src/trezor/messages/GetECDHSessionKey.py +++ b/src/trezor/messages/GetECDHSessionKey.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .IdentityType import IdentityType @@ -15,7 +16,7 @@ class GetECDHSessionKey(p.MessageType): self, identity: IdentityType = None, peer_public_key: bytes = None, - ecdsa_curve_name: str = None + ecdsa_curve_name: str = None, ) -> None: self.identity = identity self.peer_public_key = peer_public_key diff --git a/src/trezor/messages/GetEntropy.py b/src/trezor/messages/GetEntropy.py index eb416aabe2..c0536be932 100644 --- a/src/trezor/messages/GetEntropy.py +++ b/src/trezor/messages/GetEntropy.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class GetEntropy(p.MessageType): def __init__( self, - size: int = None + size: int = None, ) -> None: self.size = size diff --git a/src/trezor/messages/GetFeatures.py b/src/trezor/messages/GetFeatures.py index 85862a6217..645f1174e9 100644 --- a/src/trezor/messages/GetFeatures.py +++ b/src/trezor/messages/GetFeatures.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/GetPublicKey.py b/src/trezor/messages/GetPublicKey.py index e8d56d1462..eb1b696ad7 100644 --- a/src/trezor/messages/GetPublicKey.py +++ b/src/trezor/messages/GetPublicKey.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class GetPublicKey(p.MessageType): @@ -13,7 +14,7 @@ class GetPublicKey(p.MessageType): 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), 2: ('ecdsa_curve_name', p.UnicodeType, 0), 3: ('show_display', p.BoolType, 0), - 4: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' + 4: ('coin_name', p.UnicodeType, 0), # default=Bitcoin } def __init__( @@ -21,7 +22,7 @@ class GetPublicKey(p.MessageType): address_n: List[int] = None, ecdsa_curve_name: str = None, show_display: bool = None, - coin_name: str = None + coin_name: str = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.ecdsa_curve_name = ecdsa_curve_name diff --git a/src/trezor/messages/HDNodePathType.py b/src/trezor/messages/HDNodePathType.py index 0cf6756565..2da23b2db6 100644 --- a/src/trezor/messages/HDNodePathType.py +++ b/src/trezor/messages/HDNodePathType.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .HDNodeType import HDNodeType @@ -17,7 +18,7 @@ class HDNodePathType(p.MessageType): def __init__( self, node: HDNodeType = None, - address_n: List[int] = None + address_n: List[int] = None, ) -> None: self.node = node self.address_n = address_n if address_n is not None else [] diff --git a/src/trezor/messages/HDNodeType.py b/src/trezor/messages/HDNodeType.py index 2b021e0932..79db611324 100644 --- a/src/trezor/messages/HDNodeType.py +++ b/src/trezor/messages/HDNodeType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -19,7 +20,7 @@ class HDNodeType(p.MessageType): child_num: int = None, chain_code: bytes = None, private_key: bytes = None, - public_key: bytes = None + public_key: bytes = None, ) -> None: self.depth = depth self.fingerprint = fingerprint diff --git a/src/trezor/messages/IdentityType.py b/src/trezor/messages/IdentityType.py index acf215d6b7..429060c26b 100644 --- a/src/trezor/messages/IdentityType.py +++ b/src/trezor/messages/IdentityType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -19,7 +20,7 @@ class IdentityType(p.MessageType): host: str = None, port: str = None, path: str = None, - index: int = None + index: int = None, ) -> None: self.proto = proto self.user = user diff --git a/src/trezor/messages/Initialize.py b/src/trezor/messages/Initialize.py index 8ca438ae74..a906448a04 100644 --- a/src/trezor/messages/Initialize.py +++ b/src/trezor/messages/Initialize.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class Initialize(p.MessageType): def __init__( self, state: bytes = None, - skip_passphrase: bool = None + skip_passphrase: bool = None, ) -> None: self.state = state self.skip_passphrase = skip_passphrase diff --git a/src/trezor/messages/InputScriptType.py b/src/trezor/messages/InputScriptType.py index 960be1e4ca..09b8332cbe 100644 --- a/src/trezor/messages/InputScriptType.py +++ b/src/trezor/messages/InputScriptType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off SPENDADDRESS = 0 SPENDMULTISIG = 1 EXTERNAL = 2 diff --git a/src/trezor/messages/LiskAddress.py b/src/trezor/messages/LiskAddress.py index bbe74e5dbc..41ca8e3743 100644 --- a/src/trezor/messages/LiskAddress.py +++ b/src/trezor/messages/LiskAddress.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class LiskAddress(p.MessageType): def __init__( self, - address: str = None + address: str = None, ) -> None: self.address = address diff --git a/src/trezor/messages/LiskDelegateType.py b/src/trezor/messages/LiskDelegateType.py index 74bf3cbb51..08fd5a447c 100644 --- a/src/trezor/messages/LiskDelegateType.py +++ b/src/trezor/messages/LiskDelegateType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -9,6 +10,6 @@ class LiskDelegateType(p.MessageType): def __init__( self, - username: str = None + username: str = None, ) -> None: self.username = username diff --git a/src/trezor/messages/LiskGetAddress.py b/src/trezor/messages/LiskGetAddress.py index a85d893225..b778ad6e32 100644 --- a/src/trezor/messages/LiskGetAddress.py +++ b/src/trezor/messages/LiskGetAddress.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class LiskGetAddress(p.MessageType): @@ -17,7 +18,7 @@ class LiskGetAddress(p.MessageType): def __init__( self, address_n: List[int] = None, - show_display: bool = None + show_display: bool = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.show_display = show_display diff --git a/src/trezor/messages/LiskGetPublicKey.py b/src/trezor/messages/LiskGetPublicKey.py index c98e732545..b4b2ad1f68 100644 --- a/src/trezor/messages/LiskGetPublicKey.py +++ b/src/trezor/messages/LiskGetPublicKey.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class LiskGetPublicKey(p.MessageType): @@ -17,7 +18,7 @@ class LiskGetPublicKey(p.MessageType): def __init__( self, address_n: List[int] = None, - show_display: bool = None + show_display: bool = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.show_display = show_display diff --git a/src/trezor/messages/LiskMessageSignature.py b/src/trezor/messages/LiskMessageSignature.py index c6b98bc6a8..4ea98e0cf2 100644 --- a/src/trezor/messages/LiskMessageSignature.py +++ b/src/trezor/messages/LiskMessageSignature.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class LiskMessageSignature(p.MessageType): def __init__( self, public_key: bytes = None, - signature: bytes = None + signature: bytes = None, ) -> None: self.public_key = public_key self.signature = signature diff --git a/src/trezor/messages/LiskMultisignatureType.py b/src/trezor/messages/LiskMultisignatureType.py index eee8bb9ed7..9545280267 100644 --- a/src/trezor/messages/LiskMultisignatureType.py +++ b/src/trezor/messages/LiskMultisignatureType.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class LiskMultisignatureType(p.MessageType): @@ -18,7 +19,7 @@ class LiskMultisignatureType(p.MessageType): self, min: int = None, life_time: int = None, - keys_group: List[str] = None + keys_group: List[str] = None, ) -> None: self.min = min self.life_time = life_time diff --git a/src/trezor/messages/LiskPublicKey.py b/src/trezor/messages/LiskPublicKey.py index 0ee9f06d35..068666dd91 100644 --- a/src/trezor/messages/LiskPublicKey.py +++ b/src/trezor/messages/LiskPublicKey.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class LiskPublicKey(p.MessageType): def __init__( self, - public_key: bytes = None + public_key: bytes = None, ) -> None: self.public_key = public_key diff --git a/src/trezor/messages/LiskSignMessage.py b/src/trezor/messages/LiskSignMessage.py index 0f1ff67840..4e360f5486 100644 --- a/src/trezor/messages/LiskSignMessage.py +++ b/src/trezor/messages/LiskSignMessage.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class LiskSignMessage(p.MessageType): @@ -17,7 +18,7 @@ class LiskSignMessage(p.MessageType): def __init__( self, address_n: List[int] = None, - message: bytes = None + message: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.message = message diff --git a/src/trezor/messages/LiskSignTx.py b/src/trezor/messages/LiskSignTx.py index 0548baf253..6b3454ddca 100644 --- a/src/trezor/messages/LiskSignTx.py +++ b/src/trezor/messages/LiskSignTx.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .LiskTransactionCommon import LiskTransactionCommon @@ -18,7 +19,7 @@ class LiskSignTx(p.MessageType): def __init__( self, address_n: List[int] = None, - transaction: LiskTransactionCommon = None + transaction: LiskTransactionCommon = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.transaction = transaction diff --git a/src/trezor/messages/LiskSignatureType.py b/src/trezor/messages/LiskSignatureType.py index ffe43aa76f..49759de924 100644 --- a/src/trezor/messages/LiskSignatureType.py +++ b/src/trezor/messages/LiskSignatureType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -9,6 +10,6 @@ class LiskSignatureType(p.MessageType): def __init__( self, - public_key: bytes = None + public_key: bytes = None, ) -> None: self.public_key = public_key diff --git a/src/trezor/messages/LiskSignedTx.py b/src/trezor/messages/LiskSignedTx.py index b06a1b85a3..76e50dfe39 100644 --- a/src/trezor/messages/LiskSignedTx.py +++ b/src/trezor/messages/LiskSignedTx.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class LiskSignedTx(p.MessageType): def __init__( self, - signature: bytes = None + signature: bytes = None, ) -> None: self.signature = signature diff --git a/src/trezor/messages/LiskTransactionAsset.py b/src/trezor/messages/LiskTransactionAsset.py index 33c400bea0..0ddcd426f5 100644 --- a/src/trezor/messages/LiskTransactionAsset.py +++ b/src/trezor/messages/LiskTransactionAsset.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .LiskDelegateType import LiskDelegateType from .LiskMultisignatureType import LiskMultisignatureType from .LiskSignatureType import LiskSignatureType @@ -25,7 +26,7 @@ class LiskTransactionAsset(p.MessageType): delegate: LiskDelegateType = None, votes: List[str] = None, multisignature: LiskMultisignatureType = None, - data: str = None + data: str = None, ) -> None: self.signature = signature self.delegate = delegate diff --git a/src/trezor/messages/LiskTransactionCommon.py b/src/trezor/messages/LiskTransactionCommon.py index 13ecbee1d5..cbf31647b0 100644 --- a/src/trezor/messages/LiskTransactionCommon.py +++ b/src/trezor/messages/LiskTransactionCommon.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .LiskTransactionAsset import LiskTransactionAsset @@ -26,7 +27,7 @@ class LiskTransactionCommon(p.MessageType): requester_public_key: bytes = None, signature: bytes = None, timestamp: int = None, - asset: LiskTransactionAsset = None + asset: LiskTransactionAsset = None, ) -> None: self.type = type self.amount = amount diff --git a/src/trezor/messages/LiskTransactionType.py b/src/trezor/messages/LiskTransactionType.py index b4e55b08db..04847eed76 100644 --- a/src/trezor/messages/LiskTransactionType.py +++ b/src/trezor/messages/LiskTransactionType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off Transfer = 0 RegisterSecondPassphrase = 1 RegisterDelegate = 2 diff --git a/src/trezor/messages/LiskVerifyMessage.py b/src/trezor/messages/LiskVerifyMessage.py index 7a83fc7de0..8af866a412 100644 --- a/src/trezor/messages/LiskVerifyMessage.py +++ b/src/trezor/messages/LiskVerifyMessage.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class LiskVerifyMessage(p.MessageType): self, public_key: bytes = None, signature: bytes = None, - message: bytes = None + message: bytes = None, ) -> None: self.public_key = public_key self.signature = signature diff --git a/src/trezor/messages/LoadDevice.py b/src/trezor/messages/LoadDevice.py index db2bde13d9..840b91bbfa 100644 --- a/src/trezor/messages/LoadDevice.py +++ b/src/trezor/messages/LoadDevice.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .HDNodeType import HDNodeType @@ -10,7 +11,7 @@ class LoadDevice(p.MessageType): 2: ('node', HDNodeType, 0), 3: ('pin', p.UnicodeType, 0), 4: ('passphrase_protection', p.BoolType, 0), - 5: ('language', p.UnicodeType, 0), # default='english' + 5: ('language', p.UnicodeType, 0), # default=english 6: ('label', p.UnicodeType, 0), 7: ('skip_checksum', p.BoolType, 0), 8: ('u2f_counter', p.UVarintType, 0), @@ -25,7 +26,7 @@ class LoadDevice(p.MessageType): language: str = None, label: str = None, skip_checksum: bool = None, - u2f_counter: int = None + u2f_counter: int = None, ) -> None: self.mnemonic = mnemonic self.node = node diff --git a/src/trezor/messages/MessageSignature.py b/src/trezor/messages/MessageSignature.py index abed12bae2..8f2ad617cc 100644 --- a/src/trezor/messages/MessageSignature.py +++ b/src/trezor/messages/MessageSignature.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class MessageSignature(p.MessageType): def __init__( self, address: str = None, - signature: bytes = None + signature: bytes = None, ) -> None: self.address = address self.signature = signature diff --git a/src/trezor/messages/MessageType.py b/src/trezor/messages/MessageType.py index e927e9a4f7..7b18f51737 100644 --- a/src/trezor/messages/MessageType.py +++ b/src/trezor/messages/MessageType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off Initialize = 0 Ping = 1 Success = 2 diff --git a/src/trezor/messages/MultisigRedeemScriptType.py b/src/trezor/messages/MultisigRedeemScriptType.py index 7e7f4ec6e3..5fb4bb5c2b 100644 --- a/src/trezor/messages/MultisigRedeemScriptType.py +++ b/src/trezor/messages/MultisigRedeemScriptType.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .HDNodePathType import HDNodePathType @@ -19,7 +20,7 @@ class MultisigRedeemScriptType(p.MessageType): self, pubkeys: List[HDNodePathType] = None, signatures: List[bytes] = None, - m: int = None + m: int = None, ) -> None: self.pubkeys = pubkeys if pubkeys is not None else [] self.signatures = signatures if signatures is not None else [] diff --git a/src/trezor/messages/NEMAddress.py b/src/trezor/messages/NEMAddress.py index 44f73b5430..30f5faa226 100644 --- a/src/trezor/messages/NEMAddress.py +++ b/src/trezor/messages/NEMAddress.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class NEMAddress(p.MessageType): def __init__( self, - address: str = None + address: str = None, ) -> None: self.address = address diff --git a/src/trezor/messages/NEMAggregateModification.py b/src/trezor/messages/NEMAggregateModification.py index fb353c50cf..ffa560e79c 100644 --- a/src/trezor/messages/NEMAggregateModification.py +++ b/src/trezor/messages/NEMAggregateModification.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .NEMCosignatoryModification import NEMCosignatoryModification @@ -17,7 +18,7 @@ class NEMAggregateModification(p.MessageType): def __init__( self, modifications: List[NEMCosignatoryModification] = None, - relative_change: int = None + relative_change: int = None, ) -> None: self.modifications = modifications if modifications is not None else [] self.relative_change = relative_change diff --git a/src/trezor/messages/NEMCosignatoryModification.py b/src/trezor/messages/NEMCosignatoryModification.py index 56ddf0cac8..2af24a43d6 100644 --- a/src/trezor/messages/NEMCosignatoryModification.py +++ b/src/trezor/messages/NEMCosignatoryModification.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -11,7 +12,7 @@ class NEMCosignatoryModification(p.MessageType): def __init__( self, type: int = None, - public_key: bytes = None + public_key: bytes = None, ) -> None: self.type = type self.public_key = public_key diff --git a/src/trezor/messages/NEMDecryptMessage.py b/src/trezor/messages/NEMDecryptMessage.py index 94e507fbbe..24a6828eff 100644 --- a/src/trezor/messages/NEMDecryptMessage.py +++ b/src/trezor/messages/NEMDecryptMessage.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class NEMDecryptMessage(p.MessageType): @@ -21,7 +22,7 @@ class NEMDecryptMessage(p.MessageType): address_n: List[int] = None, network: int = None, public_key: bytes = None, - payload: bytes = None + payload: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.network = network diff --git a/src/trezor/messages/NEMDecryptedMessage.py b/src/trezor/messages/NEMDecryptedMessage.py index 143c192c89..55541f56c2 100644 --- a/src/trezor/messages/NEMDecryptedMessage.py +++ b/src/trezor/messages/NEMDecryptedMessage.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class NEMDecryptedMessage(p.MessageType): def __init__( self, - payload: bytes = None + payload: bytes = None, ) -> None: self.payload = payload diff --git a/src/trezor/messages/NEMGetAddress.py b/src/trezor/messages/NEMGetAddress.py index 2aaf0a0ce4..f42904a656 100644 --- a/src/trezor/messages/NEMGetAddress.py +++ b/src/trezor/messages/NEMGetAddress.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class NEMGetAddress(p.MessageType): @@ -19,7 +20,7 @@ class NEMGetAddress(p.MessageType): self, address_n: List[int] = None, network: int = None, - show_display: bool = None + show_display: bool = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.network = network diff --git a/src/trezor/messages/NEMImportanceTransfer.py b/src/trezor/messages/NEMImportanceTransfer.py index 209bfef3f1..f7b3db792f 100644 --- a/src/trezor/messages/NEMImportanceTransfer.py +++ b/src/trezor/messages/NEMImportanceTransfer.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -11,7 +12,7 @@ class NEMImportanceTransfer(p.MessageType): def __init__( self, mode: int = None, - public_key: bytes = None + public_key: bytes = None, ) -> None: self.mode = mode self.public_key = public_key diff --git a/src/trezor/messages/NEMImportanceTransferMode.py b/src/trezor/messages/NEMImportanceTransferMode.py index e75f62fe74..912e27eb57 100644 --- a/src/trezor/messages/NEMImportanceTransferMode.py +++ b/src/trezor/messages/NEMImportanceTransferMode.py @@ -1,3 +1,4 @@ # Automatically generated by pb2py +# fmt: off ImportanceTransfer_Activate = 1 ImportanceTransfer_Deactivate = 2 diff --git a/src/trezor/messages/NEMModificationType.py b/src/trezor/messages/NEMModificationType.py index c812172bcc..ee0f0ad70d 100644 --- a/src/trezor/messages/NEMModificationType.py +++ b/src/trezor/messages/NEMModificationType.py @@ -1,3 +1,4 @@ # Automatically generated by pb2py +# fmt: off CosignatoryModification_Add = 1 CosignatoryModification_Delete = 2 diff --git a/src/trezor/messages/NEMMosaic.py b/src/trezor/messages/NEMMosaic.py index fcca79aa51..ab83d75b5a 100644 --- a/src/trezor/messages/NEMMosaic.py +++ b/src/trezor/messages/NEMMosaic.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -13,7 +14,7 @@ class NEMMosaic(p.MessageType): self, namespace: str = None, mosaic: str = None, - quantity: int = None + quantity: int = None, ) -> None: self.namespace = namespace self.mosaic = mosaic diff --git a/src/trezor/messages/NEMMosaicCreation.py b/src/trezor/messages/NEMMosaicCreation.py index 737e010364..7e97008ced 100644 --- a/src/trezor/messages/NEMMosaicCreation.py +++ b/src/trezor/messages/NEMMosaicCreation.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .NEMMosaicDefinition import NEMMosaicDefinition @@ -14,7 +15,7 @@ class NEMMosaicCreation(p.MessageType): self, definition: NEMMosaicDefinition = None, sink: str = None, - fee: int = None + fee: int = None, ) -> None: self.definition = definition self.sink = sink diff --git a/src/trezor/messages/NEMMosaicDefinition.py b/src/trezor/messages/NEMMosaicDefinition.py index 02d631d0cd..ab3a751f19 100644 --- a/src/trezor/messages/NEMMosaicDefinition.py +++ b/src/trezor/messages/NEMMosaicDefinition.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class NEMMosaicDefinition(p.MessageType): @@ -42,7 +43,7 @@ class NEMMosaicDefinition(p.MessageType): mutable_supply: bool = None, transferable: bool = None, description: str = None, - networks: List[int] = None + networks: List[int] = None, ) -> None: self.name = name self.ticker = ticker diff --git a/src/trezor/messages/NEMMosaicLevy.py b/src/trezor/messages/NEMMosaicLevy.py index 56ef22c6fe..bf896c1024 100644 --- a/src/trezor/messages/NEMMosaicLevy.py +++ b/src/trezor/messages/NEMMosaicLevy.py @@ -1,3 +1,4 @@ # Automatically generated by pb2py +# fmt: off MosaicLevy_Absolute = 1 MosaicLevy_Percentile = 2 diff --git a/src/trezor/messages/NEMMosaicSupplyChange.py b/src/trezor/messages/NEMMosaicSupplyChange.py index 2699ec0a6f..74d37d9320 100644 --- a/src/trezor/messages/NEMMosaicSupplyChange.py +++ b/src/trezor/messages/NEMMosaicSupplyChange.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -15,7 +16,7 @@ class NEMMosaicSupplyChange(p.MessageType): namespace: str = None, mosaic: str = None, type: int = None, - delta: int = None + delta: int = None, ) -> None: self.namespace = namespace self.mosaic = mosaic diff --git a/src/trezor/messages/NEMProvisionNamespace.py b/src/trezor/messages/NEMProvisionNamespace.py index 77bd0c5bec..bad0b4b030 100644 --- a/src/trezor/messages/NEMProvisionNamespace.py +++ b/src/trezor/messages/NEMProvisionNamespace.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -15,7 +16,7 @@ class NEMProvisionNamespace(p.MessageType): namespace: str = None, parent: str = None, sink: str = None, - fee: int = None + fee: int = None, ) -> None: self.namespace = namespace self.parent = parent diff --git a/src/trezor/messages/NEMSignTx.py b/src/trezor/messages/NEMSignTx.py index 5fe71097f8..5951057e6c 100644 --- a/src/trezor/messages/NEMSignTx.py +++ b/src/trezor/messages/NEMSignTx.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .NEMAggregateModification import NEMAggregateModification from .NEMImportanceTransfer import NEMImportanceTransfer @@ -33,7 +34,7 @@ class NEMSignTx(p.MessageType): mosaic_creation: NEMMosaicCreation = None, supply_change: NEMMosaicSupplyChange = None, aggregate_modification: NEMAggregateModification = None, - importance_transfer: NEMImportanceTransfer = None + importance_transfer: NEMImportanceTransfer = None, ) -> None: self.transaction = transaction self.multisig = multisig diff --git a/src/trezor/messages/NEMSignedTx.py b/src/trezor/messages/NEMSignedTx.py index e39375192f..09a73588f9 100644 --- a/src/trezor/messages/NEMSignedTx.py +++ b/src/trezor/messages/NEMSignedTx.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class NEMSignedTx(p.MessageType): def __init__( self, data: bytes = None, - signature: bytes = None + signature: bytes = None, ) -> None: self.data = data self.signature = signature diff --git a/src/trezor/messages/NEMSupplyChangeType.py b/src/trezor/messages/NEMSupplyChangeType.py index 0633b8f9af..1a4f79b94f 100644 --- a/src/trezor/messages/NEMSupplyChangeType.py +++ b/src/trezor/messages/NEMSupplyChangeType.py @@ -1,3 +1,4 @@ # Automatically generated by pb2py +# fmt: off SupplyChange_Increase = 1 SupplyChange_Decrease = 2 diff --git a/src/trezor/messages/NEMTransactionCommon.py b/src/trezor/messages/NEMTransactionCommon.py index c3d80564ed..eedac4f815 100644 --- a/src/trezor/messages/NEMTransactionCommon.py +++ b/src/trezor/messages/NEMTransactionCommon.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class NEMTransactionCommon(p.MessageType): @@ -24,7 +25,7 @@ class NEMTransactionCommon(p.MessageType): timestamp: int = None, fee: int = None, deadline: int = None, - signer: bytes = None + signer: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.network = network diff --git a/src/trezor/messages/NEMTransfer.py b/src/trezor/messages/NEMTransfer.py index f4224cc5ac..25a29beb63 100644 --- a/src/trezor/messages/NEMTransfer.py +++ b/src/trezor/messages/NEMTransfer.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .NEMMosaic import NEMMosaic @@ -23,7 +24,7 @@ class NEMTransfer(p.MessageType): amount: int = None, payload: bytes = None, public_key: bytes = None, - mosaics: List[NEMMosaic] = None + mosaics: List[NEMMosaic] = None, ) -> None: self.recipient = recipient self.amount = amount diff --git a/src/trezor/messages/OutputScriptType.py b/src/trezor/messages/OutputScriptType.py index 96e22e3124..6a9b7eb391 100644 --- a/src/trezor/messages/OutputScriptType.py +++ b/src/trezor/messages/OutputScriptType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off PAYTOADDRESS = 0 PAYTOSCRIPTHASH = 1 PAYTOMULTISIG = 2 diff --git a/src/trezor/messages/PassphraseAck.py b/src/trezor/messages/PassphraseAck.py index e137be25cf..5bbe7798a7 100644 --- a/src/trezor/messages/PassphraseAck.py +++ b/src/trezor/messages/PassphraseAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class PassphraseAck(p.MessageType): def __init__( self, passphrase: str = None, - state: bytes = None + state: bytes = None, ) -> None: self.passphrase = passphrase self.state = state diff --git a/src/trezor/messages/PassphraseRequest.py b/src/trezor/messages/PassphraseRequest.py index cd75059104..85a3676743 100644 --- a/src/trezor/messages/PassphraseRequest.py +++ b/src/trezor/messages/PassphraseRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class PassphraseRequest(p.MessageType): def __init__( self, - on_device: bool = None + on_device: bool = None, ) -> None: self.on_device = on_device diff --git a/src/trezor/messages/PassphraseSourceType.py b/src/trezor/messages/PassphraseSourceType.py index d8c5d41d40..3bce46d10a 100644 --- a/src/trezor/messages/PassphraseSourceType.py +++ b/src/trezor/messages/PassphraseSourceType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off ASK = 0 DEVICE = 1 HOST = 2 diff --git a/src/trezor/messages/PassphraseStateAck.py b/src/trezor/messages/PassphraseStateAck.py index d2dda06881..146a6692e0 100644 --- a/src/trezor/messages/PassphraseStateAck.py +++ b/src/trezor/messages/PassphraseStateAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/PassphraseStateRequest.py b/src/trezor/messages/PassphraseStateRequest.py index 2b2c76ad62..d18f3a95be 100644 --- a/src/trezor/messages/PassphraseStateRequest.py +++ b/src/trezor/messages/PassphraseStateRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class PassphraseStateRequest(p.MessageType): def __init__( self, - state: bytes = None + state: bytes = None, ) -> None: self.state = state diff --git a/src/trezor/messages/PinMatrixAck.py b/src/trezor/messages/PinMatrixAck.py index 28127eb201..9ccd0b310c 100644 --- a/src/trezor/messages/PinMatrixAck.py +++ b/src/trezor/messages/PinMatrixAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class PinMatrixAck(p.MessageType): def __init__( self, - pin: str = None + pin: str = None, ) -> None: self.pin = pin diff --git a/src/trezor/messages/PinMatrixRequest.py b/src/trezor/messages/PinMatrixRequest.py index 67999649f8..0689dd83ef 100644 --- a/src/trezor/messages/PinMatrixRequest.py +++ b/src/trezor/messages/PinMatrixRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class PinMatrixRequest(p.MessageType): def __init__( self, - type: int = None + type: int = None, ) -> None: self.type = type diff --git a/src/trezor/messages/PinMatrixRequestType.py b/src/trezor/messages/PinMatrixRequestType.py index c1ff19ee18..2010103cb8 100644 --- a/src/trezor/messages/PinMatrixRequestType.py +++ b/src/trezor/messages/PinMatrixRequestType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off Current = 1 NewFirst = 2 NewSecond = 3 diff --git a/src/trezor/messages/Ping.py b/src/trezor/messages/Ping.py index 3896997fe2..945c6b48e3 100644 --- a/src/trezor/messages/Ping.py +++ b/src/trezor/messages/Ping.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -16,7 +17,7 @@ class Ping(p.MessageType): message: str = None, button_protection: bool = None, pin_protection: bool = None, - passphrase_protection: bool = None + passphrase_protection: bool = None, ) -> None: self.message = message self.button_protection = button_protection diff --git a/src/trezor/messages/PublicKey.py b/src/trezor/messages/PublicKey.py index 7c545161e1..1ad95b0792 100644 --- a/src/trezor/messages/PublicKey.py +++ b/src/trezor/messages/PublicKey.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .HDNodeType import HDNodeType @@ -13,7 +14,7 @@ class PublicKey(p.MessageType): def __init__( self, node: HDNodeType = None, - xpub: str = None + xpub: str = None, ) -> None: self.node = node self.xpub = xpub diff --git a/src/trezor/messages/RecoveryDevice.py b/src/trezor/messages/RecoveryDevice.py index ded489ee79..bb14d23d44 100644 --- a/src/trezor/messages/RecoveryDevice.py +++ b/src/trezor/messages/RecoveryDevice.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -8,7 +9,7 @@ class RecoveryDevice(p.MessageType): 1: ('word_count', p.UVarintType, 0), 2: ('passphrase_protection', p.BoolType, 0), 3: ('pin_protection', p.BoolType, 0), - 4: ('language', p.UnicodeType, 0), # default='english' + 4: ('language', p.UnicodeType, 0), # default=english 5: ('label', p.UnicodeType, 0), 6: ('enforce_wordlist', p.BoolType, 0), 8: ('type', p.UVarintType, 0), @@ -26,7 +27,7 @@ class RecoveryDevice(p.MessageType): enforce_wordlist: bool = None, type: int = None, u2f_counter: int = None, - dry_run: bool = None + dry_run: bool = None, ) -> None: self.word_count = word_count self.passphrase_protection = passphrase_protection diff --git a/src/trezor/messages/RecoveryDeviceType.py b/src/trezor/messages/RecoveryDeviceType.py index 21f48a9b4a..f6f643ac72 100644 --- a/src/trezor/messages/RecoveryDeviceType.py +++ b/src/trezor/messages/RecoveryDeviceType.py @@ -1,3 +1,4 @@ # Automatically generated by pb2py +# fmt: off ScrambledWords = 0 Matrix = 1 diff --git a/src/trezor/messages/RequestType.py b/src/trezor/messages/RequestType.py index 0a43a82cba..4c122c9447 100644 --- a/src/trezor/messages/RequestType.py +++ b/src/trezor/messages/RequestType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off TXINPUT = 0 TXOUTPUT = 1 TXMETA = 2 diff --git a/src/trezor/messages/ResetDevice.py b/src/trezor/messages/ResetDevice.py index 357c9c851f..45c003e246 100644 --- a/src/trezor/messages/ResetDevice.py +++ b/src/trezor/messages/ResetDevice.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -9,7 +10,7 @@ class ResetDevice(p.MessageType): 2: ('strength', p.UVarintType, 0), # default=256 3: ('passphrase_protection', p.BoolType, 0), 4: ('pin_protection', p.BoolType, 0), - 5: ('language', p.UnicodeType, 0), # default='english' + 5: ('language', p.UnicodeType, 0), # default=english 6: ('label', p.UnicodeType, 0), 7: ('u2f_counter', p.UVarintType, 0), 8: ('skip_backup', p.BoolType, 0), @@ -24,7 +25,7 @@ class ResetDevice(p.MessageType): language: str = None, label: str = None, u2f_counter: int = None, - skip_backup: bool = None + skip_backup: bool = None, ) -> None: self.display_random = display_random self.strength = strength diff --git a/src/trezor/messages/SelfTest.py b/src/trezor/messages/SelfTest.py index c5ad9d8bbd..b67fc1ede7 100644 --- a/src/trezor/messages/SelfTest.py +++ b/src/trezor/messages/SelfTest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class SelfTest(p.MessageType): def __init__( self, - payload: bytes = None + payload: bytes = None, ) -> None: self.payload = payload diff --git a/src/trezor/messages/SetU2FCounter.py b/src/trezor/messages/SetU2FCounter.py index 4c0932809b..ea53b48e11 100644 --- a/src/trezor/messages/SetU2FCounter.py +++ b/src/trezor/messages/SetU2FCounter.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class SetU2FCounter(p.MessageType): def __init__( self, - u2f_counter: int = None + u2f_counter: int = None, ) -> None: self.u2f_counter = u2f_counter diff --git a/src/trezor/messages/SignIdentity.py b/src/trezor/messages/SignIdentity.py index 21716339c3..7e743242b5 100644 --- a/src/trezor/messages/SignIdentity.py +++ b/src/trezor/messages/SignIdentity.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .IdentityType import IdentityType @@ -17,7 +18,7 @@ class SignIdentity(p.MessageType): identity: IdentityType = None, challenge_hidden: bytes = None, challenge_visual: str = None, - ecdsa_curve_name: str = None + ecdsa_curve_name: str = None, ) -> None: self.identity = identity self.challenge_hidden = challenge_hidden diff --git a/src/trezor/messages/SignMessage.py b/src/trezor/messages/SignMessage.py index d312ee4f5e..a1195a4ae8 100644 --- a/src/trezor/messages/SignMessage.py +++ b/src/trezor/messages/SignMessage.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class SignMessage(p.MessageType): @@ -12,8 +13,8 @@ class SignMessage(p.MessageType): FIELDS = { 1: ('address_n', p.UVarintType, p.FLAG_REPEATED), 2: ('message', p.BytesType, 0), # required - 3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' - 4: ('script_type', p.UVarintType, 0), # default=0 + 3: ('coin_name', p.UnicodeType, 0), # default=Bitcoin + 4: ('script_type', p.UVarintType, 0), # default=SPENDADDRESS } def __init__( @@ -21,7 +22,7 @@ class SignMessage(p.MessageType): address_n: List[int] = None, message: bytes = None, coin_name: str = None, - script_type: int = None + script_type: int = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.message = message diff --git a/src/trezor/messages/SignTx.py b/src/trezor/messages/SignTx.py index 3befe6142e..b2cb868b1c 100644 --- a/src/trezor/messages/SignTx.py +++ b/src/trezor/messages/SignTx.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -7,7 +8,7 @@ class SignTx(p.MessageType): FIELDS = { 1: ('outputs_count', p.UVarintType, 0), # required 2: ('inputs_count', p.UVarintType, 0), # required - 3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' + 3: ('coin_name', p.UnicodeType, 0), # default=Bitcoin 4: ('version', p.UVarintType, 0), # default=1 5: ('lock_time', p.UVarintType, 0), # default=0 6: ('expiry', p.UVarintType, 0), @@ -22,7 +23,7 @@ class SignTx(p.MessageType): version: int = None, lock_time: int = None, expiry: int = None, - overwintered: bool = None + overwintered: bool = None, ) -> None: self.outputs_count = outputs_count self.inputs_count = inputs_count diff --git a/src/trezor/messages/SignedIdentity.py b/src/trezor/messages/SignedIdentity.py index 06433ad86c..ada62ad477 100644 --- a/src/trezor/messages/SignedIdentity.py +++ b/src/trezor/messages/SignedIdentity.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class SignedIdentity(p.MessageType): self, address: str = None, public_key: bytes = None, - signature: bytes = None + signature: bytes = None, ) -> None: self.address = address self.public_key = public_key diff --git a/src/trezor/messages/SimpleSignTx.py b/src/trezor/messages/SimpleSignTx.py index 1b5d17295f..2a86287055 100644 --- a/src/trezor/messages/SimpleSignTx.py +++ b/src/trezor/messages/SimpleSignTx.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .TransactionType import TransactionType from .TxInputType import TxInputType from .TxOutputType import TxOutputType @@ -16,7 +17,7 @@ class SimpleSignTx(p.MessageType): 1: ('inputs', TxInputType, p.FLAG_REPEATED), 2: ('outputs', TxOutputType, p.FLAG_REPEATED), 3: ('transactions', TransactionType, p.FLAG_REPEATED), - 4: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' + 4: ('coin_name', p.UnicodeType, 0), # default=Bitcoin 5: ('version', p.UVarintType, 0), # default=1 6: ('lock_time', p.UVarintType, 0), # default=0 7: ('expiry', p.UVarintType, 0), @@ -32,7 +33,7 @@ class SimpleSignTx(p.MessageType): version: int = None, lock_time: int = None, expiry: int = None, - overwintered: bool = None + overwintered: bool = None, ) -> None: self.inputs = inputs if inputs is not None else [] self.outputs = outputs if outputs is not None else [] diff --git a/src/trezor/messages/StellarAccountMergeOp.py b/src/trezor/messages/StellarAccountMergeOp.py index 30e15e4280..9664982116 100644 --- a/src/trezor/messages/StellarAccountMergeOp.py +++ b/src/trezor/messages/StellarAccountMergeOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class StellarAccountMergeOp(p.MessageType): def __init__( self, source_account: str = None, - destination_account: str = None + destination_account: str = None, ) -> None: self.source_account = source_account self.destination_account = destination_account diff --git a/src/trezor/messages/StellarAddress.py b/src/trezor/messages/StellarAddress.py index a52721241d..5b77061c50 100644 --- a/src/trezor/messages/StellarAddress.py +++ b/src/trezor/messages/StellarAddress.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class StellarAddress(p.MessageType): def __init__( self, - address: str = None + address: str = None, ) -> None: self.address = address diff --git a/src/trezor/messages/StellarAllowTrustOp.py b/src/trezor/messages/StellarAllowTrustOp.py index 4f6efc0020..302abcc88e 100644 --- a/src/trezor/messages/StellarAllowTrustOp.py +++ b/src/trezor/messages/StellarAllowTrustOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -18,7 +19,7 @@ class StellarAllowTrustOp(p.MessageType): trusted_account: str = None, asset_type: int = None, asset_code: str = None, - is_authorized: int = None + is_authorized: int = None, ) -> None: self.source_account = source_account self.trusted_account = trusted_account diff --git a/src/trezor/messages/StellarAssetType.py b/src/trezor/messages/StellarAssetType.py index 877f76c3ad..e59f9ebf6b 100644 --- a/src/trezor/messages/StellarAssetType.py +++ b/src/trezor/messages/StellarAssetType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -13,7 +14,7 @@ class StellarAssetType(p.MessageType): self, type: int = None, code: str = None, - issuer: str = None + issuer: str = None, ) -> None: self.type = type self.code = code diff --git a/src/trezor/messages/StellarBumpSequenceOp.py b/src/trezor/messages/StellarBumpSequenceOp.py index f04d4bca85..64a13e7190 100644 --- a/src/trezor/messages/StellarBumpSequenceOp.py +++ b/src/trezor/messages/StellarBumpSequenceOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class StellarBumpSequenceOp(p.MessageType): def __init__( self, source_account: str = None, - bump_to: int = None + bump_to: int = None, ) -> None: self.source_account = source_account self.bump_to = bump_to diff --git a/src/trezor/messages/StellarChangeTrustOp.py b/src/trezor/messages/StellarChangeTrustOp.py index 0f221680b5..cae6ae1573 100644 --- a/src/trezor/messages/StellarChangeTrustOp.py +++ b/src/trezor/messages/StellarChangeTrustOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .StellarAssetType import StellarAssetType @@ -15,7 +16,7 @@ class StellarChangeTrustOp(p.MessageType): self, source_account: str = None, asset: StellarAssetType = None, - limit: int = None + limit: int = None, ) -> None: self.source_account = source_account self.asset = asset diff --git a/src/trezor/messages/StellarCreateAccountOp.py b/src/trezor/messages/StellarCreateAccountOp.py index 39aff15336..0531356c8f 100644 --- a/src/trezor/messages/StellarCreateAccountOp.py +++ b/src/trezor/messages/StellarCreateAccountOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class StellarCreateAccountOp(p.MessageType): self, source_account: str = None, new_account: str = None, - starting_balance: int = None + starting_balance: int = None, ) -> None: self.source_account = source_account self.new_account = new_account diff --git a/src/trezor/messages/StellarCreatePassiveOfferOp.py b/src/trezor/messages/StellarCreatePassiveOfferOp.py index e4b329633b..8b00133438 100644 --- a/src/trezor/messages/StellarCreatePassiveOfferOp.py +++ b/src/trezor/messages/StellarCreatePassiveOfferOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .StellarAssetType import StellarAssetType @@ -21,7 +22,7 @@ class StellarCreatePassiveOfferOp(p.MessageType): buying_asset: StellarAssetType = None, amount: int = None, price_n: int = None, - price_d: int = None + price_d: int = None, ) -> None: self.source_account = source_account self.selling_asset = selling_asset diff --git a/src/trezor/messages/StellarGetAddress.py b/src/trezor/messages/StellarGetAddress.py index 0c35b16991..fbbd46d78f 100644 --- a/src/trezor/messages/StellarGetAddress.py +++ b/src/trezor/messages/StellarGetAddress.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class StellarGetAddress(p.MessageType): @@ -17,7 +18,7 @@ class StellarGetAddress(p.MessageType): def __init__( self, address_n: List[int] = None, - show_display: bool = None + show_display: bool = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.show_display = show_display diff --git a/src/trezor/messages/StellarGetPublicKey.py b/src/trezor/messages/StellarGetPublicKey.py index 803beb3c49..ddc8fa1d37 100644 --- a/src/trezor/messages/StellarGetPublicKey.py +++ b/src/trezor/messages/StellarGetPublicKey.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class StellarGetPublicKey(p.MessageType): @@ -17,7 +18,7 @@ class StellarGetPublicKey(p.MessageType): def __init__( self, address_n: List[int] = None, - show_display: bool = None + show_display: bool = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.show_display = show_display diff --git a/src/trezor/messages/StellarManageDataOp.py b/src/trezor/messages/StellarManageDataOp.py index b5b75ae9c0..f44cf59d1b 100644 --- a/src/trezor/messages/StellarManageDataOp.py +++ b/src/trezor/messages/StellarManageDataOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -14,7 +15,7 @@ class StellarManageDataOp(p.MessageType): self, source_account: str = None, key: str = None, - value: bytes = None + value: bytes = None, ) -> None: self.source_account = source_account self.key = key diff --git a/src/trezor/messages/StellarManageOfferOp.py b/src/trezor/messages/StellarManageOfferOp.py index 6415b3ebcc..819e50c2a8 100644 --- a/src/trezor/messages/StellarManageOfferOp.py +++ b/src/trezor/messages/StellarManageOfferOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .StellarAssetType import StellarAssetType @@ -23,7 +24,7 @@ class StellarManageOfferOp(p.MessageType): amount: int = None, price_n: int = None, price_d: int = None, - offer_id: int = None + offer_id: int = None, ) -> None: self.source_account = source_account self.selling_asset = selling_asset diff --git a/src/trezor/messages/StellarPathPaymentOp.py b/src/trezor/messages/StellarPathPaymentOp.py index 1ad0f9655b..1b8ee0d1e3 100644 --- a/src/trezor/messages/StellarPathPaymentOp.py +++ b/src/trezor/messages/StellarPathPaymentOp.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .StellarAssetType import StellarAssetType @@ -28,7 +29,7 @@ class StellarPathPaymentOp(p.MessageType): destination_account: str = None, destination_asset: StellarAssetType = None, destination_amount: int = None, - paths: List[StellarAssetType] = None + paths: List[StellarAssetType] = None, ) -> None: self.source_account = source_account self.send_asset = send_asset diff --git a/src/trezor/messages/StellarPaymentOp.py b/src/trezor/messages/StellarPaymentOp.py index 138ef17973..96febdf94b 100644 --- a/src/trezor/messages/StellarPaymentOp.py +++ b/src/trezor/messages/StellarPaymentOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .StellarAssetType import StellarAssetType @@ -17,7 +18,7 @@ class StellarPaymentOp(p.MessageType): source_account: str = None, destination_account: str = None, asset: StellarAssetType = None, - amount: int = None + amount: int = None, ) -> None: self.source_account = source_account self.destination_account = destination_account diff --git a/src/trezor/messages/StellarPublicKey.py b/src/trezor/messages/StellarPublicKey.py index 6607876025..43a55bc4a7 100644 --- a/src/trezor/messages/StellarPublicKey.py +++ b/src/trezor/messages/StellarPublicKey.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class StellarPublicKey(p.MessageType): def __init__( self, - public_key: bytes = None + public_key: bytes = None, ) -> None: self.public_key = public_key diff --git a/src/trezor/messages/StellarSetOptionsOp.py b/src/trezor/messages/StellarSetOptionsOp.py index 18b9632b34..aee703fffd 100644 --- a/src/trezor/messages/StellarSetOptionsOp.py +++ b/src/trezor/messages/StellarSetOptionsOp.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -32,7 +33,7 @@ class StellarSetOptionsOp(p.MessageType): home_domain: str = None, signer_type: int = None, signer_key: bytes = None, - signer_weight: int = None + signer_weight: int = None, ) -> None: self.source_account = source_account self.inflation_destination_account = inflation_destination_account diff --git a/src/trezor/messages/StellarSignTx.py b/src/trezor/messages/StellarSignTx.py index af4961d82c..8349798f3a 100644 --- a/src/trezor/messages/StellarSignTx.py +++ b/src/trezor/messages/StellarSignTx.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore class StellarSignTx(p.MessageType): @@ -39,7 +40,7 @@ class StellarSignTx(p.MessageType): memo_text: str = None, memo_id: int = None, memo_hash: bytes = None, - num_operations: int = None + num_operations: int = None, ) -> None: self.protocol_version = protocol_version self.address_n = address_n if address_n is not None else [] diff --git a/src/trezor/messages/StellarSignedTx.py b/src/trezor/messages/StellarSignedTx.py index 4e02b1a3a2..89cecdab59 100644 --- a/src/trezor/messages/StellarSignedTx.py +++ b/src/trezor/messages/StellarSignedTx.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -12,7 +13,7 @@ class StellarSignedTx(p.MessageType): def __init__( self, public_key: bytes = None, - signature: bytes = None + signature: bytes = None, ) -> None: self.public_key = public_key self.signature = signature diff --git a/src/trezor/messages/StellarTxOpRequest.py b/src/trezor/messages/StellarTxOpRequest.py index 0a7e18a5b4..b03324c6d8 100644 --- a/src/trezor/messages/StellarTxOpRequest.py +++ b/src/trezor/messages/StellarTxOpRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/Success.py b/src/trezor/messages/Success.py index ed78875326..07751d0d10 100644 --- a/src/trezor/messages/Success.py +++ b/src/trezor/messages/Success.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class Success(p.MessageType): def __init__( self, - message: str = None + message: str = None, ) -> None: self.message = message diff --git a/src/trezor/messages/TransactionType.py b/src/trezor/messages/TransactionType.py index 3f4bb3e40e..9985347df4 100644 --- a/src/trezor/messages/TransactionType.py +++ b/src/trezor/messages/TransactionType.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .TxInputType import TxInputType from .TxOutputBinType import TxOutputBinType from .TxOutputType import TxOutputType @@ -37,7 +38,7 @@ class TransactionType(p.MessageType): extra_data: bytes = None, extra_data_len: int = None, expiry: int = None, - overwintered: bool = None + overwintered: bool = None, ) -> None: self.version = version self.inputs = inputs if inputs is not None else [] diff --git a/src/trezor/messages/TxAck.py b/src/trezor/messages/TxAck.py index 94e74e0016..ec89a3f941 100644 --- a/src/trezor/messages/TxAck.py +++ b/src/trezor/messages/TxAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .TransactionType import TransactionType @@ -11,6 +12,6 @@ class TxAck(p.MessageType): def __init__( self, - tx: TransactionType = None + tx: TransactionType = None, ) -> None: self.tx = tx diff --git a/src/trezor/messages/TxInputType.py b/src/trezor/messages/TxInputType.py index 8aa9f3d8f8..88243a49fd 100644 --- a/src/trezor/messages/TxInputType.py +++ b/src/trezor/messages/TxInputType.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .MultisigRedeemScriptType import MultisigRedeemScriptType @@ -15,7 +16,7 @@ class TxInputType(p.MessageType): 3: ('prev_index', p.UVarintType, 0), # required 4: ('script_sig', p.BytesType, 0), 5: ('sequence', p.UVarintType, 0), # default=4294967295 - 6: ('script_type', p.UVarintType, 0), # default=0 + 6: ('script_type', p.UVarintType, 0), # default=SPENDADDRESS 7: ('multisig', MultisigRedeemScriptType, 0), 8: ('amount', p.UVarintType, 0), 9: ('decred_tree', p.UVarintType, 0), @@ -37,7 +38,7 @@ class TxInputType(p.MessageType): decred_tree: int = None, decred_script_version: int = None, prev_block_hash_bip115: bytes = None, - prev_block_height_bip115: bytes = None + prev_block_height_bip115: bytes = None, ) -> None: self.address_n = address_n if address_n is not None else [] self.prev_hash = prev_hash diff --git a/src/trezor/messages/TxOutputBinType.py b/src/trezor/messages/TxOutputBinType.py index 3e91562998..bb7daac3e1 100644 --- a/src/trezor/messages/TxOutputBinType.py +++ b/src/trezor/messages/TxOutputBinType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -13,7 +14,7 @@ class TxOutputBinType(p.MessageType): self, amount: int = None, script_pubkey: bytes = None, - decred_script_version: int = None + decred_script_version: int = None, ) -> None: self.amount = amount self.script_pubkey = script_pubkey diff --git a/src/trezor/messages/TxOutputType.py b/src/trezor/messages/TxOutputType.py index 7bf351b7b4..1c5d7abe45 100644 --- a/src/trezor/messages/TxOutputType.py +++ b/src/trezor/messages/TxOutputType.py @@ -1,10 +1,11 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p if __debug__: try: from typing import List except ImportError: - List = None + List = None # type: ignore from .MultisigRedeemScriptType import MultisigRedeemScriptType @@ -31,7 +32,7 @@ class TxOutputType(p.MessageType): op_return_data: bytes = None, decred_script_version: int = None, block_hash_bip115: bytes = None, - block_height_bip115: bytes = None + block_height_bip115: bytes = None, ) -> None: self.address = address self.address_n = address_n if address_n is not None else [] diff --git a/src/trezor/messages/TxRequest.py b/src/trezor/messages/TxRequest.py index 73217ba539..579fe5de8a 100644 --- a/src/trezor/messages/TxRequest.py +++ b/src/trezor/messages/TxRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p from .TxRequestDetailsType import TxRequestDetailsType from .TxRequestSerializedType import TxRequestSerializedType @@ -16,7 +17,7 @@ class TxRequest(p.MessageType): self, request_type: int = None, details: TxRequestDetailsType = None, - serialized: TxRequestSerializedType = None + serialized: TxRequestSerializedType = None, ) -> None: self.request_type = request_type self.details = details diff --git a/src/trezor/messages/TxRequestDetailsType.py b/src/trezor/messages/TxRequestDetailsType.py index c38129e1f1..64bde0ef40 100644 --- a/src/trezor/messages/TxRequestDetailsType.py +++ b/src/trezor/messages/TxRequestDetailsType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -15,7 +16,7 @@ class TxRequestDetailsType(p.MessageType): request_index: int = None, tx_hash: bytes = None, extra_data_len: int = None, - extra_data_offset: int = None + extra_data_offset: int = None, ) -> None: self.request_index = request_index self.tx_hash = tx_hash diff --git a/src/trezor/messages/TxRequestSerializedType.py b/src/trezor/messages/TxRequestSerializedType.py index 64be1099be..77639b83d0 100644 --- a/src/trezor/messages/TxRequestSerializedType.py +++ b/src/trezor/messages/TxRequestSerializedType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -13,7 +14,7 @@ class TxRequestSerializedType(p.MessageType): self, signature_index: int = None, signature: bytes = None, - serialized_tx: bytes = None + serialized_tx: bytes = None, ) -> None: self.signature_index = signature_index self.signature = signature diff --git a/src/trezor/messages/TxSize.py b/src/trezor/messages/TxSize.py index 6092715b80..ca48e2933d 100644 --- a/src/trezor/messages/TxSize.py +++ b/src/trezor/messages/TxSize.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class TxSize(p.MessageType): def __init__( self, - tx_size: int = None + tx_size: int = None, ) -> None: self.tx_size = tx_size diff --git a/src/trezor/messages/VerifyMessage.py b/src/trezor/messages/VerifyMessage.py index 82eb738bb8..dbc95ff691 100644 --- a/src/trezor/messages/VerifyMessage.py +++ b/src/trezor/messages/VerifyMessage.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -8,7 +9,7 @@ class VerifyMessage(p.MessageType): 1: ('address', p.UnicodeType, 0), 2: ('signature', p.BytesType, 0), 3: ('message', p.BytesType, 0), - 4: ('coin_name', p.UnicodeType, 0), # default='Bitcoin' + 4: ('coin_name', p.UnicodeType, 0), # default=Bitcoin } def __init__( @@ -16,7 +17,7 @@ class VerifyMessage(p.MessageType): address: str = None, signature: bytes = None, message: bytes = None, - coin_name: str = None + coin_name: str = None, ) -> None: self.address = address self.signature = signature diff --git a/src/trezor/messages/WipeDevice.py b/src/trezor/messages/WipeDevice.py index 483fd6d259..3894fb120b 100644 --- a/src/trezor/messages/WipeDevice.py +++ b/src/trezor/messages/WipeDevice.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p diff --git a/src/trezor/messages/WordAck.py b/src/trezor/messages/WordAck.py index 9af06b5bcb..f4880bb987 100644 --- a/src/trezor/messages/WordAck.py +++ b/src/trezor/messages/WordAck.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class WordAck(p.MessageType): def __init__( self, - word: str = None + word: str = None, ) -> None: self.word = word diff --git a/src/trezor/messages/WordRequest.py b/src/trezor/messages/WordRequest.py index 6df273ea23..57e19ce2b1 100644 --- a/src/trezor/messages/WordRequest.py +++ b/src/trezor/messages/WordRequest.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off import protobuf as p @@ -10,6 +11,6 @@ class WordRequest(p.MessageType): def __init__( self, - type: int = None + type: int = None, ) -> None: self.type = type diff --git a/src/trezor/messages/WordRequestType.py b/src/trezor/messages/WordRequestType.py index 324b4c3af3..a284fac9c8 100644 --- a/src/trezor/messages/WordRequestType.py +++ b/src/trezor/messages/WordRequestType.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off Plain = 0 Matrix9 = 1 Matrix6 = 2 diff --git a/src/trezor/messages/wire_types.py b/src/trezor/messages/wire_types.py index e927e9a4f7..7b18f51737 100644 --- a/src/trezor/messages/wire_types.py +++ b/src/trezor/messages/wire_types.py @@ -1,4 +1,5 @@ # Automatically generated by pb2py +# fmt: off Initialize = 0 Ping = 1 Success = 2 diff --git a/vendor/trezor-common b/vendor/trezor-common index ef306159aa..c4420e41d3 160000 --- a/vendor/trezor-common +++ b/vendor/trezor-common @@ -1 +1 @@ -Subproject commit ef306159aa984d0ed33c49c1d8e0d52bd04b33b9 +Subproject commit c4420e41d3d98368d42fa59ae3bee88599d72fec