Skip to content

Commit

Permalink
[factory]: Adding new zerion-dna-1-0-powered-by-wiw group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Dec 14, 2023
1 parent c0e3191 commit d475a39
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
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;

0 comments on commit d475a39

Please sign in to comment.