diff --git a/wheel/generate_type_stubs.py b/wheel/generate_type_stubs.py index 9d9f2cc0..169ab53b 100644 --- a/wheel/generate_type_stubs.py +++ b/wheel/generate_type_stubs.py @@ -22,11 +22,22 @@ def transform_type(m: str) -> str: def print_class( - file: TextIO, name: str, members: list[str], extra: Optional[list[str]] = None + file: TextIO, + name: str, + members: list[str], + extra: Optional[list[str]] = None, + martial_for_json_hint: Optional[str] = None, + unmartial_from_json_hint: Optional[str] = None, ): def add_indent(x: str): return "\n " + x + if martial_for_json_hint is None: + martial_for_json_hint = "dict[str, Any]" + + if unmartial_from_json_hint is None: + unmartial_from_json_hint = martial_for_json_hint + init_args = "".join([(",\n " + transform_type(x)) for x in members]) all_replace_parameters = [] @@ -67,9 +78,9 @@ def to_bytes(self) -> bytes: ... def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> {martial_for_json_hint}: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: {unmartial_from_json_hint}) -> Self: ... """ ) @@ -407,6 +418,8 @@ def __init__( "def __iadd__(self, other: G1Element) -> G1Element: ...", "def derive_unhardened(self, idx: int) -> G1Element: ...", ], + martial_for_json_hint="str", + unmartial_from_json_hint="Union[str, bytes]", ) print_class( file, @@ -422,6 +435,8 @@ def __init__( "def __add__(self, other: G2Element) -> G2Element: ...", "def __iadd__(self, other: G2Element) -> G2Element: ...", ], + martial_for_json_hint="str", + unmartial_from_json_hint="Union[str, bytes]", ) print_class( file, @@ -433,6 +448,7 @@ def __init__( "def __mul__(self, rhs: GTElement) -> GTElement: ...", "def __imul__(self, rhs: GTElement) -> GTElement : ...", ], + martial_for_json_hint="str", ) print_class( file, @@ -449,6 +465,7 @@ def __init__( "@staticmethod", "def from_seed(seed: bytes) -> PrivateKey: ...", ], + martial_for_json_hint="str", ) print_class( @@ -496,4 +513,15 @@ def __init__( ) for item in classes: - print_class(file, item[0], item[1], extra_members.get(item[0])) + # TODO: adjust the system to provide this control via more paths + martial_for_json_hint = None + if item[0] == "Program": + martial_for_json_hint = "str" + + print_class( + file, + item[0], + item[1], + extra_members.get(item[0]), + martial_for_json_hint=martial_for_json_hint, + ) diff --git a/wheel/python/chia_rs/chia_rs.pyi b/wheel/python/chia_rs/chia_rs.pyi index bbefde15..7f8dc7c2 100644 --- a/wheel/python/chia_rs/chia_rs.pyi +++ b/wheel/python/chia_rs/chia_rs.pyi @@ -160,9 +160,9 @@ class G1Element: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> str: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: Union[str, bytes]) -> Self: ... @final class G2Element: @@ -191,9 +191,9 @@ class G2Element: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> str: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: Union[str, bytes]) -> Self: ... @final class GTElement: @@ -218,9 +218,9 @@ class GTElement: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> str: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: str) -> Self: ... @final class PrivateKey: @@ -250,9 +250,9 @@ class PrivateKey: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> str: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: str) -> Self: ... @final class SpendConditions: @@ -311,9 +311,9 @@ class SpendConditions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_id: Union[ bytes, _Unspec] = _Unspec(), parent_id: Union[ bytes, _Unspec] = _Unspec(), puzzle_hash: Union[ bytes, _Unspec] = _Unspec(), @@ -375,9 +375,9 @@ class SpendBundleConditions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, spends: Union[ list[SpendConditions], _Unspec] = _Unspec(), reserve_fee: Union[ int, _Unspec] = _Unspec(), height_absolute: Union[ int, _Unspec] = _Unspec(), @@ -467,9 +467,9 @@ class BlockRecord: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, header_hash: Union[ bytes32, _Unspec] = _Unspec(), prev_hash: Union[ bytes32, _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec(), @@ -521,9 +521,9 @@ class Message: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, msg_type: Union[ int, _Unspec] = _Unspec(), id: Union[ Optional[uint16], _Unspec] = _Unspec(), data: Union[ bytes, _Unspec] = _Unspec()) -> Message: ... @@ -559,9 +559,9 @@ class Handshake: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, network_id: Union[ str, _Unspec] = _Unspec(), protocol_version: Union[ str, _Unspec] = _Unspec(), software_version: Union[ str, _Unspec] = _Unspec(), @@ -596,9 +596,9 @@ class ClassgroupElement: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, data: Union[ bytes100, _Unspec] = _Unspec()) -> ClassgroupElement: ... @final @@ -627,9 +627,9 @@ class Coin: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, parent_coin_info: Union[ bytes32, _Unspec] = _Unspec(), puzzle_hash: Union[ bytes32, _Unspec] = _Unspec(), amount: Union[ uint64, _Unspec] = _Unspec()) -> Coin: ... @@ -659,9 +659,9 @@ class CoinSpend: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin: Union[ Coin, _Unspec] = _Unspec(), puzzle_reveal: Union[ Program, _Unspec] = _Unspec(), solution: Union[ Program, _Unspec] = _Unspec()) -> CoinSpend: ... @@ -691,9 +691,9 @@ class CoinState: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin: Union[ Coin, _Unspec] = _Unspec(), spent_height: Union[ Optional[uint32], _Unspec] = _Unspec(), created_height: Union[ Optional[uint32], _Unspec] = _Unspec()) -> CoinState: ... @@ -725,9 +725,9 @@ class EndOfSubSlotBundle: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, challenge_chain: Union[ ChallengeChainSubSlot, _Unspec] = _Unspec(), infused_challenge_chain: Union[ Optional[InfusedChallengeChainSubSlot], _Unspec] = _Unspec(), reward_chain: Union[ RewardChainSubSlot, _Unspec] = _Unspec(), @@ -754,9 +754,9 @@ class FeeRate: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, mojos_per_clvm_cost: Union[ uint64, _Unspec] = _Unspec()) -> FeeRate: ... @final @@ -784,9 +784,9 @@ class FeeEstimate: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, error: Union[ Optional[str], _Unspec] = _Unspec(), time_target: Union[ uint64, _Unspec] = _Unspec(), estimated_fee_rate: Union[ FeeRate, _Unspec] = _Unspec()) -> FeeEstimate: ... @@ -814,9 +814,9 @@ class FeeEstimateGroup: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, error: Union[ Optional[str], _Unspec] = _Unspec(), estimates: Union[ list[FeeEstimate], _Unspec] = _Unspec()) -> FeeEstimateGroup: ... @@ -851,9 +851,9 @@ class TransactionsInfo: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, generator_root: Union[ bytes32, _Unspec] = _Unspec(), generator_refs_root: Union[ bytes32, _Unspec] = _Unspec(), aggregated_signature: Union[ G2Element, _Unspec] = _Unspec(), @@ -892,9 +892,9 @@ class FoliageTransactionBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, prev_transaction_block_hash: Union[ bytes32, _Unspec] = _Unspec(), timestamp: Union[ uint64, _Unspec] = _Unspec(), filter_hash: Union[ bytes32, _Unspec] = _Unspec(), @@ -931,9 +931,9 @@ class FoliageBlockData: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, unfinished_reward_block_hash: Union[ bytes32, _Unspec] = _Unspec(), pool_target: Union[ PoolTarget, _Unspec] = _Unspec(), pool_signature: Union[ Optional[G2Element], _Unspec] = _Unspec(), @@ -971,9 +971,9 @@ class Foliage: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, prev_block_hash: Union[ bytes32, _Unspec] = _Unspec(), reward_block_hash: Union[ bytes32, _Unspec] = _Unspec(), foliage_block_data: Union[ FoliageBlockData, _Unspec] = _Unspec(), @@ -1010,9 +1010,9 @@ class NewPeak: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, header_hash: Union[ bytes32, _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec(), weight: Union[ uint128, _Unspec] = _Unspec(), @@ -1044,9 +1044,9 @@ class NewTransaction: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, transaction_id: Union[ bytes32, _Unspec] = _Unspec(), cost: Union[ uint64, _Unspec] = _Unspec(), fees: Union[ uint64, _Unspec] = _Unspec()) -> NewTransaction: ... @@ -1072,9 +1072,9 @@ class RequestTransaction: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, transaction_id: Union[ bytes32, _Unspec] = _Unspec()) -> RequestTransaction: ... @final @@ -1098,9 +1098,9 @@ class RespondTransaction: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, transaction: Union[ SpendBundle, _Unspec] = _Unspec()) -> RespondTransaction: ... @final @@ -1126,9 +1126,9 @@ class RequestProofOfWeight: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, total_number_of_blocks: Union[ uint32, _Unspec] = _Unspec(), tip: Union[ bytes32, _Unspec] = _Unspec()) -> RequestProofOfWeight: ... @@ -1155,9 +1155,9 @@ class RespondProofOfWeight: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, wp: Union[ WeightProof, _Unspec] = _Unspec(), tip: Union[ bytes32, _Unspec] = _Unspec()) -> RespondProofOfWeight: ... @@ -1184,9 +1184,9 @@ class RequestBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), include_transaction_block: Union[ bool, _Unspec] = _Unspec()) -> RequestBlock: ... @@ -1211,9 +1211,9 @@ class RejectBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec()) -> RejectBlock: ... @final @@ -1241,9 +1241,9 @@ class RequestBlocks: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec(), include_transaction_block: Union[ bool, _Unspec] = _Unspec()) -> RequestBlocks: ... @@ -1273,9 +1273,9 @@ class RespondBlocks: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec(), blocks: Union[ list[FullBlock], _Unspec] = _Unspec()) -> RespondBlocks: ... @@ -1303,9 +1303,9 @@ class RejectBlocks: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec()) -> RejectBlocks: ... @@ -1330,9 +1330,9 @@ class RespondBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, block: Union[ FullBlock, _Unspec] = _Unspec()) -> RespondBlock: ... @final @@ -1356,9 +1356,9 @@ class NewUnfinishedBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, unfinished_reward_hash: Union[ bytes32, _Unspec] = _Unspec()) -> NewUnfinishedBlock: ... @final @@ -1382,9 +1382,9 @@ class RequestUnfinishedBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, unfinished_reward_hash: Union[ bytes32, _Unspec] = _Unspec()) -> RequestUnfinishedBlock: ... @final @@ -1408,9 +1408,9 @@ class RespondUnfinishedBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, unfinished_block: Union[ UnfinishedBlock, _Unspec] = _Unspec()) -> RespondUnfinishedBlock: ... @final @@ -1440,9 +1440,9 @@ class NewSignagePointOrEndOfSubSlot: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, prev_challenge_hash: Union[ Optional[bytes32], _Unspec] = _Unspec(), challenge_hash: Union[ bytes32, _Unspec] = _Unspec(), index_from_challenge: Union[ uint8, _Unspec] = _Unspec(), @@ -1473,9 +1473,9 @@ class RequestSignagePointOrEndOfSubSlot: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, challenge_hash: Union[ bytes32, _Unspec] = _Unspec(), index_from_challenge: Union[ uint8, _Unspec] = _Unspec(), last_rc_infusion: Union[ bytes32, _Unspec] = _Unspec()) -> RequestSignagePointOrEndOfSubSlot: ... @@ -1509,9 +1509,9 @@ class RespondSignagePoint: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, index_from_challenge: Union[ uint8, _Unspec] = _Unspec(), challenge_chain_vdf: Union[ VDFInfo, _Unspec] = _Unspec(), challenge_chain_proof: Union[ VDFProof, _Unspec] = _Unspec(), @@ -1539,9 +1539,9 @@ class RespondEndOfSubSlot: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, end_of_slot_bundle: Union[ EndOfSubSlotBundle, _Unspec] = _Unspec()) -> RespondEndOfSubSlot: ... @final @@ -1565,9 +1565,9 @@ class RequestMempoolTransactions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, filter: Union[ bytes, _Unspec] = _Unspec()) -> RequestMempoolTransactions: ... @final @@ -1597,9 +1597,9 @@ class NewCompactVDF: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), field_vdf: Union[ uint8, _Unspec] = _Unspec(), @@ -1632,9 +1632,9 @@ class RequestCompactVDF: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), field_vdf: Union[ uint8, _Unspec] = _Unspec(), @@ -1669,9 +1669,9 @@ class RespondCompactVDF: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), field_vdf: Union[ uint8, _Unspec] = _Unspec(), @@ -1697,9 +1697,9 @@ class RequestPeers: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... @final class RespondPeers: @@ -1722,9 +1722,9 @@ class RespondPeers: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, peer_list: Union[ list[TimestampedPeerInfo], _Unspec] = _Unspec()) -> RespondPeers: ... @final @@ -1750,9 +1750,9 @@ class NewUnfinishedBlock2: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, unfinished_reward_hash: Union[ bytes32, _Unspec] = _Unspec(), foliage_hash: Union[ Optional[bytes32], _Unspec] = _Unspec()) -> NewUnfinishedBlock2: ... @@ -1779,9 +1779,9 @@ class RequestUnfinishedBlock2: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, unfinished_reward_hash: Union[ bytes32, _Unspec] = _Unspec(), foliage_hash: Union[ Optional[bytes32], _Unspec] = _Unspec()) -> RequestUnfinishedBlock2: ... @@ -1836,9 +1836,9 @@ class FullBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, finished_sub_slots: Union[ list[EndOfSubSlotBundle], _Unspec] = _Unspec(), reward_chain_block: Union[ RewardChainBlock, _Unspec] = _Unspec(), challenge_chain_sp_proof: Union[ Optional[VDFProof], _Unspec] = _Unspec(), @@ -1902,9 +1902,9 @@ class HeaderBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, finished_sub_slots: Union[ list[EndOfSubSlotBundle], _Unspec] = _Unspec(), reward_chain_block: Union[ RewardChainBlock, _Unspec] = _Unspec(), challenge_chain_sp_proof: Union[ Optional[VDFProof], _Unspec] = _Unspec(), @@ -1942,9 +1942,9 @@ class TimestampedPeerInfo: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, host: Union[ str, _Unspec] = _Unspec(), port: Union[ uint16, _Unspec] = _Unspec(), timestamp: Union[ uint64, _Unspec] = _Unspec()) -> TimestampedPeerInfo: ... @@ -1972,9 +1972,9 @@ class PoolTarget: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, puzzle_hash: Union[ bytes32, _Unspec] = _Unspec(), max_height: Union[ uint32, _Unspec] = _Unspec()) -> PoolTarget: ... @@ -2013,9 +2013,9 @@ class Program: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> str: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: str) -> Self: ... @final class ProofOfSpace: @@ -2048,9 +2048,9 @@ class ProofOfSpace: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, challenge: Union[ bytes32, _Unspec] = _Unspec(), pool_public_key: Union[ Optional[G1Element], _Unspec] = _Unspec(), pool_contract_puzzle_hash: Union[ Optional[bytes32], _Unspec] = _Unspec(), @@ -2093,9 +2093,9 @@ class RewardChainBlockUnfinished: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, total_iters: Union[ uint128, _Unspec] = _Unspec(), signage_point_index: Union[ uint8, _Unspec] = _Unspec(), pos_ss_cc_challenge_hash: Union[ bytes32, _Unspec] = _Unspec(), @@ -2153,9 +2153,9 @@ class RewardChainBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, weight: Union[ uint128, _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec(), total_iters: Union[ uint128, _Unspec] = _Unspec(), @@ -2198,9 +2198,9 @@ class ChallengeBlockInfo: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, proof_of_space: Union[ ProofOfSpace, _Unspec] = _Unspec(), challenge_chain_sp_vdf: Union[ Optional[VDFInfo], _Unspec] = _Unspec(), challenge_chain_sp_signature: Union[ G2Element, _Unspec] = _Unspec(), @@ -2235,9 +2235,9 @@ class ChallengeChainSubSlot: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, challenge_chain_end_of_slot_vdf: Union[ VDFInfo, _Unspec] = _Unspec(), infused_challenge_chain_sub_slot_hash: Union[ Optional[bytes32], _Unspec] = _Unspec(), subepoch_summary_hash: Union[ Optional[bytes32], _Unspec] = _Unspec(), @@ -2265,9 +2265,9 @@ class InfusedChallengeChainSubSlot: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, infused_challenge_chain_end_of_slot_vdf: Union[ VDFInfo, _Unspec] = _Unspec()) -> InfusedChallengeChainSubSlot: ... @final @@ -2297,9 +2297,9 @@ class RewardChainSubSlot: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, end_of_slot_vdf: Union[ VDFInfo, _Unspec] = _Unspec(), challenge_chain_sub_slot_hash: Union[ bytes32, _Unspec] = _Unspec(), infused_challenge_chain_sub_slot_hash: Union[ Optional[bytes32], _Unspec] = _Unspec(), @@ -2330,9 +2330,9 @@ class SubSlotProofs: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, challenge_chain_slot_proof: Union[ VDFProof, _Unspec] = _Unspec(), infused_challenge_chain_slot_proof: Union[ Optional[VDFProof], _Unspec] = _Unspec(), reward_chain_slot_proof: Union[ VDFProof, _Unspec] = _Unspec()) -> SubSlotProofs: ... @@ -2365,9 +2365,9 @@ class SpendBundle: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_spends: Union[ list[CoinSpend], _Unspec] = _Unspec(), aggregated_signature: Union[ G2Element, _Unspec] = _Unspec()) -> SpendBundle: ... @@ -2400,9 +2400,9 @@ class SubEpochSummary: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, prev_subepoch_summary_hash: Union[ bytes32, _Unspec] = _Unspec(), reward_chain_hash: Union[ bytes32, _Unspec] = _Unspec(), num_blocks_overflow: Union[ uint8, _Unspec] = _Unspec(), @@ -2450,9 +2450,9 @@ class UnfinishedBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, finished_sub_slots: Union[ list[EndOfSubSlotBundle], _Unspec] = _Unspec(), reward_chain_block: Union[ RewardChainBlockUnfinished, _Unspec] = _Unspec(), challenge_chain_sp_proof: Union[ Optional[VDFProof], _Unspec] = _Unspec(), @@ -2499,9 +2499,9 @@ class UnfinishedHeaderBlock: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, finished_sub_slots: Union[ list[EndOfSubSlotBundle], _Unspec] = _Unspec(), reward_chain_block: Union[ RewardChainBlockUnfinished, _Unspec] = _Unspec(), challenge_chain_sp_proof: Union[ Optional[VDFProof], _Unspec] = _Unspec(), @@ -2535,9 +2535,9 @@ class VDFInfo: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, challenge: Union[ bytes32, _Unspec] = _Unspec(), number_of_iterations: Union[ uint64, _Unspec] = _Unspec(), output: Union[ ClassgroupElement, _Unspec] = _Unspec()) -> VDFInfo: ... @@ -2567,9 +2567,9 @@ class VDFProof: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, witness_type: Union[ uint8, _Unspec] = _Unspec(), witness: Union[ bytes, _Unspec] = _Unspec(), normalized_to_identity: Union[ bool, _Unspec] = _Unspec()) -> VDFProof: ... @@ -2597,9 +2597,9 @@ class RequestPuzzleSolution: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_name: Union[ bytes32, _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec()) -> RequestPuzzleSolution: ... @@ -2630,9 +2630,9 @@ class PuzzleSolutionResponse: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_name: Union[ bytes32, _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec(), puzzle: Union[ Program, _Unspec] = _Unspec(), @@ -2659,9 +2659,9 @@ class RespondPuzzleSolution: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, response: Union[ PuzzleSolutionResponse, _Unspec] = _Unspec()) -> RespondPuzzleSolution: ... @final @@ -2687,9 +2687,9 @@ class RejectPuzzleSolution: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_name: Union[ bytes32, _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec()) -> RejectPuzzleSolution: ... @@ -2714,9 +2714,9 @@ class SendTransaction: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, transaction: Union[ SpendBundle, _Unspec] = _Unspec()) -> SendTransaction: ... @final @@ -2744,9 +2744,9 @@ class TransactionAck: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, txid: Union[ bytes32, _Unspec] = _Unspec(), status: Union[ uint8, _Unspec] = _Unspec(), error: Union[ Optional[str], _Unspec] = _Unspec()) -> TransactionAck: ... @@ -2778,9 +2778,9 @@ class NewPeakWallet: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, header_hash: Union[ bytes32, _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec(), weight: Union[ uint128, _Unspec] = _Unspec(), @@ -2807,9 +2807,9 @@ class RequestBlockHeader: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec()) -> RequestBlockHeader: ... @final @@ -2833,9 +2833,9 @@ class RespondBlockHeader: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, header_block: Union[ HeaderBlock, _Unspec] = _Unspec()) -> RespondBlockHeader: ... @final @@ -2859,9 +2859,9 @@ class RejectHeaderRequest: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec()) -> RejectHeaderRequest: ... @final @@ -2889,9 +2889,9 @@ class RequestRemovals: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), coin_names: Union[ Optional[list[bytes32]], _Unspec] = _Unspec()) -> RequestRemovals: ... @@ -2923,9 +2923,9 @@ class RespondRemovals: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), coins: Union[ list[tuple[bytes32, Optional[Coin]]], _Unspec] = _Unspec(), @@ -2954,9 +2954,9 @@ class RejectRemovalsRequest: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec()) -> RejectRemovalsRequest: ... @@ -2985,9 +2985,9 @@ class RequestAdditions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ Optional[bytes32], _Unspec] = _Unspec(), puzzle_hashes: Union[ Optional[list[bytes32]], _Unspec] = _Unspec()) -> RequestAdditions: ... @@ -3019,9 +3019,9 @@ class RespondAdditions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), coins: Union[ list[tuple[bytes32, list[Coin]]], _Unspec] = _Unspec(), @@ -3050,9 +3050,9 @@ class RejectAdditionsRequest: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec()) -> RejectAdditionsRequest: ... @@ -3081,9 +3081,9 @@ class RespondBlockHeaders: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec(), header_blocks: Union[ list[HeaderBlock], _Unspec] = _Unspec()) -> RespondBlockHeaders: ... @@ -3111,9 +3111,9 @@ class RejectBlockHeaders: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec()) -> RejectBlockHeaders: ... @@ -3142,9 +3142,9 @@ class RequestBlockHeaders: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec(), return_filter: Union[ bool, _Unspec] = _Unspec()) -> RequestBlockHeaders: ... @@ -3172,9 +3172,9 @@ class RequestHeaderBlocks: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec()) -> RequestHeaderBlocks: ... @@ -3201,9 +3201,9 @@ class RejectHeaderBlocks: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec()) -> RejectHeaderBlocks: ... @@ -3232,9 +3232,9 @@ class RespondHeaderBlocks: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec(), header_blocks: Union[ list[HeaderBlock], _Unspec] = _Unspec()) -> RespondHeaderBlocks: ... @@ -3262,9 +3262,9 @@ class RegisterForPhUpdates: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, puzzle_hashes: Union[ list[bytes32], _Unspec] = _Unspec(), min_height: Union[ uint32, _Unspec] = _Unspec()) -> RegisterForPhUpdates: ... @@ -3293,9 +3293,9 @@ class RespondToPhUpdates: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, puzzle_hashes: Union[ list[bytes32], _Unspec] = _Unspec(), min_height: Union[ uint32, _Unspec] = _Unspec(), coin_states: Union[ list[CoinState], _Unspec] = _Unspec()) -> RespondToPhUpdates: ... @@ -3323,9 +3323,9 @@ class RegisterForCoinUpdates: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_ids: Union[ list[bytes32], _Unspec] = _Unspec(), min_height: Union[ uint32, _Unspec] = _Unspec()) -> RegisterForCoinUpdates: ... @@ -3354,9 +3354,9 @@ class RespondToCoinUpdates: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_ids: Union[ list[bytes32], _Unspec] = _Unspec(), min_height: Union[ uint32, _Unspec] = _Unspec(), coin_states: Union[ list[CoinState], _Unspec] = _Unspec()) -> RespondToCoinUpdates: ... @@ -3388,9 +3388,9 @@ class CoinStateUpdate: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, height: Union[ uint32, _Unspec] = _Unspec(), fork_height: Union[ uint32, _Unspec] = _Unspec(), peak_hash: Union[ bytes32, _Unspec] = _Unspec(), @@ -3417,9 +3417,9 @@ class RequestChildren: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_name: Union[ bytes32, _Unspec] = _Unspec()) -> RequestChildren: ... @final @@ -3443,9 +3443,9 @@ class RespondChildren: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_states: Union[ list[CoinState], _Unspec] = _Unspec()) -> RespondChildren: ... @final @@ -3471,9 +3471,9 @@ class RequestSesInfo: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, start_height: Union[ uint32, _Unspec] = _Unspec(), end_height: Union[ uint32, _Unspec] = _Unspec()) -> RequestSesInfo: ... @@ -3500,9 +3500,9 @@ class RespondSesInfo: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, reward_chain_hash: Union[ list[bytes32], _Unspec] = _Unspec(), heights: Union[ list[list[uint32]], _Unspec] = _Unspec()) -> RespondSesInfo: ... @@ -3527,9 +3527,9 @@ class RequestFeeEstimates: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, time_targets: Union[ list[uint64], _Unspec] = _Unspec()) -> RequestFeeEstimates: ... @final @@ -3553,9 +3553,9 @@ class RespondFeeEstimates: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, estimates: Union[ FeeEstimateGroup, _Unspec] = _Unspec()) -> RespondFeeEstimates: ... @final @@ -3579,9 +3579,9 @@ class RequestRemovePuzzleSubscriptions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, puzzle_hashes: Union[ Optional[list[bytes32]], _Unspec] = _Unspec()) -> RequestRemovePuzzleSubscriptions: ... @final @@ -3605,9 +3605,9 @@ class RespondRemovePuzzleSubscriptions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, puzzle_hashes: Union[ list[bytes32], _Unspec] = _Unspec()) -> RespondRemovePuzzleSubscriptions: ... @final @@ -3631,9 +3631,9 @@ class RequestRemoveCoinSubscriptions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_ids: Union[ Optional[list[bytes32]], _Unspec] = _Unspec()) -> RequestRemoveCoinSubscriptions: ... @final @@ -3657,9 +3657,9 @@ class RespondRemoveCoinSubscriptions: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_ids: Union[ list[bytes32], _Unspec] = _Unspec()) -> RespondRemoveCoinSubscriptions: ... @final @@ -3689,9 +3689,9 @@ class CoinStateFilters: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, include_spent: Union[ bool, _Unspec] = _Unspec(), include_unspent: Union[ bool, _Unspec] = _Unspec(), include_hinted: Union[ bool, _Unspec] = _Unspec(), @@ -3726,9 +3726,9 @@ class RequestPuzzleState: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, puzzle_hashes: Union[ list[bytes32], _Unspec] = _Unspec(), previous_height: Union[ Optional[uint32], _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), @@ -3764,9 +3764,9 @@ class RespondPuzzleState: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, puzzle_hashes: Union[ list[bytes32], _Unspec] = _Unspec(), height: Union[ uint32, _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), @@ -3794,9 +3794,9 @@ class RejectPuzzleState: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, reason: Union[ int, _Unspec] = _Unspec()) -> RejectPuzzleState: ... @final @@ -3826,9 +3826,9 @@ class RequestCoinState: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_ids: Union[ list[bytes32], _Unspec] = _Unspec(), previous_height: Union[ Optional[uint32], _Unspec] = _Unspec(), header_hash: Union[ bytes32, _Unspec] = _Unspec(), @@ -3857,9 +3857,9 @@ class RespondCoinState: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, coin_ids: Union[ list[bytes32], _Unspec] = _Unspec(), coin_states: Union[ list[CoinState], _Unspec] = _Unspec()) -> RespondCoinState: ... @@ -3884,9 +3884,9 @@ class RejectCoinState: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, reason: Union[ int, _Unspec] = _Unspec()) -> RejectCoinState: ... @final @@ -3916,9 +3916,9 @@ class SubEpochData: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, reward_chain_hash: Union[ bytes32, _Unspec] = _Unspec(), num_blocks_overflow: Union[ uint8, _Unspec] = _Unspec(), new_sub_slot_iters: Union[ Optional[uint64], _Unspec] = _Unspec(), @@ -3971,9 +3971,9 @@ class SubSlotData: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, proof_of_space: Union[ Optional[ProofOfSpace], _Unspec] = _Unspec(), cc_signage_point: Union[ Optional[VDFProof], _Unspec] = _Unspec(), cc_infusion_point: Union[ Optional[VDFProof], _Unspec] = _Unspec(), @@ -4013,9 +4013,9 @@ class SubEpochChallengeSegment: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, sub_epoch_n: Union[ uint32, _Unspec] = _Unspec(), sub_slots: Union[ list[SubSlotData], _Unspec] = _Unspec(), rc_slot_end_info: Union[ Optional[VDFInfo], _Unspec] = _Unspec()) -> SubEpochChallengeSegment: ... @@ -4041,9 +4041,9 @@ class SubEpochSegments: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, challenge_segments: Union[ list[SubEpochChallengeSegment], _Unspec] = _Unspec()) -> SubEpochSegments: ... @final @@ -4067,9 +4067,9 @@ class RecentChainData: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, recent_chain_data: Union[ list[HeaderBlock], _Unspec] = _Unspec()) -> RecentChainData: ... @final @@ -4095,9 +4095,9 @@ class ProofBlockHeader: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, finished_sub_slots: Union[ list[EndOfSubSlotBundle], _Unspec] = _Unspec(), reward_chain_block: Union[ RewardChainBlock, _Unspec] = _Unspec()) -> ProofBlockHeader: ... @@ -4126,9 +4126,9 @@ class WeightProof: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, sub_epochs: Union[ list[SubEpochData], _Unspec] = _Unspec(), sub_epoch_segments: Union[ list[SubEpochChallengeSegment], _Unspec] = _Unspec(), recent_chain_data: Union[ list[HeaderBlock], _Unspec] = _Unspec()) -> WeightProof: ... @@ -4244,9 +4244,9 @@ class ConsensusConstants: def __bytes__(self) -> bytes: ... def stream_to_bytes(self) -> bytes: ... def get_hash(self) -> bytes32: ... - def to_json_dict(self) -> Any: ... + def to_json_dict(self) -> dict[str, Any]: ... @classmethod - def from_json_dict(cls, json_dict: Any) -> Self: ... + def from_json_dict(cls, json_dict: dict[str, Any]) -> Self: ... def replace(self, *, SLOT_BLOCKS_TARGET: Union[ uint32, _Unspec] = _Unspec(), MIN_BLOCKS_PER_CHALLENGE_BLOCK: Union[ uint8, _Unspec] = _Unspec(), MAX_SUB_SLOT_BLOCKS: Union[ uint32, _Unspec] = _Unspec(),