Convertor.set_conversions()
from glider import *
def query():
# Create a Convertor object
convertor = Convertor()
# Set conversion from address to bytes20
convertor.set_conversions({"bytes20": ["address", "uint160"]})
# Fetch a list of functions
funs = Functions().exec(10)
# Return the functions with at least one argument convertible to bytes20
# It will be only the argument of type address
output = []
for fun in funs:
args = fun.arguments().with_type_convertible(["bytes20"], convertor)
if args:
output.append(fun)
return outputLast updated