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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
UINT8_SIZE = 8
|
|
2
|
+
UINT16_SIZE = 16
|
|
3
|
+
UINT64_SIZE = 64
|
|
4
|
+
UINT512_SIZE = 512
|
|
5
|
+
MAX_BYTES_SIZE = 4096
|
|
6
|
+
MAX_LOG_SIZE = 1024
|
|
7
|
+
MAX_UINT8 = 2**UINT8_SIZE - 1
|
|
8
|
+
MAX_UINT16 = 2**UINT16_SIZE - 1
|
|
9
|
+
MAX_UINT64 = 2**UINT64_SIZE - 1
|
|
10
|
+
MAX_UINT512 = 2**UINT512_SIZE - 1
|
|
11
|
+
MAX_UINT64_BIT_SHIFT = UINT64_SIZE - 1
|
|
12
|
+
MAX_BOX_SIZE = 32768
|
|
13
|
+
UINT64_BYTES_LENGTH = UINT64_SIZE // 8
|
|
14
|
+
UINT512_BYTES_LENGTH = UINT512_SIZE // 8
|
|
15
|
+
BITS_IN_BYTE = 8
|
|
16
|
+
ARC4_RETURN_PREFIX = b"\x15\x1f\x7c\x75"
|
|
17
|
+
|
|
18
|
+
DEFAULT_ACCOUNT_MIN_BALANCE = 100_000
|
|
19
|
+
DEFAULT_MAX_TXN_LIFE = 1_000
|
|
20
|
+
DEFAULT_ASSET_CREATE_MIN_BALANCE = 1000_000
|
|
21
|
+
DEFAULT_ASSET_OPT_IN_MIN_BALANCE = 10_000
|
|
22
|
+
DEFAULT_GLOBAL_GENESIS_HASH = b"\x85Y\xb5\x14x\xfd\x89\xc1vC\xd0]\x15\xa8\xaek\x10\xabG\xbbm\x8a1\x88\x11V\xe6\xbd;\xae\x95\xd1" # noqa: E501
|