solidity_parser.util.version_util¶
Attributes¶
Classes¶
Functions¶
|
Extracts the solidity version from the input source code |
|
Parses a solidity version string into a Version object |
Module Contents¶
- solidity_parser.util.version_util.VERSION_PATTERN¶
- class solidity_parser.util.version_util.Version¶
- major: int¶
- minor: int¶
- patch: int¶
- is_enforced_in(testing_version: Version) bool ¶
Tests whether a feature that was introduced in the given testing_version is enforced in the current version E.g. if a feature is only available in or after version 8.0.1 but the current version is 7.0.0, that feature
should not be enforced and this function returns False
- __str__()¶
Return str(self).