Skip to content

Commit

Permalink
[factory]: Adding new developer-dao-guild-members group (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 23, 2023
1 parent b9b225c commit 3a2b724
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions group-generators/generators/developer-dao-guild-members/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.Weekly,

generate: async (context: GenerationContext): Promise<GroupWithData[]> => {

const guildProvider = new dataProviders.GuildProvider();

const guildProviderData0 = await guildProvider.getGuildMembers({
name: "dd"
});

return [
{
name: "developer-dao-guild-members",
timestamp: context.timestamp,
description: "All the members of the DD qualify",
specs: "DD",
data: guildProviderData0,
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 @@ -170,6 +170,7 @@ import demoGroupCowTradersHolders from "./demo-group-cow-traders-holders";
import dentuso from "./dentuso";
import detectiveGems from "./detective-gems";
import devAccounts from "./dev-accounts";
import developerDaoGuildMembers from "./developer-dao-guild-members";
import developerDaoMembers from "./developer-dao-members";
import developerOfFaust from "./developer-of-faust";
import dhadrienFrens from "./dhadrien-frens";
Expand Down Expand Up @@ -1095,6 +1096,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"dentuso": dentuso,
"detective-gems": detectiveGems,
"dev-accounts": devAccounts,
"developer-dao-guild-members": developerDaoGuildMembers,
"developer-dao-members": developerDaoMembers,
"developer-of-faust": developerOfFaust,
"dhadrien-frens": dhadrienFrens,
Expand Down

0 comments on commit 3a2b724

Please sign in to comment.