mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-07 07:12:34 +00:00
update generated protobuf files with Stellar changes
This commit is contained in:
parent
b03d93c182
commit
0902aefd62
@ -8,6 +8,5 @@ class ApplySettings(p.MessageType):
|
|||||||
2: ('label', p.UnicodeType, 0),
|
2: ('label', p.UnicodeType, 0),
|
||||||
3: ('use_passphrase', p.BoolType, 0),
|
3: ('use_passphrase', p.BoolType, 0),
|
||||||
4: ('homescreen', p.BytesType, 0),
|
4: ('homescreen', p.BytesType, 0),
|
||||||
5: ('passphrase_source', p.UVarintType, 0),
|
|
||||||
}
|
}
|
||||||
MESSAGE_WIRE_TYPE = 25
|
MESSAGE_WIRE_TYPE = 25
|
||||||
|
@ -4,8 +4,6 @@ from .. import protobuf as p
|
|||||||
|
|
||||||
class DebugLinkDecision(p.MessageType):
|
class DebugLinkDecision(p.MessageType):
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('yes_no', p.BoolType, 0),
|
1: ('yes_no', p.BoolType, 0), # required
|
||||||
2: ('up_down', p.BoolType, 0),
|
|
||||||
3: ('input', p.UnicodeType, 0),
|
|
||||||
}
|
}
|
||||||
MESSAGE_WIRE_TYPE = 100
|
MESSAGE_WIRE_TYPE = 100
|
||||||
|
@ -15,6 +15,5 @@ class DebugLinkState(p.MessageType):
|
|||||||
8: ('reset_entropy', p.BytesType, 0),
|
8: ('reset_entropy', p.BytesType, 0),
|
||||||
9: ('recovery_fake_word', p.UnicodeType, 0),
|
9: ('recovery_fake_word', p.UnicodeType, 0),
|
||||||
10: ('recovery_word_pos', p.UVarintType, 0),
|
10: ('recovery_word_pos', p.UVarintType, 0),
|
||||||
11: ('reset_word_pos', p.UVarintType, 0),
|
|
||||||
}
|
}
|
||||||
MESSAGE_WIRE_TYPE = 102
|
MESSAGE_WIRE_TYPE = 102
|
||||||
|
@ -31,6 +31,5 @@ class Features(p.MessageType):
|
|||||||
24: ('fw_patch', p.UVarintType, 0),
|
24: ('fw_patch', p.UVarintType, 0),
|
||||||
25: ('fw_vendor', p.UnicodeType, 0),
|
25: ('fw_vendor', p.UnicodeType, 0),
|
||||||
26: ('fw_vendor_keys', p.BytesType, 0),
|
26: ('fw_vendor_keys', p.BytesType, 0),
|
||||||
27: ('unfinished_backup', p.BoolType, 0),
|
|
||||||
}
|
}
|
||||||
MESSAGE_WIRE_TYPE = 17
|
MESSAGE_WIRE_TYPE = 17
|
||||||
|
@ -84,3 +84,22 @@ DebugLinkMemoryRead = 110
|
|||||||
DebugLinkMemory = 111
|
DebugLinkMemory = 111
|
||||||
DebugLinkMemoryWrite = 112
|
DebugLinkMemoryWrite = 112
|
||||||
DebugLinkFlashErase = 113
|
DebugLinkFlashErase = 113
|
||||||
|
StellarGetPublicKey = 200
|
||||||
|
StellarPublicKey = 201
|
||||||
|
StellarSignTx = 202
|
||||||
|
StellarTxOpRequest = 203
|
||||||
|
StellarSignMessage = 204
|
||||||
|
StellarMessageSignature = 205
|
||||||
|
StellarVerifyMessage = 206
|
||||||
|
StellarCreateAccountOp = 210
|
||||||
|
StellarPaymentOp = 211
|
||||||
|
StellarPathPaymentOp = 212
|
||||||
|
StellarManageOfferOp = 213
|
||||||
|
StellarCreatePassiveOfferOp = 214
|
||||||
|
StellarSetOptionsOp = 215
|
||||||
|
StellarChangeTrustOp = 216
|
||||||
|
StellarAllowTrustOp = 217
|
||||||
|
StellarAccountMergeOp = 218
|
||||||
|
StellarManageDataOp = 220
|
||||||
|
StellarBumpSequenceOp = 221
|
||||||
|
StellarSignedTx = 230
|
||||||
|
10
trezorlib/messages/StellarAccountMergeOp.py
Normal file
10
trezorlib/messages/StellarAccountMergeOp.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarAccountMergeOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('destination_account', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 218
|
13
trezorlib/messages/StellarAllowTrustOp.py
Normal file
13
trezorlib/messages/StellarAllowTrustOp.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarAllowTrustOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('trusted_account', p.BytesType, 0),
|
||||||
|
3: ('asset_type', p.UVarintType, 0),
|
||||||
|
4: ('asset_code', p.UnicodeType, 0),
|
||||||
|
5: ('is_authorized', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 217
|
10
trezorlib/messages/StellarAssetType.py
Normal file
10
trezorlib/messages/StellarAssetType.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarAssetType(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('type', p.UVarintType, 0),
|
||||||
|
2: ('code', p.UnicodeType, 0),
|
||||||
|
3: ('issuer', p.BytesType, 0),
|
||||||
|
}
|
10
trezorlib/messages/StellarBumpSequenceOp.py
Normal file
10
trezorlib/messages/StellarBumpSequenceOp.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarBumpSequenceOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('bump_to', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 221
|
12
trezorlib/messages/StellarChangeTrustOp.py
Normal file
12
trezorlib/messages/StellarChangeTrustOp.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
from .StellarAssetType import StellarAssetType
|
||||||
|
|
||||||
|
|
||||||
|
class StellarChangeTrustOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('asset', StellarAssetType, 0),
|
||||||
|
3: ('limit', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 216
|
11
trezorlib/messages/StellarCreateAccountOp.py
Normal file
11
trezorlib/messages/StellarCreateAccountOp.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarCreateAccountOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('new_account', p.BytesType, 0),
|
||||||
|
3: ('starting_balance', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 210
|
15
trezorlib/messages/StellarCreatePassiveOfferOp.py
Normal file
15
trezorlib/messages/StellarCreatePassiveOfferOp.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
from .StellarAssetType import StellarAssetType
|
||||||
|
|
||||||
|
|
||||||
|
class StellarCreatePassiveOfferOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('selling_asset', StellarAssetType, 0),
|
||||||
|
3: ('buying_asset', StellarAssetType, 0),
|
||||||
|
4: ('amount', p.UVarintType, 0),
|
||||||
|
5: ('price_n', p.UVarintType, 0),
|
||||||
|
6: ('price_d', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 214
|
9
trezorlib/messages/StellarGetPublicKey.py
Normal file
9
trezorlib/messages/StellarGetPublicKey.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarGetPublicKey(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 200
|
11
trezorlib/messages/StellarManageDataOp.py
Normal file
11
trezorlib/messages/StellarManageDataOp.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarManageDataOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('key', p.UnicodeType, 0),
|
||||||
|
3: ('value', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 220
|
16
trezorlib/messages/StellarManageOfferOp.py
Normal file
16
trezorlib/messages/StellarManageOfferOp.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
from .StellarAssetType import StellarAssetType
|
||||||
|
|
||||||
|
|
||||||
|
class StellarManageOfferOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('selling_asset', StellarAssetType, 0),
|
||||||
|
3: ('buying_asset', StellarAssetType, 0),
|
||||||
|
4: ('amount', p.UVarintType, 0),
|
||||||
|
5: ('price_n', p.UVarintType, 0),
|
||||||
|
6: ('price_d', p.UVarintType, 0),
|
||||||
|
7: ('offer_id', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 213
|
10
trezorlib/messages/StellarMessageSignature.py
Normal file
10
trezorlib/messages/StellarMessageSignature.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarMessageSignature(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('public_key', p.BytesType, 0),
|
||||||
|
2: ('signature', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 205
|
16
trezorlib/messages/StellarPathPaymentOp.py
Normal file
16
trezorlib/messages/StellarPathPaymentOp.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
from .StellarAssetType import StellarAssetType
|
||||||
|
|
||||||
|
|
||||||
|
class StellarPathPaymentOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('send_asset', StellarAssetType, 0),
|
||||||
|
3: ('send_max', p.UVarintType, 0),
|
||||||
|
4: ('destination_account', p.BytesType, 0),
|
||||||
|
5: ('destination_asset', StellarAssetType, 0),
|
||||||
|
6: ('destination_amount', p.UVarintType, 0),
|
||||||
|
7: ('paths', StellarAssetType, p.FLAG_REPEATED),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 212
|
13
trezorlib/messages/StellarPaymentOp.py
Normal file
13
trezorlib/messages/StellarPaymentOp.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
from .StellarAssetType import StellarAssetType
|
||||||
|
|
||||||
|
|
||||||
|
class StellarPaymentOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('destination_account', p.BytesType, 0),
|
||||||
|
3: ('asset', StellarAssetType, 0),
|
||||||
|
4: ('amount', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 211
|
9
trezorlib/messages/StellarPublicKey.py
Normal file
9
trezorlib/messages/StellarPublicKey.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarPublicKey(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('public_key', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 201
|
20
trezorlib/messages/StellarSetOptionsOp.py
Normal file
20
trezorlib/messages/StellarSetOptionsOp.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarSetOptionsOp(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('source_account', p.BytesType, 0),
|
||||||
|
2: ('inflation_destination_account', p.BytesType, 0),
|
||||||
|
3: ('clear_flags', p.UVarintType, 0),
|
||||||
|
4: ('set_flags', p.UVarintType, 0),
|
||||||
|
5: ('master_weight', p.UVarintType, 0),
|
||||||
|
6: ('low_threshold', p.UVarintType, 0),
|
||||||
|
7: ('medium_threshold', p.UVarintType, 0),
|
||||||
|
8: ('high_threshold', p.UVarintType, 0),
|
||||||
|
9: ('home_domain', p.UnicodeType, 0),
|
||||||
|
10: ('signer_type', p.UVarintType, 0),
|
||||||
|
11: ('signer_key', p.BytesType, 0),
|
||||||
|
12: ('signer_weight', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 215
|
10
trezorlib/messages/StellarSignMessage.py
Normal file
10
trezorlib/messages/StellarSignMessage.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarSignMessage(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
|
2: ('message', p.UnicodeType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 204
|
21
trezorlib/messages/StellarSignTx.py
Normal file
21
trezorlib/messages/StellarSignTx.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarSignTx(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('protocol_version', p.UVarintType, 0),
|
||||||
|
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
|
3: ('network_passphrase', p.UnicodeType, 0),
|
||||||
|
4: ('source_account', p.BytesType, 0),
|
||||||
|
5: ('fee', p.UVarintType, 0),
|
||||||
|
6: ('sequence_number', p.UVarintType, 0),
|
||||||
|
8: ('timebounds_start', p.UVarintType, 0),
|
||||||
|
9: ('timebounds_end', p.UVarintType, 0),
|
||||||
|
10: ('memo_type', p.UVarintType, 0),
|
||||||
|
11: ('memo_text', p.UnicodeType, 0),
|
||||||
|
12: ('memo_id', p.UVarintType, 0),
|
||||||
|
13: ('memo_hash', p.BytesType, 0),
|
||||||
|
14: ('num_operations', p.UVarintType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 202
|
10
trezorlib/messages/StellarSignedTx.py
Normal file
10
trezorlib/messages/StellarSignedTx.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarSignedTx(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('public_key', p.BytesType, 0),
|
||||||
|
2: ('signature', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 230
|
6
trezorlib/messages/StellarTxOpRequest.py
Normal file
6
trezorlib/messages/StellarTxOpRequest.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarTxOpRequest(p.MessageType):
|
||||||
|
MESSAGE_WIRE_TYPE = 203
|
11
trezorlib/messages/StellarVerifyMessage.py
Normal file
11
trezorlib/messages/StellarVerifyMessage.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
|
||||||
|
class StellarVerifyMessage(p.MessageType):
|
||||||
|
FIELDS = {
|
||||||
|
1: ('public_key', p.BytesType, 0),
|
||||||
|
2: ('message', p.BytesType, 0),
|
||||||
|
3: ('signature', p.BytesType, 0),
|
||||||
|
}
|
||||||
|
MESSAGE_WIRE_TYPE = 206
|
@ -15,6 +15,7 @@ from .NEMMosaicSupplyChange import NEMMosaicSupplyChange
|
|||||||
from .NEMProvisionNamespace import NEMProvisionNamespace
|
from .NEMProvisionNamespace import NEMProvisionNamespace
|
||||||
from .NEMTransactionCommon import NEMTransactionCommon
|
from .NEMTransactionCommon import NEMTransactionCommon
|
||||||
from .NEMTransfer import NEMTransfer
|
from .NEMTransfer import NEMTransfer
|
||||||
|
from .StellarAssetType import StellarAssetType
|
||||||
from .TransactionType import TransactionType
|
from .TransactionType import TransactionType
|
||||||
from .TxInputType import TxInputType
|
from .TxInputType import TxInputType
|
||||||
from .TxOutputBinType import TxOutputBinType
|
from .TxOutputBinType import TxOutputBinType
|
||||||
@ -29,7 +30,6 @@ from . import ButtonRequestType
|
|||||||
from . import PinMatrixRequestType
|
from . import PinMatrixRequestType
|
||||||
from . import RecoveryDeviceType
|
from . import RecoveryDeviceType
|
||||||
from . import WordRequestType
|
from . import WordRequestType
|
||||||
from . import PassphraseSourceType
|
|
||||||
from . import NEMMosaicLevy
|
from . import NEMMosaicLevy
|
||||||
from . import NEMSupplyChangeType
|
from . import NEMSupplyChangeType
|
||||||
from . import NEMModificationType
|
from . import NEMModificationType
|
||||||
@ -111,6 +111,25 @@ from .SignMessage import SignMessage
|
|||||||
from .SignTx import SignTx
|
from .SignTx import SignTx
|
||||||
from .SignedIdentity import SignedIdentity
|
from .SignedIdentity import SignedIdentity
|
||||||
from .SimpleSignTx import SimpleSignTx
|
from .SimpleSignTx import SimpleSignTx
|
||||||
|
from .StellarAccountMergeOp import StellarAccountMergeOp
|
||||||
|
from .StellarAllowTrustOp import StellarAllowTrustOp
|
||||||
|
from .StellarBumpSequenceOp import StellarBumpSequenceOp
|
||||||
|
from .StellarChangeTrustOp import StellarChangeTrustOp
|
||||||
|
from .StellarCreateAccountOp import StellarCreateAccountOp
|
||||||
|
from .StellarCreatePassiveOfferOp import StellarCreatePassiveOfferOp
|
||||||
|
from .StellarGetPublicKey import StellarGetPublicKey
|
||||||
|
from .StellarManageDataOp import StellarManageDataOp
|
||||||
|
from .StellarManageOfferOp import StellarManageOfferOp
|
||||||
|
from .StellarMessageSignature import StellarMessageSignature
|
||||||
|
from .StellarPathPaymentOp import StellarPathPaymentOp
|
||||||
|
from .StellarPaymentOp import StellarPaymentOp
|
||||||
|
from .StellarPublicKey import StellarPublicKey
|
||||||
|
from .StellarSetOptionsOp import StellarSetOptionsOp
|
||||||
|
from .StellarSignMessage import StellarSignMessage
|
||||||
|
from .StellarSignTx import StellarSignTx
|
||||||
|
from .StellarSignedTx import StellarSignedTx
|
||||||
|
from .StellarTxOpRequest import StellarTxOpRequest
|
||||||
|
from .StellarVerifyMessage import StellarVerifyMessage
|
||||||
from .Success import Success
|
from .Success import Success
|
||||||
from .TxAck import TxAck
|
from .TxAck import TxAck
|
||||||
from .TxRequest import TxRequest
|
from .TxRequest import TxRequest
|
||||||
|
Loading…
Reference in New Issue
Block a user