|
|
@ -54,7 +54,7 @@ class Contract(ChildSlither, SourceMapping): |
|
|
|
self._structures: Dict[str, "Structure"] = {} |
|
|
|
self._structures: Dict[str, "Structure"] = {} |
|
|
|
self._events: Dict[str, "Event"] = {} |
|
|
|
self._events: Dict[str, "Event"] = {} |
|
|
|
self._variables: Dict[str, "StateVariable"] = {} |
|
|
|
self._variables: Dict[str, "StateVariable"] = {} |
|
|
|
self._variables_ordered: List["StateVariable"] = [] # contain also shadowed variables |
|
|
|
self._variables_ordered: List["StateVariable"] = [] |
|
|
|
self._modifiers: Dict[str, "Modifier"] = {} |
|
|
|
self._modifiers: Dict[str, "Modifier"] = {} |
|
|
|
self._functions: Dict[str, "Function"] = {} |
|
|
|
self._functions: Dict[str, "Function"] = {} |
|
|
|
self._linearizedBaseContracts = List[int] |
|
|
|
self._linearizedBaseContracts = List[int] |
|
|
@ -255,7 +255,7 @@ class Contract(ChildSlither, SourceMapping): |
|
|
|
@property |
|
|
|
@property |
|
|
|
def state_variables_ordered(self) -> List["StateVariable"]: |
|
|
|
def state_variables_ordered(self) -> List["StateVariable"]: |
|
|
|
""" |
|
|
|
""" |
|
|
|
list(StateVariable): List of the state variables by order of declaration. Contains also shadowed variables |
|
|
|
list(StateVariable): List of the state variables by order of declaration. |
|
|
|
""" |
|
|
|
""" |
|
|
|
return list(self._variables_ordered) |
|
|
|
return list(self._variables_ordered) |
|
|
|
|
|
|
|
|
|
|
|