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.
- _algopy_testing/__init__.py +68 -0
- _algopy_testing/arc4.py +1461 -0
- _algopy_testing/compiled.py +53 -0
- {algopy_testing → _algopy_testing}/constants.py +8 -0
- _algopy_testing/context.py +108 -0
- _algopy_testing/context_helpers/__init__.py +13 -0
- _algopy_testing/context_helpers/context_storage.py +118 -0
- _algopy_testing/context_helpers/ledger_context.py +452 -0
- _algopy_testing/context_helpers/txn_context.py +346 -0
- _algopy_testing/decorators/__init__.py +8 -0
- _algopy_testing/decorators/arc4.py +424 -0
- _algopy_testing/enums.py +99 -0
- _algopy_testing/gtxn.py +146 -0
- _algopy_testing/itxn.py +234 -0
- _algopy_testing/itxn_loader.py +205 -0
- _algopy_testing/models/__init__.py +21 -0
- _algopy_testing/models/account.py +148 -0
- _algopy_testing/models/application.py +91 -0
- _algopy_testing/models/asset.py +92 -0
- _algopy_testing/models/contract.py +264 -0
- {algopy_testing → _algopy_testing}/models/logicsig.py +11 -17
- {algopy_testing → _algopy_testing}/models/template_variable.py +10 -8
- _algopy_testing/models/txn_fields.py +517 -0
- {algopy_testing → _algopy_testing}/models/unsigned_builtins.py +1 -1
- _algopy_testing/mutable.py +65 -0
- _algopy_testing/op/__init__.py +144 -0
- {algopy_testing/models → _algopy_testing/op}/block.py +6 -12
- _algopy_testing/op/constants.py +7 -0
- _algopy_testing/op/crypto.py +197 -0
- _algopy_testing/op/global_values.py +87 -0
- _algopy_testing/op/itxn.py +93 -0
- _algopy_testing/op/misc.py +502 -0
- _algopy_testing/op/pure.py +421 -0
- _algopy_testing/op/txn.py +56 -0
- _algopy_testing/primitives/__init__.py +6 -0
- {algopy_testing → _algopy_testing}/primitives/biguint.py +13 -14
- {algopy_testing → _algopy_testing}/primitives/bytes.py +25 -20
- {algopy_testing → _algopy_testing}/primitives/string.py +9 -10
- {algopy_testing → _algopy_testing}/primitives/uint64.py +13 -14
- _algopy_testing/protocols.py +34 -0
- _algopy_testing/state/__init__.py +5 -0
- _algopy_testing/state/box.py +300 -0
- _algopy_testing/state/global_state.py +134 -0
- _algopy_testing/state/local_state.py +93 -0
- _algopy_testing/state/utils.py +67 -0
- _algopy_testing/utilities/__init__.py +4 -0
- {algopy_testing → _algopy_testing}/utilities/budget.py +1 -1
- _algopy_testing/utilities/log.py +42 -0
- _algopy_testing/utils.py +180 -0
- _algopy_testing/value_generators/__init__.py +22 -0
- _algopy_testing/value_generators/arc4.py +132 -0
- _algopy_testing/value_generators/avm.py +193 -0
- _algopy_testing/value_generators/txn.py +124 -0
- algopy/__init__.py +23 -25
- algopy/arc4.py +5 -1
- algopy/gtxn.py +1 -1
- algopy/itxn.py +1 -1
- algopy/op.py +1 -1
- algopy_testing/__init__.py +20 -50
- {algorand_python_testing-0.2.2b4.dist-info → algorand_python_testing-0.3.0.dist-info}/METADATA +15 -8
- algorand_python_testing-0.3.0.dist-info/RECORD +67 -0
- algopy_testing/arc4.py +0 -1533
- algopy_testing/context.py +0 -1198
- algopy_testing/decorators/abimethod.py +0 -204
- algopy_testing/decorators/baremethod.py +0 -83
- algopy_testing/enums.py +0 -62
- algopy_testing/gtxn.py +0 -261
- algopy_testing/itxn.py +0 -665
- algopy_testing/models/__init__.py +0 -31
- algopy_testing/models/account.py +0 -128
- algopy_testing/models/application.py +0 -72
- algopy_testing/models/asset.py +0 -109
- algopy_testing/models/box.py +0 -520
- algopy_testing/models/contract.py +0 -94
- algopy_testing/models/gitxn.py +0 -42
- algopy_testing/models/global_values.py +0 -72
- algopy_testing/models/gtxn.py +0 -56
- algopy_testing/models/itxn.py +0 -85
- algopy_testing/models/transactions.py +0 -158
- algopy_testing/models/txn.py +0 -113
- algopy_testing/op.py +0 -1253
- algopy_testing/primitives/__init__.py +0 -6
- algopy_testing/protocols.py +0 -18
- algopy_testing/state/__init__.py +0 -4
- algopy_testing/state/global_state.py +0 -90
- algopy_testing/state/local_state.py +0 -67
- algopy_testing/utilities/__init__.py +0 -4
- algopy_testing/utilities/log.py +0 -55
- algopy_testing/utils.py +0 -249
- algorand_python_testing-0.2.2b4.dist-info/RECORD +0 -52
- {algopy_testing → _algopy_testing}/decorators/subroutine.py +0 -0
- /algopy_testing/decorators/__init__.py → /_algopy_testing/py.typed +0 -0
- {algorand_python_testing-0.2.2b4.dist-info → algorand_python_testing-0.3.0.dist-info}/WHEEL +0 -0
- {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
|
+
]
|