1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

vendor: update trezor-common, regenerate messages

This commit is contained in:
matejcik 2018-07-02 18:40:24 +02:00 committed by Pavol Rusnak
parent 2091ae97bf
commit 28e2970cfb
155 changed files with 329 additions and 175 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
Other = 1
FeeOverThreshold = 2
ConfirmOutput = 3

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
UnexpectedMessage = 1
ButtonExpected = 2
DataError = 3

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

View File

@ -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

View File

@ -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 []

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
SPENDADDRESS = 0
SPENDMULTISIG = 1
EXTERNAL = 2

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
Transfer = 0
RegisterSecondPassphrase = 1
RegisterDelegate = 2

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
Initialize = 0
Ping = 1
Success = 2

View File

@ -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 []

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
# Automatically generated by pb2py
# fmt: off
ImportanceTransfer_Activate = 1
ImportanceTransfer_Deactivate = 2

View File

@ -1,3 +1,4 @@
# Automatically generated by pb2py
# fmt: off
CosignatoryModification_Add = 1
CosignatoryModification_Delete = 2

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
# Automatically generated by pb2py
# fmt: off
MosaicLevy_Absolute = 1
MosaicLevy_Percentile = 2

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
# Automatically generated by pb2py
# fmt: off
SupplyChange_Increase = 1
SupplyChange_Decrease = 2

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
# Automatically generated by pb2py
# fmt: off
PAYTOADDRESS = 0
PAYTOSCRIPTHASH = 1
PAYTOMULTISIG = 2

View File

@ -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

View File

@ -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

Some files were not shown because too many files have changed in this diff Show More