You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/python/src/trezorlib/messages/TxRequestDetailsType.py

35 lines
982 B

# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import Dict, List, Optional
from typing_extensions import Literal # noqa: F401
except ImportError:
Dict, List, Optional = None, None, None # type: ignore
class TxRequestDetailsType(p.MessageType):
def __init__(
self,
request_index: int = None,
tx_hash: bytes = None,
extra_data_len: int = None,
extra_data_offset: int = None,
) -> None:
self.request_index = request_index
self.tx_hash = tx_hash
self.extra_data_len = extra_data_len
self.extra_data_offset = extra_data_offset
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('request_index', p.UVarintType, 0),
2: ('tx_hash', p.BytesType, 0),
3: ('extra_data_len', p.UVarintType, 0),
4: ('extra_data_offset', p.UVarintType, 0),
}