Skip to content

Commit

Permalink
Type stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Aug 21, 2024
1 parent 2d2a31c commit a0d604b
Showing 1 changed file with 145 additions and 0 deletions.
145 changes: 145 additions & 0 deletions wheel/python/chia_rs/chia_rs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3890,6 +3890,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
Expand Down

0 comments on commit a0d604b

Please sign in to comment.