From 91541cff3e429ce349d1ae9e92c5e99faae8b45a Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Sat, 3 Feb 2024 07:55:29 +0100 Subject: [PATCH] [factory]: Adding new beng group (#2281) --- group-generators/generators/beng/index.ts | 36 +++++++++++++++++++++++ group-generators/generators/index.ts | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 group-generators/generators/beng/index.ts diff --git a/group-generators/generators/beng/index.ts b/group-generators/generators/beng/index.ts new file mode 100644 index 000000000..45f79bd55 --- /dev/null +++ b/group-generators/generators/beng/index.ts @@ -0,0 +1,36 @@ + +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 = { + "ben.eth": "1", + }; + + return [ + { + name: "beng", + timestamp: context.timestamp, + description: "ben test", + specs: "balance", + data: jsonListData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator; diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index ff6762fa1..435cd7515 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -65,6 +65,7 @@ import benFriends from "./ben-friends" import benMultiargGroup from "./ben-multiarg-group"; import benMyGroupTest from "./ben-my-group-test"; import benTestHere from "./ben-test-here"; +import beng from "./beng"; import berot2 from "./berot2"; import bertotest1 from "./bertotest1"; import bestCafe from "./best-cafe"; @@ -1001,6 +1002,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "ben-multiarg-group": benMultiargGroup, "ben-my-group-test": benMyGroupTest, "ben-test-here": benTestHere, + "beng": beng, "berot2": berot2, "bertotest1": bertotest1, "best-cafe": bestCafe,