algorand-python-testing 0.0.0b1__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.
Files changed (52) hide show
  1. algopy/__init__.py +58 -0
  2. algopy/arc4.py +1 -0
  3. algopy/gtxn.py +1 -0
  4. algopy/itxn.py +1 -0
  5. algopy/op.py +1 -0
  6. algopy/py.typed +0 -0
  7. algopy_testing/__init__.py +55 -0
  8. algopy_testing/arc4.py +1533 -0
  9. algopy_testing/constants.py +22 -0
  10. algopy_testing/context.py +1194 -0
  11. algopy_testing/decorators/__init__.py +0 -0
  12. algopy_testing/decorators/abimethod.py +204 -0
  13. algopy_testing/decorators/baremethod.py +83 -0
  14. algopy_testing/decorators/subroutine.py +9 -0
  15. algopy_testing/enums.py +42 -0
  16. algopy_testing/gtxn.py +261 -0
  17. algopy_testing/itxn.py +665 -0
  18. algopy_testing/models/__init__.py +31 -0
  19. algopy_testing/models/account.py +128 -0
  20. algopy_testing/models/application.py +72 -0
  21. algopy_testing/models/asset.py +109 -0
  22. algopy_testing/models/block.py +34 -0
  23. algopy_testing/models/box.py +158 -0
  24. algopy_testing/models/contract.py +82 -0
  25. algopy_testing/models/gitxn.py +42 -0
  26. algopy_testing/models/global_values.py +72 -0
  27. algopy_testing/models/gtxn.py +56 -0
  28. algopy_testing/models/itxn.py +85 -0
  29. algopy_testing/models/logicsig.py +44 -0
  30. algopy_testing/models/template_variable.py +23 -0
  31. algopy_testing/models/transactions.py +158 -0
  32. algopy_testing/models/txn.py +113 -0
  33. algopy_testing/models/unsigned_builtins.py +36 -0
  34. algopy_testing/op.py +1098 -0
  35. algopy_testing/primitives/__init__.py +6 -0
  36. algopy_testing/primitives/biguint.py +148 -0
  37. algopy_testing/primitives/bytes.py +174 -0
  38. algopy_testing/primitives/string.py +68 -0
  39. algopy_testing/primitives/uint64.py +213 -0
  40. algopy_testing/protocols.py +18 -0
  41. algopy_testing/py.typed +0 -0
  42. algopy_testing/state/__init__.py +4 -0
  43. algopy_testing/state/global_state.py +73 -0
  44. algopy_testing/state/local_state.py +54 -0
  45. algopy_testing/utilities/__init__.py +3 -0
  46. algopy_testing/utilities/budget.py +23 -0
  47. algopy_testing/utilities/log.py +55 -0
  48. algopy_testing/utils.py +249 -0
  49. algorand_python_testing-0.0.0b1.dist-info/METADATA +81 -0
  50. algorand_python_testing-0.0.0b1.dist-info/RECORD +52 -0
  51. algorand_python_testing-0.0.0b1.dist-info/WHEEL +4 -0
  52. algorand_python_testing-0.0.0b1.dist-info/licenses/LICENSE +14 -0
algopy/__init__.py ADDED
@@ -0,0 +1,58 @@
1
+ from algopy_testing.decorators.subroutine import subroutine
2
+ from algopy_testing.enums import OnCompleteAction, TransactionType
3
+ from algopy_testing.models import (
4
+ Account,
5
+ Application,
6
+ ARC4Contract,
7
+ Asset,
8
+ Contract,
9
+ Global,
10
+ GTxn,
11
+ ITxn,
12
+ LogicSig,
13
+ TemplateVar,
14
+ Txn,
15
+ logicsig,
16
+ urange,
17
+ )
18
+ from algopy_testing.primitives import BigUInt, Bytes, String, UInt64
19
+ from algopy_testing.protocols import BytesBacked
20
+ from algopy_testing.state import GlobalState, LocalState
21
+ from algopy_testing.utilities import OpUpFeeSource, ensure_budget, log
22
+
23
+ from . import arc4, gtxn, itxn, op
24
+
25
+ __all__ = [
26
+ "Account",
27
+ "Application",
28
+ "ARC4Contract",
29
+ "Asset",
30
+ "BigUInt",
31
+ "Bytes",
32
+ "BytesBacked",
33
+ "Contract",
34
+ "Global",
35
+ "GlobalState",
36
+ "GTxn",
37
+ "ITxn",
38
+ "LocalState",
39
+ "LogicSig",
40
+ "OnCompleteAction",
41
+ "OpUpFeeSource",
42
+ "StateTotals",
43
+ "String",
44
+ "TemplateVar",
45
+ "TransactionType",
46
+ "Txn",
47
+ "UInt64",
48
+ "arc4",
49
+ "ensure_budget",
50
+ "gtxn",
51
+ "itxn",
52
+ "log",
53
+ "logicsig",
54
+ "op",
55
+ "subroutine",
56
+ "uenumerate",
57
+ "urange",
58
+ ]
algopy/arc4.py ADDED
@@ -0,0 +1 @@
1
+ from algopy_testing.arc4 import * # noqa: F403
algopy/gtxn.py ADDED
@@ -0,0 +1 @@
1
+ from algopy_testing.gtxn import * # noqa: F403
algopy/itxn.py ADDED
@@ -0,0 +1 @@
1
+ from algopy_testing.itxn import * # noqa: F403
algopy/op.py ADDED
@@ -0,0 +1 @@
1
+ from algopy_testing.op import * # noqa: F403
algopy/py.typed ADDED
File without changes
@@ -0,0 +1,55 @@
1
+ from algopy_testing import arc4, gtxn, itxn, op
2
+ from algopy_testing.context import AlgopyTestContext, algopy_testing_context, get_test_context
3
+ from algopy_testing.decorators.subroutine import subroutine
4
+ from algopy_testing.enums import OnCompleteAction, TransactionType
5
+ from algopy_testing.models import (
6
+ Account,
7
+ Application,
8
+ ARC4Contract,
9
+ Asset,
10
+ Contract,
11
+ Global,
12
+ GTxn,
13
+ ITxn,
14
+ LogicSig,
15
+ StateTotals,
16
+ TemplateVar,
17
+ logicsig,
18
+ uenumerate,
19
+ urange,
20
+ )
21
+ from algopy_testing.primitives import BigUInt, Bytes, String, UInt64
22
+ from algopy_testing.state import GlobalState, LocalState
23
+
24
+ __all__ = [
25
+ "ARC4Contract",
26
+ "Account",
27
+ "AlgopyTestContext",
28
+ "Application",
29
+ "Asset",
30
+ "BigUInt",
31
+ "Bytes",
32
+ "Contract",
33
+ "Global",
34
+ "GlobalState",
35
+ "GTxn",
36
+ "ITxn",
37
+ "LocalState",
38
+ "LogicSig",
39
+ "OnCompleteAction",
40
+ "StateTotals",
41
+ "String",
42
+ "TemplateVar",
43
+ "TransactionType",
44
+ "UInt64",
45
+ "algopy_testing_context",
46
+ "arc4",
47
+ "get_test_context",
48
+ "gtxn",
49
+ "itxn",
50
+ "logicsig",
51
+ "op",
52
+ "subroutine",
53
+ "uenumerate",
54
+ "urange",
55
+ ]