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 zerion-dna-1-0-powered-by-wiw group #2280

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
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ import yfCyAccess from "./yf-cy-access";
import yundorocket from "./yundorocket";
import yuppiZkhack from "./yuppi-zkhack";
import zen from "./zen";
import zerionDna10PoweredByWiw from "./zerion-dna-1-0-powered-by-wiw";
import zero from "./zero";
import zeroKnowledgeVeteran from "./zero-knowledge-veteran";
import zetsa from "./zetsa";
Expand Down Expand Up @@ -1843,6 +1844,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"yundorocket": yundorocket,
"yuppi-zkhack": yuppiZkhack,
"zen": zen,
"zerion-dna-1-0-powered-by-wiw": zerionDna10PoweredByWiw,
"zero": zero,
"zero-knowledge-veteran": zeroKnowledgeVeteran,
"zetsa": zetsa,
Expand Down
49 changes: 49 additions & 0 deletions group-generators/generators/zerion-dna-1-0-powered-by-wiw/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

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: "313ec0971ca4809a4af5d124efd47ee3793762f3f5fd12a89e52d77c60390d79"
});

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

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

return [
{
name: "zerion-dna-1-0-powered-by-wiw",
timestamp: context.timestamp,
description: "Zerion DNA 1.0, Holder & Minter",
specs: "Holder of Zerion DNA 1.0 ,
Minter of Zerion DNA 1.0",
data: dataUnion,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;
Loading