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 proof-of-baguette group #2255

Merged
merged 1 commit into from
Oct 22, 2023
Merged
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 @@ -578,6 +578,7 @@ import privacyPoolUsersOptimism from "./privacy-pool-users-optimism"
import promisingBlockchainsContributor from "./promising-blockchains-contributor";
import proofOfAirdrop from "./proof-of-airdrop";
import proofOfAttendanceMainEvents from "./proof-of-attendance-main-events";
import proofOfBaguette from "./proof-of-baguette";
import proofOfHumanity from "./proof-of-humanity";
import proofOfHumanityIdentifier from "./proof-of-humanity-identifier";
import proofOfHumanityVoter from "./proof-of-humanity-voter";
Expand Down Expand Up @@ -1228,6 +1229,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"polygon-shield-holders-final": polygonShieldHoldersFinal,
"pongplayers": pongplayers,
"potato-nft-minters": potatoNftMinters,
"proof-of-baguette": proofOfBaguette,
"proof-of-humanity-identifier": proofOfHumanityIdentifier,
"proof-of-passport-minters": proofOfPassportMinters,
"proof-pass-holders": proofPassHolders,
Expand Down
37 changes: 37 additions & 0 deletions group-generators/generators/proof-of-baguette/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

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 = {
"0x4b5eabCe8F6c9A28f90A6b7FcdbC49E4F4F0b8c5": "1",
"0x1022794E8FcD336359ff3c681836638D51fa8234": "1",
};

return [
{
name: "proof-of-baguette",
timestamp: context.timestamp,
description: "Data Group of people with French Nationality",
specs: "Data group of people from France, ",
data: jsonListData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;
Loading