The function returns all the enums of a Contract.
enums() β List[Enum]
from glider import * def query(): contracts = Contracts().exec(100) names = [] for contract in contracts: enums = contract.enums() for enum in enums: names.append(enum.name) return [{"names": names}]
{ "names": [ "Upgradability", "Tranches" ] }
Last updated 4 months ago