Files
chia-blockchain/chia/simulator/simulator_protocol.py
Matt HauffandGitHub 40db4635a8 [LABS-245] Enable PEP604 Ruff rules (#20269)
* Enable PEP604 Ruff rules

* Fix harcoded signature in test

* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00

30 lines
581 B
Python

from __future__ import annotations
from dataclasses import dataclass
from chia_rs.sized_bytes import bytes32
from chia_rs.sized_ints import uint32
from chia.util.streamable import Streamable, streamable
@streamable
@dataclass(frozen=True)
class FarmNewBlockProtocol(Streamable):
puzzle_hash: bytes32
@streamable
@dataclass(frozen=True)
class ReorgProtocol(Streamable):
old_index: uint32
new_index: uint32
puzzle_hash: bytes32
seed: bytes32 | None
@streamable
@dataclass(frozen=True)
class GetAllCoinsProtocol(Streamable):
include_spent_coins: bool