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:
parent
668a52b85f
commit
c0a823ca1c
@ -97,6 +97,8 @@ StellarGetPublicKey = 200
|
|||||||
StellarPublicKey = 201
|
StellarPublicKey = 201
|
||||||
StellarSignTx = 202
|
StellarSignTx = 202
|
||||||
StellarTxOpRequest = 203
|
StellarTxOpRequest = 203
|
||||||
|
StellarGetAddress = 207
|
||||||
|
StellarAddress = 208
|
||||||
StellarCreateAccountOp = 210
|
StellarCreateAccountOp = 210
|
||||||
StellarPaymentOp = 211
|
StellarPaymentOp = 211
|
||||||
StellarPathPaymentOp = 212
|
StellarPathPaymentOp = 212
|
||||||
|
15
trezorlib/messages/StellarAddress.py
Normal file
15
trezorlib/messages/StellarAddress.py
Normal 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
|
20
trezorlib/messages/StellarGetAddress.py
Normal file
20
trezorlib/messages/StellarGetAddress.py
Normal 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 []
|
@ -127,11 +127,13 @@ 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 .StellarAccountMergeOp import StellarAccountMergeOp
|
||||||
|
from .StellarAddress import StellarAddress
|
||||||
from .StellarAllowTrustOp import StellarAllowTrustOp
|
from .StellarAllowTrustOp import StellarAllowTrustOp
|
||||||
from .StellarBumpSequenceOp import StellarBumpSequenceOp
|
from .StellarBumpSequenceOp import StellarBumpSequenceOp
|
||||||
from .StellarChangeTrustOp import StellarChangeTrustOp
|
from .StellarChangeTrustOp import StellarChangeTrustOp
|
||||||
from .StellarCreateAccountOp import StellarCreateAccountOp
|
from .StellarCreateAccountOp import StellarCreateAccountOp
|
||||||
from .StellarCreatePassiveOfferOp import StellarCreatePassiveOfferOp
|
from .StellarCreatePassiveOfferOp import StellarCreatePassiveOfferOp
|
||||||
|
from .StellarGetAddress import StellarGetAddress
|
||||||
from .StellarGetPublicKey import StellarGetPublicKey
|
from .StellarGetPublicKey import StellarGetPublicKey
|
||||||
from .StellarManageDataOp import StellarManageDataOp
|
from .StellarManageDataOp import StellarManageDataOp
|
||||||
from .StellarManageOfferOp import StellarManageOfferOp
|
from .StellarManageOfferOp import StellarManageOfferOp
|
||||||
|
Loading…
Reference in New Issue
Block a user