Skip to content

Commit

Permalink
[factory]: Adding new proof-of-age group (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 22, 2023
1 parent ef7a4df commit 6cd215d
Show file tree
Hide file tree
Showing 2 changed files with 40 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 @@ -576,6 +576,7 @@ import privacyIsNormalLotteryWinnersDemo from "./privacy-is-normal-lottery-winne
import privacyIsNormalLotteryWinnersTest from "./privacy-is-normal-lottery-winners-test";
import privacyPoolUsersOptimism from "./privacy-pool-users-optimism"
import promisingBlockchainsContributor from "./promising-blockchains-contributor";
import proofOfAge from "./proof-of-age";
import proofOfAirdrop from "./proof-of-airdrop";
import proofOfAttendanceMainEvents from "./proof-of-attendance-main-events";
import proofOfBaguette from "./proof-of-baguette";
Expand Down Expand Up @@ -1229,6 +1230,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"polygon-shield-holders-final": polygonShieldHoldersFinal,
"pongplayers": pongplayers,
"potato-nft-minters": potatoNftMinters,
"proof-of-age": proofOfAge,
"proof-of-baguette": proofOfBaguette,
"proof-of-humanity-identifier": proofOfHumanityIdentifier,
"proof-of-passport-minters": proofOfPassportMinters,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/proof-of-age/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

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 jsonListData0 = {
"0x1022794E8FcD336359ff3c681836638D51fa8234": "25",
"0x4b5eabCe8F6c9A28f90A6b7FcdbC49E4F4F0b8c5": "32",
"0xe8187b0899A1855d2BD38D722b23982ABa8b0B14": "21",
};

return [
{
name: "proof-of-age",
timestamp: context.timestamp,
description: "Data group representing age of people",
specs: "Data group representing age of people",
data: jsonListData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 6cd215d

Please sign in to comment.