From d19aa7e19881efc74002d09d69a5a8065fc23b7d Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Sat, 7 Oct 2023 00:09:00 +0200 Subject: [PATCH] [factory]: Adding new quo-rome group --- group-generators/generators/index.ts | 2 + group-generators/generators/quo-rome/index.ts | 39 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 group-generators/generators/quo-rome/index.ts diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index 67abef04e..c358bb84c 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -571,6 +571,7 @@ import purple from "./purple"; import pvnz from "./pvnz"; import qp from "./qp"; import quentintwitterfrens from "./quentintwitterfrens"; +import quoRome from "./quo-rome"; import qwert from "./qwert"; import ra from "./ra"; import rahulkrLensFollowers from "./rahulkr-lens-followers"; @@ -1438,6 +1439,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "pvnz": pvnz, "qp": qp, "quentintwitterfrens": quentintwitterfrens, + "quo-rome": quoRome, "qwert": qwert, "ra": ra, "rahulkr-lens-followers": rahulkrLensFollowers, diff --git a/group-generators/generators/quo-rome/index.ts b/group-generators/generators/quo-rome/index.ts new file mode 100644 index 000000000..ab44b9c52 --- /dev/null +++ b/group-generators/generators/quo-rome/index.ts @@ -0,0 +1,39 @@ + +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 alchemyProvider = new dataProviders.AlchemyProvider(); + + const alchemyProviderData0 = await alchemyProvider.getOwnersForCollection({ + contractAddress: "0xe36f3FFd23E639c2324116d64Cce557B8a51165E", + chain: "polygon-mumbai" + }); + + return [ + { + name: "quo-rome", + timestamp: context.timestamp, + description: "Quo-Rome DAO", + specs: "Quo-Rome DAO owner.", + data: alchemyProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator;