Skip to content

Commit

Permalink
[factory]: Adding new poap-for-push-roadshow group (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 20, 2023
1 parent 0826e7a commit 9f05710
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/poap-for-push-roadshow/index.ts
Original file line number Diff line number Diff line change
@@ -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<GroupWithData[]> => {

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;

0 comments on commit 9f05710

Please sign in to comment.