mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 02:24:23 -05:00
* Enable PEP604 Ruff rules * Fix harcoded signature in test * Hack CLVMStreamable test with note to fast follow
26 lines
585 B
Python
26 lines
585 B
Python
from __future__ import annotations
|
|
|
|
from chia_rs.sized_bytes import bytes32
|
|
from chia_rs.sized_ints import uint32, uint64
|
|
from typing_extensions import Protocol
|
|
|
|
|
|
class BlockRecordProtocol(Protocol):
|
|
@property
|
|
def header_hash(self) -> bytes32: ...
|
|
|
|
@property
|
|
def height(self) -> uint32: ...
|
|
|
|
@property
|
|
def timestamp(self) -> uint64 | None: ...
|
|
|
|
@property
|
|
def prev_transaction_block_height(self) -> uint32: ...
|
|
|
|
@property
|
|
def prev_transaction_block_hash(self) -> bytes32 | None: ...
|
|
|
|
@property
|
|
def is_transaction_block(self) -> bool: ...
|