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/core/src/trezor/messages/CardanoBlockchainPointerTyp...

33 lines
839 B

# Automatically generated by pb2py
# fmt: off
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),
}