Skip to content

Commit

Permalink
[factory]: Adding new eigenworlds group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Dec 14, 2023
1 parent c0e3191 commit d121f6e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
68 changes: 68 additions & 0 deletions group-generators/generators/eigenworlds/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

import { dataOperators } from "@group-generators/helpers/data-operators";
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 wiwBadgeProvider = new dataProviders.WiwBadgeProvider();

const wiwBadgeProviderData0 = await wiwBadgeProvider.queryBadgeHolders({
tagId: "49ed9bb903453cdf594df640dbe6d2da4cb009f06bdce013c6b6d5a6a0f34159"
});

const wiwBadgeProviderData1 = await wiwBadgeProvider.queryBadgeHolders({
tagId: "f7b10f907d5cefb0e8320a41b55d8019f03e86f691ae0473f539643a1a52b8f9"
});

const wiwBadgeProviderData2 = await wiwBadgeProvider.queryBadgeHolders({
tagId: "0e1d40aa372131825a7ca334a918125aee0935ba36b2bee53caa560e63633c8d"
});

const wiwBadgeProviderData3 = await wiwBadgeProvider.queryBadgeHolders({
tagId: "130c29140f566d717a71fb97eca4b2a26685a31a4dc89bb10ed99f76f8505b9e"
});

const wiwBadgeProviderData4 = await wiwBadgeProvider.queryBadgeHolders({
tagId: "68a1044bcdb197b825a50de56fec5388e047f7cf82e790da94b6c8a4d5294f33"
});

const dataUnion = dataOperators.Union([
wiwBadgeProviderData0,
wiwBadgeProviderData1,
wiwBadgeProviderData2,
wiwBadgeProviderData3,
wiwBadgeProviderData4
]);

return [
{
name: "eigenworlds",
timestamp: context.timestamp,
description: "EigenWorlds nft all data powered by wiw.io",
specs: "Top Holder of EigenWorlds
Diamond Hand of EigenWorlds
Early Adopter of EigenWorlds
Holder of EigenWorlds
Minter of EigenWorlds
",
data: dataUnion,
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 @@ -200,6 +200,7 @@ import earlyRaaveAttendee from "./early-raave-attendee";
import earlyWojak from "./early-wojak";
import easC10 from "./eas-c10";
import edu from "./edu";
import eigenworlds from "./eigenworlds";
import electoraStar from "./electora-star";
import eminentXLens from "./eminent-x-lens";
import emmetSFriends from "./emmet-s-friends";
Expand Down Expand Up @@ -1127,6 +1128,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"dudulab": dudulab,
"early-raave-attendee": earlyRaaveAttendee,
"eas-c10": easC10,
"eigenworlds": eigenworlds,
"electora-star": electoraStar,
"ens-domains-holders": ensDomainsHolders,
"eth-belgrade": ethBelgrade,
Expand Down

0 comments on commit d121f6e

Please sign in to comment.