message regen

This commit is contained in:
Tomas Susanka 2018-03-05 15:03:47 +01:00
parent c4c2adaad2
commit 1bcad16249
22 changed files with 290 additions and 0 deletions

View File

@ -84,3 +84,21 @@ DebugLinkMemoryRead = 110
DebugLinkMemory = 111
DebugLinkMemoryWrite = 112
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
StellarSignedTx = 230

View File

@ -6,5 +6,6 @@ from .. import protobuf as p
class PassphraseAck(p.MessageType):
FIELDS = {
1: ('passphrase', p.UnicodeType, 0),
2: ('state', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 42

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,14 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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),
}

View File

@ -0,0 +1,13 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,12 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,16 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from __future__ import absolute_import
from .. import protobuf as p
class StellarGetPublicKey(p.MessageType):
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}
MESSAGE_WIRE_TYPE = 200

View File

@ -0,0 +1,12 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,17 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,17 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,14 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,10 @@
# Automatically generated by pb2py
from __future__ import absolute_import
from .. import protobuf as p
class StellarPublicKey(p.MessageType):
FIELDS = {
1: ('public_key', p.BytesType, 0),
}
MESSAGE_WIRE_TYPE = 201

View File

@ -0,0 +1,21 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,22 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,11 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -0,0 +1,7 @@
# Automatically generated by pb2py
from __future__ import absolute_import
from .. import protobuf as p
class StellarTxOpRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 203

View File

@ -0,0 +1,12 @@
# Automatically generated by pb2py
from __future__ import absolute_import
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

View File

@ -16,6 +16,7 @@ from .NEMMosaicSupplyChange import *
from .NEMProvisionNamespace import *
from .NEMTransactionCommon import *
from .NEMTransfer import *
from .StellarAssetType import *
from .TransactionType import *
from .TxInputType import *
from .TxOutputBinType import *
@ -111,6 +112,24 @@ from .SignMessage import *
from .SignTx import *
from .SignedIdentity import *
from .SimpleSignTx import *
from .StellarAccountMergeOp import *
from .StellarAllowTrustOp import *
from .StellarChangeTrustOp import *
from .StellarCreateAccountOp import *
from .StellarCreatePassiveOfferOp import *
from .StellarGetPublicKey import *
from .StellarManageDataOp import *
from .StellarManageOfferOp import *
from .StellarMessageSignature import *
from .StellarPathPaymentOp import *
from .StellarPaymentOp import *
from .StellarPublicKey import *
from .StellarSetOptionsOp import *
from .StellarSignMessage import *
from .StellarSignTx import *
from .StellarSignedTx import *
from .StellarTxOpRequest import *
from .StellarVerifyMessage import *
from .Success import *
from .TxAck import *
from .TxRequest import *