from glider import*defquery():# Find contracts with the suffix "ERC20" contracts =Contracts().name_suffix("ERC20").exec(100) contractsWithEvents = []for c in contracts: contract ={"name": c.name,"events": []}for event in c.events(): contract["events"].append(event.name)# For each contract, return its name and the names of its events contractsWithEvents.append(contract)return contractsWithEvents