1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

auto: regenerate protobuf classes

This commit is contained in:
matejcik 2020-09-14 13:56:11 +02:00 committed by matejcik
parent 37025e2a84
commit ef4022fbf5
517 changed files with 3427 additions and 1851 deletions

View File

@ -15,12 +15,13 @@ class Address(p.MessageType):
def __init__(
self,
address: str = None,
*,
address: str,
) -> None:
self.address = address
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address', p.UnicodeType, 0), # required
1: ('address', p.UnicodeType, p.FLAG_REQUIRED),
}

View File

@ -15,6 +15,7 @@ class ApplyFlags(p.MessageType):
def __init__(
self,
*,
flags: int = None,
) -> None:
self.flags = flags
@ -22,5 +23,5 @@ class ApplyFlags(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('flags', p.UVarintType, 0),
1: ('flags', p.UVarintType, None),
}

View File

@ -16,6 +16,7 @@ class ApplySettings(p.MessageType):
def __init__(
self,
*,
language: str = None,
label: str = None,
use_passphrase: bool = None,
@ -37,12 +38,12 @@ class ApplySettings(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('language', p.UnicodeType, 0),
2: ('label', p.UnicodeType, 0),
3: ('use_passphrase', p.BoolType, 0),
4: ('homescreen', p.BytesType, 0),
6: ('auto_lock_delay_ms', p.UVarintType, 0),
7: ('display_rotation', p.UVarintType, 0),
8: ('passphrase_always_on_device', p.BoolType, 0),
9: ('safety_checks', p.EnumType("SafetyCheckLevel", (0, 1, 2)), 0),
1: ('language', p.UnicodeType, None),
2: ('label', p.UnicodeType, None),
3: ('use_passphrase', p.BoolType, None),
4: ('homescreen', p.BytesType, None),
6: ('auto_lock_delay_ms', p.UVarintType, None),
7: ('display_rotation', p.UVarintType, None),
8: ('passphrase_always_on_device', p.BoolType, None),
9: ('safety_checks', p.EnumType("SafetyCheckLevel", (0, 1, 2)), None),
}

View File

@ -16,27 +16,28 @@ class AuthorizeCoinJoin(p.MessageType):
def __init__(
self,
coordinator: str = None,
max_total_fee: int = None,
fee_per_anonymity: int = None,
*,
coordinator: str,
max_total_fee: int,
address_n: List[int] = None,
coin_name: str = None,
script_type: EnumTypeInputScriptType = None,
fee_per_anonymity: int = None,
coin_name: str = "Bitcoin",
script_type: EnumTypeInputScriptType = 0,
) -> None:
self.address_n = address_n if address_n is not None else []
self.coordinator = coordinator
self.max_total_fee = max_total_fee
self.fee_per_anonymity = fee_per_anonymity
self.address_n = address_n if address_n is not None else []
self.coin_name = coin_name
self.script_type = script_type
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('coordinator', p.UnicodeType, 0), # required
2: ('max_total_fee', p.UVarintType, 0), # required
3: ('fee_per_anonymity', p.UVarintType, 0),
1: ('coordinator', p.UnicodeType, p.FLAG_REQUIRED),
2: ('max_total_fee', p.UVarintType, p.FLAG_REQUIRED),
3: ('fee_per_anonymity', p.UVarintType, None),
4: ('address_n', p.UVarintType, p.FLAG_REPEATED),
5: ('coin_name', p.UnicodeType, 0), # default=Bitcoin
5: ('coin_name', p.UnicodeType, "Bitcoin"), # default=Bitcoin
6: ('script_type', p.EnumType("InputScriptType", (0, 1, 2, 3, 4)), 0), # default=SPENDADDRESS
}

View File

@ -15,6 +15,7 @@ class BinanceAddress(p.MessageType):
def __init__(
self,
*,
address: str = None,
) -> None:
self.address = address
@ -22,5 +23,5 @@ class BinanceAddress(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address', p.UnicodeType, 0),
1: ('address', p.UnicodeType, None),
}

View File

@ -15,6 +15,7 @@ class BinanceCancelMsg(p.MessageType):
def __init__(
self,
*,
refid: str = None,
sender: str = None,
symbol: str = None,
@ -26,7 +27,7 @@ class BinanceCancelMsg(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('refid', p.UnicodeType, 0),
2: ('sender', p.UnicodeType, 0),
3: ('symbol', p.UnicodeType, 0),
1: ('refid', p.UnicodeType, None),
2: ('sender', p.UnicodeType, None),
3: ('symbol', p.UnicodeType, None),
}

View File

@ -14,6 +14,7 @@ class BinanceCoin(p.MessageType):
def __init__(
self,
*,
amount: int = None,
denom: str = None,
) -> None:
@ -23,6 +24,6 @@ class BinanceCoin(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('amount', p.SVarintType, 0),
2: ('denom', p.UnicodeType, 0),
1: ('amount', p.SVarintType, None),
2: ('denom', p.UnicodeType, None),
}

View File

@ -15,6 +15,7 @@ class BinanceGetAddress(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
@ -25,5 +26,5 @@ class BinanceGetAddress(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class BinanceGetPublicKey(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
@ -25,5 +26,5 @@ class BinanceGetPublicKey(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, None),
}

View File

@ -16,15 +16,16 @@ class BinanceInputOutput(p.MessageType):
def __init__(
self,
address: str = None,
*,
coins: List[BinanceCoin] = None,
address: str = None,
) -> None:
self.address = address
self.coins = coins if coins is not None else []
self.address = address
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address', p.UnicodeType, 0),
1: ('address', p.UnicodeType, None),
2: ('coins', BinanceCoin, p.FLAG_REPEATED),
}

View File

@ -18,6 +18,7 @@ class BinanceOrderMsg(p.MessageType):
def __init__(
self,
*,
id: str = None,
ordertype: EnumTypeBinanceOrderType = None,
price: int = None,
@ -39,12 +40,12 @@ class BinanceOrderMsg(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('id', p.UnicodeType, 0),
2: ('ordertype', p.EnumType("BinanceOrderType", (0, 1, 2, 3)), 0),
3: ('price', p.SVarintType, 0),
4: ('quantity', p.SVarintType, 0),
5: ('sender', p.UnicodeType, 0),
6: ('side', p.EnumType("BinanceOrderSide", (0, 1, 2)), 0),
7: ('symbol', p.UnicodeType, 0),
8: ('timeinforce', p.EnumType("BinanceTimeInForce", (0, 1, 2, 3)), 0),
1: ('id', p.UnicodeType, None),
2: ('ordertype', p.EnumType("BinanceOrderType", (0, 1, 2, 3)), None),
3: ('price', p.SVarintType, None),
4: ('quantity', p.SVarintType, None),
5: ('sender', p.UnicodeType, None),
6: ('side', p.EnumType("BinanceOrderSide", (0, 1, 2)), None),
7: ('symbol', p.UnicodeType, None),
8: ('timeinforce', p.EnumType("BinanceTimeInForce", (0, 1, 2, 3)), None),
}

View File

@ -15,6 +15,7 @@ class BinancePublicKey(p.MessageType):
def __init__(
self,
*,
public_key: bytes = None,
) -> None:
self.public_key = public_key
@ -22,5 +23,5 @@ class BinancePublicKey(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('public_key', p.BytesType, 0),
1: ('public_key', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class BinanceSignTx(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
msg_count: int = None,
account_number: int = None,
@ -35,10 +36,10 @@ class BinanceSignTx(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('msg_count', p.UVarintType, 0),
3: ('account_number', p.SVarintType, 0),
4: ('chain_id', p.UnicodeType, 0),
5: ('memo', p.UnicodeType, 0),
6: ('sequence', p.SVarintType, 0),
7: ('source', p.SVarintType, 0),
2: ('msg_count', p.UVarintType, None),
3: ('account_number', p.SVarintType, None),
4: ('chain_id', p.UnicodeType, None),
5: ('memo', p.UnicodeType, None),
6: ('sequence', p.SVarintType, None),
7: ('source', p.SVarintType, None),
}

View File

@ -15,6 +15,7 @@ class BinanceSignedTx(p.MessageType):
def __init__(
self,
*,
signature: bytes = None,
public_key: bytes = None,
) -> None:
@ -24,6 +25,6 @@ class BinanceSignedTx(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('signature', p.BytesType, 0),
2: ('public_key', p.BytesType, 0),
1: ('signature', p.BytesType, None),
2: ('public_key', p.BytesType, None),
}

View File

@ -17,6 +17,7 @@ class BinanceTransferMsg(p.MessageType):
def __init__(
self,
*,
inputs: List[BinanceInputOutput] = None,
outputs: List[BinanceInputOutput] = None,
) -> None:

View File

@ -16,6 +16,7 @@ class ButtonRequest(p.MessageType):
def __init__(
self,
*,
code: EnumTypeButtonRequestType = None,
) -> None:
self.code = code
@ -23,5 +24,5 @@ class ButtonRequest(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)), 0),
1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)), None),
}

View File

@ -15,6 +15,7 @@ class CardanoAddress(p.MessageType):
def __init__(
self,
*,
address: str = None,
) -> None:
self.address = address
@ -22,5 +23,5 @@ class CardanoAddress(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address', p.UnicodeType, 0),
1: ('address', p.UnicodeType, None),
}

View File

@ -17,24 +17,25 @@ class CardanoAddressParametersType(p.MessageType):
def __init__(
self,
address_type: EnumTypeCardanoAddressType = None,
*,
address_n: List[int] = None,
address_n_staking: List[int] = None,
address_type: EnumTypeCardanoAddressType = None,
staking_key_hash: bytes = None,
certificate_pointer: CardanoBlockchainPointerType = None,
) -> None:
self.address_type = address_type
self.address_n = address_n if address_n is not None else []
self.address_n_staking = address_n_staking if address_n_staking is not None else []
self.address_type = address_type
self.staking_key_hash = staking_key_hash
self.certificate_pointer = certificate_pointer
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address_type', p.EnumType("CardanoAddressType", (0, 1, 2, 3, 4, 5, 6, 7, 8, 14, 15)), 0),
1: ('address_type', p.EnumType("CardanoAddressType", (0, 1, 2, 3, 4, 5, 6, 7, 8, 14, 15)), None),
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
3: ('address_n_staking', p.UVarintType, p.FLAG_REPEATED),
4: ('staking_key_hash', p.BytesType, 0),
5: ('certificate_pointer', CardanoBlockchainPointerType, 0),
4: ('staking_key_hash', p.BytesType, None),
5: ('certificate_pointer', CardanoBlockchainPointerType, None),
}

View File

@ -14,6 +14,7 @@ class CardanoBlockchainPointerType(p.MessageType):
def __init__(
self,
*,
block_index: int = None,
tx_index: int = None,
certificate_index: int = None,
@ -25,7 +26,7 @@ class CardanoBlockchainPointerType(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('block_index', p.UVarintType, 0),
2: ('tx_index', p.UVarintType, 0),
3: ('certificate_index', p.UVarintType, 0),
1: ('block_index', p.UVarintType, None),
2: ('tx_index', p.UVarintType, None),
3: ('certificate_index', p.UVarintType, None),
}

View File

@ -17,6 +17,7 @@ class CardanoGetAddress(p.MessageType):
def __init__(
self,
*,
show_display: bool = None,
protocol_magic: int = None,
network_id: int = None,
@ -30,8 +31,8 @@ class CardanoGetAddress(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
2: ('show_display', p.BoolType, 0),
3: ('protocol_magic', p.UVarintType, 0),
4: ('network_id', p.UVarintType, 0),
5: ('address_parameters', CardanoAddressParametersType, 0),
2: ('show_display', p.BoolType, None),
3: ('protocol_magic', p.UVarintType, None),
4: ('network_id', p.UVarintType, None),
5: ('address_parameters', CardanoAddressParametersType, None),
}

View File

@ -15,6 +15,7 @@ class CardanoGetPublicKey(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
@ -25,5 +26,5 @@ class CardanoGetPublicKey(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, None),
}

View File

@ -17,6 +17,7 @@ class CardanoPublicKey(p.MessageType):
def __init__(
self,
*,
xpub: str = None,
node: HDNodeType = None,
) -> None:
@ -26,6 +27,6 @@ class CardanoPublicKey(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('xpub', p.UnicodeType, 0),
2: ('node', HDNodeType, 0),
1: ('xpub', p.UnicodeType, None),
2: ('node', HDNodeType, None),
}

View File

@ -20,24 +20,25 @@ class CardanoSignTx(p.MessageType):
def __init__(
self,
*,
inputs: List[CardanoTxInputType] = None,
outputs: List[CardanoTxOutputType] = None,
certificates: List[CardanoTxCertificateType] = None,
withdrawals: List[CardanoTxWithdrawalType] = None,
protocol_magic: int = None,
fee: int = None,
ttl: int = None,
network_id: int = None,
certificates: List[CardanoTxCertificateType] = None,
withdrawals: List[CardanoTxWithdrawalType] = None,
metadata: bytes = None,
) -> None:
self.inputs = inputs if inputs is not None else []
self.outputs = outputs if outputs is not None else []
self.certificates = certificates if certificates is not None else []
self.withdrawals = withdrawals if withdrawals is not None else []
self.protocol_magic = protocol_magic
self.fee = fee
self.ttl = ttl
self.network_id = network_id
self.certificates = certificates if certificates is not None else []
self.withdrawals = withdrawals if withdrawals is not None else []
self.metadata = metadata
@classmethod
@ -45,11 +46,11 @@ class CardanoSignTx(p.MessageType):
return {
1: ('inputs', CardanoTxInputType, p.FLAG_REPEATED),
2: ('outputs', CardanoTxOutputType, p.FLAG_REPEATED),
5: ('protocol_magic', p.UVarintType, 0),
6: ('fee', p.UVarintType, 0),
7: ('ttl', p.UVarintType, 0),
8: ('network_id', p.UVarintType, 0),
5: ('protocol_magic', p.UVarintType, None),
6: ('fee', p.UVarintType, None),
7: ('ttl', p.UVarintType, None),
8: ('network_id', p.UVarintType, None),
9: ('certificates', CardanoTxCertificateType, p.FLAG_REPEATED),
10: ('withdrawals', CardanoTxWithdrawalType, p.FLAG_REPEATED),
11: ('metadata', p.BytesType, 0),
11: ('metadata', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class CardanoSignedTx(p.MessageType):
def __init__(
self,
*,
tx_hash: bytes = None,
serialized_tx: bytes = None,
) -> None:
@ -24,6 +25,6 @@ class CardanoSignedTx(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('tx_hash', p.BytesType, 0),
2: ('serialized_tx', p.BytesType, 0),
1: ('tx_hash', p.BytesType, None),
2: ('serialized_tx', p.BytesType, None),
}

View File

@ -15,18 +15,19 @@ class CardanoTxCertificateType(p.MessageType):
def __init__(
self,
type: EnumTypeCardanoCertificateType = None,
*,
path: List[int] = None,
type: EnumTypeCardanoCertificateType = None,
pool: bytes = None,
) -> None:
self.type = type
self.path = path if path is not None else []
self.type = type
self.pool = pool
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('type', p.EnumType("CardanoCertificateType", (0, 1, 2)), 0),
1: ('type', p.EnumType("CardanoCertificateType", (0, 1, 2)), None),
2: ('path', p.UVarintType, p.FLAG_REPEATED),
3: ('pool', p.BytesType, 0),
3: ('pool', p.BytesType, None),
}

View File

@ -14,6 +14,7 @@ class CardanoTxInputType(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
prev_hash: bytes = None,
prev_index: int = None,
@ -26,6 +27,6 @@ class CardanoTxInputType(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('prev_hash', p.BytesType, 0),
3: ('prev_index', p.UVarintType, 0),
2: ('prev_hash', p.BytesType, None),
3: ('prev_index', p.UVarintType, None),
}

View File

@ -16,6 +16,7 @@ class CardanoTxOutputType(p.MessageType):
def __init__(
self,
*,
address: str = None,
amount: int = None,
address_parameters: CardanoAddressParametersType = None,
@ -27,7 +28,7 @@ class CardanoTxOutputType(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address', p.UnicodeType, 0),
3: ('amount', p.UVarintType, 0),
4: ('address_parameters', CardanoAddressParametersType, 0),
1: ('address', p.UnicodeType, None),
3: ('amount', p.UVarintType, None),
4: ('address_parameters', CardanoAddressParametersType, None),
}

View File

@ -14,6 +14,7 @@ class CardanoTxWithdrawalType(p.MessageType):
def __init__(
self,
*,
path: List[int] = None,
amount: int = None,
) -> None:
@ -24,5 +25,5 @@ class CardanoTxWithdrawalType(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('path', p.UVarintType, p.FLAG_REPEATED),
2: ('amount', p.UVarintType, 0),
2: ('amount', p.UVarintType, None),
}

View File

@ -15,6 +15,7 @@ class ChangePin(p.MessageType):
def __init__(
self,
*,
remove: bool = None,
) -> None:
self.remove = remove
@ -22,5 +23,5 @@ class ChangePin(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('remove', p.BoolType, 0),
1: ('remove', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class ChangeWipeCode(p.MessageType):
def __init__(
self,
*,
remove: bool = None,
) -> None:
self.remove = remove
@ -22,5 +23,5 @@ class ChangeWipeCode(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('remove', p.BoolType, 0),
1: ('remove', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class CipherKeyValue(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
key: str = None,
value: bytes = None,
@ -35,10 +36,10 @@ class CipherKeyValue(p.MessageType):
def get_fields(cls) -> Dict:
return {
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),
2: ('key', p.UnicodeType, None),
3: ('value', p.BytesType, None),
4: ('encrypt', p.BoolType, None),
5: ('ask_on_encrypt', p.BoolType, None),
6: ('ask_on_decrypt', p.BoolType, None),
7: ('iv', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class CipheredKeyValue(p.MessageType):
def __init__(
self,
*,
value: bytes = None,
) -> None:
self.value = value
@ -22,5 +23,5 @@ class CipheredKeyValue(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('value', p.BytesType, 0),
1: ('value', p.BytesType, None),
}

View File

@ -16,6 +16,7 @@ class DebugLinkDecision(p.MessageType):
def __init__(
self,
*,
yes_no: bool = None,
swipe: EnumTypeDebugSwipeDirection = None,
input: str = None,
@ -33,10 +34,10 @@ class DebugLinkDecision(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('yes_no', p.BoolType, 0),
2: ('swipe', p.EnumType("DebugSwipeDirection", (0, 1, 2, 3)), 0),
3: ('input', p.UnicodeType, 0),
4: ('x', p.UVarintType, 0),
5: ('y', p.UVarintType, 0),
6: ('wait', p.BoolType, 0),
1: ('yes_no', p.BoolType, None),
2: ('swipe', p.EnumType("DebugSwipeDirection", (0, 1, 2, 3)), None),
3: ('input', p.UnicodeType, None),
4: ('x', p.UVarintType, None),
5: ('y', p.UVarintType, None),
6: ('wait', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class DebugLinkEraseSdCard(p.MessageType):
def __init__(
self,
*,
format: bool = None,
) -> None:
self.format = format
@ -22,5 +23,5 @@ class DebugLinkEraseSdCard(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('format', p.BoolType, 0),
1: ('format', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class DebugLinkGetState(p.MessageType):
def __init__(
self,
*,
wait_word_list: bool = None,
wait_word_pos: bool = None,
wait_layout: bool = None,
@ -26,7 +27,7 @@ class DebugLinkGetState(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('wait_word_list', p.BoolType, 0),
2: ('wait_word_pos', p.BoolType, 0),
3: ('wait_layout', p.BoolType, 0),
1: ('wait_word_list', p.BoolType, None),
2: ('wait_word_pos', p.BoolType, None),
3: ('wait_layout', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class DebugLinkLayout(p.MessageType):
def __init__(
self,
*,
lines: List[str] = None,
) -> None:
self.lines = lines if lines is not None else []

View File

@ -15,6 +15,7 @@ class DebugLinkRecordScreen(p.MessageType):
def __init__(
self,
*,
target_directory: str = None,
) -> None:
self.target_directory = target_directory
@ -22,5 +23,5 @@ class DebugLinkRecordScreen(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('target_directory', p.UnicodeType, 0),
1: ('target_directory', p.UnicodeType, None),
}

View File

@ -15,6 +15,7 @@ class DebugLinkReseedRandom(p.MessageType):
def __init__(
self,
*,
value: int = None,
) -> None:
self.value = value
@ -22,5 +23,5 @@ class DebugLinkReseedRandom(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('value', p.UVarintType, 0),
1: ('value', p.UVarintType, None),
}

View File

@ -17,21 +17,22 @@ class DebugLinkShowText(p.MessageType):
def __init__(
self,
header_text: str = None,
*,
body_text: List[DebugLinkShowTextItem] = None,
header_text: str = None,
header_icon: str = None,
icon_color: str = None,
) -> None:
self.header_text = header_text
self.body_text = body_text if body_text is not None else []
self.header_text = header_text
self.header_icon = header_icon
self.icon_color = icon_color
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('header_text', p.UnicodeType, 0),
1: ('header_text', p.UnicodeType, None),
2: ('body_text', DebugLinkShowTextItem, p.FLAG_REPEATED),
3: ('header_icon', p.UnicodeType, 0),
4: ('icon_color', p.UnicodeType, 0),
3: ('header_icon', p.UnicodeType, None),
4: ('icon_color', p.UnicodeType, None),
}

View File

@ -15,6 +15,7 @@ class DebugLinkShowTextItem(p.MessageType):
def __init__(
self,
*,
style: EnumTypeDebugLinkShowTextStyle = None,
content: str = None,
) -> None:
@ -24,6 +25,6 @@ class DebugLinkShowTextItem(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('style', p.EnumType("DebugLinkShowTextStyle", (0, 1, 2, 4, 5, 6)), 0),
2: ('content', p.UnicodeType, 0),
1: ('style', p.EnumType("DebugLinkShowTextStyle", (0, 1, 2, 4, 5, 6)), None),
2: ('content', p.UnicodeType, None),
}

View File

@ -17,6 +17,8 @@ class DebugLinkState(p.MessageType):
def __init__(
self,
*,
layout_lines: List[str] = None,
layout: bytes = None,
pin: str = None,
matrix: str = None,
@ -29,8 +31,8 @@ class DebugLinkState(p.MessageType):
recovery_word_pos: int = None,
reset_word_pos: int = None,
mnemonic_type: int = None,
layout_lines: List[str] = None,
) -> None:
self.layout_lines = layout_lines if layout_lines is not None else []
self.layout = layout
self.pin = pin
self.matrix = matrix
@ -43,22 +45,21 @@ class DebugLinkState(p.MessageType):
self.recovery_word_pos = recovery_word_pos
self.reset_word_pos = reset_word_pos
self.mnemonic_type = mnemonic_type
self.layout_lines = layout_lines if layout_lines is not None else []
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('layout', p.BytesType, 0),
2: ('pin', p.UnicodeType, 0),
3: ('matrix', p.UnicodeType, 0),
4: ('mnemonic_secret', p.BytesType, 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),
12: ('mnemonic_type', p.UVarintType, 0),
1: ('layout', p.BytesType, None),
2: ('pin', p.UnicodeType, None),
3: ('matrix', p.UnicodeType, None),
4: ('mnemonic_secret', p.BytesType, None),
5: ('node', HDNodeType, None),
6: ('passphrase_protection', p.BoolType, None),
7: ('reset_word', p.UnicodeType, None),
8: ('reset_entropy', p.BytesType, None),
9: ('recovery_fake_word', p.UnicodeType, None),
10: ('recovery_word_pos', p.UVarintType, None),
11: ('reset_word_pos', p.UVarintType, None),
12: ('mnemonic_type', p.UVarintType, None),
13: ('layout_lines', p.UnicodeType, p.FLAG_REPEATED),
}

View File

@ -15,6 +15,7 @@ class DebugLinkWatchLayout(p.MessageType):
def __init__(
self,
*,
watch: bool = None,
) -> None:
self.watch = watch
@ -22,5 +23,5 @@ class DebugLinkWatchLayout(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('watch', p.BoolType, 0),
1: ('watch', p.BoolType, None),
}

View File

@ -15,27 +15,28 @@ class DebugMoneroDiagAck(p.MessageType):
def __init__(
self,
*,
pd: List[int] = None,
ins: int = None,
p1: int = None,
p2: int = None,
pd: List[int] = None,
data1: bytes = None,
data2: bytes = None,
) -> None:
self.pd = pd if pd is not None else []
self.ins = ins
self.p1 = p1
self.p2 = p2
self.pd = pd if pd is not None else []
self.data1 = data1
self.data2 = data2
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('ins', p.UVarintType, 0),
2: ('p1', p.UVarintType, 0),
3: ('p2', p.UVarintType, 0),
1: ('ins', p.UVarintType, None),
2: ('p1', p.UVarintType, None),
3: ('p2', p.UVarintType, None),
4: ('pd', p.UVarintType, p.FLAG_REPEATED),
5: ('data1', p.BytesType, 0),
6: ('data2', p.BytesType, 0),
5: ('data1', p.BytesType, None),
6: ('data2', p.BytesType, None),
}

View File

@ -15,27 +15,28 @@ class DebugMoneroDiagRequest(p.MessageType):
def __init__(
self,
*,
pd: List[int] = None,
ins: int = None,
p1: int = None,
p2: int = None,
pd: List[int] = None,
data1: bytes = None,
data2: bytes = None,
) -> None:
self.pd = pd if pd is not None else []
self.ins = ins
self.p1 = p1
self.p2 = p2
self.pd = pd if pd is not None else []
self.data1 = data1
self.data2 = data2
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('ins', p.UVarintType, 0),
2: ('p1', p.UVarintType, 0),
3: ('p2', p.UVarintType, 0),
1: ('ins', p.UVarintType, None),
2: ('p1', p.UVarintType, None),
3: ('p2', p.UVarintType, None),
4: ('pd', p.UVarintType, p.FLAG_REPEATED),
5: ('data1', p.BytesType, 0),
6: ('data2', p.BytesType, 0),
5: ('data1', p.BytesType, None),
6: ('data2', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class Deprecated_PassphraseStateRequest(p.MessageType):
def __init__(
self,
*,
state: bytes = None,
) -> None:
self.state = state
@ -22,5 +23,5 @@ class Deprecated_PassphraseStateRequest(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('state', p.BytesType, 0),
1: ('state', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class ECDHSessionKey(p.MessageType):
def __init__(
self,
*,
session_key: bytes = None,
) -> None:
self.session_key = session_key
@ -22,5 +23,5 @@ class ECDHSessionKey(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('session_key', p.BytesType, 0),
1: ('session_key', p.BytesType, None),
}

View File

@ -15,12 +15,13 @@ class Entropy(p.MessageType):
def __init__(
self,
entropy: bytes = None,
*,
entropy: bytes,
) -> None:
self.entropy = entropy
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('entropy', p.BytesType, 0), # required
1: ('entropy', p.BytesType, p.FLAG_REQUIRED),
}

View File

@ -15,6 +15,7 @@ class EntropyAck(p.MessageType):
def __init__(
self,
*,
entropy: bytes = None,
) -> None:
self.entropy = entropy
@ -22,5 +23,5 @@ class EntropyAck(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('entropy', p.BytesType, 0),
1: ('entropy', p.BytesType, None),
}

View File

@ -16,6 +16,7 @@ class EosActionBuyRam(p.MessageType):
def __init__(
self,
*,
payer: int = None,
receiver: int = None,
quantity: EosAsset = None,
@ -27,7 +28,7 @@ class EosActionBuyRam(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('payer', p.UVarintType, 0),
2: ('receiver', p.UVarintType, 0),
3: ('quantity', EosAsset, 0),
1: ('payer', p.UVarintType, None),
2: ('receiver', p.UVarintType, None),
3: ('quantity', EosAsset, None),
}

View File

@ -14,6 +14,7 @@ class EosActionBuyRamBytes(p.MessageType):
def __init__(
self,
*,
payer: int = None,
receiver: int = None,
bytes: int = None,
@ -25,7 +26,7 @@ class EosActionBuyRamBytes(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('payer', p.UVarintType, 0),
2: ('receiver', p.UVarintType, 0),
3: ('bytes', p.UVarintType, 0),
1: ('payer', p.UVarintType, None),
2: ('receiver', p.UVarintType, None),
3: ('bytes', p.UVarintType, None),
}

View File

@ -16,18 +16,19 @@ class EosActionCommon(p.MessageType):
def __init__(
self,
*,
authorization: List[EosPermissionLevel] = None,
account: int = None,
name: int = None,
authorization: List[EosPermissionLevel] = None,
) -> None:
self.authorization = authorization if authorization is not None else []
self.account = account
self.name = name
self.authorization = authorization if authorization is not None else []
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('account', p.UVarintType, 0),
2: ('name', p.UVarintType, 0),
1: ('account', p.UVarintType, None),
2: ('name', p.UVarintType, None),
3: ('authorization', EosPermissionLevel, p.FLAG_REPEATED),
}

View File

@ -16,6 +16,7 @@ class EosActionDelegate(p.MessageType):
def __init__(
self,
*,
sender: int = None,
receiver: int = None,
net_quantity: EosAsset = None,
@ -31,9 +32,9 @@ class EosActionDelegate(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('sender', p.UVarintType, 0),
2: ('receiver', p.UVarintType, 0),
3: ('net_quantity', EosAsset, 0),
4: ('cpu_quantity', EosAsset, 0),
5: ('transfer', p.BoolType, 0),
1: ('sender', p.UVarintType, None),
2: ('receiver', p.UVarintType, None),
3: ('net_quantity', EosAsset, None),
4: ('cpu_quantity', EosAsset, None),
5: ('transfer', p.BoolType, None),
}

View File

@ -14,6 +14,7 @@ class EosActionDeleteAuth(p.MessageType):
def __init__(
self,
*,
account: int = None,
permission: int = None,
) -> None:
@ -23,6 +24,6 @@ class EosActionDeleteAuth(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('account', p.UVarintType, 0),
2: ('permission', p.UVarintType, 0),
1: ('account', p.UVarintType, None),
2: ('permission', p.UVarintType, None),
}

View File

@ -14,6 +14,7 @@ class EosActionLinkAuth(p.MessageType):
def __init__(
self,
*,
account: int = None,
code: int = None,
type: int = None,
@ -27,8 +28,8 @@ class EosActionLinkAuth(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('account', p.UVarintType, 0),
2: ('code', p.UVarintType, 0),
3: ('type', p.UVarintType, 0),
4: ('requirement', p.UVarintType, 0),
1: ('account', p.UVarintType, None),
2: ('code', p.UVarintType, None),
3: ('type', p.UVarintType, None),
4: ('requirement', p.UVarintType, None),
}

View File

@ -16,6 +16,7 @@ class EosActionNewAccount(p.MessageType):
def __init__(
self,
*,
creator: int = None,
name: int = None,
owner: EosAuthorization = None,
@ -29,8 +30,8 @@ class EosActionNewAccount(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('creator', p.UVarintType, 0),
2: ('name', p.UVarintType, 0),
3: ('owner', EosAuthorization, 0),
4: ('active', EosAuthorization, 0),
1: ('creator', p.UVarintType, None),
2: ('name', p.UVarintType, None),
3: ('owner', EosAuthorization, None),
4: ('active', EosAuthorization, None),
}

View File

@ -14,6 +14,7 @@ class EosActionRefund(p.MessageType):
def __init__(
self,
*,
owner: int = None,
) -> None:
self.owner = owner
@ -21,5 +22,5 @@ class EosActionRefund(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('owner', p.UVarintType, 0),
1: ('owner', p.UVarintType, None),
}

View File

@ -14,6 +14,7 @@ class EosActionSellRam(p.MessageType):
def __init__(
self,
*,
account: int = None,
bytes: int = None,
) -> None:
@ -23,6 +24,6 @@ class EosActionSellRam(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('account', p.UVarintType, 0),
2: ('bytes', p.UVarintType, 0),
1: ('account', p.UVarintType, None),
2: ('bytes', p.UVarintType, None),
}

View File

@ -16,6 +16,7 @@ class EosActionTransfer(p.MessageType):
def __init__(
self,
*,
sender: int = None,
receiver: int = None,
quantity: EosAsset = None,
@ -29,8 +30,8 @@ class EosActionTransfer(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('sender', p.UVarintType, 0),
2: ('receiver', p.UVarintType, 0),
3: ('quantity', EosAsset, 0),
4: ('memo', p.UnicodeType, 0),
1: ('sender', p.UVarintType, None),
2: ('receiver', p.UVarintType, None),
3: ('quantity', EosAsset, None),
4: ('memo', p.UnicodeType, None),
}

View File

@ -16,6 +16,7 @@ class EosActionUndelegate(p.MessageType):
def __init__(
self,
*,
sender: int = None,
receiver: int = None,
net_quantity: EosAsset = None,
@ -29,8 +30,8 @@ class EosActionUndelegate(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('sender', p.UVarintType, 0),
2: ('receiver', p.UVarintType, 0),
3: ('net_quantity', EosAsset, 0),
4: ('cpu_quantity', EosAsset, 0),
1: ('sender', p.UVarintType, None),
2: ('receiver', p.UVarintType, None),
3: ('net_quantity', EosAsset, None),
4: ('cpu_quantity', EosAsset, None),
}

View File

@ -14,6 +14,7 @@ class EosActionUnknown(p.MessageType):
def __init__(
self,
*,
data_size: int = None,
data_chunk: bytes = None,
) -> None:
@ -23,6 +24,6 @@ class EosActionUnknown(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('data_size', p.UVarintType, 0),
2: ('data_chunk', p.BytesType, 0),
1: ('data_size', p.UVarintType, None),
2: ('data_chunk', p.BytesType, None),
}

View File

@ -14,6 +14,7 @@ class EosActionUnlinkAuth(p.MessageType):
def __init__(
self,
*,
account: int = None,
code: int = None,
type: int = None,
@ -25,7 +26,7 @@ class EosActionUnlinkAuth(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('account', p.UVarintType, 0),
2: ('code', p.UVarintType, 0),
3: ('type', p.UVarintType, 0),
1: ('account', p.UVarintType, None),
2: ('code', p.UVarintType, None),
3: ('type', p.UVarintType, None),
}

View File

@ -16,6 +16,7 @@ class EosActionUpdateAuth(p.MessageType):
def __init__(
self,
*,
account: int = None,
permission: int = None,
parent: int = None,
@ -29,8 +30,8 @@ class EosActionUpdateAuth(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('account', p.UVarintType, 0),
2: ('permission', p.UVarintType, 0),
3: ('parent', p.UVarintType, 0),
4: ('auth', EosAuthorization, 0),
1: ('account', p.UVarintType, None),
2: ('permission', p.UVarintType, None),
3: ('parent', p.UVarintType, None),
4: ('auth', EosAuthorization, None),
}

View File

@ -14,18 +14,19 @@ class EosActionVoteProducer(p.MessageType):
def __init__(
self,
*,
producers: List[int] = None,
voter: int = None,
proxy: int = None,
producers: List[int] = None,
) -> None:
self.producers = producers if producers is not None else []
self.voter = voter
self.proxy = proxy
self.producers = producers if producers is not None else []
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('voter', p.UVarintType, 0),
2: ('proxy', p.UVarintType, 0),
1: ('voter', p.UVarintType, None),
2: ('proxy', p.UVarintType, None),
3: ('producers', p.UVarintType, p.FLAG_REPEATED),
}

View File

@ -14,6 +14,7 @@ class EosAsset(p.MessageType):
def __init__(
self,
*,
amount: int = None,
symbol: int = None,
) -> None:
@ -23,6 +24,6 @@ class EosAsset(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('amount', p.SVarintType, 0),
2: ('symbol', p.UVarintType, 0),
1: ('amount', p.SVarintType, None),
2: ('symbol', p.UVarintType, None),
}

View File

@ -18,20 +18,21 @@ class EosAuthorization(p.MessageType):
def __init__(
self,
threshold: int = None,
*,
keys: List[EosAuthorizationKey] = None,
accounts: List[EosAuthorizationAccount] = None,
waits: List[EosAuthorizationWait] = None,
threshold: int = None,
) -> None:
self.threshold = threshold
self.keys = keys if keys is not None else []
self.accounts = accounts if accounts is not None else []
self.waits = waits if waits is not None else []
self.threshold = threshold
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('threshold', p.UVarintType, 0),
1: ('threshold', p.UVarintType, None),
2: ('keys', EosAuthorizationKey, p.FLAG_REPEATED),
3: ('accounts', EosAuthorizationAccount, p.FLAG_REPEATED),
4: ('waits', EosAuthorizationWait, p.FLAG_REPEATED),

View File

@ -16,6 +16,7 @@ class EosAuthorizationAccount(p.MessageType):
def __init__(
self,
*,
account: EosPermissionLevel = None,
weight: int = None,
) -> None:
@ -25,6 +26,6 @@ class EosAuthorizationAccount(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('account', EosPermissionLevel, 0),
2: ('weight', p.UVarintType, 0),
1: ('account', EosPermissionLevel, None),
2: ('weight', p.UVarintType, None),
}

View File

@ -14,21 +14,22 @@ class EosAuthorizationKey(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
type: int = None,
key: bytes = None,
address_n: List[int] = None,
weight: int = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.type = type
self.key = key
self.address_n = address_n if address_n is not None else []
self.weight = weight
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('type', p.UVarintType, 0),
2: ('key', p.BytesType, 0),
1: ('type', p.UVarintType, None),
2: ('key', p.BytesType, None),
3: ('address_n', p.UVarintType, p.FLAG_REPEATED),
4: ('weight', p.UVarintType, 0),
4: ('weight', p.UVarintType, None),
}

View File

@ -14,6 +14,7 @@ class EosAuthorizationWait(p.MessageType):
def __init__(
self,
*,
wait_sec: int = None,
weight: int = None,
) -> None:
@ -23,6 +24,6 @@ class EosAuthorizationWait(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('wait_sec', p.UVarintType, 0),
2: ('weight', p.UVarintType, 0),
1: ('wait_sec', p.UVarintType, None),
2: ('weight', p.UVarintType, None),
}

View File

@ -15,6 +15,7 @@ class EosGetPublicKey(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
@ -25,5 +26,5 @@ class EosGetPublicKey(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, None),
}

View File

@ -14,6 +14,7 @@ class EosPermissionLevel(p.MessageType):
def __init__(
self,
*,
actor: int = None,
permission: int = None,
) -> None:
@ -23,6 +24,6 @@ class EosPermissionLevel(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('actor', p.UVarintType, 0),
2: ('permission', p.UVarintType, 0),
1: ('actor', p.UVarintType, None),
2: ('permission', p.UVarintType, None),
}

View File

@ -15,6 +15,7 @@ class EosPublicKey(p.MessageType):
def __init__(
self,
*,
wif_public_key: str = None,
raw_public_key: bytes = None,
) -> None:
@ -24,6 +25,6 @@ class EosPublicKey(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('wif_public_key', p.UnicodeType, 0),
2: ('raw_public_key', p.BytesType, 0),
1: ('wif_public_key', p.UnicodeType, None),
2: ('raw_public_key', p.BytesType, None),
}

View File

@ -17,6 +17,7 @@ class EosSignTx(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
chain_id: bytes = None,
header: EosTxHeader = None,
@ -31,7 +32,7 @@ class EosSignTx(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('chain_id', p.BytesType, 0),
3: ('header', EosTxHeader, 0),
4: ('num_actions', p.UVarintType, 0),
2: ('chain_id', p.BytesType, None),
3: ('header', EosTxHeader, None),
4: ('num_actions', p.UVarintType, None),
}

View File

@ -15,6 +15,7 @@ class EosSignedTx(p.MessageType):
def __init__(
self,
*,
signature: str = None,
) -> None:
self.signature = signature
@ -22,5 +23,5 @@ class EosSignedTx(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('signature', p.UnicodeType, 0),
1: ('signature', p.UnicodeType, None),
}

View File

@ -31,6 +31,7 @@ class EosTxActionAck(p.MessageType):
def __init__(
self,
*,
common: EosActionCommon = None,
transfer: EosActionTransfer = None,
delegate: EosActionDelegate = None,
@ -66,19 +67,19 @@ class EosTxActionAck(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('common', EosActionCommon, 0),
2: ('transfer', EosActionTransfer, 0),
3: ('delegate', EosActionDelegate, 0),
4: ('undelegate', EosActionUndelegate, 0),
5: ('refund', EosActionRefund, 0),
6: ('buy_ram', EosActionBuyRam, 0),
7: ('buy_ram_bytes', EosActionBuyRamBytes, 0),
8: ('sell_ram', EosActionSellRam, 0),
9: ('vote_producer', EosActionVoteProducer, 0),
10: ('update_auth', EosActionUpdateAuth, 0),
11: ('delete_auth', EosActionDeleteAuth, 0),
12: ('link_auth', EosActionLinkAuth, 0),
13: ('unlink_auth', EosActionUnlinkAuth, 0),
14: ('new_account', EosActionNewAccount, 0),
15: ('unknown', EosActionUnknown, 0),
1: ('common', EosActionCommon, None),
2: ('transfer', EosActionTransfer, None),
3: ('delegate', EosActionDelegate, None),
4: ('undelegate', EosActionUndelegate, None),
5: ('refund', EosActionRefund, None),
6: ('buy_ram', EosActionBuyRam, None),
7: ('buy_ram_bytes', EosActionBuyRamBytes, None),
8: ('sell_ram', EosActionSellRam, None),
9: ('vote_producer', EosActionVoteProducer, None),
10: ('update_auth', EosActionUpdateAuth, None),
11: ('delete_auth', EosActionDeleteAuth, None),
12: ('link_auth', EosActionLinkAuth, None),
13: ('unlink_auth', EosActionUnlinkAuth, None),
14: ('new_account', EosActionNewAccount, None),
15: ('unknown', EosActionUnknown, None),
}

View File

@ -15,6 +15,7 @@ class EosTxActionRequest(p.MessageType):
def __init__(
self,
*,
data_size: int = None,
) -> None:
self.data_size = data_size
@ -22,5 +23,5 @@ class EosTxActionRequest(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('data_size', p.UVarintType, 0),
1: ('data_size', p.UVarintType, None),
}

View File

@ -14,12 +14,13 @@ class EosTxHeader(p.MessageType):
def __init__(
self,
expiration: int = None,
ref_block_num: int = None,
ref_block_prefix: int = None,
max_net_usage_words: int = None,
max_cpu_usage_ms: int = None,
delay_sec: int = None,
*,
expiration: int,
ref_block_num: int,
ref_block_prefix: int,
max_net_usage_words: int,
max_cpu_usage_ms: int,
delay_sec: int,
) -> None:
self.expiration = expiration
self.ref_block_num = ref_block_num
@ -31,10 +32,10 @@ class EosTxHeader(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('expiration', p.UVarintType, 0), # required
2: ('ref_block_num', p.UVarintType, 0), # required
3: ('ref_block_prefix', p.UVarintType, 0), # required
4: ('max_net_usage_words', p.UVarintType, 0), # required
5: ('max_cpu_usage_ms', p.UVarintType, 0), # required
6: ('delay_sec', p.UVarintType, 0), # required
1: ('expiration', p.UVarintType, p.FLAG_REQUIRED),
2: ('ref_block_num', p.UVarintType, p.FLAG_REQUIRED),
3: ('ref_block_prefix', p.UVarintType, p.FLAG_REQUIRED),
4: ('max_net_usage_words', p.UVarintType, p.FLAG_REQUIRED),
5: ('max_cpu_usage_ms', p.UVarintType, p.FLAG_REQUIRED),
6: ('delay_sec', p.UVarintType, p.FLAG_REQUIRED),
}

View File

@ -15,6 +15,7 @@ class EthereumAddress(p.MessageType):
def __init__(
self,
*,
address: str = None,
) -> None:
self.address = address
@ -22,5 +23,5 @@ class EthereumAddress(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
2: ('address', p.UnicodeType, 0),
2: ('address', p.UnicodeType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumGetAddress(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
@ -25,5 +26,5 @@ class EthereumGetAddress(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumGetPublicKey(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
@ -25,5 +26,5 @@ class EthereumGetPublicKey(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
2: ('show_display', p.BoolType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumMessageSignature(p.MessageType):
def __init__(
self,
*,
signature: bytes = None,
address: str = None,
) -> None:
@ -24,6 +25,6 @@ class EthereumMessageSignature(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
2: ('signature', p.BytesType, 0),
3: ('address', p.UnicodeType, 0),
2: ('signature', p.BytesType, None),
3: ('address', p.UnicodeType, None),
}

View File

@ -17,6 +17,7 @@ class EthereumPublicKey(p.MessageType):
def __init__(
self,
*,
node: HDNodeType = None,
xpub: str = None,
) -> None:
@ -26,6 +27,6 @@ class EthereumPublicKey(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('node', HDNodeType, 0),
2: ('xpub', p.UnicodeType, 0),
1: ('node', HDNodeType, None),
2: ('xpub', p.UnicodeType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumSignMessage(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
message: bytes = None,
) -> None:
@ -25,5 +26,5 @@ class EthereumSignMessage(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('message', p.BytesType, 0),
2: ('message', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumSignTx(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
nonce: bytes = None,
gas_price: bytes = None,
@ -41,13 +42,13 @@ class EthereumSignTx(p.MessageType):
def get_fields(cls) -> Dict:
return {
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),
11: ('to', p.UnicodeType, 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),
2: ('nonce', p.BytesType, None),
3: ('gas_price', p.BytesType, None),
4: ('gas_limit', p.BytesType, None),
11: ('to', p.UnicodeType, None),
6: ('value', p.BytesType, None),
7: ('data_initial_chunk', p.BytesType, None),
8: ('data_length', p.UVarintType, None),
9: ('chain_id', p.UVarintType, None),
10: ('tx_type', p.UVarintType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumTxAck(p.MessageType):
def __init__(
self,
*,
data_chunk: bytes = None,
) -> None:
self.data_chunk = data_chunk
@ -22,5 +23,5 @@ class EthereumTxAck(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('data_chunk', p.BytesType, 0),
1: ('data_chunk', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumTxRequest(p.MessageType):
def __init__(
self,
*,
data_length: int = None,
signature_v: int = None,
signature_r: bytes = None,
@ -28,8 +29,8 @@ class EthereumTxRequest(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('data_length', p.UVarintType, 0),
2: ('signature_v', p.UVarintType, 0),
3: ('signature_r', p.BytesType, 0),
4: ('signature_s', p.BytesType, 0),
1: ('data_length', p.UVarintType, None),
2: ('signature_v', p.UVarintType, None),
3: ('signature_r', p.BytesType, None),
4: ('signature_s', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class EthereumVerifyMessage(p.MessageType):
def __init__(
self,
*,
signature: bytes = None,
message: bytes = None,
address: str = None,
@ -26,7 +27,7 @@ class EthereumVerifyMessage(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
2: ('signature', p.BytesType, 0),
3: ('message', p.BytesType, 0),
4: ('address', p.UnicodeType, 0),
2: ('signature', p.BytesType, None),
3: ('message', p.BytesType, None),
4: ('address', p.UnicodeType, None),
}

View File

@ -16,6 +16,7 @@ class Failure(p.MessageType):
def __init__(
self,
*,
code: EnumTypeFailureType = None,
message: str = None,
) -> None:
@ -25,6 +26,6 @@ class Failure(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('code', p.EnumType("FailureType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 99)), 0),
2: ('message', p.UnicodeType, 0),
1: ('code', p.EnumType("FailureType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 99)), None),
2: ('message', p.UnicodeType, None),
}

View File

@ -18,6 +18,8 @@ class Features(p.MessageType):
def __init__(
self,
*,
capabilities: List[EnumTypeCapability] = None,
vendor: str = None,
major_version: int = None,
minor_version: int = None,
@ -45,7 +47,6 @@ class Features(p.MessageType):
unfinished_backup: bool = None,
no_backup: bool = None,
recovery_mode: bool = None,
capabilities: List[EnumTypeCapability] = None,
backup_type: EnumTypeBackupType = None,
sd_card_present: bool = None,
sd_protection: bool = None,
@ -54,6 +55,7 @@ class Features(p.MessageType):
passphrase_always_on_device: bool = None,
safety_checks: EnumTypeSafetyCheckLevel = None,
) -> None:
self.capabilities = capabilities if capabilities is not None else []
self.vendor = vendor
self.major_version = major_version
self.minor_version = minor_version
@ -81,7 +83,6 @@ class Features(p.MessageType):
self.unfinished_backup = unfinished_backup
self.no_backup = no_backup
self.recovery_mode = recovery_mode
self.capabilities = capabilities if capabilities is not None else []
self.backup_type = backup_type
self.sd_card_present = sd_card_present
self.sd_protection = sd_protection
@ -93,39 +94,39 @@ class Features(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
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: ('unlocked', 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),
28: ('no_backup', p.BoolType, 0),
29: ('recovery_mode', p.BoolType, 0),
1: ('vendor', p.UnicodeType, None),
2: ('major_version', p.UVarintType, None),
3: ('minor_version', p.UVarintType, None),
4: ('patch_version', p.UVarintType, None),
5: ('bootloader_mode', p.BoolType, None),
6: ('device_id', p.UnicodeType, None),
7: ('pin_protection', p.BoolType, None),
8: ('passphrase_protection', p.BoolType, None),
9: ('language', p.UnicodeType, None),
10: ('label', p.UnicodeType, None),
12: ('initialized', p.BoolType, None),
13: ('revision', p.BytesType, None),
14: ('bootloader_hash', p.BytesType, None),
15: ('imported', p.BoolType, None),
16: ('unlocked', p.BoolType, None),
18: ('firmware_present', p.BoolType, None),
19: ('needs_backup', p.BoolType, None),
20: ('flags', p.UVarintType, None),
21: ('model', p.UnicodeType, None),
22: ('fw_major', p.UVarintType, None),
23: ('fw_minor', p.UVarintType, None),
24: ('fw_patch', p.UVarintType, None),
25: ('fw_vendor', p.UnicodeType, None),
26: ('fw_vendor_keys', p.BytesType, None),
27: ('unfinished_backup', p.BoolType, None),
28: ('no_backup', p.BoolType, None),
29: ('recovery_mode', p.BoolType, None),
30: ('capabilities', p.EnumType("Capability", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)), p.FLAG_REPEATED),
31: ('backup_type', p.EnumType("BackupType", (0, 1, 2)), 0),
32: ('sd_card_present', p.BoolType, 0),
33: ('sd_protection', p.BoolType, 0),
34: ('wipe_code_protection', p.BoolType, 0),
35: ('session_id', p.BytesType, 0),
36: ('passphrase_always_on_device', p.BoolType, 0),
37: ('safety_checks', p.EnumType("SafetyCheckLevel", (0, 1, 2)), 0),
31: ('backup_type', p.EnumType("BackupType", (0, 1, 2)), None),
32: ('sd_card_present', p.BoolType, None),
33: ('sd_protection', p.BoolType, None),
34: ('wipe_code_protection', p.BoolType, None),
35: ('session_id', p.BytesType, None),
36: ('passphrase_always_on_device', p.BoolType, None),
37: ('safety_checks', p.EnumType("SafetyCheckLevel", (0, 1, 2)), None),
}

View File

@ -18,11 +18,12 @@ class GetAddress(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
coin_name: str = None,
coin_name: str = "Bitcoin",
show_display: bool = None,
multisig: MultisigRedeemScriptType = None,
script_type: EnumTypeInputScriptType = None,
script_type: EnumTypeInputScriptType = 0,
) -> None:
self.address_n = address_n if address_n is not None else []
self.coin_name = coin_name
@ -34,8 +35,8 @@ class GetAddress(p.MessageType):
def get_fields(cls) -> Dict:
return {
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),
2: ('coin_name', p.UnicodeType, "Bitcoin"), # default=Bitcoin
3: ('show_display', p.BoolType, None),
4: ('multisig', MultisigRedeemScriptType, None),
5: ('script_type', p.EnumType("InputScriptType", (0, 1, 2, 3, 4)), 0), # default=SPENDADDRESS
}

View File

@ -17,6 +17,7 @@ class GetECDHSessionKey(p.MessageType):
def __init__(
self,
*,
identity: IdentityType = None,
peer_public_key: bytes = None,
ecdsa_curve_name: str = None,
@ -28,7 +29,7 @@ class GetECDHSessionKey(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('identity', IdentityType, 0),
2: ('peer_public_key', p.BytesType, 0),
3: ('ecdsa_curve_name', p.UnicodeType, 0),
1: ('identity', IdentityType, None),
2: ('peer_public_key', p.BytesType, None),
3: ('ecdsa_curve_name', p.UnicodeType, None),
}

View File

@ -15,12 +15,13 @@ class GetEntropy(p.MessageType):
def __init__(
self,
size: int = None,
*,
size: int,
) -> None:
self.size = size
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('size', p.UVarintType, 0), # required
1: ('size', p.UVarintType, p.FLAG_REQUIRED),
}

View File

@ -18,10 +18,11 @@ class GetOwnershipId(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
coin_name: str = None,
coin_name: str = "Bitcoin",
multisig: MultisigRedeemScriptType = None,
script_type: EnumTypeInputScriptType = None,
script_type: EnumTypeInputScriptType = 0,
) -> None:
self.address_n = address_n if address_n is not None else []
self.coin_name = coin_name
@ -32,7 +33,7 @@ class GetOwnershipId(p.MessageType):
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('coin_name', p.UnicodeType, 0), # default=Bitcoin
3: ('multisig', MultisigRedeemScriptType, 0),
2: ('coin_name', p.UnicodeType, "Bitcoin"), # default=Bitcoin
3: ('multisig', MultisigRedeemScriptType, None),
4: ('script_type', p.EnumType("InputScriptType", (0, 1, 2, 3, 4)), 0), # default=SPENDADDRESS
}

View File

@ -18,30 +18,31 @@ class GetOwnershipProof(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
coin_name: str = None,
script_type: EnumTypeInputScriptType = None,
multisig: MultisigRedeemScriptType = None,
user_confirmation: bool = None,
ownership_ids: List[bytes] = None,
commitment_data: bytes = None,
coin_name: str = "Bitcoin",
script_type: EnumTypeInputScriptType = 3,
multisig: MultisigRedeemScriptType = None,
user_confirmation: bool = False,
commitment_data: bytes = b"",
) -> None:
self.address_n = address_n if address_n is not None else []
self.ownership_ids = ownership_ids if ownership_ids is not None else []
self.coin_name = coin_name
self.script_type = script_type
self.multisig = multisig
self.user_confirmation = user_confirmation
self.ownership_ids = ownership_ids if ownership_ids is not None else []
self.commitment_data = commitment_data
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('coin_name', p.UnicodeType, 0), # default=Bitcoin
3: ('script_type', p.EnumType("InputScriptType", (0, 1, 2, 3, 4)), 0), # default=SPENDWITNESS
4: ('multisig', MultisigRedeemScriptType, 0),
5: ('user_confirmation', p.BoolType, 0),
2: ('coin_name', p.UnicodeType, "Bitcoin"), # default=Bitcoin
3: ('script_type', p.EnumType("InputScriptType", (0, 1, 2, 3, 4)), 3), # default=SPENDWITNESS
4: ('multisig', MultisigRedeemScriptType, None),
5: ('user_confirmation', p.BoolType, False), # default=false
6: ('ownership_ids', p.BytesType, p.FLAG_REPEATED),
7: ('commitment_data', p.BytesType, 0),
7: ('commitment_data', p.BytesType, b""), # default=
}

View File

@ -16,11 +16,12 @@ class GetPublicKey(p.MessageType):
def __init__(
self,
*,
address_n: List[int] = None,
ecdsa_curve_name: str = None,
show_display: bool = None,
coin_name: str = None,
script_type: EnumTypeInputScriptType = None,
coin_name: str = "Bitcoin",
script_type: EnumTypeInputScriptType = 0,
) -> None:
self.address_n = address_n if address_n is not None else []
self.ecdsa_curve_name = ecdsa_curve_name
@ -32,8 +33,8 @@ class GetPublicKey(p.MessageType):
def get_fields(cls) -> Dict:
return {
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
2: ('ecdsa_curve_name', p.UnicodeType, None),
3: ('show_display', p.BoolType, None),
4: ('coin_name', p.UnicodeType, "Bitcoin"), # default=Bitcoin
5: ('script_type', p.EnumType("InputScriptType", (0, 1, 2, 3, 4)), 0), # default=SPENDADDRESS
}

View File

@ -16,15 +16,16 @@ class HDNodePathType(p.MessageType):
def __init__(
self,
node: HDNodeType = None,
*,
node: HDNodeType,
address_n: List[int] = None,
) -> None:
self.node = node
self.address_n = address_n if address_n is not None else []
self.node = node
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('node', HDNodeType, 0), # required
1: ('node', HDNodeType, p.FLAG_REQUIRED),
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}

View File

@ -14,27 +14,28 @@ class HDNodeType(p.MessageType):
def __init__(
self,
depth: int = None,
fingerprint: int = None,
child_num: int = None,
chain_code: bytes = None,
*,
depth: int,
fingerprint: int,
child_num: int,
chain_code: bytes,
public_key: bytes,
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
self.private_key = private_key
@classmethod
def get_fields(cls) -> Dict:
return {
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),
1: ('depth', p.UVarintType, p.FLAG_REQUIRED),
2: ('fingerprint', p.UVarintType, p.FLAG_REQUIRED),
3: ('child_num', p.UVarintType, p.FLAG_REQUIRED),
4: ('chain_code', p.BytesType, p.FLAG_REQUIRED),
5: ('private_key', p.BytesType, None),
6: ('public_key', p.BytesType, p.FLAG_REQUIRED),
}

View File

@ -14,12 +14,13 @@ class IdentityType(p.MessageType):
def __init__(
self,
*,
proto: str = None,
user: str = None,
host: str = None,
port: str = None,
path: str = None,
index: int = None,
index: int = 0,
) -> None:
self.proto = proto
self.user = user
@ -31,10 +32,10 @@ class IdentityType(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
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),
1: ('proto', p.UnicodeType, None),
2: ('user', p.UnicodeType, None),
3: ('host', p.UnicodeType, None),
4: ('port', p.UnicodeType, None),
5: ('path', p.UnicodeType, None),
6: ('index', p.UVarintType, 0), # default=0
}

View File

@ -15,6 +15,7 @@ class Initialize(p.MessageType):
def __init__(
self,
*,
session_id: bytes = None,
) -> None:
self.session_id = session_id
@ -22,5 +23,5 @@ class Initialize(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('session_id', p.BytesType, 0),
1: ('session_id', p.BytesType, None),
}

View File

@ -15,6 +15,7 @@ class LiskAddress(p.MessageType):
def __init__(
self,
*,
address: str = None,
) -> None:
self.address = address
@ -22,5 +23,5 @@ class LiskAddress(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('address', p.UnicodeType, 0),
1: ('address', p.UnicodeType, None),
}

View File

@ -14,6 +14,7 @@ class LiskDelegateType(p.MessageType):
def __init__(
self,
*,
username: str = None,
) -> None:
self.username = username
@ -21,5 +22,5 @@ class LiskDelegateType(p.MessageType):
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('username', p.UnicodeType, 0),
1: ('username', p.UnicodeType, None),
}

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