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 eigenworlds group #2279

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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
Loading