From b87ada4330c4fcde65b4ecab10cb61c0c5db598c Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Sat, 7 Oct 2023 20:23:31 +0200 Subject: [PATCH] [factory]: Adding new ethrome-2023 group --- .../generators/ethrome-2023/index.ts | 38 +++++++++++++++++++ group-generators/generators/index.ts | 2 + 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/ethrome-2023/index.ts diff --git a/group-generators/generators/ethrome-2023/index.ts b/group-generators/generators/ethrome-2023/index.ts new file mode 100644 index 000000000..24bbe9e69 --- /dev/null +++ b/group-generators/generators/ethrome-2023/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: [ "155802" ] + }); + + return [ + { + name: "ethrome-2023", + timestamp: context.timestamp, + description: "ETHRome 2023 Attendees", + specs: "Holders of the ETHRome 2023 POAP", + data: poapSubgraphProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator; diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index 803b89e11..8a7270934 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -225,6 +225,7 @@ import ethglobalWaterlooPrototype from "./ethglobal-waterloo-prototype"; import ethicalAttitude from "./ethical-attitude"; import ethmedbridgeRecordtype1 from "./ethmedbridge-recordtype-1"; import ethporto from "./ethporto"; +import ethrome2023 from "./ethrome-2023"; import eventsInCommonWithDydymoon from "./events-in-common-with-dydymoon"; import everwaveFounder from "./everwave-founder"; import exampleAlchemy from "./example-alchemy" @@ -1063,6 +1064,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "ethglobal-waterloo-prototype": ethglobalWaterlooPrototype, "ethical-attitude": ethicalAttitude, "ethmedbridge-recordtype-1": ethmedbridgeRecordtype1, + "ethrome-2023": ethrome2023, "events-in-common-with-dydymoon": eventsInCommonWithDydymoon, "farcaster-v3-nft-holders": farcasterV3NftHolders, "fei-snapshot-passer": feiSnapshotPasser,