mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 00:28:10 +00:00
tools: don't generate messages unused in the current codebase
This commit is contained in:
parent
12dd548938
commit
bfcba533b6
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 701
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.address = address
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceCancelMsg(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 708
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
refid: str = None,
|
||||
sender: str = None,
|
||||
symbol: str = None,
|
||||
) -> None:
|
||||
self.refid = refid
|
||||
self.sender = sender
|
||||
self.symbol = symbol
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('refid', p.UnicodeType, 0),
|
||||
2: ('sender', p.UnicodeType, 0),
|
||||
3: ('symbol', p.UnicodeType, 0),
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceGetAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 700
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceGetPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 702
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceOrderMsg(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 707
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
id: str = None,
|
||||
ordertype: int = None,
|
||||
price: int = None,
|
||||
quantity: int = None,
|
||||
sender: str = None,
|
||||
side: int = None,
|
||||
symbol: str = None,
|
||||
timeinforce: int = None,
|
||||
) -> None:
|
||||
self.id = id
|
||||
self.ordertype = ordertype
|
||||
self.price = price
|
||||
self.quantity = quantity
|
||||
self.sender = sender
|
||||
self.side = side
|
||||
self.symbol = symbol
|
||||
self.timeinforce = timeinforce
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('id', p.UnicodeType, 0),
|
||||
2: ('ordertype', p.UVarintType, 0),
|
||||
3: ('price', p.SVarintType, 0),
|
||||
4: ('quantity', p.SVarintType, 0),
|
||||
5: ('sender', p.UnicodeType, 0),
|
||||
6: ('side', p.UVarintType, 0),
|
||||
7: ('symbol', p.UnicodeType, 0),
|
||||
8: ('timeinforce', p.UVarintType, 0),
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinancePublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 703
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.public_key = public_key
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('public_key', p.BytesType, 0),
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceSignTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 704
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
msg_count: int = None,
|
||||
account_number: int = None,
|
||||
chain_id: str = None,
|
||||
memo: str = None,
|
||||
sequence: int = None,
|
||||
source: int = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.msg_count = msg_count
|
||||
self.account_number = account_number
|
||||
self.chain_id = chain_id
|
||||
self.memo = memo
|
||||
self.sequence = sequence
|
||||
self.source = source
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('msg_count', p.UVarintType, 0),
|
||||
3: ('account_number', p.SVarintType, 0),
|
||||
4: ('chain_id', p.UnicodeType, 0),
|
||||
5: ('memo', p.UnicodeType, 0),
|
||||
6: ('sequence', p.SVarintType, 0),
|
||||
7: ('source', p.SVarintType, 0),
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceSignedTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 709
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
public_key: bytes = None,
|
||||
json: str = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.public_key = public_key
|
||||
self.json = json
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('public_key', p.BytesType, 0),
|
||||
3: ('json', p.UnicodeType, 0),
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .InputOutput import InputOutput
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceTransferMsg(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 706
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
inputs: List[InputOutput] = None,
|
||||
outputs: List[InputOutput] = None,
|
||||
) -> None:
|
||||
self.inputs = inputs if inputs is not None else []
|
||||
self.outputs = outputs if outputs is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('inputs', InputOutput, p.FLAG_REPEATED),
|
||||
2: ('outputs', InputOutput, p.FLAG_REPEATED),
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceTxRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 705
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class Coin(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
amount: int = None,
|
||||
denom: str = None,
|
||||
) -> None:
|
||||
self.amount = amount
|
||||
self.denom = denom
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('amount', p.SVarintType, 0),
|
||||
2: ('denom', p.UnicodeType, 0),
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosAsset import EosAsset
|
||||
|
||||
|
||||
class EosActionBuyRam(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
payer: int = None,
|
||||
receiver: int = None,
|
||||
quantity: EosAsset = None,
|
||||
) -> None:
|
||||
self.payer = payer
|
||||
self.receiver = receiver
|
||||
self.quantity = quantity
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('payer', p.UVarintType, 0),
|
||||
2: ('receiver', p.UVarintType, 0),
|
||||
3: ('quantity', EosAsset, 0),
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosActionBuyRamBytes(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
payer: int = None,
|
||||
receiver: int = None,
|
||||
bytes: int = None,
|
||||
) -> None:
|
||||
self.payer = payer
|
||||
self.receiver = receiver
|
||||
self.bytes = bytes
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('payer', p.UVarintType, 0),
|
||||
2: ('receiver', p.UVarintType, 0),
|
||||
3: ('bytes', p.UVarintType, 0),
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosPermissionLevel import EosPermissionLevel
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class EosActionCommon(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: int = None,
|
||||
name: int = None,
|
||||
authorization: List[EosPermissionLevel] = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.name = name
|
||||
self.authorization = authorization if authorization is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account', p.UVarintType, 0),
|
||||
2: ('name', p.UVarintType, 0),
|
||||
3: ('authorization', EosPermissionLevel, p.FLAG_REPEATED),
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosAsset import EosAsset
|
||||
|
||||
|
||||
class EosActionDelegate(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
sender: int = None,
|
||||
receiver: int = None,
|
||||
net_quantity: EosAsset = None,
|
||||
cpu_quantity: EosAsset = None,
|
||||
transfer: bool = None,
|
||||
) -> None:
|
||||
self.sender = sender
|
||||
self.receiver = receiver
|
||||
self.net_quantity = net_quantity
|
||||
self.cpu_quantity = cpu_quantity
|
||||
self.transfer = transfer
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('sender', p.UVarintType, 0),
|
||||
2: ('receiver', p.UVarintType, 0),
|
||||
3: ('net_quantity', EosAsset, 0),
|
||||
4: ('cpu_quantity', EosAsset, 0),
|
||||
5: ('transfer', p.BoolType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosActionDeleteAuth(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: int = None,
|
||||
permission: int = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.permission = permission
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account', p.UVarintType, 0),
|
||||
2: ('permission', p.UVarintType, 0),
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosActionLinkAuth(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: int = None,
|
||||
code: int = None,
|
||||
type: int = None,
|
||||
requirement: int = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.code = code
|
||||
self.type = type
|
||||
self.requirement = requirement
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account', p.UVarintType, 0),
|
||||
2: ('code', p.UVarintType, 0),
|
||||
3: ('type', p.UVarintType, 0),
|
||||
4: ('requirement', p.UVarintType, 0),
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosAuthorization import EosAuthorization
|
||||
|
||||
|
||||
class EosActionNewAccount(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
creator: int = None,
|
||||
name: int = None,
|
||||
owner: EosAuthorization = None,
|
||||
active: EosAuthorization = None,
|
||||
) -> None:
|
||||
self.creator = creator
|
||||
self.name = name
|
||||
self.owner = owner
|
||||
self.active = active
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('creator', p.UVarintType, 0),
|
||||
2: ('name', p.UVarintType, 0),
|
||||
3: ('owner', EosAuthorization, 0),
|
||||
4: ('active', EosAuthorization, 0),
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosActionRefund(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
owner: int = None,
|
||||
) -> None:
|
||||
self.owner = owner
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('owner', p.UVarintType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosActionSellRam(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: int = None,
|
||||
bytes: int = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.bytes = bytes
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account', p.UVarintType, 0),
|
||||
2: ('bytes', p.UVarintType, 0),
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosAsset import EosAsset
|
||||
|
||||
|
||||
class EosActionTransfer(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
sender: int = None,
|
||||
receiver: int = None,
|
||||
quantity: EosAsset = None,
|
||||
memo: str = None,
|
||||
) -> None:
|
||||
self.sender = sender
|
||||
self.receiver = receiver
|
||||
self.quantity = quantity
|
||||
self.memo = memo
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('sender', p.UVarintType, 0),
|
||||
2: ('receiver', p.UVarintType, 0),
|
||||
3: ('quantity', EosAsset, 0),
|
||||
4: ('memo', p.UnicodeType, 0),
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosAsset import EosAsset
|
||||
|
||||
|
||||
class EosActionUndelegate(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
sender: int = None,
|
||||
receiver: int = None,
|
||||
net_quantity: EosAsset = None,
|
||||
cpu_quantity: EosAsset = None,
|
||||
) -> None:
|
||||
self.sender = sender
|
||||
self.receiver = receiver
|
||||
self.net_quantity = net_quantity
|
||||
self.cpu_quantity = cpu_quantity
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('sender', p.UVarintType, 0),
|
||||
2: ('receiver', p.UVarintType, 0),
|
||||
3: ('net_quantity', EosAsset, 0),
|
||||
4: ('cpu_quantity', EosAsset, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosActionUnknown(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
data_size: int = None,
|
||||
data_chunk: bytes = None,
|
||||
) -> None:
|
||||
self.data_size = data_size
|
||||
self.data_chunk = data_chunk
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('data_size', p.UVarintType, 0),
|
||||
2: ('data_chunk', p.BytesType, 0),
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosActionUnlinkAuth(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: int = None,
|
||||
code: int = None,
|
||||
type: int = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.code = code
|
||||
self.type = type
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account', p.UVarintType, 0),
|
||||
2: ('code', p.UVarintType, 0),
|
||||
3: ('type', p.UVarintType, 0),
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosAuthorization import EosAuthorization
|
||||
|
||||
|
||||
class EosActionUpdateAuth(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: int = None,
|
||||
permission: int = None,
|
||||
parent: int = None,
|
||||
auth: EosAuthorization = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.permission = permission
|
||||
self.parent = parent
|
||||
self.auth = auth
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account', p.UVarintType, 0),
|
||||
2: ('permission', p.UVarintType, 0),
|
||||
3: ('parent', p.UVarintType, 0),
|
||||
4: ('auth', EosAuthorization, 0),
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class EosActionVoteProducer(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
voter: int = None,
|
||||
proxy: int = None,
|
||||
producers: List[int] = None,
|
||||
) -> None:
|
||||
self.voter = voter
|
||||
self.proxy = proxy
|
||||
self.producers = producers if producers is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('voter', p.UVarintType, 0),
|
||||
2: ('proxy', p.UVarintType, 0),
|
||||
3: ('producers', p.UVarintType, p.FLAG_REPEATED),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosAsset(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
amount: int = None,
|
||||
symbol: int = None,
|
||||
) -> None:
|
||||
self.amount = amount
|
||||
self.symbol = symbol
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('amount', p.SVarintType, 0),
|
||||
2: ('symbol', p.UVarintType, 0),
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosAuthorizationAccount import EosAuthorizationAccount
|
||||
from .EosAuthorizationKey import EosAuthorizationKey
|
||||
from .EosAuthorizationWait import EosAuthorizationWait
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class EosAuthorization(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
threshold: int = None,
|
||||
keys: List[EosAuthorizationKey] = None,
|
||||
accounts: List[EosAuthorizationAccount] = None,
|
||||
waits: List[EosAuthorizationWait] = None,
|
||||
) -> None:
|
||||
self.threshold = threshold
|
||||
self.keys = keys if keys is not None else []
|
||||
self.accounts = accounts if accounts is not None else []
|
||||
self.waits = waits if waits is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('threshold', p.UVarintType, 0),
|
||||
2: ('keys', EosAuthorizationKey, p.FLAG_REPEATED),
|
||||
3: ('accounts', EosAuthorizationAccount, p.FLAG_REPEATED),
|
||||
4: ('waits', EosAuthorizationWait, p.FLAG_REPEATED),
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosPermissionLevel import EosPermissionLevel
|
||||
|
||||
|
||||
class EosAuthorizationAccount(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account: EosPermissionLevel = None,
|
||||
weight: int = None,
|
||||
) -> None:
|
||||
self.account = account
|
||||
self.weight = weight
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account', EosPermissionLevel, 0),
|
||||
2: ('weight', p.UVarintType, 0),
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class EosAuthorizationKey(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
type: int = None,
|
||||
key: bytes = None,
|
||||
address_n: List[int] = None,
|
||||
weight: int = None,
|
||||
) -> None:
|
||||
self.type = type
|
||||
self.key = key
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.weight = weight
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('type', p.UVarintType, 0),
|
||||
2: ('key', p.BytesType, 0),
|
||||
3: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
4: ('weight', p.UVarintType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosAuthorizationWait(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
wait_sec: int = None,
|
||||
weight: int = None,
|
||||
) -> None:
|
||||
self.wait_sec = wait_sec
|
||||
self.weight = weight
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('wait_sec', p.UVarintType, 0),
|
||||
2: ('weight', p.UVarintType, 0),
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class EosGetPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 600
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosPermissionLevel(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
actor: int = None,
|
||||
permission: int = None,
|
||||
) -> None:
|
||||
self.actor = actor
|
||||
self.permission = permission
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('actor', p.UVarintType, 0),
|
||||
2: ('permission', p.UVarintType, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 601
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
wif_public_key: str = None,
|
||||
raw_public_key: bytes = None,
|
||||
) -> None:
|
||||
self.wif_public_key = wif_public_key
|
||||
self.raw_public_key = raw_public_key
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('wif_public_key', p.UnicodeType, 0),
|
||||
2: ('raw_public_key', p.BytesType, 0),
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosTxHeader import EosTxHeader
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class EosSignTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 602
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
chain_id: bytes = None,
|
||||
header: EosTxHeader = None,
|
||||
num_actions: int = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.chain_id = chain_id
|
||||
self.header = header
|
||||
self.num_actions = num_actions
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('chain_id', p.BytesType, 0),
|
||||
3: ('header', EosTxHeader, 0),
|
||||
4: ('num_actions', p.UVarintType, 0),
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosSignedTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 605
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature_v: int = None,
|
||||
signature_r: bytes = None,
|
||||
signature_s: bytes = None,
|
||||
) -> None:
|
||||
self.signature_v = signature_v
|
||||
self.signature_r = signature_r
|
||||
self.signature_s = signature_s
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature_v', p.UVarintType, 0),
|
||||
2: ('signature_r', p.BytesType, 0),
|
||||
3: ('signature_s', p.BytesType, 0),
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .EosActionBuyRam import EosActionBuyRam
|
||||
from .EosActionBuyRamBytes import EosActionBuyRamBytes
|
||||
from .EosActionCommon import EosActionCommon
|
||||
from .EosActionDelegate import EosActionDelegate
|
||||
from .EosActionDeleteAuth import EosActionDeleteAuth
|
||||
from .EosActionLinkAuth import EosActionLinkAuth
|
||||
from .EosActionNewAccount import EosActionNewAccount
|
||||
from .EosActionRefund import EosActionRefund
|
||||
from .EosActionSellRam import EosActionSellRam
|
||||
from .EosActionTransfer import EosActionTransfer
|
||||
from .EosActionUndelegate import EosActionUndelegate
|
||||
from .EosActionUnknown import EosActionUnknown
|
||||
from .EosActionUnlinkAuth import EosActionUnlinkAuth
|
||||
from .EosActionUpdateAuth import EosActionUpdateAuth
|
||||
from .EosActionVoteProducer import EosActionVoteProducer
|
||||
|
||||
|
||||
class EosTxActionAck(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 604
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
common: EosActionCommon = None,
|
||||
transfer: EosActionTransfer = None,
|
||||
delegate: EosActionDelegate = None,
|
||||
undelegate: EosActionUndelegate = None,
|
||||
refund: EosActionRefund = None,
|
||||
buy_ram: EosActionBuyRam = None,
|
||||
buy_ram_bytes: EosActionBuyRamBytes = None,
|
||||
sell_ram: EosActionSellRam = None,
|
||||
vote_producer: EosActionVoteProducer = None,
|
||||
update_auth: EosActionUpdateAuth = None,
|
||||
delete_auth: EosActionDeleteAuth = None,
|
||||
link_auth: EosActionLinkAuth = None,
|
||||
unlink_auth: EosActionUnlinkAuth = None,
|
||||
new_account: EosActionNewAccount = None,
|
||||
unknown: EosActionUnknown = None,
|
||||
) -> None:
|
||||
self.common = common
|
||||
self.transfer = transfer
|
||||
self.delegate = delegate
|
||||
self.undelegate = undelegate
|
||||
self.refund = refund
|
||||
self.buy_ram = buy_ram
|
||||
self.buy_ram_bytes = buy_ram_bytes
|
||||
self.sell_ram = sell_ram
|
||||
self.vote_producer = vote_producer
|
||||
self.update_auth = update_auth
|
||||
self.delete_auth = delete_auth
|
||||
self.link_auth = link_auth
|
||||
self.unlink_auth = unlink_auth
|
||||
self.new_account = new_account
|
||||
self.unknown = unknown
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('common', EosActionCommon, 0),
|
||||
2: ('transfer', EosActionTransfer, 0),
|
||||
3: ('delegate', EosActionDelegate, 0),
|
||||
4: ('undelegate', EosActionUndelegate, 0),
|
||||
5: ('refund', EosActionRefund, 0),
|
||||
6: ('buy_ram', EosActionBuyRam, 0),
|
||||
7: ('buy_ram_bytes', EosActionBuyRamBytes, 0),
|
||||
8: ('sell_ram', EosActionSellRam, 0),
|
||||
9: ('vote_producer', EosActionVoteProducer, 0),
|
||||
10: ('update_auth', EosActionUpdateAuth, 0),
|
||||
11: ('delete_auth', EosActionDeleteAuth, 0),
|
||||
12: ('link_auth', EosActionLinkAuth, 0),
|
||||
13: ('unlink_auth', EosActionUnlinkAuth, 0),
|
||||
14: ('new_account', EosActionNewAccount, 0),
|
||||
15: ('unknown', EosActionUnknown, 0),
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosTxActionRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 603
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
data_size: int = None,
|
||||
) -> None:
|
||||
self.data_size = data_size
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('data_size', p.UVarintType, 0),
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class EosTxHeader(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
expiration: int = None,
|
||||
ref_block_num: int = None,
|
||||
ref_block_prefix: int = None,
|
||||
max_net_usage_words: int = None,
|
||||
max_cpu_usage_ms: int = None,
|
||||
delay_sec: int = None,
|
||||
) -> None:
|
||||
self.expiration = expiration
|
||||
self.ref_block_num = ref_block_num
|
||||
self.ref_block_prefix = ref_block_prefix
|
||||
self.max_net_usage_words = max_net_usage_words
|
||||
self.max_cpu_usage_ms = max_cpu_usage_ms
|
||||
self.delay_sec = delay_sec
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('expiration', p.UVarintType, 0), # required
|
||||
2: ('ref_block_num', p.UVarintType, 0), # required
|
||||
3: ('ref_block_prefix', p.UVarintType, 0), # required
|
||||
4: ('max_net_usage_words', p.UVarintType, 0), # required
|
||||
5: ('max_cpu_usage_ms', p.UVarintType, 0), # required
|
||||
6: ('delay_sec', p.UVarintType, 0), # required
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class FirmwareErase(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 6
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
length: int = None,
|
||||
) -> None:
|
||||
self.length = length
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('length', p.UVarintType, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class FirmwareRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 8
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
offset: int = None,
|
||||
length: int = None,
|
||||
) -> None:
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('offset', p.UVarintType, 0),
|
||||
2: ('length', p.UVarintType, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class FirmwareUpload(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 7
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
payload: bytes = None,
|
||||
hash: bytes = None,
|
||||
) -> None:
|
||||
self.payload = payload
|
||||
self.hash = hash
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('payload', p.BytesType, 0), # required
|
||||
2: ('hash', p.BytesType, 0),
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .Coin import Coin
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class InputOutput(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
coins: List[Coin] = None,
|
||||
) -> None:
|
||||
self.address = address
|
||||
self.coins = coins if coins is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
2: ('coins', Coin, p.FLAG_REPEATED),
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 351
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.address = address
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
ONT = 1
|
||||
ONG = 2
|
@ -1,28 +0,0 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# 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):
|
||||
|
||||
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 []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('ont_id', p.UnicodeType, 0),
|
||||
2: ('public_key', p.BytesType, 0),
|
||||
3: ('ont_id_attributes', OntologyOntIdAttribute, p.FLAG_REPEATED),
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyOntIdAttribute(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
key: str = None,
|
||||
type: str = None,
|
||||
value: str = None,
|
||||
) -> None:
|
||||
self.key = key
|
||||
self.type = type
|
||||
self.value = value
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('key', p.UnicodeType, 0),
|
||||
2: ('type', p.UnicodeType, 0),
|
||||
3: ('value', p.UnicodeType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyOntIdRegister(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
ont_id: str = None,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.ont_id = ont_id
|
||||
self.public_key = public_key
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('ont_id', p.UnicodeType, 0),
|
||||
2: ('public_key', p.BytesType, 0),
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 353
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.public_key = public_key
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('public_key', p.BytesType, 0),
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('ont_id_add_attributes', OntologyOntIdAddAttributes, 0),
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('ont_id_register', OntologyOntIdRegister, 0),
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('transfer', OntologyTransfer, 0),
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# 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
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('transaction', OntologyTransaction, 0),
|
||||
3: ('withdraw_ong', OntologyWithdrawOng, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedOntIdAddAttributes(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 361
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedOntIdRegister(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 359
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedTransfer(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 355
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologySignedWithdrawOng(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 357
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.payload = payload
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('payload', p.BytesType, 0),
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .OntologyTxAttribute import OntologyTxAttribute
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class OntologyTransaction(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
version: int = None,
|
||||
type: int = None,
|
||||
nonce: int = None,
|
||||
gas_price: int = None,
|
||||
gas_limit: int = None,
|
||||
payer: str = None,
|
||||
tx_attributes: List[OntologyTxAttribute] = None,
|
||||
) -> None:
|
||||
self.version = version
|
||||
self.type = type
|
||||
self.nonce = nonce
|
||||
self.gas_price = gas_price
|
||||
self.gas_limit = gas_limit
|
||||
self.payer = payer
|
||||
self.tx_attributes = tx_attributes if tx_attributes is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('version', p.UVarintType, 0),
|
||||
2: ('type', p.UVarintType, 0),
|
||||
3: ('nonce', p.UVarintType, 0),
|
||||
4: ('gas_price', p.UVarintType, 0),
|
||||
5: ('gas_limit', p.UVarintType, 0),
|
||||
6: ('payer', p.UnicodeType, 0),
|
||||
7: ('tx_attributes', OntologyTxAttribute, p.FLAG_REPEATED),
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyTransfer(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
asset: int = None,
|
||||
amount: int = None,
|
||||
from_address: str = None,
|
||||
to_address: str = None,
|
||||
) -> None:
|
||||
self.asset = asset
|
||||
self.amount = amount
|
||||
self.from_address = from_address
|
||||
self.to_address = to_address
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('asset', p.UVarintType, 0),
|
||||
2: ('amount', p.UVarintType, 0),
|
||||
3: ('from_address', p.UnicodeType, 0),
|
||||
4: ('to_address', p.UnicodeType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyTxAttribute(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
usage: int = None,
|
||||
data: bytes = None,
|
||||
) -> None:
|
||||
self.usage = usage
|
||||
self.data = data
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('usage', p.UVarintType, 0),
|
||||
2: ('data', p.BytesType, 0),
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class OntologyWithdrawOng(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
amount: int = None,
|
||||
from_address: str = None,
|
||||
to_address: str = None,
|
||||
) -> None:
|
||||
self.amount = amount
|
||||
self.from_address = from_address
|
||||
self.to_address = to_address
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('amount', p.UVarintType, 0),
|
||||
2: ('from_address', p.UnicodeType, 0),
|
||||
3: ('to_address', p.UnicodeType, 0),
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
SIDE_UNKNOWN = 0
|
||||
BUY = 1
|
||||
SELL = 2
|
@ -1,6 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
OT_UNKNOWN = 0
|
||||
MARKET = 1
|
||||
LIMIT = 2
|
||||
OT_RESERVED = 3
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class SelfTest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 32
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
payload: bytes = None,
|
||||
) -> None:
|
||||
self.payload = payload
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('payload', p.BytesType, 0),
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
TIF_UNKNOWN = 0
|
||||
GTE = 1
|
||||
TIF_RESERVED = 2
|
||||
IOC = 3
|
@ -1,18 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronAccountUpdateContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account_name: str = None,
|
||||
) -> None:
|
||||
self.account_name = account_name
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('account_name', p.UnicodeType, 0),
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 251
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.address = address
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TronFrozenSupply import TronFrozenSupply
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class TronAssetIssueContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
name: str = None,
|
||||
abbr: str = None,
|
||||
total_supply: int = None,
|
||||
frozen_supply: List[TronFrozenSupply] = None,
|
||||
trx_num: int = None,
|
||||
num: int = None,
|
||||
start_time: int = None,
|
||||
end_time: int = None,
|
||||
description: str = None,
|
||||
url: str = None,
|
||||
) -> None:
|
||||
self.name = name
|
||||
self.abbr = abbr
|
||||
self.total_supply = total_supply
|
||||
self.frozen_supply = frozen_supply if frozen_supply is not None else []
|
||||
self.trx_num = trx_num
|
||||
self.num = num
|
||||
self.start_time = start_time
|
||||
self.end_time = end_time
|
||||
self.description = description
|
||||
self.url = url
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
2: ('name', p.UnicodeType, 0),
|
||||
3: ('abbr', p.UnicodeType, 0),
|
||||
4: ('total_supply', p.UVarintType, 0),
|
||||
5: ('frozen_supply', TronFrozenSupply, p.FLAG_REPEATED),
|
||||
6: ('trx_num', p.UVarintType, 0),
|
||||
7: ('num', p.UVarintType, 0),
|
||||
8: ('start_time', p.UVarintType, 0),
|
||||
9: ('end_time', p.UVarintType, 0),
|
||||
10: ('description', p.UnicodeType, 0),
|
||||
11: ('url', p.UnicodeType, 0),
|
||||
}
|
@ -1,80 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TronAccountUpdateContract import TronAccountUpdateContract
|
||||
from .TronAssetIssueContract import TronAssetIssueContract
|
||||
from .TronFreezeBalanceContract import TronFreezeBalanceContract
|
||||
from .TronParticipateAssetIssueContract import TronParticipateAssetIssueContract
|
||||
from .TronProposalApproveContract import TronProposalApproveContract
|
||||
from .TronProposalCreateContract import TronProposalCreateContract
|
||||
from .TronProposalDeleteContract import TronProposalDeleteContract
|
||||
from .TronTransferAssetContract import TronTransferAssetContract
|
||||
from .TronTransferContract import TronTransferContract
|
||||
from .TronUnfreezeAssetContract import TronUnfreezeAssetContract
|
||||
from .TronUnfreezeBalanceContract import TronUnfreezeBalanceContract
|
||||
from .TronUpdateAssetContract import TronUpdateAssetContract
|
||||
from .TronVoteWitnessContract import TronVoteWitnessContract
|
||||
from .TronWithdrawBalanceContract import TronWithdrawBalanceContract
|
||||
from .TronWitnessCreateContract import TronWitnessCreateContract
|
||||
from .TronWitnessUpdateContract import TronWitnessUpdateContract
|
||||
|
||||
|
||||
class TronContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
transfer_contract: TronTransferContract = None,
|
||||
transfer_asset_contract: TronTransferAssetContract = None,
|
||||
vote_witness_contract: TronVoteWitnessContract = None,
|
||||
witness_create_contract: TronWitnessCreateContract = None,
|
||||
asset_issue_contract: TronAssetIssueContract = None,
|
||||
witness_update_contract: TronWitnessUpdateContract = None,
|
||||
participate_asset_issue_contract: TronParticipateAssetIssueContract = None,
|
||||
account_update_contract: TronAccountUpdateContract = None,
|
||||
freeze_balance_contract: TronFreezeBalanceContract = None,
|
||||
unfreeze_balance_contract: TronUnfreezeBalanceContract = None,
|
||||
withdraw_balance_contract: TronWithdrawBalanceContract = None,
|
||||
unfreeze_asset_contract: TronUnfreezeAssetContract = None,
|
||||
update_asset_contract: TronUpdateAssetContract = None,
|
||||
proposal_create_contract: TronProposalCreateContract = None,
|
||||
proposal_approve_contract: TronProposalApproveContract = None,
|
||||
proposal_delete_contract: TronProposalDeleteContract = None,
|
||||
) -> None:
|
||||
self.transfer_contract = transfer_contract
|
||||
self.transfer_asset_contract = transfer_asset_contract
|
||||
self.vote_witness_contract = vote_witness_contract
|
||||
self.witness_create_contract = witness_create_contract
|
||||
self.asset_issue_contract = asset_issue_contract
|
||||
self.witness_update_contract = witness_update_contract
|
||||
self.participate_asset_issue_contract = participate_asset_issue_contract
|
||||
self.account_update_contract = account_update_contract
|
||||
self.freeze_balance_contract = freeze_balance_contract
|
||||
self.unfreeze_balance_contract = unfreeze_balance_contract
|
||||
self.withdraw_balance_contract = withdraw_balance_contract
|
||||
self.unfreeze_asset_contract = unfreeze_asset_contract
|
||||
self.update_asset_contract = update_asset_contract
|
||||
self.proposal_create_contract = proposal_create_contract
|
||||
self.proposal_approve_contract = proposal_approve_contract
|
||||
self.proposal_delete_contract = proposal_delete_contract
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('transfer_contract', TronTransferContract, 0),
|
||||
2: ('transfer_asset_contract', TronTransferAssetContract, 0),
|
||||
4: ('vote_witness_contract', TronVoteWitnessContract, 0),
|
||||
5: ('witness_create_contract', TronWitnessCreateContract, 0),
|
||||
6: ('asset_issue_contract', TronAssetIssueContract, 0),
|
||||
8: ('witness_update_contract', TronWitnessUpdateContract, 0),
|
||||
9: ('participate_asset_issue_contract', TronParticipateAssetIssueContract, 0),
|
||||
10: ('account_update_contract', TronAccountUpdateContract, 0),
|
||||
11: ('freeze_balance_contract', TronFreezeBalanceContract, 0),
|
||||
12: ('unfreeze_balance_contract', TronUnfreezeBalanceContract, 0),
|
||||
13: ('withdraw_balance_contract', TronWithdrawBalanceContract, 0),
|
||||
14: ('unfreeze_asset_contract', TronUnfreezeAssetContract, 0),
|
||||
15: ('update_asset_contract', TronUpdateAssetContract, 0),
|
||||
16: ('proposal_create_contract', TronProposalCreateContract, 0),
|
||||
17: ('proposal_approve_contract', TronProposalApproveContract, 0),
|
||||
18: ('proposal_delete_contract', TronProposalDeleteContract, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronFreezeBalanceContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
frozen_balance: int = None,
|
||||
frozen_duration: int = None,
|
||||
) -> None:
|
||||
self.frozen_balance = frozen_balance
|
||||
self.frozen_duration = frozen_duration
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('frozen_balance', p.UVarintType, 0),
|
||||
2: ('frozen_duration', p.UVarintType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronFrozenSupply(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
frozen_amount: int = None,
|
||||
frozen_days: int = None,
|
||||
) -> None:
|
||||
self.frozen_amount = frozen_amount
|
||||
self.frozen_days = frozen_days
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('frozen_amount', p.UVarintType, 0),
|
||||
2: ('frozen_days', p.UVarintType, 0),
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class TronGetAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 250
|
||||
|
||||
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
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronParticipateAssetIssueContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
to_address: bytes = None,
|
||||
asset_name: str = None,
|
||||
amount: int = None,
|
||||
) -> None:
|
||||
self.to_address = to_address
|
||||
self.asset_name = asset_name
|
||||
self.amount = amount
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('to_address', p.BytesType, 0),
|
||||
2: ('asset_name', p.UnicodeType, 0),
|
||||
3: ('amount', p.UVarintType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronProposalApproveContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
proposal_id: int = None,
|
||||
is_add_approval: bool = None,
|
||||
) -> None:
|
||||
self.proposal_id = proposal_id
|
||||
self.is_add_approval = is_add_approval
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('proposal_id', p.UVarintType, 0),
|
||||
2: ('is_add_approval', p.BoolType, 0),
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TronProposalParameters import TronProposalParameters
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class TronProposalCreateContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
parameters: List[TronProposalParameters] = None,
|
||||
) -> None:
|
||||
self.parameters = parameters if parameters is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('parameters', TronProposalParameters, p.FLAG_REPEATED),
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronProposalDeleteContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
proposal_id: int = None,
|
||||
) -> None:
|
||||
self.proposal_id = proposal_id
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('proposal_id', p.UVarintType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronProposalParameters(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
key: int = None,
|
||||
value: int = None,
|
||||
) -> None:
|
||||
self.key = key
|
||||
self.value = value
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('key', p.UVarintType, 0),
|
||||
2: ('value', p.UVarintType, 0),
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TronContract import TronContract
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class TronSignTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 252
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
ref_block_bytes: bytes = None,
|
||||
ref_block_hash: bytes = None,
|
||||
expiration: int = None,
|
||||
data: str = None,
|
||||
contract: TronContract = None,
|
||||
timestamp: int = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.ref_block_bytes = ref_block_bytes
|
||||
self.ref_block_hash = ref_block_hash
|
||||
self.expiration = expiration
|
||||
self.data = data
|
||||
self.contract = contract
|
||||
self.timestamp = timestamp
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('ref_block_bytes', p.BytesType, 0),
|
||||
3: ('ref_block_hash', p.BytesType, 0),
|
||||
4: ('expiration', p.UVarintType, 0),
|
||||
5: ('data', p.UnicodeType, 0),
|
||||
6: ('contract', TronContract, 0),
|
||||
7: ('timestamp', p.UVarintType, 0),
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronSignedTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 253
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
serialized_tx: bytes = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.serialized_tx = serialized_tx
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('serialized_tx', p.BytesType, 0),
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronTransferAssetContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
asset_name: str = None,
|
||||
to_address: bytes = None,
|
||||
amount: int = None,
|
||||
) -> None:
|
||||
self.asset_name = asset_name
|
||||
self.to_address = to_address
|
||||
self.amount = amount
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('asset_name', p.UnicodeType, 0),
|
||||
2: ('to_address', p.BytesType, 0),
|
||||
3: ('amount', p.UVarintType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronTransferContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
to_address: bytes = None,
|
||||
amount: int = None,
|
||||
) -> None:
|
||||
self.to_address = to_address
|
||||
self.amount = amount
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('to_address', p.BytesType, 0),
|
||||
2: ('amount', p.UVarintType, 0),
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronUnfreezeAssetContract(p.MessageType):
|
||||
pass
|
@ -1,7 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronUnfreezeBalanceContract(p.MessageType):
|
||||
pass
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronUpdateAssetContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
description: str = None,
|
||||
url: str = None,
|
||||
) -> None:
|
||||
self.description = description
|
||||
self.url = url
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('description', p.UnicodeType, 0),
|
||||
2: ('url', p.UnicodeType, 0),
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronVote(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
vote_address: bytes = None,
|
||||
vote_count: int = None,
|
||||
) -> None:
|
||||
self.vote_address = vote_address
|
||||
self.vote_count = vote_count
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('vote_address', p.BytesType, 0),
|
||||
2: ('vote_count', p.UVarintType, 0),
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .TronVote import TronVote
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class TronVoteWitnessContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
votes: List[TronVote] = None,
|
||||
) -> None:
|
||||
self.votes = votes if votes is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('votes', TronVote, p.FLAG_REPEATED),
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronWithdrawBalanceContract(p.MessageType):
|
||||
pass
|
@ -1,18 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronWitnessCreateContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
url: str = None,
|
||||
) -> None:
|
||||
self.url = url
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('url', p.UnicodeType, 0),
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class TronWitnessUpdateContract(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
update_url: str = None,
|
||||
) -> None:
|
||||
self.update_url = update_url
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
2: ('update_url', p.UnicodeType, 0),
|
||||
}
|
@ -1,8 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
rm -f ../src/trezor/messages/[A-Z]*.py
|
||||
../vendor/trezor-common/protob/pb2py \
|
||||
--no-init-py \
|
||||
-o ../src/trezor/messages \
|
||||
../vendor/trezor-common/protob/messages.proto \
|
||||
../vendor/trezor-common/protob/messages-*.proto
|
||||
../vendor/trezor-common/protob/messages-bitcoin.proto \
|
||||
../vendor/trezor-common/protob/messages-cardano.proto \
|
||||
../vendor/trezor-common/protob/messages-common.proto \
|
||||
../vendor/trezor-common/protob/messages-crypto.proto \
|
||||
../vendor/trezor-common/protob/messages-debug.proto \
|
||||
../vendor/trezor-common/protob/messages-ethereum.proto \
|
||||
../vendor/trezor-common/protob/messages-lisk.proto \
|
||||
../vendor/trezor-common/protob/messages-management.proto \
|
||||
../vendor/trezor-common/protob/messages-monero.proto \
|
||||
../vendor/trezor-common/protob/messages-nem.proto \
|
||||
../vendor/trezor-common/protob/messages-ripple.proto \
|
||||
../vendor/trezor-common/protob/messages-stellar.proto \
|
||||
../vendor/trezor-common/protob/messages-tezos.proto
|
||||
|
Loading…
Reference in New Issue
Block a user