Callables.with_name_suffixes()
with_name_suffixes(
suffixes: List[str]
,
sensitivity: bool = True
) →
Callables
Adds a filter to get callables whose names have suffixes from the given list of suffixes. Returns a filtered Callables child object. This method can be called on all Callables child classes: Functions and Modifiers.
To filter given a single prefix, refer to Callables.with_name_suffix().
Functions Example
from glider import *
def query():
# Retrieve the functions that have `Flashloan` or `cast` as suffix
functions = Functions().with_name_suffixes(["Flashloan", "cast"]).exec(100)
# Return the first five functions
return functions[:5]
Output:

Modifiers Example
from glider import *
def query():
# Retrieve the modifiers that have `Initialized` or `Open` as suffix
modifiers = Modifiers().with_name_suffixes(["Initialized", "Open"]).exec(100)
# Return the first five modifiers
return modifiers[:5]
Output:

Last updated