Skip to content

Commit

Permalink
.pyi upate
Browse files Browse the repository at this point in the history
  • Loading branch information
smartgoo committed Oct 27, 2024
1 parent 656bab1 commit fc86890
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/kaspa.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -918,16 +918,16 @@ class Resolver:

def urls(self) -> list[str]: ...

def get_node(self, encoding: str, network: str, network_suffix: Optional[int]) -> dict: ...
def get_node(self, encoding: str, network_id: Optional[str]) -> dict: ...

def get_url(self, encoding: str, network: str, network_suffix: Optional[int]) -> str: ...
def get_url(self, encoding: str, network_id: Optional[str]) -> str: ...

def connect(self, encoding: str, network: str, network_suffix: Optional[int]) -> RpcClient: ...
def connect(self, encoding: str, network_id: Optional[str]) -> RpcClient: ...


class RpcClient:

def __init__(self, resolver: Optional[Resolver], url: Optional[str], encoding: Optional[str], network: Optional[str], network_suffix: Optional[str]) -> None: ...
def __init__(self, resolver: Optional[Resolver], url: Optional[str], encoding: Optional[str], network_id: Optional[str]) -> None: ...

@property
def url(self) -> str: ...
Expand All @@ -937,7 +937,7 @@ class RpcClient:

def set_resolver(self, Resolver) -> None: ...

def set_network_id(self, network: str, network_suffix: Optional[int]) -> None: ...
def set_network_id(self, network_id: Optional[str]) -> None: ...

@property
def is_connected(self) -> bool: ...
Expand Down

0 comments on commit fc86890

Please sign in to comment.