Skip to content

Commit

Permalink
Merge pull request #287 from multiversx/update-references
Browse files Browse the repository at this point in the history
Update references of sdk-py-* libraries. Adjust constraints
  • Loading branch information
andreibancioiu authored Jul 14, 2023
2 parents 350b668 + 8414804 commit 0316808
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
13 changes: 7 additions & 6 deletions multiversx_sdk_cli/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@
import logging
import time
from collections import OrderedDict
from typing import Any, Dict, List, Protocol, Sequence, TextIO, Tuple
from typing import Any, Dict, List, Optional, Protocol, Sequence, TextIO, Tuple

from multiversx_sdk_cli import config, errors, utils
from multiversx_sdk_cli.accounts import Account, Address, LedgerAccount
from multiversx_sdk_cli.cli_password import load_password, load_guardian_password
from multiversx_sdk_cli.cli_password import (load_guardian_password,
load_password)
from multiversx_sdk_cli.cosign_transaction import cosign_transaction
from multiversx_sdk_cli.errors import NoWalletProvided
from multiversx_sdk_cli.interfaces import ITransaction
from multiversx_sdk_cli.cosign_transaction import cosign_transaction
from multiversx_sdk_cli.ledger.ledger_functions import do_get_ledger_address

logger = logging.getLogger("transactions")


class ITransactionOnNetwork(Protocol):
hash: str
is_completed: bool
is_completed: Optional[bool]

def to_dictionary(self) -> Dict[str, Any]:
...
Expand All @@ -31,7 +32,7 @@ def send_transaction(self, transaction: ITransaction) -> str:
def send_transactions(self, transactions: Sequence[ITransaction]) -> Tuple[int, str]:
...

def get_transaction(self, tx_hash: str) -> ITransactionOnNetwork:
def get_transaction(self, tx_hash: str, with_process_status: Optional[bool]) -> ITransactionOnNetwork:
...


Expand Down Expand Up @@ -147,7 +148,7 @@ def __send_transaction_and_wait_for_result(self, proxy: INetworkProvider, payloa
for _ in range(0, num_periods_to_wait):
time.sleep(AWAIT_TRANSACTION_PERIOD)

tx = proxy.get_transaction(tx_hash)
tx = proxy.get_transaction(tx_hash, with_process_status=True)
if tx.is_completed:
return tx
else:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "multiversx-sdk-cli"
version = "7.0.0"
version = "7.1.0"
authors = [
{ name="MultiversX" },
]
Expand All @@ -26,8 +26,8 @@ dependencies = [
"semver",
"requests-cache",
"rich==13.3.4",
"multiversx-sdk-network-providers==0.6.*",
"multiversx-sdk-wallet==0.7.*",
"multiversx-sdk-network-providers>=0.11.0",
"multiversx-sdk-wallet>=0.7.0",
"multiversx-sdk-core>=0.5.0"
]

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ requests-cache
rich==13.3.4

multiversx-sdk-core>=0.5.0
multiversx-sdk-network-providers==0.6.*
multiversx-sdk-wallet==0.7.*
multiversx-sdk-network-providers>=0.11.0
multiversx-sdk-wallet>=0.7.0

0 comments on commit 0316808

Please sign in to comment.