Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[factory]: Add new ethrome-2023 group #2200

Merged
merged 1 commit into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions group-generators/generators/ethrome-2023/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: [ "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;
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down
Loading