diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index ff6762fa1..301bd0f7d 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -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"; @@ -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, diff --git a/group-generators/generators/zerion-dna-1-0-powered-by-wiw/index.ts b/group-generators/generators/zerion-dna-1-0-powered-by-wiw/index.ts new file mode 100644 index 000000000..e481803b6 --- /dev/null +++ b/group-generators/generators/zerion-dna-1-0-powered-by-wiw/index.ts @@ -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 => { + + 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;