algokit-utils 1.1.0b4__py3-none-any.whl → 1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of algokit-utils might be problematic. Click here for more details.
- algokit_utils/deploy.py +4 -2
- algokit_utils/models.py +6 -1
- {algokit_utils-1.1.0b4.dist-info → algokit_utils-1.1.1.dist-info}/METADATA +1 -1
- {algokit_utils-1.1.0b4.dist-info → algokit_utils-1.1.1.dist-info}/RECORD +6 -6
- {algokit_utils-1.1.0b4.dist-info → algokit_utils-1.1.1.dist-info}/LICENSE +0 -0
- {algokit_utils-1.1.0b4.dist-info → algokit_utils-1.1.1.dist-info}/WHEEL +0 -0
algokit_utils/deploy.py
CHANGED
|
@@ -708,6 +708,7 @@ class Deployer:
|
|
|
708
708
|
create_parameters,
|
|
709
709
|
**create_abi_args,
|
|
710
710
|
)
|
|
711
|
+
create_txn_index = len(atc.txn_list) - 1
|
|
711
712
|
delete_method, delete_abi_args, delete_parameters = _convert_deploy_args(
|
|
712
713
|
self.delete_args, self.new_app_metadata, self.signer, self.sender
|
|
713
714
|
)
|
|
@@ -717,9 +718,10 @@ class Deployer:
|
|
|
717
718
|
delete_parameters,
|
|
718
719
|
**delete_abi_args,
|
|
719
720
|
)
|
|
721
|
+
delete_txn_index = len(atc.txn_list) - 1
|
|
720
722
|
create_delete_response = self.app_client.execute_atc(atc)
|
|
721
|
-
create_response = TransactionResponse.from_atr(create_delete_response,
|
|
722
|
-
delete_response = TransactionResponse.from_atr(create_delete_response,
|
|
723
|
+
create_response = TransactionResponse.from_atr(create_delete_response, create_txn_index)
|
|
724
|
+
delete_response = TransactionResponse.from_atr(create_delete_response, delete_txn_index)
|
|
723
725
|
self.app_client.app_id = get_app_id_from_tx_id(self.app_client.algod_client, create_response.tx_id)
|
|
724
726
|
logger.info(
|
|
725
727
|
f"{self.new_app_metadata.name} ({self.new_app_metadata.version}) deployed successfully, "
|
algokit_utils/models.py
CHANGED
|
@@ -25,7 +25,12 @@ class TransactionResponse:
|
|
|
25
25
|
"""Round transaction was confirmed, `None` if call was a from a dry-run"""
|
|
26
26
|
|
|
27
27
|
@staticmethod
|
|
28
|
-
def from_atr(result: AtomicTransactionResponse, transaction_index: int =
|
|
28
|
+
def from_atr(result: AtomicTransactionResponse, transaction_index: int = -1) -> "TransactionResponse":
|
|
29
|
+
"""Returns either an ABITransactionResponse or a TransactionResponse based on the type of the transaction
|
|
30
|
+
referred to by transaction_index
|
|
31
|
+
:param AtomicTransactionResponse result: Result containing one or more transactions
|
|
32
|
+
:param int transaction_index: Which transaction in the result to return, defaults to -1 (the last transaction)
|
|
33
|
+
"""
|
|
29
34
|
tx_id = result.tx_ids[transaction_index]
|
|
30
35
|
abi_result = next((r for r in result.abi_results if r.tx_id == tx_id), None)
|
|
31
36
|
if abi_result:
|
|
@@ -4,12 +4,12 @@ algokit_utils/_transfer.py,sha256=K8TMoaFcZE74xZ1rhp1De0Ri4mg8vs8pu-iJLOa5WoE,35
|
|
|
4
4
|
algokit_utils/account.py,sha256=UIuOQZe28pQxjEP9TzhtYlOU20tUdzzS-nIIZM9Bp6Y,7364
|
|
5
5
|
algokit_utils/application_client.py,sha256=3oON9YJ-fU3rFhxacSPNxrpmnHUgG349oMH_Id9NdIA,53906
|
|
6
6
|
algokit_utils/application_specification.py,sha256=XusOe7VrGPun2UoNspC9Ei202NzPkxRNx5USXiABuXc,7466
|
|
7
|
-
algokit_utils/deploy.py,sha256=
|
|
7
|
+
algokit_utils/deploy.py,sha256=qJDgrHpoZMZA0upQ8QnriO62b5OnRkJHBULpRdQ4khc,32559
|
|
8
8
|
algokit_utils/logic_error.py,sha256=ypu2DSyus-Kjy51_1oE8T3LHVhRSOrc21Gpbau_WjAc,1981
|
|
9
|
-
algokit_utils/models.py,sha256=
|
|
9
|
+
algokit_utils/models.py,sha256=_0vVN1qW1VxyqjkhuxLpxcrOfVtw2LtCcOeQXJSv-4A,4309
|
|
10
10
|
algokit_utils/network_clients.py,sha256=0cbUHCEWycFnduEu5cJ4dY6pfDOOzvHO1cXmcxAe83M,4841
|
|
11
11
|
algokit_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
algokit_utils-1.1.
|
|
13
|
-
algokit_utils-1.1.
|
|
14
|
-
algokit_utils-1.1.
|
|
15
|
-
algokit_utils-1.1.
|
|
12
|
+
algokit_utils-1.1.1.dist-info/LICENSE,sha256=J5i7U1Q9Q2c7saUzlvFRmrCCFhQyXb5Juz_LO5omNUw,1076
|
|
13
|
+
algokit_utils-1.1.1.dist-info/METADATA,sha256=t9unn3bHnOOknd_iPk07Gkn0o9cAtNDY-dzlPc18Nlw,2035
|
|
14
|
+
algokit_utils-1.1.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
15
|
+
algokit_utils-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|