diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index 791e91132..79440a713 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -551,6 +551,7 @@ import phratry from "./phratry"; import phuln13 from "./phuln13"; import pinata from "./pinata"; import plzcallmedj from "./plzcallmedj"; +import poapForPushRoadshow from "./poap-for-push-roadshow"; import poapHolderOfEthdam2023 from "./poap-holder-of-ethdam-2023"; import poapOfTesting from "./poap-of-testing"; import poapPolygonGroup from "./poap-polygon-group" @@ -1202,6 +1203,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "philand-land-owners": philandLandOwners, "philand-lens-followers": philandLensFollowers, "philand-quest-uniswap-v3-swaps": philandQuestUniswapV3Swaps, + "poap-for-push-roadshow": poapForPushRoadshow, "poap-holder-of-ethdam-2023": poapHolderOfEthdam2023, "poap-of-testing": poapOfTesting, "polygon-cake-holders": polygonCakeHolders, diff --git a/group-generators/generators/poap-for-push-roadshow/index.ts b/group-generators/generators/poap-for-push-roadshow/index.ts new file mode 100644 index 000000000..b400ab679 --- /dev/null +++ b/group-generators/generators/poap-for-push-roadshow/index.ts @@ -0,0 +1,38 @@ + +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 + +const generator: GroupGenerator = { + + generationFrequency: GenerationFrequency.Once, + + generate: async (context: GenerationContext): Promise => { + + const poapSubgraphProvider = new dataProviders.PoapSubgraphProvider(); + + const poapSubgraphProviderData0 = await poapSubgraphProvider.queryEventsTokenOwners({ + eventIds: [ "82214" ] + }); + + return [ + { + name: "poap-for-push-roadshow", + timestamp: context.timestamp, + description: "POAP", + specs: "POAP", + data: poapSubgraphProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator;