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.
- algopy/__init__.py +58 -0
- algopy/arc4.py +1 -0
- algopy/gtxn.py +1 -0
- algopy/itxn.py +1 -0
- algopy/op.py +1 -0
- algopy/py.typed +0 -0
- algopy_testing/__init__.py +55 -0
- algopy_testing/arc4.py +1533 -0
- algopy_testing/constants.py +22 -0
- algopy_testing/context.py +1194 -0
- algopy_testing/decorators/__init__.py +0 -0
- algopy_testing/decorators/abimethod.py +204 -0
- algopy_testing/decorators/baremethod.py +83 -0
- algopy_testing/decorators/subroutine.py +9 -0
- algopy_testing/enums.py +42 -0
- algopy_testing/gtxn.py +261 -0
- algopy_testing/itxn.py +665 -0
- algopy_testing/models/__init__.py +31 -0
- algopy_testing/models/account.py +128 -0
- algopy_testing/models/application.py +72 -0
- algopy_testing/models/asset.py +109 -0
- algopy_testing/models/block.py +34 -0
- algopy_testing/models/box.py +158 -0
- algopy_testing/models/contract.py +82 -0
- algopy_testing/models/gitxn.py +42 -0
- algopy_testing/models/global_values.py +72 -0
- algopy_testing/models/gtxn.py +56 -0
- algopy_testing/models/itxn.py +85 -0
- algopy_testing/models/logicsig.py +44 -0
- algopy_testing/models/template_variable.py +23 -0
- algopy_testing/models/transactions.py +158 -0
- algopy_testing/models/txn.py +113 -0
- algopy_testing/models/unsigned_builtins.py +36 -0
- algopy_testing/op.py +1098 -0
- algopy_testing/primitives/__init__.py +6 -0
- algopy_testing/primitives/biguint.py +148 -0
- algopy_testing/primitives/bytes.py +174 -0
- algopy_testing/primitives/string.py +68 -0
- algopy_testing/primitives/uint64.py +213 -0
- algopy_testing/protocols.py +18 -0
- algopy_testing/py.typed +0 -0
- algopy_testing/state/__init__.py +4 -0
- algopy_testing/state/global_state.py +73 -0
- algopy_testing/state/local_state.py +54 -0
- algopy_testing/utilities/__init__.py +3 -0
- algopy_testing/utilities/budget.py +23 -0
- algopy_testing/utilities/log.py +55 -0
- algopy_testing/utils.py +249 -0
- algorand_python_testing-0.0.0b1.dist-info/METADATA +81 -0
- algorand_python_testing-0.0.0b1.dist-info/RECORD +52 -0
- algorand_python_testing-0.0.0b1.dist-info/WHEEL +4 -0
- 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
|
+
]
|