algokit-utils 3.0.0b1__py3-none-any.whl → 3.0.0b3__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.

Files changed (70) hide show
  1. algokit_utils/__init__.py +23 -183
  2. algokit_utils/_debugging.py +123 -97
  3. algokit_utils/_legacy_v2/__init__.py +177 -0
  4. algokit_utils/{_ensure_funded.py → _legacy_v2/_ensure_funded.py} +19 -18
  5. algokit_utils/{_transfer.py → _legacy_v2/_transfer.py} +24 -23
  6. algokit_utils/_legacy_v2/account.py +203 -0
  7. algokit_utils/_legacy_v2/application_client.py +1471 -0
  8. algokit_utils/_legacy_v2/application_specification.py +21 -0
  9. algokit_utils/_legacy_v2/asset.py +168 -0
  10. algokit_utils/_legacy_v2/common.py +28 -0
  11. algokit_utils/_legacy_v2/deploy.py +822 -0
  12. algokit_utils/_legacy_v2/logic_error.py +14 -0
  13. algokit_utils/{models.py → _legacy_v2/models.py} +19 -142
  14. algokit_utils/_legacy_v2/network_clients.py +140 -0
  15. algokit_utils/account.py +12 -183
  16. algokit_utils/accounts/__init__.py +2 -0
  17. algokit_utils/accounts/account_manager.py +909 -0
  18. algokit_utils/accounts/kmd_account_manager.py +159 -0
  19. algokit_utils/algorand.py +265 -0
  20. algokit_utils/application_client.py +9 -1453
  21. algokit_utils/application_specification.py +39 -197
  22. algokit_utils/applications/__init__.py +7 -0
  23. algokit_utils/applications/abi.py +276 -0
  24. algokit_utils/applications/app_client.py +2054 -0
  25. algokit_utils/applications/app_deployer.py +600 -0
  26. algokit_utils/applications/app_factory.py +826 -0
  27. algokit_utils/applications/app_manager.py +470 -0
  28. algokit_utils/applications/app_spec/__init__.py +2 -0
  29. algokit_utils/applications/app_spec/arc32.py +207 -0
  30. algokit_utils/applications/app_spec/arc56.py +1023 -0
  31. algokit_utils/applications/enums.py +40 -0
  32. algokit_utils/asset.py +32 -168
  33. algokit_utils/assets/__init__.py +1 -0
  34. algokit_utils/assets/asset_manager.py +320 -0
  35. algokit_utils/beta/_utils.py +36 -0
  36. algokit_utils/beta/account_manager.py +4 -195
  37. algokit_utils/beta/algorand_client.py +4 -314
  38. algokit_utils/beta/client_manager.py +5 -74
  39. algokit_utils/beta/composer.py +5 -712
  40. algokit_utils/clients/__init__.py +2 -0
  41. algokit_utils/clients/client_manager.py +656 -0
  42. algokit_utils/clients/dispenser_api_client.py +192 -0
  43. algokit_utils/common.py +8 -26
  44. algokit_utils/config.py +71 -18
  45. algokit_utils/deploy.py +7 -892
  46. algokit_utils/dispenser_api.py +8 -176
  47. algokit_utils/errors/__init__.py +1 -0
  48. algokit_utils/errors/logic_error.py +121 -0
  49. algokit_utils/logic_error.py +7 -80
  50. algokit_utils/models/__init__.py +8 -0
  51. algokit_utils/models/account.py +197 -0
  52. algokit_utils/models/amount.py +198 -0
  53. algokit_utils/models/application.py +61 -0
  54. algokit_utils/models/network.py +25 -0
  55. algokit_utils/models/simulate.py +11 -0
  56. algokit_utils/models/state.py +59 -0
  57. algokit_utils/models/transaction.py +100 -0
  58. algokit_utils/network_clients.py +7 -152
  59. algokit_utils/protocols/__init__.py +2 -0
  60. algokit_utils/protocols/account.py +22 -0
  61. algokit_utils/protocols/typed_clients.py +108 -0
  62. algokit_utils/transactions/__init__.py +3 -0
  63. algokit_utils/transactions/transaction_composer.py +2287 -0
  64. algokit_utils/transactions/transaction_creator.py +156 -0
  65. algokit_utils/transactions/transaction_sender.py +574 -0
  66. {algokit_utils-3.0.0b1.dist-info → algokit_utils-3.0.0b3.dist-info}/METADATA +13 -8
  67. algokit_utils-3.0.0b3.dist-info/RECORD +70 -0
  68. {algokit_utils-3.0.0b1.dist-info → algokit_utils-3.0.0b3.dist-info}/WHEEL +1 -1
  69. algokit_utils-3.0.0b1.dist-info/RECORD +0 -24
  70. {algokit_utils-3.0.0b1.dist-info → algokit_utils-3.0.0b3.dist-info}/LICENSE +0 -0
@@ -0,0 +1,108 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING, Any, Generic, Protocol, TypeVar
4
+
5
+ from algosdk.atomic_transaction_composer import TransactionSigner
6
+ from algosdk.source_map import SourceMap
7
+ from typing_extensions import Self
8
+
9
+ from algokit_utils.models import SendParams
10
+
11
+ if TYPE_CHECKING:
12
+ from algokit_utils.algorand import AlgorandClient
13
+ from algokit_utils.applications.app_client import (
14
+ AppClientBareCallCreateParams,
15
+ AppClientBareCallParams,
16
+ AppClientCompilationParams,
17
+ BaseAppClientMethodCallParams,
18
+ )
19
+ from algokit_utils.applications.app_deployer import (
20
+ ApplicationLookup,
21
+ OnSchemaBreak,
22
+ OnUpdate,
23
+ )
24
+ from algokit_utils.applications.app_factory import AppFactoryDeployResult
25
+
26
+ __all__ = [
27
+ "TypedAppClientProtocol",
28
+ "TypedAppFactoryProtocol",
29
+ ]
30
+
31
+
32
+ class TypedAppClientProtocol(Protocol):
33
+ @classmethod
34
+ def from_creator_and_name(
35
+ cls,
36
+ *,
37
+ creator_address: str,
38
+ app_name: str,
39
+ default_sender: str | None = None,
40
+ default_signer: TransactionSigner | None = None,
41
+ ignore_cache: bool | None = None,
42
+ app_lookup_cache: ApplicationLookup | None = None,
43
+ algorand: AlgorandClient,
44
+ ) -> Self: ...
45
+
46
+ @classmethod
47
+ def from_network(
48
+ cls,
49
+ *,
50
+ app_name: str | None = None,
51
+ default_sender: str | None = None,
52
+ default_signer: TransactionSigner | None = None,
53
+ approval_source_map: SourceMap | None = None,
54
+ clear_source_map: SourceMap | None = None,
55
+ algorand: AlgorandClient,
56
+ ) -> Self: ...
57
+
58
+ def __init__(
59
+ self,
60
+ *,
61
+ app_id: int,
62
+ app_name: str | None = None,
63
+ default_sender: str | None = None,
64
+ default_signer: TransactionSigner | None = None,
65
+ algorand: AlgorandClient,
66
+ approval_source_map: SourceMap | None = None,
67
+ clear_source_map: SourceMap | None = None,
68
+ ) -> None: ...
69
+
70
+
71
+ CreateParamsT = TypeVar( # noqa: PLC0105
72
+ "CreateParamsT",
73
+ bound="BaseAppClientMethodCallParams | AppClientBareCallCreateParams | None",
74
+ contravariant=True,
75
+ )
76
+ UpdateParamsT = TypeVar( # noqa: PLC0105
77
+ "UpdateParamsT",
78
+ bound="BaseAppClientMethodCallParams | AppClientBareCallParams | None",
79
+ contravariant=True,
80
+ )
81
+ DeleteParamsT = TypeVar( # noqa: PLC0105
82
+ "DeleteParamsT",
83
+ bound="BaseAppClientMethodCallParams | AppClientBareCallParams | None",
84
+ contravariant=True,
85
+ )
86
+
87
+
88
+ class TypedAppFactoryProtocol(Protocol, Generic[CreateParamsT, UpdateParamsT, DeleteParamsT]):
89
+ def __init__(
90
+ self,
91
+ algorand: AlgorandClient,
92
+ **kwargs: Any,
93
+ ) -> None: ...
94
+
95
+ def deploy(
96
+ self,
97
+ *,
98
+ on_update: OnUpdate | None = None,
99
+ on_schema_break: OnSchemaBreak | None = None,
100
+ create_params: CreateParamsT | None = None,
101
+ update_params: UpdateParamsT | None = None,
102
+ delete_params: DeleteParamsT | None = None,
103
+ existing_deployments: ApplicationLookup | None = None,
104
+ ignore_cache: bool = False,
105
+ app_name: str | None = None,
106
+ send_params: SendParams | None = None,
107
+ compilation_params: AppClientCompilationParams | None = None,
108
+ ) -> tuple[TypedAppClientProtocol, AppFactoryDeployResult]: ...
@@ -0,0 +1,3 @@
1
+ from algokit_utils.transactions.transaction_composer import * # noqa: F403
2
+ from algokit_utils.transactions.transaction_creator import * # noqa: F403
3
+ from algokit_utils.transactions.transaction_sender import * # noqa: F403