Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Contracting Tests pt. 2 #43

Merged
merged 10 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions contracting.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Metadata-Version: 2.1
Name: contracting
Version: 2.0.10
Summary: Python-based smart contract language and interpreter.
Home-page: https://github.com/Lamden/contracting
Author: Lamden
Author-email: [email protected]
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
License-File: LICENSE

UNKNOWN

163 changes: 163 additions & 0 deletions contracting.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
LICENSE
README.md
setup.py
contracting/__init__.py
contracting/client.py
contracting/config.py
contracting.egg-info/PKG-INFO
contracting.egg-info/SOURCES.txt
contracting.egg-info/dependency_links.txt
contracting.egg-info/requires.txt
contracting.egg-info/top_level.txt
contracting.egg-info/zip-safe
contracting/compilation/__init__.py
contracting/compilation/compiler.py
contracting/compilation/linter.py
contracting/compilation/parser.py
contracting/compilation/whitelists.py
contracting/contracts/__init__.py
contracting/contracts/submission.s.py
contracting/execution/__init__.py
contracting/execution/executor.py
contracting/execution/module.py
contracting/execution/runtime.py
contracting/execution/metering/__init__.py
contracting/execution/metering/tracer.c
contracting/stdlib/__init__.py
contracting/stdlib/env.py
contracting/stdlib/bridge/__init__.py
contracting/stdlib/bridge/access.py
contracting/stdlib/bridge/decimal.py
contracting/stdlib/bridge/hashing.py
contracting/stdlib/bridge/imports.py
contracting/stdlib/bridge/orm.py
contracting/stdlib/bridge/random.py
contracting/stdlib/bridge/time.py
contracting/storage/__init__.py
contracting/storage/contract.py
contracting/storage/driver.py
contracting/storage/encoder.py
contracting/storage/hdf5.py
contracting/storage/orm.py
tests/__init__.py
tests/run.py
tests/utils.py
tests/final_gov/__init__.py
tests/final_gov/test_add_members.py
tests/final_gov/test_foundation.py
tests/final_gov/test_members.py
tests/final_gov/test_rewards.py
tests/final_gov/test_stamps.py
tests/governance/__init__.py
tests/governance/test_election_house.py
tests/governance/test_even_simpler_election_house.py
tests/governance/test_foundation.py
tests/governance/test_master_candidates.py
tests/governance/test_masternodes.py
tests/governance/test_more_flexible_election_house.py
tests/governance/test_new_candidates.py
tests/governance/test_new_masternodes.py
tests/governance/test_pending_masters.py
tests/governance/test_rewards.py
tests/governance/test_simple_voting_contract.py
tests/governance/test_stamps.py
tests/integration/__init__.py
tests/integration/test_atomic_swap.py
tests/integration/test_builtins_locked_off.py
tests/integration/test_complex_contracts.py
tests/integration/test_complex_object_setting.py
tests/integration/test_constructor_args.py
tests/integration/test_datetime_contracts.py
tests/integration/test_dynamic_imports.py
tests/integration/test_executor_submission_process.py
tests/integration/test_memory_clean_up_after_execution.py
tests/integration/test_misc_contracts.py
tests/integration/test_pixel_game.py
tests/integration/test_rich_ctx_calling.py
tests/integration/test_run_private_function.py
tests/integration/test_senecaCompiler_integration.py
tests/integration/test_seneca_client_randoms.py
tests/integration/test_seneca_client_replaces_executor.py
tests/integration/test_stamp_deduction.py
tests/integration/test_contracts/__init__.py
tests/integration/test_contracts/atomic_swaps.s.py
tests/integration/test_contracts/bad_time.s.py
tests/integration/test_contracts/bastardcoin.s.py
tests/integration/test_contracts/builtin_lib.s.py
tests/integration/test_contracts/child_test.s.py
tests/integration/test_contracts/constructor_args_contract.s.py
tests/integration/test_contracts/contracting.s.py
tests/integration/test_contracts/currency.s.py
tests/integration/test_contracts/dater.py
tests/integration/test_contracts/dynamic_import.s.py
tests/integration/test_contracts/dynamic_importing.s.py
tests/integration/test_contracts/erc20_clone.s.py
tests/integration/test_contracts/float_issue.s.py
tests/integration/test_contracts/foreign_thing.s.py
tests/integration/test_contracts/i_use_env.s.py
tests/integration/test_contracts/import_test.s.py
tests/integration/test_contracts/import_this.s.py
tests/integration/test_contracts/importing_that.s.py
tests/integration/test_contracts/inf_loop.s.py
tests/integration/test_contracts/json_tests.s.py
tests/integration/test_contracts/leaky.s.py
tests/integration/test_contracts/mathtime.s.py
tests/integration/test_contracts/owner_stuff.s.py
tests/integration/test_contracts/parent_test.s.py
tests/integration/test_contracts/pass_hash.s.py
tests/integration/test_contracts/private_methods.s.py
tests/integration/test_contracts/stubucks.s.py
tests/integration/test_contracts/tejastokens.s.py
tests/integration/test_contracts/test_client.py
tests/integration/test_contracts/test_construct_function_works.s.py
tests/integration/test_contracts/test_hashing_works.s.py
tests/integration/test_contracts/test_orm_foreign_hash_contract.s.py
tests/integration/test_contracts/test_orm_foreign_key_contract.s.py
tests/integration/test_contracts/test_orm_hash_contract.s.py
tests/integration/test_contracts/test_orm_no_contract_access.s.py
tests/integration/test_contracts/test_orm_variable_contract.s.py
tests/integration/test_contracts/test_pass_hash.s.py
tests/integration/test_contracts/test_time.s.py
tests/integration/test_contracts/thing.s.py
tests/integration/test_contracts/time_storage.s.py
tests/performance/__init__.py
tests/performance/prof_transfer.py
tests/performance/test_transfer.py
tests/security/__init__.py
tests/security/test_erc20_token_hacks.py
tests/unit/__init__.py
tests/unit/test_blockservice_driver.py
tests/unit/test_client.py
tests/unit/test_context_data_struct.py
tests/unit/test_datetime.py
tests/unit/test_decimal.py
tests/unit/test_driver.py
tests/unit/test_encode.py
tests/unit/test_imports_stdlib.py
tests/unit/test_linter.py
tests/unit/test_module.py
tests/unit/test_new_cache_driver.py
tests/unit/test_new_contract_driver.py
tests/unit/test_new_driver.py
tests/unit/test_orm.py
tests/unit/test_parser.py
tests/unit/test_runtime.py
tests/unit/test_stdlib_hashing.py
tests/unit/test_timedelta.py
tests/unit/precompiled/__init__.py
tests/unit/precompiled/compiled_token.py
tests/unit/precompiled/updated_submission.py
tests/unit/test_sys_contracts/__init__.py
tests/unit/test_sys_contracts/bad_lint.s.py
tests/unit/test_sys_contracts/compile_this.s.py
tests/unit/test_sys_contracts/currency.s.py
tests/unit/test_sys_contracts/good_lint.s.py
tests/unit/test_sys_contracts/module1.py
tests/unit/test_sys_contracts/module2.py
tests/unit/test_sys_contracts/module3.py
tests/unit/test_sys_contracts/module4.py
tests/unit/test_sys_contracts/module5.py
tests/unit/test_sys_contracts/module6.py
tests/unit/test_sys_contracts/module7.py
tests/unit/test_sys_contracts/module8.py
tests/unit/test_sys_contracts/module_func.py
1 change: 1 addition & 0 deletions contracting.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

8 changes: 8 additions & 0 deletions contracting.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
astor==0.8.1
autopep8==1.5.7
cachetools
h5py
iso8601
motor==2.5.1
psutil
pycodestyle==2.10.0
2 changes: 2 additions & 0 deletions contracting.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
contracting
tests
1 change: 1 addition & 0 deletions contracting.egg-info/zip-safe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion src/contracting/compilation/whitelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
ast.Subscript, ast.Compare, ast.Return, ast.NameConstant, ast.Expr, ast.keyword, ast.Sub,
ast.arguments, ast.List, ast.Set, ast.Str, ast.UnaryOp, ast.Pass, ast.Tuple, ast.Div, ast.In,
ast.NotIn, ast.Gt, ast.Lt, ast.Starred, ast.Mod, ast.NotEq, ast.For, ast.While, ast.ListComp,
ast.comprehension, ast.Slice, ast.USub, ast.BoolOp, ast.And, ast.Or, ast.Mult, ast.IsNot, ast.Is}
ast.comprehension, ast.Slice, ast.USub, ast.BoolOp, ast.And, ast.Or, ast.Mult, ast.IsNot, ast.Is, ast.Constant}

ILLEGAL_AST_TYPES = {
ast.AsyncFor,
Expand Down
33 changes: 23 additions & 10 deletions tests/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

- [ ] final_gov
- [ ] governance
- [ ] integration
- [ ] test_atomic_swap
- [x] integration
- [x] test_atomic_swap
- [x] test_builtins_locked_off
- [x] test_complex_contracts
- [x] test_complex_object_setting
Expand All @@ -13,10 +13,10 @@
- [x] test_executor_submission_process
- [x] test_memory_cleanup_after_execution # This might shed some light on the StampEstimator sync bug
- [ ] test_misc_contracts
- [ ] test_memory_exploit
- [ ] test_memory_overload
- [ ] test_memory_overload2
- [ ] test_single_too_many_writes_fails
- [x] test_memory_exploit
- [x] test_memory_overload
- [x] test_memory_overload2
- [x] test_single_too_many_writes_fails
- [x] test_pixel_game
- [x] test_rich_ctx_calling
- [x] test_run_private_function
Expand All @@ -27,7 +27,20 @@
- [x] performance
- [x] prof_transfer - not a test, but a way of measuring performance
- [x] test_transfer - again, not a test, but a way of measuring performance
- [ ] security
- [ ] test_erc20_token_hacks


- [x] security
- [x] test_erc20_token_hacks
- [x] unit
- [x] test_client
- [x] test_context_data_struct
- [x] test_datetime
- [x] test_decimal
- [ ] test_driver [deleted]
- [x] test_encode
- [x] test_imports_stdlib
- [x] test_linter
- [x] test_module
- [x] test_orm
- [x] test_parser
- [x] test_runtime
- [x] test_stdlib_hashing
- [x] test_timedelta
Loading
Loading