1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-02 19:01:04 +00:00

protobuf: stellar get address

This commit is contained in:
Tomas Susanka 2018-06-11 14:19:24 +02:00 committed by matejcik
parent 668a52b85f
commit c0a823ca1c
4 changed files with 39 additions and 0 deletions

View File

@ -97,6 +97,8 @@ StellarGetPublicKey = 200
StellarPublicKey = 201
StellarSignTx = 202
StellarTxOpRequest = 203
StellarGetAddress = 207
StellarAddress = 208
StellarCreateAccountOp = 210
StellarPaymentOp = 211
StellarPathPaymentOp = 212

View File

@ -0,0 +1,15 @@
# Automatically generated by pb2py
from .. import protobuf as p
class StellarAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 208
FIELDS = {
1: ('address', p.UnicodeType, 0),
}
def __init__(
self,
address: str = None
) -> None:
self.address = address

View File

@ -0,0 +1,20 @@
# Automatically generated by pb2py
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None
class StellarGetAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 207
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
}
def __init__(
self,
address_n: List[int] = None
) -> None:
self.address_n = address_n if address_n is not None else []

View File

@ -127,11 +127,13 @@ from .SignTx import SignTx
from .SignedIdentity import SignedIdentity
from .SimpleSignTx import SimpleSignTx
from .StellarAccountMergeOp import StellarAccountMergeOp
from .StellarAddress import StellarAddress
from .StellarAllowTrustOp import StellarAllowTrustOp
from .StellarBumpSequenceOp import StellarBumpSequenceOp
from .StellarChangeTrustOp import StellarChangeTrustOp
from .StellarCreateAccountOp import StellarCreateAccountOp
from .StellarCreatePassiveOfferOp import StellarCreatePassiveOfferOp
from .StellarGetAddress import StellarGetAddress
from .StellarGetPublicKey import StellarGetPublicKey
from .StellarManageDataOp import StellarManageDataOp
from .StellarManageOfferOp import StellarManageOfferOp