-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathapplication_specification.py
48 lines (41 loc) · 1.38 KB
/
application_specification.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import warnings
from typing_extensions import deprecated
warnings.warn(
"""The legacy v2 application_specification module is deprecated and will be removed in a future version.
Use `from algokit_utils.applications.app_spec.arc32 import ...` to access Arc32 app spec instead.
By default, the ARC52Contract is a recommended app spec to use, serving as a replacement
for legacy 'ApplicationSpecification' class.
To convert legacy app specs to ARC52, use `arc32_to_arc52` function from algokit_utils.applications.utils.
""",
DeprecationWarning,
stacklevel=2,
)
from algokit_utils.applications.app_spec.arc32 import ( # noqa: E402 # noqa: E402
AppSpecStateDict,
Arc32Contract,
CallConfig,
DefaultArgumentDict,
DefaultArgumentType,
MethodConfigDict,
MethodHints,
OnCompleteActionName,
)
@deprecated(
"Use `Arc32Contract` from algokit_utils.applications instead. Example:\n"
"```python\n"
"from algokit_utils.applications import Arc32Contract\n"
"app_spec = Arc32Contract.from_json(app_spec_json)\n"
"```"
)
class ApplicationSpecification(Arc32Contract):
"""Deprecated class for ARC-0032 application specification"""
__all__ = [
"AppSpecStateDict",
"ApplicationSpecification",
"CallConfig",
"DefaultArgumentDict",
"DefaultArgumentType",
"MethodConfigDict",
"MethodHints",
"OnCompleteActionName",
]