mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-02 21:02:34 +00:00
33 lines
825 B
Python
33 lines
825 B
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
from .. import protobuf as p
|
|
|
|
if __debug__:
|
|
try:
|
|
from typing import Dict, List # noqa: F401
|
|
from typing_extensions import Literal # noqa: F401
|
|
except ImportError:
|
|
pass
|
|
|
|
|
|
class CardanoBlockchainPointerType(p.MessageType):
|
|
|
|
def __init__(
|
|
self,
|
|
*,
|
|
block_index: int = None,
|
|
tx_index: int = None,
|
|
certificate_index: int = None,
|
|
) -> None:
|
|
self.block_index = block_index
|
|
self.tx_index = tx_index
|
|
self.certificate_index = certificate_index
|
|
|
|
@classmethod
|
|
def get_fields(cls) -> Dict:
|
|
return {
|
|
1: ('block_index', p.UVarintType, None),
|
|
2: ('tx_index', p.UVarintType, None),
|
|
3: ('certificate_index', p.UVarintType, None),
|
|
}
|