mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-29 02:24:35 -05:00
* Enable PEP604 Ruff rules * Fix harcoded signature in test * Hack CLVMStreamable test with note to fast follow
30 lines
581 B
Python
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
|