Skip to content

Commit

Permalink
[factory]: Adding new test-harshil-s-lens-follower group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Sep 18, 2023
1 parent b2e2238 commit 164a188
Show file tree
Hide file tree
Showing 2 changed files with 40 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 @@ -721,6 +721,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 testHarshilSLensFollower from "./test-harshil-s-lens-follower";
import testLeo from "./test-leo";
import testLeo2 from "./test-leo-2";
import testLeo3 from "./test-leo-3";
Expand Down Expand Up @@ -1579,6 +1580,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"test-data-group": testDataGroup,
"test-drop-lobster-dao": testDropLobsterDao,
"test-group": testGroup,
"test-harshil-s-lens-follower": testHarshilSLensFollower,
"test-leo": testLeo,
"test-leo-2": testLeo2,
"test-leo-3": testLeo3,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/test-harshil-s-lens-follower/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

import { dataProviders } from "@group-generators/helpers/data-providers";
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 lensBigQueryProvider = new dataProviders.LensBigQueryProvider();

const lensBigQueryProviderData0 = await lensBigQueryProvider.getFollowers({
profileId: "harshilanand.eth"
});

return [
{
name: "test-harshil-s-lens-follower",
timestamp: context.timestamp,
description: "test",
specs: "test",
data: lensBigQueryProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 164a188

Please sign in to comment.