algokit-utils 4.1.0b2__py3-none-any.whl → 4.1.0b4__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/applications/app_deployer.py +11 -7
- algokit_utils/transactions/transaction_sender.py +5 -3
- {algokit_utils-4.1.0b2.dist-info → algokit_utils-4.1.0b4.dist-info}/METADATA +1 -1
- {algokit_utils-4.1.0b2.dist-info → algokit_utils-4.1.0b4.dist-info}/RECORD +6 -6
- {algokit_utils-4.1.0b2.dist-info → algokit_utils-4.1.0b4.dist-info}/LICENSE +0 -0
- {algokit_utils-4.1.0b2.dist-info → algokit_utils-4.1.0b4.dist-info}/WHEEL +0 -0
|
@@ -447,7 +447,8 @@ class AppDeployer:
|
|
|
447
447
|
composer = self._transaction_sender.new_group()
|
|
448
448
|
|
|
449
449
|
# Add create transaction
|
|
450
|
-
|
|
450
|
+
has_abi_create = isinstance(deployment.create_params, AppCreateMethodCallParams)
|
|
451
|
+
if has_abi_create:
|
|
451
452
|
composer.add_app_create_method_call(
|
|
452
453
|
AppCreateMethodCallParams(
|
|
453
454
|
**{
|
|
@@ -467,10 +468,10 @@ class AppDeployer:
|
|
|
467
468
|
}
|
|
468
469
|
)
|
|
469
470
|
)
|
|
470
|
-
create_txn_index = composer.count() - 1
|
|
471
471
|
|
|
472
472
|
# Add delete transaction
|
|
473
|
-
|
|
473
|
+
has_abi_delete = isinstance(deployment.delete_params, AppDeleteMethodCallParams)
|
|
474
|
+
if has_abi_delete:
|
|
474
475
|
delete_call_params = AppDeleteMethodCallParams(
|
|
475
476
|
**{
|
|
476
477
|
**deployment.delete_params.__dict__,
|
|
@@ -486,12 +487,15 @@ class AppDeployer:
|
|
|
486
487
|
}
|
|
487
488
|
)
|
|
488
489
|
composer.add_app_delete(delete_params)
|
|
489
|
-
delete_txn_index = composer.count() - 1
|
|
490
490
|
|
|
491
|
-
result = composer.send()
|
|
491
|
+
result = composer.send(deployment.send_params)
|
|
492
492
|
|
|
493
|
-
create_result = SendAppCreateTransactionResult[ABIReturn].from_composer_result(
|
|
494
|
-
|
|
493
|
+
create_result = SendAppCreateTransactionResult[ABIReturn].from_composer_result(
|
|
494
|
+
result, is_abi=has_abi_create, index=0
|
|
495
|
+
)
|
|
496
|
+
delete_result = SendAppTransactionResult[ABIReturn].from_composer_result(
|
|
497
|
+
result, is_abi=has_abi_delete, index=-1
|
|
498
|
+
)
|
|
495
499
|
|
|
496
500
|
app_id = int(result.confirmations[0]["application-index"]) # type: ignore[call-overload]
|
|
497
501
|
app_metadata = ApplicationMetaData(
|
|
@@ -81,7 +81,9 @@ class SendSingleTransactionResult:
|
|
|
81
81
|
"""The ABI return value if applicable"""
|
|
82
82
|
|
|
83
83
|
@classmethod
|
|
84
|
-
def from_composer_result(
|
|
84
|
+
def from_composer_result(
|
|
85
|
+
cls, result: SendAtomicTransactionComposerResults, *, is_abi: bool = False, index: int = -1
|
|
86
|
+
) -> Self:
|
|
85
87
|
# Get base parameters
|
|
86
88
|
base_params = {
|
|
87
89
|
"transaction": result.transactions[index],
|
|
@@ -104,12 +106,12 @@ class SendSingleTransactionResult:
|
|
|
104
106
|
{
|
|
105
107
|
"app_id": app_id,
|
|
106
108
|
"app_address": algosdk.logic.get_application_address(app_id),
|
|
107
|
-
"abi_return": result.returns[index] if result.returns else None, # type: ignore[dict-item]
|
|
109
|
+
"abi_return": result.returns[index] if result.returns and is_abi else None, # type: ignore[dict-item]
|
|
108
110
|
}
|
|
109
111
|
)
|
|
110
112
|
# For regular app transactions, just add abi_return
|
|
111
113
|
elif cls is SendAppTransactionResult:
|
|
112
|
-
base_params["abi_return"] = result.returns[index] if result.returns else None # type: ignore[assignment]
|
|
114
|
+
base_params["abi_return"] = result.returns[index] if result.returns and is_abi else None # type: ignore[assignment]
|
|
113
115
|
|
|
114
116
|
return cls(**base_params) # type: ignore[arg-type]
|
|
115
117
|
|
|
@@ -22,7 +22,7 @@ algokit_utils/application_specification.py,sha256=wV0H088IudMqlxsW-gsZIfJyKA4e-z
|
|
|
22
22
|
algokit_utils/applications/__init__.py,sha256=NGjhpBeExsQZOAYCT2QUFag1xuKoFiX-Ux5SR2GNzd8,452
|
|
23
23
|
algokit_utils/applications/abi.py,sha256=OjTdn4szJPPeC8XmosdDYtkIIVgQSWAnqz2DHw5OH9g,10117
|
|
24
24
|
algokit_utils/applications/app_client.py,sha256=WKedIu3CDamBW8dAAR5IBYCXkesvETkof1dwIqKHaNE,88474
|
|
25
|
-
algokit_utils/applications/app_deployer.py,sha256
|
|
25
|
+
algokit_utils/applications/app_deployer.py,sha256=xJCu7SU66OTg5misSbSF0QI8abRB-DWAwAVKd1kNcPI,30685
|
|
26
26
|
algokit_utils/applications/app_factory.py,sha256=jVAzoK1J9S-BTGHA5BLxT-cl0pWhPdf222W4fYpFihE,45352
|
|
27
27
|
algokit_utils/applications/app_manager.py,sha256=8bboIswlwBQhPIqilSBMaxd83yHjIpkloezmtgcAdZY,22301
|
|
28
28
|
algokit_utils/applications/app_spec/__init__.py,sha256=HtjAhAqHNFml9WbRKGmhJnwyJeW8AztPRO_BriQ84vs,140
|
|
@@ -65,8 +65,8 @@ algokit_utils/transactions/__init__.py,sha256=7fYF3m6DyOGzbV36MT5svo0wSkj9AIz496
|
|
|
65
65
|
algokit_utils/transactions/_algokit_core_bridge.py,sha256=Q9Mf86fo-mOVu-8i1MeA91AkwhBnEjsx-4w3uVoY5dg,2191
|
|
66
66
|
algokit_utils/transactions/transaction_composer.py,sha256=yHpL9FqYEFevh3WRIwHcBZ2ukEXPFmkzYK8nJev83i4,104959
|
|
67
67
|
algokit_utils/transactions/transaction_creator.py,sha256=cuP6Xm-fhGoCc2FNSbLiEg3iQRwW38rfdTzsqPyEcpM,29053
|
|
68
|
-
algokit_utils/transactions/transaction_sender.py,sha256=
|
|
69
|
-
algokit_utils-4.1.
|
|
70
|
-
algokit_utils-4.1.
|
|
71
|
-
algokit_utils-4.1.
|
|
72
|
-
algokit_utils-4.1.
|
|
68
|
+
algokit_utils/transactions/transaction_sender.py,sha256=Wi3ws9S-Df1JeTlaSTXmq-WS24Gsq7WGsKk1B0z23ao,50117
|
|
69
|
+
algokit_utils-4.1.0b4.dist-info/LICENSE,sha256=J5i7U1Q9Q2c7saUzlvFRmrCCFhQyXb5Juz_LO5omNUw,1076
|
|
70
|
+
algokit_utils-4.1.0b4.dist-info/METADATA,sha256=WA_h3REWZghI1qzldGwvKkBp-B5__0pyMvKCRYCtKLg,2421
|
|
71
|
+
algokit_utils-4.1.0b4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
72
|
+
algokit_utils-4.1.0b4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|