├── .github └── workflows │ ├── antlr4-test.yml │ ├── lint-and-test.yml │ └── pypi-package-publish.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── Solidity.g4 ├── pyproject.toml ├── requirements.txt ├── ruff_helper.sh ├── sgp ├── __init__.py ├── ast_node_types.py ├── main.py ├── parser │ ├── README.md │ ├── Solidity.interp │ ├── Solidity.tokens │ ├── SolidityLexer.interp │ ├── SolidityLexer.py │ ├── SolidityLexer.tokens │ ├── SolidityListener.py │ ├── SolidityParser.py │ ├── SolidityVisitor.py │ └── __init__.py ├── sgp_error_listener.py ├── sgp_parser.py ├── sgp_visitor.py ├── tokens.py └── utils.py └── test ├── __init__.py ├── test_misc ├── __init__.py ├── test_function_returns_address_payable.py └── test_misc.py └── test_parsing ├── __init__.py ├── result.json ├── run-tests.sh ├── test.sol └── test_parsing.py /.github/workflows/antlr4-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/.github/workflows/antlr4-test.yml -------------------------------------------------------------------------------- /.github/workflows/lint-and-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/.github/workflows/lint-and-test.yml -------------------------------------------------------------------------------- /.github/workflows/pypi-package-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/.github/workflows/pypi-package-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/README.md -------------------------------------------------------------------------------- /Solidity.g4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/Solidity.g4 -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/requirements.txt -------------------------------------------------------------------------------- /ruff_helper.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/ruff_helper.sh -------------------------------------------------------------------------------- /sgp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sgp/ast_node_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/ast_node_types.py -------------------------------------------------------------------------------- /sgp/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/main.py -------------------------------------------------------------------------------- /sgp/parser/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/README.md -------------------------------------------------------------------------------- /sgp/parser/Solidity.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/Solidity.interp -------------------------------------------------------------------------------- /sgp/parser/Solidity.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/Solidity.tokens -------------------------------------------------------------------------------- /sgp/parser/SolidityLexer.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/SolidityLexer.interp -------------------------------------------------------------------------------- /sgp/parser/SolidityLexer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/SolidityLexer.py -------------------------------------------------------------------------------- /sgp/parser/SolidityLexer.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/SolidityLexer.tokens -------------------------------------------------------------------------------- /sgp/parser/SolidityListener.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/SolidityListener.py -------------------------------------------------------------------------------- /sgp/parser/SolidityParser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/SolidityParser.py -------------------------------------------------------------------------------- /sgp/parser/SolidityVisitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/parser/SolidityVisitor.py -------------------------------------------------------------------------------- /sgp/parser/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sgp/sgp_error_listener.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/sgp_error_listener.py -------------------------------------------------------------------------------- /sgp/sgp_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/sgp_parser.py -------------------------------------------------------------------------------- /sgp/sgp_visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/sgp_visitor.py -------------------------------------------------------------------------------- /sgp/tokens.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/tokens.py -------------------------------------------------------------------------------- /sgp/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/sgp/utils.py -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_misc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_misc/test_function_returns_address_payable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/test/test_misc/test_function_returns_address_payable.py -------------------------------------------------------------------------------- /test/test_misc/test_misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/test/test_misc/test_misc.py -------------------------------------------------------------------------------- /test/test_parsing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_parsing/result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/test/test_parsing/result.json -------------------------------------------------------------------------------- /test/test_parsing/run-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/test/test_parsing/run-tests.sh -------------------------------------------------------------------------------- /test/test_parsing/test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/test/test_parsing/test.sol -------------------------------------------------------------------------------- /test/test_parsing/test_parsing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenZeppelin/sgp/HEAD/test/test_parsing/test_parsing.py --------------------------------------------------------------------------------