algokit-utils 1.3.0b1__py3-none-any.whl → 1.3.1b1__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/__init__.py +3 -6
- algokit_utils/application_client.py +33 -31
- algokit_utils/models.py +70 -26
- {algokit_utils-1.3.0b1.dist-info → algokit_utils-1.3.1b1.dist-info}/METADATA +2 -1
- {algokit_utils-1.3.0b1.dist-info → algokit_utils-1.3.1b1.dist-info}/RECORD +7 -7
- {algokit_utils-1.3.0b1.dist-info → algokit_utils-1.3.1b1.dist-info}/LICENSE +0 -0
- {algokit_utils-1.3.0b1.dist-info → algokit_utils-1.3.1b1.dist-info}/WHEEL +0 -0
algokit_utils/__init__.py
CHANGED
|
@@ -63,14 +63,14 @@ from algokit_utils.models import (
|
|
|
63
63
|
ABIMethod,
|
|
64
64
|
ABITransactionResponse,
|
|
65
65
|
Account,
|
|
66
|
-
CommonCallParameters,
|
|
67
|
-
CommonCallParametersDict,
|
|
66
|
+
CommonCallParameters, # noqa: ignore[F401]
|
|
67
|
+
CommonCallParametersDict, # noqa: ignore[F401]
|
|
68
68
|
CreateCallParameters,
|
|
69
69
|
CreateCallParametersDict,
|
|
70
70
|
CreateTransactionParameters,
|
|
71
71
|
OnCompleteCallParameters,
|
|
72
72
|
OnCompleteCallParametersDict,
|
|
73
|
-
RawTransactionParameters,
|
|
73
|
+
RawTransactionParameters, # noqa: ignore[F401]
|
|
74
74
|
TransactionParameters,
|
|
75
75
|
TransactionResponse,
|
|
76
76
|
)
|
|
@@ -111,8 +111,6 @@ __all__ = [
|
|
|
111
111
|
"ABICreateCallArgs",
|
|
112
112
|
"ABICreateCallArgsDict",
|
|
113
113
|
"ABIMethod",
|
|
114
|
-
"CommonCallParameters",
|
|
115
|
-
"CommonCallParametersDict",
|
|
116
114
|
"CreateCallParameters",
|
|
117
115
|
"CreateCallParametersDict",
|
|
118
116
|
"CreateTransactionParameters",
|
|
@@ -122,7 +120,6 @@ __all__ = [
|
|
|
122
120
|
"DeployCreateCallArgsDict",
|
|
123
121
|
"OnCompleteCallParameters",
|
|
124
122
|
"OnCompleteCallParametersDict",
|
|
125
|
-
"RawTransactionParameters",
|
|
126
123
|
"TransactionParameters",
|
|
127
124
|
"ApplicationClient",
|
|
128
125
|
"DeployResponse",
|
|
@@ -40,12 +40,12 @@ from algokit_utils.models import (
|
|
|
40
40
|
ABIMethod,
|
|
41
41
|
ABITransactionResponse,
|
|
42
42
|
Account,
|
|
43
|
-
CommonCallParameters,
|
|
44
|
-
CommonCallParametersDict,
|
|
45
43
|
CreateCallParameters,
|
|
46
44
|
CreateCallParametersDict,
|
|
47
45
|
OnCompleteCallParameters,
|
|
48
46
|
OnCompleteCallParametersDict,
|
|
47
|
+
TransactionParameters,
|
|
48
|
+
TransactionParametersDict,
|
|
49
49
|
TransactionResponse,
|
|
50
50
|
)
|
|
51
51
|
|
|
@@ -372,7 +372,7 @@ class ApplicationClient:
|
|
|
372
372
|
) -> None:
|
|
373
373
|
"""Adds a signed transaction with application id == 0 and the schema and source of client's app_spec to atc"""
|
|
374
374
|
approval_program, clear_program = self._check_is_compiled()
|
|
375
|
-
transaction_parameters =
|
|
375
|
+
transaction_parameters = _convert_transaction_parameters(transaction_parameters)
|
|
376
376
|
|
|
377
377
|
extra_pages = transaction_parameters.extra_pages or num_extra_program_pages(
|
|
378
378
|
approval_program.raw_binary, clear_program.raw_binary
|
|
@@ -444,7 +444,7 @@ class ApplicationClient:
|
|
|
444
444
|
atc: AtomicTransactionComposer,
|
|
445
445
|
/,
|
|
446
446
|
call_abi_method: ABIMethod | bool | None = None,
|
|
447
|
-
transaction_parameters:
|
|
447
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
448
448
|
**abi_kwargs: ABIArgType,
|
|
449
449
|
) -> None:
|
|
450
450
|
"""Adds a signed transaction with on_complete=UpdateApplication to atc"""
|
|
@@ -464,7 +464,7 @@ class ApplicationClient:
|
|
|
464
464
|
def update(
|
|
465
465
|
self,
|
|
466
466
|
call_abi_method: ABIMethod | Literal[True],
|
|
467
|
-
transaction_parameters:
|
|
467
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
468
468
|
**abi_kwargs: ABIArgType,
|
|
469
469
|
) -> ABITransactionResponse:
|
|
470
470
|
...
|
|
@@ -473,7 +473,7 @@ class ApplicationClient:
|
|
|
473
473
|
def update(
|
|
474
474
|
self,
|
|
475
475
|
call_abi_method: Literal[False],
|
|
476
|
-
transaction_parameters:
|
|
476
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
477
477
|
) -> TransactionResponse:
|
|
478
478
|
...
|
|
479
479
|
|
|
@@ -481,7 +481,7 @@ class ApplicationClient:
|
|
|
481
481
|
def update(
|
|
482
482
|
self,
|
|
483
483
|
call_abi_method: ABIMethod | bool | None = ...,
|
|
484
|
-
transaction_parameters:
|
|
484
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
485
485
|
**abi_kwargs: ABIArgType,
|
|
486
486
|
) -> TransactionResponse | ABITransactionResponse:
|
|
487
487
|
...
|
|
@@ -489,7 +489,7 @@ class ApplicationClient:
|
|
|
489
489
|
def update(
|
|
490
490
|
self,
|
|
491
491
|
call_abi_method: ABIMethod | bool | None = None,
|
|
492
|
-
transaction_parameters:
|
|
492
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
493
493
|
**abi_kwargs: ABIArgType,
|
|
494
494
|
) -> TransactionResponse | ABITransactionResponse:
|
|
495
495
|
"""Submits a signed transaction with on_complete=UpdateApplication"""
|
|
@@ -508,7 +508,7 @@ class ApplicationClient:
|
|
|
508
508
|
atc: AtomicTransactionComposer,
|
|
509
509
|
/,
|
|
510
510
|
call_abi_method: ABIMethod | bool | None = None,
|
|
511
|
-
transaction_parameters:
|
|
511
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
512
512
|
**abi_kwargs: ABIArgType,
|
|
513
513
|
) -> None:
|
|
514
514
|
"""Adds a signed transaction with on_complete=DeleteApplication to atc"""
|
|
@@ -525,7 +525,7 @@ class ApplicationClient:
|
|
|
525
525
|
def delete(
|
|
526
526
|
self,
|
|
527
527
|
call_abi_method: ABIMethod | Literal[True],
|
|
528
|
-
transaction_parameters:
|
|
528
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
529
529
|
**abi_kwargs: ABIArgType,
|
|
530
530
|
) -> ABITransactionResponse:
|
|
531
531
|
...
|
|
@@ -534,7 +534,7 @@ class ApplicationClient:
|
|
|
534
534
|
def delete(
|
|
535
535
|
self,
|
|
536
536
|
call_abi_method: Literal[False],
|
|
537
|
-
transaction_parameters:
|
|
537
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
538
538
|
) -> TransactionResponse:
|
|
539
539
|
...
|
|
540
540
|
|
|
@@ -542,7 +542,7 @@ class ApplicationClient:
|
|
|
542
542
|
def delete(
|
|
543
543
|
self,
|
|
544
544
|
call_abi_method: ABIMethod | bool | None = ...,
|
|
545
|
-
transaction_parameters:
|
|
545
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
546
546
|
**abi_kwargs: ABIArgType,
|
|
547
547
|
) -> TransactionResponse | ABITransactionResponse:
|
|
548
548
|
...
|
|
@@ -550,7 +550,7 @@ class ApplicationClient:
|
|
|
550
550
|
def delete(
|
|
551
551
|
self,
|
|
552
552
|
call_abi_method: ABIMethod | bool | None = None,
|
|
553
|
-
transaction_parameters:
|
|
553
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
554
554
|
**abi_kwargs: ABIArgType,
|
|
555
555
|
) -> TransactionResponse | ABITransactionResponse:
|
|
556
556
|
"""Submits a signed transaction with on_complete=DeleteApplication"""
|
|
@@ -573,7 +573,7 @@ class ApplicationClient:
|
|
|
573
573
|
**abi_kwargs: ABIArgType,
|
|
574
574
|
) -> None:
|
|
575
575
|
"""Adds a signed transaction with specified parameters to atc"""
|
|
576
|
-
_parameters =
|
|
576
|
+
_parameters = _convert_transaction_parameters(transaction_parameters)
|
|
577
577
|
self.add_method_call(
|
|
578
578
|
atc,
|
|
579
579
|
abi_method=call_abi_method,
|
|
@@ -616,7 +616,7 @@ class ApplicationClient:
|
|
|
616
616
|
) -> TransactionResponse | ABITransactionResponse:
|
|
617
617
|
"""Submits a signed transaction with specified parameters"""
|
|
618
618
|
atc = AtomicTransactionComposer()
|
|
619
|
-
_parameters =
|
|
619
|
+
_parameters = _convert_transaction_parameters(transaction_parameters)
|
|
620
620
|
self.compose_call(
|
|
621
621
|
atc,
|
|
622
622
|
call_abi_method=call_abi_method,
|
|
@@ -639,7 +639,7 @@ class ApplicationClient:
|
|
|
639
639
|
atc: AtomicTransactionComposer,
|
|
640
640
|
/,
|
|
641
641
|
call_abi_method: ABIMethod | bool | None = None,
|
|
642
|
-
transaction_parameters:
|
|
642
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
643
643
|
**abi_kwargs: ABIArgType,
|
|
644
644
|
) -> None:
|
|
645
645
|
"""Adds a signed transaction with on_complete=OptIn to atc"""
|
|
@@ -655,7 +655,7 @@ class ApplicationClient:
|
|
|
655
655
|
def opt_in(
|
|
656
656
|
self,
|
|
657
657
|
call_abi_method: ABIMethod | Literal[True] = ...,
|
|
658
|
-
transaction_parameters:
|
|
658
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
659
659
|
**abi_kwargs: ABIArgType,
|
|
660
660
|
) -> ABITransactionResponse:
|
|
661
661
|
...
|
|
@@ -664,7 +664,7 @@ class ApplicationClient:
|
|
|
664
664
|
def opt_in(
|
|
665
665
|
self,
|
|
666
666
|
call_abi_method: Literal[False] = ...,
|
|
667
|
-
transaction_parameters:
|
|
667
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
668
668
|
) -> TransactionResponse:
|
|
669
669
|
...
|
|
670
670
|
|
|
@@ -672,7 +672,7 @@ class ApplicationClient:
|
|
|
672
672
|
def opt_in(
|
|
673
673
|
self,
|
|
674
674
|
call_abi_method: ABIMethod | bool | None = ...,
|
|
675
|
-
transaction_parameters:
|
|
675
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
676
676
|
**abi_kwargs: ABIArgType,
|
|
677
677
|
) -> TransactionResponse | ABITransactionResponse:
|
|
678
678
|
...
|
|
@@ -680,7 +680,7 @@ class ApplicationClient:
|
|
|
680
680
|
def opt_in(
|
|
681
681
|
self,
|
|
682
682
|
call_abi_method: ABIMethod | bool | None = None,
|
|
683
|
-
transaction_parameters:
|
|
683
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
684
684
|
**abi_kwargs: ABIArgType,
|
|
685
685
|
) -> TransactionResponse | ABITransactionResponse:
|
|
686
686
|
"""Submits a signed transaction with on_complete=OptIn"""
|
|
@@ -698,7 +698,7 @@ class ApplicationClient:
|
|
|
698
698
|
atc: AtomicTransactionComposer,
|
|
699
699
|
/,
|
|
700
700
|
call_abi_method: ABIMethod | bool | None = None,
|
|
701
|
-
transaction_parameters:
|
|
701
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
702
702
|
**abi_kwargs: ABIArgType,
|
|
703
703
|
) -> None:
|
|
704
704
|
"""Adds a signed transaction with on_complete=CloseOut to ac"""
|
|
@@ -714,7 +714,7 @@ class ApplicationClient:
|
|
|
714
714
|
def close_out(
|
|
715
715
|
self,
|
|
716
716
|
call_abi_method: ABIMethod | Literal[True],
|
|
717
|
-
transaction_parameters:
|
|
717
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
718
718
|
**abi_kwargs: ABIArgType,
|
|
719
719
|
) -> ABITransactionResponse:
|
|
720
720
|
...
|
|
@@ -723,7 +723,7 @@ class ApplicationClient:
|
|
|
723
723
|
def close_out(
|
|
724
724
|
self,
|
|
725
725
|
call_abi_method: Literal[False],
|
|
726
|
-
transaction_parameters:
|
|
726
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
727
727
|
) -> TransactionResponse:
|
|
728
728
|
...
|
|
729
729
|
|
|
@@ -731,7 +731,7 @@ class ApplicationClient:
|
|
|
731
731
|
def close_out(
|
|
732
732
|
self,
|
|
733
733
|
call_abi_method: ABIMethod | bool | None = ...,
|
|
734
|
-
transaction_parameters:
|
|
734
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = ...,
|
|
735
735
|
**abi_kwargs: ABIArgType,
|
|
736
736
|
) -> TransactionResponse | ABITransactionResponse:
|
|
737
737
|
...
|
|
@@ -739,7 +739,7 @@ class ApplicationClient:
|
|
|
739
739
|
def close_out(
|
|
740
740
|
self,
|
|
741
741
|
call_abi_method: ABIMethod | bool | None = None,
|
|
742
|
-
transaction_parameters:
|
|
742
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
743
743
|
**abi_kwargs: ABIArgType,
|
|
744
744
|
) -> TransactionResponse | ABITransactionResponse:
|
|
745
745
|
"""Submits a signed transaction with on_complete=CloseOut"""
|
|
@@ -756,7 +756,7 @@ class ApplicationClient:
|
|
|
756
756
|
self,
|
|
757
757
|
atc: AtomicTransactionComposer,
|
|
758
758
|
/,
|
|
759
|
-
transaction_parameters:
|
|
759
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
760
760
|
app_args: list[bytes] | None = None,
|
|
761
761
|
) -> None:
|
|
762
762
|
"""Adds a signed transaction with on_complete=ClearState to atc"""
|
|
@@ -769,7 +769,7 @@ class ApplicationClient:
|
|
|
769
769
|
|
|
770
770
|
def clear_state(
|
|
771
771
|
self,
|
|
772
|
-
transaction_parameters:
|
|
772
|
+
transaction_parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
773
773
|
app_args: list[bytes] | None = None,
|
|
774
774
|
) -> TransactionResponse:
|
|
775
775
|
"""Submits a signed transaction with on_complete=ClearState"""
|
|
@@ -999,7 +999,7 @@ class ApplicationClient:
|
|
|
999
999
|
*,
|
|
1000
1000
|
abi_args: ABIArgsDict | None = None,
|
|
1001
1001
|
app_id: int | None = None,
|
|
1002
|
-
parameters:
|
|
1002
|
+
parameters: TransactionParameters | TransactionParametersDict | None = None,
|
|
1003
1003
|
on_complete: transaction.OnComplete = transaction.OnComplete.NoOpOC,
|
|
1004
1004
|
local_schema: transaction.StateSchema | None = None,
|
|
1005
1005
|
global_schema: transaction.StateSchema | None = None,
|
|
@@ -1013,7 +1013,7 @@ class ApplicationClient:
|
|
|
1013
1013
|
if app_id is None:
|
|
1014
1014
|
self._load_reference_and_check_app_id()
|
|
1015
1015
|
app_id = self.app_id
|
|
1016
|
-
parameters =
|
|
1016
|
+
parameters = _convert_transaction_parameters(parameters)
|
|
1017
1017
|
method = self._resolve_method(abi_method, abi_args, on_complete, call_config)
|
|
1018
1018
|
sp = parameters.suggested_params or self.suggested_params or self.algod_client.suggested_params()
|
|
1019
1019
|
signer, sender = self.resolve_signer_sender(parameters.signer, parameters.sender)
|
|
@@ -1283,8 +1283,10 @@ def execute_atc_with_logic_error(
|
|
|
1283
1283
|
raise ex
|
|
1284
1284
|
|
|
1285
1285
|
|
|
1286
|
-
def
|
|
1287
|
-
|
|
1286
|
+
def _convert_transaction_parameters(
|
|
1287
|
+
args: TransactionParameters | TransactionParametersDict | None,
|
|
1288
|
+
) -> CreateCallParameters:
|
|
1289
|
+
_args = args.__dict__ if isinstance(args, TransactionParameters) else (args or {})
|
|
1288
1290
|
return CreateCallParameters(**_args)
|
|
1289
1291
|
|
|
1290
1292
|
|
algokit_utils/models.py
CHANGED
|
@@ -12,6 +12,21 @@ from algosdk.atomic_transaction_composer import (
|
|
|
12
12
|
TransactionSigner,
|
|
13
13
|
)
|
|
14
14
|
from algosdk.encoding import decode_address
|
|
15
|
+
from deprecated import deprecated
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"ABIArgsDict",
|
|
19
|
+
"ABIMethod",
|
|
20
|
+
"ABITransactionResponse",
|
|
21
|
+
"Account",
|
|
22
|
+
"CreateCallParameters",
|
|
23
|
+
"CreateCallParametersDict",
|
|
24
|
+
"CreateTransactionParameters",
|
|
25
|
+
"OnCompleteCallParameters",
|
|
26
|
+
"OnCompleteCallParametersDict",
|
|
27
|
+
"TransactionParameters",
|
|
28
|
+
"TransactionResponse",
|
|
29
|
+
]
|
|
15
30
|
|
|
16
31
|
ReturnType = TypeVar("ReturnType")
|
|
17
32
|
|
|
@@ -115,75 +130,104 @@ ABIMethod: TypeAlias = ABIReturnSubroutine | Method | str
|
|
|
115
130
|
|
|
116
131
|
@dataclasses.dataclass(kw_only=True)
|
|
117
132
|
class TransactionParameters:
|
|
118
|
-
"""
|
|
133
|
+
"""Additional parameters that can be included in a transaction"""
|
|
119
134
|
|
|
120
135
|
signer: TransactionSigner | None = None
|
|
136
|
+
"""Signer to use when signing this transaction"""
|
|
121
137
|
sender: str | None = None
|
|
138
|
+
"""Sender of this transaction"""
|
|
122
139
|
suggested_params: transaction.SuggestedParams | None = None
|
|
140
|
+
"""SuggestedParams to use for this transaction"""
|
|
123
141
|
note: bytes | str | None = None
|
|
142
|
+
"""Note for this transaction"""
|
|
124
143
|
lease: bytes | str | None = None
|
|
144
|
+
"""Lease value for this transaction"""
|
|
125
145
|
boxes: Sequence[tuple[int, bytes | bytearray | str | int]] | None = None
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
@dataclasses.dataclass(kw_only=True)
|
|
129
|
-
class CreateTransactionParameters(TransactionParameters):
|
|
130
|
-
"""Transaction parameters that can be used on ABI and non-ABI create calls"""
|
|
131
|
-
|
|
132
|
-
extra_pages: int | None = None
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
@dataclasses.dataclass(kw_only=True)
|
|
136
|
-
class RawTransactionParameters(TransactionParameters):
|
|
137
|
-
"""Transaction parameters that can be used on non-ABI calls"""
|
|
138
|
-
|
|
146
|
+
"""Box references to include in transaction. A sequence of (app id, box key) tuples"""
|
|
139
147
|
accounts: list[str] | None = None
|
|
148
|
+
"""Accounts to include in transaction"""
|
|
140
149
|
foreign_apps: list[int] | None = None
|
|
150
|
+
"""List of foreign apps (by app id) to include in transaction"""
|
|
141
151
|
foreign_assets: list[int] | None = None
|
|
152
|
+
"""List of foreign assets (by asset id) to include in transaction"""
|
|
153
|
+
rekey_to: str | None = None
|
|
154
|
+
"""Address to rekey to"""
|
|
142
155
|
|
|
143
156
|
|
|
157
|
+
# CreateTransactionParameters is used by algokit-client-generator clients
|
|
144
158
|
@dataclasses.dataclass(kw_only=True)
|
|
145
|
-
class
|
|
146
|
-
"""
|
|
159
|
+
class CreateTransactionParameters(TransactionParameters):
|
|
160
|
+
"""Additional parameters that can be included in a transaction when calling a create method"""
|
|
147
161
|
|
|
148
|
-
|
|
162
|
+
extra_pages: int | None = None
|
|
149
163
|
|
|
150
164
|
|
|
151
165
|
@dataclasses.dataclass(kw_only=True)
|
|
152
|
-
class OnCompleteCallParameters(
|
|
153
|
-
"""
|
|
166
|
+
class OnCompleteCallParameters(TransactionParameters):
|
|
167
|
+
"""Additional parameters that can be included in a transaction when using the
|
|
168
|
+
ApplicationClient.call/compose_call methods"""
|
|
154
169
|
|
|
155
170
|
on_complete: transaction.OnComplete | None = None
|
|
156
171
|
|
|
157
172
|
|
|
158
173
|
@dataclasses.dataclass(kw_only=True)
|
|
159
174
|
class CreateCallParameters(OnCompleteCallParameters):
|
|
160
|
-
"""
|
|
175
|
+
"""Additional parameters that can be included in a transaction when using the
|
|
176
|
+
ApplicationClient.create/compose_create methods"""
|
|
161
177
|
|
|
162
178
|
extra_pages: int | None = None
|
|
163
179
|
|
|
164
180
|
|
|
165
|
-
class
|
|
166
|
-
"""
|
|
181
|
+
class TransactionParametersDict(TypedDict, total=False):
|
|
182
|
+
"""Additional parameters that can be included in a transaction"""
|
|
167
183
|
|
|
168
184
|
signer: TransactionSigner
|
|
185
|
+
"""Signer to use when signing this transaction"""
|
|
169
186
|
sender: str
|
|
187
|
+
"""Sender of this transaction"""
|
|
170
188
|
suggested_params: transaction.SuggestedParams
|
|
189
|
+
"""SuggestedParams to use for this transaction"""
|
|
171
190
|
note: bytes | str
|
|
191
|
+
"""Note for this transaction"""
|
|
172
192
|
lease: bytes | str
|
|
193
|
+
"""Lease value for this transaction"""
|
|
194
|
+
boxes: Sequence[tuple[int, bytes | bytearray | str | int]]
|
|
195
|
+
"""Box references to include in transaction. A sequence of (app id, box key) tuples"""
|
|
173
196
|
accounts: list[str]
|
|
197
|
+
"""Accounts to include in transaction"""
|
|
174
198
|
foreign_apps: list[int]
|
|
199
|
+
"""List of foreign apps (by app id) to include in transaction"""
|
|
175
200
|
foreign_assets: list[int]
|
|
176
|
-
|
|
201
|
+
"""List of foreign assets (by asset id) to include in transaction"""
|
|
177
202
|
rekey_to: str
|
|
203
|
+
"""Address to rekey to"""
|
|
178
204
|
|
|
179
205
|
|
|
180
|
-
class OnCompleteCallParametersDict(TypedDict,
|
|
181
|
-
"""
|
|
206
|
+
class OnCompleteCallParametersDict(TypedDict, TransactionParametersDict, total=False):
|
|
207
|
+
"""Additional parameters that can be included in a transaction when using the
|
|
208
|
+
ApplicationClient.call/compose_call methods"""
|
|
182
209
|
|
|
183
210
|
on_complete: transaction.OnComplete
|
|
184
211
|
|
|
185
212
|
|
|
186
213
|
class CreateCallParametersDict(TypedDict, OnCompleteCallParametersDict, total=False):
|
|
187
|
-
"""
|
|
214
|
+
"""Additional parameters that can be included in a transaction when using the
|
|
215
|
+
ApplicationClient.create/compose_create methods"""
|
|
188
216
|
|
|
189
217
|
extra_pages: int
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
# Pre 1.3.1 backwards compatibility
|
|
221
|
+
@deprecated(reason="Use TransactionParameters instead", version="1.3.1")
|
|
222
|
+
class RawTransactionParameters(TransactionParameters):
|
|
223
|
+
"""Deprecated, use TransactionParameters instead"""
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
@deprecated(reason="Use TransactionParameters instead", version="1.3.1")
|
|
227
|
+
class CommonCallParameters(TransactionParameters):
|
|
228
|
+
"""Deprecated, use TransactionParameters instead"""
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
@deprecated(reason="Use TransactionParametersDict instead", version="1.3.1")
|
|
232
|
+
class CommonCallParametersDict(TransactionParametersDict):
|
|
233
|
+
"""Deprecated, use TransactionParametersDict instead"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: algokit-utils
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1b1
|
|
4
4
|
Summary: Utilities for Algorand development for use by AlgoKit
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Algorand Foundation
|
|
@@ -10,6 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Requires-Dist: deprecated (>=1.2.14,<2.0.0)
|
|
13
14
|
Requires-Dist: py-algorand-sdk (>=2.2.0,<3.0.0)
|
|
14
15
|
Description-Content-Type: text/markdown
|
|
15
16
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
algokit_utils/__init__.py,sha256=
|
|
1
|
+
algokit_utils/__init__.py,sha256=8_zT0ryHuEi7Vn51LRjNPCnq6wXL6er5x_tvGPg8ZLo,4133
|
|
2
2
|
algokit_utils/_ensure_funded.py,sha256=DjwGnCC_6USLQV5wIMJZRVQFlQ1uLrGDMxRF471atsQ,4410
|
|
3
3
|
algokit_utils/_simulate_315_compat.py,sha256=9qCsNnKa1FXYfCccMFiE0mGEcZJiBuPmUy7ZRvvUSqU,2841
|
|
4
4
|
algokit_utils/_transfer.py,sha256=K8TMoaFcZE74xZ1rhp1De0Ri4mg8vs8pu-iJLOa5WoE,3569
|
|
5
5
|
algokit_utils/account.py,sha256=UIuOQZe28pQxjEP9TzhtYlOU20tUdzzS-nIIZM9Bp6Y,7364
|
|
6
|
-
algokit_utils/application_client.py,sha256=
|
|
6
|
+
algokit_utils/application_client.py,sha256=4_NM-RJYMCRCS4_4xFeG68yYvgTJRC1_y9mSCgYHSR4,56581
|
|
7
7
|
algokit_utils/application_specification.py,sha256=XusOe7VrGPun2UoNspC9Ei202NzPkxRNx5USXiABuXc,7466
|
|
8
8
|
algokit_utils/deploy.py,sha256=sY6u0T39DuF6oLpal0eJAc76EmjPWdoCPk2OSKGccnM,34650
|
|
9
9
|
algokit_utils/logic_error.py,sha256=8O_4rJ1t57JEG81ucRNih2ojc1-EOm2fVxW6m-1ZXI8,2550
|
|
10
|
-
algokit_utils/models.py,sha256=
|
|
10
|
+
algokit_utils/models.py,sha256=KynZnM2YbOyTgr2NCT8CA-cYrO0eiyK6u48eeAzj82I,8246
|
|
11
11
|
algokit_utils/network_clients.py,sha256=KmuSHG2kSdJfo9W4pIB_4RjnBL2yMQNGlF54lxXTnsQ,5267
|
|
12
12
|
algokit_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
algokit_utils-1.3.
|
|
14
|
-
algokit_utils-1.3.
|
|
15
|
-
algokit_utils-1.3.
|
|
16
|
-
algokit_utils-1.3.
|
|
13
|
+
algokit_utils-1.3.1b1.dist-info/LICENSE,sha256=J5i7U1Q9Q2c7saUzlvFRmrCCFhQyXb5Juz_LO5omNUw,1076
|
|
14
|
+
algokit_utils-1.3.1b1.dist-info/METADATA,sha256=qJ1Che639w5ftvOOakseRd2P8UxuKfCSGkLdpva6RlE,2116
|
|
15
|
+
algokit_utils-1.3.1b1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
16
|
+
algokit_utils-1.3.1b1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|