Skip to content

Commit

Permalink
[factory]: Adding new test-groupp group (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 23, 2023
1 parent 8f22463 commit bb77fdb
Show file tree
Hide file tree
Showing 2 changed files with 42 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 @@ -769,6 +769,7 @@ import testBadge01 from "./test-badge01";
import testDataGroup from "./test-data-group";
import testDropLobsterDao from "./test-drop-lobster-dao";
import testGroup from "./test-group";
import testGroupp from "./test-groupp";
import testHarshilSLensFollower from "./test-harshil-s-lens-follower";
import testLeo from "./test-leo";
import testLeo2 from "./test-leo-2";
Expand Down Expand Up @@ -1692,6 +1693,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"test-data-group": testDataGroup,
"test-drop-lobster-dao": testDropLobsterDao,
"test-group": testGroup,
"test-groupp": testGroupp,
"test-harshil-s-lens-follower": testHarshilSLensFollower,
"test-leo": testLeo,
"test-leo-2": testLeo2,
Expand Down
40 changes: 40 additions & 0 deletions group-generators/generators/test-groupp/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

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 = {
"0xf553650594834b251648b225ec5790448281e473": "50000",
"0x228a9d45a362358ccaa4c380586e62933ff4c390": "23000",
"0x1022794e8fcd336359ff3c681836638d51fa8234": "45000",
"0xa96bd3e47d7dea707253798f361e0e10215a3fa4": "90000",
"0xe8187b0899a1855d2bd38d722b23982aba8b0b14": "12000",
};

return [
{
name: "test-groupp",
timestamp: context.timestamp,
description: "USD Token Holders",
specs: "z",
data: jsonListData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit bb77fdb

Please sign in to comment.