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,100
caller_context.py
NioTheFirst_ScType/slither/solc_parsing/declarations/caller_context.py
import abc from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.compilation_unit import SlitherCompilationUnit from slither.solc_parsing.slither_compilation_unit_solc import SlitherCompilationUnitSolc class CallerContextExpression(metaclass=abc.ABCMeta): """ This class is inherited by...
913
Python
.py
26
29.769231
105
0.740319
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,101
using_for_top_level.py
NioTheFirst_ScType/slither/solc_parsing/declarations/using_for_top_level.py
""" Using For Top Level module """ import logging from typing import TYPE_CHECKING, Dict, Union from slither.core.compilation_unit import SlitherCompilationUnit from slither.core.declarations import ( StructureTopLevel, EnumTopLevel, ) from slither.core.declarations.using_for_top_level import UsingForTopLe...
6,683
Python
.py
147
34.122449
117
0.614794
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,102
structure_top_level.py
NioTheFirst_ScType/slither/solc_parsing/declarations/structure_top_level.py
""" Structure module """ from typing import TYPE_CHECKING, Dict from slither.core.compilation_unit import SlitherCompilationUnit from slither.core.declarations.structure_top_level import StructureTopLevel from slither.core.variables.structure_variable import StructureVariable from slither.solc_parsing.declarations...
2,594
Python
.py
62
34.16129
95
0.688146
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,103
modifier.py
NioTheFirst_ScType/slither/solc_parsing/declarations/modifier.py
""" Event module """ from typing import Dict, TYPE_CHECKING, Union from slither.core.cfg.node import NodeType from slither.core.cfg.node import link_nodes from slither.core.cfg.scope import Scope from slither.core.declarations.modifier import Modifier from slither.solc_parsing.cfg.node import NodeSolc from slither...
3,662
Python
.py
83
34.674699
98
0.641653
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,104
contract.py
NioTheFirst_ScType/slither/solc_parsing/declarations/contract.py
import logging import re from typing import List, Dict, Callable, TYPE_CHECKING, Union, Set from slither.core.declarations import Modifier, Event, EnumContract, StructureContract, Function from slither.core.declarations.contract import Contract from slither.core.declarations.custom_error_contract import CustomErrorCon...
34,641
Python
.py
681
38.81351
117
0.575553
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,105
expression_to_slithir.py
NioTheFirst_ScType/slither/visitors/slithir/expression_to_slithir.py
import logging from typing import List from slither.core.declarations import ( Function, SolidityVariable, SolidityVariableComposed, SolidityFunction, Contract, ) from slither.core.declarations.enum import Enum from slither.core.expressions import ( AssignmentOperationType, UnaryOperationT...
24,488
Python
.py
525
35.207619
100
0.627447
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,106
left_value.py
NioTheFirst_ScType/slither/visitors/expression/left_value.py
# Return the 'left' value of an expression from slither.visitors.expression.expression import ExpressionVisitor from slither.core.expressions.assignment_operation import AssignmentOperationType from slither.core.variables.variable import Variable key = "LeftValue" def get(expression): val = expression.context...
3,483
Python
.py
83
34.337349
81
0.667161
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,107
find_push.py
NioTheFirst_ScType/slither/visitors/expression/find_push.py
from slither.visitors.expression.expression import ExpressionVisitor from slither.visitors.expression.right_value import RightValue key = "FindPush" def get(expression): val = expression.context[key] # we delete the item to reduce memory use del expression.context[key] return val def set_val(expre...
2,994
Python
.py
73
33.39726
68
0.662181
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,108
find_calls.py
NioTheFirst_ScType/slither/visitors/expression/find_calls.py
from typing import List from slither.core.expressions.expression import Expression from slither.visitors.expression.expression import ExpressionVisitor key = "FindCall" def get(expression): val = expression.context[key] # we delete the item to reduce memory use del expression.context[key] return val...
2,975
Python
.py
73
33.356164
68
0.666898
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,109
expression.py
NioTheFirst_ScType/slither/visitors/expression/expression.py
import logging from typing import Any from slither.core.expressions.assignment_operation import AssignmentOperation from slither.core.expressions.binary_operation import BinaryOperation from slither.core.expressions.call_expression import CallExpression from slither.core.expressions.conditional_expression import Condi...
11,301
Python
.py
251
36.243028
97
0.700302
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,110
right_value.py
NioTheFirst_ScType/slither/visitors/expression/right_value.py
# Return the 'right' value of an expression # On index access, explore the left # on member access, return the member_name # a.b.c[d] returns c from slither.visitors.expression.expression import ExpressionVisitor from slither.core.expressions.assignment_operation import AssignmentOperationType from slither.core.expre...
3,730
Python
.py
89
34.460674
81
0.670263
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,111
read_var.py
NioTheFirst_ScType/slither/visitors/expression/read_var.py
from slither.visitors.expression.expression import ExpressionVisitor from slither.core.expressions.assignment_operation import AssignmentOperationType from slither.core.variables.variable import Variable from slither.core.declarations.solidity_variables import SolidityVariable key = "ReadVar" def get(expression): ...
3,735
Python
.py
87
35.206897
81
0.674027
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,112
expression_printer.py
NioTheFirst_ScType/slither/visitors/expression/expression_printer.py
from slither.visitors.expression.expression import ExpressionVisitor def get(expression): val = expression.context["ExpressionPrinter"] # we delete the item to reduce memory use del expression.context["ExpressionPrinter"] return val def set_val(expression, val): expression.context["ExpressionPri...
3,389
Python
.py
80
34.4
73
0.647506
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,113
write_var.py
NioTheFirst_ScType/slither/visitors/expression/write_var.py
from slither.visitors.expression.expression import ExpressionVisitor key = "WriteVar" def get(expression): val = expression.context[key] # we delete the item to reduce memory use del expression.context[key] return val def set_val(expression, val): expression.context[key] = val class WriteVar(...
4,202
Python
.py
106
31.254717
68
0.606187
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,114
export_values.py
NioTheFirst_ScType/slither/visitors/expression/export_values.py
from slither.visitors.expression.expression import ExpressionVisitor key = "ExportValues" def get(expression): val = expression.context[key] # we delete the item to reduce memory use del expression.context[key] return val def set_val(expression, val): expression.context[key] = val class Expor...
2,828
Python
.py
69
33.405797
68
0.663135
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,115
constants_folding.py
NioTheFirst_ScType/slither/visitors/expression/constants_folding.py
from fractions import Fraction from slither.core.expressions import ( BinaryOperationType, Literal, UnaryOperationType, Identifier, BinaryOperation, UnaryOperation, ) from slither.utils.integer_conversion import convert_string_to_fraction, convert_string_to_int from slither.visitors.expression.e...
6,402
Python
.py
139
36.726619
94
0.658329
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,116
has_conditional.py
NioTheFirst_ScType/slither/visitors/expression/has_conditional.py
from slither.visitors.expression.expression import ExpressionVisitor class HasConditional(ExpressionVisitor): def result(self): # == True, to convert None to false return self._result is True def _post_conditional_expression(self, expression): # if self._result is True: ...
420
Python
.py
9
40
78
0.681373
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,117
colors.py
NioTheFirst_ScType/slither/utils/colors.py
from functools import partial import platform import sys class Colors: # pylint: disable=too-few-public-methods COLORIZATION_ENABLED = True RED = "\033[91m" GREEN = "\033[92m" YELLOW = "\033[93m" BLUE = "\033[94m" MAGENTA = "\033[95m" BOLD = "\033[1m" END = "\033[0m" def colorize(co...
3,305
Python
.py
71
39.197183
115
0.688336
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,118
tests_pattern.py
NioTheFirst_ScType/slither/utils/tests_pattern.py
from pathlib import Path from typing import TYPE_CHECKING if TYPE_CHECKING: from slither.core.declarations.contract import Contract _TESTS_PATTERNS = ["Test", "test", "Mock", "mock"] TESTS_PATTERNS = _TESTS_PATTERNS + [x + "s" for x in _TESTS_PATTERNS] def _is_test_pattern(txt: str, pattern: str) -> bool: "...
1,300
Python
.py
41
26.219512
79
0.647482
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,119
integer_conversion.py
NioTheFirst_ScType/slither/utils/integer_conversion.py
from fractions import Fraction from typing import Union from slither.exceptions import SlitherError def convert_string_to_fraction(val: Union[str, int]) -> Fraction: if isinstance(val, int): return Fraction(val) if val.startswith(("0x", "0X")): return Fraction(int(val, 16)) # Fractions d...
1,252
Python
.py
27
38.259259
134
0.643385
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,120
myprettytable.py
NioTheFirst_ScType/slither/utils/myprettytable.py
from typing import List, Dict from prettytable import PrettyTable class MyPrettyTable: def __init__(self, field_names: List[str]): self._field_names = field_names self._rows: List = [] def add_row(self, row: List[str]) -> None: self._rows.append(row) def to_pretty_table(self) ->...
641
Python
.py
17
30.647059
70
0.620746
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,121
comparable_enum.py
NioTheFirst_ScType/slither/utils/comparable_enum.py
from enum import Enum # pylint: disable=comparison-with-callable class ComparableEnum(Enum): def __eq__(self, other): if isinstance(other, ComparableEnum): return self.value == other.value return False def __ne__(self, other): if isinstance(other, ComparableEnum): ...
638
Python
.py
19
25.894737
45
0.619281
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,122
function.py
NioTheFirst_ScType/slither/utils/function.py
from Crypto.Hash import keccak def get_function_id(sig: str) -> int: """' Return the function id of the given signature Args: sig (str) Return: (int) """ digest = keccak.new(digest_bits=256) digest.update(sig.encode("utf-8")) return int("0x" + digest.hexdigest()[:8]...
326
Python
.py
12
21.666667
53
0.608974
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,123
output_capture.py
NioTheFirst_ScType/slither/utils/output_capture.py
import io import logging import sys class CapturingStringIO(io.StringIO): """ I/O implementation which captures output, and optionally mirrors it to the original I/O stream it replaces. """ def __init__(self, original_io=None): super().__init__() self.original_io = original_io de...
3,225
Python
.py
81
30.876543
111
0.652924
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,124
source_mapping.py
NioTheFirst_ScType/slither/utils/source_mapping.py
from typing import List from crytic_compile import CryticCompile from slither.core.declarations import Contract, Function, Enum, Event, Import, Pragma, Structure from slither.core.solidity_types.type import Type from slither.core.source_mapping.source_mapping import Source, SourceMapping from slither.core.variables.var...
2,288
Python
.py
45
45.666667
97
0.744509
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,125
codex.py
NioTheFirst_ScType/slither/utils/codex.py
import logging import os from argparse import ArgumentParser from pathlib import Path from slither.utils.command_line import defaults_flag_in_config logger = logging.getLogger("Slither") def init_parser(parser: ArgumentParser, always_enable_codex: bool = False) -> None: """ Init the cli arg with codex featu...
3,387
Python
.py
90
30.422222
165
0.650886
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,126
output.py
NioTheFirst_ScType/slither/utils/output.py
import hashlib import os import json import logging import zipfile from collections import OrderedDict from typing import Optional, Dict, List, Union, Any, TYPE_CHECKING, Type from zipfile import ZipFile from pkg_resources import require from slither.core.cfg.node import Node from slither.core.declarations import Cont...
25,854
Python
.py
569
37.077329
116
0.500616
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,127
code_complexity.py
NioTheFirst_ScType/slither/utils/code_complexity.py
# Function computing the code complexity from typing import TYPE_CHECKING, List if TYPE_CHECKING: from slither.core.declarations import Function from slither.core.cfg.node import Node def compute_number_edges(function: "Function") -> int: """ Compute the number of edges of the CFG Args: f...
2,197
Python
.py
69
24.913043
105
0.634515
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,128
utils.py
NioTheFirst_ScType/slither/utils/utils.py
from typing import List def unroll(list_to_unroll: List) -> List: ret = [] for x in list_to_unroll: if not isinstance(x, list): ret += [x] else: ret += unroll(x) return ret
227
Python
.py
9
18.222222
41
0.541667
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,129
standard_libraries.py
NioTheFirst_ScType/slither/utils/standard_libraries.py
from pathlib import Path from typing import Optional, TYPE_CHECKING from hashlib import sha1 from slither.utils.oz_hashes import oz_hashes if TYPE_CHECKING: from slither.core.declarations import Contract libraries = { "Openzeppelin-SafeMath": lambda x: is_openzeppelin_safemath(x), "Openzeppelin-ECRecovery...
12,133
Python
.py
220
51.4
93
0.546456
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,130
oz_hashes.py
NioTheFirst_ScType/slither/utils/oz_hashes.py
from typing import NamedTuple, List class LibraryInfo(NamedTuple): name: str versons: List[str] # pylint: disable=too-many-lines oz_hashes = { "16ad4eed535bc7e7ea4d1096618d68ffe5a02287": LibraryInfo("Bounty", ["v1.3.0"]), "896a88e86ba21fe176d5e3de434af62ee531b1d5": LibraryInfo( "Target", ["v...
251,870
Python
.py
6,370
30.687598
100
0.555353
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,131
arithmetic.py
NioTheFirst_ScType/slither/utils/arithmetic.py
from slither.exceptions import SlitherException from slither.utils.integer_conversion import convert_string_to_fraction # pylint: disable=too-many-branches def convert_subdenomination( value: str, sub: str ) -> int: # pylint: disable=too-many-return-statements decimal_value = convert_string_to_fraction(value...
1,163
Python
.py
30
32.866667
90
0.638053
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,132
type.py
NioTheFirst_ScType/slither/utils/type.py
import math from typing import List, Union, Set from slither.core.solidity_types import ArrayType, MappingType, ElementaryType, UserDefinedType from slither.core.solidity_types.type import Type from slither.core.variables.variable import Variable def _convert_type_for_solidity_signature_to_string( types: Union[T...
6,658
Python
.py
157
34.853503
119
0.663729
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,133
type_helpers.py
NioTheFirst_ScType/slither/utils/type_helpers.py
from typing import Union, Tuple, TYPE_CHECKING if TYPE_CHECKING: from slither.core.declarations import ( Function, SolidityFunction, Contract, SolidityVariable, ) from slither.core.variables.variable import Variable ### core.declaration # pylint: disable=used-before-assignm...
549
Python
.py
15
32.533333
64
0.774436
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,134
erc.py
NioTheFirst_ScType/slither/utils/erc.py
from collections import namedtuple from typing import List ERC = namedtuple("ERC", ["name", "parameters", "return_type", "view", "required", "events"]) ERC_EVENT = namedtuple("ERC_EVENT", ["name", "parameters", "indexes"]) def erc_to_signatures(erc: List[ERC]): """ Return the list of mandatory signatures ...
12,953
Python
.py
405
26.723457
100
0.585274
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,135
inheritance_analysis.py
NioTheFirst_ScType/slither/utils/inheritance_analysis.py
""" Detects various properties of inheritance in provided contracts. """ from collections import defaultdict from typing import TYPE_CHECKING, List, Dict, Set, Tuple if TYPE_CHECKING: from slither.core.declarations import Contract, Function from slither.core.variables.state_variable import StateVariable def...
2,919
Python
.py
59
40.508475
113
0.683509
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,136
command_line.py
NioTheFirst_ScType/slither/utils/command_line.py
import argparse import json import os import re import logging from collections import defaultdict from typing import Dict, List, Type, Union from crytic_compile.cryticparser.defaults import ( DEFAULTS_FLAG_IN_CONFIG as DEFAULTS_FLAG_IN_CONFIG_CRYTIC_COMPILE, ) from slither.detectors.abstract_detector import clas...
12,940
Python
.py
345
29.315942
98
0.607809
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,137
expression_manipulations.py
NioTheFirst_ScType/slither/utils/expression_manipulations.py
""" We use protected member, to avoid having setter in the expression as they should be immutable """ import copy from typing import Union, Callable from slither.core.expressions import UnaryOperation from slither.core.expressions.assignment_operation import AssignmentOperation from slither.core.expressions.bin...
8,621
Python
.py
184
36.027174
105
0.640809
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,138
all_detectors.py
NioTheFirst_ScType/slither/detectors/all_detectors.py
# pylint: disable=unused-import,relative-beyond-top-level from .examples.backdoor import Backdoor #from .my_detectors.detect_external import detect_external #from .my_detectors.detect_round import detect_round from .my_detectors.tcheck import tcheck from .variables.uninitialized_state_variables import UninitializedStat...
5,638
Python
.py
91
60.89011
84
0.888368
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,139
abstract_detector.py
NioTheFirst_ScType/slither/detectors/abstract_detector.py
import abc import re from logging import Logger from typing import Optional, List, TYPE_CHECKING, Dict, Union, Callable from slither.core.compilation_unit import SlitherCompilationUnit from slither.core.declarations import Contract from slither.utils.colors import green, yellow, red from slither.formatters.exceptions ...
10,489
Python
.py
235
33.080851
121
0.599059
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,140
state.py
NioTheFirst_ScType/slither/detectors/shadowing/state.py
""" Module detecting shadowing of state variables """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.declarations import Contract from .common import is_upgradable_gap_variable def detect_shadowing(contract: Contract): ret = [] variables_fathers = [...
2,622
Python
.py
73
28.150685
99
0.645034
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,141
local.py
NioTheFirst_ScType/slither/detectors/shadowing/local.py
""" Module detecting local variable shadowing """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class LocalShadowing(AbstractDetector): """ Local variable shadowing """ ARGUMENT = "shadowing-local" HELP = "Local variables shadowing" IMPACT = Detecto...
4,794
Python
.py
100
35.05
126
0.600985
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,142
builtin_symbols.py
NioTheFirst_ScType/slither/detectors/shadowing/builtin_symbols.py
""" Module detecting reserved keyword shadowing """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class BuiltinSymbolShadowing(AbstractDetector): """ Built-in symbol shadowing """ ARGUMENT = "shadowing-builtin" HELP = "Built-in symbol shadowing" IMP...
6,080
Python
.py
161
28.440994
226
0.611857
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,143
abstract.py
NioTheFirst_ScType/slither/detectors/shadowing/abstract.py
""" Module detecting shadowing variables on abstract contract Recursively check the called functions """ from typing import List from slither.core.declarations import Contract from slither.core.variables.state_variable import StateVariable from slither.detectors.abstract_detector import AbstractDetector, DetectorClass...
2,795
Python
.py
67
34.283582
123
0.685493
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,144
common.py
NioTheFirst_ScType/slither/detectors/shadowing/common.py
from slither.core.declarations import Contract from slither.core.variables.state_variable import StateVariable from slither.core.solidity_types import ArrayType, ElementaryType def is_upgradable_gap_variable(contract: Contract, variable: StateVariable) -> bool: """Helper function that returns true if 'variable' i...
1,164
Python
.py
24
42.625
100
0.730159
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,145
incorrect_erc721_interface.py
NioTheFirst_ScType/slither/detectors/erc/incorrect_erc721_interface.py
""" Detect incorrect erc721 interface. """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class IncorrectERC721InterfaceDetection(AbstractDetector): """ Incorrect ERC721 Interface """ ARGUMENT = "erc721-interface" HELP = "Incorrect ERC721 interfaces" ...
4,317
Python
.py
107
30.53271
256
0.60272
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,146
unindexed_event_parameters.py
NioTheFirst_ScType/slither/detectors/erc/unindexed_event_parameters.py
""" Detect mistakenly un-indexed ERC20 event parameters """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class UnindexedERC20EventParameters(AbstractDetector): """ Un-indexed ERC20 event parameters """ ARGUMENT = "erc20-indexed" HELP = "Un-indexed ERC20...
3,669
Python
.py
75
39.133333
227
0.653706
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,147
incorrect_erc20_interface.py
NioTheFirst_ScType/slither/detectors/erc/erc20/incorrect_erc20_interface.py
""" Detect incorrect erc20 interface. Some contracts do not return a bool on transfer/transferFrom/approve, which may lead to preventing the contract to be used with contracts compiled with recent solc (>0.4.22) """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class Incorre...
3,985
Python
.py
92
33.73913
233
0.6303
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,148
arbitrary_send_erc20.py
NioTheFirst_ScType/slither/detectors/erc/erc20/arbitrary_send_erc20.py
from typing import List from slither.core.cfg.node import Node from slither.core.declarations.solidity_variables import SolidityVariable from slither.slithir.operations import HighLevelCall, LibraryCall from slither.core.declarations import Contract, Function, SolidityVariableComposed from slither.analyses.data_depende...
4,022
Python
.py
86
31.011628
114
0.550293
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,149
arbitrary_send_erc20_permit.py
NioTheFirst_ScType/slither/detectors/erc/erc20/arbitrary_send_erc20_permit.py
from typing import List from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.utils.output import Output from .arbitrary_send_erc20 import ArbitrarySendErc20 class ArbitrarySendErc20Permit(AbstractDetector): """ Detect when `msg.sender` is not used as `from` in ...
2,012
Python
.py
44
38.613636
168
0.690658
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,150
arbitrary_send_erc20_no_permit.py
NioTheFirst_ScType/slither/detectors/erc/erc20/arbitrary_send_erc20_no_permit.py
from typing import List from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.utils.output import Output from .arbitrary_send_erc20 import ArbitrarySendErc20 class ArbitrarySendErc20NoPermit(AbstractDetector): """ Detect when `msg.sender` is not used as `from` i...
1,666
Python
.py
36
40.472222
198
0.710056
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,151
reentrancy_benign.py
NioTheFirst_ScType/slither/detectors/reentrancy/reentrancy_benign.py
"""" Re-entrancy detection Based on heuristics, it may lead to FP and FN Iterate over all the nodes of the graph until reaching a fixpoint """ from collections import namedtuple, defaultdict from typing import List from slither.detectors.abstract_detector import DetectorClassification from .reentrancy imp...
7,452
Python
.py
151
32.655629
161
0.51196
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,152
token.py
NioTheFirst_ScType/slither/detectors/reentrancy/token.py
from collections import defaultdict from typing import Dict, List from slither.analyses.data_dependency.data_dependency import is_dependent from slither.core.cfg.node import Node from slither.core.declarations import Function, Contract, SolidityVariableComposed from slither.detectors.abstract_detector import AbstractD...
3,589
Python
.py
82
33.426829
116
0.63298
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,153
reentrancy_events.py
NioTheFirst_ScType/slither/detectors/reentrancy/reentrancy_events.py
"""" Re-entrancy detection Based on heuristics, it may lead to FP and FN Iterate over all the nodes of the graph until reaching a fixpoint """ from collections import namedtuple, defaultdict from slither.detectors.abstract_detector import DetectorClassification from .reentrancy import Reentrancy, to_hasha...
6,396
Python
.py
129
34.449612
161
0.534135
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,154
reentrancy.py
NioTheFirst_ScType/slither/detectors/reentrancy/reentrancy.py
"""" Re-entrancy detection Based on heuristics, it may lead to FP and FN Iterate over all the nodes of the graph until reaching a fixpoint """ from collections import defaultdict from typing import Set, Dict, List, Tuple, Optional from slither.core.cfg.node import NodeType, Node from slither.core.declarat...
10,740
Python
.py
251
32.430279
97
0.599463
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,155
reentrancy_eth.py
NioTheFirst_ScType/slither/detectors/reentrancy/reentrancy_eth.py
"""" Re-entrancy detection Based on heuristics, it may lead to FP and FN Iterate over all the nodes of the graph until reaching a fixpoint """ from collections import namedtuple, defaultdict from typing import List, Dict, Set from slither.detectors.abstract_detector import DetectorClassification from .ree...
8,599
Python
.py
166
34.325301
161
0.513205
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,156
reentrancy_read_before_write.py
NioTheFirst_ScType/slither/detectors/reentrancy/reentrancy_read_before_write.py
"""" Re-entrancy detection Based on heuristics, it may lead to FP and FN Iterate over all the nodes of the graph until reaching a fixpoint """ from collections import namedtuple, defaultdict from typing import Dict, Set, List from slither.detectors.abstract_detector import DetectorClassification from .ree...
7,125
Python
.py
146
32.047945
161
0.514812
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,157
reentrancy_no_gas.py
NioTheFirst_ScType/slither/detectors/reentrancy/reentrancy_no_gas.py
"""" Re-entrancy detection Based on heuristics, it may lead to FP and FN Iterate over all the nodes of the graph until reaching a fixpoint """ from collections import namedtuple, defaultdict from slither.core.variables.variable import Variable from slither.detectors.abstract_detector import DetectorClassi...
8,768
Python
.py
180
32.25
161
0.511571
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,158
missing_events_access_control.py
NioTheFirst_ScType/slither/detectors/operations/missing_events_access_control.py
""" Module detecting missing events for critical contract parameters set by owners and used in access control """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.analyses.data_dependency.data_dependency import is_tainted from slither.slithir.operations.event_call ...
3,969
Python
.py
82
39.292683
116
0.670026
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,159
void_constructor.py
NioTheFirst_ScType/slither/detectors/operations/void_constructor.py
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import Nop class VoidConstructor(AbstractDetector): ARGUMENT = "void-cst" HELP = "Constructor called not implemented" IMPACT = DetectorClassification.LOW CONFIDENCE = DetectorClass...
1,543
Python
.py
35
34.8
121
0.638852
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,160
low_level_calls.py
NioTheFirst_ScType/slither/detectors/operations/low_level_calls.py
""" Module detecting usage of low level calls """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import LowLevelCall class LowLevelCalls(AbstractDetector): """ Detect usage of low level calls """ ARGUMENT = "low-level-calls" ...
2,169
Python
.py
47
37.085106
254
0.644687
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,161
missing_zero_address_validation.py
NioTheFirst_ScType/slither/detectors/operations/missing_zero_address_validation.py
""" Module detecting missing zero address validation """ from collections import defaultdict from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.analyses.data_dependency.data_dependency import is_tainted from slither.core.solidity_types.elementary_type import Elementa...
5,959
Python
.py
128
34.445313
130
0.606128
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,162
unchecked_send_return_value.py
NioTheFirst_ScType/slither/detectors/operations/unchecked_send_return_value.py
""" Module detecting unused return values from send """ from slither.detectors.abstract_detector import DetectorClassification from slither.detectors.operations.unused_return_values import UnusedReturnValues from slither.slithir.operations import Send class UncheckedSend(UnusedReturnValues): """ If the retur...
1,364
Python
.py
33
37.393939
106
0.747352
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,163
unchecked_transfer.py
NioTheFirst_ScType/slither/detectors/operations/unchecked_transfer.py
""" Module detecting unused transfer/transferFrom return values from external calls """ from slither.core.declarations import Function from slither.detectors.abstract_detector import DetectorClassification from slither.detectors.operations.unused_return_values import UnusedReturnValues from slither.slithir.operations ...
2,021
Python
.py
45
39.844444
207
0.739705
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,164
block_timestamp.py
NioTheFirst_ScType/slither/detectors/operations/block_timestamp.py
""" Module detecting dangerous use of block.timestamp """ from typing import List, Tuple from slither.analyses.data_dependency.data_dependency import is_dependent from slither.core.cfg.node import Node from slither.core.declarations import Function, Contract from slither.core.declarations.solidity_variables impor...
3,191
Python
.py
74
33.743243
173
0.633193
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,165
unused_return_values.py
NioTheFirst_ScType/slither/detectors/operations/unused_return_values.py
""" Module detecting unused return values from external calls """ from slither.core.variables.state_variable import StateVariable from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import HighLevelCall from slither.core.declarations import Function ...
3,251
Python
.py
77
32.142857
120
0.616529
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,166
bad_prng.py
NioTheFirst_ScType/slither/detectors/operations/bad_prng.py
""" Module detecting bad PRNG due to the use of block.timestamp, now or blockhash (block.blockhash) as a source of randomness """ from typing import List, Tuple from slither.analyses.data_dependency.data_dependency import is_dependent_ssa from slither.core.cfg.node import Node from slither.core.declarations import Fu...
4,565
Python
.py
110
33.836364
170
0.662382
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,167
unchecked_low_level_return_values.py
NioTheFirst_ScType/slither/detectors/operations/unchecked_low_level_return_values.py
""" Module detecting unused return values from low level """ from slither.detectors.abstract_detector import DetectorClassification from slither.detectors.operations.unused_return_values import UnusedReturnValues from slither.slithir.operations import LowLevelCall class UncheckedLowLevel(UnusedReturnValues): """ ...
1,467
Python
.py
33
40.545455
118
0.758065
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,168
missing_events_arithmetic.py
NioTheFirst_ScType/slither/detectors/operations/missing_events_arithmetic.py
""" Module detecting missing events for critical contract parameters set by owners and used in arithmetic """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.analyses.data_dependency.data_dependency import is_tainted from slither.slithir.operations.event_call impo...
4,622
Python
.py
100
36.2
114
0.646602
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,169
backdoor.py
NioTheFirst_ScType/slither/detectors/examples/backdoor.py
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class Backdoor(AbstractDetector): """ Detect function named backdoor """ ARGUMENT = "backdoor" # slither will launch the detector with slither.py --mydetector HELP = "Function named backdoor (detector exampl...
1,174
Python
.py
27
33.888889
90
0.636523
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,170
shift_parameter_mixup.py
NioTheFirst_ScType/slither/detectors/assembly/shift_parameter_mixup.py
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import Binary, BinaryType from slither.slithir.variables import Constant class ShiftParameterMixup(AbstractDetector): """ Check for cases where a return(a,b) is used in an assembly function...
2,044
Python
.py
52
29.980769
103
0.622537
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,171
mapping_deletion.py
NioTheFirst_ScType/slither/detectors/statements/mapping_deletion.py
""" Detect deletion on structure containing a mapping """ from slither.core.declarations import Structure from slither.core.solidity_types import MappingType, UserDefinedType from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import Delete class M...
3,064
Python
.py
70
34.314286
256
0.641826
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,172
unprotected_upgradeable.py
NioTheFirst_ScType/slither/detectors/statements/unprotected_upgradeable.py
from typing import List from slither.core.declarations import SolidityFunction, Function from slither.core.declarations.contract import Contract from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import LowLevelCall, SolidityCall def _can_be_destr...
5,197
Python
.py
102
38.019608
185
0.61716
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,173
incorrect_strict_equality.py
NioTheFirst_ScType/slither/detectors/statements/incorrect_strict_equality.py
""" Module detecting dangerous strict equality """ from slither.analyses.data_dependency.data_dependency import is_dependent_ssa from slither.core.declarations import Function from slither.core.declarations.function_top_level import FunctionTopLevel from slither.detectors.abstract_detector import AbstractDetector...
5,750
Python
.py
129
32.75969
130
0.606977
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,174
unary.py
NioTheFirst_ScType/slither/detectors/statements/unary.py
""" Module detecting the incorrect use of unary expressions """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.visitors.expression.expression import ExpressionVisitor from slither.core.expressions.unary_operation import UnaryOperationType, UnaryOperation class I...
3,046
Python
.py
69
34.782609
100
0.661939
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,175
divide_before_multiply.py
NioTheFirst_ScType/slither/detectors/statements/divide_before_multiply.py
""" Module detecting possible loss of precision due to divide before multiple """ from collections import defaultdict from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import Binary, Assignment, BinaryType, LibraryCall from slither.slithir.variables...
6,948
Python
.py
157
33.764331
164
0.610724
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,176
delegatecall_in_loop.py
NioTheFirst_ScType/slither/detectors/statements/delegatecall_in_loop.py
from typing import List, Optional from slither.core.cfg.node import NodeType, Node from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import LowLevelCall, InternalCall from slither.core.declarations import Contract from slither.utils.output import Ou...
3,301
Python
.py
78
35.525641
126
0.6825
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,177
type_based_tautology.py
NioTheFirst_ScType/slither/detectors/statements/type_based_tautology.py
""" Module detecting tautologies and contradictions based on types in comparison operations over integers """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import Binary, BinaryType from slither.slithir.variables import Constant from slither.co...
5,553
Python
.py
147
27.496599
101
0.565298
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,178
boolean_constant_equality.py
NioTheFirst_ScType/slither/detectors/statements/boolean_constant_equality.py
""" Module detecting misuse of Boolean constants """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import ( Binary, BinaryType, ) from slither.slithir.variables import Constant class BooleanEquality(AbstractDetector): """ Bool...
2,783
Python
.py
74
27.243243
93
0.58782
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,179
assert_state_change.py
NioTheFirst_ScType/slither/detectors/statements/assert_state_change.py
""" Module detecting state changes in assert calls """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations.internal_call import InternalCall def detect_assert_state_change(contract): """ Detects and returns all nodes with assert calls that c...
2,987
Python
.py
73
32.575342
159
0.643103
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,180
controlled_delegatecall.py
NioTheFirst_ScType/slither/detectors/statements/controlled_delegatecall.py
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import LowLevelCall from slither.analyses.data_dependency.data_dependency import is_tainted def controlled_delegatecall(function): ret = [] for node in function.nodes: for ir in nod...
2,417
Python
.py
53
35.075472
149
0.640578
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,181
costly_operations_in_loop.py
NioTheFirst_ScType/slither/detectors/statements/costly_operations_in_loop.py
from typing import List, Optional from slither.core.cfg.node import NodeType, Node from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.declarations import Contract from slither.utils.output import Output from slither.slithir.operations import InternalCall, Operatio...
3,559
Python
.py
84
35.25
131
0.676803
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,182
calls_in_loop.py
NioTheFirst_ScType/slither/detectors/statements/calls_in_loop.py
from typing import List, Optional from slither.core.cfg.node import NodeType, Node from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.declarations import Contract from slither.utils.output import Output from slither.slithir.operations import ( HighLevelCall, ...
3,041
Python
.py
79
31.443038
165
0.663946
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,183
too_many_digits.py
NioTheFirst_ScType/slither/detectors/statements/too_many_digits.py
""" Module detecting numbers with too many digits. """ import re from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.variables import Constant _HEX_ADDRESS_REGEXP = re.compile("(0[xX])?[0-9a-fA-F]{40}") def is_hex_address(value) -> bool: """ Checks i...
3,220
Python
.py
77
32.896104
111
0.632118
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,184
msg_value_in_loop.py
NioTheFirst_ScType/slither/detectors/statements/msg_value_in_loop.py
from typing import List, Optional from slither.core.cfg.node import NodeType, Node from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import InternalCall from slither.core.declarations import SolidityVariableComposed, Contract from slither.utils.outp...
2,814
Python
.py
71
33.140845
98
0.673649
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,185
write_after_write.py
NioTheFirst_ScType/slither/detectors/statements/write_after_write.py
from typing import List, Set, Tuple, Dict from slither.core.cfg.node import Node, NodeType from slither.core.solidity_types import ElementaryType from slither.core.variables.state_variable import StateVariable from slither.core.variables.variable import Variable from slither.detectors.abstract_detector import Abstract...
4,506
Python
.py
114
30.947368
115
0.637134
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,186
redundant_statements.py
NioTheFirst_ScType/slither/detectors/statements/redundant_statements.py
""" Module detecting redundant statements. """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.cfg.node import NodeType from slither.core.expressions.elementary_type_name_expression import ElementaryTypeNameExpression from slither.core.expressions.identifier i...
3,137
Python
.py
70
36.371429
160
0.682863
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,187
deprecated_calls.py
NioTheFirst_ScType/slither/detectors/statements/deprecated_calls.py
""" Module detecting deprecated standards. """ from slither.core.cfg.node import NodeType from slither.core.declarations.solidity_variables import ( SolidityVariableComposed, SolidityFunction, ) from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operat...
6,878
Python
.py
142
38.225352
111
0.644925
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,188
tx_origin.py
NioTheFirst_ScType/slither/detectors/statements/tx_origin.py
""" Module detecting usage of `tx.origin` in a conditional node """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class TxOrigin(AbstractDetector): """ Detect usage of tx.origin in a conditional node """ ARGUMENT = "tx-origin" HELP = "Dangerous usage of...
2,685
Python
.py
67
31.298507
151
0.621206
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,189
array_length_assignment.py
NioTheFirst_ScType/slither/detectors/statements/array_length_assignment.py
""" Module detecting assignment of array length """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, ALL_SOLC_VERSIONS_04, ALL_SOLC_VERSIONS_05, ) from slither.core.cfg.node import NodeType from slither.slithir.operations import Assignment, Length from slither...
5,281
Python
.py
109
38.238532
162
0.638517
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,190
assembly.py
NioTheFirst_ScType/slither/detectors/statements/assembly.py
""" Module detecting usage of inline assembly """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.cfg.node import NodeType class Assembly(AbstractDetector): """ Detect usage of inline assembly """ ARGUMENT = "assembly" HELP = "Assembly u...
1,875
Python
.py
49
28.979592
89
0.615554
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,191
boolean_constant_misuse.py
NioTheFirst_ScType/slither/detectors/statements/boolean_constant_misuse.py
""" Module detecting misuse of Boolean constants """ from slither.core.cfg.node import NodeType from slither.core.solidity_types import ElementaryType from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import ( Assignment, Call, Return, ...
4,143
Python
.py
108
27.564815
129
0.580035
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,192
naming_convention.py
NioTheFirst_ScType/slither/detectors/naming_convention/naming_convention.py
import re from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.formatters.naming_convention.naming_convention import custom_format class NamingConvention(AbstractDetector): """ Check if naming conventions are followed https://solidity.readthedocs.io/en/v0.4...
8,015
Python
.py
153
35.75817
148
0.533683
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,193
constant_pragma.py
NioTheFirst_ScType/slither/detectors/attributes/constant_pragma.py
""" Check that the same pragma is used in all the files """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.formatters.attributes.constant_pragma import custom_format class ConstantPragma(AbstractDetector): """ Check that the same pragma is used in al...
1,507
Python
.py
33
38.454545
111
0.684463
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,194
incorrect_solc.py
NioTheFirst_ScType/slither/detectors/attributes/incorrect_solc.py
""" Check if an incorrect version of solc is used """ import re from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.formatters.attributes.incorrect_solc import custom_format # group: # 0: ^ > >= < <= (optional) # 1: ' ' (optional) # 2: version number # 3: version ...
5,882
Python
.py
145
31.710345
123
0.601472
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,195
const_functions_state.py
NioTheFirst_ScType/slither/detectors/attributes/const_functions_state.py
""" Module detecting constant functions Recursively check the called functions """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, ALL_SOLC_VERSIONS_04, ) from slither.formatters.attributes.const_functions import custom_format class ConstantFunctionsState(Abstra...
3,187
Python
.py
72
35.513889
215
0.653747
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,196
locked_ether.py
NioTheFirst_ScType/slither/detectors/attributes/locked_ether.py
""" Check if ethers are locked in the contract """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.slithir.operations import ( HighLevelCall, LowLevelCall, Send, Transfer, NewContract, LibraryCall, InternalCall, ) class LockedEther...
3,474
Python
.py
80
30.8375
100
0.578574
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,197
unimplemented_interface.py
NioTheFirst_ScType/slither/detectors/attributes/unimplemented_interface.py
""" Module detecting unimplemented interfaces Collect all the interfaces Check for contracts which implement all interface functions but do not explicitly derive from those interfaces. """ from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification class MissingInheritance(AbstractDetec...
5,485
Python
.py
118
35.008475
120
0.636789
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,198
const_functions_asm.py
NioTheFirst_ScType/slither/detectors/attributes/const_functions_asm.py
""" Module detecting constant functions Recursively check the called functions """ from slither.detectors.abstract_detector import ( AbstractDetector, DetectorClassification, ALL_SOLC_VERSIONS_04, ) from slither.formatters.attributes.const_functions import custom_format class ConstantFunctionsAsm(Abstract...
2,911
Python
.py
66
36.984848
215
0.686351
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,199
arbitrary_send_eth.py
NioTheFirst_ScType/slither/detectors/functions/arbitrary_send_eth.py
""" Module detecting send to arbitrary address To avoid FP, it does not report: - If msg.sender is used as index (withdraw situation) - If the function is protected - If the value sent is msg.value (repay situation) - If there is a call to transferFrom TODO: dont report if ...
4,616
Python
.py
117
29.777778
126
0.623882
NioTheFirst/ScType
8
4
1
AGPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)