Skip to content

Commit

Permalink
fix: ens-owners group (#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinGbz authored Jul 24, 2023
1 parent 6cdce9f commit 61d2cce
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions group-generators/generators/ens-owners/index.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,24 @@

import { dataProviders } from "@group-generators/helpers/data-providers";
import { Tags, ValueType, GroupWithData } from "topics/group";
import {
GenerationContext,
GenerationFrequency,
GroupGenerator,
} from "topics/group-generator";

// Generated from factory.sismo.io
import { GenerationContext, GenerationFrequency, GroupGenerator } from "topics/group-generator";

const generator: GroupGenerator = {

generationFrequency: GenerationFrequency.Daily,

generate: async (context: GenerationContext): Promise<GroupWithData[]> => {

const tokenProvider = new dataProviders.TokenProvider();

const tokenProviderData0 = await tokenProvider.getERC721Holders({
contractAddress: "0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72"
contractAddress: "0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85",
});

return [
{
name: "ens-owners",
timestamp: context.timestamp,
description: "Data Group of all ENS owners",
specs: "Contains all Ethereum Name Service NFT owners. The value of each group member corresponds to the number of NFTs held.",
specs:
"Contains all Ethereum Name Service NFT owners. The value of each group member corresponds to the number of NFTs held.",
data: tokenProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory, Tags.Maintained],
Expand Down

0 comments on commit 61d2cce

Please sign in to comment.