Skip to content

Commit

Permalink
Update native SDK version + change package references
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shenshin <[email protected]>
  • Loading branch information
AlexanderShenshin committed Feb 6, 2025
1 parent 85a9260 commit 53e5685
Show file tree
Hide file tree
Showing 33 changed files with 129 additions and 124 deletions.
4 changes: 2 additions & 2 deletions did_sdk_py/anoncreds/hedera_anoncreds_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from itertools import chain
from typing import cast

from hedera_sdk_python import Client, PrivateKey, Timestamp, TopicMessageSubmitTransaction
from hedera_sdk_python.transaction.transaction import Transaction
from hiero_sdk_python import Client, PrivateKey, Timestamp, TopicMessageSubmitTransaction
from hiero_sdk_python.transaction.transaction import Transaction

from ..hcs import (
HcsFileService,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from typing import ClassVar

from hedera_sdk_python import PublicKey
from hiero_sdk_python import PublicKey

from .....did.types import SupportedKeyType
from .....utils.encoding import b58_to_bytes, bytes_to_b58
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from typing import ClassVar

from hedera_sdk_python import PublicKey
from hiero_sdk_python import PublicKey

from .....utils.encoding import b58_to_bytes, bytes_to_b58
from ....types import SupportedKeyType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from typing import ClassVar

from hedera_sdk_python import PublicKey
from hiero_sdk_python import PublicKey

from .....utils.encoding import b58_to_bytes, bytes_to_b58
from ....types import SupportedKeyType, VerificationRelationshipType
Expand Down
4 changes: 2 additions & 2 deletions did_sdk_py/did/hedera_did.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
from typing import Literal, cast

from hedera_sdk_python import Client, PrivateKey, PublicKey, TopicMessageSubmitTransaction
from hedera_sdk_python.transaction.transaction import Transaction
from hiero_sdk_python import Client, PrivateKey, PublicKey, TopicMessageSubmitTransaction
from hiero_sdk_python.transaction.transaction import Transaction

from ..hcs import HcsMessageResolver, HcsMessageTransaction, HcsTopicOptions, HcsTopicService
from ..hcs.constants import MAX_TRANSACTION_FEE
Expand Down
2 changes: 1 addition & 1 deletion did_sdk_py/did/hedera_did_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from enum import StrEnum
from typing import cast

from hedera_sdk_python import Client, Timestamp
from hiero_sdk_python import Client, Timestamp

from ..did.utils import parse_identifier
from ..hcs.hcs_message_resolver import HcsMessageResolver
Expand Down
2 changes: 1 addition & 1 deletion did_sdk_py/hcs/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from hedera_sdk_python import Hbar
from hiero_sdk_python import Hbar

MAX_TRANSACTION_FEE = Hbar(2)

Expand Down
4 changes: 2 additions & 2 deletions did_sdk_py/hcs/hcs_file/hcs_file_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from hashlib import sha256
from typing import cast

from hedera_sdk_python import Client, PrivateKey, TopicMessageSubmitTransaction
from hedera_sdk_python.transaction.transaction import Transaction
from hiero_sdk_python import Client, PrivateKey, TopicMessageSubmitTransaction
from hiero_sdk_python.transaction.transaction import Transaction

from ..constants import MAX_TRANSACTION_FEE
from ..hcs_message_resolver import HcsMessageResolver
Expand Down
2 changes: 1 addition & 1 deletion did_sdk_py/hcs/hcs_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from dataclasses import dataclass
from hashlib import sha256

from hedera_sdk_python import Timestamp
from hiero_sdk_python import Timestamp

from ..utils.serializable import Serializable

Expand Down
2 changes: 1 addition & 1 deletion did_sdk_py/hcs/hcs_message_envelope.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from hedera_sdk_python import PrivateKey
from hiero_sdk_python import PrivateKey

from ..utils.encoding import bytes_to_b64
from .hcs_message import HcsMessage
Expand Down
2 changes: 1 addition & 1 deletion did_sdk_py/hcs/hcs_message_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from asyncio import Future
from threading import Timer

from hedera_sdk_python import Client, Timestamp
from hiero_sdk_python import Client, Timestamp

from .hcs_message import HcsMessage, HcsMessageWithResponseMetadata
from .hcs_message_envelope import HcsMessageEnvelope
Expand Down
4 changes: 2 additions & 2 deletions did_sdk_py/hcs/hcs_message_transaction.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections.abc import Callable

from hedera_sdk_python import Client, TopicId, TopicMessageSubmitTransaction
from hedera_sdk_python.transaction.transaction import Transaction
from hiero_sdk_python import Client, TopicId, TopicMessageSubmitTransaction
from hiero_sdk_python.transaction.transaction import Transaction

from .hcs_message import HcsMessage
from .utils import execute_hcs_transaction_async
Expand Down
4 changes: 2 additions & 2 deletions did_sdk_py/hcs/hcs_topic_listener.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
from collections.abc import Callable

from hedera_sdk_python import Client, Timestamp, TopicId, TopicMessageQuery
from hedera_sdk_python.consensus.topic_message import TopicMessage
from hiero_sdk_python import Client, Timestamp, TopicId, TopicMessageQuery
from hiero_sdk_python.consensus.topic_message import TopicMessage

from .hcs_message import HcsMessage, HcsMessageWithResponseMetadata

Expand Down
4 changes: 2 additions & 2 deletions did_sdk_py/hcs/hcs_topic_service.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass

from hedera_sdk_python import (
from hiero_sdk_python import (
Client,
Hbar,
PrivateKey,
Expand All @@ -10,7 +10,7 @@
TopicInfoQuery,
TopicUpdateTransaction,
)
from hedera_sdk_python.consensus.topic_info import TopicInfo
from hiero_sdk_python.consensus.topic_info import TopicInfo

from .constants import MAX_TRANSACTION_FEE
from .utils import execute_hcs_query_async, execute_hcs_transaction_async, sign_hcs_transaction_async
Expand Down
6 changes: 3 additions & 3 deletions did_sdk_py/hcs/utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import asyncio
from typing import Any

from hedera_sdk_python import Client, PrivateKey, TransactionReceipt
from hedera_sdk_python.query.query import Query
from hedera_sdk_python.transaction.transaction import Transaction
from hiero_sdk_python import Client, PrivateKey, TransactionReceipt
from hiero_sdk_python.query.query import Query
from hiero_sdk_python.transaction.transaction import Transaction


async def sign_hcs_transaction_async(transaction: Transaction, signing_keys: list[PrivateKey]) -> Transaction:
Expand Down
2 changes: 1 addition & 1 deletion did_sdk_py/utils/keys.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from hedera_sdk_python import PrivateKey, PublicKey
from hiero_sdk_python import PrivateKey, PublicKey

from ..did.types import SupportedKeyType

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Configuration consists from two parts:
#### Create client for Testnet and set operator config

```python
from hedera_sdk_python import Client, Network, AccountId, PrivateKey
from hiero_sdk_python import Client, Network, AccountId, PrivateKey

client = Client(
network=Network("testnet")
Expand All @@ -35,7 +35,7 @@ client.set_operator(AccountId.from_string("OPERATOR_ID"), private_key=PrivateKey
#### Create client provider with custom network config

```python
from hedera_sdk_python import Client, Network, AccountId, PrivateKey
from hiero_sdk_python import Client, Network, AccountId, PrivateKey

TESTNET_NODES = [
("0.testnet.hedera.com:50211", AccountId(0, 0, 3)),
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For more complex examples, please refer to SDK integration tests:
### Create Hedera Client (for testnet)

```python
from hedera_sdk_python import Client, Network, AccountId, PrivateKey
from hiero_sdk_python import Client, Network, AccountId, PrivateKey

client = Client(
network=Network("testnet")
Expand Down
Loading

0 comments on commit 53e5685

Please sign in to comment.