Adds a filter to get callables that have the given signature. Returns a filtered child object. This method can be called on all child classes: and .
To filter given a list of signatures, refer to .
Functions Example
from glider import *
def query():
# Retrieve all functions with the signature `transferFrom(address,address,uint256)`
functions = Functions().with_signature("transferFrom(address,address,uint256)").exec(100)
# Return the first five functions
return functions[:5]
Output:
Modifiers Example
from glider import *
def query():
# Retrieve all the modifiers with the signature `nonReentrant()`
modifiers = Modifiers().with_signature("nonReentrant()").exec(100)
# Return the first five modifiers
return modifiers[:5]