1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-28 18:38:39 +00:00

build: remove prebuilt protobuf files

Also clean out .gitignore a little while we're at it
This commit is contained in:
matejcik 2018-07-03 13:42:04 +02:00
parent 8f46f3d46b
commit 6f23331dfc
156 changed files with 12 additions and 3509 deletions

27
.gitignore vendored
View File

@ -1,23 +1,20 @@
.project
.pydevproject
MANIFEST
build/
dist/
python_trezor.egg-info/
trezor.egg-info/
/build
/dist
/trezor.egg-info
*.pyc
__pycache__
*.bin
*.py.cache
distribute-*.egg
distribute-*.tar.gz
docs/_build
docs/.docs-build-environment
.tox/
.cache/
.pytest_cache/
.mypy_cache/
/.tox
/.cache
/.pytest_cache
/.mypy_cache
.idea/
.vscode/
/.idea
/.vscode
trezorlib/coins.json
/trezorlib/coins.json
/trezorlib/messages/*

0
trezorlib/messages/.keep Normal file
View File

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class Address(p.MessageType):
MESSAGE_WIRE_TYPE = 30
FIELDS = {
1: ('address', p.UnicodeType, 0), # required
}
def __init__(
self,
address: str = None
) -> None:
self.address = address

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class ApplyFlags(p.MessageType):
MESSAGE_WIRE_TYPE = 28
FIELDS = {
1: ('flags', p.UVarintType, 0),
}
def __init__(
self,
flags: int = None
) -> None:
self.flags = flags

View File

@ -1,30 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class ApplySettings(p.MessageType):
MESSAGE_WIRE_TYPE = 25
FIELDS = {
1: ('language', p.UnicodeType, 0),
2: ('label', p.UnicodeType, 0),
3: ('use_passphrase', p.BoolType, 0),
4: ('homescreen', p.BytesType, 0),
5: ('passphrase_source', p.UVarintType, 0),
6: ('auto_lock_delay_ms', p.UVarintType, 0),
}
def __init__(
self,
language: str = None,
label: str = None,
use_passphrase: bool = None,
homescreen: bytes = None,
passphrase_source: int = None,
auto_lock_delay_ms: int = None
) -> None:
self.language = language
self.label = label
self.use_passphrase = use_passphrase
self.homescreen = homescreen
self.passphrase_source = passphrase_source
self.auto_lock_delay_ms = auto_lock_delay_ms

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class BackupDevice(p.MessageType):
MESSAGE_WIRE_TYPE = 34

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class ButtonAck(p.MessageType):
MESSAGE_WIRE_TYPE = 27

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class ButtonRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 26
FIELDS = {
1: ('code', p.UVarintType, 0),
2: ('data', p.UnicodeType, 0),
}
def __init__(
self,
code: int = None,
data: str = None
) -> None:
self.code = code
self.data = data

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
Other = 1
FeeOverThreshold = 2
ConfirmOutput = 3
ResetDevice = 4
ConfirmWord = 5
WipeDevice = 6
ProtectCall = 7
SignTx = 8
FirmwareCheck = 9
Address = 10
PublicKey = 11
MnemonicWordCount = 12
MnemonicInput = 13
PassphraseType = 14

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class Cancel(p.MessageType):
MESSAGE_WIRE_TYPE = 20

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class ChangePin(p.MessageType):
MESSAGE_WIRE_TYPE = 4
FIELDS = {
1: ('remove', p.BoolType, 0),
}
def __init__(
self,
remove: bool = None
) -> None:
self.remove = remove

View File

@ -1,38 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class CipherKeyValue(p.MessageType):
MESSAGE_WIRE_TYPE = 23
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('key', p.UnicodeType, 0),
3: ('value', p.BytesType, 0),
4: ('encrypt', p.BoolType, 0),
5: ('ask_on_encrypt', p.BoolType, 0),
6: ('ask_on_decrypt', p.BoolType, 0),
7: ('iv', p.BytesType, 0),
}
def __init__(
self,
address_n: List[int] = None,
key: str = None,
value: bytes = None,
encrypt: bool = None,
ask_on_encrypt: bool = None,
ask_on_decrypt: bool = None,
iv: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.key = key
self.value = value
self.encrypt = encrypt
self.ask_on_encrypt = ask_on_encrypt
self.ask_on_decrypt = ask_on_decrypt
self.iv = iv

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class CipheredKeyValue(p.MessageType):
MESSAGE_WIRE_TYPE = 48
FIELDS = {
1: ('value', p.BytesType, 0),
}
def __init__(
self,
value: bytes = None
) -> None:
self.value = value

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class ClearSession(p.MessageType):
MESSAGE_WIRE_TYPE = 24

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class CosiCommit(p.MessageType):
MESSAGE_WIRE_TYPE = 71
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('data', p.BytesType, 0),
}
def __init__(
self,
address_n: List[int] = None,
data: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.data = data

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class CosiCommitment(p.MessageType):
MESSAGE_WIRE_TYPE = 72
FIELDS = {
1: ('commitment', p.BytesType, 0),
2: ('pubkey', p.BytesType, 0),
}
def __init__(
self,
commitment: bytes = None,
pubkey: bytes = None
) -> None:
self.commitment = commitment
self.pubkey = pubkey

View File

@ -1,29 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class CosiSign(p.MessageType):
MESSAGE_WIRE_TYPE = 73
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('data', p.BytesType, 0),
3: ('global_commitment', p.BytesType, 0),
4: ('global_pubkey', p.BytesType, 0),
}
def __init__(
self,
address_n: List[int] = None,
data: bytes = None,
global_commitment: bytes = None,
global_pubkey: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.data = data
self.global_commitment = global_commitment
self.global_pubkey = global_pubkey

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class CosiSignature(p.MessageType):
MESSAGE_WIRE_TYPE = 74
FIELDS = {
1: ('signature', p.BytesType, 0),
}
def __init__(
self,
signature: bytes = None
) -> None:
self.signature = signature

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkDecision(p.MessageType):
MESSAGE_WIRE_TYPE = 100
FIELDS = {
1: ('yes_no', p.BoolType, 0),
2: ('up_down', p.BoolType, 0),
3: ('input', p.UnicodeType, 0),
}
def __init__(
self,
yes_no: bool = None,
up_down: bool = None,
input: str = None
) -> None:
self.yes_no = yes_no
self.up_down = up_down
self.input = input

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkFlashErase(p.MessageType):
MESSAGE_WIRE_TYPE = 113
FIELDS = {
1: ('sector', p.UVarintType, 0),
}
def __init__(
self,
sector: int = None
) -> None:
self.sector = sector

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkGetState(p.MessageType):
MESSAGE_WIRE_TYPE = 101

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkLog(p.MessageType):
MESSAGE_WIRE_TYPE = 104
FIELDS = {
1: ('level', p.UVarintType, 0),
2: ('bucket', p.UnicodeType, 0),
3: ('text', p.UnicodeType, 0),
}
def __init__(
self,
level: int = None,
bucket: str = None,
text: str = None
) -> None:
self.level = level
self.bucket = bucket
self.text = text

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkMemory(p.MessageType):
MESSAGE_WIRE_TYPE = 111
FIELDS = {
1: ('memory', p.BytesType, 0),
}
def __init__(
self,
memory: bytes = None
) -> None:
self.memory = memory

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkMemoryRead(p.MessageType):
MESSAGE_WIRE_TYPE = 110
FIELDS = {
1: ('address', p.UVarintType, 0),
2: ('length', p.UVarintType, 0),
}
def __init__(
self,
address: int = None,
length: int = None
) -> None:
self.address = address
self.length = length

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkMemoryWrite(p.MessageType):
MESSAGE_WIRE_TYPE = 112
FIELDS = {
1: ('address', p.UVarintType, 0),
2: ('memory', p.BytesType, 0),
3: ('flash', p.BoolType, 0),
}
def __init__(
self,
address: int = None,
memory: bytes = None,
flash: bool = None
) -> None:
self.address = address
self.memory = memory
self.flash = flash

View File

@ -1,46 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .HDNodeType import HDNodeType
class DebugLinkState(p.MessageType):
MESSAGE_WIRE_TYPE = 102
FIELDS = {
1: ('layout', p.BytesType, 0),
2: ('pin', p.UnicodeType, 0),
3: ('matrix', p.UnicodeType, 0),
4: ('mnemonic', p.UnicodeType, 0),
5: ('node', HDNodeType, 0),
6: ('passphrase_protection', p.BoolType, 0),
7: ('reset_word', p.UnicodeType, 0),
8: ('reset_entropy', p.BytesType, 0),
9: ('recovery_fake_word', p.UnicodeType, 0),
10: ('recovery_word_pos', p.UVarintType, 0),
11: ('reset_word_pos', p.UVarintType, 0),
}
def __init__(
self,
layout: bytes = None,
pin: str = None,
matrix: str = None,
mnemonic: str = None,
node: HDNodeType = None,
passphrase_protection: bool = None,
reset_word: str = None,
reset_entropy: bytes = None,
recovery_fake_word: str = None,
recovery_word_pos: int = None,
reset_word_pos: int = None
) -> None:
self.layout = layout
self.pin = pin
self.matrix = matrix
self.mnemonic = mnemonic
self.node = node
self.passphrase_protection = passphrase_protection
self.reset_word = reset_word
self.reset_entropy = reset_entropy
self.recovery_fake_word = recovery_fake_word
self.recovery_word_pos = recovery_word_pos
self.reset_word_pos = reset_word_pos

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DebugLinkStop(p.MessageType):
MESSAGE_WIRE_TYPE = 103

View File

@ -1,29 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class DecryptMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 51
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('nonce', p.BytesType, 0),
3: ('message', p.BytesType, 0),
4: ('hmac', p.BytesType, 0),
}
def __init__(
self,
address_n: List[int] = None,
nonce: bytes = None,
message: bytes = None,
hmac: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.nonce = nonce
self.message = message
self.hmac = hmac

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class DecryptedMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 52
FIELDS = {
1: ('message', p.BytesType, 0),
2: ('address', p.UnicodeType, 0),
}
def __init__(
self,
message: bytes = None,
address: str = None
) -> None:
self.message = message
self.address = address

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class ECDHSessionKey(p.MessageType):
MESSAGE_WIRE_TYPE = 62
FIELDS = {
1: ('session_key', p.BytesType, 0),
}
def __init__(
self,
session_key: bytes = None
) -> None:
self.session_key = session_key

View File

@ -1,32 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class EncryptMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 49
FIELDS = {
1: ('pubkey', p.BytesType, 0),
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'
}
def __init__(
self,
pubkey: bytes = None,
message: bytes = None,
display_only: bool = None,
address_n: List[int] = None,
coin_name: str = None
) -> None:
self.pubkey = pubkey
self.message = message
self.display_only = display_only
self.address_n = address_n if address_n is not None else []
self.coin_name = coin_name

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EncryptedMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 50
FIELDS = {
1: ('nonce', p.BytesType, 0),
2: ('message', p.BytesType, 0),
3: ('hmac', p.BytesType, 0),
}
def __init__(
self,
nonce: bytes = None,
message: bytes = None,
hmac: bytes = None
) -> None:
self.nonce = nonce
self.message = message
self.hmac = hmac

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class Entropy(p.MessageType):
MESSAGE_WIRE_TYPE = 10
FIELDS = {
1: ('entropy', p.BytesType, 0), # required
}
def __init__(
self,
entropy: bytes = None
) -> None:
self.entropy = entropy

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EntropyAck(p.MessageType):
MESSAGE_WIRE_TYPE = 36
FIELDS = {
1: ('entropy', p.BytesType, 0),
}
def __init__(
self,
entropy: bytes = None
) -> None:
self.entropy = entropy

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EntropyRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 35

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EstimateTxSize(p.MessageType):
MESSAGE_WIRE_TYPE = 43
FIELDS = {
1: ('outputs_count', p.UVarintType, 0), # required
2: ('inputs_count', p.UVarintType, 0), # required
3: ('coin_name', p.UnicodeType, 0), # default='Bitcoin'
}
def __init__(
self,
outputs_count: int = None,
inputs_count: int = None,
coin_name: str = None
) -> None:
self.outputs_count = outputs_count
self.inputs_count = inputs_count
self.coin_name = coin_name

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EthereumAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 57
FIELDS = {
1: ('address', p.BytesType, 0), # required
}
def __init__(
self,
address: bytes = None
) -> None:
self.address = address

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class EthereumGetAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 56
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}
def __init__(
self,
address_n: List[int] = 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,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EthereumMessageSignature(p.MessageType):
MESSAGE_WIRE_TYPE = 66
FIELDS = {
1: ('address', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
}
def __init__(
self,
address: bytes = None,
signature: bytes = None
) -> None:
self.address = address
self.signature = signature

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class EthereumSignMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 64
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('message', p.BytesType, 0), # required
}
def __init__(
self,
address_n: List[int] = None,
message: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.message = message

View File

@ -1,47 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class EthereumSignTx(p.MessageType):
MESSAGE_WIRE_TYPE = 58
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('nonce', p.BytesType, 0),
3: ('gas_price', p.BytesType, 0),
4: ('gas_limit', p.BytesType, 0),
5: ('to', p.BytesType, 0),
6: ('value', p.BytesType, 0),
7: ('data_initial_chunk', p.BytesType, 0),
8: ('data_length', p.UVarintType, 0),
9: ('chain_id', p.UVarintType, 0),
10: ('tx_type', p.UVarintType, 0),
}
def __init__(
self,
address_n: List[int] = None,
nonce: bytes = None,
gas_price: bytes = None,
gas_limit: bytes = None,
to: bytes = None,
value: bytes = None,
data_initial_chunk: bytes = None,
data_length: int = None,
chain_id: int = None,
tx_type: int = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.nonce = nonce
self.gas_price = gas_price
self.gas_limit = gas_limit
self.to = to
self.value = value
self.data_initial_chunk = data_initial_chunk
self.data_length = data_length
self.chain_id = chain_id
self.tx_type = tx_type

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EthereumTxAck(p.MessageType):
MESSAGE_WIRE_TYPE = 60
FIELDS = {
1: ('data_chunk', p.BytesType, 0),
}
def __init__(
self,
data_chunk: bytes = None
) -> None:
self.data_chunk = data_chunk

View File

@ -1,24 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EthereumTxRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 59
FIELDS = {
1: ('data_length', p.UVarintType, 0),
2: ('signature_v', p.UVarintType, 0),
3: ('signature_r', p.BytesType, 0),
4: ('signature_s', p.BytesType, 0),
}
def __init__(
self,
data_length: int = None,
signature_v: int = None,
signature_r: bytes = None,
signature_s: bytes = None
) -> None:
self.data_length = data_length
self.signature_v = signature_v
self.signature_r = signature_r
self.signature_s = signature_s

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class EthereumVerifyMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 65
FIELDS = {
1: ('address', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
3: ('message', p.BytesType, 0),
}
def __init__(
self,
address: bytes = None,
signature: bytes = None,
message: bytes = None
) -> None:
self.address = address
self.signature = signature
self.message = message

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class Failure(p.MessageType):
MESSAGE_WIRE_TYPE = 3
FIELDS = {
1: ('code', p.UVarintType, 0),
2: ('message', p.UnicodeType, 0),
}
def __init__(
self,
code: int = None,
message: str = None
) -> None:
self.code = code
self.message = message

View File

@ -1,14 +0,0 @@
# Automatically generated by pb2py
UnexpectedMessage = 1
ButtonExpected = 2
DataError = 3
ActionCancelled = 4
PinExpected = 5
PinCancelled = 6
PinInvalid = 7
InvalidSignature = 8
ProcessError = 9
NotEnoughFunds = 10
NotInitialized = 11
PinMismatch = 12
FirmwareError = 99

View File

@ -1,90 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class Features(p.MessageType):
MESSAGE_WIRE_TYPE = 17
FIELDS = {
1: ('vendor', p.UnicodeType, 0),
2: ('major_version', p.UVarintType, 0),
3: ('minor_version', p.UVarintType, 0),
4: ('patch_version', p.UVarintType, 0),
5: ('bootloader_mode', p.BoolType, 0),
6: ('device_id', p.UnicodeType, 0),
7: ('pin_protection', p.BoolType, 0),
8: ('passphrase_protection', p.BoolType, 0),
9: ('language', p.UnicodeType, 0),
10: ('label', p.UnicodeType, 0),
12: ('initialized', p.BoolType, 0),
13: ('revision', p.BytesType, 0),
14: ('bootloader_hash', p.BytesType, 0),
15: ('imported', p.BoolType, 0),
16: ('pin_cached', p.BoolType, 0),
17: ('passphrase_cached', p.BoolType, 0),
18: ('firmware_present', p.BoolType, 0),
19: ('needs_backup', p.BoolType, 0),
20: ('flags', p.UVarintType, 0),
21: ('model', p.UnicodeType, 0),
22: ('fw_major', p.UVarintType, 0),
23: ('fw_minor', p.UVarintType, 0),
24: ('fw_patch', p.UVarintType, 0),
25: ('fw_vendor', p.UnicodeType, 0),
26: ('fw_vendor_keys', p.BytesType, 0),
27: ('unfinished_backup', p.BoolType, 0),
}
def __init__(
self,
vendor: str = None,
major_version: int = None,
minor_version: int = None,
patch_version: int = None,
bootloader_mode: bool = None,
device_id: str = None,
pin_protection: bool = None,
passphrase_protection: bool = None,
language: str = None,
label: str = None,
initialized: bool = None,
revision: bytes = None,
bootloader_hash: bytes = None,
imported: bool = None,
pin_cached: bool = None,
passphrase_cached: bool = None,
firmware_present: bool = None,
needs_backup: bool = None,
flags: int = None,
model: str = None,
fw_major: int = None,
fw_minor: int = None,
fw_patch: int = None,
fw_vendor: str = None,
fw_vendor_keys: bytes = None,
unfinished_backup: bool = None
) -> None:
self.vendor = vendor
self.major_version = major_version
self.minor_version = minor_version
self.patch_version = patch_version
self.bootloader_mode = bootloader_mode
self.device_id = device_id
self.pin_protection = pin_protection
self.passphrase_protection = passphrase_protection
self.language = language
self.label = label
self.initialized = initialized
self.revision = revision
self.bootloader_hash = bootloader_hash
self.imported = imported
self.pin_cached = pin_cached
self.passphrase_cached = passphrase_cached
self.firmware_present = firmware_present
self.needs_backup = needs_backup
self.flags = flags
self.model = model
self.fw_major = fw_major
self.fw_minor = fw_minor
self.fw_patch = fw_patch
self.fw_vendor = fw_vendor
self.fw_vendor_keys = fw_vendor_keys
self.unfinished_backup = unfinished_backup

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class FirmwareErase(p.MessageType):
MESSAGE_WIRE_TYPE = 6
FIELDS = {
1: ('length', p.UVarintType, 0),
}
def __init__(
self,
length: int = None
) -> None:
self.length = length

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class FirmwareRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 8
FIELDS = {
1: ('offset', p.UVarintType, 0),
2: ('length', p.UVarintType, 0),
}
def __init__(
self,
offset: int = None,
length: int = None
) -> None:
self.offset = offset
self.length = length

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class FirmwareUpload(p.MessageType):
MESSAGE_WIRE_TYPE = 7
FIELDS = {
1: ('payload', p.BytesType, 0), # required
2: ('hash', p.BytesType, 0),
}
def __init__(
self,
payload: bytes = None,
hash: bytes = None
) -> None:
self.payload = payload
self.hash = hash

View File

@ -1,33 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
from .MultisigRedeemScriptType import MultisigRedeemScriptType
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'
3: ('show_display', p.BoolType, 0),
4: ('multisig', MultisigRedeemScriptType, 0),
5: ('script_type', p.UVarintType, 0), # default=0
}
def __init__(
self,
address_n: List[int] = None,
coin_name: str = None,
show_display: bool = None,
multisig: MultisigRedeemScriptType = None,
script_type: int = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.coin_name = coin_name
self.show_display = show_display
self.multisig = multisig
self.script_type = script_type

View File

@ -1,22 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .IdentityType import IdentityType
class GetECDHSessionKey(p.MessageType):
MESSAGE_WIRE_TYPE = 61
FIELDS = {
1: ('identity', IdentityType, 0),
2: ('peer_public_key', p.BytesType, 0),
3: ('ecdsa_curve_name', p.UnicodeType, 0),
}
def __init__(
self,
identity: IdentityType = None,
peer_public_key: bytes = None,
ecdsa_curve_name: str = None
) -> None:
self.identity = identity
self.peer_public_key = peer_public_key
self.ecdsa_curve_name = ecdsa_curve_name

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class GetEntropy(p.MessageType):
MESSAGE_WIRE_TYPE = 9
FIELDS = {
1: ('size', p.UVarintType, 0), # required
}
def __init__(
self,
size: int = None
) -> None:
self.size = size

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class GetFeatures(p.MessageType):
MESSAGE_WIRE_TYPE = 55

View File

@ -1,29 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class GetPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 11
FIELDS = {
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'
}
def __init__(
self,
address_n: List[int] = None,
ecdsa_curve_name: str = None,
show_display: bool = 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
self.show_display = show_display
self.coin_name = coin_name

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
from .HDNodeType import HDNodeType
class HDNodePathType(p.MessageType):
FIELDS = {
1: ('node', HDNodeType, 0), # required
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}
def __init__(
self,
node: HDNodeType = 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,29 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class HDNodeType(p.MessageType):
FIELDS = {
1: ('depth', p.UVarintType, 0), # required
2: ('fingerprint', p.UVarintType, 0), # required
3: ('child_num', p.UVarintType, 0), # required
4: ('chain_code', p.BytesType, 0), # required
5: ('private_key', p.BytesType, 0),
6: ('public_key', p.BytesType, 0),
}
def __init__(
self,
depth: int = None,
fingerprint: int = None,
child_num: int = None,
chain_code: bytes = None,
private_key: bytes = None,
public_key: bytes = None
) -> None:
self.depth = depth
self.fingerprint = fingerprint
self.child_num = child_num
self.chain_code = chain_code
self.private_key = private_key
self.public_key = public_key

View File

@ -1,29 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class IdentityType(p.MessageType):
FIELDS = {
1: ('proto', p.UnicodeType, 0),
2: ('user', p.UnicodeType, 0),
3: ('host', p.UnicodeType, 0),
4: ('port', p.UnicodeType, 0),
5: ('path', p.UnicodeType, 0),
6: ('index', p.UVarintType, 0), # default=0
}
def __init__(
self,
proto: str = None,
user: str = None,
host: str = None,
port: str = None,
path: str = None,
index: int = None
) -> None:
self.proto = proto
self.user = user
self.host = host
self.port = port
self.path = path
self.index = index

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class Initialize(p.MessageType):
MESSAGE_WIRE_TYPE = 0
FIELDS = {
1: ('state', p.BytesType, 0),
2: ('skip_passphrase', p.BoolType, 0),
}
def __init__(
self,
state: bytes = None,
skip_passphrase: bool = None
) -> None:
self.state = state
self.skip_passphrase = skip_passphrase

View File

@ -1,6 +0,0 @@
# Automatically generated by pb2py
SPENDADDRESS = 0
SPENDMULTISIG = 1
EXTERNAL = 2
SPENDWITNESS = 3
SPENDP2SHWITNESS = 4

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 115
FIELDS = {
1: ('address', p.UnicodeType, 0),
}
def __init__(
self,
address: str = None
) -> None:
self.address = address

View File

@ -1,14 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskDelegateType(p.MessageType):
FIELDS = {
1: ('username', p.UnicodeType, 0),
}
def __init__(
self,
username: str = None
) -> None:
self.username = username

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class LiskGetAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 114
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}
def __init__(
self,
address_n: List[int] = 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,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class LiskGetPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 121
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}
def __init__(
self,
address_n: List[int] = 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,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskMessageSignature(p.MessageType):
MESSAGE_WIRE_TYPE = 119
FIELDS = {
1: ('public_key', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
}
def __init__(
self,
public_key: bytes = None,
signature: bytes = None
) -> None:
self.public_key = public_key
self.signature = signature

View File

@ -1,25 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class LiskMultisignatureType(p.MessageType):
FIELDS = {
1: ('min', p.UVarintType, 0),
2: ('life_time', p.UVarintType, 0),
3: ('keys_group', p.UnicodeType, p.FLAG_REPEATED),
}
def __init__(
self,
min: int = None,
life_time: int = None,
keys_group: List[str] = None
) -> None:
self.min = min
self.life_time = life_time
self.keys_group = keys_group if keys_group is not None else []

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 122
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
def __init__(
self,
public_key: bytes = None
) -> None:
self.public_key = public_key

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class LiskSignMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 118
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('message', p.BytesType, 0),
}
def __init__(
self,
address_n: List[int] = None,
message: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.message = message

View File

@ -1,24 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
from .LiskTransactionCommon import LiskTransactionCommon
class LiskSignTx(p.MessageType):
MESSAGE_WIRE_TYPE = 116
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('transaction', LiskTransactionCommon, 0),
}
def __init__(
self,
address_n: List[int] = None,
transaction: LiskTransactionCommon = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.transaction = transaction

View File

@ -1,14 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskSignatureType(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
def __init__(
self,
public_key: bytes = None
) -> None:
self.public_key = public_key

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskSignedTx(p.MessageType):
MESSAGE_WIRE_TYPE = 117
FIELDS = {
1: ('signature', p.BytesType, 0),
}
def __init__(
self,
signature: bytes = None
) -> None:
self.signature = signature

View File

@ -1,34 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
from .LiskDelegateType import LiskDelegateType
from .LiskMultisignatureType import LiskMultisignatureType
from .LiskSignatureType import LiskSignatureType
class LiskTransactionAsset(p.MessageType):
FIELDS = {
1: ('signature', LiskSignatureType, 0),
2: ('delegate', LiskDelegateType, 0),
3: ('votes', p.UnicodeType, p.FLAG_REPEATED),
4: ('multisignature', LiskMultisignatureType, 0),
5: ('data', p.UnicodeType, 0),
}
def __init__(
self,
signature: LiskSignatureType = None,
delegate: LiskDelegateType = None,
votes: List[str] = None,
multisignature: LiskMultisignatureType = None,
data: str = None
) -> None:
self.signature = signature
self.delegate = delegate
self.votes = votes if votes is not None else []
self.multisignature = multisignature
self.data = data

View File

@ -1,39 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .LiskTransactionAsset import LiskTransactionAsset
class LiskTransactionCommon(p.MessageType):
FIELDS = {
1: ('type', p.UVarintType, 0),
2: ('amount', p.UVarintType, 0), # default=0
3: ('fee', p.UVarintType, 0),
4: ('recipient_id', p.UnicodeType, 0),
5: ('sender_public_key', p.BytesType, 0),
6: ('requester_public_key', p.BytesType, 0),
7: ('signature', p.BytesType, 0),
8: ('timestamp', p.UVarintType, 0),
9: ('asset', LiskTransactionAsset, 0),
}
def __init__(
self,
type: int = None,
amount: int = None,
fee: int = None,
recipient_id: str = None,
sender_public_key: bytes = None,
requester_public_key: bytes = None,
signature: bytes = None,
timestamp: int = None,
asset: LiskTransactionAsset = None
) -> None:
self.type = type
self.amount = amount
self.fee = fee
self.recipient_id = recipient_id
self.sender_public_key = sender_public_key
self.requester_public_key = requester_public_key
self.signature = signature
self.timestamp = timestamp
self.asset = asset

View File

@ -1,9 +0,0 @@
# Automatically generated by pb2py
Transfer = 0
RegisterSecondPassphrase = 1
RegisterDelegate = 2
CastVotes = 3
RegisterMultisignatureAccount = 4
CreateDapp = 5
TransferIntoDapp = 6
TransferOutOfDapp = 7

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class LiskVerifyMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 120
FIELDS = {
1: ('public_key', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
3: ('message', p.BytesType, 0),
}
def __init__(
self,
public_key: bytes = None,
signature: bytes = None,
message: bytes = None
) -> None:
self.public_key = public_key
self.signature = signature
self.message = message

View File

@ -1,37 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .HDNodeType import HDNodeType
class LoadDevice(p.MessageType):
MESSAGE_WIRE_TYPE = 13
FIELDS = {
1: ('mnemonic', p.UnicodeType, 0),
2: ('node', HDNodeType, 0),
3: ('pin', p.UnicodeType, 0),
4: ('passphrase_protection', p.BoolType, 0),
5: ('language', p.UnicodeType, 0), # default='english'
6: ('label', p.UnicodeType, 0),
7: ('skip_checksum', p.BoolType, 0),
8: ('u2f_counter', p.UVarintType, 0),
}
def __init__(
self,
mnemonic: str = None,
node: HDNodeType = None,
pin: str = None,
passphrase_protection: bool = None,
language: str = None,
label: str = None,
skip_checksum: bool = None,
u2f_counter: int = None
) -> None:
self.mnemonic = mnemonic
self.node = node
self.pin = pin
self.passphrase_protection = passphrase_protection
self.language = language
self.label = label
self.skip_checksum = skip_checksum
self.u2f_counter = u2f_counter

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class MessageSignature(p.MessageType):
MESSAGE_WIRE_TYPE = 40
FIELDS = {
1: ('address', p.UnicodeType, 0),
2: ('signature', p.BytesType, 0),
}
def __init__(
self,
address: str = None,
signature: bytes = None
) -> None:
self.address = address
self.signature = signature

View File

@ -1,113 +0,0 @@
# Automatically generated by pb2py
Initialize = 0
Ping = 1
Success = 2
Failure = 3
ChangePin = 4
WipeDevice = 5
FirmwareErase = 6
FirmwareUpload = 7
FirmwareRequest = 8
GetEntropy = 9
Entropy = 10
GetPublicKey = 11
PublicKey = 12
LoadDevice = 13
ResetDevice = 14
SignTx = 15
SimpleSignTx = 16
Features = 17
PinMatrixRequest = 18
PinMatrixAck = 19
Cancel = 20
TxRequest = 21
TxAck = 22
CipherKeyValue = 23
ClearSession = 24
ApplySettings = 25
ButtonRequest = 26
ButtonAck = 27
ApplyFlags = 28
GetAddress = 29
Address = 30
SelfTest = 32
BackupDevice = 34
EntropyRequest = 35
EntropyAck = 36
SignMessage = 38
VerifyMessage = 39
MessageSignature = 40
PassphraseRequest = 41
PassphraseAck = 42
PassphraseStateRequest = 77
PassphraseStateAck = 78
EstimateTxSize = 43
TxSize = 44
RecoveryDevice = 45
WordRequest = 46
WordAck = 47
CipheredKeyValue = 48
EncryptMessage = 49
EncryptedMessage = 50
DecryptMessage = 51
DecryptedMessage = 52
SignIdentity = 53
SignedIdentity = 54
GetFeatures = 55
EthereumGetAddress = 56
EthereumAddress = 57
EthereumSignTx = 58
EthereumTxRequest = 59
EthereumTxAck = 60
GetECDHSessionKey = 61
ECDHSessionKey = 62
SetU2FCounter = 63
EthereumSignMessage = 64
EthereumVerifyMessage = 65
EthereumMessageSignature = 66
NEMGetAddress = 67
NEMAddress = 68
NEMSignTx = 69
NEMSignedTx = 70
CosiCommit = 71
CosiCommitment = 72
CosiSign = 73
CosiSignature = 74
NEMDecryptMessage = 75
NEMDecryptedMessage = 76
DebugLinkDecision = 100
DebugLinkGetState = 101
DebugLinkState = 102
DebugLinkStop = 103
DebugLinkLog = 104
DebugLinkMemoryRead = 110
DebugLinkMemory = 111
DebugLinkMemoryWrite = 112
DebugLinkFlashErase = 113
LiskGetAddress = 114
LiskAddress = 115
LiskSignTx = 116
LiskSignedTx = 117
LiskSignMessage = 118
LiskMessageSignature = 119
LiskVerifyMessage = 120
LiskGetPublicKey = 121
LiskPublicKey = 122
StellarGetPublicKey = 200
StellarPublicKey = 201
StellarSignTx = 202
StellarTxOpRequest = 203
StellarGetAddress = 207
StellarAddress = 208
StellarCreateAccountOp = 210
StellarPaymentOp = 211
StellarPathPaymentOp = 212
StellarManageOfferOp = 213
StellarCreatePassiveOfferOp = 214
StellarSetOptionsOp = 215
StellarChangeTrustOp = 216
StellarAllowTrustOp = 217
StellarAccountMergeOp = 218
StellarManageDataOp = 220
StellarBumpSequenceOp = 221
StellarSignedTx = 230

View File

@ -1,26 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
from .HDNodePathType import HDNodePathType
class MultisigRedeemScriptType(p.MessageType):
FIELDS = {
1: ('pubkeys', HDNodePathType, p.FLAG_REPEATED),
2: ('signatures', p.BytesType, p.FLAG_REPEATED),
3: ('m', p.UVarintType, 0),
}
def __init__(
self,
pubkeys: List[HDNodePathType] = None,
signatures: List[bytes] = None,
m: int = None
) -> None:
self.pubkeys = pubkeys if pubkeys is not None else []
self.signatures = signatures if signatures is not None else []
self.m = m

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 68
FIELDS = {
1: ('address', p.UnicodeType, 0), # required
}
def __init__(
self,
address: str = None
) -> None:
self.address = address

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
from .NEMCosignatoryModification import NEMCosignatoryModification
class NEMAggregateModification(p.MessageType):
FIELDS = {
1: ('modifications', NEMCosignatoryModification, p.FLAG_REPEATED),
2: ('relative_change', p.SVarintType, 0),
}
def __init__(
self,
modifications: List[NEMCosignatoryModification] = None,
relative_change: int = None
) -> None:
self.modifications = modifications if modifications is not None else []
self.relative_change = relative_change

View File

@ -1,17 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMCosignatoryModification(p.MessageType):
FIELDS = {
1: ('type', p.UVarintType, 0),
2: ('public_key', p.BytesType, 0),
}
def __init__(
self,
type: int = None,
public_key: bytes = None
) -> None:
self.type = type
self.public_key = public_key

View File

@ -1,29 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class NEMDecryptMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 75
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('network', p.UVarintType, 0),
3: ('public_key', p.BytesType, 0),
4: ('payload', p.BytesType, 0),
}
def __init__(
self,
address_n: List[int] = None,
network: int = None,
public_key: bytes = None,
payload: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.network = network
self.public_key = public_key
self.payload = payload

View File

@ -1,15 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMDecryptedMessage(p.MessageType):
MESSAGE_WIRE_TYPE = 76
FIELDS = {
1: ('payload', p.BytesType, 0),
}
def __init__(
self,
payload: bytes = None
) -> None:
self.payload = payload

View File

@ -1,26 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class NEMGetAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 67
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('network', p.UVarintType, 0),
3: ('show_display', p.BoolType, 0),
}
def __init__(
self,
address_n: List[int] = None,
network: int = None,
show_display: bool = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.network = network
self.show_display = show_display

View File

@ -1,17 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMImportanceTransfer(p.MessageType):
FIELDS = {
1: ('mode', p.UVarintType, 0),
2: ('public_key', p.BytesType, 0),
}
def __init__(
self,
mode: int = None,
public_key: bytes = None
) -> None:
self.mode = mode
self.public_key = public_key

View File

@ -1,3 +0,0 @@
# Automatically generated by pb2py
ImportanceTransfer_Activate = 1
ImportanceTransfer_Deactivate = 2

View File

@ -1,3 +0,0 @@
# Automatically generated by pb2py
CosignatoryModification_Add = 1
CosignatoryModification_Delete = 2

View File

@ -1,20 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMMosaic(p.MessageType):
FIELDS = {
1: ('namespace', p.UnicodeType, 0),
2: ('mosaic', p.UnicodeType, 0),
3: ('quantity', p.UVarintType, 0),
}
def __init__(
self,
namespace: str = None,
mosaic: str = None,
quantity: int = None
) -> None:
self.namespace = namespace
self.mosaic = mosaic
self.quantity = quantity

View File

@ -1,21 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .NEMMosaicDefinition import NEMMosaicDefinition
class NEMMosaicCreation(p.MessageType):
FIELDS = {
1: ('definition', NEMMosaicDefinition, 0),
2: ('sink', p.UnicodeType, 0),
3: ('fee', p.UVarintType, 0),
}
def __init__(
self,
definition: NEMMosaicDefinition = None,
sink: str = None,
fee: int = None
) -> None:
self.definition = definition
self.sink = sink
self.fee = fee

View File

@ -1,61 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class NEMMosaicDefinition(p.MessageType):
FIELDS = {
1: ('name', p.UnicodeType, 0),
2: ('ticker', p.UnicodeType, 0),
3: ('namespace', p.UnicodeType, 0),
4: ('mosaic', p.UnicodeType, 0),
5: ('divisibility', p.UVarintType, 0),
6: ('levy', p.UVarintType, 0),
7: ('fee', p.UVarintType, 0),
8: ('levy_address', p.UnicodeType, 0),
9: ('levy_namespace', p.UnicodeType, 0),
10: ('levy_mosaic', p.UnicodeType, 0),
11: ('supply', p.UVarintType, 0),
12: ('mutable_supply', p.BoolType, 0),
13: ('transferable', p.BoolType, 0),
14: ('description', p.UnicodeType, 0),
15: ('networks', p.UVarintType, p.FLAG_REPEATED),
}
def __init__(
self,
name: str = None,
ticker: str = None,
namespace: str = None,
mosaic: str = None,
divisibility: int = None,
levy: int = None,
fee: int = None,
levy_address: str = None,
levy_namespace: str = None,
levy_mosaic: str = None,
supply: int = None,
mutable_supply: bool = None,
transferable: bool = None,
description: str = None,
networks: List[int] = None
) -> None:
self.name = name
self.ticker = ticker
self.namespace = namespace
self.mosaic = mosaic
self.divisibility = divisibility
self.levy = levy
self.fee = fee
self.levy_address = levy_address
self.levy_namespace = levy_namespace
self.levy_mosaic = levy_mosaic
self.supply = supply
self.mutable_supply = mutable_supply
self.transferable = transferable
self.description = description
self.networks = networks if networks is not None else []

View File

@ -1,3 +0,0 @@
# Automatically generated by pb2py
MosaicLevy_Absolute = 1
MosaicLevy_Percentile = 2

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMMosaicSupplyChange(p.MessageType):
FIELDS = {
1: ('namespace', p.UnicodeType, 0),
2: ('mosaic', p.UnicodeType, 0),
3: ('type', p.UVarintType, 0),
4: ('delta', p.UVarintType, 0),
}
def __init__(
self,
namespace: str = None,
mosaic: str = None,
type: int = None,
delta: int = None
) -> None:
self.namespace = namespace
self.mosaic = mosaic
self.type = type
self.delta = delta

View File

@ -1,23 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMProvisionNamespace(p.MessageType):
FIELDS = {
1: ('namespace', p.UnicodeType, 0),
2: ('parent', p.UnicodeType, 0),
3: ('sink', p.UnicodeType, 0),
4: ('fee', p.UVarintType, 0),
}
def __init__(
self,
namespace: str = None,
parent: str = None,
sink: str = None,
fee: int = None
) -> None:
self.namespace = namespace
self.parent = parent
self.sink = sink
self.fee = fee

View File

@ -1,46 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
from .NEMAggregateModification import NEMAggregateModification
from .NEMImportanceTransfer import NEMImportanceTransfer
from .NEMMosaicCreation import NEMMosaicCreation
from .NEMMosaicSupplyChange import NEMMosaicSupplyChange
from .NEMProvisionNamespace import NEMProvisionNamespace
from .NEMTransactionCommon import NEMTransactionCommon
from .NEMTransfer import NEMTransfer
class NEMSignTx(p.MessageType):
MESSAGE_WIRE_TYPE = 69
FIELDS = {
1: ('transaction', NEMTransactionCommon, 0),
2: ('multisig', NEMTransactionCommon, 0),
3: ('transfer', NEMTransfer, 0),
4: ('cosigning', p.BoolType, 0),
5: ('provision_namespace', NEMProvisionNamespace, 0),
6: ('mosaic_creation', NEMMosaicCreation, 0),
7: ('supply_change', NEMMosaicSupplyChange, 0),
8: ('aggregate_modification', NEMAggregateModification, 0),
9: ('importance_transfer', NEMImportanceTransfer, 0),
}
def __init__(
self,
transaction: NEMTransactionCommon = None,
multisig: NEMTransactionCommon = None,
transfer: NEMTransfer = None,
cosigning: bool = None,
provision_namespace: NEMProvisionNamespace = None,
mosaic_creation: NEMMosaicCreation = None,
supply_change: NEMMosaicSupplyChange = None,
aggregate_modification: NEMAggregateModification = None,
importance_transfer: NEMImportanceTransfer = None
) -> None:
self.transaction = transaction
self.multisig = multisig
self.transfer = transfer
self.cosigning = cosigning
self.provision_namespace = provision_namespace
self.mosaic_creation = mosaic_creation
self.supply_change = supply_change
self.aggregate_modification = aggregate_modification
self.importance_transfer = importance_transfer

View File

@ -1,18 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
class NEMSignedTx(p.MessageType):
MESSAGE_WIRE_TYPE = 70
FIELDS = {
1: ('data', p.BytesType, 0),
2: ('signature', p.BytesType, 0),
}
def __init__(
self,
data: bytes = None,
signature: bytes = None
) -> None:
self.data = data
self.signature = signature

View File

@ -1,3 +0,0 @@
# Automatically generated by pb2py
SupplyChange_Increase = 1
SupplyChange_Decrease = 2

View File

@ -1,34 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class NEMTransactionCommon(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('network', p.UVarintType, 0),
3: ('timestamp', p.UVarintType, 0),
4: ('fee', p.UVarintType, 0),
5: ('deadline', p.UVarintType, 0),
6: ('signer', p.BytesType, 0),
}
def __init__(
self,
address_n: List[int] = None,
network: int = None,
timestamp: int = None,
fee: int = None,
deadline: int = None,
signer: bytes = None
) -> None:
self.address_n = address_n if address_n is not None else []
self.network = network
self.timestamp = timestamp
self.fee = fee
self.deadline = deadline
self.signer = signer

View File

@ -1,32 +0,0 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
from .NEMMosaic import NEMMosaic
class NEMTransfer(p.MessageType):
FIELDS = {
1: ('recipient', p.UnicodeType, 0),
2: ('amount', p.UVarintType, 0),
3: ('payload', p.BytesType, 0),
4: ('public_key', p.BytesType, 0),
5: ('mosaics', NEMMosaic, p.FLAG_REPEATED),
}
def __init__(
self,
recipient: str = None,
amount: int = None,
payload: bytes = None,
public_key: bytes = None,
mosaics: List[NEMMosaic] = None
) -> None:
self.recipient = recipient
self.amount = amount
self.payload = payload
self.public_key = public_key
self.mosaics = mosaics if mosaics is not None else []

View File

@ -1,7 +0,0 @@
# Automatically generated by pb2py
PAYTOADDRESS = 0
PAYTOSCRIPTHASH = 1
PAYTOMULTISIG = 2
PAYTOOPRETURN = 3
PAYTOWITNESS = 4
PAYTOP2SHWITNESS = 5

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