mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-07 07:12:34 +00:00
34 lines
857 B
Python
34 lines
857 B
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
# isort:skip_file
|
|
import protobuf as p
|
|
|
|
if __debug__:
|
|
try:
|
|
from typing import Dict, List, Optional # noqa: F401
|
|
from typing_extensions import Literal # noqa: F401
|
|
except ImportError:
|
|
pass
|
|
|
|
|
|
class CardanoBlockchainPointerType(p.MessageType):
|
|
|
|
def __init__(
|
|
self,
|
|
*,
|
|
block_index: int,
|
|
tx_index: int,
|
|
certificate_index: int,
|
|
) -> 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, p.FLAG_REQUIRED),
|
|
2: ('tx_index', p.UVarintType, p.FLAG_REQUIRED),
|
|
3: ('certificate_index', p.UVarintType, p.FLAG_REQUIRED),
|
|
}
|