From b000c81a6f97d8a5c568bfce3cc0f82951424bc3 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Tue, 4 Jun 2024 13:02:05 -0400 Subject: [PATCH] Type stubs --- wheel/python/chia_rs/chia_rs.pyi | 145 +++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) diff --git a/wheel/python/chia_rs/chia_rs.pyi b/wheel/python/chia_rs/chia_rs.pyi index 02001a0f4..3c955277d 100644 --- a/wheel/python/chia_rs/chia_rs.pyi +++ b/wheel/python/chia_rs/chia_rs.pyi @@ -3871,6 +3871,151 @@ class RejectCoinState: def from_json_dict(json_dict: Any) -> RejectCoinState: ... def replace(self, *, reason: Union[ int, _Unspec] = _Unspec()) -> RejectCoinState: ... +class RemovedMempoolItem: + transaction_id: bytes32 + reason: MempoolRemoveReason + def __init__( + self, + transaction_id: bytes, + reason: MempoolRemoveReason + ) -> None: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + def __richcmp__(self) -> Any: ... + def __deepcopy__(self) -> RemovedMempoolItem: ... + def __copy__(self) -> RemovedMempoolItem: ... + @staticmethod + def from_bytes(bytes) -> RemovedMempoolItem: ... + @staticmethod + def from_bytes_unchecked(bytes) -> RemovedMempoolItem: ... + @staticmethod + def parse_rust(ReadableBuffer, bool = False) -> Tuple[RemovedMempoolItem, int]: ... + 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: ... + @staticmethod + def from_json_dict(json_dict: Any) -> RemovedMempoolItem: ... + def replace(self, *, transaction_id: Union[ bytes32, _Unspec] = _Unspec(), + reason: Union[ MempoolRemoveReason, _Unspec] = _Unspec()) -> RemovedMempoolItem: ... + +class MempoolItemsAdded: + transaction_ids: List[bytes32] + def __init__( + self, + transaction_ids: Sequence[bytes32] + ) -> None: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + def __richcmp__(self) -> Any: ... + def __deepcopy__(self) -> MempoolItemsAdded: ... + def __copy__(self) -> MempoolItemsAdded: ... + @staticmethod + def from_bytes(bytes) -> MempoolItemsAdded: ... + @staticmethod + def from_bytes_unchecked(bytes) -> MempoolItemsAdded: ... + @staticmethod + def parse_rust(ReadableBuffer, bool = False) -> Tuple[MempoolItemsAdded, int]: ... + 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: ... + @staticmethod + def from_json_dict(json_dict: Any) -> MempoolItemsAdded: ... + def replace(self, *, transaction_ids: Union[ List[bytes32], _Unspec] = _Unspec()) -> MempoolItemsAdded: ... + +class MempoolItemsRemoved: + removed_items: List[RemovedMempoolItem] + def __init__( + self, + removed_items: Sequence[RemovedMempoolItem] + ) -> None: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + def __richcmp__(self) -> Any: ... + def __deepcopy__(self) -> MempoolItemsRemoved: ... + def __copy__(self) -> MempoolItemsRemoved: ... + @staticmethod + def from_bytes(bytes) -> MempoolItemsRemoved: ... + @staticmethod + def from_bytes_unchecked(bytes) -> MempoolItemsRemoved: ... + @staticmethod + def parse_rust(ReadableBuffer, bool = False) -> Tuple[MempoolItemsRemoved, int]: ... + 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: ... + @staticmethod + def from_json_dict(json_dict: Any) -> MempoolItemsRemoved: ... + def replace(self, *, removed_items: Union[ List[RemovedMempoolItem], _Unspec] = _Unspec()) -> MempoolItemsRemoved: ... + +class RequestCostInfo: + def __init__( + self + ) -> None: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + def __richcmp__(self) -> Any: ... + def __deepcopy__(self) -> RequestCostInfo: ... + def __copy__(self) -> RequestCostInfo: ... + @staticmethod + def from_bytes(bytes) -> RequestCostInfo: ... + @staticmethod + def from_bytes_unchecked(bytes) -> RequestCostInfo: ... + @staticmethod + def parse_rust(ReadableBuffer, bool = False) -> Tuple[RequestCostInfo, int]: ... + 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: ... + @staticmethod + def from_json_dict(json_dict: Any) -> RequestCostInfo: ... + +class RespondCostInfo: + max_transaction_cost: uint64 + max_block_cost: uint64 + max_mempool_cost: uint64 + mempool_cost: uint64 + mempool_fee: uint64 + bump_fee_per_cost: uint8 + def __init__( + self, + max_transaction_cost: uint64, + max_block_cost: uint64, + max_mempool_cost: uint64, + mempool_cost: uint64, + mempool_fee: uint64, + bump_fee_per_cost: uint8 + ) -> None: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + def __richcmp__(self) -> Any: ... + def __deepcopy__(self) -> RespondCostInfo: ... + def __copy__(self) -> RespondCostInfo: ... + @staticmethod + def from_bytes(bytes) -> RespondCostInfo: ... + @staticmethod + def from_bytes_unchecked(bytes) -> RespondCostInfo: ... + @staticmethod + def parse_rust(ReadableBuffer, bool = False) -> Tuple[RespondCostInfo, int]: ... + 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: ... + @staticmethod + def from_json_dict(json_dict: Any) -> RespondCostInfo: ... + def replace(self, *, max_transaction_cost: Union[ uint64, _Unspec] = _Unspec(), + max_block_cost: Union[ uint64, _Unspec] = _Unspec(), + max_mempool_cost: Union[ uint64, _Unspec] = _Unspec(), + mempool_cost: Union[ uint64, _Unspec] = _Unspec(), + mempool_fee: Union[ uint64, _Unspec] = _Unspec(), + bump_fee_per_cost: Union[ uint8, _Unspec] = _Unspec()) -> RespondCostInfo: ... + class SubEpochData: reward_chain_hash: bytes32 num_blocks_overflow: uint8