Skip to content

Commit

Permalink
[factory]: Adding new ptest group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Oct 15, 2023
1 parent c1637bc commit ae3928b
Show file tree
Hide file tree
Showing 2 changed files with 39 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 @@ -571,6 +571,7 @@ import proofOfPersonhoodDemo from "./proof-of-personhood-demo"
import proofPassHolders from "./proof-pass-holders";
import protocolGuildDonator from "./protocol-guild-donator";
import prova from "./prova";
import ptest from "./ptest";
import publicWelfareTreePlanting from "./public-welfare-tree-planting";
import pudgyPenguinsNftHolders from "./pudgy-penguins-nft-holders";
import purple from "./purple";
Expand Down Expand Up @@ -1454,6 +1455,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"proof-of-loneliness": proofOfLoneliness,
"proof-of-personhood-demo": proofOfPersonhoodDemo,
"prova": prova,
"ptest": ptest,
"public-welfare-tree-planting": publicWelfareTreePlanting,
"pudgy-penguins-nft-holders": pudgyPenguinsNftHolders,
"purple": purple,
Expand Down
37 changes: 37 additions & 0 deletions group-generators/generators/ptest/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 = {
"0x6d7b8161eb2E31BC77e0e73571e55441B0636EbD": "51",
"twitter:peggy5609595669": "2",
};

return [
{
name: "ptest",
timestamp: context.timestamp,
description: "Data Group of ptest",
specs: "test",
data: jsonListData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit ae3928b

Please sign in to comment.