id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
2,286,200
permit_domain_signature_collision.py
NioTheFirst_ScType/slither/detectors/functions/permit_domain_signature_collision.py
""" Module detecting EIP-2612 domain separator collision """ from typing import Union, List from slither.core.declarations import Function from slither.core.solidity_types.elementary_type import ElementaryType from slither.core.variables.state_variable import StateVariable from slither.detectors.abstract_detector impo...
3,380
Python
.py
63
40.825397
190
0.626965
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,201
dead_code.py
NioTheFirst_ScType/slither/detectors/functions/dead_code.py
""" Module detecting dead code """ from typing import List, Tuple from slither.core.declarations import Function, FunctionContract, Contract from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class DeadCode(AbstractDetector): """ Unprotected function detector """ ...
2,811
Python
.py
66
33.045455
98
0.640688
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,202
codex.py
NioTheFirst_ScType/slither/detectors/functions/codex.py
import logging import uuid from typing import List, Union from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.utils import codex from slither.utils.output import Output, SupportedOutput logger = logging.getLogger("Slither") VULN_FOUND = "VULN_FOUND" class Codex(Abs...
4,446
Python
.py
111
29.495495
156
0.553596
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,203
external_function.py
NioTheFirst_ScType/slither/detectors/functions/external_function.py
from typing import List, Set from slither.core.declarations import Function, FunctionContract, Contract from slither.core.declarations.structure import Structure from slither.core.solidity_types.array_type import ArrayType from slither.core.solidity_types.user_defined_type import UserDefinedType from slither.core.vari...
12,558
Python
.py
224
42.915179
186
0.635039
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,204
protected_variable.py
NioTheFirst_ScType/slither/detectors/functions/protected_variable.py
""" Module detecting suicidal contract A suicidal contract is an unprotected function that calls selfdestruct """ from typing import List from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.declarations import Function, Contract from slither.utils.output import O...
2,901
Python
.py
64
34.3125
141
0.634043
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,205
modifier.py
NioTheFirst_ScType/slither/detectors/functions/modifier.py
""" Module detecting modifiers that are not guaranteed to execute _; or revert()/throw Note that require()/assert() are not considered here. Even if they are in the outermost scope, they do not guarantee a revert, so a default value can still be returned. """ from slither.detectors.abstract_detector import AbstractDe...
3,059
Python
.py
70
34.328571
171
0.627273
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,206
unimplemented.py
NioTheFirst_ScType/slither/detectors/functions/unimplemented.py
""" Module detecting unimplemented functions Recursively check the called functions Collect all the implemented and unimplemented functions of all the contracts Check for unimplemented functions that are never implemented Consider public state variables as implemented functions Do not consider fallback function or con...
4,011
Python
.py
88
37.568182
135
0.686651
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,207
suicidal.py
NioTheFirst_ScType/slither/detectors/functions/suicidal.py
""" Module detecting suicidal contract A suicidal contract is an unprotected function that calls selfdestruct """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class Suicidal(AbstractDetector): """ Unprotected function detector """ ARGUMENT = "suicidal" ...
2,247
Python
.py
61
29.180328
91
0.661275
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,208
storage_signed_integer_array.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/storage_signed_integer_array.py
""" Module detecting storage signed integer array bug """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, make_solc_versions, ) from slither.core.cfg.node import NodeType from slither.core.solidity_types import ArrayType from slither.core.solidity_types.elementar...
5,161
Python
.py
110
37.390909
148
0.651509
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,209
array_by_reference.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/array_by_reference.py
""" Detects the passing of arrays located in memory to functions which expect to modify arrays via storage reference. """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.solidity_types.array_type import ArrayType from slither.core.variables.state_variable impo...
6,893
Python
.py
134
39.089552
139
0.627192
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,210
reused_base_constructor.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/reused_base_constructor.py
""" Module detecting re-used base constructors in inheritance hierarchy. """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, ALL_SOLC_VERSIONS_04, ) # Helper: adds explicitly called constructors with arguments to the results lookup. def _add_constructors_with_a...
5,724
Python
.py
131
33.870229
150
0.627225
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,211
public_mapping_nested.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/public_mapping_nested.py
""" Module detecting public mappings with nested variables (returns incorrect values prior to 0.5.x) """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, ALL_SOLC_VERSIONS_04, ) from slither.core.solidity_types.mapping_type import MappingType from slither.core.sol...
3,485
Python
.py
70
41.542857
184
0.698469
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,212
enum_conversion.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/enum_conversion.py
""" Module detecting dangerous conversion to enum """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, make_solc_versions, ) from slither.slithir.operations import TypeConversion from slither.core.declarations.enum import Enum def _detect_dangerous_enum_conversi...
2,455
Python
.py
63
32.365079
125
0.66849
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,213
storage_ABIEncoderV2_array.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/storage_ABIEncoderV2_array.py
""" Module detecting ABIEncoderV2 array bug """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, make_solc_versions, ) from slither.core.solidity_types import ArrayType from slither.core.solidity_types import UserDefinedType from slither.core.variables.local_varia...
5,099
Python
.py
107
35.308411
191
0.60358
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,214
multiple_constructor_schemes.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/multiple_constructor_schemes.py
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class MultipleConstructorSchemes(AbstractDetector): """ Module detecting multiple constructors in the same contract. (This was possible prior to Solidity 0.4.23, using old and new constructor schemes). """ AR...
2,373
Python
.py
53
37.283019
223
0.680122
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,215
uninitialized_function_ptr_in_constructor.py
NioTheFirst_ScType/slither/detectors/compiler_bugs/uninitialized_function_ptr_in_constructor.py
""" Module detecting uninitialized function pointer calls in constructors """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, make_solc_versions, ) from slither.slithir.operations import InternalDynamicCall, OperationWithLValue from slither.slithir.variables impo...
4,554
Python
.py
104
35.769231
191
0.681859
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,216
could_be_constant.py
NioTheFirst_ScType/slither/detectors/variables/could_be_constant.py
from typing import List, Dict from slither.utils.output import Output from slither.core.compilation_unit import SlitherCompilationUnit from slither.formatters.variables.unchanged_state_variables import custom_format from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from .unchanged...
2,060
Python
.py
35
52.657143
123
0.759801
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,217
function_init_state_variables.py
NioTheFirst_ScType/slither/detectors/variables/function_init_state_variables.py
""" Module detecting state variables initializing from an immediate function call (prior to constructor run). """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.visitors.expression.export_values import ExportValues from slither.core.declarations.function import Fu...
4,759
Python
.py
90
44.588889
225
0.698515
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,218
var_read_using_this.py
NioTheFirst_ScType/slither/detectors/variables/var_read_using_this.py
from typing import List from slither.core.cfg.node import Node from slither.core.declarations import Function, SolidityVariable from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations.high_level_call import HighLevelCall class VarReadUsingThis(AbstractD...
2,248
Python
.py
52
32.307692
120
0.611974
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,219
predeclaration_usage_local.py
NioTheFirst_ScType/slither/detectors/variables/predeclaration_usage_local.py
""" Module detecting any path leading to usage of a local variable before it is declared. """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class PredeclarationUsageLocal(AbstractDetector): """ Pre-declaration usage of local variable """ ARGUMENT = "variabl...
6,187
Python
.py
121
39.53719
331
0.628623
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,220
uninitialized_state_variables.py
NioTheFirst_ScType/slither/detectors/variables/uninitialized_state_variables.py
""" Module detecting state uninitialized variables Recursively check the called functions The heuristic checks: - state variables including mappings/refs - LibraryCalls, InternalCalls, InternalDynamicCalls with storage variables Only analyze "leaf" contracts (contracts that are not inherited b...
5,391
Python
.py
118
34.542373
134
0.626715
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,221
could_be_immutable.py
NioTheFirst_ScType/slither/detectors/variables/could_be_immutable.py
from typing import List, Dict from slither.utils.output import Output from slither.core.compilation_unit import SlitherCompilationUnit from slither.formatters.variables.unchanged_state_variables import custom_format from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from .unchanged...
2,037
Python
.py
35
52.028571
130
0.75715
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,222
uninitialized_local_variables.py
NioTheFirst_ScType/slither/detectors/variables/uninitialized_local_variables.py
""" Module detecting uninitialized local variables Recursively explore the CFG to only report uninitialized local variables that are read before being written """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class UninitializedLocalVars(AbstractDetector): ...
4,132
Python
.py
88
36.522727
162
0.649826
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,223
unchanged_state_variables.py
NioTheFirst_ScType/slither/detectors/variables/unchanged_state_variables.py
""" Module detecting state variables that could be declared as constant """ from typing import Set, List from packaging import version from slither.core.compilation_unit import SlitherCompilationUnit from slither.core.solidity_types.elementary_type import ElementaryType from slither.core.solidity_types.user_defined_typ...
4,660
Python
.py
99
38.373737
104
0.68269
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,224
similar_variables.py
NioTheFirst_ScType/slither/detectors/variables/similar_variables.py
""" Check for state variables too similar Do not check contract inheritance """ import difflib from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class SimilarVarsDetection(AbstractDetector): """ Variable similar detector """ ARGUMENT = "similar-names" HELP ...
2,879
Python
.py
72
30.319444
122
0.601218
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,225
uninitialized_storage_variables.py
NioTheFirst_ScType/slither/detectors/variables/uninitialized_storage_variables.py
""" Module detecting uninitialized storage variables Recursively explore the CFG to only report uninitialized storage variables that are written before being read """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class UninitializedStorageVars(AbstractDetector)...
3,877
Python
.py
86
35.848837
149
0.665161
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,226
unused_state_variables.py
NioTheFirst_ScType/slither/detectors/variables/unused_state_variables.py
""" Module detecting unused state variables """ from slither.core.compilation_unit import SlitherCompilationUnit from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.solidity_types import ArrayType from slither.visitors.expression.export_values import ExportValues f...
2,812
Python
.py
58
42.137931
98
0.722628
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,227
tcheck_parser.py
NioTheFirst_ScType/slither/detectors/my_detectors/tcheck_parser.py
#USAGE: parses the type file for: # - [*c], contract_name :contracts to run # - [xf], function_name :functions to ignore # - [sef], contract_name, function_name, [num_types], [denom_types], expected_normalization :external function summary # - [tref], array/map_name :expected type for one instan...
34,168
Python
.py
845
26.680473
149
0.480004
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,228
ExtendedType.py
NioTheFirst_ScType/slither/detectors/my_detectors/ExtendedType.py
from collections import defaultdict import os import sys script_dir = os.path.dirname( __file__ ) sys.path.append(script_dir) #USAGE: file containing the structure representing an Extended type instance # Extended types have two main subclasses: token types and business types # Token types follow the defaul...
8,708
Python
.py
244
26.778689
150
0.575009
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,229
tcheck.py
NioTheFirst_ScType/slither/detectors/my_detectors/tcheck.py
from collections import defaultdict from slither.core.variables.local_variable import LocalVariable from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import Binary, Assignment, BinaryType, LibraryCall, Return, InternalCall, Condition, HighLevelCall,...
94,491
Python
.py
2,592
28.13233
185
0.605173
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,230
tcheck_propagation.py
NioTheFirst_ScType/slither/detectors/my_detectors/tcheck_propagation.py
from slither.core.solidity_types import UserDefinedType, ArrayType, MappingType from slither.core.declarations import Structure, Contract from slither.core.variables.variable import Variable import copy import tcheck_parser import tcheck from tcheck import errors #USAGE: library for functions that help propagate types ...
18,575
Python
.py
537
27.497207
108
0.57335
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,231
address_handler.py
NioTheFirst_ScType/slither/detectors/my_detectors/address_handler.py
#Handles address things #label to normalization f_type_num = { -1: "undef", 0: "raw balance", 1: "net balance", 2: "accrued balance", 3: "final balance", 10: "compound fee ratio (t)", 11: "transaction fee", 12: "simple fee ratio", 13: "transaction fee (n)", 14: "transaction fee...
4,845
Python
.py
152
24.144737
86
0.574784
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,232
name_reused.py
NioTheFirst_ScType/slither/detectors/slither/name_reused.py
from collections import defaultdict from slither.core.compilation_unit import SlitherCompilationUnit from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification def _find_missing_inheritance(compilation_unit: SlitherCompilationUnit): """ Filter contracts with missing inheritance ...
4,462
Python
.py
92
38.706522
104
0.641757
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,233
rtlo.py
NioTheFirst_ScType/slither/detectors/source/rtlo.py
import re from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification # pylint: disable=bidirectional-unicode class RightToLeftOverride(AbstractDetector): """ Detect the usage of a Right-To-Left-Override (U+202E) character """ ARGUMENT = "rtlo" HELP = "Right-To-Left-Ov...
3,350
Python
.py
72
37.208333
177
0.644943
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,234
compilation_unit.py
NioTheFirst_ScType/slither/core/compilation_unit.py
import math from typing import Optional, Dict, List, Set, Union, TYPE_CHECKING, Tuple from crytic_compile import CompilationUnit, CryticCompile from crytic_compile.compiler.compiler import CompilerVersion from crytic_compile.utils.naming import Filename from slither.core.context.context import Context from slither.co...
11,463
Python
.py
233
41.407725
92
0.476996
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,235
slither_core.py
NioTheFirst_ScType/slither/core/slither_core.py
""" Main module """ import json import logging import os import pathlib import posixpath import re from collections import defaultdict from typing import Optional, Dict, List, Set, Union from crytic_compile import CryticCompile from crytic_compile.utils.naming import Filename from slither.core.children.child_cont...
21,965
Python
.py
441
38.496599
121
0.544712
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,236
scope.py
NioTheFirst_ScType/slither/core/scope/scope.py
from typing import List, Any, Dict, Optional, Union, Set, TypeVar, Callable from crytic_compile import CompilationUnit from crytic_compile.source_unit import SourceUnit from crytic_compile.utils.naming import Filename from slither.core.declarations import Contract, Import, Pragma from slither.core.declarations.custom...
8,693
Python
.py
192
35.651042
95
0.630664
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,237
utils.py
NioTheFirst_ScType/slither/core/dominators/utils.py
from typing import List, TYPE_CHECKING from slither.core.cfg.node import NodeType if TYPE_CHECKING: from slither.core.cfg.node import Node def intersection_predecessor(node: "Node"): if not node.fathers: return set() ret = node.fathers[0].dominators for pred in node.fathers[1:]: ret ...
3,113
Python
.py
76
31.039474
93
0.623881
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,238
node_dominator_tree.py
NioTheFirst_ScType/slither/core/dominators/node_dominator_tree.py
""" Nodes of the dominator tree """ from typing import TYPE_CHECKING, Set, List if TYPE_CHECKING: from slither.core.cfg.node import Node class DominatorNode: def __init__(self): self._succ: Set["Node"] = set() self._nodes: List["Node"] = [] def add_node(self, node: "Node"): s...
581
Python
.py
20
23.5
43
0.617329
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,239
context.py
NioTheFirst_ScType/slither/core/context/context.py
from collections import defaultdict from typing import Dict class Context: # pylint: disable=too-few-public-methods def __init__(self) -> None: super().__init__() self._context: Dict = {"MEMBERS": defaultdict(None)} @property def context(self) -> Dict: """ Dict used by an...
368
Python
.py
12
24.416667
60
0.617564
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,240
super_identifier.py
NioTheFirst_ScType/slither/core/expressions/super_identifier.py
from slither.core.expressions.identifier import Identifier class SuperIdentifier(Identifier): def __str__(self): return "super." + str(self._value)
162
Python
.py
4
36
58
0.737179
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,241
binary_operation.py
NioTheFirst_ScType/slither/core/expressions/binary_operation.py
import logging from enum import Enum from typing import List from slither.core.expressions.expression_typed import ExpressionTyped from slither.core.expressions.expression import Expression from slither.core.exceptions import SlitherCoreError logger = logging.getLogger("BinaryOperation") class BinaryOperationType(...
6,134
Python
.py
165
28.393939
98
0.603225
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,242
unary_operation.py
NioTheFirst_ScType/slither/core/expressions/unary_operation.py
import logging from enum import Enum from slither.core.expressions.expression_typed import ExpressionTyped from slither.core.expressions.expression import Expression from slither.core.exceptions import SlitherCoreError logger = logging.getLogger("UnaryOperation") class UnaryOperationType(Enum): BANG = 0 # ! ...
4,049
Python
.py
105
28.733333
87
0.614406
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,243
expression_typed.py
NioTheFirst_ScType/slither/core/expressions/expression_typed.py
from typing import Optional, TYPE_CHECKING from slither.core.expressions.expression import Expression if TYPE_CHECKING: from slither.core.solidity_types.type import Type class ExpressionTyped(Expression): # pylint: disable=too-few-public-methods def __init__(self) -> None: super().__init__() ...
525
Python
.py
14
32.071429
76
0.685149
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,244
identifier.py
NioTheFirst_ScType/slither/core/expressions/identifier.py
from typing import TYPE_CHECKING from slither.core.expressions.expression_typed import ExpressionTyped if TYPE_CHECKING: from slither.core.variables.variable import Variable class Identifier(ExpressionTyped): def __init__(self, value) -> None: super().__init__() self._value: "Variable" = val...
463
Python
.py
13
30.153846
69
0.686937
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,245
call_expression.py
NioTheFirst_ScType/slither/core/expressions/call_expression.py
from typing import Optional, List from slither.core.expressions.expression import Expression class CallExpression(Expression): # pylint: disable=too-many-instance-attributes def __init__(self, called, arguments, type_call): assert isinstance(called, Expression) super().__init__() self._c...
2,079
Python
.py
52
32.115385
81
0.609235
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,246
expression.py
NioTheFirst_ScType/slither/core/expressions/expression.py
from slither.core.source_mapping.source_mapping import SourceMapping class Expression(SourceMapping): def __init__(self) -> None: super().__init__() self._is_lvalue = False @property def is_lvalue(self) -> bool: return self._is_lvalue def set_lvalue(self) -> None: sel...
340
Python
.py
10
27.8
68
0.644172
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,247
type_conversion.py
NioTheFirst_ScType/slither/core/expressions/type_conversion.py
from slither.core.expressions.expression_typed import ExpressionTyped from slither.core.expressions.expression import Expression from slither.core.solidity_types.type import Type class TypeConversion(ExpressionTyped): def __init__(self, expression, expression_type): super().__init__() assert isins...
668
Python
.py
15
38.466667
69
0.713405
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,248
literal.py
NioTheFirst_ScType/slither/core/expressions/literal.py
from typing import Optional, Union, TYPE_CHECKING from slither.core.expressions.expression import Expression from slither.core.solidity_types.elementary_type import Fixed, Int, Ufixed, Uint from slither.utils.arithmetic import convert_subdenomination from slither.utils.integer_conversion import convert_string_to_int ...
1,731
Python
.py
41
35.170732
96
0.675805
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,249
__init__.py
NioTheFirst_ScType/slither/core/expressions/__init__.py
from .assignment_operation import AssignmentOperation, AssignmentOperationType from .binary_operation import BinaryOperation, BinaryOperationType from .call_expression import CallExpression from .conditional_expression import ConditionalExpression from .elementary_type_name_expression import ElementaryTypeNameExpressio...
840
Python
.py
17
48.411765
78
0.886999
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,250
assignment_operation.py
NioTheFirst_ScType/slither/core/expressions/assignment_operation.py
import logging from enum import Enum from typing import Optional, TYPE_CHECKING, List from slither.core.expressions.expression_typed import ExpressionTyped from slither.core.expressions.expression import Expression from slither.core.exceptions import SlitherCoreError if TYPE_CHECKING: from slither.core.solidity_t...
4,255
Python
.py
102
33.578431
98
0.649021
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,251
conditional_expression.py
NioTheFirst_ScType/slither/core/expressions/conditional_expression.py
from typing import List from .expression import Expression class ConditionalExpression(Expression): def __init__(self, if_expression, then_expression, else_expression): assert isinstance(if_expression, Expression) assert isinstance(then_expression, Expression) assert isinstance(else_expre...
1,210
Python
.py
32
29.8125
82
0.646154
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,252
new_array.py
NioTheFirst_ScType/slither/core/expressions/new_array.py
from slither.core.expressions.expression import Expression from slither.core.solidity_types.type import Type class NewArray(Expression): # note: dont conserve the size of the array if provided def __init__(self, depth, array_type): super().__init__() assert isinstance(array_type, Type) ...
633
Python
.py
17
30.941176
66
0.647541
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,253
elementary_type_name_expression.py
NioTheFirst_ScType/slither/core/expressions/elementary_type_name_expression.py
""" This expression does nothing, if a contract used it, its probably a bug """ from slither.core.expressions.expression import Expression from slither.core.solidity_types.type import Type class ElementaryTypeNameExpression(Expression): def __init__(self, t): assert isinstance(t, Type) super()...
605
Python
.py
19
26.157895
75
0.659208
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,254
new_contract.py
NioTheFirst_ScType/slither/core/expressions/new_contract.py
from slither.core.expressions.expression import Expression class NewContract(Expression): def __init__(self, contract_name): super().__init__() self._contract_name: str = contract_name self._gas = None self._value = None self._salt = None @property def contract_nam...
735
Python
.py
25
22.64
58
0.612536
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,255
new_elementary_type.py
NioTheFirst_ScType/slither/core/expressions/new_elementary_type.py
from slither.core.expressions.expression import Expression from slither.core.solidity_types.elementary_type import ElementaryType class NewElementaryType(Expression): def __init__(self, new_type): assert isinstance(new_type, ElementaryType) super().__init__() self._type = new_type @pr...
455
Python
.py
12
31.916667
70
0.687927
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,256
tuple_expression.py
NioTheFirst_ScType/slither/core/expressions/tuple_expression.py
from typing import List from slither.core.expressions.expression import Expression class TupleExpression(Expression): def __init__(self, expressions: List[Expression]) -> None: assert all(isinstance(x, Expression) for x in expressions if x) super().__init__() self._expressions = expressio...
563
Python
.py
13
37
71
0.66789
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,257
member_access.py
NioTheFirst_ScType/slither/core/expressions/member_access.py
from slither.core.expressions.expression import Expression from slither.core.expressions.expression_typed import ExpressionTyped from slither.core.solidity_types.type import Type class MemberAccess(ExpressionTyped): def __init__(self, member_name, member_type, expression): # assert isinstance(member_type...
910
Python
.py
23
33.043478
69
0.686364
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,258
index_access.py
NioTheFirst_ScType/slither/core/expressions/index_access.py
from typing import List, TYPE_CHECKING from slither.core.expressions.expression_typed import ExpressionTyped if TYPE_CHECKING: from slither.core.expressions.expression import Expression from slither.core.solidity_types.type import Type class IndexAccess(ExpressionTyped): def __init__(self, left_express...
1,067
Python
.py
26
34.730769
81
0.680892
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,259
mapping_type.py
NioTheFirst_ScType/slither/core/solidity_types/mapping_type.py
from typing import Tuple from slither.core.solidity_types.type import Type class MappingType(Type): def __init__(self, type_from, type_to): assert isinstance(type_from, Type) assert isinstance(type_to, Type) super().__init__() self._from = type_from self._to = type_to ...
945
Python
.py
29
25.586207
82
0.604857
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,260
array_type.py
NioTheFirst_ScType/slither/core/solidity_types/array_type.py
from typing import Optional, Tuple from slither.core.expressions import Literal from slither.core.expressions.expression import Expression from slither.core.solidity_types.type import Type from slither.visitors.expression.constants_folding import ConstantFolding class ArrayType(Type): def __init__(self, t, lengt...
2,019
Python
.py
56
27.875
73
0.616727
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,261
__init__.py
NioTheFirst_ScType/slither/core/solidity_types/__init__.py
from .array_type import ArrayType from .elementary_type import ElementaryType from .function_type import FunctionType from .mapping_type import MappingType from .user_defined_type import UserDefinedType from .type import Type from .type_information import TypeInformation from .type_alias import TypeAlias, TypeAliasTopL...
344
Python
.py
8
42
71
0.869048
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,262
type.py
NioTheFirst_ScType/slither/core/solidity_types/type.py
import abc from typing import Tuple from slither.core.source_mapping.source_mapping import SourceMapping class Type(SourceMapping, metaclass=abc.ABCMeta): @property @abc.abstractmethod def storage_size(self) -> Tuple[int, bool]: """ Computes and returns storage layout related metadata ...
636
Python
.py
16
33.9375
103
0.704065
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,263
function_type.py
NioTheFirst_ScType/slither/core/solidity_types/function_type.py
from typing import List, Tuple from slither.core.solidity_types.type import Type from slither.core.variables.function_type_variable import FunctionTypeVariable class FunctionType(Type): def __init__( self, params: List[FunctionTypeVariable], return_values: List[FunctionTypeVariable], ...
2,436
Python
.py
64
30.359375
88
0.625265
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,264
type_information.py
NioTheFirst_ScType/slither/core/solidity_types/type_information.py
from typing import TYPE_CHECKING, Tuple from slither.core.solidity_types import ElementaryType from slither.core.solidity_types.type import Type if TYPE_CHECKING: from slither.core.declarations.contract import Contract # Use to model the Type(X) function, which returns an undefined type # https://solidity.readt...
1,480
Python
.py
37
33.189189
92
0.682961
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,265
type_alias.py
NioTheFirst_ScType/slither/core/solidity_types/type_alias.py
from typing import TYPE_CHECKING, Tuple from slither.core.children.child_contract import ChildContract from slither.core.declarations.top_level import TopLevel from slither.core.solidity_types import Type if TYPE_CHECKING: from slither.core.declarations import Contract from slither.core.scope.scope import Fil...
1,567
Python
.py
40
32.65
79
0.67351
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,266
user_defined_type.py
NioTheFirst_ScType/slither/core/solidity_types/user_defined_type.py
from typing import Union, TYPE_CHECKING, Tuple import math from slither.core.solidity_types.type import Type from slither.exceptions import SlitherException if TYPE_CHECKING: from slither.core.declarations.structure import Structure from slither.core.declarations.enum import Enum from slither.core.declara...
2,791
Python
.py
67
31.38806
92
0.614533
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,267
elementary_type.py
NioTheFirst_ScType/slither/core/solidity_types/elementary_type.py
import itertools from typing import Tuple from slither.core.solidity_types.type import Type # see https://solidity.readthedocs.io/en/v0.4.24/miscellaneous.html?highlight=grammar from slither.exceptions import SlitherException Int = [ "int", "int8", "int16", "int24", "int32", "int40", "in...
4,821
Python
.py
200
18.365
94
0.545177
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,268
node.py
NioTheFirst_ScType/slither/core/cfg/node.py
""" Node module """ from enum import Enum from typing import Optional, List, Set, Dict, Tuple, Union, TYPE_CHECKING from slither.core.children.child_function import ChildFunction from slither.core.declarations.solidity_variables import ( SolidityVariable, SolidityFunction, ) from slither.core.source_mappin...
38,692
Python
.py
895
34.311732
189
0.536315
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,269
scope.py
NioTheFirst_ScType/slither/core/cfg/scope.py
from typing import List, TYPE_CHECKING, Union if TYPE_CHECKING: from slither.core.cfg.node import Node from slither.core.declarations.function import Function # pylint: disable=too-few-public-methods class Scope: def __init__(self, is_checked: bool, is_yul: bool, scope: Union["Scope", "Function"]): ...
447
Python
.py
11
35.363636
90
0.688222
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,270
child_function.py
NioTheFirst_ScType/slither/core/children/child_function.py
from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.declarations import Function class ChildFunction: def __init__(self) -> None: super().__init__() self._function = None def set_function(self, function: "Function") -> None: self._function = function @proper...
391
Python
.py
12
26.833333
57
0.663102
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,271
child_structure.py
NioTheFirst_ScType/slither/core/children/child_structure.py
from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.declarations import Structure class ChildStructure: def __init__(self): super().__init__() self._structure = None def set_structure(self, structure: "Structure"): self._structure = structure @property d...
386
Python
.py
12
26.416667
52
0.680217
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,272
child_expression.py
NioTheFirst_ScType/slither/core/children/child_expression.py
from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.expressions.expression import Expression class ChildExpression: def __init__(self): super().__init__() self._expression = None def set_expression(self, expression: "Expression"): self._expression = expression ...
407
Python
.py
12
28.166667
62
0.694872
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,273
child_contract.py
NioTheFirst_ScType/slither/core/children/child_contract.py
from typing import TYPE_CHECKING from slither.core.source_mapping.source_mapping import SourceMapping if TYPE_CHECKING: from slither.core.declarations import Contract class ChildContract(SourceMapping): def __init__(self): super().__init__() self._contract = None def set_contract(self, ...
460
Python
.py
13
29.923077
68
0.709751
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,274
child_event.py
NioTheFirst_ScType/slither/core/children/child_event.py
from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.declarations import Event class ChildEvent: def __init__(self): super().__init__() self._event = None def set_event(self, event: "Event"): self._event = event @property def event(self) -> "Event": ...
342
Python
.py
12
22.75
47
0.636923
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,275
child_inheritance.py
NioTheFirst_ScType/slither/core/children/child_inheritance.py
from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.declarations import Contract class ChildInheritance: def __init__(self): super().__init__() self._contract_declarer = None def set_contract_declarer(self, contract: "Contract"): self._contract_declarer = contrac...
423
Python
.py
12
29.5
58
0.697044
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,276
child_node.py
NioTheFirst_ScType/slither/core/children/child_node.py
from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.compilation_unit import SlitherCompilationUnit from slither.core.cfg.node import Node from slither.core.declarations import Function, Contract class ChildNode: def __init__(self): super().__init__() self._node = None...
757
Python
.py
23
26.869565
68
0.679063
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,277
structure_variable.py
NioTheFirst_ScType/slither/core/variables/structure_variable.py
from slither.core.variables.variable import Variable from slither.core.children.child_structure import ChildStructure class StructureVariable(ChildStructure, Variable): pass
180
Python
.py
4
42.5
64
0.867816
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,278
local_variable_init_from_tuple.py
NioTheFirst_ScType/slither/core/variables/local_variable_init_from_tuple.py
from typing import Optional from slither.core.variables.local_variable import LocalVariable class LocalVariableInitFromTuple(LocalVariable): """ Use on this pattern: var(a,b) = f() It is not possible to split the variable declaration in sigleton and keep the init value We init a and b with f(). ...
685
Python
.py
18
32.388889
99
0.682853
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,279
state_variable.py
NioTheFirst_ScType/slither/core/variables/state_variable.py
from typing import Optional, TYPE_CHECKING from slither.core.children.child_contract import ChildContract from slither.core.variables.variable import Variable if TYPE_CHECKING: from slither.core.cfg.node import Node from slither.core.declarations import Contract class StateVariable(ChildContract, Variable):...
2,431
Python
.py
54
38.537037
87
0.41649
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,280
top_level_variable.py
NioTheFirst_ScType/slither/core/variables/top_level_variable.py
from typing import Optional, TYPE_CHECKING from slither.core.declarations.top_level import TopLevel from slither.core.variables.variable import Variable if TYPE_CHECKING: from slither.core.cfg.node import Node from slither.core.scope.scope import FileScope class TopLevelVariable(TopLevel, Variable): def...
1,418
Python
.py
30
41.466667
87
0.439855
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,281
function_type_variable.py
NioTheFirst_ScType/slither/core/variables/function_type_variable.py
""" Variable used with FunctionType ex: struct C{ function(uint) my_func; } """ from .variable import Variable class FunctionTypeVariable(Variable): pass
185
Python
.py
10
14.4
37
0.686047
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,282
local_variable.py
NioTheFirst_ScType/slither/core/variables/local_variable.py
from typing import Optional from slither.core.variables.variable import Variable from slither.core.children.child_function import ChildFunction from slither.core.solidity_types.user_defined_type import UserDefinedType from slither.core.solidity_types.array_type import ArrayType from slither.core.solidity_types.mapping...
2,141
Python
.py
58
29.293103
112
0.651669
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,283
event_variable.py
NioTheFirst_ScType/slither/core/variables/event_variable.py
from slither.core.variables.variable import Variable from slither.core.children.child_event import ChildEvent class EventVariable(ChildEvent, Variable): def __init__(self): super().__init__() self._indexed = False @property def indexed(self) -> bool: """ Indicates whether ...
600
Python
.py
16
31
90
0.677586
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,284
variable.py
NioTheFirst_ScType/slither/core/variables/variable.py
""" Variable module """ from typing import Optional, TYPE_CHECKING, List, Union, Tuple from slither.detectors.my_detectors.ExtendedType import ExtendedType from slither.core.source_mapping.source_mapping import SourceMapping from slither.core.solidity_types.type import Type from slither.core.solidity_types.element...
8,930
Python
.py
251
27.677291
125
0.58108
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,285
source_mapping.py
NioTheFirst_ScType/slither/core/source_mapping/source_mapping.py
import re from abc import ABCMeta from typing import Dict, Union, List, Tuple, TYPE_CHECKING, Optional from crytic_compile.utils.naming import Filename from slither.core.context.context import Context if TYPE_CHECKING: from slither.core.compilation_unit import SlitherCompilationUnit # We split the source mappi...
7,082
Python
.py
159
36.773585
100
0.655348
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,286
structure_contract.py
NioTheFirst_ScType/slither/core/declarations/structure_contract.py
from slither.core.children.child_contract import ChildContract from slither.core.declarations import Structure class StructureContract(Structure, ChildContract): def is_declared_by(self, contract): """ Check if the element is declared by the contract :param contract: :return: ...
368
Python
.py
10
30.4
62
0.710674
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,287
solidity_variables.py
NioTheFirst_ScType/slither/core/declarations/solidity_variables.py
# https://solidity.readthedocs.io/en/v0.4.24/units-and-global-variables.html from typing import List, Dict, Union, TYPE_CHECKING from slither.core.declarations.custom_error import CustomError from slither.core.solidity_types import ElementaryType, TypeInformation from slither.core.source_mapping.source_mapping import ...
7,233
Python
.py
193
31.373057
113
0.635662
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,288
enum.py
NioTheFirst_ScType/slither/core/declarations/enum.py
from typing import List from slither.core.source_mapping.source_mapping import SourceMapping from slither.detectors.my_detectors.ExtendedType import ExtendedType class Enum(SourceMapping): def __init__(self, name: str, canonical_name: str, values: List[str]): super().__init__() self._name = name ...
1,101
Python
.py
35
24.714286
74
0.625355
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,289
function.py
NioTheFirst_ScType/slither/core/declarations/function.py
""" Function module """ import logging from abc import abstractmethod, ABCMeta from collections import namedtuple from enum import Enum from itertools import groupby import copy from typing import Dict, TYPE_CHECKING, List, Optional, Set, Union, Callable, Tuple from slither.core.cfg.scope import Scope from slither...
69,756
Python
.py
1,533
36.189172
118
0.538606
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,290
event.py
NioTheFirst_ScType/slither/core/declarations/event.py
from typing import List, Tuple, TYPE_CHECKING from slither.core.children.child_contract import ChildContract from slither.core.source_mapping.source_mapping import SourceMapping from slither.core.variables.event_variable import EventVariable if TYPE_CHECKING: from slither.core.declarations import Contract class...
1,732
Python
.py
51
26.686275
68
0.625524
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,291
custom_error.py
NioTheFirst_ScType/slither/core/declarations/custom_error.py
from typing import List, TYPE_CHECKING, Optional, Type, Union from slither.core.solidity_types import UserDefinedType from slither.core.source_mapping.source_mapping import SourceMapping from slither.core.variables.local_variable import LocalVariable if TYPE_CHECKING: from slither.core.compilation_unit import Sli...
3,394
Python
.py
76
37.184211
88
0.593996
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,292
custom_error_top_level.py
NioTheFirst_ScType/slither/core/declarations/custom_error_top_level.py
from typing import TYPE_CHECKING from slither.core.declarations.custom_error import CustomError from slither.core.declarations.top_level import TopLevel if TYPE_CHECKING: from slither.core.compilation_unit import SlitherCompilationUnit from slither.core.scope.scope import FileScope class CustomErrorTopLevel...
521
Python
.py
10
47.9
87
0.788955
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,293
solidity_import_placeholder.py
NioTheFirst_ScType/slither/core/declarations/solidity_import_placeholder.py
""" Special variable to model import with renaming """ from slither.core.declarations import Import from slither.core.solidity_types import ElementaryType from slither.core.variables.variable import Variable class SolidityImportPlaceHolder(Variable): """ Placeholder for import on top level objects See the...
1,315
Python
.py
34
32.294118
100
0.682889
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,294
using_for_top_level.py
NioTheFirst_ScType/slither/core/declarations/using_for_top_level.py
from typing import TYPE_CHECKING, List, Dict, Union from slither.core.solidity_types.type import Type from slither.core.declarations.top_level import TopLevel if TYPE_CHECKING: from slither.core.scope.scope import FileScope class UsingForTopLevel(TopLevel): def __init__(self, scope: "FileScope"): su...
544
Python
.py
13
36.769231
64
0.701521
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,295
structure.py
NioTheFirst_ScType/slither/core/declarations/structure.py
from typing import List, TYPE_CHECKING, Dict, Optional from slither.core.source_mapping.source_mapping import SourceMapping if TYPE_CHECKING: from slither.core.variables.structure_variable import StructureVariable from slither.core.compilation_unit import SlitherCompilationUnit class Structure(SourceMapping...
1,576
Python
.py
41
31.487805
75
0.656599
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,296
enum_contract.py
NioTheFirst_ScType/slither/core/declarations/enum_contract.py
from typing import TYPE_CHECKING from slither.core.children.child_contract import ChildContract from slither.core.declarations import Enum if TYPE_CHECKING: from slither.core.declarations import Contract class EnumContract(Enum, ChildContract): def is_declared_by(self, contract: "Contract") -> bool: ...
477
Python
.py
13
31.076923
62
0.723913
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,297
__init__.py
NioTheFirst_ScType/slither/core/declarations/__init__.py
from .contract import Contract from .enum import Enum from .event import Event from .function import Function from .import_directive import Import from .modifier import Modifier from .pragma_directive import Pragma from .solidity_variables import ( SolidityVariable, SolidityVariableComposed, SolidityFunctio...
637
Python
.py
19
31.894737
50
0.855987
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,298
structure_top_level.py
NioTheFirst_ScType/slither/core/declarations/structure_top_level.py
from typing import TYPE_CHECKING from slither.core.declarations import Structure from slither.core.declarations.top_level import TopLevel if TYPE_CHECKING: from slither.core.scope.scope import FileScope from slither.core.compilation_unit import SlitherCompilationUnit class StructureTopLevel(Structure, TopLe...
502
Python
.py
10
46
87
0.784836
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,299
import_directive.py
NioTheFirst_ScType/slither/core/declarations/import_directive.py
from pathlib import Path from typing import Optional, TYPE_CHECKING, Dict from slither.core.source_mapping.source_mapping import SourceMapping if TYPE_CHECKING: from slither.core.scope.scope import FileScope class Import(SourceMapping): def __init__(self, filename: Path, scope: "FileScope"): super()...
1,104
Python
.py
37
22.783784
68
0.611374
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)