|
1 | 1 | """ |
2 | | -NEO RPC Node client and response classes. |
| 2 | +EpicChain RPC Node client and response classes. |
3 | 3 | """ |
4 | 4 | from __future__ import annotations |
5 | 5 |
|
@@ -406,7 +406,7 @@ def as_uint256(self) -> types.UInt256: |
406 | 406 |
|
407 | 407 | def as_address(self) -> str: |
408 | 408 | """ |
409 | | - Unwrap as NEO3 address. |
| 409 | + Unwrap as EpicChain address. |
410 | 410 | """ |
411 | 411 | return walletutils.script_hash_to_address(self.as_uint160()) |
412 | 412 |
|
@@ -862,7 +862,7 @@ def __str__(self): |
862 | 862 |
|
863 | 863 | class EpicRpcClient(RPCClient): |
864 | 864 | """ |
865 | | - Specialised RPC client for NEO's Node RPC API. |
| 865 | + Specialised RPC client for EpicChain's Node RPC API. |
866 | 866 | """ |
867 | 867 |
|
868 | 868 | def __init__(self, host: str, **kwargs): |
@@ -913,7 +913,7 @@ async def find_states( |
913 | 913 | Examples: |
914 | 914 | # prints all deployed |
915 | 915 | prefix_contract_hash = b"\x0c" |
916 | | - async with api.EpicRpcClient("https://testnet1.neo.coz.io:443") as client: |
| 916 | + async with api.EpicRpcClient("https://testnet5-seed.epic-chain.org:20111") as client: |
917 | 917 | async for k, v in client.find_states(CONTRACT_HASHES.MANAGEMENT, prefix_contract_hash): |
918 | 918 | print(k, v) |
919 | 919 |
|
@@ -1030,7 +1030,7 @@ async def get_candidates(self) -> Sequence[Candidate]: |
1030 | 1030 |
|
1031 | 1031 | async def get_committee(self) -> tuple[cryptography.ECPoint, ...]: |
1032 | 1032 | """ |
1033 | | - Fetch the public keys of the current NEO committee. |
| 1033 | + Fetch the public keys of the current EpicChian committee. |
1034 | 1034 | """ |
1035 | 1035 | response = await self._do_post("getcommittee") |
1036 | 1036 | return tuple( |
@@ -1184,7 +1184,7 @@ async def get_unclaimed_gas(self, address: str) -> int: |
1184 | 1184 | Fetch the amount of unclaimed gas for the given address. |
1185 | 1185 |
|
1186 | 1186 | Args: |
1187 | | - address: a NEO address. |
| 1187 | + address: a EpicChain address. |
1188 | 1188 | """ |
1189 | 1189 | result = await self._do_post("getunclaimedgas", [address]) |
1190 | 1190 | return int(result["unclaimed"]) |
@@ -1340,7 +1340,7 @@ async def validate_address(self, address: str) -> bool: |
1340 | 1340 | Verify if the given address is valid for the network the node is running on. |
1341 | 1341 |
|
1342 | 1342 | Args: |
1343 | | - address: a NEO address. |
| 1343 | + address: a EpicChain address. |
1344 | 1344 | """ |
1345 | 1345 | result = await self._do_post("validateaddress", [address]) |
1346 | 1346 | return result["isvalid"] |
@@ -1368,7 +1368,7 @@ async def print_contract_methods( |
1368 | 1368 |
|
1369 | 1369 | # return types are not included because ABI types like ARRAY cannot be properly translated e.g. the |
1370 | 1370 | # following functions both have ARRAY as return type in the ABI but their actual response is very different |
1371 | | - # 1. NeoToken.GetNextBlockValidators returns a list of serialized ECPoints |
| 1371 | + # 1. EpicChainToken.GetNextBlockValidators returns a list of serialized ECPoints |
1372 | 1372 | # 2. ManagementContract.getContract a serialized ContractState (not even a list) |
1373 | 1373 | print(f"def {method.name}(self{params})") |
1374 | 1374 | print(" ") |
|
0 commit comments