Skip to content

Commit

Permalink
[factory]: Adding new beng group (#2281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Feb 3, 2024
1 parent c0e3191 commit 91541cf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions group-generators/generators/beng/index.ts
Original file line number Diff line number Diff line change
@@ -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<GroupWithData[]> => {


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;
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 91541cf

Please sign in to comment.