Functions.with_declarer_contract_name()
Adds a filter to get functions that have declarer contract with the given name.
The function adds a filter for the functions to be declared in a contract with a specific name.
Example
from glider import *
def query():
# lets say we want to take transferFrom functions, but only from ERC721 contracts and not ERC20
functions = Functions()\
.with_name('transferFrom')\
.with_declarer_contract_name('ERC721')\
.exec(3)
return functions
Example Output

Last updated