mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 19:08:12 +00:00
vendor: update trezor-common; regenerate protobuf
This commit is contained in:
parent
b1eae58884
commit
44ac7656b4
@ -5,14 +5,14 @@ from .. import protobuf as p
|
|||||||
class StellarAccountMergeOp(p.MessageType):
|
class StellarAccountMergeOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 218
|
MESSAGE_WIRE_TYPE = 218
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('destination_account', p.BytesType, 0),
|
2: ('destination_account', p.UnicodeType, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
destination_account: bytes = None
|
destination_account: str = None
|
||||||
) -> None:
|
) -> None:
|
||||||
self.source_account = source_account
|
self.source_account = source_account
|
||||||
self.destination_account = destination_account
|
self.destination_account = destination_account
|
||||||
|
@ -5,8 +5,8 @@ from .. import protobuf as p
|
|||||||
class StellarAllowTrustOp(p.MessageType):
|
class StellarAllowTrustOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 217
|
MESSAGE_WIRE_TYPE = 217
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('trusted_account', p.BytesType, 0),
|
2: ('trusted_account', p.UnicodeType, 0),
|
||||||
3: ('asset_type', p.UVarintType, 0),
|
3: ('asset_type', p.UVarintType, 0),
|
||||||
4: ('asset_code', p.UnicodeType, 0),
|
4: ('asset_code', p.UnicodeType, 0),
|
||||||
5: ('is_authorized', p.UVarintType, 0),
|
5: ('is_authorized', p.UVarintType, 0),
|
||||||
@ -14,8 +14,8 @@ class StellarAllowTrustOp(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
trusted_account: bytes = None,
|
trusted_account: str = None,
|
||||||
asset_type: int = None,
|
asset_type: int = None,
|
||||||
asset_code: str = None,
|
asset_code: str = None,
|
||||||
is_authorized: int = None
|
is_authorized: int = None
|
||||||
|
@ -6,14 +6,14 @@ class StellarAssetType(p.MessageType):
|
|||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('type', p.UVarintType, 0),
|
1: ('type', p.UVarintType, 0),
|
||||||
2: ('code', p.UnicodeType, 0),
|
2: ('code', p.UnicodeType, 0),
|
||||||
3: ('issuer', p.BytesType, 0),
|
3: ('issuer', p.UnicodeType, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
type: int = None,
|
type: int = None,
|
||||||
code: str = None,
|
code: str = None,
|
||||||
issuer: bytes = None
|
issuer: str = None
|
||||||
) -> None:
|
) -> None:
|
||||||
self.type = type
|
self.type = type
|
||||||
self.code = code
|
self.code = code
|
||||||
|
@ -5,13 +5,13 @@ from .. import protobuf as p
|
|||||||
class StellarBumpSequenceOp(p.MessageType):
|
class StellarBumpSequenceOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 221
|
MESSAGE_WIRE_TYPE = 221
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('bump_to', p.UVarintType, 0),
|
2: ('bump_to', p.UVarintType, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
bump_to: int = None
|
bump_to: int = None
|
||||||
) -> None:
|
) -> None:
|
||||||
self.source_account = source_account
|
self.source_account = source_account
|
||||||
|
@ -6,14 +6,14 @@ from .StellarAssetType import StellarAssetType
|
|||||||
class StellarChangeTrustOp(p.MessageType):
|
class StellarChangeTrustOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 216
|
MESSAGE_WIRE_TYPE = 216
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('asset', StellarAssetType, 0),
|
2: ('asset', StellarAssetType, 0),
|
||||||
3: ('limit', p.UVarintType, 0),
|
3: ('limit', p.UVarintType, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
asset: StellarAssetType = None,
|
asset: StellarAssetType = None,
|
||||||
limit: int = None
|
limit: int = None
|
||||||
) -> None:
|
) -> None:
|
||||||
|
@ -5,15 +5,15 @@ from .. import protobuf as p
|
|||||||
class StellarCreateAccountOp(p.MessageType):
|
class StellarCreateAccountOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 210
|
MESSAGE_WIRE_TYPE = 210
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('new_account', p.BytesType, 0),
|
2: ('new_account', p.UnicodeType, 0),
|
||||||
3: ('starting_balance', p.SVarintType, 0),
|
3: ('starting_balance', p.SVarintType, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
new_account: bytes = None,
|
new_account: str = None,
|
||||||
starting_balance: int = None
|
starting_balance: int = None
|
||||||
) -> None:
|
) -> None:
|
||||||
self.source_account = source_account
|
self.source_account = source_account
|
||||||
|
@ -6,7 +6,7 @@ from .StellarAssetType import StellarAssetType
|
|||||||
class StellarCreatePassiveOfferOp(p.MessageType):
|
class StellarCreatePassiveOfferOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 214
|
MESSAGE_WIRE_TYPE = 214
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('selling_asset', StellarAssetType, 0),
|
2: ('selling_asset', StellarAssetType, 0),
|
||||||
3: ('buying_asset', StellarAssetType, 0),
|
3: ('buying_asset', StellarAssetType, 0),
|
||||||
4: ('amount', p.SVarintType, 0),
|
4: ('amount', p.SVarintType, 0),
|
||||||
@ -16,7 +16,7 @@ class StellarCreatePassiveOfferOp(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
selling_asset: StellarAssetType = None,
|
selling_asset: StellarAssetType = None,
|
||||||
buying_asset: StellarAssetType = None,
|
buying_asset: StellarAssetType = None,
|
||||||
amount: int = None,
|
amount: int = None,
|
||||||
|
@ -5,14 +5,14 @@ from .. import protobuf as p
|
|||||||
class StellarManageDataOp(p.MessageType):
|
class StellarManageDataOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 220
|
MESSAGE_WIRE_TYPE = 220
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('key', p.UnicodeType, 0),
|
2: ('key', p.UnicodeType, 0),
|
||||||
3: ('value', p.BytesType, 0),
|
3: ('value', p.BytesType, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
key: str = None,
|
key: str = None,
|
||||||
value: bytes = None
|
value: bytes = None
|
||||||
) -> None:
|
) -> None:
|
||||||
|
@ -6,7 +6,7 @@ from .StellarAssetType import StellarAssetType
|
|||||||
class StellarManageOfferOp(p.MessageType):
|
class StellarManageOfferOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 213
|
MESSAGE_WIRE_TYPE = 213
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('selling_asset', StellarAssetType, 0),
|
2: ('selling_asset', StellarAssetType, 0),
|
||||||
3: ('buying_asset', StellarAssetType, 0),
|
3: ('buying_asset', StellarAssetType, 0),
|
||||||
4: ('amount', p.SVarintType, 0),
|
4: ('amount', p.SVarintType, 0),
|
||||||
@ -17,7 +17,7 @@ class StellarManageOfferOp(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
selling_asset: StellarAssetType = None,
|
selling_asset: StellarAssetType = None,
|
||||||
buying_asset: StellarAssetType = None,
|
buying_asset: StellarAssetType = None,
|
||||||
amount: int = None,
|
amount: int = None,
|
||||||
|
@ -11,10 +11,10 @@ from .StellarAssetType import StellarAssetType
|
|||||||
class StellarPathPaymentOp(p.MessageType):
|
class StellarPathPaymentOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 212
|
MESSAGE_WIRE_TYPE = 212
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('send_asset', StellarAssetType, 0),
|
2: ('send_asset', StellarAssetType, 0),
|
||||||
3: ('send_max', p.SVarintType, 0),
|
3: ('send_max', p.SVarintType, 0),
|
||||||
4: ('destination_account', p.BytesType, 0),
|
4: ('destination_account', p.UnicodeType, 0),
|
||||||
5: ('destination_asset', StellarAssetType, 0),
|
5: ('destination_asset', StellarAssetType, 0),
|
||||||
6: ('destination_amount', p.SVarintType, 0),
|
6: ('destination_amount', p.SVarintType, 0),
|
||||||
7: ('paths', StellarAssetType, p.FLAG_REPEATED),
|
7: ('paths', StellarAssetType, p.FLAG_REPEATED),
|
||||||
@ -22,10 +22,10 @@ class StellarPathPaymentOp(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
send_asset: StellarAssetType = None,
|
send_asset: StellarAssetType = None,
|
||||||
send_max: int = None,
|
send_max: int = None,
|
||||||
destination_account: bytes = None,
|
destination_account: str = None,
|
||||||
destination_asset: StellarAssetType = None,
|
destination_asset: StellarAssetType = None,
|
||||||
destination_amount: int = None,
|
destination_amount: int = None,
|
||||||
paths: List[StellarAssetType] = None
|
paths: List[StellarAssetType] = None
|
||||||
|
@ -6,16 +6,16 @@ from .StellarAssetType import StellarAssetType
|
|||||||
class StellarPaymentOp(p.MessageType):
|
class StellarPaymentOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 211
|
MESSAGE_WIRE_TYPE = 211
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('destination_account', p.BytesType, 0),
|
2: ('destination_account', p.UnicodeType, 0),
|
||||||
3: ('asset', StellarAssetType, 0),
|
3: ('asset', StellarAssetType, 0),
|
||||||
4: ('amount', p.SVarintType, 0),
|
4: ('amount', p.SVarintType, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
destination_account: bytes = None,
|
destination_account: str = None,
|
||||||
asset: StellarAssetType = None,
|
asset: StellarAssetType = None,
|
||||||
amount: int = None
|
amount: int = None
|
||||||
) -> None:
|
) -> None:
|
||||||
|
@ -5,8 +5,8 @@ from .. import protobuf as p
|
|||||||
class StellarSetOptionsOp(p.MessageType):
|
class StellarSetOptionsOp(p.MessageType):
|
||||||
MESSAGE_WIRE_TYPE = 215
|
MESSAGE_WIRE_TYPE = 215
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
1: ('source_account', p.BytesType, 0),
|
1: ('source_account', p.UnicodeType, 0),
|
||||||
2: ('inflation_destination_account', p.BytesType, 0),
|
2: ('inflation_destination_account', p.UnicodeType, 0),
|
||||||
3: ('clear_flags', p.UVarintType, 0),
|
3: ('clear_flags', p.UVarintType, 0),
|
||||||
4: ('set_flags', p.UVarintType, 0),
|
4: ('set_flags', p.UVarintType, 0),
|
||||||
5: ('master_weight', p.UVarintType, 0),
|
5: ('master_weight', p.UVarintType, 0),
|
||||||
@ -21,8 +21,8 @@ class StellarSetOptionsOp(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
inflation_destination_account: bytes = None,
|
inflation_destination_account: str = None,
|
||||||
clear_flags: int = None,
|
clear_flags: int = None,
|
||||||
set_flags: int = None,
|
set_flags: int = None,
|
||||||
master_weight: int = None,
|
master_weight: int = None,
|
||||||
|
@ -13,7 +13,7 @@ class StellarSignTx(p.MessageType):
|
|||||||
1: ('protocol_version', p.UVarintType, 0),
|
1: ('protocol_version', p.UVarintType, 0),
|
||||||
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
2: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||||
3: ('network_passphrase', p.UnicodeType, 0),
|
3: ('network_passphrase', p.UnicodeType, 0),
|
||||||
4: ('source_account', p.BytesType, 0),
|
4: ('source_account', p.UnicodeType, 0),
|
||||||
5: ('fee', p.UVarintType, 0),
|
5: ('fee', p.UVarintType, 0),
|
||||||
6: ('sequence_number', p.UVarintType, 0),
|
6: ('sequence_number', p.UVarintType, 0),
|
||||||
8: ('timebounds_start', p.UVarintType, 0),
|
8: ('timebounds_start', p.UVarintType, 0),
|
||||||
@ -30,7 +30,7 @@ class StellarSignTx(p.MessageType):
|
|||||||
protocol_version: int = None,
|
protocol_version: int = None,
|
||||||
address_n: List[int] = None,
|
address_n: List[int] = None,
|
||||||
network_passphrase: str = None,
|
network_passphrase: str = None,
|
||||||
source_account: bytes = None,
|
source_account: str = None,
|
||||||
fee: int = None,
|
fee: int = None,
|
||||||
sequence_number: int = None,
|
sequence_number: int = None,
|
||||||
timebounds_start: int = None,
|
timebounds_start: int = None,
|
||||||
|
2
vendor/trezor-common
vendored
2
vendor/trezor-common
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 0bf60dbda9bd85db01ed36e5d9045a223744a35c
|
Subproject commit e5df1abfbe752da9232893715c496b3a1a9bde7a
|
Loading…
Reference in New Issue
Block a user