mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-19 14:48:38 +03:00
3b084a165b
* configure isort to add the future annotations import * apply the new isort setting * remove type ignores for new mypy (#13539) https://pypi.org/project/mypy/0.981/ * another
30 lines
628 B
Python
30 lines
628 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Optional
|
|
|
|
from chia.types.blockchain_format.sized_bytes import bytes32
|
|
from chia.util.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: Optional[bytes32]
|
|
|
|
|
|
@streamable
|
|
@dataclass(frozen=True)
|
|
class GetAllCoinsProtocol(Streamable):
|
|
include_spent_coins: bool
|