algorand-python-testing 0.2.2b4__py3-none-any.whl → 0.3.0__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 (94) hide show
  1. _algopy_testing/__init__.py +68 -0
  2. _algopy_testing/arc4.py +1461 -0
  3. _algopy_testing/compiled.py +53 -0
  4. {algopy_testing → _algopy_testing}/constants.py +8 -0
  5. _algopy_testing/context.py +108 -0
  6. _algopy_testing/context_helpers/__init__.py +13 -0
  7. _algopy_testing/context_helpers/context_storage.py +118 -0
  8. _algopy_testing/context_helpers/ledger_context.py +452 -0
  9. _algopy_testing/context_helpers/txn_context.py +346 -0
  10. _algopy_testing/decorators/__init__.py +8 -0
  11. _algopy_testing/decorators/arc4.py +424 -0
  12. _algopy_testing/enums.py +99 -0
  13. _algopy_testing/gtxn.py +146 -0
  14. _algopy_testing/itxn.py +234 -0
  15. _algopy_testing/itxn_loader.py +205 -0
  16. _algopy_testing/models/__init__.py +21 -0
  17. _algopy_testing/models/account.py +148 -0
  18. _algopy_testing/models/application.py +91 -0
  19. _algopy_testing/models/asset.py +92 -0
  20. _algopy_testing/models/contract.py +264 -0
  21. {algopy_testing → _algopy_testing}/models/logicsig.py +11 -17
  22. {algopy_testing → _algopy_testing}/models/template_variable.py +10 -8
  23. _algopy_testing/models/txn_fields.py +517 -0
  24. {algopy_testing → _algopy_testing}/models/unsigned_builtins.py +1 -1
  25. _algopy_testing/mutable.py +65 -0
  26. _algopy_testing/op/__init__.py +144 -0
  27. {algopy_testing/models → _algopy_testing/op}/block.py +6 -12
  28. _algopy_testing/op/constants.py +7 -0
  29. _algopy_testing/op/crypto.py +197 -0
  30. _algopy_testing/op/global_values.py +87 -0
  31. _algopy_testing/op/itxn.py +93 -0
  32. _algopy_testing/op/misc.py +502 -0
  33. _algopy_testing/op/pure.py +421 -0
  34. _algopy_testing/op/txn.py +56 -0
  35. _algopy_testing/primitives/__init__.py +6 -0
  36. {algopy_testing → _algopy_testing}/primitives/biguint.py +13 -14
  37. {algopy_testing → _algopy_testing}/primitives/bytes.py +25 -20
  38. {algopy_testing → _algopy_testing}/primitives/string.py +9 -10
  39. {algopy_testing → _algopy_testing}/primitives/uint64.py +13 -14
  40. _algopy_testing/protocols.py +34 -0
  41. _algopy_testing/state/__init__.py +5 -0
  42. _algopy_testing/state/box.py +300 -0
  43. _algopy_testing/state/global_state.py +134 -0
  44. _algopy_testing/state/local_state.py +93 -0
  45. _algopy_testing/state/utils.py +67 -0
  46. _algopy_testing/utilities/__init__.py +4 -0
  47. {algopy_testing → _algopy_testing}/utilities/budget.py +1 -1
  48. _algopy_testing/utilities/log.py +42 -0
  49. _algopy_testing/utils.py +180 -0
  50. _algopy_testing/value_generators/__init__.py +22 -0
  51. _algopy_testing/value_generators/arc4.py +132 -0
  52. _algopy_testing/value_generators/avm.py +193 -0
  53. _algopy_testing/value_generators/txn.py +124 -0
  54. algopy/__init__.py +23 -25
  55. algopy/arc4.py +5 -1
  56. algopy/gtxn.py +1 -1
  57. algopy/itxn.py +1 -1
  58. algopy/op.py +1 -1
  59. algopy_testing/__init__.py +20 -50
  60. {algorand_python_testing-0.2.2b4.dist-info → algorand_python_testing-0.3.0.dist-info}/METADATA +15 -8
  61. algorand_python_testing-0.3.0.dist-info/RECORD +67 -0
  62. algopy_testing/arc4.py +0 -1533
  63. algopy_testing/context.py +0 -1198
  64. algopy_testing/decorators/abimethod.py +0 -204
  65. algopy_testing/decorators/baremethod.py +0 -83
  66. algopy_testing/enums.py +0 -62
  67. algopy_testing/gtxn.py +0 -261
  68. algopy_testing/itxn.py +0 -665
  69. algopy_testing/models/__init__.py +0 -31
  70. algopy_testing/models/account.py +0 -128
  71. algopy_testing/models/application.py +0 -72
  72. algopy_testing/models/asset.py +0 -109
  73. algopy_testing/models/box.py +0 -520
  74. algopy_testing/models/contract.py +0 -94
  75. algopy_testing/models/gitxn.py +0 -42
  76. algopy_testing/models/global_values.py +0 -72
  77. algopy_testing/models/gtxn.py +0 -56
  78. algopy_testing/models/itxn.py +0 -85
  79. algopy_testing/models/transactions.py +0 -158
  80. algopy_testing/models/txn.py +0 -113
  81. algopy_testing/op.py +0 -1253
  82. algopy_testing/primitives/__init__.py +0 -6
  83. algopy_testing/protocols.py +0 -18
  84. algopy_testing/state/__init__.py +0 -4
  85. algopy_testing/state/global_state.py +0 -90
  86. algopy_testing/state/local_state.py +0 -67
  87. algopy_testing/utilities/__init__.py +0 -4
  88. algopy_testing/utilities/log.py +0 -55
  89. algopy_testing/utils.py +0 -249
  90. algorand_python_testing-0.2.2b4.dist-info/RECORD +0 -52
  91. {algopy_testing → _algopy_testing}/decorators/subroutine.py +0 -0
  92. /algopy_testing/decorators/__init__.py → /_algopy_testing/py.typed +0 -0
  93. {algorand_python_testing-0.2.2b4.dist-info → algorand_python_testing-0.3.0.dist-info}/WHEEL +0 -0
  94. {algorand_python_testing-0.2.2b4.dist-info → algorand_python_testing-0.3.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,68 @@
1
+ from _algopy_testing import arc4, gtxn, itxn
2
+ from _algopy_testing.context import AlgopyTestContext
3
+ from _algopy_testing.context_helpers.context_storage import algopy_testing_context
4
+ from _algopy_testing.context_helpers.ledger_context import LedgerContext
5
+ from _algopy_testing.context_helpers.txn_context import TransactionContext
6
+ from _algopy_testing.decorators.subroutine import subroutine
7
+ from _algopy_testing.enums import OnCompleteAction, TransactionType
8
+ from _algopy_testing.itxn_loader import ITxnGroupLoader, ITxnLoader
9
+ from _algopy_testing.models import (
10
+ Account,
11
+ Application,
12
+ ARC4Contract,
13
+ Asset,
14
+ Contract,
15
+ LogicSig,
16
+ StateTotals,
17
+ TemplateVar,
18
+ logicsig,
19
+ uenumerate,
20
+ urange,
21
+ )
22
+ from _algopy_testing.primitives import BigUInt, Bytes, String, UInt64
23
+ from _algopy_testing.state import Box, BoxMap, BoxRef, GlobalState, LocalState
24
+ from _algopy_testing.value_generators.arc4 import ARC4ValueGenerator
25
+ from _algopy_testing.value_generators.avm import AVMValueGenerator
26
+ from _algopy_testing.value_generators.txn import TxnValueGenerator
27
+
28
+ # TODO: clean up and ensure only algopy_testing namespace specific user facing abstractions
29
+ # are exposed Only keep the _value_generators, ledger_context, txn_context,
30
+ # context, and arc4_prexif from utils (make utils private)
31
+ __all__ = [
32
+ "ARC4Contract",
33
+ "ARC4ValueGenerator",
34
+ "Account",
35
+ "AlgopyTestContext",
36
+ "Application",
37
+ "Asset",
38
+ "BigUInt",
39
+ "Box",
40
+ "BoxMap",
41
+ "BoxRef",
42
+ "Bytes",
43
+ "Contract",
44
+ "GlobalState",
45
+ "LocalState",
46
+ "LogicSig",
47
+ "ITxnLoader",
48
+ "TxnValueGenerator",
49
+ "ITxnGroupLoader",
50
+ "OnCompleteAction",
51
+ "StateTotals",
52
+ "String",
53
+ "TemplateVar",
54
+ "LedgerContext",
55
+ "TransactionContext",
56
+ "AVMValueGenerator",
57
+ "TxnValueGenerator",
58
+ "TransactionType",
59
+ "UInt64",
60
+ "algopy_testing_context",
61
+ "arc4",
62
+ "gtxn",
63
+ "itxn",
64
+ "logicsig",
65
+ "subroutine",
66
+ "uenumerate",
67
+ "urange",
68
+ ]