genlayer-test 0.1.0b6__py3-none-any.whl → 0.1.1__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.
- {genlayer_test-0.1.0b6.dist-info → genlayer_test-0.1.1.dist-info}/METADATA +19 -2
- genlayer_test-0.1.1.dist-info/RECORD +52 -0
- {genlayer_test-0.1.0b6.dist-info → genlayer_test-0.1.1.dist-info}/WHEEL +1 -1
- gltest/artifacts/__init__.py +1 -1
- gltest/artifacts/contract.py +14 -5
- gltest/assertions.py +0 -1
- gltest/exceptions.py +9 -1
- gltest/glchain/account.py +1 -0
- gltest/helpers/__init__.py +1 -1
- gltest/helpers/fixture_snapshot.py +9 -1
- tests/artifact/contracts/not_ic_contract.py +22 -0
- tests/artifact/test_contract_definition.py +92 -0
- tests/examples/contracts/football_prediction_market.py +97 -0
- tests/examples/contracts/intelligent_oracle.py +369 -0
- tests/examples/contracts/intelligent_oracle_factory.py +47 -0
- tests/examples/contracts/llm_erc20.py +69 -0
- tests/examples/contracts/log_indexer.py +67 -0
- tests/examples/contracts/multi_file_contract/__init__.py +20 -0
- tests/examples/contracts/multi_file_contract/other.py +14 -0
- tests/examples/contracts/multi_read_erc20.py +28 -0
- tests/examples/contracts/multi_tenant_storage.py +48 -0
- tests/examples/contracts/read_erc20.py +14 -0
- tests/examples/contracts/storage.py +22 -0
- tests/examples/contracts/user_storage.py +24 -0
- tests/examples/contracts/wizard_of_coin.py +56 -0
- tests/examples/tests/test_football_prediction_market.py +19 -0
- tests/examples/tests/test_intelligent_oracle_factory.py +127 -0
- tests/examples/tests/test_llm_erc20.py +41 -0
- tests/examples/tests/test_log_indexer.py +63 -0
- tests/examples/tests/test_multi_file_contract.py +15 -0
- tests/examples/tests/test_multi_file_contract_legacy.py +15 -0
- tests/examples/tests/test_multi_read_erc20.py +85 -0
- tests/examples/tests/test_multi_tenant_storage.py +58 -0
- tests/examples/tests/test_read_erc20.py +37 -0
- tests/examples/tests/test_storage.py +23 -0
- tests/examples/tests/test_storage_legacy.py +23 -0
- tests/examples/tests/test_user_storage.py +57 -0
- tests/examples/tests/test_wizard_of_coin.py +12 -0
- tests/plugin/conftest.py +1 -0
- genlayer_test-0.1.0b6.dist-info/RECORD +0 -24
- tests/conftest.py +0 -1
- {genlayer_test-0.1.0b6.dist-info → genlayer_test-0.1.1.dist-info}/entry_points.txt +0 -0
- {genlayer_test-0.1.0b6.dist-info → genlayer_test-0.1.1.dist-info}/licenses/LICENSE +0 -0
- {genlayer_test-0.1.0b6.dist-info → genlayer_test-0.1.1.dist-info}/top_level.txt +0 -0
- /tests/{test_plugin_hooks.py → plugin/test_plugin_hooks.py} +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
from gltest import get_contract_factory
|
2
|
+
from gltest.assertions import tx_execution_succeeded
|
3
|
+
|
4
|
+
|
5
|
+
def test_wizard_of_coin():
|
6
|
+
factory = get_contract_factory("WizardOfCoin")
|
7
|
+
contract = factory.deploy(args=[True])
|
8
|
+
|
9
|
+
transaction_response_call_1 = contract.ask_for_coin(
|
10
|
+
args=["Can you please give me my coin?"]
|
11
|
+
)
|
12
|
+
assert tx_execution_succeeded(transaction_response_call_1)
|
tests/plugin/conftest.py
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pytest_plugins = "pytester"
|
@@ -1,24 +0,0 @@
|
|
1
|
-
genlayer_test-0.1.0b6.dist-info/licenses/LICENSE,sha256=che_H4vE0QUx3HvWrAa1_jDEVInift0U6VO15-QqEls,1064
|
2
|
-
gltest/__init__.py,sha256=AK_YfRvwlhrOheOelUG8qIRG17on0-nFCF747dopg2w,332
|
3
|
-
gltest/assertions.py,sha256=wrT5R8yLAxm0B1EzmdZjOK5gBriugIrdtOIt9Qi0G-k,591
|
4
|
-
gltest/exceptions.py,sha256=V3OJlvW5iiv7lYmwV6h_EtAi2vqy63b7RcLB6ohDZ20,502
|
5
|
-
gltest/plugin_config.py,sha256=8Z97RtEJ89OcRbki_oRuBBVct_q56BFmKvthan1y9Y4,840
|
6
|
-
gltest/plugin_hooks.py,sha256=py1rzIR9QSsFOt8SEePPL96e-8DeiPFxvcPZurRlExM,1436
|
7
|
-
gltest/types.py,sha256=BODmwTr2gAUEiO9FjiuTiWwuKvXgo4xZWstQWNUfnlw,156
|
8
|
-
gltest/artifacts/__init__.py,sha256=QCsQI8BSOHQwGWFxZVDRL-HA0Dyae3Re24E-yAZrflA,86
|
9
|
-
gltest/artifacts/contract.py,sha256=2wmfQF6FAiNuMlr9pePK7ZJjQj5Tl7-3SefeH3OnSRQ,3089
|
10
|
-
gltest/glchain/__init__.py,sha256=X-mEbREoAOe9K4n74C55gCiXH4wItzY5HTJcg3_F3mI,412
|
11
|
-
gltest/glchain/account.py,sha256=vOXxcR09NkT6iFw_m49DW1nVC7kP8wf23555iPPXRkw,402
|
12
|
-
gltest/glchain/client.py,sha256=q04LIQy5SCIrYZflZiTapfeQ-AaSTa0w369ehnVbJLM,532
|
13
|
-
gltest/glchain/contract.py,sha256=1pd4eAQlHXjnRF7hBvnoR-9f-HORUaYKVyV5P42io4o,8747
|
14
|
-
gltest/helpers/__init__.py,sha256=a9uBXWj44P-Gu0vKKgVBPOSuZ5yumVFLYAzywrGZ36Y,179
|
15
|
-
gltest/helpers/fixture_snapshot.py,sha256=r7olLq8Aq0h0mMydlvmr3sNxWZeUns_wx1WK3HFAVaY,1774
|
16
|
-
gltest/helpers/take_snapshot.py,sha256=eXqEKXM2hcox3pLGIcNddobU8zXPQvD-Iwf87eHqW2s,1276
|
17
|
-
gltest_cli/main.py,sha256=Ti2-0Ev1x5_cM0D1UKqdgaDt80CDHEQGtdRne2qLm4M,53
|
18
|
-
tests/conftest.py,sha256=vY6XQ9K2kZ8Qo-h9-PmkhmEIRyR_ILjbM7R0dPPjU_g,28
|
19
|
-
tests/test_plugin_hooks.py,sha256=FQOrkhoXLinq0sjvoYjr63Oqg-ZVPcNFeUrK4bqrn4E,2020
|
20
|
-
genlayer_test-0.1.0b6.dist-info/METADATA,sha256=jgrseqjqUTnRcPEH_Z7KqEaIpSE0raE9OEcNoqAyshs,12925
|
21
|
-
genlayer_test-0.1.0b6.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
22
|
-
genlayer_test-0.1.0b6.dist-info/entry_points.txt,sha256=rXhrPVq2IhVsd4uWzxzwCTx7jA1KcQIVNxDCUuxq4f8,89
|
23
|
-
genlayer_test-0.1.0b6.dist-info/top_level.txt,sha256=-qiGZxTRBytujzgVcKpxjvQ-WNeUDjXa59ceGMwMpko,24
|
24
|
-
genlayer_test-0.1.0b6.dist-info/RECORD,,
|
tests/conftest.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pytest_plugins = 'pytester'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|