mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
vendor: update trezor-common, regenerate messages
This commit is contained in:
parent
2091ae97bf
commit
28e2970cfb
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class Address(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address: str = None
|
address: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class ApplyFlags(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
flags: int = None
|
flags: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.flags = flags
|
self.flags = flags
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +21,7 @@ class ApplySettings(p.MessageType):
|
|||||||
use_passphrase: bool = None,
|
use_passphrase: bool = None,
|
||||||
homescreen: bytes = None,
|
homescreen: bytes = None,
|
||||||
passphrase_source: int = None,
|
passphrase_source: int = None,
|
||||||
auto_lock_delay_ms: int = None
|
auto_lock_delay_ms: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.language = language
|
self.language = language
|
||||||
self.label = label
|
self.label = label
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class ButtonRequest(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
code: int = None,
|
code: int = None,
|
||||||
data: str = None
|
data: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.code = code
|
self.code = code
|
||||||
self.data = data
|
self.data = data
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
Other = 1
|
Other = 1
|
||||||
FeeOverThreshold = 2
|
FeeOverThreshold = 2
|
||||||
ConfirmOutput = 3
|
ConfirmOutput = 3
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class ChangePin(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
remove: bool = None
|
remove: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.remove = remove
|
self.remove = remove
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class CipherKeyValue(p.MessageType):
|
class CipherKeyValue(p.MessageType):
|
||||||
@ -27,7 +28,7 @@ class CipherKeyValue(p.MessageType):
|
|||||||
encrypt: bool = None,
|
encrypt: bool = None,
|
||||||
ask_on_encrypt: bool = None,
|
ask_on_encrypt: bool = None,
|
||||||
ask_on_decrypt: bool = None,
|
ask_on_decrypt: bool = None,
|
||||||
iv: bytes = None
|
iv: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.key = key
|
self.key = key
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class CipheredKeyValue(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
value: bytes = None
|
value: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.value = value
|
self.value = value
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class CosiCommit(p.MessageType):
|
class CosiCommit(p.MessageType):
|
||||||
@ -17,7 +18,7 @@ class CosiCommit(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
data: bytes = None
|
data: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.data = data
|
self.data = data
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class CosiCommitment(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
commitment: bytes = None,
|
commitment: bytes = None,
|
||||||
pubkey: bytes = None
|
pubkey: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.commitment = commitment
|
self.commitment = commitment
|
||||||
self.pubkey = pubkey
|
self.pubkey = pubkey
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class CosiSign(p.MessageType):
|
class CosiSign(p.MessageType):
|
||||||
@ -21,7 +22,7 @@ class CosiSign(p.MessageType):
|
|||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
data: bytes = None,
|
data: bytes = None,
|
||||||
global_commitment: bytes = None,
|
global_commitment: bytes = None,
|
||||||
global_pubkey: bytes = None
|
global_pubkey: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.data = data
|
self.data = data
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class CosiSignature(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
signature: bytes = None
|
signature: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class DebugLinkDecision(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
yes_no: bool = None,
|
yes_no: bool = None,
|
||||||
up_down: bool = None,
|
up_down: bool = None,
|
||||||
input: str = None
|
input: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.yes_no = yes_no
|
self.yes_no = yes_no
|
||||||
self.up_down = up_down
|
self.up_down = up_down
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class DebugLinkFlashErase(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
sector: int = None
|
sector: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.sector = sector
|
self.sector = sector
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class DebugLinkLog(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
level: int = None,
|
level: int = None,
|
||||||
bucket: str = None,
|
bucket: str = None,
|
||||||
text: str = None
|
text: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.level = level
|
self.level = level
|
||||||
self.bucket = bucket
|
self.bucket = bucket
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class DebugLinkMemory(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
memory: bytes = None
|
memory: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.memory = memory
|
self.memory = memory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class DebugLinkMemoryRead(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address: int = None,
|
address: int = None,
|
||||||
length: int = None
|
length: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
self.length = length
|
self.length = length
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class DebugLinkMemoryWrite(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
address: int = None,
|
address: int = None,
|
||||||
memory: bytes = None,
|
memory: bytes = None,
|
||||||
flash: bool = None
|
flash: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
self.memory = memory
|
self.memory = memory
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
@ -31,7 +32,7 @@ class DebugLinkState(p.MessageType):
|
|||||||
reset_entropy: bytes = None,
|
reset_entropy: bytes = None,
|
||||||
recovery_fake_word: str = None,
|
recovery_fake_word: str = None,
|
||||||
recovery_word_pos: int = None,
|
recovery_word_pos: int = None,
|
||||||
reset_word_pos: int = None
|
reset_word_pos: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.layout = layout
|
self.layout = layout
|
||||||
self.pin = pin
|
self.pin = pin
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class DecryptMessage(p.MessageType):
|
class DecryptMessage(p.MessageType):
|
||||||
@ -21,7 +22,7 @@ class DecryptMessage(p.MessageType):
|
|||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
nonce: bytes = None,
|
nonce: bytes = None,
|
||||||
message: bytes = None,
|
message: bytes = None,
|
||||||
hmac: bytes = None
|
hmac: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.nonce = nonce
|
self.nonce = nonce
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class DecryptedMessage(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
message: bytes = None,
|
message: bytes = None,
|
||||||
address: str = None
|
address: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.message = message
|
self.message = message
|
||||||
self.address = address
|
self.address = address
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class ECDHSessionKey(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
session_key: bytes = None
|
session_key: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.session_key = session_key
|
self.session_key = session_key
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class EncryptMessage(p.MessageType):
|
class EncryptMessage(p.MessageType):
|
||||||
@ -14,7 +15,7 @@ class EncryptMessage(p.MessageType):
|
|||||||
2: ('message', p.BytesType, 0),
|
2: ('message', p.BytesType, 0),
|
||||||
3: ('display_only', p.BoolType, 0),
|
3: ('display_only', p.BoolType, 0),
|
||||||
4: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
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__(
|
def __init__(
|
||||||
@ -23,7 +24,7 @@ class EncryptMessage(p.MessageType):
|
|||||||
message: bytes = None,
|
message: bytes = None,
|
||||||
display_only: bool = None,
|
display_only: bool = None,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
coin_name: str = None
|
coin_name: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.pubkey = pubkey
|
self.pubkey = pubkey
|
||||||
self.message = message
|
self.message = message
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class EncryptedMessage(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
nonce: bytes = None,
|
nonce: bytes = None,
|
||||||
message: bytes = None,
|
message: bytes = None,
|
||||||
hmac: bytes = None
|
hmac: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.nonce = nonce
|
self.nonce = nonce
|
||||||
self.message = message
|
self.message = message
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class Entropy(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
entropy: bytes = None
|
entropy: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.entropy = entropy
|
self.entropy = entropy
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class EntropyAck(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
entropy: bytes = None
|
entropy: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.entropy = entropy
|
self.entropy = entropy
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -7,14 +8,14 @@ class EstimateTxSize(p.MessageType):
|
|||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('outputs_count', p.UVarintType, 0), # required
|
1: ('outputs_count', p.UVarintType, 0), # required
|
||||||
2: ('inputs_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__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
outputs_count: int = None,
|
outputs_count: int = None,
|
||||||
inputs_count: int = None,
|
inputs_count: int = None,
|
||||||
coin_name: str = None
|
coin_name: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.outputs_count = outputs_count
|
self.outputs_count = outputs_count
|
||||||
self.inputs_count = inputs_count
|
self.inputs_count = inputs_count
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class EthereumAddress(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address: bytes = None
|
address: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class EthereumGetAddress(p.MessageType):
|
class EthereumGetAddress(p.MessageType):
|
||||||
@ -17,7 +18,7 @@ class EthereumGetAddress(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
show_display: bool = None
|
show_display: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.show_display = show_display
|
self.show_display = show_display
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class EthereumMessageSignature(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address: bytes = None,
|
address: bytes = None,
|
||||||
signature: bytes = None
|
signature: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class EthereumSignMessage(p.MessageType):
|
class EthereumSignMessage(p.MessageType):
|
||||||
@ -17,7 +18,7 @@ class EthereumSignMessage(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
message: bytes = None
|
message: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.message = message
|
self.message = message
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class EthereumSignTx(p.MessageType):
|
class EthereumSignTx(p.MessageType):
|
||||||
@ -33,7 +34,7 @@ class EthereumSignTx(p.MessageType):
|
|||||||
data_initial_chunk: bytes = None,
|
data_initial_chunk: bytes = None,
|
||||||
data_length: int = None,
|
data_length: int = None,
|
||||||
chain_id: int = None,
|
chain_id: int = None,
|
||||||
tx_type: int = None
|
tx_type: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.nonce = nonce
|
self.nonce = nonce
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class EthereumTxAck(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
data_chunk: bytes = None
|
data_chunk: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.data_chunk = data_chunk
|
self.data_chunk = data_chunk
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -16,7 +17,7 @@ class EthereumTxRequest(p.MessageType):
|
|||||||
data_length: int = None,
|
data_length: int = None,
|
||||||
signature_v: int = None,
|
signature_v: int = None,
|
||||||
signature_r: bytes = None,
|
signature_r: bytes = None,
|
||||||
signature_s: bytes = None
|
signature_s: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.data_length = data_length
|
self.data_length = data_length
|
||||||
self.signature_v = signature_v
|
self.signature_v = signature_v
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class EthereumVerifyMessage(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
address: bytes = None,
|
address: bytes = None,
|
||||||
signature: bytes = None,
|
signature: bytes = None,
|
||||||
message: bytes = None
|
message: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class Failure(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
code: int = None,
|
code: int = None,
|
||||||
message: str = None
|
message: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.code = code
|
self.code = code
|
||||||
self.message = message
|
self.message = message
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
UnexpectedMessage = 1
|
UnexpectedMessage = 1
|
||||||
ButtonExpected = 2
|
ButtonExpected = 2
|
||||||
DataError = 3
|
DataError = 3
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -60,7 +61,7 @@ class Features(p.MessageType):
|
|||||||
fw_patch: int = None,
|
fw_patch: int = None,
|
||||||
fw_vendor: str = None,
|
fw_vendor: str = None,
|
||||||
fw_vendor_keys: bytes = None,
|
fw_vendor_keys: bytes = None,
|
||||||
unfinished_backup: bool = None
|
unfinished_backup: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.vendor = vendor
|
self.vendor = vendor
|
||||||
self.major_version = major_version
|
self.major_version = major_version
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class FirmwareErase(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
length: int = None
|
length: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.length = length
|
self.length = length
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class FirmwareRequest(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
offset: int = None,
|
offset: int = None,
|
||||||
length: int = None
|
length: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.offset = offset
|
self.offset = offset
|
||||||
self.length = length
|
self.length = length
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class FirmwareUpload(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
payload: bytes = None,
|
payload: bytes = None,
|
||||||
hash: bytes = None
|
hash: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.payload = payload
|
self.payload = payload
|
||||||
self.hash = hash
|
self.hash = hash
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
from .MultisigRedeemScriptType import MultisigRedeemScriptType
|
||||||
|
|
||||||
|
|
||||||
@ -12,10 +13,10 @@ class GetAddress(p.MessageType):
|
|||||||
MESSAGE_WIRE_TYPE = 29
|
MESSAGE_WIRE_TYPE = 29
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
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),
|
3: ('show_display', p.BoolType, 0),
|
||||||
4: ('multisig', MultisigRedeemScriptType, 0),
|
4: ('multisig', MultisigRedeemScriptType, 0),
|
||||||
5: ('script_type', p.UVarintType, 0), # default=0
|
5: ('script_type', p.UVarintType, 0), # default=SPENDADDRESS
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@ -24,7 +25,7 @@ class GetAddress(p.MessageType):
|
|||||||
coin_name: str = None,
|
coin_name: str = None,
|
||||||
show_display: bool = None,
|
show_display: bool = None,
|
||||||
multisig: MultisigRedeemScriptType = None,
|
multisig: MultisigRedeemScriptType = None,
|
||||||
script_type: int = None
|
script_type: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.coin_name = coin_name
|
self.coin_name = coin_name
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from .IdentityType import IdentityType
|
from .IdentityType import IdentityType
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ class GetECDHSessionKey(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
identity: IdentityType = None,
|
identity: IdentityType = None,
|
||||||
peer_public_key: bytes = None,
|
peer_public_key: bytes = None,
|
||||||
ecdsa_curve_name: str = None
|
ecdsa_curve_name: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.identity = identity
|
self.identity = identity
|
||||||
self.peer_public_key = peer_public_key
|
self.peer_public_key = peer_public_key
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class GetEntropy(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
size: int = None
|
size: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.size = size
|
self.size = size
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class GetPublicKey(p.MessageType):
|
class GetPublicKey(p.MessageType):
|
||||||
@ -13,7 +14,7 @@ class GetPublicKey(p.MessageType):
|
|||||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
2: ('ecdsa_curve_name', p.UnicodeType, 0),
|
2: ('ecdsa_curve_name', p.UnicodeType, 0),
|
||||||
3: ('show_display', p.BoolType, 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__(
|
def __init__(
|
||||||
@ -21,7 +22,7 @@ class GetPublicKey(p.MessageType):
|
|||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
ecdsa_curve_name: str = None,
|
ecdsa_curve_name: str = None,
|
||||||
show_display: bool = None,
|
show_display: bool = None,
|
||||||
coin_name: str = None
|
coin_name: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.ecdsa_curve_name = ecdsa_curve_name
|
self.ecdsa_curve_name = ecdsa_curve_name
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ class HDNodePathType(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
node: HDNodeType = None,
|
node: HDNodeType = None,
|
||||||
address_n: List[int] = None
|
address_n: List[int] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.node = node
|
self.node = node
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ class HDNodeType(p.MessageType):
|
|||||||
child_num: int = None,
|
child_num: int = None,
|
||||||
chain_code: bytes = None,
|
chain_code: bytes = None,
|
||||||
private_key: bytes = None,
|
private_key: bytes = None,
|
||||||
public_key: bytes = None
|
public_key: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.depth = depth
|
self.depth = depth
|
||||||
self.fingerprint = fingerprint
|
self.fingerprint = fingerprint
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ class IdentityType(p.MessageType):
|
|||||||
host: str = None,
|
host: str = None,
|
||||||
port: str = None,
|
port: str = None,
|
||||||
path: str = None,
|
path: str = None,
|
||||||
index: int = None
|
index: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.proto = proto
|
self.proto = proto
|
||||||
self.user = user
|
self.user = user
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class Initialize(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
state: bytes = None,
|
state: bytes = None,
|
||||||
skip_passphrase: bool = None
|
skip_passphrase: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.state = state
|
self.state = state
|
||||||
self.skip_passphrase = skip_passphrase
|
self.skip_passphrase = skip_passphrase
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
SPENDADDRESS = 0
|
SPENDADDRESS = 0
|
||||||
SPENDMULTISIG = 1
|
SPENDMULTISIG = 1
|
||||||
EXTERNAL = 2
|
EXTERNAL = 2
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class LiskAddress(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address: str = None
|
address: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -9,6 +10,6 @@ class LiskDelegateType(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
username: str = None
|
username: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.username = username
|
self.username = username
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class LiskGetAddress(p.MessageType):
|
class LiskGetAddress(p.MessageType):
|
||||||
@ -17,7 +18,7 @@ class LiskGetAddress(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
show_display: bool = None
|
show_display: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.show_display = show_display
|
self.show_display = show_display
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class LiskGetPublicKey(p.MessageType):
|
class LiskGetPublicKey(p.MessageType):
|
||||||
@ -17,7 +18,7 @@ class LiskGetPublicKey(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
show_display: bool = None
|
show_display: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.show_display = show_display
|
self.show_display = show_display
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class LiskMessageSignature(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
public_key: bytes = None,
|
public_key: bytes = None,
|
||||||
signature: bytes = None
|
signature: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.public_key = public_key
|
self.public_key = public_key
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class LiskMultisignatureType(p.MessageType):
|
class LiskMultisignatureType(p.MessageType):
|
||||||
@ -18,7 +19,7 @@ class LiskMultisignatureType(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
min: int = None,
|
min: int = None,
|
||||||
life_time: int = None,
|
life_time: int = None,
|
||||||
keys_group: List[str] = None
|
keys_group: List[str] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.min = min
|
self.min = min
|
||||||
self.life_time = life_time
|
self.life_time = life_time
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class LiskPublicKey(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
public_key: bytes = None
|
public_key: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.public_key = public_key
|
self.public_key = public_key
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class LiskSignMessage(p.MessageType):
|
class LiskSignMessage(p.MessageType):
|
||||||
@ -17,7 +18,7 @@ class LiskSignMessage(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
message: bytes = None
|
message: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.message = message
|
self.message = message
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
from .LiskTransactionCommon import LiskTransactionCommon
|
from .LiskTransactionCommon import LiskTransactionCommon
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ class LiskSignTx(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
transaction: LiskTransactionCommon = None
|
transaction: LiskTransactionCommon = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.transaction = transaction
|
self.transaction = transaction
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -9,6 +10,6 @@ class LiskSignatureType(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
public_key: bytes = None
|
public_key: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.public_key = public_key
|
self.public_key = public_key
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class LiskSignedTx(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
signature: bytes = None
|
signature: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
from .LiskDelegateType import LiskDelegateType
|
from .LiskDelegateType import LiskDelegateType
|
||||||
from .LiskMultisignatureType import LiskMultisignatureType
|
from .LiskMultisignatureType import LiskMultisignatureType
|
||||||
from .LiskSignatureType import LiskSignatureType
|
from .LiskSignatureType import LiskSignatureType
|
||||||
@ -25,7 +26,7 @@ class LiskTransactionAsset(p.MessageType):
|
|||||||
delegate: LiskDelegateType = None,
|
delegate: LiskDelegateType = None,
|
||||||
votes: List[str] = None,
|
votes: List[str] = None,
|
||||||
multisignature: LiskMultisignatureType = None,
|
multisignature: LiskMultisignatureType = None,
|
||||||
data: str = None
|
data: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
self.delegate = delegate
|
self.delegate = delegate
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from .LiskTransactionAsset import LiskTransactionAsset
|
from .LiskTransactionAsset import LiskTransactionAsset
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ class LiskTransactionCommon(p.MessageType):
|
|||||||
requester_public_key: bytes = None,
|
requester_public_key: bytes = None,
|
||||||
signature: bytes = None,
|
signature: bytes = None,
|
||||||
timestamp: int = None,
|
timestamp: int = None,
|
||||||
asset: LiskTransactionAsset = None
|
asset: LiskTransactionAsset = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.type = type
|
self.type = type
|
||||||
self.amount = amount
|
self.amount = amount
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
Transfer = 0
|
Transfer = 0
|
||||||
RegisterSecondPassphrase = 1
|
RegisterSecondPassphrase = 1
|
||||||
RegisterDelegate = 2
|
RegisterDelegate = 2
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class LiskVerifyMessage(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
public_key: bytes = None,
|
public_key: bytes = None,
|
||||||
signature: bytes = None,
|
signature: bytes = None,
|
||||||
message: bytes = None
|
message: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.public_key = public_key
|
self.public_key = public_key
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from .HDNodeType import HDNodeType
|
from .HDNodeType import HDNodeType
|
||||||
|
|
||||||
@ -10,7 +11,7 @@ class LoadDevice(p.MessageType):
|
|||||||
2: ('node', HDNodeType, 0),
|
2: ('node', HDNodeType, 0),
|
||||||
3: ('pin', p.UnicodeType, 0),
|
3: ('pin', p.UnicodeType, 0),
|
||||||
4: ('passphrase_protection', p.BoolType, 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),
|
6: ('label', p.UnicodeType, 0),
|
||||||
7: ('skip_checksum', p.BoolType, 0),
|
7: ('skip_checksum', p.BoolType, 0),
|
||||||
8: ('u2f_counter', p.UVarintType, 0),
|
8: ('u2f_counter', p.UVarintType, 0),
|
||||||
@ -25,7 +26,7 @@ class LoadDevice(p.MessageType):
|
|||||||
language: str = None,
|
language: str = None,
|
||||||
label: str = None,
|
label: str = None,
|
||||||
skip_checksum: bool = None,
|
skip_checksum: bool = None,
|
||||||
u2f_counter: int = None
|
u2f_counter: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.mnemonic = mnemonic
|
self.mnemonic = mnemonic
|
||||||
self.node = node
|
self.node = node
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class MessageSignature(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address: str = None,
|
address: str = None,
|
||||||
signature: bytes = None
|
signature: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
Initialize = 0
|
Initialize = 0
|
||||||
Ping = 1
|
Ping = 1
|
||||||
Success = 2
|
Success = 2
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
from .HDNodePathType import HDNodePathType
|
from .HDNodePathType import HDNodePathType
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ class MultisigRedeemScriptType(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
pubkeys: List[HDNodePathType] = None,
|
pubkeys: List[HDNodePathType] = None,
|
||||||
signatures: List[bytes] = None,
|
signatures: List[bytes] = None,
|
||||||
m: int = None
|
m: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.pubkeys = pubkeys if pubkeys is not None else []
|
self.pubkeys = pubkeys if pubkeys is not None else []
|
||||||
self.signatures = signatures if signatures is not None else []
|
self.signatures = signatures if signatures is not None else []
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class NEMAddress(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
address: str = None
|
address: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address = address
|
self.address = address
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
from .NEMCosignatoryModification import NEMCosignatoryModification
|
from .NEMCosignatoryModification import NEMCosignatoryModification
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ class NEMAggregateModification(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
modifications: List[NEMCosignatoryModification] = None,
|
modifications: List[NEMCosignatoryModification] = None,
|
||||||
relative_change: int = None
|
relative_change: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.modifications = modifications if modifications is not None else []
|
self.modifications = modifications if modifications is not None else []
|
||||||
self.relative_change = relative_change
|
self.relative_change = relative_change
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -11,7 +12,7 @@ class NEMCosignatoryModification(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
type: int = None,
|
type: int = None,
|
||||||
public_key: bytes = None
|
public_key: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.type = type
|
self.type = type
|
||||||
self.public_key = public_key
|
self.public_key = public_key
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class NEMDecryptMessage(p.MessageType):
|
class NEMDecryptMessage(p.MessageType):
|
||||||
@ -21,7 +22,7 @@ class NEMDecryptMessage(p.MessageType):
|
|||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
network: int = None,
|
network: int = None,
|
||||||
public_key: bytes = None,
|
public_key: bytes = None,
|
||||||
payload: bytes = None
|
payload: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.network = network
|
self.network = network
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class NEMDecryptedMessage(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
payload: bytes = None
|
payload: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.payload = payload
|
self.payload = payload
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class NEMGetAddress(p.MessageType):
|
class NEMGetAddress(p.MessageType):
|
||||||
@ -19,7 +20,7 @@ class NEMGetAddress(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
network: int = None,
|
network: int = None,
|
||||||
show_display: bool = None
|
show_display: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.network = network
|
self.network = network
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -11,7 +12,7 @@ class NEMImportanceTransfer(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
mode: int = None,
|
mode: int = None,
|
||||||
public_key: bytes = None
|
public_key: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.mode = mode
|
self.mode = mode
|
||||||
self.public_key = public_key
|
self.public_key = public_key
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
ImportanceTransfer_Activate = 1
|
ImportanceTransfer_Activate = 1
|
||||||
ImportanceTransfer_Deactivate = 2
|
ImportanceTransfer_Deactivate = 2
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
CosignatoryModification_Add = 1
|
CosignatoryModification_Add = 1
|
||||||
CosignatoryModification_Delete = 2
|
CosignatoryModification_Delete = 2
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -13,7 +14,7 @@ class NEMMosaic(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
namespace: str = None,
|
namespace: str = None,
|
||||||
mosaic: str = None,
|
mosaic: str = None,
|
||||||
quantity: int = None
|
quantity: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.namespace = namespace
|
self.namespace = namespace
|
||||||
self.mosaic = mosaic
|
self.mosaic = mosaic
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from .NEMMosaicDefinition import NEMMosaicDefinition
|
from .NEMMosaicDefinition import NEMMosaicDefinition
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class NEMMosaicCreation(p.MessageType):
|
|||||||
self,
|
self,
|
||||||
definition: NEMMosaicDefinition = None,
|
definition: NEMMosaicDefinition = None,
|
||||||
sink: str = None,
|
sink: str = None,
|
||||||
fee: int = None
|
fee: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.definition = definition
|
self.definition = definition
|
||||||
self.sink = sink
|
self.sink = sink
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class NEMMosaicDefinition(p.MessageType):
|
class NEMMosaicDefinition(p.MessageType):
|
||||||
@ -42,7 +43,7 @@ class NEMMosaicDefinition(p.MessageType):
|
|||||||
mutable_supply: bool = None,
|
mutable_supply: bool = None,
|
||||||
transferable: bool = None,
|
transferable: bool = None,
|
||||||
description: str = None,
|
description: str = None,
|
||||||
networks: List[int] = None
|
networks: List[int] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.name = name
|
self.name = name
|
||||||
self.ticker = ticker
|
self.ticker = ticker
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
MosaicLevy_Absolute = 1
|
MosaicLevy_Absolute = 1
|
||||||
MosaicLevy_Percentile = 2
|
MosaicLevy_Percentile = 2
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ class NEMMosaicSupplyChange(p.MessageType):
|
|||||||
namespace: str = None,
|
namespace: str = None,
|
||||||
mosaic: str = None,
|
mosaic: str = None,
|
||||||
type: int = None,
|
type: int = None,
|
||||||
delta: int = None
|
delta: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.namespace = namespace
|
self.namespace = namespace
|
||||||
self.mosaic = mosaic
|
self.mosaic = mosaic
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ class NEMProvisionNamespace(p.MessageType):
|
|||||||
namespace: str = None,
|
namespace: str = None,
|
||||||
parent: str = None,
|
parent: str = None,
|
||||||
sink: str = None,
|
sink: str = None,
|
||||||
fee: int = None
|
fee: int = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.namespace = namespace
|
self.namespace = namespace
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
from .NEMAggregateModification import NEMAggregateModification
|
from .NEMAggregateModification import NEMAggregateModification
|
||||||
from .NEMImportanceTransfer import NEMImportanceTransfer
|
from .NEMImportanceTransfer import NEMImportanceTransfer
|
||||||
@ -33,7 +34,7 @@ class NEMSignTx(p.MessageType):
|
|||||||
mosaic_creation: NEMMosaicCreation = None,
|
mosaic_creation: NEMMosaicCreation = None,
|
||||||
supply_change: NEMMosaicSupplyChange = None,
|
supply_change: NEMMosaicSupplyChange = None,
|
||||||
aggregate_modification: NEMAggregateModification = None,
|
aggregate_modification: NEMAggregateModification = None,
|
||||||
importance_transfer: NEMImportanceTransfer = None
|
importance_transfer: NEMImportanceTransfer = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.transaction = transaction
|
self.transaction = transaction
|
||||||
self.multisig = multisig
|
self.multisig = multisig
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class NEMSignedTx(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
data: bytes = None,
|
data: bytes = None,
|
||||||
signature: bytes = None
|
signature: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.data = data
|
self.data = data
|
||||||
self.signature = signature
|
self.signature = signature
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
SupplyChange_Increase = 1
|
SupplyChange_Increase = 1
|
||||||
SupplyChange_Decrease = 2
|
SupplyChange_Decrease = 2
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
class NEMTransactionCommon(p.MessageType):
|
class NEMTransactionCommon(p.MessageType):
|
||||||
@ -24,7 +25,7 @@ class NEMTransactionCommon(p.MessageType):
|
|||||||
timestamp: int = None,
|
timestamp: int = None,
|
||||||
fee: int = None,
|
fee: int = None,
|
||||||
deadline: int = None,
|
deadline: int = None,
|
||||||
signer: bytes = None
|
signer: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.address_n = address_n if address_n is not None else []
|
self.address_n = address_n if address_n is not None else []
|
||||||
self.network = network
|
self.network = network
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
if __debug__:
|
if __debug__:
|
||||||
try:
|
try:
|
||||||
from typing import List
|
from typing import List
|
||||||
except ImportError:
|
except ImportError:
|
||||||
List = None
|
List = None # type: ignore
|
||||||
from .NEMMosaic import NEMMosaic
|
from .NEMMosaic import NEMMosaic
|
||||||
|
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ class NEMTransfer(p.MessageType):
|
|||||||
amount: int = None,
|
amount: int = None,
|
||||||
payload: bytes = None,
|
payload: bytes = None,
|
||||||
public_key: bytes = None,
|
public_key: bytes = None,
|
||||||
mosaics: List[NEMMosaic] = None
|
mosaics: List[NEMMosaic] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.recipient = recipient
|
self.recipient = recipient
|
||||||
self.amount = amount
|
self.amount = amount
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
PAYTOADDRESS = 0
|
PAYTOADDRESS = 0
|
||||||
PAYTOSCRIPTHASH = 1
|
PAYTOSCRIPTHASH = 1
|
||||||
PAYTOMULTISIG = 2
|
PAYTOMULTISIG = 2
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ class PassphraseAck(p.MessageType):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
passphrase: str = None,
|
passphrase: str = None,
|
||||||
state: bytes = None
|
state: bytes = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.passphrase = passphrase
|
self.passphrase = passphrase
|
||||||
self.state = state
|
self.state = state
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Automatically generated by pb2py
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
import protobuf as p
|
import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
@ -10,6 +11,6 @@ class PassphraseRequest(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
on_device: bool = None
|
on_device: bool = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.on_device = on_device
|
self.on_device = on_device
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user