Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
pb sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 16, 2018
1 parent 49eeddd commit 820d012
Show file tree
Hide file tree
Showing 35 changed files with 632 additions and 104 deletions.
12 changes: 12 additions & 0 deletions src/trezor/messages/MessageType.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,18 @@
CardanoAddress = 308
CardanoTxAck = 309
CardanoSignedTransaction = 310
OntologyGetAddress = 350
OntologyAddress = 351
OntologyGetPublicKey = 352
OntologyPublicKey = 353
OntologySignTransfer = 354
OntologySignedTransfer = 355
OntologySignWithdrawOng = 356
OntologySignedWithdrawOng = 357
OntologySignOntIdRegister = 358
OntologySignedOntIdRegister = 359
OntologySignOntIdAddAttributes = 360
OntologySignedOntIdAddAttributes = 361
RippleGetAddress = 400
RippleAddress = 401
RippleSignTx = 402
Expand Down
16 changes: 16 additions & 0 deletions src/trezor/messages/OntologyAddress.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologyAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 351
FIELDS = {
1: ('address', p.UnicodeType, 0),
}

def __init__(
self,
address: str = None,
) -> None:
self.address = address
4 changes: 4 additions & 0 deletions src/trezor/messages/OntologyAsset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Automatically generated by pb2py
# fmt: off
ONT = 1
ONG = 2
25 changes: 25 additions & 0 deletions src/trezor/messages/OntologyGetAddress.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore


class OntologyGetAddress(p.MessageType):
MESSAGE_WIRE_TYPE = 350
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}

def __init__(
self,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.show_display = show_display
25 changes: 25 additions & 0 deletions src/trezor/messages/OntologyGetPublicKey.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore


class OntologyGetPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 352
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('show_display', p.BoolType, 0),
}

def __init__(
self,
address_n: List[int] = None,
show_display: bool = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.show_display = show_display
29 changes: 29 additions & 0 deletions src/trezor/messages/OntologyOntIdAddAttributes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

from .OntologyOntIdAttribute import OntologyOntIdAttribute

if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore


class OntologyOntIdAddAttributes(p.MessageType):
FIELDS = {
1: ('ont_id', p.UnicodeType, 0),
2: ('public_key', p.BytesType, 0),
3: ('ont_id_attributes', OntologyOntIdAttribute, p.FLAG_REPEATED),
}

def __init__(
self,
ont_id: str = None,
public_key: bytes = None,
ont_id_attributes: List[OntologyOntIdAttribute] = None,
) -> None:
self.ont_id = ont_id
self.public_key = public_key
self.ont_id_attributes = ont_id_attributes if ont_id_attributes is not None else []
21 changes: 21 additions & 0 deletions src/trezor/messages/OntologyOntIdAttribute.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologyOntIdAttribute(p.MessageType):
FIELDS = {
1: ('key', p.UnicodeType, 0),
2: ('type', p.UnicodeType, 0),
3: ('value', p.UnicodeType, 0),
}

def __init__(
self,
key: str = None,
type: str = None,
value: str = None,
) -> None:
self.key = key
self.type = type
self.value = value
18 changes: 18 additions & 0 deletions src/trezor/messages/OntologyOntIdRegister.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologyOntIdRegister(p.MessageType):
FIELDS = {
1: ('ont_id', p.UnicodeType, 0),
2: ('public_key', p.BytesType, 0),
}

def __init__(
self,
ont_id: str = None,
public_key: bytes = None,
) -> None:
self.ont_id = ont_id
self.public_key = public_key
16 changes: 16 additions & 0 deletions src/trezor/messages/OntologyPublicKey.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologyPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 353
FIELDS = {
1: ('public_key', p.BytesType, 0),
}

def __init__(
self,
public_key: bytes = None,
) -> None:
self.public_key = public_key
31 changes: 31 additions & 0 deletions src/trezor/messages/OntologySignOntIdAddAttributes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

from .OntologyOntIdAddAttributes import OntologyOntIdAddAttributes
from .OntologyTransaction import OntologyTransaction

if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore


class OntologySignOntIdAddAttributes(p.MessageType):
MESSAGE_WIRE_TYPE = 360
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('transaction', OntologyTransaction, 0),
3: ('ont_id_add_attributes', OntologyOntIdAddAttributes, 0),
}

def __init__(
self,
address_n: List[int] = None,
transaction: OntologyTransaction = None,
ont_id_add_attributes: OntologyOntIdAddAttributes = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.transaction = transaction
self.ont_id_add_attributes = ont_id_add_attributes
31 changes: 31 additions & 0 deletions src/trezor/messages/OntologySignOntIdRegister.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

from .OntologyOntIdRegister import OntologyOntIdRegister
from .OntologyTransaction import OntologyTransaction

if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore


class OntologySignOntIdRegister(p.MessageType):
MESSAGE_WIRE_TYPE = 358
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('transaction', OntologyTransaction, 0),
3: ('ont_id_register', OntologyOntIdRegister, 0),
}

def __init__(
self,
address_n: List[int] = None,
transaction: OntologyTransaction = None,
ont_id_register: OntologyOntIdRegister = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.transaction = transaction
self.ont_id_register = ont_id_register
31 changes: 31 additions & 0 deletions src/trezor/messages/OntologySignTransfer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

from .OntologyTransaction import OntologyTransaction
from .OntologyTransfer import OntologyTransfer

if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore


class OntologySignTransfer(p.MessageType):
MESSAGE_WIRE_TYPE = 354
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('transaction', OntologyTransaction, 0),
3: ('transfer', OntologyTransfer, 0),
}

def __init__(
self,
address_n: List[int] = None,
transaction: OntologyTransaction = None,
transfer: OntologyTransfer = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.transaction = transaction
self.transfer = transfer
31 changes: 31 additions & 0 deletions src/trezor/messages/OntologySignWithdrawOng.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p

from .OntologyTransaction import OntologyTransaction
from .OntologyWithdrawOng import OntologyWithdrawOng

if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore


class OntologySignWithdrawOng(p.MessageType):
MESSAGE_WIRE_TYPE = 356
FIELDS = {
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
2: ('transaction', OntologyTransaction, 0),
3: ('withdraw_ong', OntologyWithdrawOng, 0),
}

def __init__(
self,
address_n: List[int] = None,
transaction: OntologyTransaction = None,
withdraw_ong: OntologyWithdrawOng = None,
) -> None:
self.address_n = address_n if address_n is not None else []
self.transaction = transaction
self.withdraw_ong = withdraw_ong
19 changes: 19 additions & 0 deletions src/trezor/messages/OntologySignedOntIdAddAttributes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologySignedOntIdAddAttributes(p.MessageType):
MESSAGE_WIRE_TYPE = 361
FIELDS = {
1: ('signature', p.BytesType, 0),
2: ('payload', p.BytesType, 0),
}

def __init__(
self,
signature: bytes = None,
payload: bytes = None,
) -> None:
self.signature = signature
self.payload = payload
19 changes: 19 additions & 0 deletions src/trezor/messages/OntologySignedOntIdRegister.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologySignedOntIdRegister(p.MessageType):
MESSAGE_WIRE_TYPE = 359
FIELDS = {
1: ('signature', p.BytesType, 0),
2: ('payload', p.BytesType, 0),
}

def __init__(
self,
signature: bytes = None,
payload: bytes = None,
) -> None:
self.signature = signature
self.payload = payload
19 changes: 19 additions & 0 deletions src/trezor/messages/OntologySignedTransfer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologySignedTransfer(p.MessageType):
MESSAGE_WIRE_TYPE = 355
FIELDS = {
1: ('signature', p.BytesType, 0),
2: ('payload', p.BytesType, 0),
}

def __init__(
self,
signature: bytes = None,
payload: bytes = None,
) -> None:
self.signature = signature
self.payload = payload
19 changes: 19 additions & 0 deletions src/trezor/messages/OntologySignedWithdrawOng.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Automatically generated by pb2py
# fmt: off
import protobuf as p


class OntologySignedWithdrawOng(p.MessageType):
MESSAGE_WIRE_TYPE = 357
FIELDS = {
1: ('signature', p.BytesType, 0),
2: ('payload', p.BytesType, 0),
}

def __init__(
self,
signature: bytes = None,
payload: bytes = None,
) -> None:
self.signature = signature
self.payload = payload
Loading

0 comments on commit 820d012

Please sign in to comment.