Skip to content

Commit

Permalink
move RespondToPhUpdates into the wallet protocol file
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Dec 15, 2022
1 parent c8697c2 commit f503761
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 51 deletions.
2 changes: 0 additions & 2 deletions chia-protocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pub mod message_struct;
pub mod pool_target;
pub mod program;
pub mod proof_of_space;
pub mod respond_to_ph_updates;
pub mod reward_chain_block;
pub mod slots;
pub mod spend_bundle;
Expand All @@ -45,7 +44,6 @@ pub use crate::header_block::*;
pub use crate::pool_target::*;
pub use crate::program::*;
pub use crate::proof_of_space::*;
pub use crate::respond_to_ph_updates::*;
pub use crate::reward_chain_block::*;
pub use crate::slots::*;
pub use crate::spend_bundle::*;
Expand Down
21 changes: 0 additions & 21 deletions chia-protocol/src/respond_to_ph_updates.rs

This file was deleted.

6 changes: 5 additions & 1 deletion chia-protocol/src/wallet_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ message_struct! (RegisterForPhUpdates {
min_height: u32,
});

// struct RespondToPhUpdates
message_struct! (RespondToPhUpdates {
puzzle_hashes: Vec<Bytes32>,
min_height: u32,
coin_states: Vec<CoinState>,
});

message_struct! (RegisterForCoinUpdates {
coin_ids: Vec<Bytes32>,
Expand Down
54 changes: 27 additions & 27 deletions wheel/chia_rs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -717,33 +717,6 @@ class ProofOfSpace:
@staticmethod
def from_json_dict(o: Dict[str, Any]) -> ProofOfSpace: ...

class RespondToPhUpdates:
puzzle_hashes: List[bytes32]
min_height: int
coin_states: List[CoinState]
def __init__(
self,
puzzle_hashes: Sequence[bytes32],
min_height: int,
coin_states: Sequence[CoinState]
) -> None: ...
def __hash__(self) -> int: ...
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
def __richcmp__(self) -> Any: ...
def __deepcopy__(self) -> RespondToPhUpdates: ...
def __copy__(self) -> RespondToPhUpdates: ...
@staticmethod
def from_bytes(bytes) -> RespondToPhUpdates: ...
@staticmethod
def parse_rust(ReadableBuffer) -> Tuple[RespondToPhUpdates, int]: ...
def to_bytes(self) -> bytes: ...
def __bytes__(self) -> bytes: ...
def get_hash(self) -> bytes32: ...
def to_json_dict(self) -> Dict[str, Any]: ...
@staticmethod
def from_json_dict(o: Dict[str, Any]) -> RespondToPhUpdates: ...

class RewardChainBlockUnfinished:
total_iters: int
signage_point_index: u8
Expand Down Expand Up @@ -1641,6 +1614,33 @@ class RegisterForPhUpdates:
@staticmethod
def from_json_dict(o: Dict[str, Any]) -> RegisterForPhUpdates: ...

class RespondToPhUpdates:
puzzle_hashes: List[bytes32]
min_height: int
coin_states: List[CoinState]
def __init__(
self,
puzzle_hashes: Sequence[bytes32],
min_height: int,
coin_states: Sequence[CoinState]
) -> None: ...
def __hash__(self) -> int: ...
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
def __richcmp__(self) -> Any: ...
def __deepcopy__(self) -> RespondToPhUpdates: ...
def __copy__(self) -> RespondToPhUpdates: ...
@staticmethod
def from_bytes(bytes) -> RespondToPhUpdates: ...
@staticmethod
def parse_rust(ReadableBuffer) -> Tuple[RespondToPhUpdates, int]: ...
def to_bytes(self) -> bytes: ...
def __bytes__(self) -> bytes: ...
def get_hash(self) -> bytes32: ...
def to_json_dict(self) -> Dict[str, Any]: ...
@staticmethod
def from_json_dict(o: Dict[str, Any]) -> RespondToPhUpdates: ...

class RegisterForCoinUpdates:
coin_ids: List[bytes32]
min_height: int
Expand Down

0 comments on commit f503761

Please sign in to comment.