From ae3928bc15cb570ac0435a52bc3b2405b08cd2d4 Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Sun, 15 Oct 2023 13:25:50 +0200 Subject: [PATCH] [factory]: Adding new ptest group --- group-generators/generators/index.ts | 2 ++ group-generators/generators/ptest/index.ts | 37 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 group-generators/generators/ptest/index.ts diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index e74fdcee5..5846a1531 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -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"; @@ -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, diff --git a/group-generators/generators/ptest/index.ts b/group-generators/generators/ptest/index.ts new file mode 100644 index 000000000..7f09c1207 --- /dev/null +++ b/group-generators/generators/ptest/index.ts @@ -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 => { + + + 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;