Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
Latest commit
19 lines (15 loc) · 894 Bytes
/
Copy pathtest.py
File metadata and controls
19 lines (15 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
importsys
importpprint
fromsolidity_parserimportparser
fromapp.src.react_agent.utilsimportExtractEntryFunctions, FunctionParser, RedisUtil, StorageParser
root_directory="/Users/jetty/upside_academy/audit_project/contracts"
src_directory="/Users/jetty/upside_academy/audit_project/contracts/src"
# _entry_points = ExtractEntryFunctions.extract_entry(root_directory)
# print(f"entry points: {_entry_points}")
function_code=FunctionParser.process_directory(src_directory, "function_code.json")
RedisUtil.set_function_codes_from_json(function_code)
print(f"{RedisUtil.get_function_code('BlockRewardController.onlyDistributor')}")
print("--------------------------------")
storage_variables=StorageParser.parse_project(root_directory, src_directory)
RedisUtil.set_storage_variables_from_json(storage_variables)
print(f"{RedisUtil.get_storage_variables('BlockRewardController')}")