1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

vendor: update trezor-common; regenerate protobuf

This commit is contained in:
Pavol Rusnak 2018-06-20 15:57:35 +02:00
parent b1eae58884
commit 44ac7656b4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
14 changed files with 39 additions and 39 deletions

View File

@ -5,14 +5,14 @@ from .. import protobuf as p
class StellarAccountMergeOp(p.MessageType):
MESSAGE_WIRE_TYPE = 218
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('destination_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('destination_account', p.UnicodeType, 0),
}
def __init__(
self,
source_account: bytes = None,
destination_account: bytes = None
source_account: str = None,
destination_account: str = None
) -> None:
self.source_account = source_account
self.destination_account = destination_account

View File

@ -5,8 +5,8 @@ from .. import protobuf as p
class StellarAllowTrustOp(p.MessageType):
MESSAGE_WIRE_TYPE = 217
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('trusted_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('trusted_account', p.UnicodeType, 0),
3: ('asset_type', p.UVarintType, 0),
4: ('asset_code', p.UnicodeType, 0),
5: ('is_authorized', p.UVarintType, 0),
@ -14,8 +14,8 @@ class StellarAllowTrustOp(p.MessageType):
def __init__(
self,
source_account: bytes = None,
trusted_account: bytes = None,
source_account: str = None,
trusted_account: str = None,
asset_type: int = None,
asset_code: str = None,
is_authorized: int = None

View File

@ -6,14 +6,14 @@ class StellarAssetType(p.MessageType):
FIELDS = {
1: ('type', p.UVarintType, 0),
2: ('code', p.UnicodeType, 0),
3: ('issuer', p.BytesType, 0),
3: ('issuer', p.UnicodeType, 0),
}
def __init__(
self,
type: int = None,
code: str = None,
issuer: bytes = None
issuer: str = None
) -> None:
self.type = type
self.code = code

View File

@ -5,13 +5,13 @@ from .. import protobuf as p
class StellarBumpSequenceOp(p.MessageType):
MESSAGE_WIRE_TYPE = 221
FIELDS = {
1: ('source_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('bump_to', p.UVarintType, 0),
}
def __init__(
self,
source_account: bytes = None,
source_account: str = None,
bump_to: int = None
) -> None:
self.source_account = source_account

View File

@ -6,14 +6,14 @@ from .StellarAssetType import StellarAssetType
class StellarChangeTrustOp(p.MessageType):
MESSAGE_WIRE_TYPE = 216
FIELDS = {
1: ('source_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('asset', StellarAssetType, 0),
3: ('limit', p.UVarintType, 0),
}
def __init__(
self,
source_account: bytes = None,
source_account: str = None,
asset: StellarAssetType = None,
limit: int = None
) -> None:

View File

@ -5,15 +5,15 @@ from .. import protobuf as p
class StellarCreateAccountOp(p.MessageType):
MESSAGE_WIRE_TYPE = 210
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('new_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('new_account', p.UnicodeType, 0),
3: ('starting_balance', p.SVarintType, 0),
}
def __init__(
self,
source_account: bytes = None,
new_account: bytes = None,
source_account: str = None,
new_account: str = None,
starting_balance: int = None
) -> None:
self.source_account = source_account

View File

@ -6,7 +6,7 @@ from .StellarAssetType import StellarAssetType
class StellarCreatePassiveOfferOp(p.MessageType):
MESSAGE_WIRE_TYPE = 214
FIELDS = {
1: ('source_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('selling_asset', StellarAssetType, 0),
3: ('buying_asset', StellarAssetType, 0),
4: ('amount', p.SVarintType, 0),
@ -16,7 +16,7 @@ class StellarCreatePassiveOfferOp(p.MessageType):
def __init__(
self,
source_account: bytes = None,
source_account: str = None,
selling_asset: StellarAssetType = None,
buying_asset: StellarAssetType = None,
amount: int = None,

View File

@ -5,14 +5,14 @@ from .. import protobuf as p
class StellarManageDataOp(p.MessageType):
MESSAGE_WIRE_TYPE = 220
FIELDS = {
1: ('source_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('key', p.UnicodeType, 0),
3: ('value', p.BytesType, 0),
}
def __init__(
self,
source_account: bytes = None,
source_account: str = None,
key: str = None,
value: bytes = None
) -> None:

View File

@ -6,7 +6,7 @@ from .StellarAssetType import StellarAssetType
class StellarManageOfferOp(p.MessageType):
MESSAGE_WIRE_TYPE = 213
FIELDS = {
1: ('source_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('selling_asset', StellarAssetType, 0),
3: ('buying_asset', StellarAssetType, 0),
4: ('amount', p.SVarintType, 0),
@ -17,7 +17,7 @@ class StellarManageOfferOp(p.MessageType):
def __init__(
self,
source_account: bytes = None,
source_account: str = None,
selling_asset: StellarAssetType = None,
buying_asset: StellarAssetType = None,
amount: int = None,

View File

@ -11,10 +11,10 @@ from .StellarAssetType import StellarAssetType
class StellarPathPaymentOp(p.MessageType):
MESSAGE_WIRE_TYPE = 212
FIELDS = {
1: ('source_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('send_asset', StellarAssetType, 0),
3: ('send_max', p.SVarintType, 0),
4: ('destination_account', p.BytesType, 0),
4: ('destination_account', p.UnicodeType, 0),
5: ('destination_asset', StellarAssetType, 0),
6: ('destination_amount', p.SVarintType, 0),
7: ('paths', StellarAssetType, p.FLAG_REPEATED),
@ -22,10 +22,10 @@ class StellarPathPaymentOp(p.MessageType):
def __init__(
self,
source_account: bytes = None,
source_account: str = None,
send_asset: StellarAssetType = None,
send_max: int = None,
destination_account: bytes = None,
destination_account: str = None,
destination_asset: StellarAssetType = None,
destination_amount: int = None,
paths: List[StellarAssetType] = None

View File

@ -6,16 +6,16 @@ from .StellarAssetType import StellarAssetType
class StellarPaymentOp(p.MessageType):
MESSAGE_WIRE_TYPE = 211
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('destination_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('destination_account', p.UnicodeType, 0),
3: ('asset', StellarAssetType, 0),
4: ('amount', p.SVarintType, 0),
}
def __init__(
self,
source_account: bytes = None,
destination_account: bytes = None,
source_account: str = None,
destination_account: str = None,
asset: StellarAssetType = None,
amount: int = None
) -> None:

View File

@ -5,8 +5,8 @@ from .. import protobuf as p
class StellarSetOptionsOp(p.MessageType):
MESSAGE_WIRE_TYPE = 215
FIELDS = {
1: ('source_account', p.BytesType, 0),
2: ('inflation_destination_account', p.BytesType, 0),
1: ('source_account', p.UnicodeType, 0),
2: ('inflation_destination_account', p.UnicodeType, 0),
3: ('clear_flags', p.UVarintType, 0),
4: ('set_flags', p.UVarintType, 0),
5: ('master_weight', p.UVarintType, 0),
@ -21,8 +21,8 @@ class StellarSetOptionsOp(p.MessageType):
def __init__(
self,
source_account: bytes = None,
inflation_destination_account: bytes = None,
source_account: str = None,
inflation_destination_account: str = None,
clear_flags: int = None,
set_flags: int = None,
master_weight: int = None,

View File

@ -13,7 +13,7 @@ class StellarSignTx(p.MessageType):
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),
4: ('source_account', p.UnicodeType, 0),
5: ('fee', p.UVarintType, 0),
6: ('sequence_number', p.UVarintType, 0),
8: ('timebounds_start', p.UVarintType, 0),
@ -30,7 +30,7 @@ class StellarSignTx(p.MessageType):
protocol_version: int = None,
address_n: List[int] = None,
network_passphrase: str = None,
source_account: bytes = None,
source_account: str = None,
fee: int = None,
sequence_number: int = None,
timebounds_start: int = None,

@ -1 +1 @@
Subproject commit 0bf60dbda9bd85db01ed36e5d9045a223744a35c
Subproject commit e5df1abfbe752da9232893715c496b3a1a9bde7a